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 1.929/1.929, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.252e-05/3.263e-05, allocations: 4 kB / 255.4 MB, free: 3.129 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09485/0.09492, allocations: 44.5 MB / 299.9 MB, free: 6.562 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3932/0.4882, allocations: 72.9 MB / 372.8 MB, free: 22.21 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002547/0.4885, allocations: 66.64 kB / 372.9 MB, free: 22.21 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01275/0.5013, allocations: 2.715 MB / 375.6 MB, free: 21.73 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.5014, allocations: 1.156 kB / 375.6 MB, free: 21.73 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.393e-05/0.5014, allocations: 8.125 kB / 375.6 MB, free: 21.73 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.0009804/0.5024, allocations: 471.6 kB / 376.1 MB, free: 21.34 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.378e-05/0.5025, allocations: 10.09 kB / 376.1 MB, free: 21.34 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001169/0.5026, allocations: 50.19 kB / 376.1 MB, free: 21.3 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.506e-05/0.5027, allocations: 26.97 kB / 376.2 MB, free: 21.29 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003482/0.503, allocations: 240.4 kB / 376.4 MB, free: 21.07 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.94e-05/0.5031, allocations: 14.03 kB / 376.4 MB, free: 21.07 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.525e-05/0.5031, allocations: 14.84 kB / 376.4 MB, free: 21.07 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004662/0.5036, allocations: 192.6 kB / 376.6 MB, free: 20.99 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.49e-05/0.5036, allocations: 1.062 kB / 376.6 MB, free: 20.99 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.809e-05/0.5037, allocations: 7.203 kB / 376.6 MB, free: 20.99 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.551e-05/0.5037, allocations: 13.94 kB / 376.6 MB, free: 20.99 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003546/0.5041, allocations: 113.5 kB / 376.7 MB, free: 20.98 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001625/0.5057, allocations: 0.8067 MB / 377.5 MB, free: 20.43 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009271/0.5067, allocations: 187.7 kB / 377.7 MB, free: 20.4 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001582/0.5069, allocations: 57.94 kB / 377.8 MB, free: 20.39 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.508e-05/0.507, allocations: 6.312 kB / 377.8 MB, free: 20.39 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002993/0.5073, allocations: 139.1 kB / 377.9 MB, free: 20.32 MB / 314.7 MB Notification: Performance of pre-optimization done (n=15): time 3.406e-06/0.5073, allocations: 0 / 377.9 MB, free: 20.32 MB / 314.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005423/0.5078, allocations: 162.8 kB / 378.1 MB, free: 20.27 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.527e-05/0.5079, allocations: 83.31 kB / 378.2 MB, free: 20.18 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002749/0.5082, allocations: 195.7 kB / 378.4 MB, free: 20.07 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.05e-05/0.5082, allocations: 30.83 kB / 378.4 MB, free: 20.04 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.559e-05/0.5083, allocations: 197.4 kB / 378.6 MB, free: 19.88 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.675e-05/0.5084, allocations: 34.67 kB / 378.6 MB, free: 19.86 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.657e-05/0.5084, allocations: 8.594 kB / 378.6 MB, free: 19.86 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.35e-05/0.5085, allocations: 324.4 kB / 378.9 MB, free: 19.54 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001688/0.5087, allocations: 54.45 kB / 379 MB, free: 19.54 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002049/0.5089, allocations: 121.8 kB / 379.1 MB, free: 19.46 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001971/0.5091, allocations: 75 kB / 379.2 MB, free: 19.45 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.566e-06/0.5091, allocations: 0.875 kB / 379.2 MB, free: 19.45 MB / 314.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005252/0.5097, allocations: 213.9 kB / 379.4 MB, free: 19.39 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.37e-05/0.5097, allocations: 6.406 kB / 379.4 MB, free: 19.39 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.085e-05/0.5097, allocations: 2.812 kB / 379.4 MB, free: 19.39 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.478e-05/0.5097, allocations: 6.609 kB / 379.4 MB, free: 19.39 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003567/0.5101, allocations: 45.14 kB / 379.5 MB, free: 19.39 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.473e-05/0.5101, allocations: 5.031 kB / 379.5 MB, free: 19.39 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003247/0.5105, allocations: 43.42 kB / 379.5 MB, free: 19.37 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.532e-05/0.5105, allocations: 9.422 kB / 379.5 MB, free: 19.37 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.0001193/0.5107, allocations: 133.9 kB / 379.6 MB, free: 19.25 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.972e-05/0.5107, allocations: 16.72 kB / 379.7 MB, free: 19.25 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003711/0.5111, allocations: 129.4 kB / 379.8 MB, free: 19.2 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.5111, allocations: 2.25 kB / 379.8 MB, free: 19.2 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/0.5112, allocations: 1.219 kB / 379.8 MB, free: 19.2 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.5112, allocations: 5.281 kB / 379.8 MB, free: 19.2 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008302/0.512, allocations: 485.4 kB / 380.3 MB, free: 18.89 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.512, allocations: 0 / 380.3 MB, free: 18.89 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002404/0.5123, allocations: 27.67 kB / 380.3 MB, free: 18.88 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.236e-06/0.5123, allocations: 1.438 kB / 380.3 MB, free: 18.88 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.32e-05/0.5123, allocations: 3.453 kB / 380.3 MB, free: 18.88 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.689e-06/0.5124, allocations: 5.219 kB / 380.3 MB, free: 18.88 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.5124, allocations: 5.203 kB / 380.3 MB, free: 18.88 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004487/0.5128, allocations: 266.1 kB / 380.6 MB, free: 18.71 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.73e-05/0.5129, allocations: 93.19 kB / 380.7 MB, free: 18.61 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.382e-05/0.513, allocations: 5.031 kB / 380.7 MB, free: 18.61 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000293/0.5133, allocations: 32.77 kB / 380.7 MB, free: 18.61 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000109/0.5134, allocations: 23.36 kB / 380.7 MB, free: 18.6 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.995e-05/0.5134, allocations: 7.031 kB / 380.7 MB, free: 18.6 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001814/0.5136, allocations: 143.9 kB / 380.9 MB, free: 18.52 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.503e-06/0.5136, allocations: 0 / 380.9 MB, free: 18.52 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004613/0.5141, allocations: 56.69 kB / 380.9 MB, free: 18.51 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.0008401/0.515, allocations: 0.8908 MB / 381.8 MB, free: 17.75 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004892/0.5155, allocations: 146.7 kB / 382 MB, free: 17.73 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.99e-06/0.5155, allocations: 5.719 kB / 382 MB, free: 17.73 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000214/0.5157, allocations: 68.31 kB / 382 MB, free: 17.73 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004159/0.5162, allocations: 23.48 kB / 382 MB, free: 17.73 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00115/0.5173, allocations: 332.5 kB / 382.4 MB, free: 17.54 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002502/0.5176, allocations: 0.744 MB / 383.1 MB, free: 16.83 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001776/0.5178, allocations: 66.92 kB / 383.2 MB, free: 16.82 MB / 314.7 MB Notification: Performance of SimCode: time 1.212e-06/0.5178, allocations: 5.031 kB / 383.2 MB, free: 16.82 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.603/3.121, allocations: 3.157 MB / 386.3 MB, free: 16.57 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