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: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_FieldWeakening",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_FieldWeakening",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001884/0.001884, allocations: 201.1 kB / 8.766 MB, free: 324 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.497/1.497, 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.001333/0.001333, allocations: 93.92 kB / 286.7 MB, free: 5.301 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.251e-05/2.255e-05, allocations: 4 kB / 343.8 MB, free: 8.16 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1334/0.1335, allocations: 51.48 MB / 395.3 MB, free: 4.641 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4623/0.5958, allocations: 135.1 MB / 0.518 GB, free: 6.613 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003119/0.5962, allocations: 103.3 kB / 0.5181 GB, free: 6.559 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.179/1.775, allocations: 314.8 MB / 0.8255 GB, free: 39.69 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.743e-06/1.775, allocations: 0 / 0.8255 GB, free: 39.69 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0004268/1.776, allocations: 151.8 kB / 0.8256 GB, free: 39.68 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: 1903 * Number of variables: 1903 Notification: Performance of Generate backend data structure: time 0.02269/1.798, allocations: 6.48 MB / 0.8319 GB, free: 37.51 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.599e-05/1.798, allocations: 15.67 kB / 0.832 GB, free: 37.51 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02096/1.819, allocations: 3.587 MB / 0.8355 GB, free: 37.12 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01425/1.834, allocations: 4.893 MB / 0.8402 GB, free: 36.23 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004538/1.834, allocations: 216.8 kB / 0.8404 GB, free: 36.23 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003962/1.838, allocations: 389 kB / 0.8408 GB, free: 36.22 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02042/1.859, allocations: 8.695 MB / 0.8493 GB, free: 33.36 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02894/1.888, allocations: 9.797 MB / 0.8589 GB, free: 29.01 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002624/1.888, allocations: 14.28 kB / 0.8589 GB, free: 29 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001584/1.89, allocations: 9.922 kB / 0.8589 GB, free: 29 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006474/1.89, allocations: 0.5198 MB / 0.8594 GB, free: 28.89 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06662/1.957, allocations: 35.71 MB / 0.8943 GB, free: 3.07 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01139/1.968, allocations: 11.58 MB / 0.9056 GB, free: 6.48 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005874/1.974, allocations: 2.803 MB / 0.9083 GB, free: 3.68 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000707/1.975, allocations: 253.8 kB / 0.9086 GB, free: 3.41 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001391/1.975, allocations: 73.44 kB / 0.9086 GB, free: 3.328 MB / 458.7 MB Notification: Performance of pre-optimization done (n=367): time 6.923e-06/1.975, allocations: 0 / 0.9086 GB, free: 3.328 MB / 458.7 MB Notification: Performance of matching and sorting (n=377): time 0.3621/2.337, allocations: 14.41 MB / 0.9227 GB, free: 69.32 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.314e-05/2.337, allocations: 116.6 kB / 0.9228 GB, free: 69.23 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003816/2.341, allocations: 2.119 MB / 0.9249 GB, free: 68.99 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000434/2.342, allocations: 28.42 kB / 0.9249 GB, free: 68.96 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001821/2.343, allocations: 2.89 MB / 0.9277 GB, free: 67.67 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00118/2.345, allocations: 1.217 MB / 0.9289 GB, free: 66.86 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002298/2.345, allocations: 0 / 0.9289 GB, free: 66.86 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002738/2.345, allocations: 0.5033 MB / 0.9294 GB, free: 66.55 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003121/2.348, allocations: 2.246 MB / 0.9316 GB, free: 66.54 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003809/2.352, allocations: 3.81 MB / 0.9353 GB, free: 64.64 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01034/2.362, allocations: 4.347 MB / 0.9396 GB, free: 64.6 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001038/2.363, allocations: 16.06 kB / 0.9396 GB, free: 64.6 MB / 458.7 MB Notification: Performance of matching and sorting (n=613) (initialization): time 0.01864/2.381, allocations: 7.919 MB / 0.9473 GB, free: 64.3 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0053/2.387, allocations: 21.01 MB / 0.9678 GB, free: 42.31 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001727/2.387, allocations: 51.41 kB / 0.9679 GB, free: 42.31 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003962/2.391, allocations: 1.124 MB / 0.969 GB, free: 42.27 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005085/2.396, allocations: 1.099 MB / 0.9701 GB, free: 42.27 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003279/2.399, allocations: 2.428 MB / 0.9724 GB, free: 41.7 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004564/2.404, allocations: 235.1 kB / 0.9727 GB, free: 41.68 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001248/2.405, allocations: 225.5 kB / 0.9729 GB, free: 41.68 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/2.405, allocations: 6.969 kB / 0.9729 GB, free: 41.68 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01943/2.425, allocations: 7.527 MB / 0.9802 GB, free: 41.55 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002883/2.425, allocations: 55.44 kB / 0.9803 GB, free: 41.54 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003447/2.428, allocations: 1.055 MB / 0.9813 GB, free: 41.51 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004941/2.433, allocations: 1.1 MB / 0.9824 GB, free: 41.5 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003351/2.437, allocations: 2.329 MB / 0.9847 GB, free: 40.94 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004486/2.441, allocations: 218.4 kB / 0.9849 GB, free: 40.94 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00145/2.443, allocations: 231.9 kB / 0.9851 GB, free: 40.93 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.002438/2.445, allocations: 269.7 kB / 0.9853 GB, free: 40.8 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01606/2.461, allocations: 6.101 MB / 0.9913 GB, free: 40.49 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001136/2.462, allocations: 330.4 kB / 0.9916 GB, free: 40.32 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01449/2.477, allocations: 6.523 MB / 0.998 GB, free: 39.27 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.14e-05/2.477, allocations: 37.88 kB / 0.998 GB, free: 39.27 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.064e-05/2.477, allocations: 0 / 0.998 GB, free: 39.27 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.792e-05/2.477, allocations: 20.2 kB / 0.998 GB, free: 39.27 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02523/2.502, allocations: 13.42 MB / 1.011 GB, free: 33.69 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-05/2.502, allocations: 0 / 1.011 GB, free: 33.69 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002779/2.505, allocations: 0.7091 MB / 1.012 GB, free: 33.66 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002645/2.508, allocations: 0.9021 MB / 1.013 GB, free: 33.47 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003738/2.508, allocations: 31.91 kB / 1.013 GB, free: 33.46 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002313/2.511, allocations: 2.007 MB / 1.015 GB, free: 32.35 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.741e-06/2.511, allocations: 0 / 1.015 GB, free: 32.35 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01456/2.525, allocations: 9.316 MB / 1.024 GB, free: 28.57 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002117/2.527, allocations: 0.8445 MB / 1.025 GB, free: 28.07 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006418/2.528, allocations: 8.812 kB / 1.025 GB, free: 28.07 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002206/2.53, allocations: 206.5 kB / 1.025 GB, free: 28.06 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003631/2.531, allocations: 217.5 kB / 1.025 GB, free: 28.04 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002238/2.531, allocations: 103.2 kB / 1.025 GB, free: 28.01 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002439/2.533, allocations: 1.546 MB / 1.027 GB, free: 27.36 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.6e-07/2.533, allocations: 0 / 1.027 GB, free: 27.36 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.008766/2.542, allocations: 1.907 MB / 1.029 GB, free: 27.33 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.01665/2.559, allocations: 10.51 MB / 1.039 GB, free: 19.71 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01405/2.573, allocations: 8.869 MB / 1.047 GB, free: 11.86 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.837e-06/2.573, allocations: 4.125 kB / 1.047 GB, free: 11.86 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004103/2.577, allocations: 2.582 MB / 1.05 GB, free: 9.535 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003848/2.581, allocations: 0.5747 MB / 1.051 GB, free: 9.102 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02998/2.611, allocations: 12.75 MB / 1.063 GB, free: 14.14 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005003/2.616, allocations: 4.57 MB / 1.067 GB, free: 10.63 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.00782/2.624, allocations: 2.551 MB / 1.07 GB, free: 9.027 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004212/2.628, allocations: 2.378 MB / 1.072 GB, free: 6.832 MB / 474.7 MB Notification: Performance of SimCode: time 6.61e-07/2.628, allocations: 0 / 1.072 GB, free: 6.832 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5059/3.134, allocations: 102.2 MB / 1.172 GB, free: 65.28 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001848/3.134, allocations: 206 kB / 1.172 GB, free: 65 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.565/8.699, allocations: 3.938 kB / 1.172 GB, free: 65 MB / 474.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_FieldWeakening_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_FieldWeakening.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.pipe 2>&1)