Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) 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.857/1.857, allocations: 194.9 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005571/0.0005574, allocations: 11.98 kB / 264.6 MB, free: 12.9 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09827/0.09886, allocations: 44.49 MB / 309.1 MB, free: 340 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4603/0.5592, allocations: 130.1 MB / 439.1 MB, free: 9.156 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000386/0.5597, allocations: 111.3 kB / 439.2 MB, free: 9.094 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.619/2.179, allocations: 332.9 MB / 0.7541 GB, free: 51.62 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.046e-06/2.179, allocations: 0 / 0.7541 GB, free: 51.62 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0009592/2.18, allocations: 220 kB / 0.7543 GB, free: 51.6 MB / 426.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.04295/2.223, allocations: 9.166 MB / 0.7632 GB, free: 48.56 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.457e-05/2.223, allocations: 10 kB / 0.7632 GB, free: 48.56 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04842/2.271, allocations: 5.886 MB / 0.769 GB, free: 48.01 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0264/2.298, allocations: 7.469 MB / 0.7763 GB, free: 46.82 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001227/2.299, allocations: 0.7161 MB / 0.777 GB, free: 46.8 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004842/2.304, allocations: 0.9427 MB / 0.7779 GB, free: 46.79 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05413/2.358, allocations: 17.01 MB / 0.7945 GB, free: 41.49 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006159/2.359, allocations: 13.83 kB / 0.7945 GB, free: 41.48 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004403/2.363, allocations: 409.2 kB / 0.7949 GB, free: 41.18 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001142/2.364, allocations: 0.7177 MB / 0.7956 GB, free: 41.02 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04609/2.41, allocations: 15.9 MB / 0.8111 GB, free: 29.57 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4666/2.877, allocations: 52.77 MB / 0.8627 GB, free: 31.32 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0498/2.927, allocations: 41.49 MB / 0.9032 GB, free: 30.71 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06077/2.988, allocations: 21.78 MB / 0.9245 GB, free: 29.79 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.675e-05/2.988, allocations: 95.28 kB / 0.9246 GB, free: 29.75 MB / 458.7 MB Notification: Performance of pre-optimization done (n=693): time 1.181e-05/2.988, allocations: 0 / 0.9246 GB, free: 29.75 MB / 458.7 MB Notification: Performance of matching and sorting (n=701): time 0.1647/3.152, allocations: 41.27 MB / 0.9649 GB, free: 18.29 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.873e-05/3.153, allocations: 110.8 kB / 0.965 GB, free: 18.21 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005918/3.159, allocations: 2.786 MB / 0.9677 GB, free: 17.18 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001491/3.16, allocations: 117.9 kB / 0.9678 GB, free: 17.08 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002731/3.163, allocations: 3.618 MB / 0.9713 GB, free: 14.39 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003612/3.167, allocations: 2.316 MB / 0.9736 GB, free: 12.59 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009234/3.167, allocations: 129.8 kB / 0.9737 GB, free: 12.49 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0008117/3.168, allocations: 0.6049 MB / 0.9743 GB, free: 12.06 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01158/3.18, allocations: 4.525 MB / 0.9787 GB, free: 10.21 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01363/3.194, allocations: 6.317 MB / 0.9849 GB, free: 6.203 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01359/3.207, allocations: 5.615 MB / 0.9904 GB, free: 3.68 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.104e-05/3.207, allocations: 14.47 kB / 0.9904 GB, free: 3.68 MB / 458.7 MB Notification: Performance of matching and sorting (n=944) (initialization): time 0.03963/3.247, allocations: 13.93 MB / 1.004 GB, free: 14.93 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.337e-05/3.247, allocations: 27.62 kB / 1.004 GB, free: 14.93 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001142/3.247, allocations: 51.47 kB / 1.004 GB, free: 14.93 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01254/3.26, allocations: 4.015 MB / 1.008 GB, free: 13.21 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0097/3.27, allocations: 1.229 MB / 1.009 GB, free: 12.26 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01938/3.289, allocations: 9.674 MB / 1.019 GB, free: 3.523 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007424/3.296, allocations: 347.2 kB / 1.019 GB, free: 3.254 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001394/3.298, allocations: 316.6 kB / 1.019 GB, free: 2.969 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 241 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (650): * Single equations (assignments): 598 * 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.01088/3.309, allocations: 3.611 MB / 1.023 GB, free: 0 / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.3278/3.637, allocations: 458.1 kB / 1.023 GB, free: 94.98 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03762/3.674, allocations: 13.01 MB / 1.036 GB, free: 94.67 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003065/3.675, allocations: 186.5 kB / 1.036 GB, free: 94.67 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.683e-05/3.675, allocations: 2.25 kB / 1.036 GB, free: 94.67 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001274/3.675, allocations: 32.58 kB / 1.036 GB, free: 94.67 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06239/3.737, allocations: 24.85 MB / 1.06 GB, free: 93.87 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.195e-05/3.737, allocations: 6.219 kB / 1.06 GB, free: 93.87 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007089/3.744, allocations: 0.8262 MB / 1.061 GB, free: 93.86 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01158/3.756, allocations: 3.915 MB / 1.065 GB, free: 93.78 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001418/3.757, allocations: 150.2 kB / 1.065 GB, free: 93.78 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01631/3.774, allocations: 9.551 MB / 1.075 GB, free: 91.27 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.903e-06/3.774, allocations: 12.19 kB / 1.075 GB, free: 91.27 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04578/3.82, allocations: 19.4 MB / 1.093 GB, free: 82.71 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005199/3.825, allocations: 1.487 MB / 1.095 GB, free: 81.91 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001675/3.827, allocations: 108.7 kB / 1.095 GB, free: 81.82 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005049/3.832, allocations: 269.7 kB / 1.095 GB, free: 81.75 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001675/3.833, allocations: 0.5093 MB / 1.096 GB, free: 81.64 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000694/3.834, allocations: 190.9 kB / 1.096 GB, free: 81.6 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003854/3.838, allocations: 1.859 MB / 1.098 GB, free: 80.9 MB / 474.7 MB Notification: Performance of sort global known variables: time 6.92e-07/3.838, allocations: 0 / 1.098 GB, free: 80.9 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009574/3.847, allocations: 1.726 MB / 1.099 GB, free: 80.7 MB / 474.7 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (443): * Single equations (assignments): 391 * 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.002107/3.85, allocations: 0.5856 MB / 1.1 GB, free: 80.51 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02895/3.879, allocations: 11.17 MB / 1.111 GB, free: 76.34 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.076e-05/3.879, allocations: 3.875 kB / 1.111 GB, free: 76.34 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01668/3.895, allocations: 5.728 MB / 1.117 GB, free: 74.14 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007845/3.903, allocations: 0.8472 MB / 1.117 GB, free: 73.9 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05426/3.958, allocations: 24.42 MB / 1.141 GB, free: 55.86 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01234/3.97, allocations: 6.531 MB / 1.148 GB, free: 50.89 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.008304/3.978, allocations: 1.565 MB / 1.149 GB, free: 49.81 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002262/3.981, allocations: 332.8 kB / 1.149 GB, free: 49.51 MB / 474.7 MB Notification: Performance of SimCode: time 1.102e-06/3.981, allocations: 0 / 1.149 GB, free: 49.51 MB / 474.7 MB Notification: Performance of Templates: time 0.6108/4.591, allocations: 111.5 MB / 1.258 GB, free: 78.77 MB / 474.7 MB