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.001446/0.001447, allocations: 187.9 kB / 8.353 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.359/1.359, allocations: 194.3 MB / 203.1 MB, free: 9.324 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001735/0.001734, allocations: 116.4 kB / 248.1 MB, free: 6.348 MB / 203.1 MB Notification: Performance of FrontEnd - loaded program: time 1.665e-05/1.667e-05, allocations: 4 kB / 298.1 MB, free: 8.215 MB / 251.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08011/0.08014, allocations: 44.5 MB / 342.6 MB, free: 11.61 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2847/0.3649, allocations: 129.3 MB / 471.9 MB, free: 15.14 MB / 363.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002439/0.3652, allocations: 98.58 kB / 472 MB, free: 15.09 MB / 363.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.9452/1.31, allocations: 328.9 MB / 0.7821 GB, free: 36.96 MB / 411.1 MB Notification: Performance of FrontEnd: time 1.653e-06/1.31, allocations: 0 / 0.7821 GB, free: 36.96 MB / 411.1 MB Notification: Performance of Transformations before backend: time 0.0004107/1.311, allocations: 217.7 kB / 0.7823 GB, free: 36.93 MB / 411.1 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.02555/1.336, allocations: 8.737 MB / 0.7908 GB, free: 31.47 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/1.336, allocations: 15.11 kB / 0.7909 GB, free: 31.46 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03028/1.367, allocations: 5.842 MB / 0.7966 GB, free: 26.1 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01622/1.383, allocations: 7.428 MB / 0.8038 GB, free: 18.7 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000699/1.384, allocations: 332 kB / 0.8041 GB, free: 18.38 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003349/1.387, allocations: 0.5506 MB / 0.8047 GB, free: 17.83 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02814/1.415, allocations: 13.65 MB / 0.818 GB, free: 4.172 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2703/1.686, allocations: 15.24 MB / 0.8329 GB, free: 33.09 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00049/1.686, allocations: 13.62 kB / 0.8329 GB, free: 33.09 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002888/1.689, allocations: 8.656 kB / 0.8329 GB, free: 33.09 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006846/1.69, allocations: 0.7111 MB / 0.8336 GB, free: 33.07 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09387/1.784, allocations: 52.25 MB / 0.8846 GB, free: 25.98 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03144/1.815, allocations: 40.78 MB / 0.9244 GB, free: 21.28 MB / 443.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01066/1.826, allocations: 7.013 MB / 0.9313 GB, free: 18.24 MB / 443.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03667/1.863, allocations: 22.35 MB / 0.9531 GB, free: 7.641 MB / 443.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000111/1.863, allocations: 90.22 kB / 0.9532 GB, free: 7.559 MB / 443.1 MB Notification: Performance of pre-optimization done (n=688): time 1.29e-05/1.863, allocations: 2.438 kB / 0.9532 GB, free: 7.559 MB / 443.1 MB Notification: Performance of matching and sorting (n=696): time 0.05633/1.919, allocations: 25.5 MB / 0.9781 GB, free: 12.83 MB / 459.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.82e-05/1.919, allocations: 111.2 kB / 0.9782 GB, free: 12.76 MB / 459.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004495/1.924, allocations: 2.149 MB / 0.9803 GB, free: 11.73 MB / 459.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001147/1.925, allocations: 25.7 kB / 0.9803 GB, free: 11.7 MB / 459.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002384/1.927, allocations: 3.648 MB / 0.9839 GB, free: 8.465 MB / 459.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00275/1.93, allocations: 2.212 MB / 0.9861 GB, free: 6.422 MB / 459.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008388/1.931, allocations: 0 / 0.9861 GB, free: 6.422 MB / 459.1 MB Notification: Performance of setup shared object (initialization): time 0.0006309/1.931, allocations: 0.6136 MB / 0.9867 GB, free: 5.895 MB / 459.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007282/1.939, allocations: 4.544 MB / 0.9911 GB, free: 1.867 MB / 459.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2663/2.205, allocations: 7.122 MB / 0.9981 GB, free: 81.92 MB / 459.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01155/2.217, allocations: 6.657 MB / 1.005 GB, free: 81.84 MB / 459.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.095e-05/2.217, allocations: 18.06 kB / 1.005 GB, free: 81.84 MB / 459.1 MB Notification: Performance of matching and sorting (n=941) (initialization): time 0.02516/2.242, allocations: 14.32 MB / 1.019 GB, free: 81.59 MB / 459.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.249e-05/2.242, allocations: 32.61 kB / 1.019 GB, free: 81.59 MB / 459.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.983e-05/2.242, allocations: 55.31 kB / 1.019 GB, free: 81.59 MB / 459.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007253/2.249, allocations: 3.935 MB / 1.022 GB, free: 81.51 MB / 459.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005971/2.255, allocations: 1.267 MB / 1.024 GB, free: 81.51 MB / 459.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01155/2.267, allocations: 9.948 MB / 1.033 GB, free: 79.41 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005048/2.272, allocations: 271.3 kB / 1.034 GB, free: 79.41 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001465/2.274, allocations: 314.1 kB / 1.034 GB, free: 79.41 MB / 459.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: starMQS.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] starMQS.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] starMQS.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] starMQS.plugToPins_p.pin_p[3].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] starMQS.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] starMQS.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: smpmQS.stator.Phi.im:VARIABLE(unit = "Wb" ) "Imaginary part of complex magnetic flux" type: Real smpmQS.stator.Phi.re:VARIABLE(unit = "Wb" ) "Real part of complex magnetic flux" type: Real resistorQS.resistor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] resistorQS.resistor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] resistorQS.resistor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] resistorQS.resistor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] resistorQS.resistor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] resistorQS.resistor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] currentRMSSensorQS.currentSensor[1].y.re:VARIABLE() "Real part of complex number" type: Real [3] currentRMSSensorQS.currentSensor[1].y.im:VARIABLE() "Imaginary part of complex number" type: Real [3] currentRMSSensorQS.currentSensor[2].y.im:VARIABLE() "Imaginary part of complex number" type: Real [3] currentRMSSensorQS.currentSensor[3].y.im:VARIABLE() "Imaginary part of complex number" type: Real [3] currentRMSSensorQS.currentSensor[3].y.re:VARIABLE() "Real part of complex number" type: Real [3] currentRMSSensorQS.currentSensor[2].y.re:VARIABLE() "Real part of complex number" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: terminalBoxQS.multiStar.plugToPins_p.pin_p[3].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] terminalBoxQS.multiStar.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] terminalBoxQS.multiStar.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] terminalBoxQS.multiStar.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] terminalBoxQS.multiStar.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] terminalBoxQS.multiStar.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: starQS.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[3].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] 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.001818/2.275, allocations: 391.2 kB / 1.034 GB, free: 79.29 MB / 459.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001224/2.277, allocations: 438.7 kB / 1.035 GB, free: 79.29 MB / 459.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02409/2.301, allocations: 13.71 MB / 1.048 GB, free: 78.96 MB / 459.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001847/2.301, allocations: 187.7 kB / 1.048 GB, free: 78.96 MB / 459.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.86e-05/2.301, allocations: 4 kB / 1.048 GB, free: 78.96 MB / 459.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.976e-05/2.301, allocations: 29.02 kB / 1.048 GB, free: 78.96 MB / 459.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03848/2.34, allocations: 24.48 MB / 1.072 GB, free: 73.95 MB / 459.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.933e-05/2.34, allocations: 3.594 kB / 1.072 GB, free: 73.95 MB / 459.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003847/2.344, allocations: 0.8559 MB / 1.073 GB, free: 73.93 MB / 459.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006129/2.35, allocations: 3.856 MB / 1.077 GB, free: 72.7 MB / 459.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009097/2.351, allocations: 79.72 kB / 1.077 GB, free: 72.68 MB / 459.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009629/2.36, allocations: 9.839 MB / 1.087 GB, free: 67.24 MB / 459.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.506e-06/2.36, allocations: 6.594 kB / 1.087 GB, free: 67.24 MB / 459.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03027/2.391, allocations: 20.54 MB / 1.107 GB, free: 56.42 MB / 459.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0034/2.394, allocations: 1.51 MB / 1.108 GB, free: 55.06 MB / 459.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001534/2.396, allocations: 11.56 kB / 1.108 GB, free: 55.05 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003689/2.399, allocations: 221.9 kB / 1.108 GB, free: 54.94 MB / 459.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001269/2.401, allocations: 0.5095 MB / 1.109 GB, free: 54.61 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009183/2.402, allocations: 193 kB / 1.109 GB, free: 54.43 MB / 459.1 MB Notification: Performance of sorting global known variables: time 0.00314/2.405, allocations: 1.569 MB / 1.111 GB, free: 53.04 MB / 459.1 MB Notification: Performance of sort global known variables: time 2.4e-07/2.405, allocations: 0 / 1.111 GB, free: 53.04 MB / 459.1 MB Notification: Performance of remove unused functions: time 0.006925/2.412, allocations: 1.499 MB / 1.112 GB, free: 51.55 MB / 459.1 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.001241/2.413, allocations: 485 kB / 1.112 GB, free: 51.22 MB / 459.1 MB Notification: Performance of simCode: created initialization part: time 0.01654/2.429, allocations: 11.11 MB / 1.123 GB, free: 41.39 MB / 459.1 MB Notification: Performance of simCode: created event and clocks part: time 1.578e-05/2.43, allocations: 0 / 1.123 GB, free: 41.39 MB / 459.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01079/2.44, allocations: 5.732 MB / 1.129 GB, free: 36.35 MB / 459.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005394/2.446, allocations: 0.6837 MB / 1.13 GB, free: 35.84 MB / 459.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03857/2.484, allocations: 18 MB / 1.147 GB, free: 19.93 MB / 459.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008061/2.493, allocations: 6.528 MB / 1.154 GB, free: 14.95 MB / 459.1 MB Notification: Performance of simCode: alias equations: time 0.006326/2.499, allocations: 1.842 MB / 1.155 GB, free: 14.41 MB / 459.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2423/2.741, allocations: 360.3 kB / 1.156 GB, free: 73.7 MB / 459.1 MB Notification: Performance of SimCode: time 1.082e-06/2.741, allocations: 1.531 kB / 1.156 GB, free: 73.7 MB / 459.1 MB Notification: Performance of Templates: time 0.1406/2.882, allocations: 97.05 MB / 1.25 GB, free: 59.06 MB / 459.1 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)