Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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.1_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.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009405/0.0009405, allocations: 84.38 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009324/0.0009325, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.435/1.435, allocations: 205.4 MB / 222.1 MB, free: 5.879 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004918/0.0004919, allocations: 16 kB / 278.9 MB, free: 13.02 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2165/0.217, allocations: 47.58 MB / 326.5 MB, free: 1.598 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02451/0.2416, allocations: 25.42 MB / 351.9 MB, free: 10.17 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01822/0.2598, allocations: 7.866 MB / 359.8 MB, free: 2.281 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005956/0.2658, allocations: 171.4 kB / 360 MB, free: 2.113 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005009/0.2709, allocations: 1.383 MB / 361.3 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007921/0.2788, allocations: 2.512 MB / 363.9 MB, free: 14.2 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004013/0.2828, allocations: 1.24 MB / 365.1 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01438/0.2972, allocations: 11.48 MB / 376.6 MB, free: 1.438 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03301/0.3303, allocations: 17.45 MB / 394 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006884/0.3372, allocations: 4.033 MB / 398.1 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007846/0.3451, allocations: 4.697 MB / 402.8 MB, free: 7.125 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002652/0.3478, allocations: 0.6133 MB / 403.4 MB, free: 6.512 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004165/0.3519, allocations: 0.9566 MB / 404.3 MB, free: 5.555 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002968/0.3549, allocations: 1.97 MB / 406.3 MB, free: 3.578 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003704/0.3587, allocations: 2.044 MB / 408.3 MB, free: 1.523 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01841/0.3771, allocations: 17.83 MB / 426.2 MB, free: 15.64 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.3771, allocations: 0 / 426.2 MB, free: 15.64 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3771, allocations: 4 kB / 426.2 MB, free: 15.64 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005199/0.3777, allocations: 0 / 426.2 MB, free: 15.64 MB / 366.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.02626/0.4039, allocations: 10.34 MB / 436.5 MB, free: 5.207 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.404, allocations: 12.03 kB / 436.5 MB, free: 5.195 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04459/0.4486, allocations: 8.61 MB / 445.1 MB, free: 12.56 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01228/0.4609, allocations: 5.827 MB / 451 MB, free: 6.676 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001107/0.4621, allocations: 0.7504 MB / 451.7 MB, free: 5.922 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004383/0.4665, allocations: 0.9802 MB / 452.7 MB, free: 4.941 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3719/0.8384, allocations: 16.48 MB / 469.2 MB, free: 89.1 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002863/0.8388, allocations: 10.28 kB / 469.2 MB, free: 89.1 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001745/0.8405, allocations: 419.5 kB / 469.6 MB, free: 88.79 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004569/0.841, allocations: 0.6034 MB / 470.2 MB, free: 88.73 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0287/0.8697, allocations: 15.87 MB / 486.1 MB, free: 80.34 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0844/0.9541, allocations: 52.22 MB / 0.5257 GB, free: 27.26 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02943/0.9836, allocations: 52.21 MB / 0.5767 GB, free: 108 kB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00605/0.9897, allocations: 3.448 MB / 0.58 GB, free: 12.65 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01704/1.007, allocations: 9.408 MB / 0.5892 GB, free: 3.227 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.796e-05/1.007, allocations: 56.69 kB / 0.5893 GB, free: 3.16 MB / 430.1 MB Notification: Performance of pre-optimization done (n=270): time 4.839e-06/1.007, allocations: 0 / 0.5893 GB, free: 3.16 MB / 430.1 MB Notification: Performance of matching and sorting (n=278): time 0.02982/1.037, allocations: 13.76 MB / 0.6027 GB, free: 5.254 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.351e-05/1.037, allocations: 81.59 kB / 0.6028 GB, free: 5.16 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006532/1.043, allocations: 4.025 MB / 0.6067 GB, free: 1.109 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004249/1.044, allocations: 73.7 kB / 0.6068 GB, free: 1.031 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003074/1.047, allocations: 4.632 MB / 0.6113 GB, free: 12.37 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001182/1.048, allocations: 0.9966 MB / 0.6123 GB, free: 11.38 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004613/1.049, allocations: 120 kB / 0.6124 GB, free: 11.27 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0003842/1.049, allocations: 0.5463 MB / 0.6129 GB, free: 10.71 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003905/1.053, allocations: 2.424 MB / 0.6153 GB, free: 8.281 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006403/1.059, allocations: 5.579 MB / 0.6208 GB, free: 1.164 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1802/1.239, allocations: 3.705 MB / 0.6244 GB, free: 156.9 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.231e-05/1.24, allocations: 34.12 kB / 0.6244 GB, free: 156.9 MB / 462.1 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01212/1.252, allocations: 8.683 MB / 0.6329 GB, free: 153.8 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.537e-05/1.252, allocations: 53.69 kB / 0.6329 GB, free: 153.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.251e-05/1.252, allocations: 113.3 kB / 0.633 GB, free: 153.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001805/1.254, allocations: 0.8617 MB / 0.6339 GB, free: 153.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003774/1.258, allocations: 1.407 MB / 0.6353 GB, free: 153.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007933/1.265, allocations: 6.977 MB / 0.6421 GB, free: 149.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003729/1.269, allocations: 351.9 kB / 0.6424 GB, free: 149.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000515/1.27, allocations: 355.8 kB / 0.6428 GB, free: 149.6 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 498 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (733): * Single equations (assignments): 732 * 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: 1 {(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004527/1.274, allocations: 3.673 MB / 0.6463 GB, free: 147.8 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006011/1.275, allocations: 408 kB / 0.6467 GB, free: 147.8 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006854/1.282, allocations: 5.062 MB / 0.6517 GB, free: 145.7 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-05/1.282, allocations: 27.09 kB / 0.6517 GB, free: 145.7 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.156e-05/1.282, allocations: 7.875 kB / 0.6517 GB, free: 145.7 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.744e-05/1.282, allocations: 17.92 kB / 0.6517 GB, free: 145.7 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01513/1.297, allocations: 12.18 MB / 0.6636 GB, free: 138.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.021e-05/1.297, allocations: 4 kB / 0.6636 GB, free: 138.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001858/1.299, allocations: 0.5174 MB / 0.6641 GB, free: 137.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001536/1.3, allocations: 0.6888 MB / 0.6648 GB, free: 137.4 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001582/1.301, allocations: 63.38 kB / 0.6649 GB, free: 137.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00641/1.307, allocations: 6.151 MB / 0.6709 GB, free: 131.4 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/1.307, allocations: 7.984 kB / 0.6709 GB, free: 131.4 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00852/1.316, allocations: 7.29 MB / 0.678 GB, free: 124 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001529/1.317, allocations: 0.82 MB / 0.6788 GB, free: 123.2 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004815/1.318, allocations: 52.06 kB / 0.6788 GB, free: 123.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001436/1.319, allocations: 167.8 kB / 0.679 GB, free: 123 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003296/1.319, allocations: 205.9 kB / 0.6792 GB, free: 122.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001576/1.32, allocations: 83.98 kB / 0.6793 GB, free: 122.7 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003316/1.323, allocations: 2.645 MB / 0.6819 GB, free: 120 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.71e-07/1.323, allocations: 0 / 0.6819 GB, free: 120 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004752/1.328, allocations: 1.543 MB / 0.6834 GB, free: 118.5 MB / 462.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (263): * Single equations (assignments): 262 * 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: 1 {(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004209/1.328, allocations: 227 kB / 0.6836 GB, free: 118.3 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007089/1.335, allocations: 6.074 MB / 0.6895 GB, free: 112.2 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/1.335, allocations: 0 / 0.6895 GB, free: 112.2 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002818/1.338, allocations: 2.466 MB / 0.6919 GB, free: 109.7 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00323/1.341, allocations: 0.9035 MB / 0.6928 GB, free: 108.8 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02064/1.362, allocations: 19.53 MB / 0.7119 GB, free: 89.22 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004521/1.366, allocations: 6.207 MB / 0.7179 GB, free: 82.98 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004645/1.371, allocations: 1.939 MB / 0.7198 GB, free: 81.03 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007652/1.372, allocations: 327.4 kB / 0.7202 GB, free: 80.71 MB / 462.1 MB Notification: Performance of SimCode: time 9.11e-07/1.372, allocations: 0 / 0.7202 GB, free: 80.71 MB / 462.1 MB Notification: Performance of Templates: time 0.07535/1.447, allocations: 54.95 MB / 0.7738 GB, free: 25.75 MB / 462.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile (rm -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1)