Running examples in ‘ctsemOMX-Ex.R’ failed
The error most likely occurred in:

> ### Name: ctGenerateFromFit
> ### Title: Generates data according to the model estimated in a ctsemFit
> ###   object.
> ### Aliases: ctGenerateFromFit
> 
> ### ** Examples
> 
> 
> data(AnomAuth) 
> AnomAuthmodel <- ctModel(LAMBDA = matrix(c(1, 0, 0, 1), nrow = 2, ncol = 2), 
+   Tpoints = 5, n.latent = 2, n.manifest = 2, MANIFESTVAR=diag(0, 2)) 
Type "omx" is still supported but requires ctsemOMX package installation. "stanct" or "standt" are recommended types.
> AnomAuthfit <- ctFit(AnomAuth, AnomAuthmodel)
wide format data detected
Running ctsemCarefulFit with 14 parameters
Running ctsem with 14 parameters

Beginning initial fit attempt
Running ctsem with 14 parameters

 *** caught segfault ***
address 78225f8f, cause 'memory not mapped'

 *** caught segfault ***
address 78225f8f, cause 'memory not mapped'
Error in runHelper(model, frontendStart, intervals, silent, suppressWarnings,  : 
  bad value
Warning: stack imbalance in 'lazyLoadDBfetch', 2 then 4
Error in structure(list(message = message, call = call), class = c("simpleMessage",  : 
  argument is missing, with no default
Calls: ctFit -> mxTryHard -> message -> simpleMessage -> structure
Execution halted

Traceback:
 1: runHelper(model, frontendStart, intervals, silent, suppressWarnings,     unsafe, checkpoint, useSocket, onlyFrontend, useOptimizer,     beginMessage)
 2: mxRun(model = model, suppressWarnings = T, unsafe = T, silent = T,     intervals = intervals, beginMessage = T)
 3: runWithCounter(model, numdone, silent, intervals = F)
 4: doTryCatch(return(expr), name, parentenv, handler)
 5: tryCatchOne(expr, names, parentenv, handlers[[1L]])
 6: tryCatchList(expr, classes, parentenv, handlers)
 7: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call)[1L]        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
 8: try(runWithCounter(model, numdone, silent, intervals = F))
 9: withCallingHandlers(expr, warning = function(w) if (inherits(w,     classes)) tryInvokeRestart("muffleWarning"))
10: suppressWarnings(try(runWithCounter(model, numdone, silent, intervals = F)))
11: mxTryHard(model, initialTolerance = 1e-14, initialGradientIterations = 1,     showInits = showInits, checkHess = TRUE, greenOK = FALSE,     iterationSummary = iterationSummary, bestInitsOutput = FALSE,     verbose = verbose, extraTries = retryattempts, loc = 0.5,     scale = 0.2, paste = FALSE)
12: ctFit(AnomAuth, AnomAuthmodel)
An irrecoverable exception occurred. R is aborting now ...