Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001409/0.001409, allocations: 198.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.47/1.47, allocations: 225.6 MB / 234.8 MB, free: 3.266 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008437/0.0008437, allocations: 97.33 kB / 286.7 MB, free: 5.23 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.679e-05/1.698e-05, allocations: 4 kB / 343.7 MB, free: 8.277 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.115, allocations: 51.48 MB / 395.2 MB, free: 4.762 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4191/0.5342, allocations: 135.1 MB / 0.5179 GB, free: 6.793 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003189/0.5346, allocations: 101.5 kB / 0.518 GB, free: 6.738 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.168/1.703, allocations: 314.8 MB / 0.8254 GB, free: 56.07 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.815e-06/1.703, allocations: 4 kB / 0.8254 GB, free: 56.07 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004601/1.703, allocations: 148.8 kB / 0.8255 GB, free: 56.05 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1903 * Number of variables: 1903 Notification: Performance of Generate backend data structure: time 0.02415/1.727, allocations: 6.473 MB / 0.8318 GB, free: 53.9 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.065e-05/1.727, allocations: 11.78 kB / 0.8318 GB, free: 53.9 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02106/1.748, allocations: 3.589 MB / 0.8354 GB, free: 53.51 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01325/1.762, allocations: 4.895 MB / 0.8401 GB, free: 52.62 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003865/1.762, allocations: 213.6 kB / 0.8403 GB, free: 52.62 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003179/1.765, allocations: 390.5 kB / 0.8407 GB, free: 52.61 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01795/1.783, allocations: 8.7 MB / 0.8492 GB, free: 49.74 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02887/1.812, allocations: 9.801 MB / 0.8588 GB, free: 45.39 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003362/1.813, allocations: 6.531 kB / 0.8588 GB, free: 45.38 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002423/1.815, allocations: 6.031 kB / 0.8588 GB, free: 45.38 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007075/1.816, allocations: 0.5211 MB / 0.8593 GB, free: 45.27 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07115/1.887, allocations: 35.71 MB / 0.8942 GB, free: 19.43 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01166/1.899, allocations: 11.58 MB / 0.9055 GB, free: 6.836 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004883/1.904, allocations: 2.809 MB / 0.9082 GB, free: 4.031 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005978/1.904, allocations: 248.4 kB / 0.9085 GB, free: 3.766 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.704e-05/1.904, allocations: 77.42 kB / 0.9085 GB, free: 3.68 MB / 458.7 MB Notification: Performance of pre-optimization done (n=367): time 7.424e-06/1.904, allocations: 0 / 0.9085 GB, free: 3.68 MB / 458.7 MB Notification: Performance of matching and sorting (n=377): time 0.3876/2.292, allocations: 14.4 MB / 0.9226 GB, free: 69.57 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.4e-05/2.292, allocations: 117.2 kB / 0.9227 GB, free: 69.47 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003759/2.296, allocations: 2.12 MB / 0.9248 GB, free: 69.24 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007163/2.297, allocations: 27.86 kB / 0.9248 GB, free: 69.21 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001674/2.298, allocations: 2.885 MB / 0.9276 GB, free: 67.9 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001538/2.3, allocations: 1.219 MB / 0.9288 GB, free: 67.09 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002491/2.3, allocations: 0 / 0.9288 GB, free: 67.09 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000299/2.3, allocations: 0.4981 MB / 0.9293 GB, free: 66.78 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003165/2.304, allocations: 2.25 MB / 0.9315 GB, free: 66.77 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003901/2.307, allocations: 3.809 MB / 0.9352 GB, free: 64.88 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009724/2.317, allocations: 4.351 MB / 0.9395 GB, free: 64.83 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.98e-05/2.317, allocations: 12.81 kB / 0.9395 GB, free: 64.83 MB / 458.7 MB Notification: Performance of matching and sorting (n=613) (initialization): time 0.01932/2.337, allocations: 7.926 MB / 0.9472 GB, free: 64.53 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.005075/2.342, allocations: 21.01 MB / 0.9677 GB, free: 42.53 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002032/2.342, allocations: 50.97 kB / 0.9678 GB, free: 42.53 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00431/2.346, allocations: 1.132 MB / 0.9689 GB, free: 42.5 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005293/2.352, allocations: 1.091 MB / 0.97 GB, free: 42.49 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004391/2.356, allocations: 2.425 MB / 0.9723 GB, free: 41.93 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005064/2.361, allocations: 241.2 kB / 0.9726 GB, free: 41.91 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001502/2.363, allocations: 221.4 kB / 0.9728 GB, free: 41.91 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/2.363, allocations: 6.562 kB / 0.9728 GB, free: 41.91 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02078/2.383, allocations: 7.526 MB / 0.9801 GB, free: 41.77 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002459/2.384, allocations: 50.34 kB / 0.9802 GB, free: 41.77 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003331/2.387, allocations: 1.06 MB / 0.9812 GB, free: 41.74 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004916/2.392, allocations: 1.095 MB / 0.9823 GB, free: 41.74 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003828/2.396, allocations: 2.335 MB / 0.9846 GB, free: 41.17 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004819/2.401, allocations: 224 kB / 0.9848 GB, free: 41.16 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001417/2.402, allocations: 224.4 kB / 0.985 GB, free: 41.16 MB / 458.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: smpm.stator.Phi.re:VARIABLE(unit = "Wb" ) "Real part of complex magnetic flux" type: Real smpm.stator.Phi.im:VARIABLE(unit = "Wb" ) "Imaginary part of complex magnetic flux" type: Real dqToThreePhase.id_rms:VARIABLE() type: Real smpm.is[3].re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] smpm.is[3].im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] smpm.is[2].im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] smpm.is[2].re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] smpm.stator.V_m.im:VARIABLE(unit = "A" ) "Imaginary part of complex magnetic potential difference" type: Real smpm.stator.V_m.re:VARIABLE(unit = "A" ) "Real part of complex magnetic potential difference" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 232 * Number of states: 0 () * Number of discrete variables: 1 (fieldWeakeningController.PID.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (541): * Single equations (assignments): 539 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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: 0 * Non-linear torn systems: 1 {9 63} Notification: Performance of prepare postOptimizeDAE: time 0.002099/2.404, allocations: 270.6 kB / 0.9852 GB, free: 41.02 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001302/2.406, allocations: 327.3 kB / 0.9855 GB, free: 40.86 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01626/2.422, allocations: 6.522 MB / 0.9919 GB, free: 40.61 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.062e-05/2.422, allocations: 45.41 kB / 0.992 GB, free: 40.61 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.187e-05/2.422, allocations: 5.906 kB / 0.992 GB, free: 40.61 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.847e-05/2.422, allocations: 21.28 kB / 0.992 GB, free: 40.61 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03463/2.457, allocations: 13.41 MB / 1.005 GB, free: 36.22 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.456e-05/2.457, allocations: 0 / 1.005 GB, free: 36.22 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003238/2.46, allocations: 0.7027 MB / 1.006 GB, free: 36.2 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002975/2.463, allocations: 0.9087 MB / 1.007 GB, free: 36 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007982/2.464, allocations: 31.5 kB / 1.007 GB, free: 35.99 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002527/2.466, allocations: 2.006 MB / 1.009 GB, free: 34.88 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.443e-06/2.466, allocations: 5.688 kB / 1.009 GB, free: 34.88 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01835/2.485, allocations: 9.313 MB / 1.018 GB, free: 31.09 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002731/2.488, allocations: 0.8521 MB / 1.019 GB, free: 30.59 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001213/2.489, allocations: 0 / 1.019 GB, free: 30.59 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003047/2.492, allocations: 205.3 kB / 1.019 GB, free: 30.59 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005232/2.492, allocations: 217.9 kB / 1.019 GB, free: 30.56 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003478/2.493, allocations: 105.7 kB / 1.019 GB, free: 30.54 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003545/2.496, allocations: 1.548 MB / 1.021 GB, free: 29.88 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.5e-07/2.496, allocations: 4 kB / 1.021 GB, free: 29.88 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.009923/2.506, allocations: 1.903 MB / 1.022 GB, free: 29.86 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (speedSource.phi,fieldWeakeningController.PID.I.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (347): * Single equations (assignments): 345 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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: 0 * Non-linear torn systems: 1 {9 50} Notification: Performance of Backend phase and start with SimCode phase: time 0.001229/2.508, allocations: 0.4973 MB / 1.023 GB, free: 29.69 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01469/2.522, allocations: 8.876 MB / 1.032 GB, free: 26.18 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.277e-06/2.522, allocations: 0 / 1.032 GB, free: 26.18 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004491/2.527, allocations: 2.588 MB / 1.034 GB, free: 23.86 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004271/2.531, allocations: 0.5623 MB / 1.035 GB, free: 23.44 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02808/2.559, allocations: 10.98 MB / 1.045 GB, free: 13.77 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009151/2.568, allocations: 4.569 MB / 1.05 GB, free: 10.26 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.01086/2.579, allocations: 2.552 MB / 1.052 GB, free: 8.656 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001604/2.581, allocations: 255.5 kB / 1.053 GB, free: 8.422 MB / 458.7 MB Notification: Performance of SimCode: time 1.823e-06/2.581, allocations: 0 / 1.053 GB, free: 8.422 MB / 458.7 MB Notification: Performance of Templates: time 0.438/3.019, allocations: 58.22 MB / 1.109 GB, free: 74.44 MB / 474.7 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.makefile (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.pipe 2>&1)