Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.435/2.435, allocations: 235 MB / 247.6 MB, free: 14.39 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.47e-05/4.48e-05, allocations: 4 kB / 305 MB, free: 5.574 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3919/0.3919, allocations: 54.86 MB / 359.8 MB, free: 2.699 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1552/0.5471, allocations: 82.22 MB / 442.1 MB, free: 14.75 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002443/0.5474, allocations: 67.95 kB / 442.1 MB, free: 14.68 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02171/0.5692, allocations: 4.123 MB / 446.3 MB, free: 10.58 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.939e-06/0.5692, allocations: 0 / 446.3 MB, free: 10.58 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.56e-05/0.5693, allocations: 11.94 kB / 446.3 MB, free: 10.57 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: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.001325/0.5706, allocations: 0.5267 MB / 446.8 MB, free: 10 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.138e-05/0.5707, allocations: 8.031 kB / 446.8 MB, free: 9.992 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001681/0.5708, allocations: 82.83 kB / 446.9 MB, free: 9.898 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001158/0.571, allocations: 35.62 kB / 446.9 MB, free: 9.863 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006592/0.5716, allocations: 306 kB / 447.2 MB, free: 9.523 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.531e-05/0.5717, allocations: 20.56 kB / 447.2 MB, free: 9.504 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.939e-05/0.5718, allocations: 39.94 kB / 447.3 MB, free: 9.465 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007166/0.5725, allocations: 248.1 kB / 447.5 MB, free: 9.215 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.645e-05/0.5726, allocations: 7.938 kB / 447.5 MB, free: 9.207 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.984e-05/0.5726, allocations: 8 kB / 447.5 MB, free: 9.199 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.575e-05/0.5727, allocations: 11.98 kB / 447.5 MB, free: 9.188 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005229/0.5732, allocations: 157.1 kB / 447.7 MB, free: 9.035 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002251/0.5755, allocations: 0.807 MB / 448.5 MB, free: 8.172 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005712/0.5761, allocations: 186.9 kB / 448.7 MB, free: 7.98 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002452/0.5763, allocations: 80.84 kB / 448.8 MB, free: 7.898 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.05e-05/0.5764, allocations: 8 kB / 448.8 MB, free: 7.891 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005557/0.577, allocations: 212.5 kB / 449 MB, free: 7.672 MB / 378.7 MB Notification: Performance of pre-optimization done (n=31): time 3.537e-06/0.577, allocations: 0 / 449 MB, free: 7.672 MB / 378.7 MB Notification: Performance of matching and sorting (n=31): time 0.0008112/0.5778, allocations: 265.2 kB / 449.2 MB, free: 7.406 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.971e-05/0.5779, allocations: 55.97 kB / 449.3 MB, free: 7.34 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000326/0.5782, allocations: 205 kB / 449.5 MB, free: 7.137 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.8e-05/0.5783, allocations: 33.7 kB / 449.5 MB, free: 7.098 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001733/0.5785, allocations: 230.9 kB / 449.8 MB, free: 6.871 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001226/0.5786, allocations: 90.7 kB / 449.8 MB, free: 6.781 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.585e-05/0.5787, allocations: 16 kB / 449.9 MB, free: 6.766 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000153/0.5789, allocations: 324.2 kB / 450.2 MB, free: 6.441 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002415/0.5791, allocations: 80.73 kB / 450.3 MB, free: 6.359 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003652/0.5795, allocations: 202.2 kB / 450.5 MB, free: 6.102 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000317/0.5798, allocations: 105.1 kB / 450.6 MB, free: 6 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.58e-06/0.5798, allocations: 0 / 450.6 MB, free: 6 MB / 378.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000879/0.5807, allocations: 321.7 kB / 450.9 MB, free: 5.68 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.638e-05/0.5808, allocations: 9.672 kB / 450.9 MB, free: 5.672 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.619e-05/0.5808, allocations: 10.34 kB / 450.9 MB, free: 5.664 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.62e-05/0.5808, allocations: 7.984 kB / 450.9 MB, free: 5.656 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005843/0.5814, allocations: 82.16 kB / 451 MB, free: 5.578 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.122e-05/0.5815, allocations: 11.92 kB / 451 MB, free: 5.566 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003225/0.5818, allocations: 35.69 kB / 451 MB, free: 5.531 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.261e-05/0.5819, allocations: 23.98 kB / 451.1 MB, free: 5.508 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.mean.y,mean.y,$PRE.rectifiedMean.mean.y,rectifiedMean.mean.y,$PRE.rootMeanSquare.mean.y,rootMeanSquare.mean.y,$PRE.harmonic.mean1.y,harmonic.mean1.y,$PRE.harmonic.mean2.y,harmonic.mean2.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 46 * 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.0001754/0.5821, allocations: 128.9 kB / 451.2 MB, free: 5.375 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.77e-05/0.5821, allocations: 23.72 kB / 451.2 MB, free: 5.352 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008708/0.583, allocations: 300.4 kB / 451.5 MB, free: 5.047 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.376e-06/0.583, allocations: 4 kB / 451.5 MB, free: 5.043 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.5831, allocations: 0 / 451.5 MB, free: 5.043 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.217e-06/0.5831, allocations: 3.984 kB / 451.5 MB, free: 5.039 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001298/0.5844, allocations: 0.6739 MB / 452.2 MB, free: 4.309 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.087e-06/0.5844, allocations: 4 kB / 452.2 MB, free: 4.305 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005231/0.5849, allocations: 55.89 kB / 452.2 MB, free: 4.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.083e-05/0.585, allocations: 7.953 kB / 452.2 MB, free: 4.242 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.039e-05/0.585, allocations: 8 kB / 452.2 MB, free: 4.234 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.977e-06/0.585, allocations: 0 / 452.2 MB, free: 4.234 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.585, allocations: 3.984 kB / 452.3 MB, free: 4.23 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001113/0.5862, allocations: 483.4 kB / 452.7 MB, free: 3.742 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.392e-05/0.5863, allocations: 112.9 kB / 452.8 MB, free: 3.613 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.337e-05/0.5864, allocations: 16.61 kB / 452.9 MB, free: 3.598 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003088/0.5867, allocations: 15.98 kB / 452.9 MB, free: 3.582 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000101/0.5868, allocations: 23.97 kB / 452.9 MB, free: 3.559 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.527e-05/0.5869, allocations: 20.06 kB / 452.9 MB, free: 3.539 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002364/0.5871, allocations: 161.4 kB / 453.1 MB, free: 3.383 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5871, allocations: 0 / 453.1 MB, free: 3.383 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005666/0.5877, allocations: 67.75 kB / 453.1 MB, free: 3.316 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (mean.x,rectifiedMean.mean.x,rootMeanSquare.mean.x,harmonic.mean1.x,harmonic.mean2.x) * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,mean.y,rectifiedMean.mean.y,rootMeanSquare.mean.y,harmonic.mean1.y,harmonic.mean2.y) * Number of discrete states: 5 (harmonic.mean2.x,harmonic.mean1.x,rootMeanSquare.mean.x,rectifiedMean.mean.x,mean.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.001567/0.5893, allocations: 1.048 MB / 454.2 MB, free: 2.246 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007141/0.59, allocations: 220.4 kB / 454.4 MB, free: 2.031 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5e-06/0.5901, allocations: 320 / 454.4 MB, free: 2.031 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000332/0.5904, allocations: 124.4 kB / 454.5 MB, free: 1.91 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004011/0.5908, allocations: 28.7 kB / 454.5 MB, free: 1.883 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001749/0.5926, allocations: 0.5562 MB / 455.1 MB, free: 1.289 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004695/0.5931, allocations: 0.788 MB / 455.9 MB, free: 476 kB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002797/0.5934, allocations: 115.7 kB / 456 MB, free: 364 kB / 378.7 MB Notification: Performance of SimCode: time 1.132e-06/0.5934, allocations: 0 / 456 MB, free: 364 kB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.783/3.376, allocations: 4.64 MB / 460.6 MB, free: 11.72 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.Mean_res.mat does not exist to compare? outputFormat=mat