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.001307/0.001307, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001474/0.001474, allocations: 196.8 kB / 16.14 MB, free: 6.707 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.35/1.35, allocations: 205.1 MB / 222 MB, free: 4.773 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.001104/0.001104, allocations: 51.92 kB / 278.1 MB, free: 12.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2078/0.2089, allocations: 46.63 MB / 324.7 MB, free: 1.926 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02751/0.2365, allocations: 28.68 MB / 353.4 MB, free: 7.355 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01598/0.2525, allocations: 8.464 MB / 361.9 MB, free: 14.86 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00514/0.2577, allocations: 171.4 kB / 362 MB, free: 14.69 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01737/0.2751, allocations: 7.741 MB / 369.8 MB, free: 6.926 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009276/0.2844, allocations: 2.785 MB / 372.5 MB, free: 4.129 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005651/0.2901, allocations: 1.774 MB / 374.3 MB, free: 2.352 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01284/0.3029, allocations: 10.59 MB / 384.9 MB, free: 7.719 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02803/0.331, allocations: 17.91 MB / 402.8 MB, free: 5.664 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00719/0.3382, allocations: 4.868 MB / 407.7 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008716/0.347, allocations: 6.1 MB / 413.8 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003403/0.3504, allocations: 1.062 MB / 414.9 MB, free: 9.594 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00512/0.3556, allocations: 1.414 MB / 416.3 MB, free: 8.184 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003855/0.3594, allocations: 2.652 MB / 418.9 MB, free: 5.523 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008968/0.3684, allocations: 5.577 MB / 424.5 MB, free: 15.92 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0198/0.3883, allocations: 20.72 MB / 445.2 MB, free: 11.14 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.05e-05/0.3883, allocations: 3.984 kB / 445.2 MB, free: 11.14 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.684e-06/0.3883, allocations: 0 / 445.2 MB, free: 11.14 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004802/0.3888, allocations: 0 / 445.2 MB, free: 11.14 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.2895/0.6784, allocations: 12.47 MB / 457.7 MB, free: 98.05 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.072e-05/0.6784, allocations: 10.69 kB / 457.7 MB, free: 98.05 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04471/0.7231, allocations: 8.583 MB / 466.3 MB, free: 95.46 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01108/0.7343, allocations: 5.885 MB / 472.2 MB, free: 91.54 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005432/0.7348, allocations: 0.7453 MB / 472.9 MB, free: 91.21 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00316/0.738, allocations: 0.9753 MB / 473.9 MB, free: 90.73 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03268/0.7707, allocations: 16.57 MB / 490.5 MB, free: 74.11 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000291/0.771, allocations: 15.8 kB / 490.5 MB, free: 74.09 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002342/0.7734, allocations: 419.2 kB / 490.9 MB, free: 73.7 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004331/0.7738, allocations: 0.6028 MB / 491.5 MB, free: 73.09 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02714/0.801, allocations: 15.95 MB / 0.4955 GB, free: 57.12 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06828/0.8693, allocations: 52.11 MB / 0.5464 GB, free: 3.902 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02987/0.8992, allocations: 52.27 MB / 0.5975 GB, free: 8.676 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005174/0.9044, allocations: 3.456 MB / 0.6009 GB, free: 5.207 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0146/0.919, allocations: 9.412 MB / 0.61 GB, free: 11.67 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.379e-05/0.9191, allocations: 60.69 kB / 0.6101 GB, free: 11.6 MB / 462.1 MB Notification: Performance of pre-optimization done (n=270): time 5.992e-06/0.9191, allocations: 0 / 0.6101 GB, free: 11.6 MB / 462.1 MB Notification: Performance of matching and sorting (n=278): time 0.1853/1.104, allocations: 12.87 MB / 0.6227 GB, free: 164.9 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.965e-05/1.105, allocations: 80.16 kB / 0.6227 GB, free: 164.8 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005462/1.11, allocations: 4.064 MB / 0.6267 GB, free: 163.8 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003945/1.11, allocations: 68.11 kB / 0.6268 GB, free: 163.7 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001837/1.112, allocations: 4.638 MB / 0.6313 GB, free: 161 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006872/1.113, allocations: 0.9905 MB / 0.6323 GB, free: 160.2 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001358/1.114, allocations: 1.233 MB / 0.6335 GB, free: 159.6 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.542e-05/1.114, allocations: 301.1 kB / 0.6338 GB, free: 159.3 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002764/1.117, allocations: 2.446 MB / 0.6362 GB, free: 158.4 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003866/1.121, allocations: 5.598 MB / 0.6416 GB, free: 153.3 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007156/1.128, allocations: 8.69 MB / 0.6501 GB, free: 146.4 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.341e-05/1.128, allocations: 35.09 kB / 0.6501 GB, free: 146.4 MB / 462.1 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01215/1.14, allocations: 8.736 MB / 0.6587 GB, free: 142.9 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.305e-05/1.141, allocations: 53.78 kB / 0.6587 GB, free: 142.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000124/1.141, allocations: 112.8 kB / 0.6588 GB, free: 142.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002007/1.143, allocations: 0.8495 MB / 0.6597 GB, free: 142.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003971/1.147, allocations: 1.403 MB / 0.661 GB, free: 142.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008175/1.155, allocations: 6.998 MB / 0.6679 GB, free: 136.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004558/1.159, allocations: 355.3 kB / 0.6682 GB, free: 135.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007854/1.16, allocations: 344 kB / 0.6685 GB, free: 135.4 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.006443/1.167, allocations: 3.684 MB / 0.6721 GB, free: 131.7 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001038/1.168, allocations: 411 kB / 0.6725 GB, free: 131.3 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007297/1.175, allocations: 5.06 MB / 0.6775 GB, free: 126.2 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-05/1.175, allocations: 31.98 kB / 0.6775 GB, free: 126.1 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.098e-05/1.175, allocations: 8 kB / 0.6775 GB, free: 126.1 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.365e-05/1.175, allocations: 15.89 kB / 0.6775 GB, free: 126.1 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01678/1.192, allocations: 12.2 MB / 0.6894 GB, free: 113.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.08e-05/1.192, allocations: 4 kB / 0.6894 GB, free: 113.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002034/1.194, allocations: 0.5227 MB / 0.6899 GB, free: 113.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001792/1.196, allocations: 0.6914 MB / 0.6906 GB, free: 112.6 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001967/1.196, allocations: 67.98 kB / 0.6907 GB, free: 112.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006671/1.203, allocations: 6.144 MB / 0.6967 GB, free: 106.3 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/1.203, allocations: 4 kB / 0.6967 GB, free: 106.3 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009271/1.212, allocations: 7.318 MB / 0.7038 GB, free: 98.82 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001686/1.214, allocations: 0.8082 MB / 0.7046 GB, free: 97.99 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005222/1.214, allocations: 64.06 kB / 0.7047 GB, free: 97.93 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001643/1.216, allocations: 163.8 kB / 0.7048 GB, free: 97.77 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004274/1.216, allocations: 198 kB / 0.705 GB, free: 97.57 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001773/1.217, allocations: 95.97 kB / 0.7051 GB, free: 97.48 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003333/1.22, allocations: 2.672 MB / 0.7077 GB, free: 94.79 MB / 462.1 MB Notification: Performance of sort global known variables: time 7.11e-07/1.22, allocations: 0 / 0.7077 GB, free: 94.79 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005582/1.225, allocations: 1.55 MB / 0.7092 GB, free: 93.25 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.0004599/1.226, allocations: 222.3 kB / 0.7095 GB, free: 93.03 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008252/1.234, allocations: 6.106 MB / 0.7154 GB, free: 86.9 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.747e-06/1.234, allocations: 4.062 kB / 0.7154 GB, free: 86.89 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003388/1.238, allocations: 2.472 MB / 0.7178 GB, free: 84.41 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00463/1.242, allocations: 0.8914 MB / 0.7187 GB, free: 83.52 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02404/1.266, allocations: 20.39 MB / 0.7386 GB, free: 63.11 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005076/1.271, allocations: 6.203 MB / 0.7447 GB, free: 56.87 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004947/1.276, allocations: 1.951 MB / 0.7466 GB, free: 54.91 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009391/1.277, allocations: 323.4 kB / 0.7469 GB, free: 54.6 MB / 462.1 MB Notification: Performance of SimCode: time 7.82e-07/1.277, allocations: 0 / 0.7469 GB, free: 54.6 MB / 462.1 MB Notification: Performance of Templates: time 0.2411/1.519, allocations: 56.84 MB / 0.8024 GB, free: 137.3 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)