Running command: "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Blocks_OnDelay",fmuType="cs",version="2.0",platforms={"dynamic"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadModel(ModelicaTest): time 2.5/2.5, allocations: 235 MB / 242 MB, free: 9.742 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1769/2.677, allocations: 57.19 MB / 299.2 MB, free: 444 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.351/3.028, allocations: 54.86 MB / 354.1 MB, free: 13.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.165/3.193, allocations: 80.18 MB / 434.3 MB, free: 13.1 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002909/3.193, allocations: 67.91 kB / 434.3 MB, free: 13.04 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.01168/3.205, allocations: 2.188 MB / 436.5 MB, free: 10.77 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.564e-05/3.205, allocations: 12 kB / 436.5 MB, free: 10.76 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.901e-05/3.205, allocations: 19.81 kB / 436.5 MB, free: 10.74 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002215/3.205, allocations: 178.9 kB / 436.7 MB, free: 10.53 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001468/3.206, allocations: 85.11 kB / 436.8 MB, free: 10.43 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.449e-05/3.206, allocations: 8 kB / 436.8 MB, free: 10.42 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000278/3.206, allocations: 67.97 kB / 436.9 MB, free: 10.35 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003621/3.206, allocations: 116.2 kB / 437 MB, free: 10.22 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.237e-05/3.206, allocations: 0 / 437 MB, free: 10.22 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.354e-05/3.206, allocations: 8 kB / 437 MB, free: 10.21 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.01e-05/3.206, allocations: 7.844 kB / 437 MB, free: 10.21 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009797/3.207, allocations: 0.4938 MB / 437.5 MB, free: 9.668 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003413/3.208, allocations: 135.7 kB / 437.6 MB, free: 9.508 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002206/3.208, allocations: 82.58 kB / 437.7 MB, free: 9.418 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.037e-05/3.208, allocations: 4 kB / 437.7 MB, free: 9.414 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006013/3.209, allocations: 433.2 kB / 438.1 MB, free: 8.906 MB / 378.7 MB Notification: Performance of pre-optimization done (n=22): time 3.226e-06/3.209, allocations: 0 / 438.1 MB, free: 8.906 MB / 378.7 MB Notification: Performance of matching and sorting (n=22): time 0.0007181/3.209, allocations: 189.5 kB / 438.3 MB, free: 8.715 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001711/3.21, allocations: 247.3 kB / 438.6 MB, free: 8.418 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001663/3.21, allocations: 127 kB / 438.7 MB, free: 8.289 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.071e-05/3.21, allocations: 33.7 kB / 438.7 MB, free: 8.25 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.97e-05/3.21, allocations: 88.56 kB / 438.8 MB, free: 8.16 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.145e-05/3.21, allocations: 35.53 kB / 438.8 MB, free: 8.125 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.666e-05/3.21, allocations: 4 kB / 438.8 MB, free: 8.121 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001602/3.21, allocations: 326.8 kB / 439.2 MB, free: 7.793 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001689/3.21, allocations: 40 kB / 439.2 MB, free: 7.754 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002452/3.211, allocations: 119.6 kB / 439.3 MB, free: 7.609 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002522/3.211, allocations: 59.92 kB / 439.4 MB, free: 7.551 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.987e-06/3.211, allocations: 3.984 kB / 439.4 MB, free: 7.547 MB / 378.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006142/3.212, allocations: 197.3 kB / 439.6 MB, free: 7.348 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.907e-05/3.212, allocations: 4 kB / 439.6 MB, free: 7.344 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.427e-05/3.212, allocations: 7.906 kB / 439.6 MB, free: 7.336 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.045e-05/3.212, allocations: 4 kB / 439.6 MB, free: 7.332 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001286/3.212, allocations: 15.92 kB / 439.6 MB, free: 7.316 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.658e-06/3.212, allocations: 0 / 439.6 MB, free: 7.316 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002307/3.212, allocations: 24.11 kB / 439.6 MB, free: 7.293 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.896e-05/3.212, allocations: 12 kB / 439.6 MB, free: 7.281 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.onDelay1.u,$PRE.onDelay1.t_next,$PRE.onDelay3.u,$PRE.onDelay3.t_next,$PRE.onDelay2.u,$PRE.onDelay2.t_next,$whenCondition6,$whenCondition7,onDelay2.u,onDelay2.y,onDelay2.delaySignal,onDelay2.t_next,$whenCondition4,$whenCondition5,onDelay3.u,onDelay3.y,onDelay3.delaySignal,onDelay3.t_next,$whenCondition1,$whenCondition2,$whenCondition3,onDelay1.u,onDelay1.y,onDelay1.delaySignal,onDelay1.t_next,$PRE.booleanTable.y,booleanTable.y,$PRE.booleanTable.nextTime,booleanTable.nextTime,$PRE.booleanTable.index,booleanTable.index) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 5 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003172/3.212, allocations: 254.2 kB / 439.9 MB, free: 7 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.514e-05/3.213, allocations: 19.91 kB / 439.9 MB, free: 6.98 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.036e-05/3.213, allocations: 12.38 kB / 439.9 MB, free: 6.965 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.97e-06/3.213, allocations: 0 / 439.9 MB, free: 6.965 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/3.213, allocations: 0 / 439.9 MB, free: 6.965 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.184e-05/3.213, allocations: 7.906 kB / 439.9 MB, free: 6.957 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000917/3.214, allocations: 438.9 kB / 440.4 MB, free: 6.484 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/3.214, allocations: 0 / 440.4 MB, free: 6.484 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.486e-05/3.214, allocations: 11.88 kB / 440.4 MB, free: 6.473 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.847e-06/3.214, allocations: 3.906 kB / 440.4 MB, free: 6.469 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.872e-05/3.214, allocations: 8 kB / 440.4 MB, free: 6.461 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/3.214, allocations: 0 / 440.4 MB, free: 6.461 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.913e-06/3.214, allocations: 4 kB / 440.4 MB, free: 6.457 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007189/3.214, allocations: 342.9 kB / 440.7 MB, free: 6.09 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008885/3.215, allocations: 0.7142 MB / 441.4 MB, free: 5.34 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.101e-05/3.216, allocations: 88.92 kB / 441.5 MB, free: 5.234 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.153e-05/3.216, allocations: 16 kB / 441.5 MB, free: 5.219 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003183/3.216, allocations: 23.98 kB / 441.6 MB, free: 5.195 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000109/3.216, allocations: 15.98 kB / 441.6 MB, free: 5.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.939e-05/3.216, allocations: 15.98 kB / 441.6 MB, free: 5.164 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0001493/3.216, allocations: 95.28 kB / 441.7 MB, free: 5.07 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001666/3.218, allocations: 59.89 kB / 441.7 MB, free: 5.012 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 22 (onDelay1.u,$whenCondition1,$whenCondition2,$whenCondition3,onDelay1.y,onDelay1.delaySignal,onDelay1.t_next,booleanTable.y,booleanTable.nextTime,booleanTable.index,$whenCondition4,$whenCondition5,onDelay3.u,onDelay3.y,onDelay3.delaySignal,onDelay3.t_next,$whenCondition6,$whenCondition7,onDelay2.u,onDelay2.y,onDelay2.delaySignal,onDelay2.t_next) * Number of discrete states: 16 (onDelay2.t_next,onDelay2.delaySignal,$whenCondition7,$whenCondition6,onDelay3.t_next,onDelay3.delaySignal,$whenCondition5,$whenCondition4,booleanTable.y,booleanTable.nextTime,booleanTable.index,$whenCondition3,onDelay1.t_next,onDelay1.delaySignal,$whenCondition2,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003898/3.218, allocations: 131.2 kB / 441.9 MB, free: 4.875 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006985/3.219, allocations: 288.6 kB / 442.1 MB, free: 4.562 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/3.219, allocations: 4.125 kB / 442.2 MB, free: 4.559 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005204/3.22, allocations: 290.7 kB / 442.4 MB, free: 4.25 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002835/3.22, allocations: 12.12 kB / 442.4 MB, free: 4.238 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009544/3.221, allocations: 230.6 kB / 442.7 MB, free: 3.984 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006897/3.222, allocations: 0.727 MB / 443.4 MB, free: 3.23 MB / 378.7 MB Notification: Performance of SimCode: time 2.465e-06/3.222, allocations: 7.938 kB / 443.4 MB, free: 3.223 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Blocks.OnDelay_res.mat does not exist to compare? outputFormat=mat