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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001032/0.001032, allocations: 92.72 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001031/0.001031, allocations: 205.4 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.318/1.318, allocations: 227.2 MB / 245.9 MB, free: 10.33 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002044/0.0002045, allocations: 4 kB / 306.6 MB, free: 1.395 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08362/0.08383, allocations: 51.5 MB / 358.1 MB, free: 13.9 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening): time 0.1805/0.2643, allocations: 19.86 MB / 378 MB, free: 9.316 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01343/0.2778, allocations: 7.437 MB / 385.4 MB, free: 7.184 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005099/0.2829, allocations: 143.4 kB / 385.5 MB, free: 7.156 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006031/0.289, allocations: 1.438 MB / 387 MB, free: 6.5 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00988/0.2989, allocations: 2.579 MB / 389.6 MB, free: 4.832 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004536/0.3035, allocations: 1.394 MB / 390.9 MB, free: 4.004 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01142/0.3149, allocations: 6.631 MB / 397.6 MB, free: 0.875 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01891/0.3339, allocations: 11.92 MB / 409.5 MB, free: 9.105 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004535/0.3384, allocations: 2.686 MB / 412.2 MB, free: 6.41 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004397/0.3428, allocations: 3.062 MB / 415.2 MB, free: 3.336 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009376/0.3438, allocations: 436 kB / 415.7 MB, free: 2.91 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002357/0.3462, allocations: 0.7222 MB / 416.4 MB, free: 2.188 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001293/0.3475, allocations: 1.347 MB / 417.7 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002314/0.3498, allocations: 1.451 MB / 419.2 MB, free: 15.37 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01206/0.3618, allocations: 12.56 MB / 431.8 MB, free: 2.777 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.3619, allocations: 0 / 431.8 MB, free: 2.777 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.258e-06/0.3619, allocations: 0 / 431.8 MB, free: 2.777 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002769/0.3622, allocations: 3.938 kB / 431.8 MB, free: 2.773 MB / 334.1 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.02166/0.3838, allocations: 7.739 MB / 439.5 MB, free: 10.95 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.034e-05/0.3839, allocations: 12.03 kB / 439.5 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02939/0.4133, allocations: 5.227 MB / 444.7 MB, free: 5.695 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01019/0.4235, allocations: 4.564 MB / 449.3 MB, free: 1.074 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004424/0.424, allocations: 0.5096 MB / 449.8 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001876/0.4259, allocations: 0.6679 MB / 450.5 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02246/0.4484, allocations: 11.06 MB / 461.5 MB, free: 4.75 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001735/0.4486, allocations: 19.84 kB / 461.6 MB, free: 4.73 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008593/0.4494, allocations: 280 kB / 461.8 MB, free: 4.457 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004402/0.4499, allocations: 434.4 kB / 462.3 MB, free: 4.031 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02003/0.4699, allocations: 10.68 MB / 472.9 MB, free: 9.344 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05433/0.5243, allocations: 36.34 MB / 0.4973 GB, free: 4.02 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01072/0.535, allocations: 11.88 MB / 0.5089 GB, free: 7.027 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004235/0.5355, allocations: 245 kB / 0.5092 GB, free: 6.75 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.963e-05/0.5356, allocations: 73.38 kB / 0.5092 GB, free: 6.668 MB / 430.1 MB Notification: Performance of pre-optimization done (n=365): time 4.909e-06/0.5356, allocations: 0 / 0.5092 GB, free: 6.668 MB / 430.1 MB Notification: Performance of matching and sorting (n=375): time 0.03559/0.5712, allocations: 15.46 MB / 0.5243 GB, free: 7.109 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000142/0.5713, allocations: 141.8 kB / 0.5245 GB, free: 6.945 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004221/0.5756, allocations: 2.742 MB / 0.5271 GB, free: 4.184 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006022/0.5762, allocations: 85.7 kB / 0.5272 GB, free: 4.094 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002095/0.5783, allocations: 2.892 MB / 0.5301 GB, free: 1.164 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.183/0.7613, allocations: 1.256 MB / 0.5313 GB, free: 132.5 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003651/0.7617, allocations: 98.53 kB / 0.5314 GB, free: 132.5 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0003126/0.762, allocations: 0.4901 MB / 0.5319 GB, free: 132.2 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004178/0.7662, allocations: 2.303 MB / 0.5341 GB, free: 132.2 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004383/0.7706, allocations: 3.898 MB / 0.5379 GB, free: 129.7 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004322/0.7749, allocations: 3.126 MB / 0.541 GB, free: 128.4 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.208e-05/0.775, allocations: 15.97 kB / 0.541 GB, free: 128.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=611) (initialization): time 0.01083/0.7858, allocations: 7.063 MB / 0.5479 GB, free: 125.7 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.003056/0.7889, allocations: 21.04 MB / 0.5684 GB, free: 103.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.789e-05/0.789, allocations: 54.7 kB / 0.5685 GB, free: 103.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003459/0.7925, allocations: 1.143 MB / 0.5696 GB, free: 103.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004151/0.7966, allocations: 1.09 MB / 0.5707 GB, free: 103.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00258/0.7992, allocations: 2.247 MB / 0.5728 GB, free: 101.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003174/0.8024, allocations: 301.6 kB / 0.5731 GB, free: 101.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003526/0.8028, allocations: 229 kB / 0.5734 GB, free: 101.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.114e-05/0.8028, allocations: 3.875 kB / 0.5734 GB, free: 101.8 MB / 446.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008885/0.8117, allocations: 6.717 MB / 0.5799 GB, free: 99.04 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001001/0.8118, allocations: 51.38 kB / 0.58 GB, free: 99.04 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002741/0.8146, allocations: 1.08 MB / 0.581 GB, free: 98.83 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003679/0.8183, allocations: 1.077 MB / 0.5821 GB, free: 98.73 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00217/0.8204, allocations: 2.165 MB / 0.5842 GB, free: 97.57 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002896/0.8234, allocations: 274.8 kB / 0.5844 GB, free: 97.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003566/0.8237, allocations: 227 kB / 0.5847 GB, free: 97.46 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 230 * Number of states: 0 () * Number of discrete variables: 1 (fieldWeakeningController.PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (554): * Single equations (assignments): 553 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 49} Notification: Performance of prepare postOptimizeDAE: time 0.003456/0.8272, allocations: 2.555 MB / 0.5872 GB, free: 96.14 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006255/0.8278, allocations: 349.1 kB / 0.5875 GB, free: 96.14 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008042/0.8359, allocations: 5.878 MB / 0.5932 GB, free: 92.39 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.959e-05/0.8359, allocations: 36 kB / 0.5933 GB, free: 92.36 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.848e-06/0.8359, allocations: 7.75 kB / 0.5933 GB, free: 92.36 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.898e-05/0.836, allocations: 18.84 kB / 0.5933 GB, free: 92.36 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01612/0.8521, allocations: 12.61 MB / 0.6056 GB, free: 80.95 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.127e-05/0.8521, allocations: 4.031 kB / 0.6056 GB, free: 80.94 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002532/0.8547, allocations: 0.6878 MB / 0.6063 GB, free: 80.25 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002767/0.8574, allocations: 0.9777 MB / 0.6072 GB, free: 79.28 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002886/0.8577, allocations: 71.98 kB / 0.6073 GB, free: 79.21 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002186/0.8599, allocations: 2.028 MB / 0.6093 GB, free: 77.16 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.86, allocations: 0 / 0.6093 GB, free: 77.16 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01073/0.8707, allocations: 8.693 MB / 0.6178 GB, free: 68.45 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001803/0.8725, allocations: 0.8402 MB / 0.6186 GB, free: 67.59 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000475/0.873, allocations: 64 kB / 0.6187 GB, free: 67.52 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001794/0.8748, allocations: 227.8 kB / 0.6189 GB, free: 67.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003324/0.8752, allocations: 226.8 kB / 0.6191 GB, free: 67.08 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002097/0.8754, allocations: 99.98 kB / 0.6192 GB, free: 66.98 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002335/0.8777, allocations: 1.828 MB / 0.621 GB, free: 65.15 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.8777, allocations: 3.391 kB / 0.621 GB, free: 65.15 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00611/0.8838, allocations: 2.095 MB / 0.623 GB, free: 63.06 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (speedSource.phi,fieldWeakeningController.PID.I.y) * 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 (346): * Single equations (assignments): 345 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0005227/0.8844, allocations: 254.4 kB / 0.6233 GB, free: 62.81 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01367/0.8981, allocations: 9.115 MB / 0.6322 GB, free: 53.71 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.132e-05/0.8981, allocations: 1.016 kB / 0.6322 GB, free: 53.71 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004184/0.9023, allocations: 2.615 MB / 0.6347 GB, free: 51.09 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003486/0.9058, allocations: 0.6954 MB / 0.6354 GB, free: 50.42 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01944/0.9253, allocations: 14.78 MB / 0.6498 GB, free: 35.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003898/0.9293, allocations: 4.558 MB / 0.6543 GB, free: 31.01 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.005884/0.9352, allocations: 2.305 MB / 0.6565 GB, free: 28.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000885/0.9361, allocations: 291.4 kB / 0.6568 GB, free: 28.41 MB / 446.1 MB Notification: Performance of SimCode: time 8.82e-07/0.9361, allocations: 0 / 0.6568 GB, free: 28.41 MB / 446.1 MB Notification: Performance of Templates: time 0.2389/1.175, allocations: 56.24 MB / 0.7117 GB, free: 140.7 MB / 462.1 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)