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.051/2.051, allocations: 194.9 MB / 211.2 MB, free: 8.352 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.459e-05/3.467e-05, allocations: 4 kB / 258.8 MB, free: 8.715 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3284/0.3285, allocations: 44.51 MB / 303.3 MB, free: 12.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002868/0.3314, allocations: 1.491 MB / 304.8 MB, free: 11.52 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001574/0.3331, allocations: 0.555 MB / 305.3 MB, free: 11.08 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001824/0.3333, allocations: 9 kB / 305.3 MB, free: 11.07 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001563/0.3335, allocations: 16.95 kB / 305.4 MB, free: 11.06 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001924/0.3337, allocations: 31 kB / 305.4 MB, free: 11.03 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002936/0.334, allocations: 45.62 kB / 305.4 MB, free: 11 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002283/0.3342, allocations: 79.12 kB / 305.5 MB, free: 10.94 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000183/0.3344, allocations: 45.77 kB / 305.5 MB, free: 10.91 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001659/0.3346, allocations: 49.09 kB / 305.6 MB, free: 10.88 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001742/0.3348, allocations: 59.25 kB / 305.7 MB, free: 10.84 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.131e-05/0.3349, allocations: 7.781 kB / 305.7 MB, free: 10.84 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.342e-05/0.335, allocations: 5.219 kB / 305.7 MB, free: 10.84 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.367e-05/0.3351, allocations: 33.5 kB / 305.7 MB, free: 10.82 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.866e-05/0.3351, allocations: 10.09 kB / 305.7 MB, free: 10.82 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002634/0.3354, allocations: 110.7 kB / 305.8 MB, free: 10.75 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.3354, allocations: 0 / 305.8 MB, free: 10.75 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.424e-06/0.3354, allocations: 4 kB / 305.8 MB, free: 10.74 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.295e-05/0.3355, allocations: 0 / 305.8 MB, free: 10.74 MB / 250.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.001164/0.3366, allocations: 477.7 kB / 306.3 MB, free: 10.3 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.124e-05/0.3367, allocations: 13.19 kB / 306.3 MB, free: 10.29 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001111/0.3368, allocations: 18.19 kB / 306.3 MB, free: 10.29 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003956/0.3372, allocations: 230.4 kB / 306.5 MB, free: 10.04 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.808e-05/0.3373, allocations: 11.06 kB / 306.6 MB, free: 10.04 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.468e-05/0.3373, allocations: 13.88 kB / 306.6 MB, free: 10.04 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006318/0.338, allocations: 208.2 kB / 306.8 MB, free: 9.887 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.514e-05/0.338, allocations: 0 / 306.8 MB, free: 9.887 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.785e-05/0.3381, allocations: 6.375 kB / 306.8 MB, free: 9.883 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.087e-05/0.3381, allocations: 4.562 kB / 306.8 MB, free: 9.883 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005569/0.3387, allocations: 159.6 kB / 306.9 MB, free: 9.816 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001862/0.3406, allocations: 0.7857 MB / 307.7 MB, free: 9.086 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005464/0.3412, allocations: 177 kB / 307.9 MB, free: 8.895 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.652e-05/0.3412, allocations: 4 kB / 307.9 MB, free: 8.891 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004312/0.3417, allocations: 150.1 kB / 308 MB, free: 8.727 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 2.795e-06/0.3417, allocations: 0 / 308 MB, free: 8.727 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0009722/0.3427, allocations: 269.9 kB / 308.3 MB, free: 8.457 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.912e-05/0.3428, allocations: 81.11 kB / 308.4 MB, free: 8.359 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002767/0.3431, allocations: 183.3 kB / 308.6 MB, free: 8.176 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.933e-05/0.3431, allocations: 33.69 kB / 308.6 MB, free: 8.137 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001784/0.3433, allocations: 202.5 kB / 308.8 MB, free: 7.938 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.396e-05/0.3434, allocations: 35.45 kB / 308.8 MB, free: 7.902 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.654e-05/0.3434, allocations: 8 kB / 308.8 MB, free: 7.895 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000191/0.3436, allocations: 318.8 kB / 309.2 MB, free: 7.574 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002804/0.3439, allocations: 75.95 kB / 309.2 MB, free: 7.5 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003184/0.3442, allocations: 126.7 kB / 309.4 MB, free: 7.352 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00031/0.3446, allocations: 95.97 kB / 309.4 MB, free: 7.258 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.498e-06/0.3446, allocations: 0 / 309.4 MB, free: 7.258 MB / 250.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007376/0.3453, allocations: 237.4 kB / 309.7 MB, free: 7.02 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.318e-05/0.3454, allocations: 4 kB / 309.7 MB, free: 7.016 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.3454, allocations: 4 kB / 309.7 MB, free: 7.012 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.511e-05/0.3455, allocations: 7.953 kB / 309.7 MB, free: 7.004 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000311/0.3458, allocations: 35.91 kB / 309.7 MB, free: 6.969 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.171e-05/0.3458, allocations: 4.094 kB / 309.7 MB, free: 6.965 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003165/0.3461, allocations: 43.83 kB / 309.8 MB, free: 6.922 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.718e-05/0.3462, allocations: 8 kB / 309.8 MB, free: 6.914 MB / 250.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.0002033/0.3464, allocations: 137.8 kB / 309.9 MB, free: 6.77 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.124e-05/0.3465, allocations: 19.81 kB / 309.9 MB, free: 6.75 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000763/0.3472, allocations: 218.9 kB / 310.2 MB, free: 6.523 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.3473, allocations: 0 / 310.2 MB, free: 6.523 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.231e-05/0.3473, allocations: 7.953 kB / 310.2 MB, free: 6.516 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.957e-06/0.3473, allocations: 3.984 kB / 310.2 MB, free: 6.512 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004275/0.3477, allocations: 269.5 kB / 310.4 MB, free: 6.199 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.3477, allocations: 3.938 kB / 310.4 MB, free: 6.195 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002222/0.348, allocations: 23.98 kB / 310.5 MB, free: 6.172 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.712e-06/0.348, allocations: 0 / 310.5 MB, free: 6.172 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.13e-05/0.348, allocations: 12 kB / 310.5 MB, free: 6.16 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/0.348, allocations: 0 / 310.5 MB, free: 6.16 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.264e-06/0.3481, allocations: 7.922 kB / 310.5 MB, free: 6.152 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006696/0.3487, allocations: 253.7 kB / 310.7 MB, free: 5.879 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.431e-05/0.3488, allocations: 88.92 kB / 310.8 MB, free: 5.773 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.53e-05/0.3489, allocations: 8 kB / 310.8 MB, free: 5.766 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002442/0.3492, allocations: 23.97 kB / 310.8 MB, free: 5.742 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.624e-05/0.3493, allocations: 15.94 kB / 310.9 MB, free: 5.727 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.712e-05/0.3493, allocations: 4 kB / 310.9 MB, free: 5.723 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0002136/0.3495, allocations: 151.3 kB / 311 MB, free: 5.574 MB / 250.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.3495, allocations: 0 / 311 MB, free: 5.574 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003806/0.3499, allocations: 43.84 kB / 311 MB, free: 5.531 MB / 250.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.0001983/0.3501, allocations: 103.2 kB / 311.1 MB, free: 5.418 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0006829/0.3508, allocations: 179.9 kB / 311.3 MB, free: 5.242 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.329e-06/0.3509, allocations: 4 kB / 311.3 MB, free: 5.238 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003118/0.3512, allocations: 83.89 kB / 311.4 MB, free: 5.156 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004525/0.3516, allocations: 43.91 kB / 311.5 MB, free: 5.113 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001107/0.3528, allocations: 448.1 kB / 311.9 MB, free: 4.645 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003844/0.3532, allocations: 0.7401 MB / 312.6 MB, free: 3.875 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001098/0.3533, allocations: 19.44 kB / 312.6 MB, free: 3.855 MB / 250.7 MB Notification: Performance of SimCode: time 1.533e-06/0.3533, allocations: 3.938 kB / 312.7 MB, free: 3.852 MB / 250.7 MB Notification: Performance of Templates: time 0.006999/0.3603, allocations: 2.371 MB / 315 MB, free: 1.492 MB / 250.7 MB