Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.06/2.06, allocations: 194.9 MB / 208.4 MB, free: 3.258 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.876e-05/2.891e-05, allocations: 4.625 kB / 255.4 MB, free: 3.113 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0935/0.09357, allocations: 44.51 MB / 299.9 MB, free: 6.543 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3933/0.4869, allocations: 72.9 MB / 372.9 MB, free: 22.59 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002594/0.4872, allocations: 67.83 kB / 372.9 MB, free: 22.59 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01367/0.5009, allocations: 2.711 MB / 375.6 MB, free: 22.11 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.501, allocations: 0 / 375.6 MB, free: 22.11 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.157e-05/0.501, allocations: 4.156 kB / 375.6 MB, free: 22.11 MB / 314.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.001001/0.502, allocations: 477 kB / 376.1 MB, free: 21.72 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.371e-05/0.5021, allocations: 14.97 kB / 376.1 MB, free: 21.71 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.027e-05/0.5022, allocations: 47.59 kB / 376.2 MB, free: 21.68 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.82e-05/0.5023, allocations: 26.59 kB / 376.2 MB, free: 21.66 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003486/0.5026, allocations: 235.1 kB / 376.4 MB, free: 21.45 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.933e-05/0.5027, allocations: 14.38 kB / 376.4 MB, free: 21.45 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.026e-05/0.5027, allocations: 14.88 kB / 376.4 MB, free: 21.45 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000474/0.5032, allocations: 189.2 kB / 376.6 MB, free: 21.38 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.648e-05/0.5033, allocations: 5 kB / 376.6 MB, free: 21.37 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.865e-05/0.5033, allocations: 13.19 kB / 376.6 MB, free: 21.37 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.641e-05/0.5034, allocations: 8.016 kB / 376.7 MB, free: 21.37 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003575/0.5037, allocations: 109.8 kB / 376.8 MB, free: 21.37 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001698/0.5054, allocations: 0.808 MB / 377.6 MB, free: 20.81 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009725/0.5065, allocations: 189.9 kB / 377.8 MB, free: 20.78 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001742/0.5067, allocations: 50.31 kB / 377.8 MB, free: 20.77 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.825e-05/0.5068, allocations: 2.953 kB / 377.8 MB, free: 20.77 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003096/0.5071, allocations: 132.5 kB / 377.9 MB, free: 20.7 MB / 314.7 MB Notification: Performance of pre-optimization done (n=15): time 3.036e-06/0.5071, allocations: 3.938 kB / 377.9 MB, free: 20.7 MB / 314.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005419/0.5076, allocations: 160.9 kB / 378.1 MB, free: 20.66 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.453e-05/0.5077, allocations: 87.53 kB / 378.2 MB, free: 20.56 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002817/0.508, allocations: 194.9 kB / 378.4 MB, free: 20.46 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.419e-05/0.5081, allocations: 31.36 kB / 378.4 MB, free: 20.43 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.138e-05/0.5082, allocations: 207.3 kB / 378.6 MB, free: 20.25 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.597e-05/0.5082, allocations: 27.59 kB / 378.6 MB, free: 20.24 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.681e-05/0.5083, allocations: 12.12 kB / 378.6 MB, free: 20.23 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.766e-05/0.5083, allocations: 318.9 kB / 379 MB, free: 19.92 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001786/0.5085, allocations: 55.69 kB / 379 MB, free: 19.92 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002113/0.5087, allocations: 117.4 kB / 379.1 MB, free: 19.84 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002155/0.509, allocations: 69.2 kB / 379.2 MB, free: 19.84 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.13e-06/0.509, allocations: 5.031 kB / 379.2 MB, free: 19.83 MB / 314.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005639/0.5096, allocations: 209.4 kB / 379.4 MB, free: 19.78 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.471e-05/0.5096, allocations: 6.031 kB / 379.4 MB, free: 19.78 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/0.5096, allocations: 2.375 kB / 379.4 MB, free: 19.78 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.597e-05/0.5097, allocations: 3.594 kB / 379.4 MB, free: 19.78 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003476/0.51, allocations: 41.53 kB / 379.5 MB, free: 19.78 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.393e-05/0.5101, allocations: 3.594 kB / 379.5 MB, free: 19.78 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003532/0.5104, allocations: 44.14 kB / 379.5 MB, free: 19.76 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.375e-05/0.5105, allocations: 12 kB / 379.5 MB, free: 19.76 MB / 314.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.0001343/0.5106, allocations: 131.5 kB / 379.6 MB, free: 19.65 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.705e-05/0.5107, allocations: 16.66 kB / 379.7 MB, free: 19.64 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004133/0.5111, allocations: 134 kB / 379.8 MB, free: 19.59 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.004e-06/0.5111, allocations: 6.812 kB / 379.8 MB, free: 19.59 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.5112, allocations: 0 / 379.8 MB, free: 19.59 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.5112, allocations: 1.375 kB / 379.8 MB, free: 19.59 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009284/0.5121, allocations: 483 kB / 380.3 MB, free: 19.28 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-06/0.5122, allocations: 1.406 kB / 380.3 MB, free: 19.28 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002326/0.5124, allocations: 23.33 kB / 380.3 MB, free: 19.28 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.965e-06/0.5124, allocations: 5.406 kB / 380.3 MB, free: 19.27 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.573e-05/0.5125, allocations: 9.406 kB / 380.3 MB, free: 19.27 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.22e-06/0.5125, allocations: 0 / 380.3 MB, free: 19.27 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.488e-06/0.5125, allocations: 5.609 kB / 380.3 MB, free: 19.27 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004922/0.513, allocations: 271.5 kB / 380.6 MB, free: 19.1 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.366e-05/0.5131, allocations: 92.84 kB / 380.7 MB, free: 19 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.741e-05/0.5131, allocations: 6 kB / 380.7 MB, free: 19 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003173/0.5135, allocations: 28.02 kB / 380.7 MB, free: 18.99 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001121/0.5136, allocations: 25.62 kB / 380.7 MB, free: 18.99 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.972e-05/0.5136, allocations: 8.344 kB / 380.7 MB, free: 18.99 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002016/0.5138, allocations: 143.4 kB / 380.9 MB, free: 18.91 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5139, allocations: 0 / 380.9 MB, free: 18.91 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005428/0.5144, allocations: 50.45 kB / 380.9 MB, free: 18.9 MB / 314.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.0008383/0.5153, allocations: 0.8969 MB / 381.8 MB, free: 18.13 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005153/0.5158, allocations: 149 kB / 382 MB, free: 18.12 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.17e-06/0.5158, allocations: 0 / 382 MB, free: 18.12 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002216/0.5161, allocations: 66.17 kB / 382 MB, free: 18.11 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004451/0.5165, allocations: 26.23 kB / 382.1 MB, free: 18.11 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001217/0.5178, allocations: 333 kB / 382.4 MB, free: 17.93 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002486/0.5181, allocations: 0.7436 MB / 383.1 MB, free: 17.22 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000216/0.5183, allocations: 67.34 kB / 383.2 MB, free: 17.21 MB / 314.7 MB Notification: Performance of SimCode: time 1.333e-06/0.5183, allocations: 0 / 383.2 MB, free: 17.21 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.614/3.132, allocations: 3.158 MB / 386.3 MB, free: 16.95 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Blocks.Examples.IntegerNetwork1_res.mat does not exist to compare? outputFormat=mat