Running command: translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1") Notification: Performance of loadModel(Modelica): time 1.983/1.983, allocations: 225.8 MB / 239.4 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.781e-05/2.791e-05, allocations: 4 kB / 292.7 MB, free: 8.359 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09882/0.09887, allocations: 50.42 MB / 343.1 MB, free: 5.906 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3755/0.4744, allocations: 77.81 MB / 420.9 MB, free: 372 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002035/0.4746, allocations: 64.41 kB / 420.9 MB, free: 340 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01157/0.4862, allocations: 2.678 MB / 423.6 MB, free: 14.01 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.201e-06/0.4863, allocations: 0 / 423.6 MB, free: 14.01 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.107e-05/0.4863, allocations: 4 kB / 423.6 MB, free: 14.01 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0008529/0.4872, allocations: 478.5 kB / 424.1 MB, free: 13.5 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.938e-05/0.4872, allocations: 8.031 kB / 424.1 MB, free: 13.5 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.336e-05/0.4873, allocations: 23.72 kB / 424.1 MB, free: 13.47 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003426/0.4876, allocations: 230.2 kB / 424.4 MB, free: 13.22 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.257e-05/0.4877, allocations: 8.156 kB / 424.4 MB, free: 13.21 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.7e-05/0.4877, allocations: 23.42 kB / 424.4 MB, free: 13.2 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003863/0.4881, allocations: 181.1 kB / 424.6 MB, free: 13.04 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.363e-05/0.4882, allocations: 3.953 kB / 424.6 MB, free: 13.04 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.619e-05/0.4882, allocations: 7.812 kB / 424.6 MB, free: 13.04 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.197e-05/0.4882, allocations: 7.938 kB / 424.6 MB, free: 13.03 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002939/0.4885, allocations: 114.5 kB / 424.7 MB, free: 12.95 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001419/0.49, allocations: 0.7865 MB / 425.5 MB, free: 12.17 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003471/0.4903, allocations: 143 kB / 425.6 MB, free: 12.05 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001457/0.4905, allocations: 65.77 kB / 425.7 MB, free: 12 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.186e-05/0.4906, allocations: 3.984 kB / 425.7 MB, free: 11.99 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000264/0.4908, allocations: 127.9 kB / 425.8 MB, free: 11.87 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 2.93e-06/0.4909, allocations: 0 / 425.8 MB, free: 11.87 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004575/0.4913, allocations: 172.3 kB / 426 MB, free: 11.73 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.673e-05/0.4914, allocations: 77.11 kB / 426.1 MB, free: 11.63 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000242/0.4917, allocations: 177 kB / 426.2 MB, free: 11.47 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.315e-05/0.4917, allocations: 33.64 kB / 426.3 MB, free: 11.44 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001175/0.4919, allocations: 139.5 kB / 426.4 MB, free: 11.32 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.74e-05/0.4919, allocations: 47 kB / 426.4 MB, free: 11.28 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.363e-05/0.492, allocations: 3.875 kB / 426.4 MB, free: 11.28 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001773/0.4921, allocations: 330.2 kB / 426.8 MB, free: 10.96 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001432/0.4923, allocations: 59.11 kB / 426.8 MB, free: 10.91 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001929/0.4925, allocations: 113.7 kB / 426.9 MB, free: 10.8 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001725/0.4927, allocations: 71.33 kB / 427 MB, free: 10.75 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.782e-06/0.4927, allocations: 0 / 427 MB, free: 10.75 MB / 346.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000477/0.4932, allocations: 208.5 kB / 427.2 MB, free: 10.58 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.111e-05/0.4932, allocations: 8 kB / 427.2 MB, free: 10.57 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.008e-06/0.4933, allocations: 0 / 427.2 MB, free: 10.57 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.303e-05/0.4933, allocations: 4 kB / 427.2 MB, free: 10.57 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002553/0.4936, allocations: 40.22 kB / 427.3 MB, free: 10.53 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.456e-05/0.4936, allocations: 7.922 kB / 427.3 MB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000214/0.4938, allocations: 35.33 kB / 427.3 MB, free: 10.49 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.611e-05/0.4939, allocations: 8 kB / 427.3 MB, free: 10.48 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.multiSwitch.u[1],$PRE.multiSwitch.u[2],$whenCondition2,$whenCondition1,$PRE.booleanPulse1.pulseStart,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,$PRE.booleanPulse2.pulseStart,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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.0001312/0.494, allocations: 128.3 kB / 427.4 MB, free: 10.36 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.749e-05/0.4941, allocations: 23.67 kB / 427.5 MB, free: 10.33 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000482/0.4946, allocations: 206.1 kB / 427.7 MB, free: 10.17 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.797e-06/0.4946, allocations: 4 kB / 427.7 MB, free: 10.16 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.235e-06/0.4946, allocations: 0 / 427.7 MB, free: 10.16 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.4946, allocations: 0 / 427.7 MB, free: 10.16 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000365/0.495, allocations: 261.3 kB / 427.9 MB, free: 9.891 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.411e-06/0.495, allocations: 0 / 427.9 MB, free: 9.891 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001751/0.4952, allocations: 27.92 kB / 427.9 MB, free: 9.867 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.97e-06/0.4952, allocations: 3.953 kB / 428 MB, free: 9.863 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.016e-05/0.4953, allocations: 7.984 kB / 428 MB, free: 9.855 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.881e-06/0.4953, allocations: 4 kB / 428 MB, free: 9.852 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.106e-06/0.4953, allocations: 0 / 428 MB, free: 9.852 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004203/0.4957, allocations: 210.6 kB / 428.2 MB, free: 9.652 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.131e-05/0.4958, allocations: 92.88 kB / 428.3 MB, free: 9.543 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.502e-05/0.4959, allocations: 7.188 kB / 428.3 MB, free: 9.539 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001862/0.4961, allocations: 28.06 kB / 428.3 MB, free: 9.512 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.3e-05/0.4962, allocations: 23.22 kB / 428.3 MB, free: 9.492 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.381e-05/0.4962, allocations: 4 kB / 428.3 MB, free: 9.488 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001709/0.4964, allocations: 142.6 kB / 428.5 MB, free: 9.367 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.62e-07/0.4964, allocations: 0 / 428.5 MB, free: 9.367 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003527/0.4968, allocations: 42.69 kB / 428.5 MB, free: 9.332 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: 7 ($whenCondition2,$whenCondition1,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001939/0.497, allocations: 106.7 kB / 428.6 MB, free: 9.219 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003795/0.4974, allocations: 144.5 kB / 428.7 MB, free: 9.109 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.801e-06/0.4974, allocations: 0 / 428.7 MB, free: 9.109 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001827/0.4976, allocations: 72.48 kB / 428.8 MB, free: 9.059 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003373/0.4979, allocations: 31.16 kB / 428.8 MB, free: 9.035 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006815/0.4986, allocations: 268.2 kB / 429.1 MB, free: 8.785 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004606/0.4991, allocations: 0.7437 MB / 429.9 MB, free: 8.012 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001643/0.4993, allocations: 37.52 kB / 429.9 MB, free: 7.973 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.443e-05/0.4994, allocations: 15.44 kB / 429.9 MB, free: 7.957 MB / 346.7 MB Notification: Performance of SimCode: time 1.479e-06/0.4994, allocations: 0 / 429.9 MB, free: 7.957 MB / 346.7 MB Notification: Performance of Templates: time 0.006592/0.506, allocations: 1.822 MB / 431.7 MB, free: 6.172 MB / 346.7 MB