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_cpp_Modelica.Blocks.Examples.RealNetwork1") Notification: Performance of loadModel(Modelica): time 1.801/1.801, allocations: 194.9 MB / 208.4 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.899e-05/2.92e-05, allocations: 2.312 kB / 255.3 MB, free: 3.207 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07755/0.0776, allocations: 44.51 MB / 299.9 MB, free: 6.645 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3174/0.3951, allocations: 72.53 MB / 372.4 MB, free: 21.82 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002067/0.3953, allocations: 65.44 kB / 372.4 MB, free: 21.82 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01059/0.4059, allocations: 2.598 MB / 375 MB, free: 21.34 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.007e-06/0.406, allocations: 0 / 375 MB, free: 21.34 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.949e-05/0.406, allocations: 8.125 kB / 375 MB, free: 21.34 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.0006774/0.4067, allocations: 475.6 kB / 375.5 MB, free: 20.94 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.04e-05/0.4068, allocations: 8.719 kB / 375.5 MB, free: 20.94 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.775e-05/0.4069, allocations: 23.31 kB / 375.5 MB, free: 20.93 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002592/0.4071, allocations: 232.4 kB / 375.8 MB, free: 20.71 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.891e-05/0.4072, allocations: 10.25 kB / 375.8 MB, free: 20.71 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.562e-05/0.4072, allocations: 16.5 kB / 375.8 MB, free: 20.71 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003629/0.4076, allocations: 180.2 kB / 376 MB, free: 20.64 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.244e-05/0.4076, allocations: 0.5938 kB / 376 MB, free: 20.64 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.3e-05/0.4077, allocations: 4.969 kB / 376 MB, free: 20.64 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.463e-05/0.4077, allocations: 11.94 kB / 376 MB, free: 20.64 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002901/0.408, allocations: 110.2 kB / 376.1 MB, free: 20.64 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001216/0.4092, allocations: 0.7922 MB / 376.9 MB, free: 20.09 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000324/0.4096, allocations: 140.2 kB / 377 MB, free: 20.05 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000134/0.4097, allocations: 67.22 kB / 377.1 MB, free: 20.03 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.21e-05/0.4098, allocations: 7.219 kB / 377.1 MB, free: 20.02 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000241/0.41, allocations: 130.8 kB / 377.2 MB, free: 19.96 MB / 314.7 MB Notification: Performance of pre-optimization done (n=15): time 3.087e-06/0.4101, allocations: 0 / 377.2 MB, free: 19.96 MB / 314.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004135/0.4105, allocations: 173.6 kB / 377.4 MB, free: 19.91 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.558e-05/0.4105, allocations: 82.84 kB / 377.5 MB, free: 19.81 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001938/0.4107, allocations: 178.2 kB / 377.7 MB, free: 19.71 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.745e-05/0.4108, allocations: 32.34 kB / 377.7 MB, free: 19.68 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.301e-05/0.4109, allocations: 203.5 kB / 377.9 MB, free: 19.51 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.353e-05/0.4109, allocations: 46.3 kB / 377.9 MB, free: 19.48 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.43e-05/0.411, allocations: 5.156 kB / 377.9 MB, free: 19.48 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.459e-05/0.411, allocations: 317.5 kB / 378.2 MB, free: 19.17 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001379/0.4112, allocations: 55.59 kB / 378.3 MB, free: 19.17 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000162/0.4113, allocations: 113 kB / 378.4 MB, free: 19.1 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001579/0.4115, allocations: 70.72 kB / 378.5 MB, free: 19.09 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.399e-06/0.4115, allocations: 0 / 378.5 MB, free: 19.09 MB / 314.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004316/0.412, allocations: 200.8 kB / 378.7 MB, free: 19.05 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.062e-05/0.412, allocations: 7.906 kB / 378.7 MB, free: 19.05 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.773e-06/0.412, allocations: 5.875 kB / 378.7 MB, free: 19.04 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.81e-05/0.4121, allocations: 7.453 kB / 378.7 MB, free: 19.04 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002326/0.4123, allocations: 35.88 kB / 378.7 MB, free: 19.04 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.148e-05/0.4123, allocations: 7.188 kB / 378.7 MB, free: 19.03 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002165/0.4126, allocations: 39.64 kB / 378.8 MB, free: 19.02 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.661e-05/0.4126, allocations: 11.25 kB / 378.8 MB, free: 19.02 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 8.145e-05/0.4127, allocations: 115.4 kB / 378.9 MB, free: 18.91 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.991e-05/0.4128, allocations: 16.03 kB / 378.9 MB, free: 18.91 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004587/0.4132, allocations: 194.3 kB / 379.1 MB, free: 18.86 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.037e-06/0.4133, allocations: 5.188 kB / 379.1 MB, free: 18.85 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.264e-06/0.4133, allocations: 5.172 kB / 379.1 MB, free: 18.85 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/0.4133, allocations: 2.078 kB / 379.1 MB, free: 18.85 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002924/0.4136, allocations: 271.4 kB / 379.4 MB, free: 18.65 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.949e-06/0.4136, allocations: 0 / 379.4 MB, free: 18.65 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001694/0.4138, allocations: 28.09 kB / 379.4 MB, free: 18.65 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.292e-06/0.4138, allocations: 1.344 kB / 379.4 MB, free: 18.65 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.914e-05/0.4138, allocations: 5.188 kB / 379.4 MB, free: 18.65 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.848e-06/0.4139, allocations: 1.375 kB / 379.4 MB, free: 18.65 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.039e-06/0.4139, allocations: 0 / 379.4 MB, free: 18.65 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003638/0.4142, allocations: 210.2 kB / 379.6 MB, free: 18.55 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.442e-05/0.4143, allocations: 99.92 kB / 379.7 MB, free: 18.44 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.776e-05/0.4144, allocations: 8.812 kB / 379.7 MB, free: 18.43 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001865/0.4145, allocations: 26.19 kB / 379.8 MB, free: 18.43 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.292e-05/0.4146, allocations: 25.7 kB / 379.8 MB, free: 18.42 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.355e-05/0.4147, allocations: 4.25 kB / 379.8 MB, free: 18.42 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001376/0.4148, allocations: 144.3 kB / 379.9 MB, free: 18.34 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.63e-07/0.4148, allocations: 0 / 379.9 MB, free: 18.34 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003541/0.4152, allocations: 37.28 kB / 380 MB, free: 18.34 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.0001455/0.4154, allocations: 107.6 kB / 380.1 MB, free: 18.25 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003649/0.4157, allocations: 146.6 kB / 380.2 MB, free: 18.24 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.972e-06/0.4158, allocations: 0 / 380.2 MB, free: 18.24 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001781/0.4159, allocations: 73.84 kB / 380.3 MB, free: 18.24 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003388/0.4163, allocations: 40.62 kB / 380.3 MB, free: 18.23 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006295/0.4169, allocations: 277.9 kB / 380.6 MB, free: 18.09 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001996/0.4172, allocations: 0.7491 MB / 381.3 MB, free: 17.39 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.903e-05/0.4173, allocations: 18.84 kB / 381.4 MB, free: 17.38 MB / 314.7 MB Notification: Performance of SimCode: time 1.423e-06/0.4173, allocations: 0 / 381.4 MB, free: 17.38 MB / 314.7 MB Notification: Performance of Templates: time 0.005178/0.4225, allocations: 2.369 MB / 383.7 MB, free: 17.2 MB / 314.7 MB