Running command: translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1") Notification: Performance of loadModel(Modelica): time 2.101/2.101, allocations: 225.8 MB / 239.4 MB, free: 1.25 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 5.13e-05/5.147e-05, allocations: 7.938 kB / 292.7 MB, free: 11.46 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1032, allocations: 50.41 MB / 343.1 MB, free: 9.07 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.448/0.5512, allocations: 77.99 MB / 421 MB, free: 8.316 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001778/0.5514, allocations: 64.8 kB / 421.1 MB, free: 8.316 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01045/0.5619, allocations: 2.809 MB / 423.9 MB, free: 7.812 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.995e-06/0.562, allocations: 3.938 kB / 423.9 MB, free: 7.809 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.88e-05/0.562, allocations: 7.844 kB / 423.9 MB, free: 7.805 MB / 330.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.0006704/0.5627, allocations: 473.7 kB / 424.4 MB, free: 7.414 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/0.5627, allocations: 11.59 kB / 424.4 MB, free: 7.414 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.303e-05/0.5628, allocations: 27.2 kB / 424.4 MB, free: 7.398 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002507/0.5631, allocations: 240.1 kB / 424.7 MB, free: 7.18 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.464e-05/0.5631, allocations: 11 kB / 424.7 MB, free: 7.18 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.219e-05/0.5631, allocations: 15.31 kB / 424.7 MB, free: 7.18 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003457/0.5635, allocations: 187.3 kB / 424.9 MB, free: 7.113 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.5635, allocations: 3.938 kB / 424.9 MB, free: 7.109 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.406e-05/0.5636, allocations: 7.594 kB / 424.9 MB, free: 7.109 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.177e-05/0.5636, allocations: 7.859 kB / 424.9 MB, free: 7.105 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002614/0.5639, allocations: 119.8 kB / 425 MB, free: 7.102 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001116/0.565, allocations: 0.7954 MB / 425.8 MB, free: 6.551 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006522/0.5657, allocations: 195.4 kB / 426 MB, free: 6.52 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001274/0.5658, allocations: 48.39 kB / 426 MB, free: 6.512 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.6e-05/0.5659, allocations: 0 / 426 MB, free: 6.512 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002206/0.5661, allocations: 139.3 kB / 426.2 MB, free: 6.445 MB / 330.7 MB Notification: Performance of pre-optimization done (n=15): time 2.964e-06/0.5661, allocations: 3.938 kB / 426.2 MB, free: 6.441 MB / 330.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003787/0.5665, allocations: 156 kB / 426.3 MB, free: 6.398 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.194e-05/0.5666, allocations: 88.3 kB / 426.4 MB, free: 6.301 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001913/0.5668, allocations: 200.1 kB / 426.6 MB, free: 6.188 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.35e-05/0.5668, allocations: 32.67 kB / 426.6 MB, free: 6.156 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.105e-05/0.5669, allocations: 136.6 kB / 426.8 MB, free: 6.051 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.76e-05/0.5669, allocations: 28.77 kB / 426.8 MB, free: 6.039 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.419e-05/0.567, allocations: 7.625 kB / 426.8 MB, free: 6.035 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.236e-05/0.567, allocations: 327.4 kB / 427.1 MB, free: 5.723 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001312/0.5672, allocations: 61.27 kB / 427.2 MB, free: 5.719 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001537/0.5674, allocations: 119.8 kB / 427.3 MB, free: 5.641 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001482/0.5675, allocations: 75.55 kB / 427.4 MB, free: 5.629 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.609e-06/0.5675, allocations: 0 / 427.4 MB, free: 5.629 MB / 330.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004153/0.568, allocations: 213.3 kB / 427.6 MB, free: 5.578 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/0.568, allocations: 11.7 kB / 427.6 MB, free: 5.574 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.965e-06/0.568, allocations: 7.812 kB / 427.6 MB, free: 5.57 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.683e-05/0.568, allocations: 3.844 kB / 427.6 MB, free: 5.57 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002276/0.5683, allocations: 39.12 kB / 427.7 MB, free: 5.566 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.087e-05/0.5683, allocations: 3.656 kB / 427.7 MB, free: 5.566 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002175/0.5685, allocations: 38.88 kB / 427.7 MB, free: 5.555 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.344e-05/0.5686, allocations: 13.62 kB / 427.7 MB, free: 5.555 MB / 330.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 8.836e-05/0.5687, allocations: 129 kB / 427.8 MB, free: 5.438 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.793e-05/0.5687, allocations: 19.47 kB / 427.9 MB, free: 5.43 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002802/0.569, allocations: 140.6 kB / 428 MB, free: 5.383 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.872e-06/0.569, allocations: 0 / 428 MB, free: 5.383 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.5691, allocations: 0 / 428 MB, free: 5.383 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.508e-06/0.5691, allocations: 3.812 kB / 428 MB, free: 5.383 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006667/0.5697, allocations: 475.9 kB / 428.5 MB, free: 5.078 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.825e-06/0.5698, allocations: 3.875 kB / 428.5 MB, free: 5.078 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001727/0.57, allocations: 25.83 kB / 428.5 MB, free: 5.07 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.809e-06/0.57, allocations: 0 / 428.5 MB, free: 5.07 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.195e-05/0.57, allocations: 5.281 kB / 428.5 MB, free: 5.07 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.843e-06/0.57, allocations: 7.688 kB / 428.5 MB, free: 5.066 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.058e-06/0.57, allocations: 0 / 428.5 MB, free: 5.066 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003675/0.5704, allocations: 279.4 kB / 428.8 MB, free: 4.895 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.19e-05/0.5705, allocations: 103 kB / 428.9 MB, free: 4.785 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.132e-05/0.5705, allocations: 7.562 kB / 428.9 MB, free: 4.781 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002578/0.5708, allocations: 28.75 kB / 428.9 MB, free: 4.777 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.242e-05/0.5709, allocations: 20.36 kB / 428.9 MB, free: 4.777 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.245e-05/0.5709, allocations: 3.844 kB / 428.9 MB, free: 4.777 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001226/0.5711, allocations: 143.1 kB / 429.1 MB, free: 4.699 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.03e-07/0.5711, allocations: 0 / 429.1 MB, free: 4.699 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004081/0.5715, allocations: 48.38 kB / 429.1 MB, free: 4.695 MB / 330.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.0001483/0.5717, allocations: 109.2 kB / 429.2 MB, free: 4.605 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003312/0.572, allocations: 149.3 kB / 429.4 MB, free: 4.59 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.492e-06/0.572, allocations: 0 / 429.4 MB, free: 4.59 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001574/0.5722, allocations: 68.56 kB / 429.4 MB, free: 4.586 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003049/0.5725, allocations: 27.81 kB / 429.5 MB, free: 4.582 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005769/0.5731, allocations: 256 kB / 429.7 MB, free: 4.457 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004778/0.5736, allocations: 0.7405 MB / 430.5 MB, free: 19.75 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001396/0.5738, allocations: 35.36 kB / 430.5 MB, free: 19.75 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.329e-05/0.5738, allocations: 23 kB / 430.5 MB, free: 19.74 MB / 346.7 MB Notification: Performance of SimCode: time 1.313e-06/0.5739, allocations: 0 / 430.5 MB, free: 19.74 MB / 346.7 MB Notification: Performance of Templates: time 0.006118/0.58, allocations: 1.796 MB / 432.3 MB, free: 19.2 MB / 346.7 MB