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.784/1.784, allocations: 194.9 MB / 208.4 MB, free: 3.16 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.928e-05/2.932e-05, allocations: 7.25 kB / 255.4 MB, free: 3.172 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07509/0.07514, allocations: 44.49 MB / 299.8 MB, free: 6.621 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3171/0.3923, allocations: 72.91 MB / 372.8 MB, free: 22.53 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002014/0.3925, allocations: 67.75 kB / 372.8 MB, free: 22.53 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01122/0.4038, allocations: 2.719 MB / 375.5 MB, free: 22.05 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.051e-06/0.4038, allocations: 1.094 kB / 375.5 MB, free: 22.05 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.918e-05/0.4038, allocations: 4.406 kB / 375.5 MB, free: 22.05 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.0007108/0.4046, allocations: 476.9 kB / 376 MB, free: 21.65 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.02e-05/0.4046, allocations: 9.969 kB / 376 MB, free: 21.65 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.983e-05/0.4047, allocations: 21.97 kB / 376 MB, free: 21.64 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002783/0.405, allocations: 240.5 kB / 376.3 MB, free: 21.42 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.035e-05/0.405, allocations: 11.38 kB / 376.3 MB, free: 21.42 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.737e-05/0.4051, allocations: 13.75 kB / 376.3 MB, free: 21.42 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003905/0.4055, allocations: 193.6 kB / 376.5 MB, free: 21.35 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.208e-05/0.4055, allocations: 0 / 376.5 MB, free: 21.35 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.912e-05/0.4056, allocations: 15.66 kB / 376.5 MB, free: 21.34 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.647e-05/0.4056, allocations: 9.469 kB / 376.5 MB, free: 21.34 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003091/0.4059, allocations: 111.3 kB / 376.6 MB, free: 21.34 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001251/0.4072, allocations: 0.8033 MB / 377.4 MB, free: 20.79 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006762/0.4079, allocations: 186.2 kB / 377.6 MB, free: 20.76 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001351/0.408, allocations: 53.94 kB / 377.7 MB, free: 20.75 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.3e-05/0.4081, allocations: 12.2 kB / 377.7 MB, free: 20.74 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002534/0.4084, allocations: 127.9 kB / 377.8 MB, free: 20.68 MB / 314.7 MB Notification: Performance of pre-optimization done (n=15): time 3.2e-06/0.4084, allocations: 0 / 377.8 MB, free: 20.68 MB / 314.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004403/0.4088, allocations: 165.9 kB / 378 MB, free: 20.63 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.368e-05/0.4089, allocations: 83.11 kB / 378 MB, free: 20.54 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002316/0.4092, allocations: 198 kB / 378.2 MB, free: 20.43 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.653e-05/0.4092, allocations: 34.67 kB / 378.3 MB, free: 20.4 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.413e-05/0.4093, allocations: 197.4 kB / 378.5 MB, free: 20.23 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.409e-05/0.4094, allocations: 40.31 kB / 378.5 MB, free: 20.21 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.572e-05/0.4094, allocations: 4.531 kB / 378.5 MB, free: 20.21 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.55e-05/0.4095, allocations: 318.9 kB / 378.8 MB, free: 19.9 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001468/0.4096, allocations: 54.16 kB / 378.9 MB, free: 19.9 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001763/0.4098, allocations: 126.9 kB / 379 MB, free: 19.81 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001703/0.41, allocations: 66.53 kB / 379.1 MB, free: 19.81 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.722e-06/0.41, allocations: 1.156 kB / 379.1 MB, free: 19.81 MB / 314.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004685/0.4105, allocations: 209.4 kB / 379.3 MB, free: 19.76 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.925e-05/0.4105, allocations: 7.188 kB / 379.3 MB, free: 19.76 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.214e-06/0.4106, allocations: 3.438 kB / 379.3 MB, free: 19.76 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.763e-05/0.4106, allocations: 3.438 kB / 379.3 MB, free: 19.76 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000256/0.4109, allocations: 46.56 kB / 379.3 MB, free: 19.75 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.16e-05/0.4109, allocations: 6.469 kB / 379.3 MB, free: 19.75 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002363/0.4111, allocations: 30.77 kB / 379.4 MB, free: 19.75 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.895e-05/0.4112, allocations: 13.55 kB / 379.4 MB, free: 19.74 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 9.962e-05/0.4113, allocations: 134.6 kB / 379.5 MB, free: 19.62 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.323e-05/0.4114, allocations: 22.53 kB / 379.5 MB, free: 19.61 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003021/0.4117, allocations: 130.8 kB / 379.7 MB, free: 19.57 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.924e-06/0.4117, allocations: 6.719 kB / 379.7 MB, free: 19.57 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.398e-06/0.4117, allocations: 0 / 379.7 MB, free: 19.57 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.677e-06/0.4117, allocations: 1.531 kB / 379.7 MB, free: 19.57 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007169/0.4125, allocations: 471.9 kB / 380.1 MB, free: 19.27 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.149e-06/0.4125, allocations: 5.25 kB / 380.1 MB, free: 19.26 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001663/0.4127, allocations: 23.8 kB / 380.1 MB, free: 19.26 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.948e-06/0.4127, allocations: 5.656 kB / 380.2 MB, free: 19.25 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.153e-05/0.4127, allocations: 6.062 kB / 380.2 MB, free: 19.25 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.056e-06/0.4127, allocations: 1.953 kB / 380.2 MB, free: 19.25 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.992e-06/0.4127, allocations: 5.188 kB / 380.2 MB, free: 19.25 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004043/0.4131, allocations: 282 kB / 380.4 MB, free: 19.07 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.358e-05/0.4132, allocations: 91.38 kB / 380.5 MB, free: 18.97 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.203e-05/0.4133, allocations: 6.562 kB / 380.5 MB, free: 18.97 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000243/0.4135, allocations: 20.94 kB / 380.6 MB, free: 18.97 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.015e-05/0.4136, allocations: 28.27 kB / 380.6 MB, free: 18.97 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.706e-05/0.4137, allocations: 5.625 kB / 380.6 MB, free: 18.97 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001424/0.4138, allocations: 153.8 kB / 380.7 MB, free: 18.88 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.05e-07/0.4138, allocations: 0 / 380.7 MB, free: 18.88 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000427/0.4143, allocations: 44.53 kB / 380.8 MB, free: 18.88 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.0001642/0.4145, allocations: 116.9 kB / 380.9 MB, free: 18.78 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003867/0.4149, allocations: 142.9 kB / 381 MB, free: 18.77 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.893e-06/0.4149, allocations: 0.5 kB / 381 MB, free: 18.77 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001871/0.4151, allocations: 72.03 kB / 381.1 MB, free: 18.77 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003202/0.4154, allocations: 26.06 kB / 381.1 MB, free: 18.76 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006509/0.4161, allocations: 272.8 kB / 381.4 MB, free: 18.62 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002009/0.4163, allocations: 0.7406 MB / 382.1 MB, free: 17.92 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.663e-05/0.4164, allocations: 19.86 kB / 382.2 MB, free: 17.91 MB / 314.7 MB Notification: Performance of SimCode: time 1.601e-06/0.4164, allocations: 1.125 kB / 382.2 MB, free: 17.91 MB / 314.7 MB Notification: Performance of Templates: time 0.00516/0.4216, allocations: 2.361 MB / 384.5 MB, free: 17.73 MB / 314.7 MB