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.766/1.766, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.48e-05/3.486e-05, allocations: 4 kB / 225.1 MB, free: 2.617 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3292/0.3293, allocations: 38.76 MB / 263.8 MB, free: 9.742 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1239/0.4532, allocations: 67.61 MB / 331.4 MB, free: 6.031 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002864/0.4536, allocations: 67.97 kB / 331.5 MB, free: 5.965 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01286/0.4664, allocations: 2.715 MB / 334.2 MB, free: 3.238 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.734e-06/0.4665, allocations: 4 kB / 334.2 MB, free: 3.234 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.32e-05/0.4665, allocations: 7.938 kB / 334.2 MB, free: 3.227 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.001013/0.4676, allocations: 476 kB / 334.7 MB, free: 2.715 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.967e-05/0.4676, allocations: 12.03 kB / 334.7 MB, free: 2.703 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.899e-05/0.4677, allocations: 50.55 kB / 334.8 MB, free: 2.645 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.753e-05/0.4678, allocations: 27.66 kB / 334.8 MB, free: 2.617 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00038/0.4682, allocations: 239.5 kB / 335 MB, free: 2.34 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.886e-05/0.4682, allocations: 12 kB / 335 MB, free: 2.328 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.288e-05/0.4683, allocations: 16 kB / 335.1 MB, free: 2.312 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004667/0.4688, allocations: 197.3 kB / 335.2 MB, free: 2.102 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.249e-05/0.4688, allocations: 0 / 335.2 MB, free: 2.102 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.881e-05/0.4688, allocations: 7.984 kB / 335.3 MB, free: 2.094 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.898e-05/0.4689, allocations: 8 kB / 335.3 MB, free: 2.086 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003573/0.4692, allocations: 111.9 kB / 335.4 MB, free: 1.977 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001703/0.471, allocations: 0.8051 MB / 336.2 MB, free: 1.109 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000927/0.4719, allocations: 194.7 kB / 336.4 MB, free: 0.9102 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001537/0.4721, allocations: 44.84 kB / 336.4 MB, free: 0.8633 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.197e-05/0.4721, allocations: 11.94 kB / 336.4 MB, free: 0.8516 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003142/0.4725, allocations: 139.7 kB / 336.6 MB, free: 0.6992 MB / 282.7 MB Notification: Performance of pre-optimization done (n=15): time 3.356e-06/0.4725, allocations: 0 / 336.6 MB, free: 0.6992 MB / 282.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005078/0.473, allocations: 157.6 kB / 336.7 MB, free: 0.5391 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.653e-05/0.4731, allocations: 81.11 kB / 336.8 MB, free: 452 kB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002855/0.4734, allocations: 205.8 kB / 337 MB, free: 236 kB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.855e-05/0.4734, allocations: 33.7 kB / 337 MB, free: 196 kB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001538/0.4736, allocations: 194.8 kB / 337.2 MB, free: 0 / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.204e-05/0.4737, allocations: 35.66 kB / 337.3 MB, free: 15.96 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.561e-05/0.4737, allocations: 0 / 337.3 MB, free: 15.96 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000141/0.4739, allocations: 322.8 kB / 337.6 MB, free: 15.64 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001713/0.4741, allocations: 55.98 kB / 337.6 MB, free: 15.59 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002352/0.4743, allocations: 124.5 kB / 337.7 MB, free: 15.43 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002047/0.4745, allocations: 68.38 kB / 337.8 MB, free: 15.37 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.735e-06/0.4746, allocations: 8 kB / 337.8 MB, free: 15.36 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005536/0.4751, allocations: 209.3 kB / 338 MB, free: 15.15 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.345e-05/0.4752, allocations: 8 kB / 338 MB, free: 15.14 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.696e-06/0.4752, allocations: 0 / 338 MB, free: 15.14 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.837e-05/0.4752, allocations: 4 kB / 338 MB, free: 15.14 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003423/0.4756, allocations: 39.92 kB / 338.1 MB, free: 15.1 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.726e-05/0.4756, allocations: 12.22 kB / 338.1 MB, free: 15.09 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003055/0.4759, allocations: 35.83 kB / 338.1 MB, free: 15.05 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.636e-05/0.476, allocations: 8 kB / 338.1 MB, free: 15.04 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.0001461/0.4761, allocations: 139 kB / 338.3 MB, free: 14.9 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.55e-05/0.4762, allocations: 23.7 kB / 338.3 MB, free: 14.88 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003809/0.4766, allocations: 139.2 kB / 338.4 MB, free: 14.73 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.209e-06/0.4766, allocations: 0 / 338.4 MB, free: 14.73 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/0.4766, allocations: 192 / 338.4 MB, free: 14.73 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.4766, allocations: 0 / 338.4 MB, free: 14.73 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009186/0.4776, allocations: 478.3 kB / 338.9 MB, free: 14.2 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.397e-06/0.4776, allocations: 4 kB / 338.9 MB, free: 14.2 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002216/0.4778, allocations: 23.98 kB / 338.9 MB, free: 14.18 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.846e-06/0.4778, allocations: 7.938 kB / 338.9 MB, free: 14.17 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.245e-05/0.4779, allocations: 3.984 kB / 338.9 MB, free: 14.16 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.576e-06/0.4779, allocations: 0 / 338.9 MB, free: 14.16 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.11e-06/0.4779, allocations: 4 kB / 338.9 MB, free: 14.16 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004914/0.4784, allocations: 273.8 kB / 339.2 MB, free: 13.87 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001246/0.4785, allocations: 112.8 kB / 339.3 MB, free: 13.74 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.885e-05/0.4786, allocations: 4 kB / 339.3 MB, free: 13.73 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002933/0.4789, allocations: 19.98 kB / 339.3 MB, free: 13.71 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001043/0.479, allocations: 19.97 kB / 339.4 MB, free: 13.7 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.999e-05/0.4791, allocations: 11.98 kB / 339.4 MB, free: 13.68 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001898/0.4793, allocations: 144.6 kB / 339.5 MB, free: 13.54 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.4793, allocations: 4 kB / 339.5 MB, free: 13.54 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004731/0.4798, allocations: 47.94 kB / 339.6 MB, free: 13.49 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.0009368/0.4807, allocations: 0.8966 MB / 340.5 MB, free: 12.56 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004544/0.4812, allocations: 139.8 kB / 340.6 MB, free: 12.43 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.67e-06/0.4812, allocations: 4 kB / 340.6 MB, free: 12.42 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002124/0.4814, allocations: 71.84 kB / 340.7 MB, free: 12.35 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004279/0.4819, allocations: 27.94 kB / 340.7 MB, free: 12.32 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001089/0.483, allocations: 338 kB / 341 MB, free: 11.95 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003891/0.4834, allocations: 0.7404 MB / 341.8 MB, free: 11.18 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000179/0.4836, allocations: 67.69 kB / 341.8 MB, free: 11.11 MB / 298.7 MB Notification: Performance of SimCode: time 8.02e-07/0.4836, allocations: 0 / 341.8 MB, free: 11.11 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.758/3.242, allocations: 3.149 MB / 345 MB, free: 7.969 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