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.854/1.854, allocations: 171.2 MB / 178.8 MB, free: 164 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.522e-05/2.536e-05, allocations: 4 kB / 219.5 MB, free: 7.336 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2827/0.2827, allocations: 38.77 MB / 258.3 MB, free: 12.03 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1241/0.407, allocations: 66.56 MB / 324.9 MB, free: 11.26 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002283/0.4072, allocations: 59.97 kB / 324.9 MB, free: 11.2 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01195/0.4192, allocations: 2.591 MB / 327.5 MB, free: 8.602 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.4192, allocations: 4 kB / 327.5 MB, free: 8.598 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.226e-05/0.4193, allocations: 8 kB / 327.5 MB, free: 8.59 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.000973/0.4203, allocations: 479.6 kB / 328 MB, free: 8.07 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.764e-05/0.4203, allocations: 8.031 kB / 328 MB, free: 8.062 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.061e-05/0.4204, allocations: 23.72 kB / 328 MB, free: 8.039 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003631/0.4208, allocations: 230.7 kB / 328.3 MB, free: 7.773 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.871e-05/0.4208, allocations: 4 kB / 328.3 MB, free: 7.77 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.889e-05/0.4209, allocations: 11.95 kB / 328.3 MB, free: 7.758 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003464/0.4212, allocations: 108.5 kB / 328.4 MB, free: 7.652 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003728/0.4216, allocations: 158.7 kB / 328.5 MB, free: 7.48 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.227e-05/0.4216, allocations: 7.938 kB / 328.5 MB, free: 7.473 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.138e-05/0.4217, allocations: 0 / 328.5 MB, free: 7.473 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.566e-05/0.4217, allocations: 4 kB / 328.6 MB, free: 7.469 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001548/0.4233, allocations: 0.7591 MB / 329.3 MB, free: 6.66 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000376/0.4237, allocations: 141.2 kB / 329.4 MB, free: 6.504 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001719/0.4238, allocations: 61.77 kB / 329.5 MB, free: 6.438 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.187e-05/0.4239, allocations: 3.984 kB / 329.5 MB, free: 6.434 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002757/0.4242, allocations: 129 kB / 329.6 MB, free: 6.289 MB / 282.7 MB Notification: Performance of pre-optimization done (n=15): time 2.474e-06/0.4242, allocations: 0 / 329.6 MB, free: 6.289 MB / 282.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004976/0.4247, allocations: 157.7 kB / 329.8 MB, free: 6.129 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.907e-05/0.4248, allocations: 85.11 kB / 329.9 MB, free: 6.027 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002338/0.425, allocations: 169.6 kB / 330 MB, free: 5.852 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.243e-05/0.4251, allocations: 29.7 kB / 330.1 MB, free: 5.816 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001292/0.4252, allocations: 202.7 kB / 330.3 MB, free: 5.617 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.762e-05/0.4253, allocations: 39.45 kB / 330.3 MB, free: 5.578 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.569e-05/0.4253, allocations: 0 / 330.3 MB, free: 5.578 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001288/0.4255, allocations: 326.8 kB / 330.6 MB, free: 5.25 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001469/0.4256, allocations: 51.98 kB / 330.7 MB, free: 5.199 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001955/0.4258, allocations: 102.8 kB / 330.8 MB, free: 5.074 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001838/0.426, allocations: 59.97 kB / 330.8 MB, free: 5.016 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.426, allocations: 0 / 330.8 MB, free: 5.016 MB / 282.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004773/0.4265, allocations: 193.3 kB / 331 MB, free: 4.82 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/0.4266, allocations: 8.188 kB / 331 MB, free: 4.812 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.4266, allocations: 4 kB / 331 MB, free: 4.809 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.607e-05/0.4266, allocations: 0 / 331 MB, free: 4.809 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003064/0.4269, allocations: 39.91 kB / 331.1 MB, free: 4.77 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.428e-06/0.427, allocations: 4 kB / 331.1 MB, free: 4.766 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002708/0.4272, allocations: 27.83 kB / 331.1 MB, free: 4.738 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.864e-05/0.4273, allocations: 19.98 kB / 331.1 MB, free: 4.719 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.0001133/0.4274, allocations: 112.9 kB / 331.2 MB, free: 4.602 MB / 282.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004035/0.4278, allocations: 165.4 kB / 331.4 MB, free: 4.434 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.955e-05/0.4279, allocations: 19.75 kB / 331.4 MB, free: 4.414 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004996/0.4284, allocations: 175.4 kB / 331.6 MB, free: 4.242 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-06/0.4284, allocations: 4 kB / 331.6 MB, free: 4.238 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.4284, allocations: 0 / 331.6 MB, free: 4.238 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.4284, allocations: 0 / 331.6 MB, free: 4.238 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003337/0.4288, allocations: 238 kB / 331.8 MB, free: 3.969 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.803e-06/0.4288, allocations: 7.891 kB / 331.8 MB, free: 3.961 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002147/0.429, allocations: 31.91 kB / 331.9 MB, free: 3.93 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.742e-06/0.4291, allocations: 4 kB / 331.9 MB, free: 3.926 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.706e-05/0.4291, allocations: 0 / 331.9 MB, free: 3.926 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.4291, allocations: 0 / 331.9 MB, free: 3.926 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.4291, allocations: 0 / 331.9 MB, free: 3.926 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004318/0.4295, allocations: 208.6 kB / 332.1 MB, free: 3.695 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001226/0.4297, allocations: 104.9 kB / 332.2 MB, free: 3.574 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.354e-05/0.4297, allocations: 3.984 kB / 332.2 MB, free: 3.57 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002342/0.43, allocations: 19.98 kB / 332.2 MB, free: 3.551 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.404e-05/0.4301, allocations: 19.97 kB / 332.2 MB, free: 3.531 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.304e-05/0.4301, allocations: 8 kB / 332.2 MB, free: 3.523 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000148/0.4303, allocations: 132.6 kB / 332.4 MB, free: 3.395 MB / 282.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.4303, allocations: 0 / 332.4 MB, free: 3.395 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003728/0.4307, allocations: 35.84 kB / 332.4 MB, free: 3.359 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.0008245/0.4315, allocations: 0.818 MB / 333.2 MB, free: 2.508 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004208/0.4319, allocations: 131.9 kB / 333.3 MB, free: 2.379 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.432, allocations: 0 / 333.3 MB, free: 2.379 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001987/0.4322, allocations: 72.2 kB / 333.4 MB, free: 2.309 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004391/0.4326, allocations: 40.11 kB / 333.4 MB, free: 2.27 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009652/0.4336, allocations: 333.8 kB / 333.8 MB, free: 1.898 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003717/0.434, allocations: 0.7321 MB / 334.5 MB, free: 1.133 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001699/0.4342, allocations: 71.34 kB / 334.6 MB, free: 1.062 MB / 282.7 MB Notification: Performance of SimCode: time 3.176e-06/0.4342, allocations: 0 / 334.6 MB, free: 1.062 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.419/2.853, allocations: 3.102 MB / 337.7 MB, free: 13.97 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