Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.811/1.811, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.943e-05/2.966e-05, allocations: 0 / 225.1 MB, free: 2.699 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3017/0.3018, allocations: 38.76 MB / 263.8 MB, free: 9.855 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1224/0.4242, allocations: 67.6 MB / 331.4 MB, free: 6.16 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002443/0.4245, allocations: 67.97 kB / 331.5 MB, free: 6.094 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01235/0.4369, allocations: 2.723 MB / 334.2 MB, free: 3.359 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.437, allocations: 0 / 334.2 MB, free: 3.359 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.032e-05/0.437, allocations: 4 kB / 334.2 MB, free: 3.355 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0009542/0.4379, allocations: 484 kB / 334.7 MB, free: 2.836 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.213e-05/0.438, allocations: 8.031 kB / 334.7 MB, free: 2.828 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.507e-05/0.4381, allocations: 50.55 kB / 334.7 MB, free: 2.77 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.213e-05/0.4382, allocations: 23.72 kB / 334.8 MB, free: 2.746 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003641/0.4386, allocations: 231.5 kB / 335 MB, free: 2.477 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.081e-05/0.4386, allocations: 16 kB / 335 MB, free: 2.461 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.391e-05/0.4387, allocations: 19.98 kB / 335 MB, free: 2.441 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004722/0.4392, allocations: 208.9 kB / 335.2 MB, free: 2.219 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.328e-05/0.4392, allocations: 0 / 335.2 MB, free: 2.219 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.686e-05/0.4392, allocations: 8 kB / 335.2 MB, free: 2.211 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.828e-05/0.4393, allocations: 8 kB / 335.2 MB, free: 2.203 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003497/0.4396, allocations: 111.9 kB / 335.3 MB, free: 2.094 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001603/0.4412, allocations: 0.8051 MB / 336.2 MB, free: 1.227 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009029/0.4422, allocations: 194.7 kB / 336.3 MB, free: 1.027 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000159/0.4423, allocations: 56.78 kB / 336.4 MB, free: 0.9688 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.304e-05/0.4424, allocations: 4 kB / 336.4 MB, free: 0.9648 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003163/0.4427, allocations: 135.4 kB / 336.5 MB, free: 0.8164 MB / 282.7 MB Notification: Performance of pre-optimization done (n=15): time 2.445e-06/0.4427, allocations: 0 / 336.5 MB, free: 0.8164 MB / 282.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005097/0.4433, allocations: 165.4 kB / 336.7 MB, free: 0.6484 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7e-05/0.4434, allocations: 81.11 kB / 336.8 MB, free: 0.5508 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002797/0.4436, allocations: 206 kB / 337 MB, free: 352 kB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.548e-05/0.4437, allocations: 33.7 kB / 337 MB, free: 312 kB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000132/0.4438, allocations: 198.8 kB / 337.2 MB, free: 112 kB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.197e-05/0.4439, allocations: 35.59 kB / 337.2 MB, free: 76 kB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.74e-05/0.4439, allocations: 4 kB / 337.2 MB, free: 72 kB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.4441, allocations: 314.8 kB / 337.6 MB, free: 15.75 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001716/0.4443, allocations: 55.98 kB / 337.6 MB, free: 15.7 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002333/0.4445, allocations: 124.6 kB / 337.7 MB, free: 15.55 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00021/0.4447, allocations: 76.31 kB / 337.8 MB, free: 15.47 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.4448, allocations: 0 / 337.8 MB, free: 15.47 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005456/0.4453, allocations: 213.3 kB / 338 MB, free: 15.26 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.949e-05/0.4454, allocations: 4 kB / 338 MB, free: 15.25 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.618e-06/0.4454, allocations: 4 kB / 338 MB, free: 15.25 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.956e-05/0.4454, allocations: 4 kB / 338 MB, free: 15.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003339/0.4457, allocations: 44.16 kB / 338.1 MB, free: 15.2 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.338e-05/0.4458, allocations: 8 kB / 338.1 MB, free: 15.2 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003035/0.4461, allocations: 35.83 kB / 338.1 MB, free: 15.16 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.818e-05/0.4461, allocations: 11.98 kB / 338.1 MB, free: 15.15 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 25 (sum.u[1],product.u[1],product.u[2],product.y,$PRE.triggeredAdd.y,triggeredAdd.y,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.booleanPulse1.pulsStart,booleanPulse1.pulsStart,multiSwitch1.u[1],multiSwitch1.u[2],$PRE.multiSwitch1.y,multiSwitch1.y,multiSwitch1.firstActiveIndex,$PRE.booleanPulse2.pulsStart,booleanPulse2.pulsStart,multiSwitch1.expr[1],multiSwitch1.expr[2],triggeredAdd.local_set,triggeredAdd.local_reset,showValue2.number,showValue1.number,showValue.number) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.0001443/0.4463, allocations: 139 kB / 338.3 MB, free: 15 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.683e-05/0.4464, allocations: 23.72 kB / 338.3 MB, free: 14.98 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000379/0.4467, allocations: 135.1 kB / 338.4 MB, free: 14.84 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-06/0.4468, allocations: 0 / 338.4 MB, free: 14.84 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.4468, allocations: 0 / 338.4 MB, free: 14.84 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/0.4468, allocations: 4 kB / 338.4 MB, free: 14.83 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008869/0.4477, allocations: 474.3 kB / 338.9 MB, free: 14.31 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.4477, allocations: 0 / 338.9 MB, free: 14.31 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002114/0.4479, allocations: 31.92 kB / 338.9 MB, free: 14.28 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.681e-06/0.448, allocations: 0 / 338.9 MB, free: 14.28 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.238e-05/0.448, allocations: 3.984 kB / 338.9 MB, free: 14.28 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.894e-06/0.448, allocations: 8.125 kB / 338.9 MB, free: 14.27 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.448, allocations: 0 / 338.9 MB, free: 14.27 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004763/0.4485, allocations: 277.8 kB / 339.2 MB, free: 13.97 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001256/0.4486, allocations: 112.8 kB / 339.3 MB, free: 13.84 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.388e-05/0.4487, allocations: 7.938 kB / 339.3 MB, free: 13.84 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002872/0.449, allocations: 23.97 kB / 339.3 MB, free: 13.81 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000101/0.4491, allocations: 19.97 kB / 339.4 MB, free: 13.79 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.546e-05/0.4492, allocations: 8 kB / 339.4 MB, free: 13.79 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001764/0.4493, allocations: 144.6 kB / 339.5 MB, free: 13.64 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.4494, allocations: 4 kB / 339.5 MB, free: 13.64 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004149/0.4498, allocations: 48 kB / 339.6 MB, free: 13.59 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: 14 (multiSwitch1.u[1],$whenCondition3,$whenCondition2,$whenCondition1,triggeredAdd.y,booleanPulse1.pulsStart,multiSwitch1.u[2],multiSwitch1.y,multiSwitch1.firstActiveIndex,booleanPulse2.pulsStart,sum.u[1],product.u[1],product.u[2],product.y) * Number of discrete states: 2 (multiSwitch1.y,triggeredAdd.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.000953/0.4507, allocations: 0.8966 MB / 340.4 MB, free: 12.66 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000451/0.4512, allocations: 150.9 kB / 340.6 MB, free: 12.52 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.4512, allocations: 0 / 340.6 MB, free: 12.52 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002104/0.4515, allocations: 68.11 kB / 340.7 MB, free: 12.45 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003792/0.4518, allocations: 32.06 kB / 340.7 MB, free: 12.42 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001045/0.4529, allocations: 342.8 kB / 341 MB, free: 12.04 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003489/0.4533, allocations: 0.7365 MB / 341.8 MB, free: 11.27 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001782/0.4535, allocations: 67.41 kB / 341.8 MB, free: 11.21 MB / 298.7 MB Notification: Performance of SimCode: time 7.71e-07/0.4535, allocations: 0 / 341.8 MB, free: 11.21 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.687/3.14, allocations: 3.153 MB / 345 MB, free: 8.059 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Blocks.Examples.IntegerNetwork1_res.mat does not exist to compare? outputFormat=mat