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_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") Notification: Performance of loadModel(Modelica): time 1.848/1.848, allocations: 194.9 MB / 210.6 MB, free: 9.316 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.121e-05/3.121e-05, allocations: 7.984 kB / 258.8 MB, free: 9.02 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3035/0.3035, allocations: 44.5 MB / 303.3 MB, free: 12.86 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.01512/0.3187, allocations: 9.052 MB / 312.4 MB, free: 4.68 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.007341/0.3261, allocations: 2.871 MB / 315.2 MB, free: 1.801 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00165/0.3278, allocations: 51.94 kB / 315.3 MB, free: 1.75 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001826/0.3297, allocations: 441.3 kB / 315.7 MB, free: 1.316 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002822/0.3325, allocations: 0.6503 MB / 316.4 MB, free: 0.6641 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001174/0.3337, allocations: 243.7 kB / 316.6 MB, free: 436 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.003519/0.3373, allocations: 1.21 MB / 317.8 MB, free: 15.21 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00112/0.3384, allocations: 0.491 MB / 318.3 MB, free: 14.72 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001111/0.3396, allocations: 0.5375 MB / 318.9 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001149/0.3407, allocations: 0.6265 MB / 319.5 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005125/0.3413, allocations: 108 kB / 319.6 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002487/0.3415, allocations: 68 kB / 319.7 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002819/0.3418, allocations: 246.8 kB / 319.9 MB, free: 13.14 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004892/0.3423, allocations: 168 kB / 320.1 MB, free: 12.97 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003144/0.3455, allocations: 2.045 MB / 322.1 MB, free: 10.92 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.3455, allocations: 0 / 322.1 MB, free: 10.92 MB / 266.7 MB Notification: Performance of FrontEnd: time 3.427e-06/0.3455, allocations: 0 / 322.1 MB, free: 10.92 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.651e-05/0.3456, allocations: 0 / 322.1 MB, free: 10.92 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.00404/0.3497, allocations: 1.582 MB / 323.7 MB, free: 9.277 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.59e-05/0.3498, allocations: 12.03 kB / 323.7 MB, free: 9.266 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001074/0.3508, allocations: 245.6 kB / 323.9 MB, free: 9.023 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002499/0.3534, allocations: 1.008 MB / 324.9 MB, free: 7.969 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001316/0.3535, allocations: 111.1 kB / 325.1 MB, free: 7.859 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003347/0.3539, allocations: 163.9 kB / 325.2 MB, free: 7.699 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00399/0.3579, allocations: 1.472 MB / 326.7 MB, free: 6.152 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.914e-05/0.358, allocations: 7.938 kB / 326.7 MB, free: 6.145 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001946/0.3582, allocations: 64 kB / 326.8 MB, free: 6.082 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.608e-05/0.3582, allocations: 36 kB / 326.8 MB, free: 6.047 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003174/0.3614, allocations: 0.9747 MB / 327.8 MB, free: 5.066 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01249/0.3739, allocations: 6.516 MB / 334.3 MB, free: 14.2 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001387/0.3754, allocations: 408.9 kB / 334.7 MB, free: 13.79 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.385e-05/0.3755, allocations: 4.438 kB / 334.7 MB, free: 13.79 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007812/0.3763, allocations: 280.8 kB / 335 MB, free: 13.49 MB / 282.7 MB Notification: Performance of pre-optimization done (n=50): time 3.227e-06/0.3763, allocations: 0 / 335 MB, free: 13.49 MB / 282.7 MB Notification: Performance of matching and sorting (n=56): time 0.005117/0.3814, allocations: 1.782 MB / 336.7 MB, free: 11.61 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001188/0.3816, allocations: 166.8 kB / 336.9 MB, free: 11.41 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002243/0.3838, allocations: 1.04 MB / 337.9 MB, free: 10.36 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.773e-05/0.3839, allocations: 37.7 kB / 338 MB, free: 10.32 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001012/0.385, allocations: 0.8751 MB / 338.9 MB, free: 9.43 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002637/0.3852, allocations: 205.2 kB / 339.1 MB, free: 9.227 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.041e-05/0.3853, allocations: 20 kB / 339.1 MB, free: 9.207 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000203/0.3855, allocations: 353.9 kB / 339.4 MB, free: 8.855 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007836/0.3863, allocations: 230.5 kB / 339.6 MB, free: 8.629 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001233/0.3876, allocations: 0.8034 MB / 340.5 MB, free: 7.551 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001045/0.3886, allocations: 399.5 kB / 340.8 MB, free: 7.156 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-05/0.3887, allocations: 8 kB / 340.8 MB, free: 7.148 MB / 282.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.003197/0.3919, allocations: 1.165 MB / 342 MB, free: 5.961 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.645e-05/0.392, allocations: 43.42 kB / 342.1 MB, free: 5.914 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.99e-05/0.392, allocations: 20 kB / 342.1 MB, free: 5.895 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003125/0.3924, allocations: 70.25 kB / 342.1 MB, free: 5.82 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001551/0.3939, allocations: 275.5 kB / 342.4 MB, free: 5.551 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002495/0.3964, allocations: 2.591 MB / 345 MB, free: 2.695 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001527/0.398, allocations: 79.84 kB / 345.1 MB, free: 2.617 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001118/0.3981, allocations: 56 kB / 345.1 MB, free: 2.562 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.0008913/0.399, allocations: 353.3 kB / 345.5 MB, free: 2.207 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000255/0.3993, allocations: 130.4 kB / 345.6 MB, free: 2.078 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001693/0.401, allocations: 0.5605 MB / 346.2 MB, free: 1.496 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.098e-05/0.401, allocations: 12 kB / 346.2 MB, free: 1.484 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.4011, allocations: 0 / 346.2 MB, free: 1.484 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.097e-05/0.4011, allocations: 3.984 kB / 346.2 MB, free: 1.48 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004297/0.4054, allocations: 1.814 MB / 348 MB, free: 15.55 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.267e-06/0.4054, allocations: 4 kB / 348 MB, free: 15.55 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008561/0.4063, allocations: 107.8 kB / 348.1 MB, free: 15.44 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002447/0.4066, allocations: 46.14 kB / 348.2 MB, free: 15.39 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.003e-05/0.4066, allocations: 19.98 kB / 348.2 MB, free: 15.37 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002362/0.409, allocations: 2.552 MB / 350.7 MB, free: 12.55 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.163e-06/0.4091, allocations: 4 kB / 350.7 MB, free: 12.55 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002637/0.4117, allocations: 1.132 MB / 351.9 MB, free: 11.24 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006093/0.4124, allocations: 251.3 kB / 352.1 MB, free: 10.97 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000271/0.4126, allocations: 16 kB / 352.1 MB, free: 10.96 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008825/0.4135, allocations: 35.97 kB / 352.2 MB, free: 10.92 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001545/0.4137, allocations: 51.83 kB / 352.2 MB, free: 10.87 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.776e-05/0.4138, allocations: 20 kB / 352.2 MB, free: 10.85 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001693/0.4155, allocations: 0.7797 MB / 353 MB, free: 10.07 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.041e-06/0.4155, allocations: 0 / 353 MB, free: 10.07 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.00164/0.4171, allocations: 300 kB / 353.3 MB, free: 9.777 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.0002957/0.4175, allocations: 142.8 kB / 353.4 MB, free: 9.629 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002423/0.4199, allocations: 0.9218 MB / 354.4 MB, free: 8.676 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 7.935e-06/0.4199, allocations: 3.938 kB / 354.4 MB, free: 8.672 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001141/0.4211, allocations: 478 kB / 354.8 MB, free: 8.18 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002334/0.4234, allocations: 316.5 kB / 355.1 MB, free: 7.875 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00668/0.4301, allocations: 3.05 MB / 358.2 MB, free: 4.75 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001108/0.4313, allocations: 1.209 MB / 359.4 MB, free: 3.512 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.001137/0.4325, allocations: 167.2 kB / 359.6 MB, free: 3.344 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002694/0.4328, allocations: 83.44 kB / 359.6 MB, free: 3.262 MB / 298.7 MB Notification: Performance of SimCode: time 1.092e-06/0.4328, allocations: 0 / 359.6 MB, free: 3.262 MB / 298.7 MB Notification: Performance of Templates: time 0.04224/0.475, allocations: 12.94 MB / 372.6 MB, free: 6.348 MB / 314.7 MB