Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Discrete,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Blocks_Discrete",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.41/2.41, allocations: 235 MB / 242 MB, free: 9.762 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.186/2.596, allocations: 57.2 MB / 299.2 MB, free: 452 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2905/2.887, allocations: 54.85 MB / 354.1 MB, free: 13.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1812/3.068, allocations: 82.25 MB / 436.3 MB, free: 11.04 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002764/3.068, allocations: 63.97 kB / 436.4 MB, free: 10.98 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.02292/3.091, allocations: 4.171 MB / 440.6 MB, free: 6.734 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.796e-05/3.091, allocations: 8 kB / 440.6 MB, free: 6.727 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001069/3.091, allocations: 35.61 kB / 440.6 MB, free: 6.691 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004516/3.092, allocations: 231.7 kB / 440.8 MB, free: 6.422 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.957e-05/3.092, allocations: 15.89 kB / 440.8 MB, free: 6.406 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.793e-05/3.092, allocations: 20 kB / 440.9 MB, free: 6.387 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004417/3.092, allocations: 108 kB / 441 MB, free: 6.281 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005951/3.093, allocations: 193.5 kB / 441.2 MB, free: 6.086 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.579e-05/3.093, allocations: 4 kB / 441.2 MB, free: 6.082 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.002e-05/3.093, allocations: 7.984 kB / 441.2 MB, free: 6.074 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.382e-05/3.093, allocations: 4 kB / 441.2 MB, free: 6.07 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001656/3.095, allocations: 0.5084 MB / 441.7 MB, free: 5.523 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007669/3.096, allocations: 266.9 kB / 441.9 MB, free: 5.254 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003444/3.096, allocations: 116.8 kB / 442.1 MB, free: 5.137 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.622e-05/3.096, allocations: 15.91 kB / 442.1 MB, free: 5.121 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005538/3.097, allocations: 215.1 kB / 442.3 MB, free: 4.898 MB / 378.7 MB Notification: Performance of pre-optimization done (n=43): time 4.057e-06/3.097, allocations: 4 kB / 442.3 MB, free: 4.895 MB / 378.7 MB Notification: Performance of matching and sorting (n=43): time 0.0009587/3.098, allocations: 305.6 kB / 442.6 MB, free: 4.59 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.6e-05/3.098, allocations: 71.39 kB / 442.6 MB, free: 4.508 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002714/3.098, allocations: 182.9 kB / 442.8 MB, free: 4.32 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.828e-05/3.098, allocations: 41.69 kB / 442.9 MB, free: 4.273 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.937e-05/3.098, allocations: 109 kB / 443 MB, free: 4.16 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001317/3.098, allocations: 90.86 kB / 443.1 MB, free: 4.07 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.234e-05/3.098, allocations: 0 / 443.1 MB, free: 4.07 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001626/3.098, allocations: 350.7 kB / 443.4 MB, free: 3.719 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002794/3.099, allocations: 85.3 kB / 443.5 MB, free: 3.637 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005285/3.099, allocations: 265.1 kB / 443.7 MB, free: 3.289 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006208/3.1, allocations: 131.9 kB / 443.9 MB, free: 3.16 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.187e-05/3.1, allocations: 4 kB / 443.9 MB, free: 3.156 MB / 378.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001697/3.102, allocations: 373.1 kB / 444.2 MB, free: 2.785 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.758e-05/3.102, allocations: 8 kB / 444.3 MB, free: 2.777 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.298e-05/3.102, allocations: 4 kB / 444.3 MB, free: 2.773 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.783e-05/3.102, allocations: 12 kB / 444.3 MB, free: 2.762 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006101/3.102, allocations: 63.78 kB / 444.3 MB, free: 2.699 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.492e-05/3.103, allocations: 8 kB / 444.3 MB, free: 2.691 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006348/3.103, allocations: 40.02 kB / 444.4 MB, free: 2.652 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.292e-05/3.103, allocations: 24 kB / 444.4 MB, free: 2.629 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 62 ($PRE.triggeredMax.y,triggeredMax.y,$PRE.triggeredSampler.y,triggeredSampler.y,$PRE.stateSpace.firstTrigger,stateSpace.firstTrigger,$PRE.stateSpace.x[1],stateSpace.x[1],$PRE.stateSpace.x[2],stateSpace.x[2],$PRE.stateSpace.y[1],stateSpace.y[1],$PRE.transferFunction.firstTrigger,transferFunction.firstTrigger,$PRE.transferFunction.x1,transferFunction.x1,$PRE.transferFunction.xext[1],transferFunction.xext[1],$PRE.transferFunction.xext[2],transferFunction.xext[2],$PRE.transferFunction.x[1],transferFunction.x[1],$PRE.transferFunction.y,transferFunction.y,$PRE.unitDelay.firstTrigger,unitDelay.firstTrigger,$PRE.unitDelay.y,unitDelay.y,$PRE.firstOrderHold.firstTrigger,firstOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.sampler.firstTrigger,sampler.firstTrigger,$whenCondition8,$whenCondition1,sampler.sampleTrigger,$PRE.zeroOrderHold.ySample,$whenCondition2,zeroOrderHold.sampleTrigger,$whenCondition3,firstOrderHold.sampleTrigger,$whenCondition4,unitDelay.sampleTrigger,$whenCondition5,transferFunction.sampleTrigger,$whenCondition6,stateSpace.sampleTrigger,$whenCondition7,booleanPulse.y,$PRE.booleanPulse.pulsStart,booleanPulse.pulsStart,sampler.y,zeroOrderHold.ySample,$PRE.firstOrderHold.tSample,firstOrderHold.tSample,$PRE.firstOrderHold.uSample,firstOrderHold.uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.pre_uSample,$PRE.firstOrderHold.c,firstOrderHold.c) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * 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.0004516/3.104, allocations: 160.8 kB / 444.6 MB, free: 2.465 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000174/3.104, allocations: 27.62 kB / 444.6 MB, free: 2.438 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000174/3.104, allocations: 26.77 kB / 444.6 MB, free: 2.414 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.441e-05/3.104, allocations: 8 kB / 444.6 MB, free: 2.406 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.034e-05/3.104, allocations: 0 / 444.6 MB, free: 2.406 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.23e-05/3.104, allocations: 0 / 444.6 MB, free: 2.406 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003531/3.108, allocations: 0.753 MB / 445.4 MB, free: 1.609 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.874e-06/3.108, allocations: 0 / 445.4 MB, free: 1.609 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002387/3.108, allocations: 23.92 kB / 445.4 MB, free: 1.586 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.385e-05/3.108, allocations: 4 kB / 445.4 MB, free: 1.582 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.002e-05/3.108, allocations: 7.984 kB / 445.4 MB, free: 1.574 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.431e-05/3.108, allocations: 7.906 kB / 445.4 MB, free: 1.566 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.564e-06/3.108, allocations: 0 / 445.4 MB, free: 1.566 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001284/3.11, allocations: 415.3 kB / 445.8 MB, free: 1.145 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001593/3.111, allocations: 0.7926 MB / 446.6 MB, free: 340 kB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001513/3.111, allocations: 108.7 kB / 446.7 MB, free: 212 kB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001774/3.112, allocations: 23.91 kB / 446.7 MB, free: 188 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007603/3.112, allocations: 35.97 kB / 446.8 MB, free: 152 kB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001405/3.113, allocations: 27.95 kB / 446.8 MB, free: 124 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.452e-05/3.113, allocations: 15.98 kB / 446.8 MB, free: 108 kB / 378.7 MB Notification: Performance of sort global known variables: time 0.1472/3.26, allocations: 136.4 kB / 447 MB, free: 132 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001723/3.262, allocations: 63.88 kB / 447 MB, free: 132 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 39 (booleanPulse.y,stateSpace.sampleTrigger,transferFunction.sampleTrigger,unitDelay.sampleTrigger,firstOrderHold.sampleTrigger,zeroOrderHold.sampleTrigger,sampler.sampleTrigger,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,sampler.firstTrigger,sampler.y,zeroOrderHold.firstTrigger,zeroOrderHold.ySample,firstOrderHold.firstTrigger,firstOrderHold.tSample,firstOrderHold.uSample,firstOrderHold.pre_uSample,firstOrderHold.c,unitDelay.firstTrigger,unitDelay.y,transferFunction.firstTrigger,transferFunction.y,transferFunction.x[1],transferFunction.x1,transferFunction.xext[1],transferFunction.xext[2],stateSpace.firstTrigger,stateSpace.y[1],stateSpace.x[1],stateSpace.x[2],triggeredSampler.y,booleanPulse.pulsStart,triggeredMax.y) * Number of discrete states: 8 (zeroOrderHold.ySample,triggeredMax.y,stateSpace.x[1],stateSpace.x[2],transferFunction.x[1],unitDelay.u,firstOrderHold.uSample,firstOrderHold.c) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 24 * 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.0002357/3.262, allocations: 127.8 kB / 447.1 MB, free: 131.9 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007907/3.263, allocations: 289.7 kB / 447.4 MB, free: 131.9 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/3.263, allocations: 3.219 kB / 447.4 MB, free: 131.9 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003701/3.263, allocations: 150.3 kB / 447.6 MB, free: 131.9 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005455/3.264, allocations: 35.03 kB / 447.6 MB, free: 131.9 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001653/3.265, allocations: 387.5 kB / 448 MB, free: 131.8 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000368/3.266, allocations: 0.8009 MB / 448.8 MB, free: 131.1 MB / 378.7 MB Notification: Performance of SimCode: time 1.082e-06/3.266, allocations: 3.906 kB / 448.8 MB, free: 131.1 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Blocks.Discrete_res.mat does not exist to compare? outputFormat=mat