Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Blocks_Mean",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.661/2.661, allocations: 235.1 MB / 242.3 MB, free: 9.586 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.496e-05/2.507e-05, allocations: 4 kB / 299.6 MB, free: 208 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3814/0.3815, allocations: 54.84 MB / 354.4 MB, free: 15.21 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1643/0.5458, allocations: 81.55 MB / 436 MB, free: 13.54 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000249/0.5461, allocations: 59.97 kB / 436 MB, free: 13.48 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02208/0.5682, allocations: 4.108 MB / 440.1 MB, free: 9.367 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.709e-06/0.5683, allocations: 0 / 440.1 MB, free: 9.367 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.902e-05/0.5683, allocations: 11.94 kB / 440.2 MB, free: 9.355 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.001369/0.5697, allocations: 0.5279 MB / 440.7 MB, free: 8.785 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.31e-05/0.5698, allocations: 8.031 kB / 440.7 MB, free: 8.777 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001251/0.5699, allocations: 39.61 kB / 440.7 MB, free: 8.738 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007548/0.5707, allocations: 306 kB / 441 MB, free: 8.398 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.386e-05/0.5707, allocations: 8 kB / 441 MB, free: 8.391 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.136e-05/0.5709, allocations: 23.98 kB / 441.1 MB, free: 8.367 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005255/0.5714, allocations: 153 kB / 441.2 MB, free: 8.219 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006345/0.572, allocations: 199.8 kB / 441.4 MB, free: 8.02 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.461e-05/0.5721, allocations: 4 kB / 441.4 MB, free: 8.016 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.288e-05/0.5721, allocations: 4 kB / 441.4 MB, free: 8.012 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.208e-05/0.5722, allocations: 4 kB / 441.4 MB, free: 8.008 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002219/0.5744, allocations: 0.7208 MB / 442.1 MB, free: 7.246 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005156/0.5749, allocations: 174.8 kB / 442.3 MB, free: 7.066 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002515/0.5752, allocations: 80.84 kB / 442.4 MB, free: 6.984 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.674e-05/0.5753, allocations: 4 kB / 442.4 MB, free: 6.98 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006054/0.5759, allocations: 207.2 kB / 442.6 MB, free: 6.766 MB / 378.7 MB Notification: Performance of pre-optimization done (n=31): time 3.957e-06/0.5759, allocations: 0 / 442.6 MB, free: 6.766 MB / 378.7 MB Notification: Performance of matching and sorting (n=31): time 0.0008087/0.5767, allocations: 241.2 kB / 442.8 MB, free: 6.523 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.845e-05/0.5768, allocations: 67.39 kB / 442.9 MB, free: 6.445 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003128/0.5771, allocations: 188.5 kB / 443.1 MB, free: 6.25 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.269e-05/0.5772, allocations: 29.69 kB / 443.1 MB, free: 6.215 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000154/0.5774, allocations: 160.9 kB / 443.3 MB, free: 6.055 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001376/0.5775, allocations: 90.66 kB / 443.4 MB, free: 5.965 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.009e-05/0.5776, allocations: 0 / 443.4 MB, free: 5.965 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001782/0.5777, allocations: 346.7 kB / 443.7 MB, free: 5.617 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002248/0.578, allocations: 68.75 kB / 443.8 MB, free: 5.547 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003846/0.5784, allocations: 198.2 kB / 444 MB, free: 5.293 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003182/0.5787, allocations: 99.83 kB / 444.1 MB, free: 5.195 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.136e-05/0.5787, allocations: 4 kB / 444.1 MB, free: 5.191 MB / 378.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008791/0.5796, allocations: 301.2 kB / 444.3 MB, free: 4.891 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.499e-05/0.5797, allocations: 8 kB / 444.4 MB, free: 4.883 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.314e-05/0.5797, allocations: 4 kB / 444.4 MB, free: 4.879 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.146e-05/0.5797, allocations: 11.98 kB / 444.4 MB, free: 4.867 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006529/0.5804, allocations: 71.91 kB / 444.4 MB, free: 4.797 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.141e-05/0.5804, allocations: 15.92 kB / 444.5 MB, free: 4.781 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000337/0.5808, allocations: 27.69 kB / 444.5 MB, free: 4.754 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.068e-05/0.5809, allocations: 19.92 kB / 444.5 MB, free: 4.734 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.0001689/0.581, allocations: 128.8 kB / 444.6 MB, free: 4.602 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006861/0.5817, allocations: 233.3 kB / 444.9 MB, free: 4.367 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.494e-05/0.5818, allocations: 23.72 kB / 444.9 MB, free: 4.344 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008692/0.5827, allocations: 268.6 kB / 445.1 MB, free: 4.078 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.647e-05/0.5827, allocations: 11.98 kB / 445.2 MB, free: 4.066 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.5828, allocations: 0 / 445.2 MB, free: 4.066 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.031e-05/0.5828, allocations: 3.984 kB / 445.2 MB, free: 4.062 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001255/0.584, allocations: 0.6121 MB / 445.8 MB, free: 3.406 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.097e-06/0.5841, allocations: 0 / 445.8 MB, free: 3.406 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005855/0.5847, allocations: 55.91 kB / 445.8 MB, free: 3.352 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.584e-06/0.5847, allocations: 0 / 445.8 MB, free: 3.352 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.397e-05/0.5847, allocations: 7.984 kB / 445.8 MB, free: 3.344 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.067e-06/0.5848, allocations: 4 kB / 445.8 MB, free: 3.34 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.5848, allocations: 0 / 445.8 MB, free: 3.34 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001107/0.5859, allocations: 466.9 kB / 446.3 MB, free: 2.867 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.469e-05/0.586, allocations: 100.8 kB / 446.4 MB, free: 2.75 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.083e-05/0.5861, allocations: 12.05 kB / 446.4 MB, free: 2.738 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000359/0.5865, allocations: 4 kB / 446.4 MB, free: 2.734 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001134/0.5866, allocations: 31.95 kB / 446.4 MB, free: 2.703 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.04e-05/0.5867, allocations: 12.11 kB / 446.5 MB, free: 2.691 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002307/0.5869, allocations: 148.5 kB / 446.6 MB, free: 2.547 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.5869, allocations: 0 / 446.6 MB, free: 2.547 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006709/0.5876, allocations: 67.72 kB / 446.7 MB, free: 2.48 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.001538/0.5892, allocations: 1.03 MB / 447.7 MB, free: 1.426 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006442/0.5898, allocations: 203.8 kB / 447.9 MB, free: 1.227 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.5898, allocations: 0 / 447.9 MB, free: 1.227 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003139/0.5902, allocations: 111.8 kB / 448 MB, free: 1.117 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004664/0.5906, allocations: 23.3 kB / 448 MB, free: 1.098 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001739/0.5924, allocations: 499.8 kB / 448.5 MB, free: 0.5664 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005153/0.5929, allocations: 0.7805 MB / 449.3 MB, free: 15.76 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002935/0.5933, allocations: 46.31 kB / 449.3 MB, free: 15.71 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000298/0.5936, allocations: 107.4 kB / 449.4 MB, free: 15.61 MB / 394.7 MB Notification: Performance of SimCode: time 1.052e-06/0.5936, allocations: 0 / 449.4 MB, free: 15.61 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05224/0.6458, allocations: 4.402 MB / 453.8 MB, free: 11.23 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.000273/0.6462, allocations: 123 kB / 454 MB, free: 11.03 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 2.841/3.487, allocations: 0 / 454 MB, free: 11.03 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Blocks.Mean_res.mat does not exist to compare? outputFormat=mat