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.997/1.997, allocations: 171.2 MB / 178.8 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.298e-05/2.308e-05, allocations: 4 kB / 219.5 MB, free: 7.332 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2759/0.2759, allocations: 38.77 MB / 258.3 MB, free: 12.05 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1692/0.4451, allocations: 66.93 MB / 325.2 MB, free: 10.89 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003474/0.4456, allocations: 63.97 kB / 325.3 MB, free: 10.83 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01947/0.465, allocations: 2.704 MB / 328 MB, free: 8.113 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.716e-06/0.4651, allocations: 0 / 328 MB, free: 8.113 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.015e-05/0.4652, allocations: 4 kB / 328 MB, free: 8.109 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.001421/0.4666, allocations: 484 kB / 328.5 MB, free: 7.59 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.383e-05/0.4667, allocations: 11.97 kB / 328.5 MB, free: 7.578 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001074/0.4668, allocations: 23.72 kB / 328.5 MB, free: 7.555 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005275/0.4674, allocations: 231.5 kB / 328.8 MB, free: 7.285 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.102e-05/0.4674, allocations: 4 kB / 328.8 MB, free: 7.281 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.969e-05/0.4675, allocations: 15.98 kB / 328.8 MB, free: 7.266 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005354/0.4681, allocations: 107.9 kB / 328.9 MB, free: 7.16 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005986/0.4687, allocations: 177.3 kB / 329.1 MB, free: 6.969 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.239e-05/0.4687, allocations: 4 kB / 329.1 MB, free: 6.965 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.783e-05/0.4688, allocations: 3.984 kB / 329.1 MB, free: 6.961 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-05/0.4688, allocations: 4 kB / 329.1 MB, free: 6.957 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002427/0.4713, allocations: 0.755 MB / 329.8 MB, free: 6.152 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001261/0.4726, allocations: 190.7 kB / 330 MB, free: 5.957 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002124/0.4729, allocations: 44.84 kB / 330 MB, free: 5.91 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.186e-05/0.4729, allocations: 0 / 330 MB, free: 5.91 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004285/0.4734, allocations: 144.8 kB / 330.2 MB, free: 5.75 MB / 282.7 MB Notification: Performance of pre-optimization done (n=15): time 4.248e-06/0.4734, allocations: 0 / 330.2 MB, free: 5.75 MB / 282.7 MB Notification: Performance of matching and sorting (n=15): time 0.0007578/0.4742, allocations: 153.4 kB / 330.3 MB, free: 5.594 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.446e-05/0.4743, allocations: 81.11 kB / 330.4 MB, free: 5.496 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003546/0.4747, allocations: 179.1 kB / 330.6 MB, free: 5.309 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.991e-05/0.4747, allocations: 29.91 kB / 330.6 MB, free: 5.273 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001683/0.4749, allocations: 198.6 kB / 330.8 MB, free: 5.078 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.474e-05/0.475, allocations: 35.61 kB / 330.9 MB, free: 5.043 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.197e-05/0.4751, allocations: 4 kB / 330.9 MB, free: 5.039 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001612/0.4753, allocations: 322.8 kB / 331.2 MB, free: 4.715 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002304/0.4755, allocations: 47.98 kB / 331.2 MB, free: 4.668 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003265/0.4759, allocations: 112.5 kB / 331.3 MB, free: 4.527 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003133/0.4762, allocations: 75.83 kB / 331.4 MB, free: 4.453 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.252e-06/0.4762, allocations: 0 / 331.4 MB, free: 4.453 MB / 282.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0008284/0.4771, allocations: 201.4 kB / 331.6 MB, free: 4.25 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.201e-05/0.4771, allocations: 8 kB / 331.6 MB, free: 4.242 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.151e-05/0.4772, allocations: 0 / 331.6 MB, free: 4.242 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.93e-05/0.4772, allocations: 4 kB / 331.6 MB, free: 4.238 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005404/0.4778, allocations: 43.91 kB / 331.7 MB, free: 4.195 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.246e-05/0.4778, allocations: 4.094 kB / 331.7 MB, free: 4.191 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005258/0.4784, allocations: 39.89 kB / 331.7 MB, free: 4.152 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.29e-05/0.4784, allocations: 11.98 kB / 331.7 MB, free: 4.141 MB / 282.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.0001961/0.4787, allocations: 123.1 kB / 331.8 MB, free: 4.012 MB / 282.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006663/0.4793, allocations: 153.5 kB / 332 MB, free: 3.855 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.664e-05/0.4794, allocations: 23.78 kB / 332 MB, free: 3.832 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005206/0.48, allocations: 127.4 kB / 332.1 MB, free: 3.707 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.083e-06/0.48, allocations: 0 / 332.1 MB, free: 3.707 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.306e-06/0.48, allocations: 8 kB / 332.1 MB, free: 3.699 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.466e-06/0.4801, allocations: 0 / 332.1 MB, free: 3.699 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001284/0.4814, allocations: 430.9 kB / 332.6 MB, free: 3.234 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.651e-06/0.4814, allocations: 0 / 332.6 MB, free: 3.234 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000318/0.4817, allocations: 19.98 kB / 332.6 MB, free: 3.215 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.336e-05/0.4818, allocations: 4 kB / 332.6 MB, free: 3.211 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.115e-05/0.4818, allocations: 7.984 kB / 332.6 MB, free: 3.203 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.44e-06/0.4818, allocations: 0 / 332.6 MB, free: 3.203 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.117e-05/0.4819, allocations: 7.938 kB / 332.6 MB, free: 3.195 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007074/0.4826, allocations: 267.3 kB / 332.9 MB, free: 2.91 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001805/0.4828, allocations: 112.8 kB / 333 MB, free: 2.781 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.211e-05/0.4829, allocations: 4 kB / 333 MB, free: 2.777 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004329/0.4834, allocations: 19.98 kB / 333 MB, free: 2.758 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001493/0.4835, allocations: 23.95 kB / 333 MB, free: 2.734 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.586e-05/0.4836, allocations: 8 kB / 333 MB, free: 2.727 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002255/0.4839, allocations: 133.8 kB / 333.1 MB, free: 2.598 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.062e-06/0.4839, allocations: 0 / 333.1 MB, free: 2.598 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006968/0.4846, allocations: 43.92 kB / 333.2 MB, free: 2.555 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: 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.001257/0.4859, allocations: 0.8926 MB / 334.1 MB, free: 1.625 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006228/0.4865, allocations: 138 kB / 334.2 MB, free: 1.492 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.002e-05/0.4866, allocations: 4.062 kB / 334.2 MB, free: 1.488 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002885/0.4869, allocations: 63.91 kB / 334.3 MB, free: 1.426 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005753/0.4875, allocations: 23.58 kB / 334.3 MB, free: 1.406 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001586/0.4891, allocations: 329.3 kB / 334.6 MB, free: 1.035 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004756/0.4896, allocations: 0.7399 MB / 335.4 MB, free: 272 kB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000253/0.4899, allocations: 67.41 kB / 335.4 MB, free: 204 kB / 282.7 MB Notification: Performance of SimCode: time 1.673e-06/0.4899, allocations: 0 / 335.4 MB, free: 204 kB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.423/2.913, allocations: 3.093 MB / 338.5 MB, free: 13.11 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