Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.857/1.857, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.517e-05/3.522e-05, allocations: 7.422 kB / 225.1 MB, free: 2.699 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3003/0.3004, allocations: 38.77 MB / 263.8 MB, free: 9.75 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1324/0.4329, allocations: 67.23 MB / 331.1 MB, free: 6.418 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000268/0.4332, allocations: 63.97 kB / 331.1 MB, free: 6.355 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01305/0.4463, allocations: 2.602 MB / 333.7 MB, free: 3.742 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.003e-06/0.4463, allocations: 0 / 333.7 MB, free: 3.742 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.625e-05/0.4464, allocations: 4 kB / 333.7 MB, free: 3.738 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.001064/0.4474, allocations: 479.6 kB / 334.2 MB, free: 3.219 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.337e-05/0.4475, allocations: 11.97 kB / 334.2 MB, free: 3.207 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.918e-05/0.4476, allocations: 50.55 kB / 334.3 MB, free: 3.148 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.921e-05/0.4477, allocations: 23.72 kB / 334.3 MB, free: 3.125 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003798/0.4481, allocations: 242.4 kB / 334.5 MB, free: 2.848 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.967e-05/0.4481, allocations: 16.27 kB / 334.6 MB, free: 2.832 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.065e-05/0.4482, allocations: 15.95 kB / 334.6 MB, free: 2.816 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004427/0.4486, allocations: 178.7 kB / 334.7 MB, free: 2.625 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/0.4487, allocations: 0 / 334.7 MB, free: 2.625 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.861e-05/0.4487, allocations: 8 kB / 334.8 MB, free: 2.617 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.978e-05/0.4488, allocations: 4 kB / 334.8 MB, free: 2.613 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003546/0.4491, allocations: 115.9 kB / 334.9 MB, free: 2.5 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001771/0.4509, allocations: 0.7936 MB / 335.7 MB, free: 1.645 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004353/0.4514, allocations: 149.1 kB / 335.8 MB, free: 1.48 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001671/0.4516, allocations: 57.83 kB / 335.9 MB, free: 1.418 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.753e-05/0.4517, allocations: 4 kB / 335.9 MB, free: 1.414 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003166/0.452, allocations: 135.2 kB / 336 MB, free: 1.266 MB / 282.7 MB Notification: Performance of pre-optimization done (n=15): time 2.935e-06/0.452, allocations: 3.938 kB / 336 MB, free: 1.262 MB / 282.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005379/0.4526, allocations: 165.5 kB / 336.2 MB, free: 1.094 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.366e-05/0.4527, allocations: 89.05 kB / 336.3 MB, free: 0.9883 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002676/0.4529, allocations: 178.1 kB / 336.4 MB, free: 0.8086 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.17e-05/0.453, allocations: 37.69 kB / 336.5 MB, free: 0.7656 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001277/0.4531, allocations: 194.5 kB / 336.7 MB, free: 0.5742 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.437e-05/0.4532, allocations: 43.45 kB / 336.7 MB, free: 0.5312 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.709e-05/0.4532, allocations: 4 kB / 336.7 MB, free: 0.5273 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001246/0.4534, allocations: 326.8 kB / 337 MB, free: 204 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001724/0.4536, allocations: 51.98 kB / 337.1 MB, free: 152 kB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002096/0.4538, allocations: 110.8 kB / 337.2 MB, free: 16 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002354/0.454, allocations: 75.97 kB / 337.3 MB, free: 15.94 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.454, allocations: 0 / 337.3 MB, free: 15.94 MB / 298.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005409/0.4546, allocations: 193.4 kB / 337.4 MB, free: 15.74 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.642e-05/0.4546, allocations: 8 kB / 337.4 MB, free: 15.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.4547, allocations: 0 / 337.4 MB, free: 15.73 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.383e-05/0.4547, allocations: 4 kB / 337.5 MB, free: 15.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003664/0.4551, allocations: 36.11 kB / 337.5 MB, free: 15.7 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.349e-05/0.4551, allocations: 7.984 kB / 337.5 MB, free: 15.69 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003019/0.4554, allocations: 35.83 kB / 337.5 MB, free: 15.65 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.235e-05/0.4555, allocations: 8 kB / 337.5 MB, free: 15.64 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.multiSwitch.u[1],$PRE.multiSwitch.u[2],$whenCondition2,$whenCondition1,$PRE.booleanPulse1.pulsStart,booleanPulse1.pulsStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,$PRE.booleanPulse2.pulsStart,booleanPulse2.pulsStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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.0001434/0.4556, allocations: 128.8 kB / 337.7 MB, free: 15.51 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.463e-05/0.4557, allocations: 19.8 kB / 337.7 MB, free: 15.49 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005995/0.4563, allocations: 199.1 kB / 337.9 MB, free: 15.29 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-05/0.4563, allocations: 4 kB / 337.9 MB, free: 15.29 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.195e-06/0.4564, allocations: 112 / 337.9 MB, free: 15.29 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.231e-06/0.4564, allocations: 3.938 kB / 337.9 MB, free: 15.29 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000443/0.4568, allocations: 273.4 kB / 338.2 MB, free: 14.97 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.606e-06/0.4568, allocations: 96 / 338.2 MB, free: 14.97 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000259/0.4571, allocations: 27.92 kB / 338.2 MB, free: 14.94 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.323e-06/0.4571, allocations: 3.938 kB / 338.2 MB, free: 14.94 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.292e-05/0.4572, allocations: 3.984 kB / 338.2 MB, free: 14.93 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.033e-05/0.4572, allocations: 8 kB / 338.2 MB, free: 14.93 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.449e-06/0.4572, allocations: 4 kB / 338.2 MB, free: 14.92 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005321/0.4577, allocations: 207.4 kB / 338.4 MB, free: 14.69 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001491/0.4579, allocations: 104.9 kB / 338.5 MB, free: 14.57 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.572e-05/0.458, allocations: 7.984 kB / 338.5 MB, free: 14.56 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002679/0.4582, allocations: 23.98 kB / 338.5 MB, free: 14.54 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.322e-05/0.4584, allocations: 19.97 kB / 338.6 MB, free: 14.52 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.895e-05/0.4584, allocations: 4 kB / 338.6 MB, free: 14.52 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002208/0.4586, allocations: 144.6 kB / 338.7 MB, free: 14.38 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.4586, allocations: 4 kB / 338.7 MB, free: 14.37 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004251/0.4591, allocations: 35.91 kB / 338.7 MB, free: 14.34 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,booleanPulse1.pulsStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,booleanPulse2.pulsStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0009667/0.4601, allocations: 0.8244 MB / 339.6 MB, free: 13.48 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004911/0.4606, allocations: 146.9 kB / 339.7 MB, free: 13.34 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 6.262e-06/0.4606, allocations: 4 kB / 339.7 MB, free: 13.33 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002262/0.4608, allocations: 72.28 kB / 339.8 MB, free: 13.26 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004899/0.4614, allocations: 41.31 kB / 339.8 MB, free: 13.22 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001128/0.4625, allocations: 346.4 kB / 340.2 MB, free: 12.84 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000445/0.463, allocations: 0.7437 MB / 340.9 MB, free: 12.06 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001943/0.4632, allocations: 63.42 kB / 341 MB, free: 12 MB / 298.7 MB Notification: Performance of SimCode: time 1.202e-06/0.4632, allocations: 0 / 341 MB, free: 12 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.62/3.083, allocations: 3.138 MB / 344.1 MB, free: 8.867 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Blocks.Examples.RealNetwork1_res.mat does not exist to compare? outputFormat=mat