Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_3_2_2_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.126/2.126, allocations: 195 MB / 202.8 MB, free: 13.78 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.097e-05/4.143e-05, allocations: 4 kB / 249.7 MB, free: 14.82 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3782/0.3783, allocations: 44.5 MB / 294.2 MB, free: 14.43 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1836/0.562, allocations: 71.86 MB / 366.1 MB, free: 10.06 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003208/0.5624, allocations: 63.97 kB / 366.1 MB, free: 10 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01741/0.5798, allocations: 2.58 MB / 368.7 MB, free: 7.41 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.003e-06/0.5799, allocations: 0 / 368.7 MB, free: 7.41 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.716e-05/0.5799, allocations: 11.94 kB / 368.7 MB, free: 7.398 MB / 314.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.00102/0.5809, allocations: 475.5 kB / 369.2 MB, free: 6.887 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.278e-05/0.581, allocations: 11.97 kB / 369.2 MB, free: 6.875 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.207e-05/0.5811, allocations: 23.72 kB / 369.2 MB, free: 6.852 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003744/0.5815, allocations: 234.7 kB / 369.5 MB, free: 6.582 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.63e-05/0.5815, allocations: 4 kB / 369.5 MB, free: 6.578 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.966e-05/0.5816, allocations: 12 kB / 369.5 MB, free: 6.566 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000359/0.5819, allocations: 108.5 kB / 369.6 MB, free: 6.461 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003859/0.5823, allocations: 150.8 kB / 369.7 MB, free: 6.297 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.501e-05/0.5824, allocations: 7.938 kB / 369.7 MB, free: 6.289 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.304e-05/0.5824, allocations: 0 / 369.7 MB, free: 6.289 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.256e-05/0.5825, allocations: 15.98 kB / 369.8 MB, free: 6.273 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001757/0.5842, allocations: 0.7435 MB / 370.5 MB, free: 5.48 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003887/0.5847, allocations: 145.1 kB / 370.6 MB, free: 5.32 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001553/0.5848, allocations: 57.81 kB / 370.7 MB, free: 5.258 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.307e-05/0.5849, allocations: 4 kB / 370.7 MB, free: 5.254 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002879/0.5852, allocations: 129.7 kB / 370.8 MB, free: 5.109 MB / 314.7 MB Notification: Performance of pre-optimization done (n=15): time 2.976e-06/0.5852, allocations: 4 kB / 370.8 MB, free: 5.105 MB / 314.7 MB Notification: Performance of matching and sorting (n=15): time 0.000528/0.5858, allocations: 165.5 kB / 371 MB, free: 4.938 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.7e-05/0.5858, allocations: 77.11 kB / 371.1 MB, free: 4.844 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002358/0.5861, allocations: 167.1 kB / 371.2 MB, free: 4.672 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.246e-05/0.5861, allocations: 25.7 kB / 371.3 MB, free: 4.641 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001419/0.5863, allocations: 144.2 kB / 371.4 MB, free: 4.496 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.949e-05/0.5864, allocations: 43.5 kB / 371.4 MB, free: 4.453 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.454e-05/0.5864, allocations: 0 / 371.4 MB, free: 4.453 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001586/0.5865, allocations: 338.8 kB / 371.8 MB, free: 4.113 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001495/0.5867, allocations: 47.98 kB / 371.8 MB, free: 4.066 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002492/0.587, allocations: 110.6 kB / 371.9 MB, free: 3.934 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002073/0.5872, allocations: 67.95 kB / 372 MB, free: 3.867 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.5872, allocations: 0 / 372 MB, free: 3.867 MB / 314.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005296/0.5877, allocations: 193.2 kB / 372.2 MB, free: 3.672 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.157e-05/0.5878, allocations: 4 kB / 372.2 MB, free: 3.668 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/0.5878, allocations: 4.094 kB / 372.2 MB, free: 3.664 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.052e-05/0.5878, allocations: 8.125 kB / 372.2 MB, free: 3.656 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003317/0.5882, allocations: 39.92 kB / 372.2 MB, free: 3.617 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.562e-05/0.5882, allocations: 7.984 kB / 372.2 MB, free: 3.609 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002772/0.5885, allocations: 27.83 kB / 372.3 MB, free: 3.582 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.583e-05/0.5885, allocations: 8 kB / 372.3 MB, free: 3.574 MB / 314.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.0001416/0.5887, allocations: 128.6 kB / 372.4 MB, free: 3.441 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004215/0.5891, allocations: 157.8 kB / 372.6 MB, free: 3.281 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.154e-05/0.5892, allocations: 19.72 kB / 372.6 MB, free: 3.262 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005306/0.5897, allocations: 175.4 kB / 372.7 MB, free: 3.086 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.534e-06/0.5898, allocations: 4 kB / 372.7 MB, free: 3.082 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.5898, allocations: 0 / 372.7 MB, free: 3.082 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.306e-06/0.5898, allocations: 3.953 kB / 372.8 MB, free: 3.078 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003722/0.5902, allocations: 234 kB / 373 MB, free: 2.812 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.5902, allocations: 4 kB / 373 MB, free: 2.809 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002367/0.5904, allocations: 27.92 kB / 373 MB, free: 2.781 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.502e-06/0.5905, allocations: 0 / 373 MB, free: 2.781 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.758e-05/0.5905, allocations: 4 kB / 373 MB, free: 2.777 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.511e-06/0.5905, allocations: 3.984 kB / 373 MB, free: 2.773 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.48e-06/0.5905, allocations: 4 kB / 373 MB, free: 2.77 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005034/0.591, allocations: 200.2 kB / 373.2 MB, free: 2.547 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.354e-05/0.5911, allocations: 104.9 kB / 373.3 MB, free: 2.426 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.447e-05/0.5912, allocations: 0 / 373.3 MB, free: 2.426 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002468/0.5914, allocations: 27.91 kB / 373.3 MB, free: 2.398 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.319e-05/0.5915, allocations: 15.91 kB / 373.4 MB, free: 2.383 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.477e-05/0.5916, allocations: 4 kB / 373.4 MB, free: 2.379 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001683/0.5917, allocations: 141.5 kB / 373.5 MB, free: 2.242 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5918, allocations: 4 kB / 373.5 MB, free: 2.238 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004148/0.5922, allocations: 31.98 kB / 373.5 MB, free: 2.207 MB / 314.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.0009138/0.5931, allocations: 0.8158 MB / 374.4 MB, free: 1.359 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000435/0.5936, allocations: 135.9 kB / 374.5 MB, free: 1.227 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.5936, allocations: 4 kB / 374.5 MB, free: 1.223 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001991/0.5938, allocations: 71.91 kB / 374.6 MB, free: 1.152 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004843/0.5943, allocations: 32.11 kB / 374.6 MB, free: 1.121 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001066/0.5954, allocations: 293.3 kB / 374.9 MB, free: 0.7969 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004153/0.5958, allocations: 0.7519 MB / 375.6 MB, free: 12 kB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002533/0.5961, allocations: 33.83 kB / 375.7 MB, free: 15.98 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001447/0.5963, allocations: 63.41 kB / 375.7 MB, free: 15.92 MB / 330.7 MB Notification: Performance of SimCode: time 1.262e-06/0.5963, allocations: 0 / 375.7 MB, free: 15.92 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04262/0.6389, allocations: 3.193 MB / 378.9 MB, free: 12.75 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003395/0.6393, allocations: 125.9 kB / 379 MB, free: 12.55 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.676/3.315, allocations: 0 / 379 MB, free: 12.55 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Blocks.Examples.RealNetwork1_res.mat does not exist to compare? outputFormat=mat