Running command: translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1") Notification: Performance of loadModel(Modelica): time 2.006/2.006, allocations: 205.8 MB / 218.9 MB, free: 9.262 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.232e-05/2.242e-05, allocations: 0 / 269.3 MB, free: 6.41 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08257/0.08262, allocations: 47.58 MB / 316.9 MB, free: 6.746 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3404/0.4231, allocations: 77.21 MB / 394.1 MB, free: 10.89 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001801/0.4233, allocations: 65.03 kB / 394.2 MB, free: 10.86 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01184/0.4352, allocations: 2.746 MB / 396.9 MB, free: 8.488 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.998e-06/0.4352, allocations: 0 / 396.9 MB, free: 8.488 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.934e-05/0.4352, allocations: 4 kB / 396.9 MB, free: 8.484 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.0008582/0.4361, allocations: 474.9 kB / 397.4 MB, free: 7.988 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.102e-05/0.4361, allocations: 15.97 kB / 397.4 MB, free: 7.973 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.948e-05/0.4362, allocations: 19.72 kB / 397.4 MB, free: 7.953 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003459/0.4366, allocations: 229.5 kB / 397.7 MB, free: 7.699 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.333e-05/0.4366, allocations: 23.19 kB / 397.7 MB, free: 7.684 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.521e-05/0.4367, allocations: 19.52 kB / 397.7 MB, free: 7.668 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004175/0.4371, allocations: 188.7 kB / 397.9 MB, free: 7.504 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.4372, allocations: 0 / 397.9 MB, free: 7.504 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.753e-05/0.4372, allocations: 7.812 kB / 397.9 MB, free: 7.5 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.58e-05/0.4372, allocations: 4 kB / 397.9 MB, free: 7.496 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003077/0.4376, allocations: 119.1 kB / 398 MB, free: 7.414 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001478/0.439, allocations: 0.7993 MB / 398.8 MB, free: 6.625 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007265/0.4398, allocations: 198.5 kB / 399 MB, free: 6.457 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001413/0.44, allocations: 49.78 kB / 399.1 MB, free: 6.418 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.751e-05/0.44, allocations: 11 kB / 399.1 MB, free: 6.41 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002867/0.4403, allocations: 128.8 kB / 399.2 MB, free: 6.285 MB / 314.7 MB Notification: Performance of pre-optimization done (n=15): time 2.759e-06/0.4403, allocations: 0 / 399.2 MB, free: 6.285 MB / 314.7 MB Notification: Performance of matching and sorting (n=15): time 0.000455/0.4408, allocations: 161.7 kB / 399.4 MB, free: 6.148 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.852e-05/0.4409, allocations: 84.8 kB / 399.4 MB, free: 6.051 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002689/0.4412, allocations: 197.9 kB / 399.6 MB, free: 5.875 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.692e-05/0.4412, allocations: 40.7 kB / 399.7 MB, free: 5.832 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000117/0.4413, allocations: 138.1 kB / 399.8 MB, free: 5.715 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.817e-05/0.4414, allocations: 33.38 kB / 399.8 MB, free: 5.688 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.685e-05/0.4414, allocations: 2.688 kB / 399.8 MB, free: 5.688 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001767/0.4416, allocations: 331.9 kB / 400.2 MB, free: 5.363 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001521/0.4418, allocations: 55.42 kB / 400.2 MB, free: 5.324 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002088/0.442, allocations: 128.8 kB / 400.4 MB, free: 5.191 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001766/0.4422, allocations: 69.44 kB / 400.4 MB, free: 5.141 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.594e-06/0.4422, allocations: 0 / 400.4 MB, free: 5.141 MB / 314.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005087/0.4428, allocations: 228 kB / 400.6 MB, free: 4.949 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.139e-05/0.4428, allocations: 8 kB / 400.6 MB, free: 4.941 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.924e-06/0.4428, allocations: 0 / 400.6 MB, free: 4.941 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.695e-05/0.4428, allocations: 4 kB / 400.7 MB, free: 4.938 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002631/0.4431, allocations: 51.97 kB / 400.7 MB, free: 4.891 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.322e-06/0.4431, allocations: 0 / 400.7 MB, free: 4.891 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002644/0.4434, allocations: 35.52 kB / 400.7 MB, free: 4.859 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.765e-05/0.4435, allocations: 8 kB / 400.7 MB, free: 4.852 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.pulseStart,booleanPulse1.pulseStart,multiSwitch1.u[1],multiSwitch1.u[2],$PRE.multiSwitch1.y,multiSwitch1.y,multiSwitch1.firstActiveIndex,$PRE.booleanPulse2.pulseStart,booleanPulse2.pulseStart,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.0001498/0.4436, allocations: 129.5 kB / 400.9 MB, free: 4.727 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.403e-05/0.4437, allocations: 31.12 kB / 400.9 MB, free: 4.699 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003353/0.444, allocations: 128.2 kB / 401 MB, free: 4.586 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.814e-06/0.4441, allocations: 4 kB / 401 MB, free: 4.582 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.126e-06/0.4441, allocations: 0 / 401 MB, free: 4.582 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.907e-06/0.4441, allocations: 0 / 401 MB, free: 4.582 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008372/0.4449, allocations: 478.3 kB / 401.5 MB, free: 4.113 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.459e-06/0.445, allocations: 4 kB / 401.5 MB, free: 4.109 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001794/0.4452, allocations: 27.36 kB / 401.5 MB, free: 4.086 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.458e-06/0.4452, allocations: 0 / 401.5 MB, free: 4.086 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.434e-05/0.4452, allocations: 7.984 kB / 401.5 MB, free: 4.078 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.4452, allocations: 0 / 401.5 MB, free: 4.078 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.251e-06/0.4452, allocations: 0 / 401.5 MB, free: 4.078 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004527/0.4457, allocations: 276.2 kB / 401.8 MB, free: 3.816 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.211e-05/0.4458, allocations: 96.77 kB / 401.9 MB, free: 3.703 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.487e-05/0.4459, allocations: 11.8 kB / 401.9 MB, free: 3.695 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002525/0.4461, allocations: 19.98 kB / 401.9 MB, free: 3.676 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.648e-05/0.4462, allocations: 19.34 kB / 402 MB, free: 3.66 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.94e-05/0.4463, allocations: 11.3 kB / 402 MB, free: 3.652 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001709/0.4465, allocations: 142.9 kB / 402.1 MB, free: 3.531 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.902e-06/0.4465, allocations: 4 kB / 402.1 MB, free: 3.527 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004337/0.4469, allocations: 51 kB / 402.2 MB, free: 3.48 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.pulseStart,multiSwitch1.u[2],multiSwitch1.y,multiSwitch1.firstActiveIndex,booleanPulse2.pulseStart,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.0001919/0.4471, allocations: 118.3 kB / 402.3 MB, free: 3.359 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003858/0.4475, allocations: 143.8 kB / 402.4 MB, free: 3.254 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.317e-06/0.4476, allocations: 0.5 kB / 402.4 MB, free: 3.254 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001962/0.4478, allocations: 70.11 kB / 402.5 MB, free: 3.203 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003269/0.4481, allocations: 35.94 kB / 402.5 MB, free: 3.172 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006796/0.4488, allocations: 251.7 kB / 402.8 MB, free: 2.938 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000446/0.4493, allocations: 0.7443 MB / 403.5 MB, free: 2.16 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001474/0.4494, allocations: 33.66 kB / 403.5 MB, free: 2.129 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.596e-05/0.4495, allocations: 19.42 kB / 403.6 MB, free: 2.109 MB / 314.7 MB Notification: Performance of SimCode: time 1.381e-06/0.4495, allocations: 0 / 403.6 MB, free: 2.109 MB / 314.7 MB Notification: Performance of Templates: time 0.006774/0.4563, allocations: 1.79 MB / 405.3 MB, free: 344 kB / 314.7 MB