Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_3_2_1_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.695/1.695, allocations: 171.3 MB / 178.4 MB, free: 164 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.717e-05/2.718e-05, allocations: 4 kB / 219.6 MB, free: 6.953 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2937/0.2938, allocations: 38.77 MB / 258.3 MB, free: 12.29 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1316/0.4254, allocations: 66.56 MB / 324.9 MB, free: 11.3 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002369/0.4257, allocations: 63.97 kB / 325 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0117/0.4374, allocations: 2.583 MB / 327.5 MB, free: 8.648 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.4375, allocations: 0 / 327.5 MB, free: 8.648 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.199e-05/0.4375, allocations: 8 kB / 327.6 MB, free: 8.641 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.0009127/0.4384, allocations: 479.6 kB / 328 MB, free: 8.121 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.789e-05/0.4385, allocations: 8.031 kB / 328 MB, free: 8.113 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.198e-05/0.4386, allocations: 31.66 kB / 328.1 MB, free: 8.082 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003452/0.4389, allocations: 230.6 kB / 328.3 MB, free: 7.816 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.198e-05/0.439, allocations: 4 kB / 328.3 MB, free: 7.812 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.494e-05/0.439, allocations: 11.95 kB / 328.3 MB, free: 7.801 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003504/0.4394, allocations: 108.5 kB / 328.4 MB, free: 7.695 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003655/0.4398, allocations: 170.7 kB / 328.6 MB, free: 7.512 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/0.4398, allocations: 0 / 328.6 MB, free: 7.512 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.128e-05/0.4398, allocations: 0 / 328.6 MB, free: 7.512 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.66e-05/0.4399, allocations: 8 kB / 328.6 MB, free: 7.504 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001512/0.4414, allocations: 0.7552 MB / 329.3 MB, free: 6.699 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003685/0.4418, allocations: 137.1 kB / 329.5 MB, free: 6.547 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001563/0.4419, allocations: 57.94 kB / 329.5 MB, free: 6.484 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.755e-05/0.442, allocations: 7.938 kB / 329.5 MB, free: 6.477 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002748/0.4423, allocations: 138.1 kB / 329.7 MB, free: 6.324 MB / 282.7 MB Notification: Performance of pre-optimization done (n=15): time 2.174e-06/0.4423, allocations: 0 / 329.7 MB, free: 6.324 MB / 282.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004696/0.4428, allocations: 149.5 kB / 329.8 MB, free: 6.172 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.238e-05/0.4429, allocations: 89.03 kB / 329.9 MB, free: 6.066 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002139/0.4431, allocations: 169.7 kB / 330.1 MB, free: 5.891 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.27e-05/0.4431, allocations: 29.7 kB / 330.1 MB, free: 5.855 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001138/0.4432, allocations: 140.2 kB / 330.2 MB, free: 5.715 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.114e-05/0.4433, allocations: 43.44 kB / 330.3 MB, free: 5.672 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.349e-05/0.4433, allocations: 4 kB / 330.3 MB, free: 5.668 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.4435, allocations: 330.8 kB / 330.6 MB, free: 5.336 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001435/0.4437, allocations: 47.98 kB / 330.6 MB, free: 5.289 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001956/0.4439, allocations: 106.8 kB / 330.8 MB, free: 5.16 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001956/0.4441, allocations: 63.91 kB / 330.8 MB, free: 5.098 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.4441, allocations: 4 kB / 330.8 MB, free: 5.094 MB / 282.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004858/0.4446, allocations: 193.3 kB / 331 MB, free: 4.898 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.276e-05/0.4446, allocations: 8 kB / 331 MB, free: 4.891 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.623e-06/0.4446, allocations: 192 / 331 MB, free: 4.891 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.837e-05/0.4447, allocations: 8.094 kB / 331 MB, free: 4.883 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003011/0.445, allocations: 43.84 kB / 331.1 MB, free: 4.84 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.793e-06/0.445, allocations: 0 / 331.1 MB, free: 4.84 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002756/0.4453, allocations: 31.83 kB / 331.1 MB, free: 4.809 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.09e-05/0.4453, allocations: 15.98 kB / 331.1 MB, free: 4.793 MB / 282.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.0001095/0.4455, allocations: 112.9 kB / 331.2 MB, free: 4.676 MB / 282.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003978/0.4459, allocations: 161.3 kB / 331.4 MB, free: 4.512 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.167e-05/0.4459, allocations: 15.81 kB / 331.4 MB, free: 4.496 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004981/0.4464, allocations: 187.2 kB / 331.6 MB, free: 4.312 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.409e-06/0.4465, allocations: 0 / 331.6 MB, free: 4.312 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.4465, allocations: 0 / 331.6 MB, free: 4.312 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.656e-06/0.4465, allocations: 11.97 kB / 331.6 MB, free: 4.301 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003364/0.4468, allocations: 222.1 kB / 331.8 MB, free: 4.047 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.432e-06/0.4469, allocations: 3.953 kB / 331.8 MB, free: 4.043 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002093/0.4471, allocations: 35.91 kB / 331.8 MB, free: 4.008 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.92e-06/0.4471, allocations: 0 / 331.8 MB, free: 4.008 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.995e-05/0.4471, allocations: 4 kB / 331.9 MB, free: 4.004 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.22e-06/0.4471, allocations: 4 kB / 331.9 MB, free: 4 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.4472, allocations: 0 / 331.9 MB, free: 4 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004352/0.4476, allocations: 209.2 kB / 332.1 MB, free: 3.77 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001284/0.4477, allocations: 104.8 kB / 332.2 MB, free: 3.648 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.533e-05/0.4478, allocations: 7.984 kB / 332.2 MB, free: 3.641 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002267/0.448, allocations: 15.98 kB / 332.2 MB, free: 3.625 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.101e-05/0.4481, allocations: 19.97 kB / 332.2 MB, free: 3.605 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.46e-05/0.4482, allocations: 8 kB / 332.2 MB, free: 3.598 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001444/0.4483, allocations: 132.6 kB / 332.3 MB, free: 3.469 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.4483, allocations: 4 kB / 332.3 MB, free: 3.465 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003695/0.4487, allocations: 31.94 kB / 332.4 MB, free: 3.434 MB / 282.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.0008286/0.4495, allocations: 0.808 MB / 333.2 MB, free: 2.59 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003911/0.45, allocations: 145.5 kB / 333.3 MB, free: 2.449 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.45, allocations: 0 / 333.3 MB, free: 2.449 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001819/0.4502, allocations: 67.97 kB / 333.4 MB, free: 2.383 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004192/0.4506, allocations: 27.98 kB / 333.4 MB, free: 2.355 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009375/0.4516, allocations: 304.1 kB / 333.7 MB, free: 2.02 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003585/0.4519, allocations: 0.7438 MB / 334.5 MB, free: 1.242 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002117/0.4522, allocations: 41.77 kB / 334.5 MB, free: 1.203 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001453/0.4523, allocations: 59.42 kB / 334.6 MB, free: 1.145 MB / 282.7 MB Notification: Performance of SimCode: time 3.096e-06/0.4523, allocations: 0 / 334.6 MB, free: 1.145 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04454/0.4969, allocations: 3.196 MB / 337.8 MB, free: 13.97 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002983/0.4973, allocations: 121.6 kB / 337.9 MB, free: 13.78 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.339/2.836, allocations: 0 / 337.9 MB, free: 13.78 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Blocks.Examples.RealNetwork1_res.mat does not exist to compare? outputFormat=mat