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.001505/0.001505, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001913/0.001913, allocations: 190.1 kB / 16.25 MB, free: 6.629 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.333/1.333, allocations: 205.1 MB / 222.1 MB, free: 4.727 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.001097/0.001097, allocations: 51.94 kB / 278.2 MB, free: 12.67 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.196/0.1971, allocations: 46.63 MB / 324.9 MB, free: 1.965 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02802/0.2251, allocations: 28.68 MB / 353.6 MB, free: 7.328 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01623/0.2414, allocations: 8.432 MB / 362 MB, free: 14.87 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004971/0.2464, allocations: 179.4 kB / 362.2 MB, free: 14.69 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01734/0.2638, allocations: 7.742 MB / 369.9 MB, free: 6.922 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009585/0.2734, allocations: 2.753 MB / 372.7 MB, free: 4.156 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005078/0.2785, allocations: 1.754 MB / 374.4 MB, free: 2.398 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01263/0.2911, allocations: 10.46 MB / 384.9 MB, free: 7.898 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03485/0.326, allocations: 24.78 MB / 409.7 MB, free: 14.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00776/0.3338, allocations: 5.653 MB / 415.3 MB, free: 9.312 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009133/0.343, allocations: 6.443 MB / 421.8 MB, free: 2.848 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003951/0.347, allocations: 1.582 MB / 423.3 MB, free: 1.266 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0056/0.3526, allocations: 1.945 MB / 425.3 MB, free: 15.32 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004306/0.3569, allocations: 3.191 MB / 428.5 MB, free: 12.12 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009391/0.3664, allocations: 6.128 MB / 434.6 MB, free: 5.969 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0203/0.3867, allocations: 21.06 MB / 455.7 MB, free: 0.8438 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.3867, allocations: 4 kB / 455.7 MB, free: 0.8398 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.3868, allocations: 0 / 455.7 MB, free: 0.8398 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000475/0.3872, allocations: 4 kB / 455.7 MB, free: 0.8359 MB / 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.1765/0.5637, allocations: 12.48 MB / 468.1 MB, free: 99.5 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.733e-05/0.5638, allocations: 7.938 kB / 468.2 MB, free: 99.5 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04328/0.6071, allocations: 8.584 MB / 476.7 MB, free: 93.36 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01195/0.619, allocations: 5.873 MB / 482.6 MB, free: 87.48 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007377/0.6198, allocations: 0.746 MB / 483.4 MB, free: 86.74 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004686/0.6245, allocations: 0.9797 MB / 484.3 MB, free: 85.77 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03645/0.661, allocations: 16.56 MB / 0.4892 GB, free: 69.16 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003494/0.6614, allocations: 19.89 kB / 0.4892 GB, free: 69.14 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002837/0.6642, allocations: 418.5 kB / 0.4896 GB, free: 68.74 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004528/0.6647, allocations: 0.6139 MB / 0.4902 GB, free: 68.13 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02758/0.6923, allocations: 15.96 MB / 0.5058 GB, free: 52.15 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07602/0.7683, allocations: 52.11 MB / 0.5567 GB, free: 14.8 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0356/0.804, allocations: 52.26 MB / 0.6077 GB, free: 3.586 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005589/0.8096, allocations: 3.464 MB / 0.6111 GB, free: 112 kB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3064/1.116, allocations: 9.399 MB / 0.6203 GB, free: 148.9 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.151e-05/1.116, allocations: 68.06 kB / 0.6203 GB, free: 148.8 MB / 446.1 MB Notification: Performance of pre-optimization done (n=270): time 4.238e-06/1.116, allocations: 0 / 0.6203 GB, free: 148.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=278): time 0.02333/1.139, allocations: 12.88 MB / 0.6329 GB, free: 143.4 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.144e-05/1.14, allocations: 84.67 kB / 0.633 GB, free: 143.3 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005075/1.145, allocations: 4.06 MB / 0.6369 GB, free: 141.8 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003634/1.145, allocations: 73.17 kB / 0.637 GB, free: 141.7 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001916/1.147, allocations: 4.633 MB / 0.6415 GB, free: 138.2 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000712/1.148, allocations: 0.9894 MB / 0.6425 GB, free: 137.5 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001551/1.149, allocations: 1.236 MB / 0.6437 GB, free: 136.9 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.191e-05/1.149, allocations: 301.1 kB / 0.644 GB, free: 136.6 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002777/1.152, allocations: 2.446 MB / 0.6464 GB, free: 135 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003729/1.156, allocations: 5.602 MB / 0.6519 GB, free: 128.4 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006844/1.163, allocations: 8.68 MB / 0.6603 GB, free: 118.8 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.907e-05/1.163, allocations: 32 kB / 0.6604 GB, free: 118.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01101/1.174, allocations: 8.741 MB / 0.6689 GB, free: 110.1 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.132e-05/1.174, allocations: 52 kB / 0.6689 GB, free: 110 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.727e-05/1.174, allocations: 112 kB / 0.6691 GB, free: 109.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001894/1.176, allocations: 0.8647 MB / 0.6699 GB, free: 109.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003758/1.18, allocations: 1.396 MB / 0.6713 GB, free: 107.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007811/1.187, allocations: 7.517 MB / 0.6786 GB, free: 100 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004533/1.192, allocations: 355.3 kB / 0.6789 GB, free: 99.66 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007272/1.193, allocations: 351.9 kB / 0.6793 GB, free: 99.31 MB / 446.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.005853/1.199, allocations: 3.68 MB / 0.6829 GB, free: 95.62 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008506/1.199, allocations: 403 kB / 0.6833 GB, free: 95.22 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006832/1.206, allocations: 5.065 MB / 0.6882 GB, free: 90.11 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.498e-05/1.206, allocations: 31.94 kB / 0.6882 GB, free: 90.07 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.032e-05/1.206, allocations: 8 kB / 0.6882 GB, free: 90.07 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.132e-05/1.206, allocations: 23.92 kB / 0.6883 GB, free: 90.04 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01554/1.222, allocations: 12.19 MB / 0.7002 GB, free: 77.77 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.021e-05/1.222, allocations: 0 / 0.7002 GB, free: 77.77 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002024/1.224, allocations: 0.5266 MB / 0.7007 GB, free: 77.24 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00165/1.226, allocations: 0.6954 MB / 0.7014 GB, free: 76.54 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001645/1.226, allocations: 67.97 kB / 0.7014 GB, free: 76.47 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006738/1.233, allocations: 6.637 MB / 0.7079 GB, free: 69.71 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/1.233, allocations: 7.938 kB / 0.7079 GB, free: 69.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008493/1.241, allocations: 7.315 MB / 0.7151 GB, free: 62.24 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001619/1.243, allocations: 0.8004 MB / 0.7158 GB, free: 61.41 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005551/1.243, allocations: 56 kB / 0.7159 GB, free: 61.36 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001657/1.245, allocations: 163.8 kB / 0.716 GB, free: 61.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003875/1.245, allocations: 206 kB / 0.7162 GB, free: 61 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001654/1.246, allocations: 87.97 kB / 0.7163 GB, free: 60.91 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00294/1.248, allocations: 2.68 MB / 0.7189 GB, free: 58.22 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/1.248, allocations: 0 / 0.7189 GB, free: 58.22 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004811/1.253, allocations: 1.546 MB / 0.7205 GB, free: 56.68 MB / 446.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.0004034/1.254, allocations: 227.8 kB / 0.7207 GB, free: 56.46 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01483/1.269, allocations: 9.093 MB / 0.7295 GB, free: 47.37 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.979e-06/1.269, allocations: 0 / 0.7295 GB, free: 47.37 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002929/1.272, allocations: 2.477 MB / 0.732 GB, free: 44.88 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004061/1.276, allocations: 0.9449 MB / 0.7329 GB, free: 43.94 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.025/1.301, allocations: 20.4 MB / 0.7528 GB, free: 23.52 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004818/1.305, allocations: 6.199 MB / 0.7589 GB, free: 17.29 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004817/1.31, allocations: 1.947 MB / 0.7608 GB, free: 15.33 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007928/1.311, allocations: 327.3 kB / 0.7611 GB, free: 15.01 MB / 446.1 MB Notification: Performance of SimCode: time 6.11e-07/1.311, allocations: 0 / 0.7611 GB, free: 15.01 MB / 446.1 MB Notification: Performance of Templates: time 0.257/1.568, allocations: 58.85 MB / 0.8185 GB, free: 108.9 MB / 446.1 MB 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)