Running command: "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_3_2_1_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 1.889/1.889, allocations: 209.3 MB / 216.3 MB, free: 6.801 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2507/2.14, allocations: 51.02 MB / 267.3 MB, free: 5.164 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/2.257, allocations: 48.69 MB / 316 MB, free: 4.371 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3279/2.585, allocations: 73.83 MB / 389.8 MB, free: 2.816 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002323/2.586, allocations: 64.38 kB / 389.9 MB, free: 2.785 MB / 314.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.007423/2.593, allocations: 1.511 MB / 391.4 MB, free: 1.434 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.545e-05/2.593, allocations: 12 kB / 391.4 MB, free: 1.422 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.993e-05/2.593, allocations: 9.281 kB / 391.4 MB, free: 1.414 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000177/2.594, allocations: 175 kB / 391.6 MB, free: 1.203 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.881e-05/2.594, allocations: 11.44 kB / 391.6 MB, free: 1.195 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.782e-05/2.594, allocations: 7.984 kB / 391.6 MB, free: 1.188 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001398/2.594, allocations: 26.19 kB / 391.6 MB, free: 1.172 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001918/2.594, allocations: 71.23 kB / 391.7 MB, free: 1.109 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/2.594, allocations: 0 / 391.7 MB, free: 1.109 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.264e-05/2.594, allocations: 3.984 kB / 391.7 MB, free: 1.105 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.568e-06/2.594, allocations: 4 kB / 391.7 MB, free: 1.102 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006519/2.595, allocations: 297.2 kB / 392 MB, free: 0.7969 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002048/2.595, allocations: 71.88 kB / 392.1 MB, free: 0.7344 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001026/2.595, allocations: 38.83 kB / 392.1 MB, free: 0.707 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.464e-05/2.595, allocations: 4 kB / 392.1 MB, free: 0.7031 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002353/2.595, allocations: 84.81 kB / 392.2 MB, free: 0.6211 MB / 314.7 MB Notification: Performance of pre-optimization done (n=14): time 3.677e-06/2.595, allocations: 4 kB / 392.2 MB, free: 0.6172 MB / 314.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004666/2.596, allocations: 105.8 kB / 392.3 MB, free: 0.5273 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.755e-05/2.596, allocations: 55.41 kB / 392.3 MB, free: 472 kB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001207/2.596, allocations: 115.5 kB / 392.5 MB, free: 360 kB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.504e-05/2.596, allocations: 33.64 kB / 392.5 MB, free: 320 kB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.552e-05/2.596, allocations: 91.97 kB / 392.6 MB, free: 228 kB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.95e-05/2.596, allocations: 27.5 kB / 392.6 MB, free: 204 kB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.147e-06/2.596, allocations: 4 kB / 392.6 MB, free: 200 kB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001334/2.596, allocations: 318.7 kB / 392.9 MB, free: 15.88 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.35e-05/2.596, allocations: 31.88 kB / 393 MB, free: 15.86 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001208/2.597, allocations: 66.64 kB / 393 MB, free: 15.79 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001198/2.597, allocations: 29.11 kB / 393 MB, free: 15.77 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/2.597, allocations: 4 kB / 393 MB, free: 15.76 MB / 330.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003261/2.597, allocations: 134 kB / 393.2 MB, free: 15.65 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/2.597, allocations: 8 kB / 393.2 MB, free: 15.64 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.574e-06/2.597, allocations: 0 / 393.2 MB, free: 15.64 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.157e-05/2.597, allocations: 7.906 kB / 393.2 MB, free: 15.63 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00023/2.597, allocations: 23.92 kB / 393.2 MB, free: 15.61 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.112e-06/2.597, allocations: 0 / 393.2 MB, free: 15.61 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001154/2.598, allocations: 16.12 kB / 393.2 MB, free: 15.59 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.909e-05/2.598, allocations: 11.88 kB / 393.2 MB, free: 15.59 MB / 330.7 MB Warning: Assuming fixed start value for the following 2 variables: firstOrderHold.firstTrigger:DISCRETE(fixed = false protected = true ) "Rising edge signals first sample instant" type: Boolean zeroOrderHold.firstTrigger:DISCRETE(fixed = false protected = true ) "Rising edge signals first sample instant" type: Boolean 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.0001933/2.598, allocations: 119.2 kB / 393.4 MB, free: 15.46 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.884e-05/2.598, allocations: 7.906 kB / 393.4 MB, free: 15.46 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.017e-05/2.598, allocations: 12.31 kB / 393.4 MB, free: 15.45 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.03e-06/2.598, allocations: 0.625 kB / 393.4 MB, free: 15.45 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/2.598, allocations: 0 / 393.4 MB, free: 15.45 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.637e-06/2.598, allocations: 3.984 kB / 393.4 MB, free: 15.44 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006171/2.599, allocations: 379.6 kB / 393.8 MB, free: 15.06 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.272e-06/2.599, allocations: 4 kB / 393.8 MB, free: 15.06 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.901e-05/2.599, allocations: 15.92 kB / 393.8 MB, free: 15.04 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.518e-06/2.599, allocations: 0 / 393.8 MB, free: 15.04 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.96e-05/2.599, allocations: 7.906 kB / 393.8 MB, free: 15.04 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/2.599, allocations: 0 / 393.8 MB, free: 15.04 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/2.599, allocations: 0 / 393.8 MB, free: 15.04 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003086/2.599, allocations: 207.4 kB / 394 MB, free: 14.84 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004617/2.6, allocations: 0.5717 MB / 394.6 MB, free: 14.27 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.615e-05/2.6, allocations: 96.31 kB / 394.7 MB, free: 14.16 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.193e-05/2.6, allocations: 3.984 kB / 394.7 MB, free: 14.16 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001939/2.6, allocations: 15.31 kB / 394.7 MB, free: 14.14 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.295e-05/2.6, allocations: 7.984 kB / 394.7 MB, free: 14.14 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.553e-05/2.6, allocations: 7.984 kB / 394.7 MB, free: 14.13 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.785e-05/2.6, allocations: 94.59 kB / 394.8 MB, free: 14.04 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001468/2.602, allocations: 19.94 kB / 394.8 MB, free: 14.02 MB / 330.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.0001701/2.602, allocations: 107.1 kB / 394.9 MB, free: 13.91 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003195/2.602, allocations: 88.81 kB / 395 MB, free: 13.85 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/2.602, allocations: 0 / 395 MB, free: 13.85 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001264/2.602, allocations: 42.69 kB / 395 MB, free: 13.82 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002901/2.603, allocations: 7.984 kB / 395 MB, free: 13.81 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005446/2.603, allocations: 127.9 kB / 395.2 MB, free: 13.68 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003667/2.603, allocations: 0.7148 MB / 395.9 MB, free: 12.94 MB / 330.7 MB Notification: Performance of SimCode: time 1.062e-06/2.604, allocations: 4 kB / 395.9 MB, free: 12.93 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Blocks.FirstOrderHold_res.mat does not exist to compare? outputFormat=mat