Running command: translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Blocks.Examples.IntegerNetwork1") Notification: Performance of loadModel(Modelica): time 1.718/1.718, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.943e-05/2.989e-05, allocations: 0 / 225 MB, free: 2.793 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2131/0.2132, allocations: 38.77 MB / 263.7 MB, free: 9.871 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1037/0.317, allocations: 67.6 MB / 331.3 MB, free: 6.168 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000187/0.3172, allocations: 63.97 kB / 331.4 MB, free: 6.105 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01189/0.3291, allocations: 2.731 MB / 334.1 MB, free: 3.363 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.478e-06/0.3291, allocations: 0 / 334.1 MB, free: 3.363 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.936e-05/0.3292, allocations: 4 kB / 334.1 MB, free: 3.359 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.0008463/0.33, allocations: 480 kB / 334.6 MB, free: 2.844 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/0.3301, allocations: 12.03 kB / 334.6 MB, free: 2.832 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.804e-05/0.3302, allocations: 19.72 kB / 334.6 MB, free: 2.812 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003579/0.3305, allocations: 235.5 kB / 334.9 MB, free: 2.539 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.263e-05/0.3306, allocations: 16 kB / 334.9 MB, free: 2.523 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.215e-05/0.3306, allocations: 16 kB / 334.9 MB, free: 2.508 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004093/0.3311, allocations: 201.2 kB / 335.1 MB, free: 2.293 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.3311, allocations: 0 / 335.1 MB, free: 2.293 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.558e-05/0.3311, allocations: 8 kB / 335.1 MB, free: 2.285 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.391e-05/0.3312, allocations: 4 kB / 335.1 MB, free: 2.281 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003026/0.3315, allocations: 119.8 kB / 335.2 MB, free: 2.164 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001463/0.3329, allocations: 0.8052 MB / 336 MB, free: 1.297 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007086/0.3337, allocations: 186.7 kB / 336.2 MB, free: 1.105 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001407/0.3338, allocations: 52.83 kB / 336.3 MB, free: 1.051 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.435e-05/0.3339, allocations: 7.984 kB / 336.3 MB, free: 1.043 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002927/0.3342, allocations: 143.7 kB / 336.4 MB, free: 0.8867 MB / 282.7 MB Notification: Performance of pre-optimization done (n=15): time 3.383e-06/0.3342, allocations: 4 kB / 336.4 MB, free: 0.8828 MB / 282.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004515/0.3347, allocations: 157.4 kB / 336.6 MB, free: 0.7227 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.994e-05/0.3348, allocations: 81.11 kB / 336.7 MB, free: 0.625 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002812/0.3351, allocations: 206 kB / 336.9 MB, free: 428 kB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.629e-05/0.3351, allocations: 37.69 kB / 336.9 MB, free: 384 kB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001386/0.3353, allocations: 190.8 kB / 337.1 MB, free: 192 kB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.543e-05/0.3353, allocations: 39.59 kB / 337.1 MB, free: 152 kB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.396e-05/0.3354, allocations: 0 / 337.1 MB, free: 152 kB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001837/0.3356, allocations: 318.8 kB / 337.4 MB, free: 15.83 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001525/0.3357, allocations: 59.98 kB / 337.5 MB, free: 15.77 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002096/0.336, allocations: 120.5 kB / 337.6 MB, free: 15.62 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001727/0.3361, allocations: 67.95 kB / 337.7 MB, free: 15.55 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.244e-06/0.3362, allocations: 3.953 kB / 337.7 MB, free: 15.55 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004961/0.3367, allocations: 209.3 kB / 337.9 MB, free: 15.34 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.964e-05/0.3367, allocations: 4 kB / 337.9 MB, free: 15.34 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/0.3367, allocations: 4 kB / 337.9 MB, free: 15.33 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.79e-05/0.3368, allocations: 4 kB / 337.9 MB, free: 15.33 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002944/0.3371, allocations: 48.16 kB / 337.9 MB, free: 15.28 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.576e-05/0.3371, allocations: 4 kB / 337.9 MB, free: 15.28 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002472/0.3374, allocations: 39.81 kB / 338 MB, free: 15.24 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.778e-05/0.3374, allocations: 8 kB / 338 MB, free: 15.23 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.0001396/0.3376, allocations: 127.1 kB / 338.1 MB, free: 15.1 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.315e-05/0.3376, allocations: 27.67 kB / 338.1 MB, free: 15.07 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003482/0.338, allocations: 135.1 kB / 338.3 MB, free: 14.93 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.947e-06/0.338, allocations: 4 kB / 338.3 MB, free: 14.92 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.857e-06/0.338, allocations: 0 / 338.3 MB, free: 14.92 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.044e-06/0.338, allocations: 0 / 338.3 MB, free: 14.92 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008488/0.3389, allocations: 474.8 kB / 338.7 MB, free: 14.4 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.016e-06/0.3389, allocations: 7.984 kB / 338.7 MB, free: 14.39 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001736/0.3391, allocations: 23.98 kB / 338.8 MB, free: 14.37 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-06/0.3391, allocations: 0 / 338.8 MB, free: 14.37 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.196e-05/0.3392, allocations: 4.125 kB / 338.8 MB, free: 14.37 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.625e-06/0.3392, allocations: 4 kB / 338.8 MB, free: 14.36 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.035e-06/0.3392, allocations: 0 / 338.8 MB, free: 14.36 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004611/0.3397, allocations: 285.7 kB / 339.1 MB, free: 14.06 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001272/0.3398, allocations: 104.8 kB / 339.2 MB, free: 13.94 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.343e-05/0.3399, allocations: 8 kB / 339.2 MB, free: 13.93 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002454/0.3401, allocations: 19.97 kB / 339.2 MB, free: 13.91 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.098e-05/0.3402, allocations: 23.97 kB / 339.2 MB, free: 13.89 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.579e-05/0.3403, allocations: 4 kB / 339.2 MB, free: 13.88 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001836/0.3405, allocations: 152.6 kB / 339.4 MB, free: 13.73 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.47e-07/0.3405, allocations: 0 / 339.4 MB, free: 13.73 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004562/0.3409, allocations: 43.94 kB / 339.4 MB, free: 13.69 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.0002144/0.3412, allocations: 123.1 kB / 339.5 MB, free: 13.56 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000395/0.3416, allocations: 139.8 kB / 339.7 MB, free: 13.43 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 6.183e-06/0.3416, allocations: 4.453 kB / 339.7 MB, free: 13.42 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001932/0.3418, allocations: 75.91 kB / 339.7 MB, free: 13.35 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003353/0.3422, allocations: 27.97 kB / 339.8 MB, free: 13.32 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007391/0.3429, allocations: 281 kB / 340 MB, free: 13.02 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004525/0.3434, allocations: 0.7442 MB / 340.8 MB, free: 12.24 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.294e-05/0.3435, allocations: 19.44 kB / 340.8 MB, free: 12.22 MB / 298.7 MB Notification: Performance of SimCode: time 1.661e-06/0.3435, allocations: 3.938 kB / 340.8 MB, free: 12.21 MB / 298.7 MB Notification: Performance of Templates: time 0.005499/0.349, allocations: 2.36 MB / 343.2 MB, free: 9.863 MB / 298.7 MB