Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") Notification: Performance of loadModel(Modelica): time 2.173/2.173, allocations: 194.9 MB / 211.2 MB, free: 8.352 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.216e-05/3.222e-05, allocations: 4 kB / 258.8 MB, free: 8.703 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3226/0.3226, allocations: 44.51 MB / 303.3 MB, free: 12.8 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.01025/0.333, allocations: 5.555 MB / 308.9 MB, free: 8.152 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.005577/0.3386, allocations: 2.083 MB / 310.9 MB, free: 6.062 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001141/0.3398, allocations: 28 kB / 311 MB, free: 6.035 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001584/0.3414, allocations: 346 kB / 311.3 MB, free: 5.695 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001794/0.3433, allocations: 362.9 kB / 311.7 MB, free: 5.34 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007224/0.344, allocations: 119.8 kB / 311.8 MB, free: 5.223 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002307/0.3463, allocations: 0.6674 MB / 312.4 MB, free: 4.555 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006996/0.3471, allocations: 258.1 kB / 312.7 MB, free: 4.301 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006565/0.3478, allocations: 299.2 kB / 313 MB, free: 4.008 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000631/0.3484, allocations: 338.6 kB / 313.3 MB, free: 3.676 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003802/0.3488, allocations: 75.97 kB / 313.4 MB, free: 3.602 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000173/0.349, allocations: 36 kB / 313.4 MB, free: 3.566 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001643/0.3492, allocations: 135.4 kB / 313.6 MB, free: 3.434 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002663/0.3495, allocations: 92 kB / 313.6 MB, free: 3.344 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001848/0.3513, allocations: 1.083 MB / 314.7 MB, free: 2.258 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.3514, allocations: 0 / 314.7 MB, free: 2.258 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.547e-06/0.3514, allocations: 0 / 314.7 MB, free: 2.258 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.189e-05/0.3515, allocations: 0 / 314.7 MB, free: 2.258 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.002477/0.354, allocations: 0.9827 MB / 315.7 MB, free: 1.223 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.081e-05/0.354, allocations: 12.03 kB / 315.7 MB, free: 1.211 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006454/0.3547, allocations: 126.8 kB / 315.8 MB, free: 1.086 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001623/0.3563, allocations: 0.6173 MB / 316.5 MB, free: 436 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.062e-05/0.3565, allocations: 58 kB / 316.5 MB, free: 376 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000193/0.3567, allocations: 83.91 kB / 316.6 MB, free: 292 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002273/0.3589, allocations: 0.7716 MB / 317.4 MB, free: 15.48 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.266e-05/0.3591, allocations: 7.922 kB / 317.4 MB, free: 15.47 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001083/0.3592, allocations: 36 kB / 317.4 MB, free: 15.44 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.822e-05/0.3592, allocations: 24 kB / 317.4 MB, free: 15.41 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001889/0.3611, allocations: 0.5153 MB / 318 MB, free: 14.9 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006965/0.3681, allocations: 3.368 MB / 321.3 MB, free: 11.32 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008065/0.369, allocations: 250.4 kB / 321.6 MB, free: 11.07 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.876e-05/0.3691, allocations: 0 / 321.6 MB, free: 11.07 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.05e-05/0.3691, allocations: 34.56 kB / 321.6 MB, free: 11.03 MB / 266.7 MB Notification: Performance of pre-optimization done (n=25): time 1.893e-06/0.3691, allocations: 0 / 321.6 MB, free: 11.03 MB / 266.7 MB Notification: Performance of matching and sorting (n=28): time 0.003439/0.3726, allocations: 1.082 MB / 322.7 MB, free: 9.871 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.193e-05/0.3727, allocations: 77.11 kB / 322.8 MB, free: 9.777 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001211/0.3739, allocations: 0.5974 MB / 323.4 MB, free: 9.172 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.621e-05/0.374, allocations: 29.7 kB / 323.4 MB, free: 9.137 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00046/0.3745, allocations: 0.5084 MB / 323.9 MB, free: 8.625 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001287/0.3746, allocations: 106.5 kB / 324 MB, free: 8.52 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.229e-05/0.3746, allocations: 12 kB / 324 MB, free: 8.508 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.3748, allocations: 334.8 kB / 324.3 MB, free: 8.172 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005548/0.3754, allocations: 133.2 kB / 324.5 MB, free: 8.039 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009429/0.3763, allocations: 414.2 kB / 324.9 MB, free: 7.5 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000825/0.3772, allocations: 195.9 kB / 325.1 MB, free: 7.309 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.771e-05/0.3772, allocations: 4 kB / 325.1 MB, free: 7.305 MB / 266.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002336/0.3796, allocations: 0.5649 MB / 325.6 MB, free: 6.73 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.941e-05/0.3797, allocations: 8.094 kB / 325.6 MB, free: 6.723 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.692e-05/0.3797, allocations: 19.94 kB / 325.7 MB, free: 6.703 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002566/0.38, allocations: 36.84 kB / 325.7 MB, free: 6.664 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001095/0.3811, allocations: 143.7 kB / 325.8 MB, free: 6.523 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001727/0.3828, allocations: 1.291 MB / 327.1 MB, free: 5.098 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001109/0.384, allocations: 39.89 kB / 327.2 MB, free: 5.059 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.646e-05/0.3841, allocations: 32.22 kB / 327.2 MB, free: 5.027 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 72 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006744/0.3848, allocations: 237.5 kB / 327.4 MB, free: 4.785 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002267/0.385, allocations: 75.14 kB / 327.5 MB, free: 4.711 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001572/0.3866, allocations: 341.9 kB / 327.8 MB, free: 4.363 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.545e-05/0.3867, allocations: 7.953 kB / 327.8 MB, free: 4.355 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.3867, allocations: 0 / 327.8 MB, free: 4.355 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.646e-06/0.3867, allocations: 0 / 327.8 MB, free: 4.355 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003814/0.3905, allocations: 1.077 MB / 328.9 MB, free: 3.199 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.155e-05/0.3906, allocations: 4 kB / 328.9 MB, free: 3.195 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007908/0.3914, allocations: 59.91 kB / 329 MB, free: 3.137 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002009/0.3916, allocations: 24.84 kB / 329 MB, free: 3.109 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.442e-05/0.3917, allocations: 8 kB / 329 MB, free: 3.102 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001702/0.3934, allocations: 1.28 MB / 330.3 MB, free: 1.688 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.682e-06/0.3935, allocations: 3.938 kB / 330.3 MB, free: 1.684 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002177/0.3957, allocations: 0.6536 MB / 331 MB, free: 0.9453 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004379/0.3962, allocations: 164.3 kB / 331.1 MB, free: 0.7656 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002034/0.3964, allocations: 15.94 kB / 331.1 MB, free: 0.75 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007017/0.3971, allocations: 23.98 kB / 331.2 MB, free: 0.7266 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001095/0.3972, allocations: 23.97 kB / 331.2 MB, free: 0.7031 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.447e-05/0.3973, allocations: 8 kB / 331.2 MB, free: 0.6953 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001203/0.3985, allocations: 459 kB / 331.6 MB, free: 260 kB / 266.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.3985, allocations: 0 / 331.6 MB, free: 260 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.001436/0.4, allocations: 164 kB / 331.8 MB, free: 96 kB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 26 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003439/0.4003, allocations: 119.1 kB / 331.9 MB, free: 15.96 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.00188/0.4022, allocations: 471.8 kB / 332.4 MB, free: 15.49 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/0.4023, allocations: 0 / 332.4 MB, free: 15.49 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008421/0.4031, allocations: 246.6 kB / 332.6 MB, free: 15.24 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001957/0.4051, allocations: 174.9 kB / 332.8 MB, free: 15.07 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005204/0.4104, allocations: 1.771 MB / 334.6 MB, free: 13.24 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000929/0.4113, allocations: 0.953 MB / 335.5 MB, free: 12.26 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002899/0.4117, allocations: 55.38 kB / 335.6 MB, free: 12.21 MB / 282.7 MB Notification: Performance of SimCode: time 1.342e-06/0.4117, allocations: 4 kB / 335.6 MB, free: 12.2 MB / 282.7 MB Notification: Performance of Templates: time 0.03611/0.4478, allocations: 12.6 MB / 348.2 MB, free: 15.61 MB / 298.7 MB