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 2.122/2.122, allocations: 194.9 MB / 208.4 MB, free: 3.238 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.623e-05/2.647e-05, allocations: 3.156 kB / 255.3 MB, free: 3.195 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07858/0.07862, allocations: 44.5 MB / 299.8 MB, free: 6.641 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3244/0.403, allocations: 72.52 MB / 372.3 MB, free: 22.23 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002157/0.4033, allocations: 66.14 kB / 372.4 MB, free: 22.23 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01129/0.4146, allocations: 2.59 MB / 375 MB, free: 21.76 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.912e-06/0.4147, allocations: 4 kB / 375 MB, free: 21.76 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.376e-05/0.4147, allocations: 8.281 kB / 375 MB, free: 21.75 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.0007308/0.4154, allocations: 480.4 kB / 375.5 MB, free: 21.35 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/0.4155, allocations: 9.812 kB / 375.5 MB, free: 21.35 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.841e-05/0.4156, allocations: 22.59 kB / 375.5 MB, free: 21.34 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002758/0.4159, allocations: 233 kB / 375.7 MB, free: 21.12 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.761e-05/0.4159, allocations: 10.83 kB / 375.8 MB, free: 21.12 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.497e-05/0.416, allocations: 13.69 kB / 375.8 MB, free: 21.12 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003692/0.4163, allocations: 182.4 kB / 375.9 MB, free: 21.06 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.4164, allocations: 4 kB / 375.9 MB, free: 21.05 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.541e-05/0.4164, allocations: 5.938 kB / 376 MB, free: 21.05 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.431e-05/0.4164, allocations: 9 kB / 376 MB, free: 21.05 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003064/0.4168, allocations: 120.2 kB / 376.1 MB, free: 21.04 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001257/0.418, allocations: 0.7928 MB / 376.9 MB, free: 20.5 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003389/0.4184, allocations: 140.5 kB / 377 MB, free: 20.45 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001347/0.4185, allocations: 63.7 kB / 377.1 MB, free: 20.43 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.423e-05/0.4186, allocations: 2.906 kB / 377.1 MB, free: 20.43 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002435/0.4189, allocations: 142.8 kB / 377.2 MB, free: 20.36 MB / 314.7 MB Notification: Performance of pre-optimization done (n=15): time 3.572e-06/0.4189, allocations: 0 / 377.2 MB, free: 20.36 MB / 314.7 MB Notification: Performance of matching and sorting (n=15): time 0.000432/0.4193, allocations: 172 kB / 377.4 MB, free: 20.3 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.601e-05/0.4194, allocations: 82.7 kB / 377.5 MB, free: 20.21 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002204/0.4196, allocations: 173.9 kB / 377.6 MB, free: 20.11 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.869e-05/0.4197, allocations: 31.41 kB / 377.7 MB, free: 20.08 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.257e-05/0.4197, allocations: 214.6 kB / 377.9 MB, free: 19.91 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.613e-05/0.4198, allocations: 40.47 kB / 377.9 MB, free: 19.88 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.294e-05/0.4198, allocations: 1.156 kB / 377.9 MB, free: 19.88 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.855e-05/0.4199, allocations: 319.3 kB / 378.2 MB, free: 19.57 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001445/0.4201, allocations: 56.19 kB / 378.3 MB, free: 19.57 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001719/0.4202, allocations: 123.3 kB / 378.4 MB, free: 19.5 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001664/0.4204, allocations: 61.89 kB / 378.5 MB, free: 19.5 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.526e-06/0.4204, allocations: 1 kB / 378.5 MB, free: 19.5 MB / 314.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004662/0.4209, allocations: 212.4 kB / 378.7 MB, free: 19.45 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.285e-05/0.421, allocations: 6.406 kB / 378.7 MB, free: 19.45 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.008e-05/0.421, allocations: 2.281 kB / 378.7 MB, free: 19.45 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.116e-05/0.421, allocations: 6.203 kB / 378.7 MB, free: 19.44 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002702/0.4213, allocations: 38.69 kB / 378.7 MB, free: 19.44 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.197e-05/0.4213, allocations: 3.219 kB / 378.7 MB, free: 19.44 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002436/0.4216, allocations: 38.23 kB / 378.8 MB, free: 19.43 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.845e-05/0.4216, allocations: 8.781 kB / 378.8 MB, free: 19.43 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 9.557e-05/0.4217, allocations: 118.9 kB / 378.9 MB, free: 19.32 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.555e-05/0.4218, allocations: 26.31 kB / 378.9 MB, free: 19.3 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004708/0.4223, allocations: 183.1 kB / 379.1 MB, free: 19.26 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.055e-06/0.4223, allocations: 1.281 kB / 379.1 MB, free: 19.26 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.678e-06/0.4223, allocations: 4.953 kB / 379.1 MB, free: 19.25 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/0.4223, allocations: 5.156 kB / 379.1 MB, free: 19.25 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003096/0.4227, allocations: 272.9 kB / 379.4 MB, free: 19.05 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.622e-06/0.4227, allocations: 0 / 379.4 MB, free: 19.05 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001809/0.4229, allocations: 27.02 kB / 379.4 MB, free: 19.05 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.246e-06/0.4229, allocations: 1.25 kB / 379.4 MB, free: 19.05 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.181e-05/0.4229, allocations: 6.406 kB / 379.4 MB, free: 19.05 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.162e-06/0.4229, allocations: 1.922 kB / 379.4 MB, free: 19.05 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.442e-06/0.4229, allocations: 1.156 kB / 379.4 MB, free: 19.05 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003782/0.4233, allocations: 216.7 kB / 379.6 MB, free: 18.94 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.876e-05/0.4234, allocations: 96.34 kB / 379.7 MB, free: 18.84 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.713e-05/0.4234, allocations: 8.719 kB / 379.7 MB, free: 18.83 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000188/0.4236, allocations: 22.69 kB / 379.7 MB, free: 18.83 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.7e-05/0.4237, allocations: 25.69 kB / 379.8 MB, free: 18.82 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.393e-05/0.4238, allocations: 3.812 kB / 379.8 MB, free: 18.82 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001455/0.4239, allocations: 143.9 kB / 379.9 MB, free: 18.75 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.82e-07/0.4239, allocations: 0 / 379.9 MB, free: 18.75 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003867/0.4243, allocations: 45.22 kB / 380 MB, free: 18.74 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.0001532/0.4245, allocations: 103 kB / 380.1 MB, free: 18.65 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003897/0.4249, allocations: 150.2 kB / 380.2 MB, free: 18.64 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.362e-06/0.4249, allocations: 5.25 kB / 380.2 MB, free: 18.64 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001785/0.4251, allocations: 74.19 kB / 380.3 MB, free: 18.63 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003492/0.4255, allocations: 33.64 kB / 380.3 MB, free: 18.63 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006936/0.4262, allocations: 286 kB / 380.6 MB, free: 18.48 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002138/0.4264, allocations: 0.7415 MB / 381.3 MB, free: 17.78 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.315e-05/0.4265, allocations: 23.88 kB / 381.4 MB, free: 17.77 MB / 314.7 MB Notification: Performance of SimCode: time 1.836e-06/0.4265, allocations: 0 / 381.4 MB, free: 17.77 MB / 314.7 MB Notification: Performance of Templates: time 0.005696/0.4323, allocations: 2.381 MB / 383.7 MB, free: 17.6 MB / 314.7 MB