Running command: translateModel(HanserModelica.SynchronousMachines.SMR_MTPA,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA") Notification: Performance of loadModel(HanserModelica): time 2.075/2.075, allocations: 214.7 MB / 226.9 MB, free: 1.293 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.939e-05/2.948e-05, allocations: 4 kB / 279.5 MB, free: 13.08 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08761/0.08766, allocations: 49.7 MB / 329.2 MB, free: 11.28 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4725/0.5602, allocations: 130.6 MB / 459.8 MB, free: 1.816 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002209/0.5605, allocations: 72.03 kB / 459.9 MB, free: 1.785 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.541/2.101, allocations: 324.9 MB / 0.7664 GB, free: 45.08 MB / 442.7 MB Notification: Performance of FrontEnd: time 5.003e-06/2.101, allocations: 0 / 0.7664 GB, free: 45.08 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0005122/2.102, allocations: 216.7 kB / 0.7666 GB, free: 45.06 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2735 * Number of variables: 2735 Notification: Performance of Generate backend data structure: time 0.03188/2.134, allocations: 8.586 MB / 0.775 GB, free: 42.3 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/2.134, allocations: 14.39 kB / 0.775 GB, free: 42.3 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04586/2.18, allocations: 5.813 MB / 0.7807 GB, free: 41.77 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02121/2.201, allocations: 7.333 MB / 0.7878 GB, free: 40.6 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000916/2.202, allocations: 0.7052 MB / 0.7885 GB, free: 40.58 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003812/2.206, allocations: 0.9194 MB / 0.7894 GB, free: 40.58 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04774/2.254, allocations: 16.51 MB / 0.8056 GB, free: 33.58 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003706/2.254, allocations: 23.23 kB / 0.8056 GB, free: 33.57 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002999/2.257, allocations: 404.1 kB / 0.806 GB, free: 33.27 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008176/2.258, allocations: 0.7051 MB / 0.8066 GB, free: 33.11 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03639/2.294, allocations: 15.38 MB / 0.8217 GB, free: 20.83 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.415/2.709, allocations: 51.74 MB / 0.8722 GB, free: 42.48 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04384/2.753, allocations: 41.03 MB / 0.9123 GB, free: 42.09 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01422/2.767, allocations: 6.955 MB / 0.919 GB, free: 41.99 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05127/2.819, allocations: 21.51 MB / 0.94 GB, free: 41.17 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.855e-05/2.819, allocations: 93.64 kB / 0.9401 GB, free: 41.12 MB / 490.7 MB Notification: Performance of pre-optimization done (n=681): time 1.276e-05/2.819, allocations: 0 / 0.9401 GB, free: 41.12 MB / 490.7 MB Notification: Performance of matching and sorting (n=688): time 0.05841/2.877, allocations: 22.47 MB / 0.9621 GB, free: 36.81 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001646/2.878, allocations: 111 kB / 0.9622 GB, free: 36.74 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009233/2.887, allocations: 2.349 MB / 0.9645 GB, free: 35.85 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001991/2.889, allocations: 116.2 kB / 0.9646 GB, free: 35.75 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004049/2.893, allocations: 3.551 MB / 0.9681 GB, free: 33.16 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.005095/2.898, allocations: 2.27 MB / 0.9703 GB, free: 31.39 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001787/2.9, allocations: 121.9 kB / 0.9704 GB, free: 31.29 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.001358/2.901, allocations: 0.6027 MB / 0.971 GB, free: 30.86 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01798/2.919, allocations: 4.414 MB / 0.9753 GB, free: 29.04 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02012/2.94, allocations: 6.151 MB / 0.9813 GB, free: 25.14 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02181/2.961, allocations: 5.515 MB / 0.9867 GB, free: 22.93 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.962e-05/2.962, allocations: 13.56 kB / 0.9867 GB, free: 22.93 MB / 490.7 MB Notification: Performance of matching and sorting (n=929) (initialization): time 0.03679/2.998, allocations: 13.28 MB / 0.9997 GB, free: 17.73 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.388e-05/2.998, allocations: 29.62 kB / 0.9997 GB, free: 17.73 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.926e-05/2.999, allocations: 54.81 kB / 0.9997 GB, free: 17.73 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01115/3.01, allocations: 3.978 MB / 1.004 GB, free: 16.54 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007006/3.017, allocations: 1.198 MB / 1.005 GB, free: 16.51 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01589/3.033, allocations: 9.621 MB / 1.014 GB, free: 11.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006022/3.039, allocations: 351.1 kB / 1.015 GB, free: 11.09 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001812/3.041, allocations: 309.2 kB / 1.015 GB, free: 11.04 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 238 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (635): * Single equations (assignments): 583 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.002415/3.043, allocations: 473.4 kB / 1.015 GB, free: 10.71 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001658/3.045, allocations: 438.2 kB / 1.016 GB, free: 10.49 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03342/3.078, allocations: 12.73 MB / 1.028 GB, free: 0.6836 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003158/3.079, allocations: 180.5 kB / 1.028 GB, free: 0.5273 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.013e-05/3.079, allocations: 3.047 kB / 1.028 GB, free: 0.5273 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001078/3.079, allocations: 28.22 kB / 1.028 GB, free: 0.5273 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3688/3.448, allocations: 24.95 MB / 1.053 GB, free: 99.05 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.357e-05/3.448, allocations: 2.75 kB / 1.053 GB, free: 99.05 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005222/3.453, allocations: 0.7938 MB / 1.053 GB, free: 99.05 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01102/3.464, allocations: 3.885 MB / 1.057 GB, free: 98.96 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002102/3.466, allocations: 144.2 kB / 1.057 GB, free: 98.96 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01699/3.483, allocations: 9.52 MB / 1.067 GB, free: 96.85 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.333e-06/3.483, allocations: 5.062 kB / 1.067 GB, free: 96.85 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0402/3.523, allocations: 19.16 MB / 1.085 GB, free: 95.88 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004649/3.528, allocations: 1.457 MB / 1.087 GB, free: 95.79 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001982/3.53, allocations: 97.69 kB / 1.087 GB, free: 95.79 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004685/3.535, allocations: 267.6 kB / 1.087 GB, free: 95.79 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002101/3.537, allocations: 0.5044 MB / 1.088 GB, free: 95.77 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009396/3.538, allocations: 187.8 kB / 1.088 GB, free: 95.77 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.00379/3.542, allocations: 1.756 MB / 1.09 GB, free: 95.61 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.817e-06/3.542, allocations: 0 / 1.09 GB, free: 95.61 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.009529/3.551, allocations: 1.679 MB / 1.091 GB, free: 95.61 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 1 (smr.phiMechanical) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (428): * Single equations (assignments): 376 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.00224/3.554, allocations: 0.5556 MB / 1.092 GB, free: 95.5 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02561/3.579, allocations: 10.81 MB / 1.102 GB, free: 95.27 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.921e-06/3.579, allocations: 3.062 kB / 1.102 GB, free: 95.27 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01426/3.594, allocations: 5.581 MB / 1.108 GB, free: 94.19 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005945/3.6, allocations: 0.7943 MB / 1.109 GB, free: 93.95 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04544/3.645, allocations: 17.71 MB / 1.126 GB, free: 87 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01291/3.658, allocations: 6.454 MB / 1.132 GB, free: 84.75 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.007984/3.666, allocations: 1.532 MB / 1.134 GB, free: 84.59 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002113/3.668, allocations: 322.7 kB / 1.134 GB, free: 84.57 MB / 0.4948 GB Notification: Performance of SimCode: time 1.873e-06/3.668, allocations: 0 / 1.134 GB, free: 84.57 MB / 0.4948 GB Notification: Performance of Templates: time 0.5515/4.22, allocations: 100.8 MB / 1.232 GB, free: 104.2 MB / 0.4948 GB