Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadModel(Modelica): time 1.975/1.975, allocations: 194.9 MB / 211.2 MB, free: 8.352 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.982e-05/2.985e-05, allocations: 4 kB / 258.8 MB, free: 8.703 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.326/0.3261, allocations: 44.5 MB / 303.3 MB, free: 12.77 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01596/0.3421, allocations: 9.361 MB / 312.7 MB, free: 4.324 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.007757/0.3499, allocations: 2.941 MB / 315.6 MB, free: 1.375 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001834/0.3518, allocations: 55.94 kB / 315.7 MB, free: 1.32 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00217/0.354, allocations: 469.1 kB / 316.1 MB, free: 0.8594 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003261/0.3573, allocations: 0.6892 MB / 316.8 MB, free: 172 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001435/0.3588, allocations: 247.8 kB / 317 MB, free: 15.92 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00429/0.3631, allocations: 1.335 MB / 318.4 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001282/0.3645, allocations: 498.7 kB / 318.9 MB, free: 14.1 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001336/0.3658, allocations: 0.5843 MB / 319.4 MB, free: 13.51 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001482/0.3673, allocations: 0.6694 MB / 320.1 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007509/0.3681, allocations: 111.9 kB / 320.2 MB, free: 12.73 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004203/0.3686, allocations: 72 kB / 320.3 MB, free: 12.66 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003107/0.3689, allocations: 258.8 kB / 320.5 MB, free: 12.41 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006684/0.3696, allocations: 180 kB / 320.7 MB, free: 12.23 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003622/0.3732, allocations: 2.13 MB / 322.9 MB, free: 10.09 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.329e-06/0.3733, allocations: 0 / 322.9 MB, free: 10.09 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.715e-06/0.3733, allocations: 0 / 322.9 MB, free: 10.09 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.329e-05/0.3734, allocations: 7.938 kB / 322.9 MB, free: 10.09 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.004729/0.3781, allocations: 1.624 MB / 324.5 MB, free: 8.406 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.886e-05/0.3782, allocations: 15.95 kB / 324.5 MB, free: 8.391 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001274/0.3795, allocations: 257.5 kB / 324.8 MB, free: 8.137 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003302/0.3828, allocations: 1.071 MB / 325.8 MB, free: 7.008 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001426/0.383, allocations: 115.1 kB / 325.9 MB, free: 6.895 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004036/0.3834, allocations: 159.9 kB / 326.1 MB, free: 6.738 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004397/0.3878, allocations: 1.481 MB / 327.6 MB, free: 5.195 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.868e-05/0.388, allocations: 7.906 kB / 327.6 MB, free: 5.188 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002025/0.3882, allocations: 60 kB / 327.6 MB, free: 5.129 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.085e-05/0.3882, allocations: 43.95 kB / 327.7 MB, free: 5.086 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003664/0.3919, allocations: 1.018 MB / 328.7 MB, free: 4.062 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01395/0.4059, allocations: 6.156 MB / 334.9 MB, free: 13.6 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002141/0.4081, allocations: 0.5607 MB / 335.4 MB, free: 13.03 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.6e-05/0.4082, allocations: 12.56 kB / 335.4 MB, free: 13.02 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.991e-05/0.4083, allocations: 39.12 kB / 335.5 MB, free: 12.97 MB / 282.7 MB Notification: Performance of pre-optimization done (n=66): time 4.037e-06/0.4083, allocations: 0 / 335.5 MB, free: 12.97 MB / 282.7 MB Notification: Performance of matching and sorting (n=72): time 0.007905/0.4162, allocations: 2.279 MB / 337.7 MB, free: 10.6 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.314e-05/0.4163, allocations: 107.5 kB / 337.9 MB, free: 10.46 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002338/0.4187, allocations: 1.033 MB / 338.9 MB, free: 9.422 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000145/0.4189, allocations: 41.7 kB / 338.9 MB, free: 9.375 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008276/0.4197, allocations: 0.8311 MB / 339.8 MB, free: 8.535 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003577/0.4201, allocations: 256.3 kB / 340 MB, free: 8.281 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.649e-05/0.4202, allocations: 20 kB / 340 MB, free: 8.262 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001863/0.4204, allocations: 362.7 kB / 340.4 MB, free: 7.898 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001019/0.4214, allocations: 266.5 kB / 340.6 MB, free: 7.637 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001394/0.4228, allocations: 0.7186 MB / 341.4 MB, free: 6.703 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001309/0.4242, allocations: 391 kB / 341.7 MB, free: 6.32 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.199e-05/0.4242, allocations: 4 kB / 341.7 MB, free: 6.316 MB / 282.7 MB Notification: Performance of matching and sorting (n=145) (initialization): time 0.003633/0.4279, allocations: 1.128 MB / 342.9 MB, free: 5.172 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.676e-05/0.428, allocations: 12 kB / 342.9 MB, free: 5.16 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.225e-05/0.428, allocations: 16.5 kB / 342.9 MB, free: 5.145 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006281/0.4286, allocations: 114.5 kB / 343 MB, free: 5.023 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001789/0.4304, allocations: 255.6 kB / 343.3 MB, free: 4.773 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005262/0.4357, allocations: 4.196 MB / 347.5 MB, free: 184 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001495/0.4373, allocations: 68.06 kB / 347.5 MB, free: 116 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001621/0.4375, allocations: 59.94 kB / 347.6 MB, free: 56 kB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (138): * Single equations (assignments): 135 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0009768/0.4385, allocations: 349.4 kB / 347.9 MB, free: 15.7 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003782/0.4389, allocations: 142.3 kB / 348.1 MB, free: 15.56 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002817/0.4417, allocations: 0.7866 MB / 348.9 MB, free: 14.76 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-05/0.4417, allocations: 8 kB / 348.9 MB, free: 14.75 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.4418, allocations: 0 / 348.9 MB, free: 14.75 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.359e-05/0.4418, allocations: 3.984 kB / 348.9 MB, free: 14.75 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006227/0.448, allocations: 2.181 MB / 351 MB, free: 12.45 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.12e-05/0.4481, allocations: 4 kB / 351 MB, free: 12.45 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001175/0.4493, allocations: 127.8 kB / 351.2 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006473/0.4499, allocations: 122.9 kB / 351.3 MB, free: 12.19 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.071e-05/0.45, allocations: 16 kB / 351.3 MB, free: 12.18 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005735/0.4558, allocations: 4.314 MB / 355.6 MB, free: 7.457 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.613e-06/0.4558, allocations: 12 kB / 355.6 MB, free: 7.445 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004011/0.4599, allocations: 1.42 MB / 357.1 MB, free: 5.848 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007678/0.4607, allocations: 263.3 kB / 357.3 MB, free: 5.57 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003401/0.461, allocations: 23.94 kB / 357.3 MB, free: 5.547 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0011/0.4622, allocations: 39.98 kB / 357.4 MB, free: 5.508 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002062/0.4624, allocations: 56.42 kB / 357.4 MB, free: 5.453 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.559e-05/0.4625, allocations: 23.98 kB / 357.5 MB, free: 5.43 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001813/0.4643, allocations: 0.7843 MB / 358.2 MB, free: 4.645 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.31e-07/0.4644, allocations: 0 / 358.2 MB, free: 4.645 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001899/0.4663, allocations: 324 kB / 358.6 MB, free: 4.328 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 60 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003375/0.4666, allocations: 127.1 kB / 358.7 MB, free: 4.195 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.003122/0.4698, allocations: 1.105 MB / 359.8 MB, free: 3.055 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.021e-05/0.4698, allocations: 0 / 359.8 MB, free: 3.055 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00173/0.4716, allocations: 0.684 MB / 360.5 MB, free: 2.332 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002702/0.4743, allocations: 325 kB / 360.8 MB, free: 2.016 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008985/0.4833, allocations: 3.472 MB / 364.3 MB, free: 14.46 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001189/0.4846, allocations: 1.248 MB / 365.5 MB, free: 13.18 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004803/0.4851, allocations: 99.42 kB / 365.6 MB, free: 13.08 MB / 314.7 MB Notification: Performance of SimCode: time 1.533e-06/0.4851, allocations: 0 / 365.6 MB, free: 13.08 MB / 314.7 MB Notification: Performance of Templates: time 0.07098/0.5561, allocations: 37.99 MB / 403.6 MB, free: 7.062 MB / 346.7 MB