Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/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") 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 loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001422/0.001422, allocations: 181.2 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.449/1.449, allocations: 194.3 MB / 208.4 MB, free: 6.711 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001712/0.001712, allocations: 120.7 kB / 253.5 MB, free: 9.578 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.663e-05/2.665e-05, allocations: 0 / 305 MB, free: 29.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07512/0.07517, allocations: 44.5 MB / 349.5 MB, free: 1.227 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3461/0.4213, allocations: 130 MB / 479.5 MB, free: 14 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002419/0.4216, allocations: 97.5 kB / 479.5 MB, free: 13.95 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.049/1.471, allocations: 332.7 MB / 0.7932 GB, free: 24.62 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.733e-06/1.471, allocations: 0 / 0.7932 GB, free: 24.62 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000491/1.471, allocations: 214.4 kB / 0.7934 GB, free: 24.59 MB / 394.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.02685/1.498, allocations: 8.747 MB / 0.8019 GB, free: 16.91 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.219e-05/1.498, allocations: 19.97 kB / 0.8019 GB, free: 16.89 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03039/1.529, allocations: 5.845 MB / 0.8076 GB, free: 11.08 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0166/1.545, allocations: 7.434 MB / 0.8149 GB, free: 3.691 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008107/1.546, allocations: 0.725 MB / 0.8156 GB, free: 2.98 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003624/1.55, allocations: 0.9417 MB / 0.8165 GB, free: 2.051 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03738/1.587, allocations: 16.82 MB / 0.833 GB, free: 0.9531 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002982/1.587, allocations: 19.84 kB / 0.833 GB, free: 0.9336 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002364/1.59, allocations: 414.8 kB / 0.8334 GB, free: 0.5391 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.2106/1.8, allocations: 0.7099 MB / 0.8341 GB, free: 39.76 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03158/1.832, allocations: 15.66 MB / 0.8494 GB, free: 39.67 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08703/1.919, allocations: 52.79 MB / 0.9009 GB, free: 28.22 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02887/1.948, allocations: 41.38 MB / 0.9413 GB, free: 7.426 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01068/1.959, allocations: 7.005 MB / 0.9482 GB, free: 4.418 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0453/2.004, allocations: 22.02 MB / 0.9697 GB, free: 11.18 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001009/2.004, allocations: 93.92 kB / 0.9698 GB, free: 11.1 MB / 442.7 MB Notification: Performance of pre-optimization done (n=688): time 1.048e-05/2.004, allocations: 0 / 0.9698 GB, free: 11.1 MB / 442.7 MB Notification: Performance of matching and sorting (n=696): time 0.04747/2.052, allocations: 23.1 MB / 0.9923 GB, free: 8.719 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.571e-05/2.052, allocations: 123.4 kB / 0.9925 GB, free: 8.586 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00428/2.056, allocations: 2.431 MB / 0.9948 GB, free: 6.398 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001212/2.057, allocations: 120.4 kB / 0.9949 GB, free: 6.277 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002374/2.06, allocations: 3.633 MB / 0.9985 GB, free: 3.066 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003232/2.063, allocations: 2.298 MB / 1.001 GB, free: 0.9922 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005842/2.064, allocations: 132 kB / 1.001 GB, free: 0.8633 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0005989/2.064, allocations: 0.596 MB / 1.001 GB, free: 356 kB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2501/2.314, allocations: 4.968 MB / 1.006 GB, free: 84.84 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007958/2.322, allocations: 6.255 MB / 1.012 GB, free: 82.85 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008706/2.331, allocations: 5.561 MB / 1.018 GB, free: 82.74 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.939e-05/2.331, allocations: 15.41 kB / 1.018 GB, free: 82.74 MB / 458.7 MB Notification: Performance of matching and sorting (n=941) (initialization): time 0.0215/2.353, allocations: 13.53 MB / 1.031 GB, free: 82.5 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.975e-05/2.353, allocations: 27.56 kB / 1.031 GB, free: 82.5 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001033/2.353, allocations: 57.56 kB / 1.031 GB, free: 82.5 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006637/2.36, allocations: 3.977 MB / 1.035 GB, free: 82.41 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00538/2.365, allocations: 1.225 MB / 1.036 GB, free: 82.41 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01001/2.375, allocations: 9.638 MB / 1.046 GB, free: 80.29 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004786/2.38, allocations: 357.3 kB / 1.046 GB, free: 80.29 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001208/2.381, allocations: 322 kB / 1.046 GB, free: 80.29 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 243 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (647): * Single equations (assignments): 595 * 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.001242/2.382, allocations: 481.8 kB / 1.047 GB, free: 80.19 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001029/2.383, allocations: 449.4 kB / 1.047 GB, free: 80.19 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01779/2.401, allocations: 12.84 MB / 1.06 GB, free: 79.86 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001501/2.401, allocations: 183.3 kB / 1.06 GB, free: 79.86 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.495e-05/2.401, allocations: 3.781 kB / 1.06 GB, free: 79.86 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.536e-05/2.401, allocations: 28.78 kB / 1.06 GB, free: 79.86 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0367/2.438, allocations: 24.68 MB / 1.084 GB, free: 70.29 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.327e-05/2.438, allocations: 3.875 kB / 1.084 GB, free: 70.29 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003761/2.442, allocations: 0.8081 MB / 1.085 GB, free: 70.27 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006699/2.449, allocations: 3.891 MB / 1.089 GB, free: 69.04 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001133/2.45, allocations: 152.8 kB / 1.089 GB, free: 68.96 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009252/2.459, allocations: 9.506 MB / 1.098 GB, free: 63.72 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.443e-06/2.459, allocations: 10.06 kB / 1.098 GB, free: 63.71 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02829/2.487, allocations: 19.39 MB / 1.117 GB, free: 48.2 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00347/2.491, allocations: 1.479 MB / 1.118 GB, free: 46.86 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001497/2.492, allocations: 104.1 kB / 1.119 GB, free: 46.76 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003542/2.496, allocations: 266.8 kB / 1.119 GB, free: 46.57 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001383/2.497, allocations: 0.5184 MB / 1.119 GB, free: 46.24 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008574/2.498, allocations: 192 kB / 1.119 GB, free: 46.07 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003211/2.502, allocations: 1.824 MB / 1.121 GB, free: 44.44 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.31e-07/2.502, allocations: 0 / 1.121 GB, free: 44.44 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00708/2.509, allocations: 1.718 MB / 1.123 GB, free: 42.73 MB / 458.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (438): * Single equations (assignments): 386 * 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.001661/2.51, allocations: 0.6512 MB / 1.124 GB, free: 42.25 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01744/2.528, allocations: 11.02 MB / 1.134 GB, free: 32.45 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.676e-06/2.528, allocations: 128 / 1.134 GB, free: 32.45 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009856/2.538, allocations: 5.651 MB / 1.14 GB, free: 27.46 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005483/2.543, allocations: 0.8457 MB / 1.141 GB, free: 26.79 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03878/2.582, allocations: 17.99 MB / 1.158 GB, free: 10.86 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2422/2.824, allocations: 6.679 MB / 1.165 GB, free: 74.32 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.005739/2.83, allocations: 1.562 MB / 1.166 GB, free: 74.28 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001135/2.831, allocations: 337.1 kB / 1.167 GB, free: 74.28 MB / 458.7 MB Notification: Performance of SimCode: time 6.01e-07/2.831, allocations: 0 / 1.167 GB, free: 74.28 MB / 458.7 MB Notification: Performance of Templates: time 0.1439/2.975, allocations: 104.9 MB / 1.269 GB, free: 46.38 MB / 458.7 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1)