Running command: translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Blocks.Examples.IntegerNetwork1") Notification: Performance of loadModel(Modelica): time 1.98/1.98, allocations: 195 MB / 203.2 MB, free: 13.8 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.11e-05/2.115e-05, allocations: 4 kB / 249.6 MB, free: 15.31 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2455/0.2456, allocations: 44.5 MB / 294.1 MB, free: 14.29 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1093/0.3549, allocations: 72.24 MB / 366.3 MB, free: 9.762 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002131/0.3552, allocations: 67.97 kB / 366.4 MB, free: 9.695 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01119/0.3664, allocations: 2.696 MB / 369.1 MB, free: 6.988 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.396e-06/0.3664, allocations: 3.938 kB / 369.1 MB, free: 6.984 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.975e-05/0.3664, allocations: 4 kB / 369.1 MB, free: 6.98 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.0008153/0.3673, allocations: 472.1 kB / 369.6 MB, free: 6.477 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/0.3673, allocations: 8.031 kB / 369.6 MB, free: 6.469 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.216e-05/0.3674, allocations: 27.72 kB / 369.6 MB, free: 6.441 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003562/0.3678, allocations: 234.7 kB / 369.8 MB, free: 6.172 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.011e-05/0.3678, allocations: 8 kB / 369.8 MB, free: 6.164 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.826e-05/0.3679, allocations: 8 kB / 369.8 MB, free: 6.156 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003158/0.3682, allocations: 112 kB / 370 MB, free: 6.047 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003656/0.3686, allocations: 173.3 kB / 370.1 MB, free: 5.855 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.177e-05/0.3686, allocations: 0 / 370.1 MB, free: 5.855 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.202e-05/0.3686, allocations: 0 / 370.1 MB, free: 5.855 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.6e-05/0.3687, allocations: 19.97 kB / 370.1 MB, free: 5.836 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001401/0.3701, allocations: 0.7548 MB / 370.9 MB, free: 5.031 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006442/0.3708, allocations: 190.7 kB / 371.1 MB, free: 4.836 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001238/0.3709, allocations: 44.84 kB / 371.1 MB, free: 4.789 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.56e-05/0.3709, allocations: 4 kB / 371.1 MB, free: 4.785 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002611/0.3712, allocations: 129 kB / 371.3 MB, free: 4.641 MB / 314.7 MB Notification: Performance of pre-optimization done (n=15): time 3.401e-06/0.3712, allocations: 0 / 371.3 MB, free: 4.641 MB / 314.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004537/0.3717, allocations: 153.6 kB / 371.4 MB, free: 4.484 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.255e-05/0.3718, allocations: 81.11 kB / 371.5 MB, free: 4.387 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002382/0.372, allocations: 186.8 kB / 371.7 MB, free: 4.191 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.42e-05/0.3721, allocations: 29.7 kB / 371.7 MB, free: 4.156 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001379/0.3722, allocations: 206.6 kB / 371.9 MB, free: 3.953 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.769e-05/0.3723, allocations: 27.7 kB / 371.9 MB, free: 3.926 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.292e-05/0.3723, allocations: 0 / 371.9 MB, free: 3.926 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001561/0.3725, allocations: 322.8 kB / 372.2 MB, free: 3.602 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001369/0.3726, allocations: 51.97 kB / 372.3 MB, free: 3.551 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001897/0.3728, allocations: 120.6 kB / 372.4 MB, free: 3.402 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001828/0.373, allocations: 67.83 kB / 372.5 MB, free: 3.336 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.676e-06/0.3731, allocations: 0 / 372.5 MB, free: 3.336 MB / 314.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000472/0.3735, allocations: 197.3 kB / 372.7 MB, free: 3.137 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.087e-05/0.3736, allocations: 8 kB / 372.7 MB, free: 3.129 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.442e-06/0.3736, allocations: 128 / 372.7 MB, free: 3.129 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.147e-05/0.3736, allocations: 4 kB / 372.7 MB, free: 3.125 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002668/0.3739, allocations: 47.91 kB / 372.7 MB, free: 3.078 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.083e-05/0.3739, allocations: 0 / 372.7 MB, free: 3.078 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002354/0.3742, allocations: 36.08 kB / 372.8 MB, free: 3.043 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.726e-05/0.3742, allocations: 12 kB / 372.8 MB, free: 3.031 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.0001368/0.3744, allocations: 129.8 kB / 372.9 MB, free: 2.898 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.008e-05/0.3744, allocations: 23.72 kB / 372.9 MB, free: 2.875 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003358/0.3748, allocations: 119.4 kB / 373 MB, free: 2.758 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.685e-06/0.3748, allocations: 4 kB / 373 MB, free: 2.754 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.907e-06/0.3748, allocations: 0 / 373 MB, free: 2.754 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.932e-06/0.3748, allocations: 0 / 373 MB, free: 2.754 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007806/0.3756, allocations: 438.9 kB / 373.5 MB, free: 2.281 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.387e-06/0.3757, allocations: 0 / 373.5 MB, free: 2.281 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001635/0.3758, allocations: 19.98 kB / 373.5 MB, free: 2.262 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.68e-06/0.3759, allocations: 4 kB / 373.5 MB, free: 2.258 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.453e-05/0.3759, allocations: 7.984 kB / 373.5 MB, free: 2.25 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.743e-06/0.3759, allocations: 3.938 kB / 373.5 MB, free: 2.246 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.342e-06/0.3759, allocations: 0 / 373.5 MB, free: 2.246 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000449/0.3764, allocations: 282.2 kB / 373.8 MB, free: 1.945 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.277e-05/0.3765, allocations: 88.92 kB / 373.9 MB, free: 1.84 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.852e-05/0.3765, allocations: 4 kB / 373.9 MB, free: 1.836 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002354/0.3768, allocations: 23.97 kB / 373.9 MB, free: 1.812 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.212e-05/0.3769, allocations: 19.97 kB / 373.9 MB, free: 1.793 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.431e-05/0.3769, allocations: 4.188 kB / 373.9 MB, free: 1.789 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001495/0.3771, allocations: 141.4 kB / 374.1 MB, free: 1.652 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.38e-07/0.3771, allocations: 3.938 kB / 374.1 MB, free: 1.648 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004361/0.3775, allocations: 36 kB / 374.1 MB, free: 1.613 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.0002032/0.3777, allocations: 123 kB / 374.2 MB, free: 1.48 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003774/0.3781, allocations: 135.8 kB / 374.4 MB, free: 1.348 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.878e-06/0.3782, allocations: 0 / 374.4 MB, free: 1.348 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001728/0.3783, allocations: 67.89 kB / 374.4 MB, free: 1.281 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003193/0.3787, allocations: 26.52 kB / 374.4 MB, free: 1.258 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006987/0.3794, allocations: 274.7 kB / 374.7 MB, free: 0.9609 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004271/0.3798, allocations: 0.736 MB / 375.4 MB, free: 200 kB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.187e-05/0.3799, allocations: 27.44 kB / 375.5 MB, free: 172 kB / 314.7 MB Notification: Performance of SimCode: time 1.446e-06/0.38, allocations: 0 / 375.5 MB, free: 172 kB / 314.7 MB Notification: Performance of Templates: time 0.005378/0.3853, allocations: 2.324 MB / 377.8 MB, free: 13.85 MB / 330.7 MB