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.001259/0.001259, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.009453/0.009454, allocations: 173.9 kB / 16.26 MB, free: 6.676 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.403/1.403, allocations: 205.4 MB / 222.4 MB, free: 5.566 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.0004433/0.0004433, allocations: 19.98 kB / 279.5 MB, free: 12.48 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2046/0.205, allocations: 47.59 MB / 327.1 MB, free: 1.406 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02647/0.2315, allocations: 27.45 MB / 354.5 MB, free: 7.781 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01591/0.2475, allocations: 8.39 MB / 362.9 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00506/0.2526, allocations: 171.4 kB / 363.1 MB, free: 15.2 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005479/0.2581, allocations: 1.79 MB / 364.9 MB, free: 13.4 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009468/0.2676, allocations: 2.75 MB / 367.6 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005166/0.2728, allocations: 1.587 MB / 369.2 MB, free: 9.047 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01302/0.2858, allocations: 10.57 MB / 379.8 MB, free: 14.44 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03484/0.3207, allocations: 21.47 MB / 401.2 MB, free: 8.828 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005478/0.3262, allocations: 3.946 MB / 405.2 MB, free: 4.867 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006783/0.333, allocations: 4.905 MB / 410.1 MB, free: 15.94 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001566/0.3346, allocations: 0.6094 MB / 410.7 MB, free: 15.33 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002813/0.3374, allocations: 0.9722 MB / 411.7 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001659/0.3391, allocations: 2.012 MB / 413.7 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005418/0.3445, allocations: 4.841 MB / 418.5 MB, free: 7.469 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01773/0.3623, allocations: 19.9 MB / 438.4 MB, free: 3.504 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.3623, allocations: 0 / 438.4 MB, free: 3.504 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.3623, allocations: 4 kB / 438.4 MB, free: 3.5 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004128/0.3627, allocations: 0 / 438.4 MB, free: 3.5 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.02593/0.3887, allocations: 10.24 MB / 448.7 MB, free: 9.164 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/0.3887, allocations: 12.03 kB / 448.7 MB, free: 9.152 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04595/0.4347, allocations: 8.61 MB / 457.3 MB, free: 0.5195 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2963/0.731, allocations: 5.899 MB / 463.2 MB, free: 93.54 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006591/0.7317, allocations: 0.7417 MB / 463.9 MB, free: 93.21 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002991/0.7347, allocations: 0.9855 MB / 464.9 MB, free: 92.88 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02979/0.7645, allocations: 16.57 MB / 481.5 MB, free: 85.45 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002694/0.7648, allocations: 11.91 kB / 481.5 MB, free: 85.44 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001251/0.7661, allocations: 412.9 kB / 481.9 MB, free: 85.05 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004329/0.7665, allocations: 0.6088 MB / 482.5 MB, free: 84.44 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02557/0.7921, allocations: 15.96 MB / 498.5 MB, free: 68.46 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07056/0.8627, allocations: 52.27 MB / 0.5378 GB, free: 15.2 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03241/0.8951, allocations: 52.21 MB / 0.5888 GB, free: 4.039 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006316/0.9015, allocations: 3.466 MB / 0.5922 GB, free: 0.5625 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01586/0.9174, allocations: 9.416 MB / 0.6014 GB, free: 7.141 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.81e-05/0.9174, allocations: 60.69 kB / 0.6015 GB, free: 7.07 MB / 446.1 MB Notification: Performance of pre-optimization done (n=270): time 4.218e-06/0.9175, allocations: 3.938 kB / 0.6015 GB, free: 7.066 MB / 446.1 MB Notification: Performance of matching and sorting (n=278): time 0.02661/0.9441, allocations: 12.9 MB / 0.6141 GB, free: 10.02 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.455e-05/0.9442, allocations: 81.59 kB / 0.6141 GB, free: 9.93 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005873/0.95, allocations: 4.064 MB / 0.6181 GB, free: 5.84 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003173/0.9504, allocations: 73.7 kB / 0.6182 GB, free: 5.762 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002895/0.9533, allocations: 4.63 MB / 0.6227 GB, free: 1.109 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001055/0.9543, allocations: 0.9889 MB / 0.6237 GB, free: 132 kB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.1791/1.133, allocations: 480.2 kB / 0.6241 GB, free: 162.1 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.988e-05/1.133, allocations: 306.3 kB / 0.6244 GB, free: 161.8 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004008/1.137, allocations: 2.448 MB / 0.6268 GB, free: 161.8 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00464/1.142, allocations: 5.604 MB / 0.6323 GB, free: 156.8 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007484/1.15, allocations: 8.68 MB / 0.6407 GB, free: 149.8 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.694e-05/1.15, allocations: 31.25 kB / 0.6408 GB, free: 149.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01282/1.163, allocations: 8.739 MB / 0.6493 GB, free: 146.5 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.359e-05/1.163, allocations: 57.88 kB / 0.6494 GB, free: 146.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001261/1.163, allocations: 105.5 kB / 0.6495 GB, free: 146.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00206/1.165, allocations: 0.8557 MB / 0.6503 GB, free: 146.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004159/1.169, allocations: 1.403 MB / 0.6517 GB, free: 146.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008526/1.178, allocations: 7.007 MB / 0.6585 GB, free: 142.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004234/1.182, allocations: 348 kB / 0.6588 GB, free: 142.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005574/1.182, allocations: 346.9 kB / 0.6592 GB, free: 142.2 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 (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.005388/1.188, allocations: 3.676 MB / 0.6628 GB, free: 140.3 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008235/1.189, allocations: 411.4 kB / 0.6632 GB, free: 140.1 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007497/1.196, allocations: 5.066 MB / 0.6681 GB, free: 135.9 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.715e-05/1.196, allocations: 28 kB / 0.6681 GB, free: 135.9 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.098e-05/1.196, allocations: 9.078 kB / 0.6681 GB, free: 135.9 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.513e-05/1.196, allocations: 14.81 kB / 0.6682 GB, free: 135.9 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01692/1.213, allocations: 12.19 MB / 0.6801 GB, free: 125 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.049e-05/1.213, allocations: 8.031 kB / 0.6801 GB, free: 125 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001994/1.215, allocations: 0.5187 MB / 0.6806 GB, free: 124.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001793/1.217, allocations: 0.6913 MB / 0.6813 GB, free: 123.8 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000157/1.217, allocations: 67.97 kB / 0.6813 GB, free: 123.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006901/1.224, allocations: 6.158 MB / 0.6873 GB, free: 117.5 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/1.224, allocations: 8 kB / 0.6873 GB, free: 117.5 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008846/1.233, allocations: 7.32 MB / 0.6945 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001495/1.234, allocations: 0.8281 MB / 0.6953 GB, free: 109.4 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004332/1.235, allocations: 52 kB / 0.6953 GB, free: 109.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001695/1.237, allocations: 171.7 kB / 0.6955 GB, free: 109.2 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00038/1.237, allocations: 202 kB / 0.6957 GB, free: 109 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001607/1.237, allocations: 87.97 kB / 0.6958 GB, free: 108.9 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003247/1.24, allocations: 2.672 MB / 0.6984 GB, free: 106.3 MB / 462.1 MB Notification: Performance of sort global known variables: time 5.91e-07/1.24, allocations: 0 / 0.6984 GB, free: 106.3 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004834/1.245, allocations: 1.549 MB / 0.6999 GB, free: 104.7 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 (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.0004125/1.246, allocations: 221.6 kB / 0.7001 GB, free: 104.5 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008157/1.254, allocations: 6.106 MB / 0.7061 GB, free: 98.36 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/1.254, allocations: 0 / 0.7061 GB, free: 98.36 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003233/1.257, allocations: 2.468 MB / 0.7085 GB, free: 95.88 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006111/1.263, allocations: 0.8868 MB / 0.7094 GB, free: 95 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02611/1.289, allocations: 20.46 MB / 0.7293 GB, free: 74.51 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005914/1.295, allocations: 6.203 MB / 0.7354 GB, free: 68.27 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005116/1.301, allocations: 1.943 MB / 0.7373 GB, free: 66.32 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008535/1.301, allocations: 327.4 kB / 0.7376 GB, free: 66 MB / 462.1 MB Notification: Performance of SimCode: time 1.012e-06/1.301, allocations: 0 / 0.7376 GB, free: 66 MB / 462.1 MB Notification: Performance of Templates: time 0.2616/1.563, allocations: 56.1 MB / 0.7924 GB, free: 148 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)