Running command: translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1") Notification: Performance of loadModel(Modelica): time 2.026/2.026, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.216e-05/3.229e-05, allocations: 4 kB / 292.1 MB, free: 8.367 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09813/0.09819, allocations: 50.41 MB / 342.5 MB, free: 5.93 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3742/0.4724, allocations: 77.81 MB / 420.4 MB, free: 396 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001976/0.4727, allocations: 63.09 kB / 420.4 MB, free: 364 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01137/0.4841, allocations: 2.675 MB / 423.1 MB, free: 14.03 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.489e-06/0.4841, allocations: 0 / 423.1 MB, free: 14.03 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.031e-05/0.4841, allocations: 4 kB / 423.1 MB, free: 14.03 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.0008557/0.485, allocations: 481.6 kB / 423.6 MB, free: 13.52 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.616e-05/0.4851, allocations: 12.03 kB / 423.6 MB, free: 13.51 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.872e-05/0.4852, allocations: 19.72 kB / 423.6 MB, free: 13.49 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003428/0.4855, allocations: 233 kB / 423.8 MB, free: 13.23 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.945e-05/0.4856, allocations: 12.03 kB / 423.8 MB, free: 13.23 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.479e-05/0.4856, allocations: 15.06 kB / 423.9 MB, free: 13.22 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00038/0.486, allocations: 174.5 kB / 424 MB, free: 13.07 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.526e-05/0.486, allocations: 7.953 kB / 424 MB, free: 13.06 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.988e-05/0.4861, allocations: 11.55 kB / 424 MB, free: 13.05 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.632e-05/0.4861, allocations: 11.92 kB / 424.1 MB, free: 13.04 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003077/0.4864, allocations: 109.2 kB / 424.2 MB, free: 12.97 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001454/0.4879, allocations: 0.7897 MB / 425 MB, free: 12.19 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003562/0.4883, allocations: 147.7 kB / 425.1 MB, free: 12.06 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001435/0.4885, allocations: 62.95 kB / 425.2 MB, free: 12.01 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.297e-05/0.4885, allocations: 0 / 425.2 MB, free: 12.01 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002724/0.4888, allocations: 135.9 kB / 425.3 MB, free: 11.88 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 2.635e-06/0.4888, allocations: 0 / 425.3 MB, free: 11.88 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004492/0.4893, allocations: 169.5 kB / 425.5 MB, free: 11.74 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.501e-05/0.4894, allocations: 81.11 kB / 425.5 MB, free: 11.64 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002391/0.4896, allocations: 174.2 kB / 425.7 MB, free: 11.49 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.738e-05/0.4897, allocations: 33.12 kB / 425.7 MB, free: 11.45 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001188/0.4898, allocations: 142.8 kB / 425.9 MB, free: 11.33 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.659e-05/0.4899, allocations: 38.39 kB / 425.9 MB, free: 11.3 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.458e-05/0.4899, allocations: 3.938 kB / 425.9 MB, free: 11.3 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001786/0.4901, allocations: 333.4 kB / 426.2 MB, free: 10.97 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001621/0.4903, allocations: 55.55 kB / 426.3 MB, free: 10.94 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002052/0.4905, allocations: 122 kB / 426.4 MB, free: 10.82 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001705/0.4907, allocations: 68.39 kB / 426.5 MB, free: 10.77 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.596e-06/0.4907, allocations: 0 / 426.5 MB, free: 10.77 MB / 346.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004878/0.4912, allocations: 210.7 kB / 426.7 MB, free: 10.59 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.446e-05/0.4912, allocations: 11.98 kB / 426.7 MB, free: 10.58 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.036e-06/0.4912, allocations: 0 / 426.7 MB, free: 10.58 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.311e-05/0.4913, allocations: 4 kB / 426.7 MB, free: 10.58 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002498/0.4915, allocations: 36.03 kB / 426.7 MB, free: 10.54 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.28e-05/0.4916, allocations: 7.938 kB / 426.7 MB, free: 10.54 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002924/0.4919, allocations: 39.12 kB / 426.8 MB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.613e-05/0.4919, allocations: 11.5 kB / 426.8 MB, free: 10.49 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.0001848/0.4922, allocations: 120.4 kB / 426.9 MB, free: 10.37 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.028e-05/0.4923, allocations: 27.67 kB / 426.9 MB, free: 10.34 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000742/0.493, allocations: 185.5 kB / 427.1 MB, free: 10.2 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.066e-05/0.4931, allocations: 4 kB / 427.1 MB, free: 10.2 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.117e-06/0.4931, allocations: 0 / 427.1 MB, free: 10.2 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.143e-06/0.4931, allocations: 4 kB / 427.1 MB, free: 10.19 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000423/0.4935, allocations: 263.7 kB / 427.4 MB, free: 9.918 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.935e-06/0.4936, allocations: 3.938 kB / 427.4 MB, free: 9.914 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002357/0.4938, allocations: 23.98 kB / 427.4 MB, free: 9.891 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.185e-05/0.4938, allocations: 3.953 kB / 427.4 MB, free: 9.887 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.345e-05/0.4939, allocations: 7.312 kB / 427.4 MB, free: 9.883 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.68e-06/0.4939, allocations: 4 kB / 427.4 MB, free: 9.879 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.62e-06/0.4939, allocations: 80 / 427.4 MB, free: 9.879 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007108/0.4947, allocations: 222 kB / 427.6 MB, free: 9.668 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.412e-05/0.4948, allocations: 96.88 kB / 427.7 MB, free: 9.555 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.705e-05/0.4948, allocations: 3.438 kB / 427.7 MB, free: 9.555 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001975/0.495, allocations: 26.91 kB / 427.8 MB, free: 9.531 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.5e-05/0.4951, allocations: 19.97 kB / 427.8 MB, free: 9.512 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.636e-05/0.4952, allocations: 7.438 kB / 427.8 MB, free: 9.508 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001759/0.4953, allocations: 136.2 kB / 427.9 MB, free: 9.391 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.95e-07/0.4954, allocations: 0 / 427.9 MB, free: 9.391 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003752/0.4957, allocations: 47.14 kB / 428 MB, free: 9.352 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.0001857/0.496, allocations: 107.9 kB / 428.1 MB, free: 9.234 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003902/0.4964, allocations: 143.9 kB / 428.2 MB, free: 9.129 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/0.4964, allocations: 4.375 kB / 428.2 MB, free: 9.125 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001814/0.4966, allocations: 70.73 kB / 428.3 MB, free: 9.074 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003559/0.4969, allocations: 36.7 kB / 428.3 MB, free: 9.047 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007727/0.4977, allocations: 260.8 kB / 428.6 MB, free: 8.805 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000476/0.4982, allocations: 0.7477 MB / 429.3 MB, free: 8.027 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001725/0.4984, allocations: 33.52 kB / 429.4 MB, free: 7.992 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.73e-05/0.4985, allocations: 15.44 kB / 429.4 MB, free: 7.977 MB / 346.7 MB Notification: Performance of SimCode: time 2.146e-06/0.4985, allocations: 0 / 429.4 MB, free: 7.977 MB / 346.7 MB Notification: Performance of Templates: time 0.006648/0.5052, allocations: 1.822 MB / 431.2 MB, free: 6.188 MB / 346.7 MB