Running command: "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Blocks_FirstOrderHold",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.569/2.569, allocations: 235.1 MB / 242 MB, free: 9.75 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1896/2.759, allocations: 57.19 MB / 299.2 MB, free: 444 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2755/3.034, allocations: 54.86 MB / 354.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1602/3.194, allocations: 79.97 MB / 434 MB, free: 13.31 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002434/3.195, allocations: 59.91 kB / 434.1 MB, free: 13.25 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.007653/3.202, allocations: 1.515 MB / 435.6 MB, free: 11.69 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.772e-05/3.203, allocations: 8 kB / 435.6 MB, free: 11.68 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.617e-05/3.203, allocations: 7.906 kB / 435.6 MB, free: 11.67 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001845/3.203, allocations: 175.2 kB / 435.8 MB, free: 11.46 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.873e-05/3.203, allocations: 7.906 kB / 435.8 MB, free: 11.45 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.065e-05/3.203, allocations: 7.984 kB / 435.8 MB, free: 11.45 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001569/3.203, allocations: 32 kB / 435.8 MB, free: 11.41 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002016/3.203, allocations: 73.66 kB / 435.9 MB, free: 11.34 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.759e-06/3.203, allocations: 4 kB / 435.9 MB, free: 11.33 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.987e-05/3.203, allocations: 4 kB / 435.9 MB, free: 11.33 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.621e-06/3.203, allocations: 0 / 435.9 MB, free: 11.33 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006321/3.204, allocations: 289.2 kB / 436.2 MB, free: 11.01 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002205/3.204, allocations: 78.5 kB / 436.3 MB, free: 10.92 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001121/3.204, allocations: 40.84 kB / 436.3 MB, free: 10.88 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.011e-05/3.204, allocations: 4 kB / 436.3 MB, free: 10.88 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001941/3.205, allocations: 83.42 kB / 436.4 MB, free: 10.78 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 2.234e-06/3.205, allocations: 0 / 436.4 MB, free: 10.78 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.00036/3.205, allocations: 105.6 kB / 436.5 MB, free: 10.67 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.351e-05/3.205, allocations: 59.55 kB / 436.6 MB, free: 10.6 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001118/3.205, allocations: 117.1 kB / 436.7 MB, free: 10.48 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.524e-05/3.205, allocations: 33.69 kB / 436.7 MB, free: 10.44 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.679e-05/3.205, allocations: 84.42 kB / 436.8 MB, free: 10.35 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.746e-05/3.205, allocations: 35.61 kB / 436.8 MB, free: 10.31 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.025e-05/3.205, allocations: 0 / 436.8 MB, free: 10.31 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001351/3.206, allocations: 318.8 kB / 437.1 MB, free: 9.992 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.588e-05/3.206, allocations: 24.38 kB / 437.2 MB, free: 9.969 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001344/3.206, allocations: 65.72 kB / 437.2 MB, free: 9.887 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001294/3.206, allocations: 35.98 kB / 437.3 MB, free: 9.852 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/3.206, allocations: 3.906 kB / 437.3 MB, free: 9.848 MB / 378.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003815/3.206, allocations: 129.4 kB / 437.4 MB, free: 9.715 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.865e-05/3.206, allocations: 8.156 kB / 437.4 MB, free: 9.707 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.297e-06/3.206, allocations: 4 kB / 437.4 MB, free: 9.703 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.848e-05/3.206, allocations: 0 / 437.4 MB, free: 9.703 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002167/3.207, allocations: 27.86 kB / 437.4 MB, free: 9.676 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.127e-06/3.207, allocations: 4 kB / 437.4 MB, free: 9.672 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001255/3.207, allocations: 11.84 kB / 437.5 MB, free: 9.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.278e-05/3.207, allocations: 8 kB / 437.5 MB, free: 9.652 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.0001154/3.207, allocations: 118.9 kB / 437.6 MB, free: 9.531 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.868e-05/3.207, allocations: 7.906 kB / 437.6 MB, free: 9.523 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.897e-05/3.207, allocations: 12.42 kB / 437.6 MB, free: 9.512 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/3.207, allocations: 4 kB / 437.6 MB, free: 9.508 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.608e-06/3.207, allocations: 7.906 kB / 437.6 MB, free: 9.5 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.089e-06/3.207, allocations: 0 / 437.6 MB, free: 9.5 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006526/3.208, allocations: 367 kB / 438 MB, free: 9.098 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/3.208, allocations: 0 / 438 MB, free: 9.098 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000115/3.208, allocations: 15.92 kB / 438 MB, free: 9.082 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.237e-06/3.208, allocations: 4 kB / 438 MB, free: 9.078 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.689e-05/3.208, allocations: 0 / 438 MB, free: 9.078 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.424e-06/3.208, allocations: 0 / 438 MB, free: 9.078 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.052e-06/3.208, allocations: 3.984 kB / 438 MB, free: 9.074 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003307/3.208, allocations: 207.3 kB / 438.2 MB, free: 8.855 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004677/3.209, allocations: 0.5822 MB / 438.8 MB, free: 8.254 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.288e-05/3.209, allocations: 85.33 kB / 438.9 MB, free: 8.152 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.997e-05/3.209, allocations: 4 kB / 438.9 MB, free: 8.148 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002212/3.209, allocations: 11.98 kB / 438.9 MB, free: 8.137 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.396e-05/3.209, allocations: 11.98 kB / 438.9 MB, free: 8.125 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.2e-05/3.209, allocations: 7.844 kB / 438.9 MB, free: 8.117 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.776e-05/3.209, allocations: 95.27 kB / 439 MB, free: 8.023 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001304/3.211, allocations: 20 kB / 439 MB, free: 8.004 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.0001646/3.211, allocations: 95.25 kB / 439.1 MB, free: 7.898 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003014/3.211, allocations: 88.05 kB / 439.2 MB, free: 7.812 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/3.211, allocations: 0 / 439.2 MB, free: 7.812 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000145/3.211, allocations: 47.94 kB / 439.2 MB, free: 7.766 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003042/3.212, allocations: 4.312 kB / 439.2 MB, free: 7.762 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005408/3.212, allocations: 135.8 kB / 439.4 MB, free: 7.605 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004925/3.213, allocations: 0.7114 MB / 440.1 MB, free: 6.867 MB / 378.7 MB Notification: Performance of SimCode: time 1.092e-06/3.213, allocations: 0 / 440.1 MB, free: 6.867 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Blocks.FirstOrderHold_res.mat does not exist to compare? outputFormat=mat