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.2_Modelica.Blocks.Examples.RealNetwork1") Notification: Performance of loadModel(Modelica): time 2.043/2.043, allocations: 194.9 MB / 208 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.78e-05/2.807e-05, allocations: 4 kB / 255.4 MB, free: 2.699 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09226/0.09231, allocations: 44.5 MB / 299.9 MB, free: 6.141 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3301/0.4225, allocations: 72.53 MB / 372.4 MB, free: 22.59 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002078/0.4228, allocations: 63.61 kB / 372.5 MB, free: 22.59 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01089/0.4337, allocations: 2.594 MB / 375.1 MB, free: 22.12 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.992e-06/0.4337, allocations: 4 kB / 375.1 MB, free: 22.12 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.988e-05/0.4337, allocations: 8.094 kB / 375.1 MB, free: 22.12 MB / 314.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.0007189/0.4345, allocations: 476.1 kB / 375.5 MB, free: 21.72 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/0.4345, allocations: 14.31 kB / 375.6 MB, free: 21.72 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.818e-05/0.4346, allocations: 21.75 kB / 375.6 MB, free: 21.71 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002721/0.4349, allocations: 226 kB / 375.8 MB, free: 21.49 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.832e-05/0.4349, allocations: 14.31 kB / 375.8 MB, free: 21.49 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.795e-05/0.435, allocations: 17.14 kB / 375.8 MB, free: 21.49 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003614/0.4354, allocations: 180.2 kB / 376 MB, free: 21.42 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.403e-05/0.4354, allocations: 3.938 kB / 376 MB, free: 21.42 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.508e-05/0.4354, allocations: 10.5 kB / 376 MB, free: 21.41 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.283e-05/0.4355, allocations: 5.594 kB / 376 MB, free: 21.41 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002869/0.4358, allocations: 113.2 kB / 376.1 MB, free: 21.41 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001258/0.437, allocations: 0.7901 MB / 376.9 MB, free: 20.87 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000327/0.4374, allocations: 142.6 kB / 377.1 MB, free: 20.82 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001334/0.4375, allocations: 59.75 kB / 377.1 MB, free: 20.8 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.516e-05/0.4376, allocations: 4.938 kB / 377.1 MB, free: 20.8 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002405/0.4379, allocations: 137.3 kB / 377.3 MB, free: 20.73 MB / 314.7 MB Notification: Performance of pre-optimization done (n=15): time 3.378e-06/0.4379, allocations: 0 / 377.3 MB, free: 20.73 MB / 314.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004137/0.4383, allocations: 169.3 kB / 377.4 MB, free: 20.68 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.476e-05/0.4384, allocations: 85.95 kB / 377.5 MB, free: 20.59 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002091/0.4386, allocations: 171.4 kB / 377.7 MB, free: 20.49 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.741e-05/0.4386, allocations: 32.3 kB / 377.7 MB, free: 20.46 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.22e-05/0.4387, allocations: 146.6 kB / 377.8 MB, free: 20.35 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.664e-05/0.4388, allocations: 55.61 kB / 377.9 MB, free: 20.32 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.469e-05/0.4388, allocations: 4.781 kB / 377.9 MB, free: 20.32 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.867e-05/0.4389, allocations: 327.9 kB / 378.2 MB, free: 20.01 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001432/0.439, allocations: 55.83 kB / 378.3 MB, free: 20.01 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001669/0.4392, allocations: 110.7 kB / 378.4 MB, free: 19.94 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001656/0.4394, allocations: 75.28 kB / 378.5 MB, free: 19.93 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.764e-06/0.4394, allocations: 1.188 kB / 378.5 MB, free: 19.93 MB / 314.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004672/0.4399, allocations: 211.6 kB / 378.7 MB, free: 19.88 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.006e-05/0.4399, allocations: 4.844 kB / 378.7 MB, free: 19.88 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.186e-06/0.4399, allocations: 2.125 kB / 378.7 MB, free: 19.88 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.44, allocations: 3.188 kB / 378.7 MB, free: 19.88 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002708/0.4403, allocations: 39.62 kB / 378.7 MB, free: 19.87 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.363e-05/0.4403, allocations: 8.938 kB / 378.7 MB, free: 19.87 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002304/0.4405, allocations: 39.98 kB / 378.8 MB, free: 19.86 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.834e-05/0.4406, allocations: 6.406 kB / 378.8 MB, free: 19.86 MB / 314.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.0001015/0.4407, allocations: 112.8 kB / 378.9 MB, free: 19.75 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.061e-05/0.4408, allocations: 20.62 kB / 378.9 MB, free: 19.74 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000489/0.4413, allocations: 193.6 kB / 379.1 MB, free: 19.69 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.927e-06/0.4413, allocations: 2.594 kB / 379.1 MB, free: 19.69 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.805e-06/0.4413, allocations: 4.953 kB / 379.1 MB, free: 19.69 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.954e-06/0.4413, allocations: 1.969 kB / 379.1 MB, free: 19.69 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002984/0.4416, allocations: 271.7 kB / 379.4 MB, free: 19.49 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.825e-06/0.4416, allocations: 0 / 379.4 MB, free: 19.49 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001792/0.4418, allocations: 28.61 kB / 379.4 MB, free: 19.49 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.005e-06/0.4419, allocations: 4.938 kB / 379.4 MB, free: 19.48 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.02e-05/0.4419, allocations: 6.219 kB / 379.4 MB, free: 19.48 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.437e-06/0.4419, allocations: 0 / 379.4 MB, free: 19.48 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.241e-06/0.4419, allocations: 1.406 kB / 379.4 MB, free: 19.48 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003768/0.4423, allocations: 213.5 kB / 379.6 MB, free: 19.38 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.676e-05/0.4424, allocations: 101.5 kB / 379.7 MB, free: 19.27 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.882e-05/0.4424, allocations: 7.906 kB / 379.7 MB, free: 19.27 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001858/0.4426, allocations: 28.16 kB / 379.8 MB, free: 19.26 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.501e-05/0.4427, allocations: 17.19 kB / 379.8 MB, free: 19.26 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.491e-05/0.4428, allocations: 8.25 kB / 379.8 MB, free: 19.25 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001498/0.4429, allocations: 144.3 kB / 379.9 MB, free: 19.18 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.87e-07/0.4429, allocations: 0 / 379.9 MB, free: 19.18 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003913/0.4433, allocations: 39.42 kB / 380 MB, free: 19.18 MB / 314.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.0001511/0.4435, allocations: 101.6 kB / 380.1 MB, free: 19.09 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003692/0.4439, allocations: 144.7 kB / 380.2 MB, free: 19.08 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.021e-06/0.4439, allocations: 384 / 380.2 MB, free: 19.08 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001741/0.4441, allocations: 79.5 kB / 380.3 MB, free: 19.07 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003498/0.4445, allocations: 40.58 kB / 380.3 MB, free: 19.07 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006523/0.4451, allocations: 252.9 kB / 380.6 MB, free: 18.95 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002227/0.4454, allocations: 0.7478 MB / 381.3 MB, free: 18.25 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001892/0.4456, allocations: 34.23 kB / 381.3 MB, free: 18.25 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.91e-05/0.4457, allocations: 17.86 kB / 381.4 MB, free: 18.24 MB / 314.7 MB Notification: Performance of SimCode: time 1.985e-06/0.4457, allocations: 0 / 381.4 MB, free: 18.24 MB / 314.7 MB Notification: Performance of Templates: time 0.006627/0.4523, allocations: 1.814 MB / 383.2 MB, free: 18.1 MB / 314.7 MB