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.0008128/0.0008129, allocations: 89.89 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.004858/0.004859, allocations: 171.8 kB / 16.26 MB, free: 6.613 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.328/1.328, allocations: 205.4 MB / 222.4 MB, free: 5.559 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.0004452/0.0004452, allocations: 14.81 kB / 279.5 MB, free: 12.48 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2194/0.2198, allocations: 47.59 MB / 327.1 MB, free: 1.426 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02533/0.2452, allocations: 27.45 MB / 354.5 MB, free: 7.801 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01737/0.2626, allocations: 8.394 MB / 362.9 MB, free: 15.38 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006008/0.2686, allocations: 171.4 kB / 363.1 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006305/0.275, allocations: 1.782 MB / 364.9 MB, free: 13.42 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.011/0.286, allocations: 2.757 MB / 367.6 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005364/0.2914, allocations: 1.583 MB / 369.2 MB, free: 9.066 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01383/0.3053, allocations: 10.58 MB / 379.8 MB, free: 14.45 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03639/0.3417, allocations: 21.46 MB / 401.2 MB, free: 8.844 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00675/0.3485, allocations: 3.95 MB / 405.2 MB, free: 4.879 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008287/0.3568, allocations: 4.901 MB / 410.1 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002691/0.3596, allocations: 0.6094 MB / 410.7 MB, free: 15.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004393/0.364, allocations: 0.9682 MB / 411.7 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003283/0.3673, allocations: 2.012 MB / 413.7 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008556/0.3759, allocations: 4.837 MB / 418.5 MB, free: 7.492 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01994/0.3959, allocations: 19.91 MB / 438.4 MB, free: 3.52 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.3959, allocations: 0 / 438.4 MB, free: 3.52 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.476e-06/0.3959, allocations: 0 / 438.4 MB, free: 3.52 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005733/0.3965, allocations: 0 / 438.4 MB, free: 3.52 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.02762/0.4241, allocations: 10.24 MB / 448.7 MB, free: 9.184 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.617e-05/0.4242, allocations: 12.03 kB / 448.7 MB, free: 9.172 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0457/0.4699, allocations: 8.626 MB / 457.3 MB, free: 0.5234 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2902/0.7601, allocations: 5.891 MB / 463.2 MB, free: 93.62 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007033/0.7609, allocations: 0.7417 MB / 463.9 MB, free: 93.29 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003792/0.7647, allocations: 0.9773 MB / 464.9 MB, free: 92.96 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03344/0.7981, allocations: 16.57 MB / 481.5 MB, free: 85.45 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000256/0.7984, allocations: 14.34 kB / 481.5 MB, free: 85.44 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001677/0.8001, allocations: 416.2 kB / 481.9 MB, free: 85.04 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004373/0.8006, allocations: 0.6028 MB / 482.5 MB, free: 84.44 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02679/0.8274, allocations: 15.96 MB / 498.5 MB, free: 68.46 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07001/0.8974, allocations: 52.27 MB / 0.5378 GB, free: 15.19 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03064/0.9281, allocations: 52.22 MB / 0.5888 GB, free: 4.016 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005577/0.9337, allocations: 3.456 MB / 0.5922 GB, free: 0.5508 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01627/0.95, allocations: 9.417 MB / 0.6014 GB, free: 7.129 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.741e-05/0.9502, allocations: 64.67 kB / 0.6015 GB, free: 7.055 MB / 446.1 MB Notification: Performance of pre-optimization done (n=270): time 5.551e-06/0.9502, allocations: 0 / 0.6015 GB, free: 7.055 MB / 446.1 MB Notification: Performance of matching and sorting (n=278): time 0.0259/0.9761, allocations: 12.89 MB / 0.6141 GB, free: 10.02 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.3e-05/0.9762, allocations: 81.59 kB / 0.6141 GB, free: 9.922 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00589/0.9821, allocations: 4.061 MB / 0.6181 GB, free: 5.836 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005052/0.9826, allocations: 73.7 kB / 0.6182 GB, free: 5.758 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002906/0.9855, allocations: 4.638 MB / 0.6227 GB, free: 1.098 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001079/0.9866, allocations: 0.989 MB / 0.6237 GB, free: 120 kB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.1625/1.149, allocations: 477.3 kB / 0.6241 GB, free: 162.2 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.33e-05/1.149, allocations: 307.3 kB / 0.6244 GB, free: 161.9 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004511/1.154, allocations: 2.45 MB / 0.6268 GB, free: 161.9 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007165/1.161, allocations: 5.601 MB / 0.6323 GB, free: 156.9 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008568/1.17, allocations: 8.687 MB / 0.6408 GB, free: 149.9 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.477e-05/1.17, allocations: 30.84 kB / 0.6408 GB, free: 149.9 MB / 462.1 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01347/1.183, allocations: 8.736 MB / 0.6493 GB, free: 146.6 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.13e-05/1.183, allocations: 53.94 kB / 0.6494 GB, free: 146.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001689/1.183, allocations: 109 kB / 0.6495 GB, free: 146.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00216/1.186, allocations: 0.8524 MB / 0.6503 GB, free: 146.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004797/1.19, allocations: 1.404 MB / 0.6517 GB, free: 146.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008069/1.199, allocations: 7.008 MB / 0.6585 GB, free: 142.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004231/1.203, allocations: 347.8 kB / 0.6588 GB, free: 142.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005985/1.203, allocations: 348.8 kB / 0.6592 GB, free: 142.3 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.004884/1.208, allocations: 3.681 MB / 0.6628 GB, free: 140.3 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007425/1.209, allocations: 402.6 kB / 0.6632 GB, free: 140.2 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007115/1.216, allocations: 5.063 MB / 0.6681 GB, free: 135.9 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.668e-05/1.216, allocations: 36 kB / 0.6681 GB, free: 135.9 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.057e-05/1.216, allocations: 11.94 kB / 0.6681 GB, free: 135.9 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-05/1.216, allocations: 14.81 kB / 0.6682 GB, free: 135.9 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01627/1.232, allocations: 12.2 MB / 0.6801 GB, free: 125 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.025e-05/1.233, allocations: 4 kB / 0.6801 GB, free: 125 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001951/1.235, allocations: 0.5187 MB / 0.6806 GB, free: 124.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001735/1.236, allocations: 0.6879 MB / 0.6813 GB, free: 123.8 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001873/1.236, allocations: 66.55 kB / 0.6813 GB, free: 123.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006781/1.243, allocations: 6.161 MB / 0.6873 GB, free: 117.5 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.828e-06/1.243, allocations: 4 kB / 0.6873 GB, free: 117.5 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00965/1.253, allocations: 7.317 MB / 0.6945 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002011/1.255, allocations: 0.8205 MB / 0.6953 GB, free: 109.4 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006037/1.256, allocations: 56 kB / 0.6953 GB, free: 109.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001771/1.257, allocations: 163.9 kB / 0.6955 GB, free: 109.2 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004067/1.258, allocations: 198 kB / 0.6957 GB, free: 109 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001623/1.258, allocations: 95.97 kB / 0.6958 GB, free: 108.9 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003621/1.262, allocations: 2.672 MB / 0.6984 GB, free: 106.2 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.31e-07/1.262, allocations: 4 kB / 0.6984 GB, free: 106.2 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006236/1.268, 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.0007114/1.269, allocations: 222.4 kB / 0.7001 GB, free: 104.5 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008609/1.277, allocations: 6.106 MB / 0.7061 GB, free: 98.34 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.085e-06/1.277, allocations: 448 / 0.7061 GB, free: 98.34 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003473/1.281, allocations: 2.472 MB / 0.7085 GB, free: 95.86 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006791/1.288, allocations: 0.8947 MB / 0.7094 GB, free: 94.97 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02876/1.316, allocations: 20.45 MB / 0.7293 GB, free: 74.48 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007745/1.324, allocations: 6.207 MB / 0.7354 GB, free: 68.24 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005172/1.329, allocations: 1.947 MB / 0.7373 GB, free: 66.29 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001013/1.33, allocations: 327.4 kB / 0.7376 GB, free: 65.97 MB / 462.1 MB Notification: Performance of SimCode: time 9.42e-07/1.33, allocations: 4 kB / 0.7376 GB, free: 65.96 MB / 462.1 MB Notification: Performance of Templates: time 0.257/1.587, allocations: 56.09 MB / 0.7924 GB, free: 147.8 MB / 462.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)