Running command: translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1") Notification: Performance of loadModel(Modelica): time 2.037/2.037, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.414e-05/3.416e-05, allocations: 4 kB / 292.1 MB, free: 8.355 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09787/0.09793, allocations: 50.4 MB / 342.5 MB, free: 5.934 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.383/0.4809, allocations: 78.24 MB / 420.8 MB, free: 15.96 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001974/0.4812, allocations: 66.53 kB / 420.8 MB, free: 15.93 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01186/0.4931, allocations: 2.791 MB / 423.6 MB, free: 13.52 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.46e-06/0.4931, allocations: 3.938 kB / 423.6 MB, free: 13.52 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.215e-05/0.4931, allocations: 8 kB / 423.6 MB, free: 13.51 MB / 346.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.0008639/0.494, allocations: 468.9 kB / 424.1 MB, free: 13.02 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.662e-05/0.4941, allocations: 12.03 kB / 424.1 MB, free: 13.01 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.19e-05/0.4942, allocations: 23.67 kB / 424.1 MB, free: 12.98 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003606/0.4945, allocations: 239.2 kB / 424.4 MB, free: 12.72 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.065e-05/0.4946, allocations: 11.31 kB / 424.4 MB, free: 12.71 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.372e-05/0.4946, allocations: 17.88 kB / 424.4 MB, free: 12.7 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004186/0.4951, allocations: 193.3 kB / 424.6 MB, free: 12.54 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.868e-05/0.4951, allocations: 0 / 424.6 MB, free: 12.54 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.619e-05/0.4952, allocations: 10.44 kB / 424.6 MB, free: 12.53 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.902e-05/0.4952, allocations: 7.953 kB / 424.6 MB, free: 12.52 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003042/0.4956, allocations: 116.4 kB / 424.7 MB, free: 12.44 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001473/0.497, allocations: 0.794 MB / 425.5 MB, free: 11.66 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006972/0.4978, allocations: 195.3 kB / 425.7 MB, free: 11.49 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001372/0.4979, allocations: 51.47 kB / 425.8 MB, free: 11.45 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.295e-05/0.498, allocations: 3.984 kB / 425.8 MB, free: 11.45 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002848/0.4983, allocations: 138.8 kB / 425.9 MB, free: 11.32 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 3.131e-06/0.4983, allocations: 3.938 kB / 425.9 MB, free: 11.31 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004605/0.4988, allocations: 172.7 kB / 426.1 MB, free: 11.17 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.896e-05/0.4989, allocations: 81.11 kB / 426.1 MB, free: 11.07 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002744/0.4992, allocations: 192.4 kB / 426.3 MB, free: 10.9 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.881e-05/0.4992, allocations: 33.27 kB / 426.4 MB, free: 10.86 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001256/0.4993, allocations: 142.6 kB / 426.5 MB, free: 10.73 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.021e-05/0.4994, allocations: 31.06 kB / 426.5 MB, free: 10.71 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.532e-05/0.4994, allocations: 3.25 kB / 426.5 MB, free: 10.71 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001798/0.4996, allocations: 329.7 kB / 426.9 MB, free: 10.39 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001472/0.4998, allocations: 54.11 kB / 426.9 MB, free: 10.35 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002086/0.5, allocations: 124.2 kB / 427 MB, free: 10.22 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00018/0.5002, allocations: 73.78 kB / 427.1 MB, free: 10.17 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.5002, allocations: 0 / 427.1 MB, free: 10.17 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005148/0.5008, allocations: 226.7 kB / 427.3 MB, free: 9.98 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.459e-05/0.5008, allocations: 11.95 kB / 427.3 MB, free: 9.969 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.092e-06/0.5008, allocations: 0 / 427.3 MB, free: 9.969 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.868e-05/0.5008, allocations: 4 kB / 427.3 MB, free: 9.965 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002734/0.5011, allocations: 35.98 kB / 427.4 MB, free: 9.93 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.661e-05/0.5012, allocations: 12.17 kB / 427.4 MB, free: 9.918 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002526/0.5014, allocations: 35.02 kB / 427.4 MB, free: 9.887 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.891e-05/0.5015, allocations: 11.5 kB / 427.4 MB, free: 9.879 MB / 346.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.0001466/0.5016, allocations: 133.5 kB / 427.6 MB, free: 9.75 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.693e-05/0.5017, allocations: 19.81 kB / 427.6 MB, free: 9.73 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003391/0.5021, allocations: 130.5 kB / 427.7 MB, free: 9.625 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.644e-06/0.5021, allocations: 7.984 kB / 427.7 MB, free: 9.617 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.5021, allocations: 0 / 427.7 MB, free: 9.617 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.119e-06/0.5021, allocations: 0 / 427.7 MB, free: 9.617 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008555/0.503, allocations: 476.8 kB / 428.2 MB, free: 9.152 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.503, allocations: 288 / 428.2 MB, free: 9.152 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001767/0.5032, allocations: 27.94 kB / 428.2 MB, free: 9.125 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.031e-06/0.5032, allocations: 0 / 428.2 MB, free: 9.125 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.373e-05/0.5032, allocations: 7.938 kB / 428.2 MB, free: 9.117 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.83e-06/0.5033, allocations: 7.922 kB / 428.2 MB, free: 9.109 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.566e-06/0.5033, allocations: 0 / 428.2 MB, free: 9.109 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000457/0.5037, allocations: 275.7 kB / 428.5 MB, free: 8.848 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.303e-05/0.5038, allocations: 100.9 kB / 428.6 MB, free: 8.73 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.408e-05/0.5039, allocations: 7.312 kB / 428.6 MB, free: 8.727 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002511/0.5042, allocations: 23.97 kB / 428.6 MB, free: 8.703 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.913e-05/0.5043, allocations: 19.91 kB / 428.7 MB, free: 8.688 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.863e-05/0.5043, allocations: 7.312 kB / 428.7 MB, free: 8.684 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001728/0.5045, allocations: 148.3 kB / 428.8 MB, free: 8.559 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.47e-07/0.5045, allocations: 0 / 428.8 MB, free: 8.559 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000451/0.505, allocations: 47.72 kB / 428.8 MB, free: 8.516 MB / 346.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.0002238/0.5052, allocations: 114.5 kB / 429 MB, free: 8.395 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004277/0.5057, allocations: 142 kB / 429.1 MB, free: 8.289 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.181e-06/0.5057, allocations: 3.938 kB / 429.1 MB, free: 8.285 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001869/0.5059, allocations: 68.41 kB / 429.2 MB, free: 8.234 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003491/0.5062, allocations: 31.06 kB / 429.2 MB, free: 8.211 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007406/0.507, allocations: 252.2 kB / 429.4 MB, free: 7.973 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004607/0.5075, allocations: 0.7437 MB / 430.2 MB, free: 7.203 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001535/0.5076, allocations: 29.53 kB / 430.2 MB, free: 7.176 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.345e-05/0.5077, allocations: 19.42 kB / 430.2 MB, free: 7.156 MB / 346.7 MB Notification: Performance of SimCode: time 1.642e-06/0.5078, allocations: 4 kB / 430.2 MB, free: 7.152 MB / 346.7 MB Notification: Performance of Templates: time 0.01068/0.5184, allocations: 1.783 MB / 432 MB, free: 5.391 MB / 346.7 MB