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_Modelica.Blocks.Examples.IntegerNetwork1") Notification: Performance of loadModel(Modelica): time 1.899/1.899, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.799e-05/2.809e-05, allocations: 4 kB / 225 MB, free: 2.344 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.215/0.2151, allocations: 38.76 MB / 263.8 MB, free: 9.836 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1079/0.323, allocations: 67.61 MB / 331.4 MB, free: 6.133 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000215/0.3233, allocations: 63.97 kB / 331.4 MB, free: 6.07 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01222/0.3355, allocations: 2.727 MB / 334.2 MB, free: 3.332 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.918e-06/0.3356, allocations: 0 / 334.2 MB, free: 3.332 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.892e-05/0.3356, allocations: 4 kB / 334.2 MB, free: 3.328 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.0008492/0.3365, allocations: 480 kB / 334.6 MB, free: 2.812 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.992e-05/0.3365, allocations: 8.031 kB / 334.6 MB, free: 2.805 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.818e-05/0.3366, allocations: 27.72 kB / 334.7 MB, free: 2.777 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003624/0.337, allocations: 239.5 kB / 334.9 MB, free: 2.5 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.751e-05/0.337, allocations: 12 kB / 334.9 MB, free: 2.488 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.722e-05/0.3371, allocations: 20 kB / 334.9 MB, free: 2.469 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000419/0.3375, allocations: 193.2 kB / 335.1 MB, free: 2.262 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.183e-05/0.3375, allocations: 0 / 335.1 MB, free: 2.262 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.819e-05/0.3376, allocations: 8 kB / 335.1 MB, free: 2.254 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.956e-05/0.3376, allocations: 7.984 kB / 335.1 MB, free: 2.246 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003078/0.3379, allocations: 115.9 kB / 335.3 MB, free: 2.133 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001459/0.3394, allocations: 0.7935 MB / 336.1 MB, free: 1.277 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006818/0.3401, allocations: 194.7 kB / 336.2 MB, free: 1.078 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001369/0.3403, allocations: 48.84 kB / 336.3 MB, free: 1.027 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.853e-05/0.3403, allocations: 0 / 336.3 MB, free: 1.027 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002887/0.3406, allocations: 144.8 kB / 336.4 MB, free: 0.8672 MB / 282.7 MB Notification: Performance of pre-optimization done (n=15): time 2.664e-06/0.3407, allocations: 0 / 336.4 MB, free: 0.8672 MB / 282.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004666/0.3411, allocations: 169.4 kB / 336.6 MB, free: 0.6953 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.917e-05/0.3412, allocations: 85.11 kB / 336.7 MB, free: 0.5938 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002726/0.3415, allocations: 206 kB / 336.9 MB, free: 392 kB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.343e-05/0.3416, allocations: 29.7 kB / 336.9 MB, free: 356 kB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000123/0.3417, allocations: 140.3 kB / 337 MB, free: 212 kB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.277e-05/0.3418, allocations: 27.62 kB / 337.1 MB, free: 184 kB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.669e-05/0.3418, allocations: 4 kB / 337.1 MB, free: 180 kB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001912/0.342, allocations: 330.8 kB / 337.4 MB, free: 15.84 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001551/0.3422, allocations: 55.98 kB / 337.5 MB, free: 15.79 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002084/0.3424, allocations: 124.5 kB / 337.6 MB, free: 15.64 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001788/0.3426, allocations: 64.44 kB / 337.6 MB, free: 15.57 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.28e-06/0.3426, allocations: 7.953 kB / 337.6 MB, free: 15.57 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005104/0.3431, allocations: 217.2 kB / 337.9 MB, free: 15.35 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.3431, allocations: 8.25 kB / 337.9 MB, free: 15.34 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.124e-05/0.3432, allocations: 11.98 kB / 337.9 MB, free: 15.33 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.017e-05/0.3432, allocations: 4 kB / 337.9 MB, free: 15.32 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002477/0.3435, allocations: 40.03 kB / 337.9 MB, free: 15.29 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.767e-05/0.3435, allocations: 8 kB / 337.9 MB, free: 15.28 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002381/0.3437, allocations: 39.72 kB / 338 MB, free: 15.24 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.374e-05/0.3438, 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.0001389/0.344, allocations: 135.8 kB / 338.1 MB, free: 15.09 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.576e-05/0.344, allocations: 19.77 kB / 338.1 MB, free: 15.07 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003306/0.3444, allocations: 131.1 kB / 338.3 MB, free: 14.93 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.065e-06/0.3444, allocations: 0 / 338.3 MB, free: 14.93 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.625e-06/0.3444, allocations: 0 / 338.3 MB, free: 14.93 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.742e-06/0.3444, allocations: 0 / 338.3 MB, free: 14.93 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008593/0.3453, allocations: 490.3 kB / 338.7 MB, free: 14.39 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.404e-06/0.3453, allocations: 4 kB / 338.7 MB, free: 14.39 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001652/0.3455, allocations: 19.98 kB / 338.8 MB, free: 14.37 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.064e-06/0.3455, allocations: 4 kB / 338.8 MB, free: 14.37 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.866e-05/0.3455, allocations: 0 / 338.8 MB, free: 14.37 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.163e-06/0.3455, allocations: 0 / 338.8 MB, free: 14.37 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.099e-06/0.3456, allocations: 4 kB / 338.8 MB, free: 14.36 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004583/0.346, allocations: 281.8 kB / 339 MB, free: 14.06 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001262/0.3462, allocations: 104.8 kB / 339.1 MB, free: 13.94 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.292e-05/0.3462, allocations: 4 kB / 339.1 MB, free: 13.94 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002402/0.3465, allocations: 23.97 kB / 339.2 MB, free: 13.91 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.944e-05/0.3466, allocations: 23.97 kB / 339.2 MB, free: 13.89 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.646e-05/0.3466, allocations: 8 kB / 339.2 MB, free: 13.88 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001747/0.3468, allocations: 144.6 kB / 339.3 MB, free: 13.74 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.91e-07/0.3468, allocations: 0 / 339.3 MB, free: 13.74 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004233/0.3473, allocations: 47.84 kB / 339.4 MB, free: 13.7 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.0001922/0.3475, allocations: 123.2 kB / 339.5 MB, free: 13.57 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003845/0.3479, allocations: 143.8 kB / 339.7 MB, free: 13.43 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.863e-06/0.3479, allocations: 0 / 339.7 MB, free: 13.43 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000184/0.3481, allocations: 67.91 kB / 339.7 MB, free: 13.36 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000317/0.3484, allocations: 28.27 kB / 339.7 MB, free: 13.33 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006956/0.3491, allocations: 250.9 kB / 340 MB, free: 13.07 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004514/0.3496, allocations: 0.7481 MB / 340.7 MB, free: 12.29 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001475/0.3498, allocations: 33.52 kB / 340.8 MB, free: 12.25 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.138e-05/0.3499, allocations: 27.42 kB / 340.8 MB, free: 12.23 MB / 298.7 MB Notification: Performance of SimCode: time 1.472e-06/0.3499, allocations: 0 / 340.8 MB, free: 12.23 MB / 298.7 MB Notification: Performance of Templates: time 0.01016/0.36, allocations: 1.796 MB / 342.6 MB, free: 10.44 MB / 298.7 MB