Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") Notification: Performance of loadModel(Modelica): time 2.008/2.008, allocations: 194.9 MB / 211.2 MB, free: 8.348 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.83e-05/2.842e-05, allocations: 4 kB / 258.8 MB, free: 8.691 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2999/0.2999, allocations: 44.5 MB / 303.3 MB, free: 12.79 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.01523/0.3152, allocations: 9.045 MB / 312.3 MB, free: 4.641 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.007695/0.323, allocations: 2.879 MB / 315.2 MB, free: 1.754 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001768/0.3248, allocations: 55.94 kB / 315.3 MB, free: 1.699 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002023/0.3269, allocations: 449.3 kB / 315.7 MB, free: 1.258 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003026/0.33, allocations: 0.6386 MB / 316.4 MB, free: 0.6172 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001421/0.3314, allocations: 247.7 kB / 316.6 MB, free: 384 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.003863/0.3353, allocations: 1.21 MB / 317.8 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001218/0.3366, allocations: 490.8 kB / 318.3 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001236/0.3378, allocations: 0.5414 MB / 318.8 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001488/0.3394, allocations: 0.6227 MB / 319.5 MB, free: 13.51 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007796/0.3402, allocations: 104 kB / 319.6 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003963/0.3406, allocations: 72 kB / 319.6 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003098/0.3409, allocations: 250.8 kB / 319.9 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006315/0.3416, allocations: 172 kB / 320 MB, free: 12.93 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003607/0.3452, allocations: 2.041 MB / 322.1 MB, free: 10.88 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.3453, allocations: 0 / 322.1 MB, free: 10.88 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.845e-06/0.3453, allocations: 0 / 322.1 MB, free: 10.88 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.056e-05/0.3454, allocations: 0 / 322.1 MB, free: 10.88 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.004384/0.3498, allocations: 1.579 MB / 323.7 MB, free: 9.238 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.073e-05/0.3498, allocations: 12.03 kB / 323.7 MB, free: 9.227 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001206/0.3511, allocations: 249.4 kB / 323.9 MB, free: 8.98 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002845/0.3539, allocations: 1.008 MB / 324.9 MB, free: 7.926 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001528/0.3542, allocations: 115.1 kB / 325 MB, free: 7.812 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004056/0.3546, allocations: 159.9 kB / 325.2 MB, free: 7.656 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004392/0.359, allocations: 1.472 MB / 326.7 MB, free: 6.109 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.703e-05/0.3591, allocations: 4 kB / 326.7 MB, free: 6.105 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001947/0.3593, allocations: 60 kB / 326.7 MB, free: 6.047 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.456e-05/0.3594, allocations: 40 kB / 326.8 MB, free: 6.008 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003469/0.3629, allocations: 0.9785 MB / 327.7 MB, free: 5.023 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01375/0.3767, allocations: 6.528 MB / 334.3 MB, free: 14.14 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001393/0.3781, allocations: 412.1 kB / 334.7 MB, free: 13.73 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.056e-05/0.3782, allocations: 4.438 kB / 334.7 MB, free: 13.73 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008431/0.3791, allocations: 268.8 kB / 334.9 MB, free: 13.45 MB / 282.7 MB Notification: Performance of pre-optimization done (n=50): time 3.416e-06/0.3791, allocations: 0 / 334.9 MB, free: 13.45 MB / 282.7 MB Notification: Performance of matching and sorting (n=56): time 0.005264/0.3844, allocations: 1.786 MB / 336.7 MB, free: 11.56 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001105/0.3846, allocations: 166.8 kB / 336.9 MB, free: 11.36 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002269/0.3868, allocations: 1.04 MB / 337.9 MB, free: 10.31 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000106/0.387, allocations: 37.7 kB / 338 MB, free: 10.27 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001247/0.3883, allocations: 0.8537 MB / 338.8 MB, free: 9.402 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004434/0.3887, allocations: 201.2 kB / 339 MB, free: 9.203 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001166/0.3889, allocations: 28 kB / 339 MB, free: 9.176 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002696/0.3892, allocations: 350.8 kB / 339.4 MB, free: 8.824 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001305/0.3905, allocations: 230.5 kB / 339.6 MB, free: 8.598 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002216/0.3928, allocations: 0.7995 MB / 340.4 MB, free: 7.523 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001898/0.3947, allocations: 403.5 kB / 340.8 MB, free: 7.125 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.982e-05/0.3948, allocations: 4 kB / 340.8 MB, free: 7.121 MB / 282.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.004708/0.3996, allocations: 1.084 MB / 341.9 MB, free: 6.016 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001027/0.3997, allocations: 49.69 kB / 341.9 MB, free: 5.961 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.967e-05/0.3998, allocations: 20.69 kB / 342 MB, free: 5.941 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004334/0.4002, allocations: 69.7 kB / 342 MB, free: 5.867 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00238/0.4026, allocations: 271.5 kB / 342.3 MB, free: 5.602 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003913/0.4066, allocations: 2.591 MB / 344.9 MB, free: 2.746 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002442/0.4091, allocations: 67.89 kB / 344.9 MB, free: 2.68 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000218/0.4094, allocations: 56.19 kB / 345 MB, free: 2.625 MB / 282.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.001356/0.4107, allocations: 361.2 kB / 345.4 MB, free: 2.262 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004821/0.4113, allocations: 134.3 kB / 345.5 MB, free: 2.129 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002757/0.414, allocations: 0.5684 MB / 346.1 MB, free: 1.539 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.096e-05/0.4141, allocations: 8 kB / 346.1 MB, free: 1.531 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.757e-06/0.4141, allocations: 0 / 346.1 MB, free: 1.531 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.315e-05/0.4142, allocations: 0 / 346.1 MB, free: 1.531 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007098/0.4213, allocations: 1.822 MB / 347.9 MB, free: 15.59 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.448e-05/0.4213, allocations: 4 kB / 347.9 MB, free: 15.59 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001386/0.4227, allocations: 112.3 kB / 348 MB, free: 15.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004253/0.4232, allocations: 45.69 kB / 348 MB, free: 15.43 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001066/0.4233, allocations: 19.98 kB / 348.1 MB, free: 15.41 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003787/0.4272, allocations: 2.556 MB / 350.6 MB, free: 12.59 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.513e-05/0.4272, allocations: 4 kB / 350.6 MB, free: 12.58 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003986/0.4313, allocations: 1.125 MB / 351.7 MB, free: 11.28 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001034/0.4323, allocations: 243.5 kB / 352 MB, free: 11.02 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004716/0.4329, allocations: 16 kB / 352 MB, free: 11.01 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001552/0.4344, allocations: 39.97 kB / 352 MB, free: 10.97 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002583/0.4347, allocations: 51.83 kB / 352.1 MB, free: 10.92 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.929e-05/0.4348, allocations: 20 kB / 352.1 MB, free: 10.9 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.00289/0.4377, allocations: 0.7719 MB / 352.9 MB, free: 10.12 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.924e-06/0.4378, allocations: 0 / 352.9 MB, free: 10.12 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.002875/0.4407, allocations: 304 kB / 353.2 MB, free: 9.828 MB / 298.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.0004784/0.4413, allocations: 134.9 kB / 353.3 MB, free: 9.688 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.003804/0.4451, allocations: 0.933 MB / 354.2 MB, free: 8.723 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.246e-05/0.4452, allocations: 448 / 354.2 MB, free: 8.723 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001718/0.4469, allocations: 465 kB / 354.7 MB, free: 8.242 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004026/0.451, allocations: 309.8 kB / 355 MB, free: 7.941 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01115/0.4622, allocations: 3.095 MB / 358.1 MB, free: 4.766 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001831/0.4641, allocations: 1.209 MB / 359.3 MB, free: 3.527 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005689/0.4648, allocations: 87.44 kB / 359.4 MB, free: 3.441 MB / 298.7 MB Notification: Performance of SimCode: time 1.753e-06/0.4648, allocations: 4 kB / 359.4 MB, free: 3.438 MB / 298.7 MB Notification: Performance of Templates: time 0.09147/0.5563, allocations: 29.61 MB / 389 MB, free: 5.809 MB / 330.7 MB