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.797/1.797, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.035e-05/4.058e-05, allocations: 8 kB / 225.1 MB, free: 2.699 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.346/0.3461, allocations: 38.76 MB / 263.8 MB, free: 9.773 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1229/0.4691, allocations: 67.22 MB / 331 MB, free: 6.449 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003497/0.4695, allocations: 67.97 kB / 331.1 MB, free: 6.383 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01282/0.4823, allocations: 2.61 MB / 333.7 MB, free: 3.762 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.4824, allocations: 0 / 333.7 MB, free: 3.762 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.309e-05/0.4824, allocations: 4 kB / 333.7 MB, free: 3.758 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.001035/0.4835, allocations: 479.6 kB / 334.2 MB, free: 3.238 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.114e-05/0.4836, allocations: 8.031 kB / 334.2 MB, free: 3.23 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.671e-05/0.4837, allocations: 50.55 kB / 334.2 MB, free: 3.172 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.023e-05/0.4838, allocations: 23.72 kB / 334.3 MB, free: 3.148 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004099/0.4842, allocations: 238.4 kB / 334.5 MB, free: 2.875 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.531e-05/0.4842, allocations: 8.281 kB / 334.5 MB, free: 2.867 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.86e-05/0.4843, allocations: 19.95 kB / 334.5 MB, free: 2.848 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004731/0.4848, allocations: 182.9 kB / 334.7 MB, free: 2.652 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.344e-05/0.4848, allocations: 0 / 334.7 MB, free: 2.652 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.067e-05/0.4848, allocations: 8 kB / 334.7 MB, free: 2.645 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.168e-05/0.4849, allocations: 7.984 kB / 334.7 MB, free: 2.637 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003578/0.4852, allocations: 112.8 kB / 334.8 MB, free: 2.527 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00183/0.4871, allocations: 0.8014 MB / 335.6 MB, free: 1.664 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004209/0.4876, allocations: 145.1 kB / 335.8 MB, free: 1.504 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001769/0.4877, allocations: 65.77 kB / 335.8 MB, free: 1.434 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.515e-05/0.4878, allocations: 16.08 kB / 335.9 MB, free: 1.418 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003152/0.4881, allocations: 132.2 kB / 336 MB, free: 1.273 MB / 282.7 MB Notification: Performance of pre-optimization done (n=15): time 3.246e-06/0.4882, allocations: 0 / 336 MB, free: 1.273 MB / 282.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005462/0.4887, allocations: 165.3 kB / 336.1 MB, free: 1.105 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.089e-05/0.4888, allocations: 85.09 kB / 336.2 MB, free: 1.004 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003054/0.4891, allocations: 190.1 kB / 336.4 MB, free: 0.8125 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.368e-05/0.4892, allocations: 25.7 kB / 336.4 MB, free: 0.7812 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001504/0.4894, allocations: 202.5 kB / 336.6 MB, free: 0.582 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.299e-05/0.4895, allocations: 39.45 kB / 336.7 MB, free: 0.543 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.706e-05/0.4895, allocations: 4 kB / 336.7 MB, free: 0.5391 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001478/0.4897, allocations: 318.8 kB / 337 MB, free: 224 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001882/0.4899, allocations: 59.98 kB / 337.1 MB, free: 164 kB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002261/0.4901, allocations: 110.8 kB / 337.2 MB, free: 28 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002404/0.4904, allocations: 63.95 kB / 337.2 MB, free: 15.96 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.484e-06/0.4904, allocations: 4 kB / 337.2 MB, free: 15.96 MB / 298.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005759/0.491, allocations: 209.3 kB / 337.4 MB, free: 15.75 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.989e-05/0.491, allocations: 8 kB / 337.4 MB, free: 15.74 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.838e-06/0.491, allocations: 0 / 337.4 MB, free: 15.74 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.442e-05/0.4911, allocations: 4 kB / 337.4 MB, free: 15.74 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003675/0.4915, allocations: 39.91 kB / 337.5 MB, free: 15.7 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.269e-05/0.4915, allocations: 0 / 337.5 MB, free: 15.7 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003083/0.4918, allocations: 40.02 kB / 337.5 MB, free: 15.66 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.306e-05/0.4919, allocations: 8 kB / 337.5 MB, free: 15.65 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.0001493/0.492, allocations: 132.8 kB / 337.7 MB, free: 15.52 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.363e-05/0.4921, allocations: 15.81 kB / 337.7 MB, free: 15.5 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006275/0.4927, allocations: 183.1 kB / 337.9 MB, free: 15.31 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.799e-06/0.4928, allocations: 8.109 kB / 337.9 MB, free: 15.3 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.688e-06/0.4928, allocations: 7.938 kB / 337.9 MB, free: 15.3 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.476e-06/0.4928, allocations: 4.078 kB / 337.9 MB, free: 15.29 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004315/0.4932, allocations: 273.3 kB / 338.1 MB, free: 14.98 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.4933, allocations: 0 / 338.1 MB, free: 14.98 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002702/0.4935, allocations: 31.91 kB / 338.2 MB, free: 14.95 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.955e-06/0.4936, allocations: 0 / 338.2 MB, free: 14.95 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.701e-05/0.4936, allocations: 8 kB / 338.2 MB, free: 14.94 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.957e-06/0.4936, allocations: 0 / 338.2 MB, free: 14.94 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.4936, allocations: 0 / 338.2 MB, free: 14.94 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005189/0.4942, allocations: 211.8 kB / 338.4 MB, free: 14.7 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001469/0.4943, allocations: 108.9 kB / 338.5 MB, free: 14.58 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.806e-05/0.4944, allocations: 0 / 338.5 MB, free: 14.58 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002625/0.4946, allocations: 27.98 kB / 338.5 MB, free: 14.55 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.458e-05/0.4947, allocations: 23.89 kB / 338.5 MB, free: 14.53 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.737e-05/0.4948, allocations: 4 kB / 338.5 MB, free: 14.52 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002107/0.495, allocations: 148.6 kB / 338.7 MB, free: 14.38 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.495, allocations: 0 / 338.7 MB, free: 14.38 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003759/0.4954, 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.0009626/0.4964, allocations: 0.8322 MB / 339.6 MB, free: 13.48 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00049/0.4969, allocations: 139.9 kB / 339.7 MB, free: 13.34 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.4969, allocations: 0 / 339.7 MB, free: 13.34 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002241/0.4972, allocations: 71.92 kB / 339.8 MB, free: 13.27 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005084/0.4977, allocations: 40.33 kB / 339.8 MB, free: 13.23 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001123/0.4988, allocations: 360.4 kB / 340.2 MB, free: 12.83 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004488/0.4993, allocations: 0.7477 MB / 340.9 MB, free: 12.05 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001791/0.4995, allocations: 59.42 kB / 341 MB, free: 11.99 MB / 298.7 MB Notification: Performance of SimCode: time 1.263e-06/0.4995, allocations: 0 / 341 MB, free: 11.99 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.69/3.189, allocations: 3.142 MB / 344.1 MB, free: 8.859 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