Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.007016/0.007016, allocations: 100.1 kB / 15.73 MB, free: 6.008 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.001586/0.001587, allocations: 197.2 kB / 16.68 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.383/1.383, allocations: 205.1 MB / 222.5 MB, free: 4.508 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.001125/0.001125, allocations: 49.98 kB / 326.6 MB, free: 14.31 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08067/0.0818, allocations: 46.63 MB / 373.2 MB, free: 1.293 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02859/0.1104, allocations: 29.2 MB / 402.4 MB, free: 3.961 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01964/0.1301, allocations: 8.533 MB / 410.9 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005572/0.1357, allocations: 183.4 kB / 411.1 MB, free: 11.22 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01871/0.1545, allocations: 8.194 MB / 419.3 MB, free: 2.992 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01032/0.1648, allocations: 3.035 MB / 422.4 MB, free: 15.94 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005668/0.1705, allocations: 1.905 MB / 424.3 MB, free: 14.03 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01252/0.183, allocations: 10.5 MB / 434.8 MB, free: 3.496 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2438/0.4268, allocations: 21.45 MB / 456.2 MB, free: 15.33 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009428/0.4363, allocations: 5.603 MB / 461.8 MB, free: 14.98 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01213/0.4485, allocations: 6.365 MB / 468.2 MB, free: 13.96 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006146/0.4547, allocations: 1.579 MB / 469.8 MB, free: 13.96 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008018/0.4627, allocations: 1.937 MB / 471.7 MB, free: 13.96 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004377/0.4671, allocations: 3.192 MB / 474.9 MB, free: 13.6 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01113/0.4783, allocations: 6.116 MB / 481 MB, free: 12.18 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01813/0.4965, allocations: 21.2 MB / 0.4904 GB, free: 200 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.4965, allocations: 0 / 0.4904 GB, free: 200 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.4965, allocations: 0 / 0.4904 GB, free: 200 kB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005556/0.4971, allocations: 0 / 0.4904 GB, free: 200 kB / 382.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.03576/0.5328, allocations: 12.43 MB / 0.5026 GB, free: 8.055 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.305e-05/0.5329, allocations: 12.03 kB / 0.5026 GB, free: 8.043 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04749/0.5804, allocations: 8.605 MB / 0.511 GB, free: 15.53 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01308/0.5935, allocations: 5.906 MB / 0.5168 GB, free: 9.859 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006283/0.5942, allocations: 0.7404 MB / 0.5175 GB, free: 9.129 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003317/0.5975, allocations: 0.9742 MB / 0.5184 GB, free: 8.168 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03421/0.6317, allocations: 16.57 MB / 0.5346 GB, free: 7.559 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002733/0.632, allocations: 23.17 kB / 0.5346 GB, free: 7.539 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001869/0.6339, allocations: 409.6 kB / 0.535 GB, free: 7.152 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005859/0.6345, allocations: 0.6106 MB / 0.5356 GB, free: 6.539 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03279/0.6673, allocations: 15.97 MB / 0.5512 GB, free: 6.559 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09244/0.7598, allocations: 51.58 MB / 0.6016 GB, free: 2.402 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2337/0.9935, allocations: 52.27 MB / 0.6526 GB, free: 152.3 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006215/0.9998, allocations: 3.469 MB / 0.656 GB, free: 152.3 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01625/1.016, allocations: 9.374 MB / 0.6652 GB, free: 148.9 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.585e-05/1.016, allocations: 72.83 kB / 0.6652 GB, free: 148.8 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=270): time 5.64e-06/1.016, allocations: 0 / 0.6652 GB, free: 148.8 MB / 0.5137 GB Notification: Performance of matching and sorting (n=278): time 0.02362/1.04, allocations: 12.94 MB / 0.6779 GB, free: 143.4 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.655e-05/1.04, allocations: 77.03 kB / 0.6779 GB, free: 143.3 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005373/1.045, allocations: 4.066 MB / 0.6819 GB, free: 141.8 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0002152/1.045, allocations: 68.08 kB / 0.682 GB, free: 141.7 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.001963/1.047, allocations: 4.633 MB / 0.6865 GB, free: 138.2 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005971/1.048, allocations: 0.9897 MB / 0.6875 GB, free: 137.5 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001313/1.049, allocations: 1.239 MB / 0.6887 GB, free: 136.9 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 4.294e-05/1.049, allocations: 308.8 kB / 0.689 GB, free: 136.6 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002718/1.052, allocations: 2.449 MB / 0.6914 GB, free: 135.7 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003605/1.056, allocations: 5.6 MB / 0.6968 GB, free: 130.5 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007092/1.063, allocations: 8.694 MB / 0.7053 GB, free: 123.6 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.136e-05/1.063, allocations: 30.94 kB / 0.7054 GB, free: 123.6 MB / 0.5137 GB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01232/1.075, allocations: 8.753 MB / 0.7139 GB, free: 120 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 6.187e-05/1.075, allocations: 51.62 kB / 0.714 GB, free: 120 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001114/1.075, allocations: 111.6 kB / 0.7141 GB, free: 120 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001998/1.077, allocations: 0.8634 MB / 0.7149 GB, free: 119.4 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003997/1.081, allocations: 1.406 MB / 0.7163 GB, free: 118.2 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008349/1.09, allocations: 7.561 MB / 0.7237 GB, free: 111.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004452/1.094, allocations: 357.3 kB / 0.724 GB, free: 111.1 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000464/1.095, allocations: 351.4 kB / 0.7243 GB, free: 110.8 MB / 0.5137 GB 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00432/1.099, allocations: 3.675 MB / 0.7279 GB, free: 107.2 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007354/1.1, allocations: 407 kB / 0.7283 GB, free: 106.8 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00699/1.107, allocations: 5.084 MB / 0.7333 GB, free: 101.7 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.712e-05/1.107, allocations: 32 kB / 0.7333 GB, free: 101.6 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.928e-06/1.107, allocations: 8 kB / 0.7333 GB, free: 101.6 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.141e-05/1.107, allocations: 15.94 kB / 0.7333 GB, free: 101.6 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01608/1.123, allocations: 12.21 MB / 0.7453 GB, free: 89.32 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.658e-06/1.123, allocations: 0 / 0.7453 GB, free: 89.32 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002017/1.125, allocations: 0.5226 MB / 0.7458 GB, free: 88.8 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001791/1.127, allocations: 0.7073 MB / 0.7465 GB, free: 88.09 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001643/1.127, allocations: 63.92 kB / 0.7465 GB, free: 88.03 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007263/1.134, allocations: 6.696 MB / 0.7531 GB, free: 81.2 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/1.134, allocations: 7.938 kB / 0.7531 GB, free: 81.2 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008944/1.143, allocations: 7.349 MB / 0.7602 GB, free: 73.7 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001841/1.145, allocations: 0.7966 MB / 0.761 GB, free: 72.88 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004794/1.146, allocations: 63.92 kB / 0.7611 GB, free: 72.82 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001716/1.147, allocations: 163.8 kB / 0.7612 GB, free: 72.66 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003877/1.148, allocations: 202 kB / 0.7614 GB, free: 72.46 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001642/1.148, allocations: 87.97 kB / 0.7615 GB, free: 72.38 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.003292/1.151, allocations: 2.676 MB / 0.7641 GB, free: 69.69 MB / 0.5137 GB Notification: Performance of sort global known variables: time 4.81e-07/1.151, allocations: 0 / 0.7641 GB, free: 69.69 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.005334/1.157, allocations: 1.543 MB / 0.7656 GB, free: 68.14 MB / 0.5137 GB 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004483/1.157, allocations: 232.1 kB / 0.7659 GB, free: 67.91 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007692/1.165, allocations: 6.127 MB / 0.7718 GB, free: 61.78 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/1.165, allocations: 0 / 0.7718 GB, free: 61.78 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.003044/1.168, allocations: 2.484 MB / 0.7743 GB, free: 59.28 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003853/1.172, allocations: 0.9526 MB / 0.7752 GB, free: 58.36 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02095/1.193, allocations: 16.1 MB / 0.7909 GB, free: 42.24 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004815/1.198, allocations: 6.196 MB / 0.797 GB, free: 36.01 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004412/1.202, allocations: 1.955 MB / 0.7989 GB, free: 34.05 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008126/1.203, allocations: 323.4 kB / 0.7992 GB, free: 33.73 MB / 0.5137 GB Notification: Performance of SimCode: time 7.71e-07/1.203, allocations: 0 / 0.7992 GB, free: 33.73 MB / 0.5137 GB Notification: Performance of Templates: time 0.314/1.517, allocations: 55.89 MB / 0.8538 GB, free: 160.5 MB / 0.5137 GB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1)