Running command: "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Blocks_FirstOrderHold",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.289/2.289, allocations: 235 MB / 241.9 MB, free: 9.754 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1878/2.477, allocations: 57.21 MB / 299.1 MB, free: 444 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2997/2.776, allocations: 54.84 MB / 354 MB, free: 13.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1774/2.954, allocations: 79.98 MB / 433.9 MB, free: 13.34 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002515/2.954, allocations: 67.91 kB / 434 MB, free: 13.27 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.007246/2.962, allocations: 1.503 MB / 435.5 MB, free: 11.72 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.461e-05/2.962, allocations: 8 kB / 435.5 MB, free: 11.71 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.741e-05/2.962, allocations: 11.91 kB / 435.5 MB, free: 11.7 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002079/2.962, allocations: 171 kB / 435.7 MB, free: 11.49 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.641e-05/2.962, allocations: 3.906 kB / 435.7 MB, free: 11.49 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.416e-05/2.962, allocations: 8 kB / 435.7 MB, free: 11.48 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002014/2.962, allocations: 36.11 kB / 435.8 MB, free: 11.45 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001942/2.962, allocations: 69.67 kB / 435.8 MB, free: 11.37 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.183e-05/2.962, allocations: 3.984 kB / 435.8 MB, free: 11.37 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.992e-05/2.963, allocations: 4 kB / 435.8 MB, free: 11.36 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/2.963, allocations: 0 / 435.8 MB, free: 11.36 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007529/2.963, allocations: 297.2 kB / 436.1 MB, free: 11.04 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002532/2.964, allocations: 74.56 kB / 436.2 MB, free: 10.95 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001092/2.964, allocations: 36.8 kB / 436.2 MB, free: 10.91 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.195e-05/2.964, allocations: 0 / 436.2 MB, free: 10.91 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002077/2.964, allocations: 99.41 kB / 436.3 MB, free: 10.8 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 2.334e-06/2.964, allocations: 0 / 436.3 MB, free: 10.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004534/2.964, allocations: 105.6 kB / 436.4 MB, free: 10.7 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.264e-05/2.965, allocations: 55.62 kB / 436.5 MB, free: 10.63 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002212/2.965, allocations: 113.1 kB / 436.6 MB, free: 10.51 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.565e-05/2.965, allocations: 25.7 kB / 436.6 MB, free: 10.48 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.596e-05/2.965, allocations: 88.42 kB / 436.7 MB, free: 10.38 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.56e-05/2.965, allocations: 27.61 kB / 436.7 MB, free: 10.36 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.037e-05/2.965, allocations: 0 / 436.7 MB, free: 10.36 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000139/2.965, allocations: 326.8 kB / 437 MB, free: 10.03 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.97e-05/2.965, allocations: 32.31 kB / 437.1 MB, free: 9.996 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001378/2.965, allocations: 65.7 kB / 437.1 MB, free: 9.914 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001308/2.966, allocations: 35.98 kB / 437.2 MB, free: 9.879 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.541e-06/2.966, allocations: 3.906 kB / 437.2 MB, free: 9.875 MB / 378.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003421/2.966, allocations: 125.5 kB / 437.3 MB, free: 9.746 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.304e-05/2.966, allocations: 8 kB / 437.3 MB, free: 9.738 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.395e-06/2.966, allocations: 0 / 437.3 MB, free: 9.738 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.221e-05/2.966, allocations: 4 kB / 437.3 MB, free: 9.734 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002289/2.966, allocations: 24.3 kB / 437.3 MB, free: 9.711 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.696e-06/2.966, allocations: 4.094 kB / 437.3 MB, free: 9.707 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001117/2.966, allocations: 15.84 kB / 437.4 MB, free: 9.691 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.127e-05/2.966, allocations: 8 kB / 437.4 MB, free: 9.684 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.firstOrderHold.firstTrigger,firstOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.ySample,$whenCondition1,zeroOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.sampleTrigger,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 (21): * Single equations (assignments): 21 * 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.0001266/2.967, allocations: 118.9 kB / 437.5 MB, free: 9.562 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.024e-05/2.967, allocations: 7.906 kB / 437.5 MB, free: 9.555 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.469e-05/2.967, allocations: 12.44 kB / 437.5 MB, free: 9.543 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/2.967, allocations: 0 / 437.5 MB, free: 9.543 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.325e-06/2.967, allocations: 3.906 kB / 437.5 MB, free: 9.539 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/2.967, allocations: 0 / 437.5 MB, free: 9.539 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007025/2.967, allocations: 378.9 kB / 437.9 MB, free: 9.125 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.005e-06/2.968, allocations: 0 / 437.9 MB, free: 9.125 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001039/2.968, allocations: 8 kB / 437.9 MB, free: 9.117 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.851e-06/2.968, allocations: 0 / 437.9 MB, free: 9.117 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.432e-05/2.968, allocations: 7.984 kB / 437.9 MB, free: 9.109 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/2.968, allocations: 4 kB / 437.9 MB, free: 9.105 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.873e-06/2.968, allocations: 3.938 kB / 437.9 MB, free: 9.102 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004034/2.968, allocations: 207.3 kB / 438.1 MB, free: 8.883 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004759/2.969, allocations: 0.5701 MB / 438.7 MB, free: 8.293 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.555e-05/2.969, allocations: 88.95 kB / 438.8 MB, free: 8.188 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.419e-05/2.969, allocations: 7.969 kB / 438.8 MB, free: 8.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002015/2.969, allocations: 12 kB / 438.8 MB, free: 8.168 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.486e-05/2.969, allocations: 7.984 kB / 438.8 MB, free: 8.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.612e-05/2.969, allocations: 7.906 kB / 438.8 MB, free: 8.152 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.542e-05/2.969, allocations: 99.2 kB / 438.9 MB, free: 8.055 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001343/2.971, allocations: 16 kB / 438.9 MB, free: 8.039 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: 11 (firstOrderHold.sampleTrigger,zeroOrderHold.sampleTrigger,$whenCondition2,$whenCondition1,zeroOrderHold.firstTrigger,zeroOrderHold.ySample,firstOrderHold.firstTrigger,firstOrderHold.tSample,firstOrderHold.uSample,firstOrderHold.pre_uSample,firstOrderHold.c) * Number of discrete states: 3 (zeroOrderHold.ySample,firstOrderHold.uSample,firstOrderHold.c) * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.0001663/2.971, allocations: 95.25 kB / 439 MB, free: 7.934 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003183/2.971, allocations: 87.92 kB / 439.1 MB, free: 7.848 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.119e-06/2.971, allocations: 4 kB / 439.1 MB, free: 7.844 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001291/2.971, allocations: 39.94 kB / 439.1 MB, free: 7.805 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003395/2.972, allocations: 11.98 kB / 439.1 MB, free: 7.793 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005119/2.972, allocations: 132.2 kB / 439.3 MB, free: 7.641 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003533/2.972, allocations: 0.712 MB / 440 MB, free: 6.902 MB / 378.7 MB Notification: Performance of SimCode: time 9.52e-07/2.972, allocations: 4 kB / 440 MB, free: 6.898 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold_res.mat does not exist to compare? outputFormat=mat