Running command: "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.498/2.498, allocations: 235 MB / 247.6 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.512e-05/3.521e-05, allocations: 0 / 305 MB, free: 5.57 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4096/0.4097, allocations: 54.86 MB / 359.9 MB, free: 2.703 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1487/0.5585, allocations: 80.71 MB / 440.6 MB, free: 296 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002414/0.5588, allocations: 64.72 kB / 440.6 MB, free: 232 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006199/0.565, allocations: 1.392 MB / 442 MB, free: 14.85 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.565, allocations: 0 / 442 MB, free: 14.85 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.477e-05/0.5651, allocations: 0 / 442 MB, free: 14.85 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.000664/0.5657, allocations: 389.8 kB / 442.4 MB, free: 14.43 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.874e-05/0.5658, allocations: 8.031 kB / 442.4 MB, free: 14.42 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.801e-05/0.5659, allocations: 39.06 kB / 442.4 MB, free: 14.38 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.625e-05/0.5659, allocations: 7.906 kB / 442.5 MB, free: 14.37 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001489/0.5661, allocations: 171.2 kB / 442.6 MB, free: 14.16 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.414e-05/0.5661, allocations: 8 kB / 442.6 MB, free: 14.15 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.489e-05/0.5662, allocations: 12 kB / 442.6 MB, free: 14.14 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002175/0.5664, allocations: 79.41 kB / 442.7 MB, free: 14.06 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.5664, allocations: 0 / 442.7 MB, free: 14.06 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.85e-05/0.5664, allocations: 3.953 kB / 442.7 MB, free: 14.05 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.5665, allocations: 0 / 442.7 MB, free: 14.05 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001299/0.5666, allocations: 32.84 kB / 442.8 MB, free: 14.02 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007079/0.5673, allocations: 336.7 kB / 443.1 MB, free: 13.64 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000237/0.5676, allocations: 86.5 kB / 443.2 MB, free: 13.55 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001126/0.5677, allocations: 36.86 kB / 443.2 MB, free: 13.51 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.283e-05/0.5677, allocations: 3.953 kB / 443.2 MB, free: 13.51 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002329/0.568, allocations: 87.38 kB / 443.3 MB, free: 13.41 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 2.574e-06/0.568, allocations: 0 / 443.3 MB, free: 13.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004378/0.5685, allocations: 145.7 kB / 443.4 MB, free: 13.26 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.238e-05/0.5685, allocations: 63.34 kB / 443.5 MB, free: 13.19 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001242/0.5687, allocations: 107.4 kB / 443.6 MB, free: 13.07 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.168e-05/0.5687, allocations: 29.7 kB / 443.6 MB, free: 13.04 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.61e-05/0.5688, allocations: 158.8 kB / 443.8 MB, free: 12.88 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.812e-05/0.5689, allocations: 35.59 kB / 443.8 MB, free: 12.84 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.317e-06/0.5689, allocations: 3.281 kB / 443.8 MB, free: 12.84 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001211/0.569, allocations: 318.8 kB / 444.1 MB, free: 12.52 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.356e-05/0.5691, allocations: 32.38 kB / 444.2 MB, free: 12.49 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001293/0.5693, allocations: 69.7 kB / 444.2 MB, free: 12.41 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001239/0.5694, allocations: 39.98 kB / 444.3 MB, free: 12.37 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.5694, allocations: 4 kB / 444.3 MB, free: 12.36 MB / 378.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003317/0.5698, allocations: 133.7 kB / 444.4 MB, free: 12.23 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.758e-05/0.5698, allocations: 15.94 kB / 444.4 MB, free: 12.21 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.5698, allocations: 4.875 kB / 444.4 MB, free: 12.21 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.927e-05/0.5699, allocations: 4 kB / 444.4 MB, free: 12.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002073/0.5701, allocations: 19.94 kB / 444.5 MB, free: 12.18 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.21e-05/0.5701, allocations: 3.984 kB / 444.5 MB, free: 12.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001127/0.5702, allocations: 24 kB / 444.5 MB, free: 12.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.778e-05/0.5703, allocations: 4 kB / 444.5 MB, free: 12.15 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.0001182/0.5704, allocations: 128.2 kB / 444.6 MB, free: 12.02 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.709e-05/0.5704, allocations: 7.906 kB / 444.6 MB, free: 12.01 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.072e-05/0.5705, allocations: 16.69 kB / 444.6 MB, free: 11.99 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.702e-06/0.5705, allocations: 4 kB / 444.6 MB, free: 11.99 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.5705, allocations: 1.688 kB / 444.6 MB, free: 11.99 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.5705, allocations: 0 / 444.6 MB, free: 11.99 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007188/0.5713, allocations: 426.5 kB / 445.1 MB, free: 11.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.5713, allocations: 0 / 445.1 MB, free: 11.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.895e-05/0.5714, allocations: 18.98 kB / 445.1 MB, free: 11.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.849e-06/0.5714, allocations: 0 / 445.1 MB, free: 11.5 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.879e-05/0.5714, allocations: 4 kB / 445.1 MB, free: 11.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.876e-06/0.5714, allocations: 0 / 445.1 MB, free: 11.5 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.5715, allocations: 0 / 445.1 MB, free: 11.5 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003894/0.5718, allocations: 235.4 kB / 445.3 MB, free: 11.25 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.813e-05/0.5719, allocations: 100.9 kB / 445.4 MB, free: 11.13 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.105e-05/0.572, allocations: 0 / 445.4 MB, free: 11.13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000181/0.5722, allocations: 11.98 kB / 445.4 MB, free: 11.12 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.523e-05/0.5722, allocations: 11.98 kB / 445.4 MB, free: 11.11 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.049e-05/0.5723, allocations: 4 kB / 445.4 MB, free: 11.11 MB / 378.7 MB Notification: Performance of sorting global known variables: time 6.518e-05/0.5723, allocations: 88.69 kB / 445.5 MB, free: 11.02 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5723, allocations: 0 / 445.5 MB, free: 11.02 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000414/0.5728, allocations: 24 kB / 445.5 MB, free: 11 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.0007108/0.5735, allocations: 0.7883 MB / 446.3 MB, free: 10.18 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000288/0.5738, allocations: 84.58 kB / 446.4 MB, free: 10.1 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.5738, allocations: 4.656 kB / 446.4 MB, free: 10.1 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001404/0.574, allocations: 43.94 kB / 446.5 MB, free: 10.05 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002664/0.5742, allocations: 16.25 kB / 446.5 MB, free: 10.04 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006693/0.5749, allocations: 194.2 kB / 446.7 MB, free: 9.809 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002997/0.5752, allocations: 0.7004 MB / 447.4 MB, free: 9.082 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.374e-05/0.5753, allocations: 27.42 kB / 447.4 MB, free: 9.055 MB / 378.7 MB Notification: Performance of SimCode: time 8.01e-07/0.5754, allocations: 0 / 447.4 MB, free: 9.055 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.447/3.022, allocations: 1.534 MB / 448.9 MB, free: 7.535 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat does not exist to compare? outputFormat=mat