Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Discrete,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Blocks_Discrete",fmuType="me",version="2.0",platforms={"static"}) [: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.315/2.315, allocations: 235 MB / 241.9 MB, free: 9.785 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2049/2.52, allocations: 57.2 MB / 299.1 MB, free: 484 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2695/2.79, allocations: 54.84 MB / 354 MB, free: 13.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2041/2.994, allocations: 82.25 MB / 436.2 MB, free: 11.07 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002428/2.994, allocations: 63.97 kB / 436.3 MB, free: 11.01 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.02445/3.019, allocations: 4.163 MB / 440.4 MB, free: 6.781 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.264e-05/3.019, allocations: 8 kB / 440.5 MB, free: 6.773 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002422/3.019, allocations: 31.62 kB / 440.5 MB, free: 6.742 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006577/3.02, allocations: 239.7 kB / 440.7 MB, free: 6.465 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.777e-05/3.02, allocations: 11.91 kB / 440.7 MB, free: 6.453 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.888e-05/3.02, allocations: 19.98 kB / 440.8 MB, free: 6.434 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006248/3.021, allocations: 112 kB / 440.9 MB, free: 6.324 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008988/3.022, allocations: 193.5 kB / 441.1 MB, free: 6.129 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.951e-05/3.022, allocations: 0 / 441.1 MB, free: 6.129 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.25e-05/3.022, allocations: 8 kB / 441.1 MB, free: 6.121 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.01e-05/3.022, allocations: 8 kB / 441.1 MB, free: 6.113 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002383/3.024, allocations: 0.5123 MB / 441.6 MB, free: 5.562 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001085/3.025, allocations: 270.9 kB / 441.8 MB, free: 5.289 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005648/3.026, allocations: 116.8 kB / 442 MB, free: 5.172 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.843e-05/3.026, allocations: 4 kB / 442 MB, free: 5.168 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007859/3.027, allocations: 223.1 kB / 442.2 MB, free: 4.938 MB / 378.7 MB Notification: Performance of pre-optimization done (n=43): time 5.149e-06/3.027, allocations: 0 / 442.2 MB, free: 4.938 MB / 378.7 MB Notification: Performance of matching and sorting (n=43): time 0.001386/3.028, allocations: 305.5 kB / 442.5 MB, free: 4.633 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001156/3.028, allocations: 75.38 kB / 442.6 MB, free: 4.547 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004284/3.029, allocations: 190.9 kB / 442.7 MB, free: 4.352 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001063/3.029, allocations: 33.7 kB / 442.8 MB, free: 4.312 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001121/3.029, allocations: 109 kB / 442.9 MB, free: 4.199 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002013/3.029, allocations: 94.88 kB / 443 MB, free: 4.105 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.464e-05/3.029, allocations: 0 / 443 MB, free: 4.105 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002875/3.03, allocations: 338.8 kB / 443.3 MB, free: 3.766 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004104/3.03, allocations: 85.3 kB / 443.4 MB, free: 3.684 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005764/3.031, allocations: 269 kB / 443.6 MB, free: 3.332 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005477/3.031, allocations: 127.9 kB / 443.8 MB, free: 3.207 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.325e-06/3.031, allocations: 0 / 443.8 MB, free: 3.207 MB / 378.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001903/3.033, allocations: 373.2 kB / 444.1 MB, free: 2.836 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.405e-05/3.033, allocations: 4 kB / 444.1 MB, free: 2.832 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.987e-05/3.033, allocations: 8 kB / 444.1 MB, free: 2.824 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.265e-05/3.033, allocations: 8 kB / 444.2 MB, free: 2.816 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008941/3.034, allocations: 67.78 kB / 444.2 MB, free: 2.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.256e-05/3.034, allocations: 11.98 kB / 444.2 MB, free: 2.738 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004029/3.035, allocations: 35.97 kB / 444.3 MB, free: 2.703 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.572e-05/3.035, allocations: 20 kB / 444.3 MB, free: 2.684 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.0002711/3.035, allocations: 162.1 kB / 444.4 MB, free: 2.52 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.466e-05/3.035, allocations: 35.61 kB / 444.5 MB, free: 2.484 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000106/3.035, allocations: 22.78 kB / 444.5 MB, free: 2.465 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.218e-05/3.035, allocations: 8 kB / 444.5 MB, free: 2.457 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.566e-06/3.035, allocations: 4 kB / 444.5 MB, free: 2.453 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.328e-06/3.035, allocations: 3.984 kB / 444.5 MB, free: 2.449 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002086/3.038, allocations: 0.7491 MB / 445.3 MB, free: 1.656 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.272e-06/3.038, allocations: 0 / 445.3 MB, free: 1.656 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001469/3.038, allocations: 19.92 kB / 445.3 MB, free: 1.637 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.284e-05/3.038, allocations: 4 kB / 445.3 MB, free: 1.633 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.661e-05/3.038, allocations: 15.98 kB / 445.3 MB, free: 1.617 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.686e-06/3.038, allocations: 3.906 kB / 445.3 MB, free: 1.613 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/3.038, allocations: 3.938 kB / 445.3 MB, free: 1.609 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001207/3.039, allocations: 415.4 kB / 445.7 MB, free: 1.188 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001086/3.04, allocations: 0.7965 MB / 446.5 MB, free: 380 kB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001056/3.04, allocations: 100.7 kB / 446.6 MB, free: 260 kB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001107/3.041, allocations: 23.92 kB / 446.6 MB, free: 236 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004907/3.041, allocations: 31.97 kB / 446.7 MB, free: 204 kB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.597e-05/3.041, allocations: 23.95 kB / 446.7 MB, free: 180 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.278e-05/3.041, allocations: 19.98 kB / 446.7 MB, free: 160 kB / 378.7 MB Notification: Performance of sort global known variables: time 0.00023/3.041, allocations: 141.5 kB / 446.9 MB, free: 20 kB / 378.7 MB Notification: Performance of remove unused functions: time 0.148/3.189, allocations: 60.95 kB / 446.9 MB, free: 132.1 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.0002593/3.19, allocations: 128.5 kB / 447 MB, free: 132 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007817/3.191, allocations: 294.1 kB / 447.3 MB, free: 132 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/3.191, allocations: 3.219 kB / 447.3 MB, free: 132 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003452/3.191, allocations: 153.1 kB / 447.5 MB, free: 132 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005119/3.191, allocations: 29.91 kB / 447.5 MB, free: 132 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001566/3.193, allocations: 386.4 kB / 447.9 MB, free: 131.9 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003481/3.193, allocations: 0.802 MB / 448.7 MB, free: 131.2 MB / 378.7 MB Notification: Performance of SimCode: time 1.102e-06/3.193, allocations: 0 / 448.7 MB, free: 131.2 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Blocks.Discrete_res.mat does not exist to compare? outputFormat=mat