Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001193/0.001193, allocations: 106.2 kB / 17.06 MB, free: 6.145 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.001408/0.001408, allocations: 195 kB / 18 MB, free: 5.219 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.312/1.312, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.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.001228/0.001228, allocations: 51.92 kB / 327.9 MB, free: 3.25 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08284/0.08408, allocations: 46.62 MB / 374.5 MB, free: 4.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.2099/0.294, allocations: 29.2 MB / 403.7 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02069/0.3148, allocations: 8.533 MB / 412.3 MB, free: 4.238 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006961/0.3218, allocations: 190.5 kB / 412.4 MB, free: 4.195 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01999/0.3418, allocations: 8.192 MB / 420.6 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01191/0.3537, allocations: 3.033 MB / 423.7 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006525/0.3603, allocations: 1.903 MB / 425.6 MB, free: 10.51 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01398/0.3743, allocations: 10.5 MB / 436.1 MB, free: 2.035 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03412/0.4084, allocations: 21.48 MB / 457.5 MB, free: 12.41 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009468/0.4179, allocations: 5.61 MB / 463.2 MB, free: 6.789 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01039/0.4284, allocations: 6.365 MB / 469.5 MB, free: 412 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00382/0.4322, allocations: 1.582 MB / 471.1 MB, free: 14.82 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005351/0.4376, allocations: 1.937 MB / 473 MB, free: 12.88 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004047/0.4416, allocations: 3.184 MB / 476.2 MB, free: 9.691 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009421/0.4511, allocations: 6.124 MB / 482.3 MB, free: 3.543 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02337/0.4745, allocations: 21.19 MB / 0.4917 GB, free: 14.29 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.877e-06/0.4745, allocations: 0 / 0.4917 GB, free: 14.29 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.516e-06/0.4745, allocations: 0 / 0.4917 GB, free: 14.29 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0007775/0.4753, allocations: 0 / 0.4917 GB, free: 14.29 MB / 430.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.03839/0.5137, allocations: 12.44 MB / 0.5039 GB, free: 1.75 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/0.5138, allocations: 8.031 kB / 0.5039 GB, free: 1.742 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04691/0.5607, allocations: 8.61 MB / 0.5123 GB, free: 9.109 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01499/0.5757, allocations: 5.896 MB / 0.5181 GB, free: 3.152 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009009/0.5767, allocations: 0.7425 MB / 0.5188 GB, free: 2.406 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00379/0.5805, allocations: 0.9686 MB / 0.5197 GB, free: 1.438 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03967/0.6202, allocations: 16.56 MB / 0.5359 GB, free: 0.7812 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004814/0.6207, allocations: 19.81 kB / 0.5359 GB, free: 0.7617 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003082/0.6238, allocations: 412 kB / 0.5363 GB, free: 368 kB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006754/0.6245, allocations: 0.6145 MB / 0.5369 GB, free: 15.74 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.373/0.9975, allocations: 15.97 MB / 0.5525 GB, free: 134.1 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08246/1.08, allocations: 51.58 MB / 0.6029 GB, free: 103.3 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02688/1.107, allocations: 52.27 MB / 0.6539 GB, free: 49.02 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005299/1.112, allocations: 3.464 MB / 0.6573 GB, free: 47.25 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01542/1.128, allocations: 9.385 MB / 0.6665 GB, free: 38.97 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.759e-05/1.128, allocations: 76.44 kB / 0.6666 GB, free: 38.89 MB / 478.1 MB Notification: Performance of pre-optimization done (n=270): time 4.168e-06/1.128, allocations: 0 / 0.6666 GB, free: 38.89 MB / 478.1 MB Notification: Performance of matching and sorting (n=278): time 0.02452/1.152, allocations: 12.93 MB / 0.6792 GB, free: 25.84 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.215e-05/1.152, allocations: 81.59 kB / 0.6793 GB, free: 25.74 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006054/1.159, allocations: 4.072 MB / 0.6832 GB, free: 21.65 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001619/1.159, allocations: 69.7 kB / 0.6833 GB, free: 21.57 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001874/1.161, allocations: 4.631 MB / 0.6878 GB, free: 16.92 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006234/1.161, allocations: 0.9877 MB / 0.6888 GB, free: 15.94 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00156/1.163, allocations: 1.241 MB / 0.69 GB, free: 14.68 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 3.561e-05/1.163, allocations: 301.1 kB / 0.6903 GB, free: 14.39 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002976/1.166, allocations: 2.448 MB / 0.6927 GB, free: 11.93 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004261/1.17, allocations: 5.599 MB / 0.6981 GB, free: 4.797 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009474/1.18, allocations: 8.694 MB / 0.7066 GB, free: 10.53 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.208e-05/1.18, allocations: 28 kB / 0.7067 GB, free: 10.5 MB / 494.1 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01533/1.195, allocations: 8.755 MB / 0.7152 GB, free: 1.695 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.916e-05/1.195, allocations: 59.92 kB / 0.7153 GB, free: 1.637 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001565/1.195, allocations: 111.9 kB / 0.7154 GB, free: 1.527 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00249/1.198, allocations: 0.8617 MB / 0.7162 GB, free: 0.6641 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004535/1.202, allocations: 1.404 MB / 0.7176 GB, free: 15.26 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01109/1.213, allocations: 7.56 MB / 0.725 GB, free: 7.547 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004017/1.217, allocations: 351.3 kB / 0.7253 GB, free: 7.203 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000626/1.218, allocations: 352 kB / 0.7256 GB, free: 6.859 MB / 0.4982 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.006218/1.224, allocations: 3.677 MB / 0.7292 GB, free: 3.168 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009793/1.225, allocations: 407 kB / 0.7296 GB, free: 2.766 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009405/1.235, allocations: 5.074 MB / 0.7346 GB, free: 13.63 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.536e-05/1.235, allocations: 35.92 kB / 0.7346 GB, free: 13.6 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.101e-05/1.235, allocations: 12 kB / 0.7346 GB, free: 13.59 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-05/1.235, allocations: 11.95 kB / 0.7346 GB, free: 13.57 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02567/1.261, allocations: 12.22 MB / 0.7466 GB, free: 1.277 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-05/1.261, allocations: 4 kB / 0.7466 GB, free: 1.273 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002291/1.263, allocations: 0.5226 MB / 0.7471 GB, free: 0.75 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00211/1.265, allocations: 0.7033 MB / 0.7478 GB, free: 44 kB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.1914/1.456, allocations: 59.7 kB / 0.7478 GB, free: 174.2 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01112/1.468, allocations: 6.702 MB / 0.7544 GB, free: 172.2 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.897e-06/1.468, allocations: 7.234 kB / 0.7544 GB, free: 172.2 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01231/1.48, allocations: 7.344 MB / 0.7615 GB, free: 169.2 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002532/1.482, allocations: 0.8 MB / 0.7623 GB, free: 168.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004587/1.483, allocations: 63.09 kB / 0.7624 GB, free: 168.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001686/1.485, allocations: 166.2 kB / 0.7625 GB, free: 168.8 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005442/1.485, allocations: 207.9 kB / 0.7627 GB, free: 168.8 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001947/1.485, allocations: 86.23 kB / 0.7628 GB, free: 168.8 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.004237/1.49, allocations: 2.676 MB / 0.7654 GB, free: 167.8 MB / 0.5138 GB Notification: Performance of sort global known variables: time 4.21e-07/1.49, allocations: 0 / 0.7654 GB, free: 167.8 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.005569/1.495, allocations: 1.544 MB / 0.7669 GB, free: 167.6 MB / 0.5138 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.0005108/1.496, allocations: 225.5 kB / 0.7672 GB, free: 167.5 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.009113/1.505, allocations: 6.138 MB / 0.7732 GB, free: 165.2 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 5.76e-06/1.505, allocations: 1.25 kB / 0.7732 GB, free: 165.2 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.003123/1.508, allocations: 2.482 MB / 0.7756 GB, free: 164.1 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004217/1.512, allocations: 0.9588 MB / 0.7765 GB, free: 163.8 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02175/1.534, allocations: 16.09 MB / 0.7922 GB, free: 154.9 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00486/1.539, allocations: 6.198 MB / 0.7983 GB, free: 150.1 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.004263/1.543, allocations: 1.944 MB / 0.8002 GB, free: 148.8 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000794/1.544, allocations: 325.7 kB / 0.8005 GB, free: 148.5 MB / 0.5138 GB Notification: Performance of SimCode: time 7.72e-07/1.544, allocations: 0.7656 kB / 0.8005 GB, free: 148.5 MB / 0.5138 GB Notification: Performance of Templates: time 0.08195/1.626, allocations: 55.8 MB / 0.855 GB, free: 94.38 MB / 0.5138 GB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1)