Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|dcpm1.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") Notification: Performance of loadModel(Modelica): time 1.627/1.627, allocations: 171.2 MB / 185.7 MB, free: 1.391 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.369e-05/3.373e-05, allocations: 4 kB / 228.2 MB, free: 7.32 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08048/0.08054, allocations: 38.76 MB / 266.9 MB, free: 492 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.01551/0.0961, allocations: 9.059 MB / 276 MB, free: 7.375 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.007844/0.104, allocations: 2.855 MB / 278.8 MB, free: 4.516 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002283/0.1064, allocations: 55.88 kB / 278.9 MB, free: 4.461 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002925/0.1093, allocations: 453.2 kB / 279.3 MB, free: 4.016 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004074/0.1135, allocations: 0.6503 MB / 280 MB, free: 3.363 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001584/0.1151, allocations: 235.8 kB / 280.2 MB, free: 3.133 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.005096/0.1202, allocations: 1.214 MB / 281.4 MB, free: 1.918 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001739/0.122, allocations: 490.8 kB / 281.9 MB, free: 1.434 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001831/0.1239, allocations: 0.5492 MB / 282.5 MB, free: 0.8828 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001847/0.1258, allocations: 0.6265 MB / 283.1 MB, free: 260 kB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008577/0.1267, allocations: 104 kB / 283.2 MB, free: 156 kB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004622/0.1272, allocations: 64 kB / 283.2 MB, free: 92 kB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004624/0.1277, allocations: 246.8 kB / 283.5 MB, free: 15.85 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007965/0.1285, allocations: 172 kB / 283.7 MB, free: 15.68 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004756/0.1333, allocations: 2.045 MB / 285.7 MB, free: 13.63 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.1333, allocations: 0 / 285.7 MB, free: 13.63 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.143e-06/0.1334, allocations: 4 kB / 285.7 MB, free: 13.62 MB / 250.7 MB Notification: Performance of Transformations before backend: time 7.627e-05/0.1334, allocations: 3.938 kB / 285.7 MB, free: 13.62 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.00619/0.1397, allocations: 1.582 MB / 287.3 MB, free: 11.98 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.639e-05/0.1398, allocations: 12.03 kB / 287.3 MB, free: 11.96 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001717/0.1415, allocations: 241.6 kB / 287.5 MB, free: 11.73 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004033/0.1456, allocations: 1.012 MB / 288.5 MB, free: 10.67 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002078/0.1458, allocations: 115.1 kB / 288.7 MB, free: 10.55 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005756/0.1464, allocations: 163.9 kB / 288.8 MB, free: 10.39 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006482/0.1529, allocations: 1.456 MB / 290.3 MB, free: 8.863 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001106/0.1531, allocations: 11.84 kB / 290.3 MB, free: 8.852 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003018/0.1534, allocations: 68 kB / 290.4 MB, free: 8.785 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.011e-05/0.1535, allocations: 36 kB / 290.4 MB, free: 8.75 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005305/0.1589, allocations: 0.9668 MB / 291.4 MB, free: 7.777 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02065/0.1796, allocations: 6.524 MB / 297.9 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001995/0.1816, allocations: 412.1 kB / 298.3 MB, free: 500 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.412e-05/0.1817, allocations: 8.422 kB / 298.3 MB, free: 492 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001135/0.1829, allocations: 272.8 kB / 298.6 MB, free: 200 kB / 250.7 MB Notification: Performance of pre-optimization done (n=50): time 4.619e-06/0.1829, allocations: 0 / 298.6 MB, free: 200 kB / 250.7 MB Notification: Performance of matching and sorting (n=56): time 0.2284/0.4113, allocations: 1.779 MB / 300.3 MB, free: 28.6 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.138e-05/0.4114, allocations: 164.1 kB / 300.5 MB, free: 28.41 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002324/0.4138, allocations: 1.043 MB / 301.5 MB, free: 28.24 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001102/0.4139, allocations: 40.48 kB / 301.6 MB, free: 28.2 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008394/0.4148, allocations: 0.8625 MB / 302.4 MB, free: 27.52 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002393/0.415, allocations: 210.2 kB / 302.6 MB, free: 27.37 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.161e-05/0.4151, allocations: 20.94 kB / 302.7 MB, free: 27.35 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001128/0.4152, allocations: 353.9 kB / 303 MB, free: 27.03 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008296/0.4161, allocations: 233.6 kB / 303.2 MB, free: 26.95 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001068/0.4172, allocations: 0.8043 MB / 304 MB, free: 26.11 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009872/0.4182, allocations: 397 kB / 304.4 MB, free: 25.91 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.397e-05/0.4182, allocations: 5.469 kB / 304.4 MB, free: 25.91 MB / 250.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002995/0.4212, allocations: 1.176 MB / 305.6 MB, free: 25.38 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.481e-05/0.4213, allocations: 41.05 kB / 305.7 MB, free: 25.34 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.093e-05/0.4213, allocations: 20.47 kB / 305.7 MB, free: 25.34 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002969/0.4216, allocations: 67.25 kB / 305.7 MB, free: 25.32 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001791/0.4235, allocations: 268.3 kB / 306 MB, free: 25.29 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003071/0.4266, allocations: 2.586 MB / 308.6 MB, free: 22.66 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002509/0.4291, allocations: 80.83 kB / 308.7 MB, free: 22.63 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002825/0.4295, allocations: 61.03 kB / 308.7 MB, free: 22.62 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00131/0.4308, allocations: 351.2 kB / 309.1 MB, free: 22.35 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004148/0.4312, allocations: 130.7 kB / 309.2 MB, free: 22.29 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002325/0.4336, allocations: 0.5594 MB / 309.8 MB, free: 22.02 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.916e-05/0.4337, allocations: 8.031 kB / 309.8 MB, free: 22.02 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.045e-05/0.4337, allocations: 1.188 kB / 309.8 MB, free: 22.02 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.774e-05/0.4337, allocations: 6.578 kB / 309.8 MB, free: 22.02 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006581/0.4403, allocations: 1.835 MB / 311.6 MB, free: 21.01 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.569e-05/0.4404, allocations: 3.188 kB / 311.6 MB, free: 21.01 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001265/0.4417, allocations: 107.8 kB / 311.7 MB, free: 21 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003549/0.442, allocations: 42.28 kB / 311.8 MB, free: 20.98 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.321e-05/0.4421, allocations: 19.77 kB / 311.8 MB, free: 20.96 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002644/0.4448, allocations: 2.56 MB / 314.3 MB, free: 18.34 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-05/0.4449, allocations: 7.781 kB / 314.3 MB, free: 18.34 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003584/0.4485, allocations: 1.12 MB / 315.5 MB, free: 17.48 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009528/0.4495, allocations: 248.6 kB / 315.7 MB, free: 17.27 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004074/0.4499, allocations: 20.69 kB / 315.7 MB, free: 17.26 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001411/0.4513, allocations: 32.86 kB / 315.8 MB, free: 17.25 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002275/0.4516, allocations: 56.11 kB / 315.8 MB, free: 17.24 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.152e-05/0.4517, allocations: 22.53 kB / 315.8 MB, free: 17.23 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.002466/0.4542, allocations: 0.774 MB / 316.6 MB, free: 16.91 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.212e-06/0.4542, allocations: 0 / 316.6 MB, free: 16.91 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.002892/0.4571, allocations: 302.3 kB / 316.9 MB, free: 16.88 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003952/0.4576, allocations: 132.3 kB / 317 MB, free: 16.77 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.003354/0.461, allocations: 0.9264 MB / 318 MB, free: 16.27 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.067e-05/0.461, allocations: 0 / 318 MB, free: 16.27 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001573/0.4626, allocations: 477.5 kB / 318.4 MB, free: 15.96 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003711/0.4664, allocations: 311.4 kB / 318.7 MB, free: 15.86 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00741/0.4738, allocations: 3.059 MB / 321.8 MB, free: 13.88 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007285/0.4746, allocations: 1.21 MB / 323 MB, free: 13.14 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.001066/0.4757, allocations: 172.9 kB / 323.2 MB, free: 13.09 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002339/0.4759, allocations: 86.47 kB / 323.3 MB, free: 13.08 MB / 250.7 MB Notification: Performance of SimCode: time 1.022e-06/0.4759, allocations: 0 / 323.3 MB, free: 13.08 MB / 250.7 MB Notification: Performance of Templates: time 0.03622/0.5122, allocations: 12.93 MB / 336.2 MB, free: 1.633 MB / 250.7 MB