Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.271/2.271, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.339e-05/3.348e-05, allocations: 0 / 292.2 MB, free: 8.227 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1092, allocations: 50.4 MB / 342.6 MB, free: 5.797 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4308/0.54, allocations: 77.8 MB / 420.4 MB, free: 364 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002504/0.5403, allocations: 65.84 kB / 420.5 MB, free: 332 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01256/0.5529, allocations: 2.679 MB / 423.2 MB, free: 14 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.553, allocations: 0 / 423.2 MB, free: 14 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.106e-05/0.553, allocations: 4 kB / 423.2 MB, free: 13.99 MB / 346.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.0009913/0.554, allocations: 478.2 kB / 423.7 MB, free: 13.5 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.437e-05/0.5541, allocations: 16.02 kB / 423.7 MB, free: 13.48 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.797e-05/0.5542, allocations: 45.12 kB / 423.7 MB, free: 13.43 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.521e-05/0.5543, allocations: 27.7 kB / 423.7 MB, free: 13.41 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003867/0.5547, allocations: 224.3 kB / 424 MB, free: 13.16 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.687e-05/0.5547, allocations: 11.91 kB / 424 MB, free: 13.15 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.804e-05/0.5548, allocations: 14.62 kB / 424 MB, free: 13.14 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004384/0.5552, allocations: 179 kB / 424.2 MB, free: 12.99 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.762e-05/0.5552, allocations: 4 kB / 424.2 MB, free: 12.98 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.653e-05/0.5553, allocations: 11.17 kB / 424.2 MB, free: 12.98 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.904e-05/0.5553, allocations: 8 kB / 424.2 MB, free: 12.97 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003401/0.5557, allocations: 113.8 kB / 424.3 MB, free: 12.89 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001677/0.5574, allocations: 0.7858 MB / 425.1 MB, free: 12.12 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000402/0.5578, allocations: 146.4 kB / 425.2 MB, free: 11.99 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000164/0.558, allocations: 60.53 kB / 425.3 MB, free: 11.94 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.09e-05/0.5581, allocations: 12.12 kB / 425.3 MB, free: 11.93 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003078/0.5584, allocations: 137.9 kB / 425.4 MB, free: 11.8 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 2.946e-06/0.5584, allocations: 0 / 425.4 MB, free: 11.8 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004997/0.5589, allocations: 158.7 kB / 425.6 MB, free: 11.67 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.623e-05/0.559, allocations: 85.09 kB / 425.7 MB, free: 11.57 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002496/0.5592, allocations: 177.3 kB / 425.8 MB, free: 11.41 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.189e-05/0.5593, allocations: 28.89 kB / 425.9 MB, free: 11.38 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001157/0.5594, allocations: 146 kB / 426 MB, free: 11.25 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.858e-05/0.5595, allocations: 38.03 kB / 426 MB, free: 11.22 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.458e-05/0.5595, allocations: 4 kB / 426 MB, free: 11.22 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.5597, allocations: 331.9 kB / 426.4 MB, free: 10.89 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001654/0.5598, allocations: 55.17 kB / 426.4 MB, free: 10.86 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002097/0.5601, allocations: 114.7 kB / 426.5 MB, free: 10.75 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001954/0.5603, allocations: 75.39 kB / 426.6 MB, free: 10.69 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.091e-06/0.5603, allocations: 3.953 kB / 426.6 MB, free: 10.69 MB / 346.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005216/0.5608, allocations: 214.6 kB / 426.8 MB, free: 10.51 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.053e-05/0.5609, allocations: 8.031 kB / 426.8 MB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.828e-06/0.5609, allocations: 4.234 kB / 426.8 MB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.023e-05/0.5609, allocations: 112 / 426.8 MB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003496/0.5613, allocations: 43.48 kB / 426.9 MB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.561e-05/0.5613, allocations: 7.984 kB / 426.9 MB, free: 10.45 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002876/0.5616, allocations: 27.91 kB / 426.9 MB, free: 10.42 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.09e-05/0.5617, allocations: 15.88 kB / 426.9 MB, free: 10.41 MB / 346.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.pulseStart,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,$PRE.booleanPulse2.pulseStart,booleanPulse2.pulseStart) * 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.0001342/0.5618, allocations: 128.3 kB / 427.1 MB, free: 10.29 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.19e-05/0.5619, allocations: 27.66 kB / 427.1 MB, free: 10.26 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005589/0.5624, allocations: 173.3 kB / 427.3 MB, free: 10.12 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.618e-06/0.5625, allocations: 7.938 kB / 427.3 MB, free: 10.11 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.5625, allocations: 0 / 427.3 MB, free: 10.11 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.5625, allocations: 0 / 427.3 MB, free: 10.11 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004213/0.5629, allocations: 263.5 kB / 427.5 MB, free: 9.84 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.262e-06/0.5629, allocations: 8 kB / 427.5 MB, free: 9.832 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002238/0.5632, allocations: 31.69 kB / 427.6 MB, free: 9.805 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.823e-06/0.5632, allocations: 0 / 427.6 MB, free: 9.805 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.161e-05/0.5632, allocations: 4 kB / 427.6 MB, free: 9.801 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.5632, allocations: 0 / 427.6 MB, free: 9.801 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.791e-06/0.5632, allocations: 3.984 kB / 427.6 MB, free: 9.797 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004682/0.5637, allocations: 221.8 kB / 427.8 MB, free: 9.586 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.752e-05/0.5638, allocations: 92.8 kB / 427.9 MB, free: 9.48 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.747e-05/0.5639, allocations: 0 / 427.9 MB, free: 9.48 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002433/0.5641, allocations: 27.78 kB / 427.9 MB, free: 9.457 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.633e-05/0.5642, allocations: 15.97 kB / 427.9 MB, free: 9.441 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.731e-05/0.5643, allocations: 4.094 kB / 427.9 MB, free: 9.438 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001767/0.5644, allocations: 156.3 kB / 428.1 MB, free: 9.305 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.6e-07/0.5645, allocations: 0 / 428.1 MB, free: 9.305 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003849/0.5649, allocations: 35.09 kB / 428.1 MB, free: 9.273 MB / 346.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.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,booleanPulse2.pulseStart) * 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.0009377/0.5658, allocations: 0.8243 MB / 428.9 MB, free: 8.449 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004493/0.5663, allocations: 145.6 kB / 429.1 MB, free: 8.344 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.5663, allocations: 0 / 429.1 MB, free: 8.344 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000201/0.5665, allocations: 69.55 kB / 429.1 MB, free: 8.293 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004761/0.567, allocations: 35.39 kB / 429.2 MB, free: 8.266 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001023/0.568, allocations: 323.6 kB / 429.5 MB, free: 7.953 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003567/0.5684, allocations: 0.7398 MB / 430.2 MB, free: 7.184 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002159/0.5687, allocations: 41.5 kB / 430.3 MB, free: 7.141 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001339/0.5688, allocations: 61.48 kB / 430.3 MB, free: 7.117 MB / 346.7 MB Notification: Performance of SimCode: time 1.182e-06/0.5688, allocations: 0 / 430.3 MB, free: 7.117 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02935/0.5982, allocations: 3.599 MB / 433.9 MB, free: 3.617 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003285/0.5986, allocations: 149.4 kB / 434.1 MB, free: 3.387 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.513/3.112, allocations: 0 / 434.1 MB, free: 3.387 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1_res.mat does not exist to compare? outputFormat=mat