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.1_cpp_Modelica.Blocks.Examples.RealNetwork1") Notification: Performance of loadModel(Modelica): time 1.868/1.868, allocations: 171.2 MB / 186.3 MB, free: 1.418 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.188e-05/3.186e-05, allocations: 4 kB / 228.1 MB, free: 7.992 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08262/0.08267, allocations: 38.77 MB / 266.9 MB, free: 1.141 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002829/0.08555, allocations: 1.484 MB / 268.4 MB, free: 15.63 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001439/0.08704, allocations: 0.5383 MB / 268.9 MB, free: 15.09 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000152/0.08725, allocations: 8 kB / 268.9 MB, free: 15.08 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001202/0.08739, allocations: 31.77 kB / 268.9 MB, free: 15.05 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001655/0.08757, allocations: 31.88 kB / 269 MB, free: 15.02 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002516/0.08783, allocations: 39.95 kB / 269 MB, free: 14.98 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002034/0.08805, allocations: 83.77 kB / 269.1 MB, free: 14.9 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001615/0.08823, allocations: 43.91 kB / 269.1 MB, free: 14.86 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001413/0.08838, allocations: 47.84 kB / 269.2 MB, free: 14.81 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001536/0.08855, allocations: 55.75 kB / 269.2 MB, free: 14.75 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.235e-05/0.08864, allocations: 12 kB / 269.3 MB, free: 14.74 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.037e-05/0.08869, allocations: 4 kB / 269.3 MB, free: 14.74 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 7.98e-05/0.08878, allocations: 31.84 kB / 269.3 MB, free: 14.71 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 4.376e-05/0.08884, allocations: 12 kB / 269.3 MB, free: 14.7 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002335/0.08908, allocations: 120 kB / 269.4 MB, free: 14.58 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.0891, allocations: 0 / 269.4 MB, free: 14.58 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.324e-06/0.08912, allocations: 4 kB / 269.4 MB, free: 14.57 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.217e-05/0.08914, allocations: 0 / 269.4 MB, free: 14.57 MB / 234.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.001091/0.09024, allocations: 471.1 kB / 269.9 MB, free: 14.06 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.801e-05/0.0903, allocations: 8.031 kB / 269.9 MB, free: 14.05 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.749e-05/0.0904, allocations: 27.7 kB / 269.9 MB, free: 14.03 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000343/0.09076, allocations: 230.4 kB / 270.1 MB, free: 13.76 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.313e-05/0.09081, allocations: 24.16 kB / 270.2 MB, free: 13.74 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.864e-05/0.09085, allocations: 12 kB / 270.2 MB, free: 13.73 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005484/0.09141, allocations: 202.9 kB / 270.4 MB, free: 13.51 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.66e-05/0.09145, allocations: 4 kB / 270.4 MB, free: 13.51 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.611e-05/0.09148, allocations: 4 kB / 270.4 MB, free: 13.5 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.853e-05/0.09152, allocations: 4 kB / 270.4 MB, free: 13.5 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005267/0.09206, allocations: 151.8 kB / 270.5 MB, free: 13.35 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001725/0.0938, allocations: 0.7937 MB / 271.3 MB, free: 12.5 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005197/0.09437, allocations: 169 kB / 271.5 MB, free: 12.31 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.839e-05/0.09445, allocations: 8.125 kB / 271.5 MB, free: 12.3 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004209/0.09489, allocations: 153.1 kB / 271.7 MB, free: 12.14 MB / 234.7 MB Notification: Performance of pre-optimization done (n=15): time 2.735e-06/0.09491, allocations: 0 / 271.7 MB, free: 12.14 MB / 234.7 MB Notification: Performance of matching and sorting (n=15): time 0.001141/0.09606, allocations: 257.3 kB / 271.9 MB, free: 11.88 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.081e-05/0.09617, allocations: 89.09 kB / 272 MB, free: 11.77 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002925/0.09648, allocations: 190.1 kB / 272.2 MB, free: 11.58 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 3.977e-05/0.09653, allocations: 37.69 kB / 272.2 MB, free: 11.54 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001456/0.09668, allocations: 194.6 kB / 272.4 MB, free: 11.35 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.143e-05/0.09676, allocations: 43.31 kB / 272.4 MB, free: 11.3 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.622e-05/0.09679, allocations: 4 kB / 272.4 MB, free: 11.3 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.09694, allocations: 322.8 kB / 272.8 MB, free: 10.98 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002964/0.09725, allocations: 75.81 kB / 272.8 MB, free: 10.9 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003335/0.0976, allocations: 126.8 kB / 273 MB, free: 10.75 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003149/0.09793, allocations: 91.91 kB / 273.1 MB, free: 10.66 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.09795, allocations: 0 / 273.1 MB, free: 10.66 MB / 234.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007327/0.09869, allocations: 238.1 kB / 273.3 MB, free: 10.43 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.481e-05/0.09874, allocations: 8 kB / 273.3 MB, free: 10.42 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/0.09875, allocations: 0 / 273.3 MB, free: 10.42 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.166e-05/0.09879, allocations: 4 kB / 273.3 MB, free: 10.41 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003081/0.0991, allocations: 39.91 kB / 273.3 MB, free: 10.38 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.061e-05/0.09913, allocations: 80 / 273.3 MB, free: 10.38 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003049/0.09945, allocations: 43.95 kB / 273.4 MB, free: 10.33 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.425e-05/0.0995, allocations: 23.88 kB / 273.4 MB, free: 10.31 MB / 234.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.0001948/0.0997, allocations: 137.8 kB / 273.5 MB, free: 10.16 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.862e-05/0.09976, allocations: 19.81 kB / 273.6 MB, free: 10.14 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007723/0.1005, allocations: 219 kB / 273.8 MB, free: 9.922 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.795e-06/0.1006, allocations: 7.938 kB / 273.8 MB, free: 9.914 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.1006, allocations: 0 / 273.8 MB, free: 9.914 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/0.1006, allocations: 3.984 kB / 273.8 MB, free: 9.91 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004431/0.1011, allocations: 273.4 kB / 274 MB, free: 9.594 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.262e-06/0.1011, allocations: 4 kB / 274.1 MB, free: 9.59 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002191/0.1013, allocations: 19.98 kB / 274.1 MB, free: 9.57 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.19e-05/0.1013, allocations: 8 kB / 274.1 MB, free: 9.562 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.844e-05/0.1014, allocations: 0 / 274.1 MB, free: 9.562 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.224e-06/0.1014, allocations: 0 / 274.1 MB, free: 9.562 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.451e-05/0.1014, allocations: 11.92 kB / 274.1 MB, free: 9.551 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006977/0.1021, allocations: 247.3 kB / 274.3 MB, free: 9.281 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001384/0.1023, allocations: 104.8 kB / 274.4 MB, free: 9.16 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.662e-05/0.1023, allocations: 4 kB / 274.4 MB, free: 9.156 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002438/0.1026, allocations: 23.97 kB / 274.5 MB, free: 9.133 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.046e-05/0.1027, allocations: 15.98 kB / 274.5 MB, free: 9.117 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.937e-05/0.1027, allocations: 4 kB / 274.5 MB, free: 9.113 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0002/0.1029, allocations: 152.6 kB / 274.6 MB, free: 8.965 MB / 234.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.103, allocations: 4 kB / 274.6 MB, free: 8.961 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.000356/0.1033, allocations: 39.86 kB / 274.7 MB, free: 8.922 MB / 234.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.000192/0.1035, allocations: 104.8 kB / 274.8 MB, free: 8.812 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0006585/0.1042, allocations: 183.9 kB / 275 MB, free: 8.633 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.1042, allocations: 0 / 275 MB, free: 8.633 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003094/0.1045, allocations: 91.89 kB / 275 MB, free: 8.543 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004365/0.105, allocations: 32.11 kB / 275.1 MB, free: 8.512 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001141/0.1061, allocations: 460.8 kB / 275.5 MB, free: 8.027 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003889/0.1066, allocations: 0.7477 MB / 276.3 MB, free: 7.254 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001136/0.1067, allocations: 19.62 kB / 276.3 MB, free: 7.234 MB / 234.7 MB Notification: Performance of SimCode: time 1.052e-06/0.1067, allocations: 0 / 276.3 MB, free: 7.234 MB / 234.7 MB Notification: Performance of Templates: time 0.006957/0.1137, allocations: 2.358 MB / 278.6 MB, free: 4.883 MB / 234.7 MB