Running command: translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_3.2.1_Modelica.Blocks.Examples.RealNetwork1") Notification: Performance of loadModel(Modelica): time 1.716/1.716, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.829e-05/2.837e-05, allocations: 0 / 225 MB, free: 2.352 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2089/0.2089, allocations: 38.76 MB / 263.8 MB, free: 9.832 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1338/0.3428, allocations: 67.24 MB / 331 MB, free: 6.496 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002114/0.343, allocations: 63.97 kB / 331.1 MB, free: 6.434 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01264/0.3557, allocations: 2.599 MB / 333.7 MB, free: 3.824 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.849e-06/0.3558, allocations: 0 / 333.7 MB, free: 3.824 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.172e-05/0.3558, allocations: 8 kB / 333.7 MB, free: 3.816 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.001437/0.3573, allocations: 475.5 kB / 334.1 MB, free: 3.301 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.63e-05/0.3574, allocations: 12.03 kB / 334.1 MB, free: 3.289 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000115/0.3575, allocations: 27.66 kB / 334.2 MB, free: 3.262 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005252/0.3581, allocations: 234.4 kB / 334.4 MB, free: 2.992 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.222e-05/0.3581, allocations: 12.28 kB / 334.4 MB, free: 2.98 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.661e-05/0.3582, allocations: 27.88 kB / 334.4 MB, free: 2.953 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000611/0.3588, allocations: 174.7 kB / 334.6 MB, free: 2.766 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.132e-05/0.3589, allocations: 4 kB / 334.6 MB, free: 2.762 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.868e-05/0.3589, allocations: 4 kB / 334.6 MB, free: 2.758 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.944e-05/0.359, allocations: 4 kB / 334.6 MB, free: 2.754 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004931/0.3595, allocations: 115.9 kB / 334.7 MB, free: 2.641 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002387/0.3619, allocations: 0.7975 MB / 335.5 MB, free: 1.781 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005872/0.3626, allocations: 145.1 kB / 335.7 MB, free: 1.621 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002567/0.3628, allocations: 61.83 kB / 335.7 MB, free: 1.555 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.416e-05/0.3629, allocations: 4.156 kB / 335.7 MB, free: 1.551 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004754/0.3634, allocations: 135.7 kB / 335.9 MB, free: 1.402 MB / 282.7 MB Notification: Performance of pre-optimization done (n=15): time 4.862e-06/0.3635, allocations: 0 / 335.9 MB, free: 1.402 MB / 282.7 MB Notification: Performance of matching and sorting (n=15): time 0.0007459/0.3642, allocations: 165.4 kB / 336 MB, free: 1.234 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.931e-05/0.3643, allocations: 85.05 kB / 336.1 MB, free: 1.133 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004566/0.3648, allocations: 182 kB / 336.3 MB, free: 0.9453 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.309e-05/0.3649, allocations: 33.7 kB / 336.3 MB, free: 0.9062 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002107/0.3651, allocations: 140.2 kB / 336.5 MB, free: 0.7656 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001057/0.3653, allocations: 47.36 kB / 336.5 MB, free: 0.7188 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.416e-05/0.3653, allocations: 0 / 336.5 MB, free: 0.7188 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002599/0.3656, allocations: 334.8 kB / 336.8 MB, free: 392 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002902/0.3659, allocations: 63.98 kB / 336.9 MB, free: 328 kB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003484/0.3663, allocations: 106.8 kB / 337 MB, free: 196 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003291/0.3666, allocations: 67.91 kB / 337.1 MB, free: 128 kB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.079e-05/0.3667, allocations: 4 kB / 337.1 MB, free: 124 kB / 282.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000867/0.3676, allocations: 205.3 kB / 337.3 MB, free: 15.91 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.223e-05/0.3676, allocations: 8 kB / 337.3 MB, free: 15.91 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.438e-05/0.3676, allocations: 3.984 kB / 337.3 MB, free: 15.9 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.44e-05/0.3677, allocations: 4 kB / 337.3 MB, free: 15.9 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004246/0.3681, allocations: 44.11 kB / 337.3 MB, free: 15.86 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.35e-05/0.3682, allocations: 0 / 337.3 MB, free: 15.86 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003855/0.3686, allocations: 39.81 kB / 337.4 MB, free: 15.82 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.732e-05/0.3686, allocations: 12 kB / 337.4 MB, free: 15.8 MB / 298.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.pulsStart,booleanPulse1.pulsStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,$PRE.booleanPulse2.pulsStart,booleanPulse2.pulsStart) * 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.0001938/0.3689, allocations: 121.5 kB / 337.5 MB, free: 15.68 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.395e-05/0.369, allocations: 23.8 kB / 337.5 MB, free: 15.66 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008666/0.3699, allocations: 198.9 kB / 337.7 MB, free: 15.45 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.345e-06/0.3699, allocations: 0 / 337.7 MB, free: 15.45 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.579e-06/0.3699, allocations: 4 kB / 337.7 MB, free: 15.45 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.385e-05/0.3699, allocations: 112 / 337.7 MB, free: 15.45 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005955/0.3706, allocations: 269.4 kB / 338 MB, free: 15.14 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.73e-06/0.3706, allocations: 0 / 338 MB, free: 15.14 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003206/0.3709, allocations: 27.98 kB / 338 MB, free: 15.11 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.929e-06/0.371, allocations: 0 / 338 MB, free: 15.11 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.819e-05/0.371, allocations: 4 kB / 338 MB, free: 15.11 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.454e-05/0.371, allocations: 7.938 kB / 338 MB, free: 15.1 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.07e-06/0.3711, allocations: 0 / 338 MB, free: 15.1 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007419/0.3718, allocations: 211.3 kB / 338.2 MB, free: 14.86 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002146/0.3721, allocations: 108.8 kB / 338.3 MB, free: 14.74 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.591e-05/0.3722, allocations: 4 kB / 338.3 MB, free: 14.73 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003547/0.3725, allocations: 27.97 kB / 338.4 MB, free: 14.71 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001129/0.3727, allocations: 20.06 kB / 338.4 MB, free: 14.69 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.228e-05/0.3728, allocations: 7.938 kB / 338.4 MB, free: 14.68 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000303/0.3731, allocations: 136.7 kB / 338.5 MB, free: 14.55 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.196e-06/0.3731, allocations: 0 / 338.5 MB, free: 14.55 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000681/0.3738, allocations: 43.98 kB / 338.6 MB, free: 14.5 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: 7 ($whenCondition2,$whenCondition1,booleanPulse1.pulsStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,booleanPulse2.pulsStart) * 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.0002522/0.3741, allocations: 115.1 kB / 338.7 MB, free: 14.38 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006342/0.3747, allocations: 139.9 kB / 338.8 MB, free: 14.25 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.92e-06/0.3748, allocations: 0 / 338.8 MB, free: 14.25 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003109/0.3751, allocations: 67.92 kB / 338.9 MB, free: 14.18 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006121/0.3757, allocations: 40.78 kB / 338.9 MB, free: 14.14 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001168/0.3769, allocations: 267.2 kB / 339.2 MB, free: 13.86 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006169/0.3776, allocations: 0.7476 MB / 339.9 MB, free: 13.07 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003043/0.3779, allocations: 37.52 kB / 340 MB, free: 13.04 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001141/0.3781, allocations: 19.44 kB / 340 MB, free: 13.02 MB / 298.7 MB Notification: Performance of SimCode: time 2.344e-06/0.3781, allocations: 0 / 340 MB, free: 13.02 MB / 298.7 MB Notification: Performance of Templates: time 0.01124/0.3893, allocations: 1.805 MB / 341.8 MB, free: 11.23 MB / 298.7 MB