Running command: "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Blocks_FirstOrderHold",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.755/2.755, allocations: 235.2 MB / 242.3 MB, free: 9.582 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.973e-05/2.973e-05, allocations: 4 kB / 299.6 MB, free: 220 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3858/0.3859, allocations: 54.86 MB / 354.4 MB, free: 15.19 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1641/0.55, allocations: 80.03 MB / 434.5 MB, free: 15.04 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002551/0.5503, allocations: 55.97 kB / 434.5 MB, free: 14.99 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006976/0.5573, allocations: 1.385 MB / 435.9 MB, free: 13.6 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.5574, allocations: 0 / 435.9 MB, free: 13.6 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.205e-06/0.5574, allocations: 0 / 435.9 MB, free: 13.6 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.0007415/0.5582, allocations: 390.2 kB / 436.3 MB, free: 13.17 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.267e-05/0.5582, allocations: 8.031 kB / 436.3 MB, free: 13.16 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.813e-05/0.5583, allocations: 15.86 kB / 436.3 MB, free: 13.15 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001833/0.5585, allocations: 167.2 kB / 436.5 MB, free: 12.95 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.363e-05/0.5585, allocations: 0 / 436.5 MB, free: 12.95 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.195e-05/0.5586, allocations: 8 kB / 436.5 MB, free: 12.94 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001531/0.5587, allocations: 35.98 kB / 436.5 MB, free: 12.9 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002092/0.559, allocations: 69.67 kB / 436.6 MB, free: 12.83 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.096e-05/0.559, allocations: 3.828 kB / 436.6 MB, free: 12.83 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.096e-05/0.559, allocations: 3.953 kB / 436.6 MB, free: 12.82 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.302e-06/0.559, allocations: 0 / 436.6 MB, free: 12.82 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007693/0.5598, allocations: 313.2 kB / 436.9 MB, free: 12.48 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002288/0.5601, allocations: 82.45 kB / 437 MB, free: 12.39 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001111/0.5602, allocations: 40.78 kB / 437 MB, free: 12.35 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.223e-05/0.5602, allocations: 4 kB / 437 MB, free: 12.34 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000232/0.5605, allocations: 75.39 kB / 437.1 MB, free: 12.26 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 2.875e-06/0.5605, allocations: 0 / 437.1 MB, free: 12.26 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004601/0.561, allocations: 141.6 kB / 437.2 MB, free: 12.11 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.708e-05/0.5611, allocations: 59.41 kB / 437.3 MB, free: 12.04 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001176/0.5612, allocations: 109.1 kB / 437.4 MB, free: 11.93 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.478e-05/0.5613, allocations: 33.7 kB / 437.4 MB, free: 11.89 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.537e-05/0.5614, allocations: 84.42 kB / 437.5 MB, free: 11.8 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.384e-05/0.5614, allocations: 39.59 kB / 437.6 MB, free: 11.76 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.067e-05/0.5615, allocations: 0 / 437.6 MB, free: 11.76 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.5616, allocations: 318.8 kB / 437.9 MB, free: 11.44 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.24e-05/0.5617, allocations: 24.38 kB / 437.9 MB, free: 11.41 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001445/0.5619, allocations: 70.45 kB / 438 MB, free: 11.33 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001305/0.562, allocations: 35.98 kB / 438 MB, free: 11.29 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.562, allocations: 0 / 438 MB, free: 11.29 MB / 378.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003802/0.5624, allocations: 133.6 kB / 438.1 MB, free: 11.16 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.772e-05/0.5625, allocations: 4 kB / 438.1 MB, free: 11.15 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.105e-05/0.5625, allocations: 4 kB / 438.1 MB, free: 11.15 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.962e-05/0.5625, allocations: 0 / 438.1 MB, free: 11.15 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002416/0.5628, allocations: 31.88 kB / 438.2 MB, free: 11.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.334e-06/0.5628, allocations: 0 / 438.2 MB, free: 11.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001177/0.5629, allocations: 11.84 kB / 438.2 MB, free: 11.11 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.012e-05/0.563, allocations: 15.98 kB / 438.2 MB, free: 11.09 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.0001385/0.5631, allocations: 111.4 kB / 438.3 MB, free: 10.98 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003663/0.5635, allocations: 129.5 kB / 438.4 MB, free: 10.84 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.898e-05/0.5635, allocations: 11.89 kB / 438.4 MB, free: 10.83 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.973e-05/0.5636, allocations: 16.7 kB / 438.5 MB, free: 10.82 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.5636, allocations: 0 / 438.5 MB, free: 10.82 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.5636, allocations: 0 / 438.5 MB, free: 10.82 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/0.5637, allocations: 0 / 438.5 MB, free: 10.82 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007394/0.5644, allocations: 399.4 kB / 438.8 MB, free: 10.39 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/0.5644, allocations: 8 kB / 438.9 MB, free: 10.38 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001198/0.5646, allocations: 11.95 kB / 438.9 MB, free: 10.37 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.242e-06/0.5646, allocations: 3.938 kB / 438.9 MB, free: 10.36 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.048e-05/0.5646, allocations: 7.922 kB / 438.9 MB, free: 10.36 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.012e-06/0.5646, allocations: 4 kB / 438.9 MB, free: 10.35 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.5646, allocations: 0 / 438.9 MB, free: 10.35 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004307/0.5651, allocations: 235.8 kB / 439.1 MB, free: 10.11 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.403e-05/0.5652, allocations: 88.95 kB / 439.2 MB, free: 10 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.922e-05/0.5652, allocations: 7.953 kB / 439.2 MB, free: 9.992 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001953/0.5654, allocations: 7.984 kB / 439.2 MB, free: 9.984 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.981e-05/0.5655, allocations: 11.92 kB / 439.2 MB, free: 9.973 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.913e-05/0.5656, allocations: 11.98 kB / 439.2 MB, free: 9.961 MB / 378.7 MB Notification: Performance of sorting global known variables: time 7.674e-05/0.5657, allocations: 91.27 kB / 439.3 MB, free: 9.871 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.5657, allocations: 0 / 439.3 MB, free: 9.871 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004679/0.5661, allocations: 16 kB / 439.3 MB, free: 9.855 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.0007901/0.567, allocations: 0.7593 MB / 440.1 MB, free: 9.066 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003292/0.5673, allocations: 91.86 kB / 440.2 MB, free: 8.977 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.227e-06/0.5673, allocations: 0 / 440.2 MB, free: 8.977 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001429/0.5675, allocations: 40 kB / 440.2 MB, free: 8.938 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003577/0.5679, allocations: 12.89 kB / 440.2 MB, free: 8.926 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007746/0.5686, allocations: 162.2 kB / 440.4 MB, free: 8.727 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003616/0.569, allocations: 0.7001 MB / 441.1 MB, free: 8 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 8.344e-05/0.5691, allocations: 8.875 kB / 441.1 MB, free: 7.988 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000122/0.5693, allocations: 27.42 kB / 441.1 MB, free: 7.961 MB / 378.7 MB Notification: Performance of SimCode: time 3.436e-06/0.5693, allocations: 0 / 441.1 MB, free: 7.961 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04484/0.6141, allocations: 1.57 MB / 442.7 MB, free: 6.406 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003477/0.6145, allocations: 137.5 kB / 442.8 MB, free: 6.207 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 2.568/3.182, allocations: 0 / 442.8 MB, free: 6.207 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