Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") Notification: Performance of loadModel(Modelica): time 1.758/1.758, allocations: 194.9 MB / 210.6 MB, free: 8.352 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.6e-05/2.645e-05, allocations: 11.91 kB / 258.9 MB, free: 8.027 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2858/0.2858, allocations: 44.5 MB / 303.4 MB, free: 12.96 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03896/0.3248, allocations: 23.39 MB / 326.7 MB, free: 6.141 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01987/0.3448, allocations: 7.308 MB / 334.1 MB, free: 14.82 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005368/0.3502, allocations: 219.4 kB / 334.3 MB, free: 14.6 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006727/0.357, allocations: 1.581 MB / 335.8 MB, free: 13.01 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01209/0.3691, allocations: 2.691 MB / 338.5 MB, free: 10.31 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006671/0.3758, allocations: 1.374 MB / 339.9 MB, free: 8.938 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01647/0.3923, allocations: 6.767 MB / 346.7 MB, free: 2.16 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03913/0.4315, allocations: 14.81 MB / 361.5 MB, free: 3.281 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006472/0.438, allocations: 2.934 MB / 364.4 MB, free: 348 kB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007773/0.4458, allocations: 3.504 MB / 367.9 MB, free: 12.82 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004043/0.4499, allocations: 0.5815 MB / 368.5 MB, free: 12.24 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001793/0.4517, allocations: 304 kB / 368.8 MB, free: 11.95 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002413/0.4542, allocations: 1.529 MB / 370.3 MB, free: 10.41 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003117/0.4573, allocations: 0.7109 MB / 371.1 MB, free: 9.699 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02521/0.4825, allocations: 17.76 MB / 388.8 MB, free: 7.895 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/0.4826, allocations: 0 / 388.8 MB, free: 7.895 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.266e-06/0.4826, allocations: 3.938 kB / 388.8 MB, free: 7.891 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.000499/0.4831, allocations: 0 / 388.8 MB, free: 7.891 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.04081/0.524, allocations: 9.979 MB / 398.8 MB, free: 13.82 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.883e-05/0.524, allocations: 8.031 kB / 398.8 MB, free: 13.82 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07271/0.5967, allocations: 8.497 MB / 407.3 MB, free: 5.297 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01744/0.6142, allocations: 5.843 MB / 413.1 MB, free: 15.39 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00101/0.6153, allocations: 0.7386 MB / 413.9 MB, free: 14.65 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004368/0.6197, allocations: 0.9686 MB / 414.8 MB, free: 13.68 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.546/1.166, allocations: 16.41 MB / 431.3 MB, free: 83.11 MB / 362.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005445/1.166, allocations: 16.95 kB / 431.3 MB, free: 83.11 MB / 362.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003422/1.17, allocations: 409.6 kB / 431.7 MB, free: 82.96 MB / 362.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001009/1.171, allocations: 0.6062 MB / 432.3 MB, free: 82.9 MB / 362.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04455/1.215, allocations: 15.88 MB / 448.2 MB, free: 76.44 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1108/1.326, allocations: 52.21 MB / 0.4886 GB, free: 29.24 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0464/1.373, allocations: 52.2 MB / 0.5396 GB, free: 2.078 MB / 394.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02867/1.401, allocations: 9.613 MB / 0.549 GB, free: 8.461 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.025e-05/1.401, allocations: 64.78 kB / 0.5491 GB, free: 8.387 MB / 410.8 MB Notification: Performance of pre-optimization done (n=281): time 6.051e-06/1.402, allocations: 0 / 0.5491 GB, free: 8.387 MB / 410.8 MB Notification: Performance of matching and sorting (n=289): time 0.04566/1.447, allocations: 12.86 MB / 0.5616 GB, free: 11.39 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.584e-05/1.447, allocations: 77.69 kB / 0.5617 GB, free: 11.3 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009084/1.456, allocations: 3.576 MB / 0.5652 GB, free: 7.699 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0005898/1.457, allocations: 69.7 kB / 0.5652 GB, free: 7.625 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004625/1.462, allocations: 4.623 MB / 0.5698 GB, free: 2.977 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001635/1.463, allocations: 1.028 MB / 0.5708 GB, free: 1.957 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006367/1.464, allocations: 120 kB / 0.5709 GB, free: 1.84 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.000547/1.465, allocations: 0.5582 MB / 0.5714 GB, free: 1.273 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006883/1.471, allocations: 2.46 MB / 0.5738 GB, free: 14.81 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009775/1.481, allocations: 5.593 MB / 0.5793 GB, free: 7.688 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009652/1.491, allocations: 3.764 MB / 0.583 GB, free: 3.902 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.802e-05/1.491, allocations: 32 kB / 0.583 GB, free: 3.871 MB / 442.8 MB Notification: Performance of matching and sorting (n=787) (initialization): time 0.303/1.794, allocations: 8.777 MB / 0.5916 GB, free: 149.3 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 8.939e-05/1.794, allocations: 51.38 kB / 0.5916 GB, free: 149.3 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000199/1.794, allocations: 110.7 kB / 0.5917 GB, free: 149.3 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003736/1.798, allocations: 0.8573 MB / 0.5926 GB, free: 149.2 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009277/1.808, allocations: 1.424 MB / 0.5939 GB, free: 149.2 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0152/1.823, allocations: 7.159 MB / 0.6009 GB, free: 145.3 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006547/1.829, allocations: 351.6 kB / 0.6013 GB, free: 145.2 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001189/1.831, allocations: 353.2 kB / 0.6016 GB, free: 145.2 MB / 442.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 496 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (742): * Single equations (assignments): 741 * 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 {(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008376/1.839, allocations: 3.645 MB / 0.6052 GB, free: 143.4 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001219/1.84, allocations: 417.5 kB / 0.6056 GB, free: 143.4 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01451/1.855, allocations: 5.186 MB / 0.6106 GB, free: 141.3 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.255e-05/1.855, allocations: 31.12 kB / 0.6107 GB, free: 141.3 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.5e-05/1.855, allocations: 3.969 kB / 0.6107 GB, free: 141.3 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.34e-05/1.855, allocations: 24.67 kB / 0.6107 GB, free: 141.3 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03175/1.887, allocations: 12.4 MB / 0.6228 GB, free: 136.3 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.059e-05/1.887, allocations: 3.812 kB / 0.6228 GB, free: 136.3 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004665/1.891, allocations: 0.5471 MB / 0.6233 GB, free: 136.2 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003229/1.895, allocations: 0.682 MB / 0.624 GB, free: 136.1 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005391/1.895, allocations: 68.7 kB / 0.6241 GB, free: 136.1 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01289/1.908, allocations: 6.315 MB / 0.6302 GB, free: 130.5 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.59e-06/1.908, allocations: 4 kB / 0.6302 GB, free: 130.5 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01728/1.926, allocations: 7.85 MB / 0.6379 GB, free: 122.7 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002658/1.928, allocations: 0.8394 MB / 0.6387 GB, free: 121.8 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001292/1.93, allocations: 52 kB / 0.6388 GB, free: 121.8 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003724/1.933, allocations: 175.9 kB / 0.6389 GB, free: 121.6 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007678/1.934, allocations: 213.9 kB / 0.6391 GB, free: 121.4 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003134/1.934, allocations: 83.98 kB / 0.6392 GB, free: 121.3 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.005852/1.94, allocations: 2.622 MB / 0.6418 GB, free: 118.7 MB / 442.8 MB Notification: Performance of sort global known variables: time 7.72e-07/1.94, allocations: 4 kB / 0.6418 GB, free: 118.7 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.007931/1.948, allocations: 1.551 MB / 0.6433 GB, free: 117.1 MB / 442.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 1 (smpmQS.phiMechanical) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (274): * Single equations (assignments): 273 * 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 {(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009064/1.949, allocations: 229.7 kB / 0.6435 GB, free: 116.9 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.01426/1.964, allocations: 6.171 MB / 0.6495 GB, free: 110.7 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 1.056e-05/1.964, allocations: 0.875 kB / 0.6495 GB, free: 110.7 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.006385/1.97, allocations: 2.515 MB / 0.652 GB, free: 108.2 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006443/1.977, allocations: 0.8564 MB / 0.6528 GB, free: 107.4 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03927/2.016, allocations: 19.26 MB / 0.6716 GB, free: 88.01 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01145/2.027, allocations: 6.359 MB / 0.6779 GB, free: 81.62 MB / 442.8 MB Notification: Performance of simCode: alias equations: time 0.008997/2.036, allocations: 1.983 MB / 0.6798 GB, free: 79.63 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001633/2.038, allocations: 335.4 kB / 0.6801 GB, free: 79.3 MB / 442.8 MB Notification: Performance of SimCode: time 1.132e-06/2.038, allocations: 3.938 kB / 0.6801 GB, free: 79.3 MB / 442.8 MB Notification: Performance of Templates: time 0.1492/2.187, allocations: 54.87 MB / 0.7337 GB, free: 24.45 MB / 442.8 MB