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.907/1.907, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.805e-05/1.813e-05, allocations: 4 kB / 249.6 MB, free: 15.3 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2489/0.249, allocations: 44.5 MB / 294.1 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1127/0.3617, allocations: 71.87 MB / 366 MB, free: 10.14 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000205/0.3619, allocations: 63.97 kB / 366 MB, free: 10.08 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0108/0.3728, allocations: 2.571 MB / 368.6 MB, free: 7.5 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.17e-06/0.3728, allocations: 0 / 368.6 MB, free: 7.5 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.113e-05/0.3728, allocations: 4 kB / 368.6 MB, free: 7.496 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.0008457/0.3737, allocations: 483.5 kB / 369.1 MB, free: 6.977 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/0.3737, allocations: 8.031 kB / 369.1 MB, free: 6.969 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.317e-05/0.3738, allocations: 27.66 kB / 369.1 MB, free: 6.941 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003403/0.3742, allocations: 230.7 kB / 369.3 MB, free: 6.676 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.199e-05/0.3742, allocations: 8 kB / 369.3 MB, free: 6.668 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.054e-05/0.3743, allocations: 8 kB / 369.4 MB, free: 6.66 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003029/0.3746, allocations: 104.5 kB / 369.5 MB, free: 6.559 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003394/0.3749, allocations: 166.7 kB / 369.6 MB, free: 6.379 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.375, allocations: 3.938 kB / 369.6 MB, free: 6.375 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.964e-05/0.375, allocations: 0 / 369.6 MB, free: 6.375 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.628e-05/0.375, allocations: 4 kB / 369.6 MB, free: 6.371 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001366/0.3764, allocations: 0.7513 MB / 370.4 MB, free: 5.57 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003432/0.3768, allocations: 145.1 kB / 370.5 MB, free: 5.41 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001292/0.3769, allocations: 53.83 kB / 370.6 MB, free: 5.352 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.591e-05/0.377, allocations: 7.938 kB / 370.6 MB, free: 5.344 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002695/0.3773, allocations: 133.6 kB / 370.7 MB, free: 5.195 MB / 314.7 MB Notification: Performance of pre-optimization done (n=15): time 3.092e-06/0.3773, allocations: 4 kB / 370.7 MB, free: 5.191 MB / 314.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004546/0.3778, allocations: 161.4 kB / 370.9 MB, free: 5.027 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.012e-05/0.3778, allocations: 77.11 kB / 370.9 MB, free: 4.934 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002158/0.3781, allocations: 167.1 kB / 371.1 MB, free: 4.762 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.378e-05/0.3781, allocations: 29.69 kB / 371.1 MB, free: 4.727 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001561/0.3783, allocations: 198.7 kB / 371.3 MB, free: 4.531 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.675e-05/0.3783, allocations: 43.45 kB / 371.4 MB, free: 4.488 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.23e-05/0.3784, allocations: 0 / 371.4 MB, free: 4.488 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000164/0.3785, allocations: 322.8 kB / 371.7 MB, free: 4.164 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001313/0.3787, allocations: 51.98 kB / 371.7 MB, free: 4.113 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001808/0.3789, allocations: 106.7 kB / 371.8 MB, free: 3.984 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001782/0.3791, allocations: 71.89 kB / 371.9 MB, free: 3.914 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.297e-06/0.3791, allocations: 0 / 371.9 MB, free: 3.914 MB / 314.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004433/0.3795, allocations: 185.5 kB / 372.1 MB, free: 3.727 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.052e-05/0.3796, allocations: 8 kB / 372.1 MB, free: 3.719 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.591e-06/0.3796, allocations: 0 / 372.1 MB, free: 3.719 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.757e-05/0.3796, allocations: 4.094 kB / 372.1 MB, free: 3.715 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002458/0.3799, allocations: 48.05 kB / 372.2 MB, free: 3.668 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.398e-06/0.3799, allocations: 3.984 kB / 372.2 MB, free: 3.664 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002198/0.3801, allocations: 31.94 kB / 372.2 MB, free: 3.633 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.375e-05/0.3802, allocations: 11.94 kB / 372.2 MB, free: 3.621 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.000131/0.3803, allocations: 124.6 kB / 372.3 MB, free: 3.492 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.255e-05/0.3804, allocations: 23.8 kB / 372.3 MB, free: 3.469 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004556/0.3808, allocations: 171.4 kB / 372.5 MB, free: 3.297 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.748e-06/0.3809, allocations: 4 kB / 372.5 MB, free: 3.293 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.349e-06/0.3809, allocations: 0 / 372.5 MB, free: 3.293 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.898e-06/0.3809, allocations: 0 / 372.5 MB, free: 3.293 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003505/0.3813, allocations: 241.9 kB / 372.8 MB, free: 3.02 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.221e-06/0.3813, allocations: 4 kB / 372.8 MB, free: 3.016 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001692/0.3815, allocations: 23.92 kB / 372.8 MB, free: 2.992 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.463e-06/0.3815, allocations: 0 / 372.8 MB, free: 2.992 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.932e-05/0.3815, allocations: 11.98 kB / 372.8 MB, free: 2.98 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.3815, allocations: 0 / 372.8 MB, free: 2.98 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.912e-06/0.3815, allocations: 0 / 372.8 MB, free: 2.98 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004029/0.3819, allocations: 196.1 kB / 373 MB, free: 2.762 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.514e-05/0.382, allocations: 96.86 kB / 373.1 MB, free: 2.648 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.514e-05/0.3821, allocations: 4 kB / 373.1 MB, free: 2.645 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001892/0.3823, allocations: 27.97 kB / 373.1 MB, free: 2.617 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.49e-05/0.3824, allocations: 11.97 kB / 373.1 MB, free: 2.605 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.526e-05/0.3824, allocations: 4 kB / 373.1 MB, free: 2.602 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001499/0.3826, allocations: 141.4 kB / 373.3 MB, free: 2.465 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.65e-07/0.3826, allocations: 0 / 373.3 MB, free: 2.465 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000356/0.383, allocations: 35.89 kB / 373.3 MB, free: 2.43 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.000176/0.3831, allocations: 105.3 kB / 373.4 MB, free: 2.316 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003472/0.3835, allocations: 145.3 kB / 373.5 MB, free: 2.176 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.864e-06/0.3835, allocations: 0 / 373.5 MB, free: 2.176 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001693/0.3837, allocations: 63.98 kB / 373.6 MB, free: 2.113 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000338/0.3841, allocations: 43.84 kB / 373.7 MB, free: 2.07 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006754/0.3847, allocations: 277.8 kB / 373.9 MB, free: 1.77 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004516/0.3852, allocations: 0.7401 MB / 374.7 MB, free: 0.9961 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.317e-05/0.3853, allocations: 23.42 kB / 374.7 MB, free: 0.9727 MB / 314.7 MB Notification: Performance of SimCode: time 1.696e-06/0.3853, allocations: 3.938 kB / 374.7 MB, free: 0.9688 MB / 314.7 MB Notification: Performance of Templates: time 0.005407/0.3908, allocations: 2.327 MB / 377 MB, free: 14.66 MB / 330.7 MB