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.0013/0.0013, allocations: 103 kB / 16.51 MB, free: 6.645 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.001423/0.001423, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.305/1.305, allocations: 205.1 MB / 223.3 MB, free: 12.45 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.001153/0.001153, allocations: 43.92 kB / 279.4 MB, free: 3.555 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08199/0.08316, allocations: 46.63 MB / 326 MB, free: 4.855 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02651/0.1097, allocations: 28.68 MB / 354.7 MB, free: 8.039 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01522/0.125, allocations: 8.456 MB / 363.1 MB, free: 15.55 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004816/0.1298, allocations: 175.4 kB / 363.3 MB, free: 15.38 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01641/0.1463, allocations: 7.756 MB / 371.1 MB, free: 7.598 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008795/0.1551, allocations: 2.765 MB / 373.8 MB, free: 4.82 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004725/0.1598, allocations: 1.793 MB / 375.6 MB, free: 3.023 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1654/0.3252, allocations: 10.57 MB / 386.2 MB, free: 11.21 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02265/0.3479, allocations: 17.91 MB / 404.1 MB, free: 6.75 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006473/0.3544, allocations: 4.875 MB / 409 MB, free: 4.863 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007907/0.3624, allocations: 6.109 MB / 415.1 MB, free: 1.016 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003191/0.3656, allocations: 1.078 MB / 416.1 MB, free: 0 / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.011/0.3766, allocations: 1.948 MB / 418.1 MB, free: 15.73 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003701/0.3803, allocations: 2.65 MB / 420.7 MB, free: 13.17 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009686/0.39, allocations: 5.575 MB / 426.3 MB, free: 7.656 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0199/0.41, allocations: 20.72 MB / 447 MB, free: 3.477 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.616e-06/0.41, allocations: 3.984 kB / 447 MB, free: 3.473 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.41, allocations: 0 / 447 MB, free: 3.473 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0004897/0.4105, allocations: 0 / 447 MB, free: 3.473 MB / 350.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.0325/0.443, allocations: 12.49 MB / 459.5 MB, free: 6.988 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.96e-05/0.4431, allocations: 8.031 kB / 459.5 MB, free: 6.98 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04589/0.489, allocations: 8.57 MB / 468.1 MB, free: 14.5 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0118/0.5008, allocations: 5.898 MB / 474 MB, free: 8.84 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007/0.5015, allocations: 0.7428 MB / 474.7 MB, free: 8.105 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003422/0.505, allocations: 0.9772 MB / 475.7 MB, free: 7.141 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03563/0.5406, allocations: 16.57 MB / 492.3 MB, free: 6.523 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000301/0.541, allocations: 11.81 kB / 492.3 MB, free: 6.512 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002009/0.543, allocations: 424.9 kB / 492.7 MB, free: 6.109 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006008/0.5436, allocations: 0.6068 MB / 493.3 MB, free: 5.5 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03135/0.5749, allocations: 15.95 MB / 0.4973 GB, free: 5.535 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3956/0.9706, allocations: 52.1 MB / 0.5482 GB, free: 122.3 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02442/0.9951, allocations: 52.27 MB / 0.5993 GB, free: 72.79 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00508/1, allocations: 3.46 MB / 0.6026 GB, free: 72.74 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01483/1.015, allocations: 9.407 MB / 0.6118 GB, free: 69.3 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.883e-05/1.015, allocations: 64.53 kB / 0.6119 GB, free: 69.23 MB / 446.1 MB Notification: Performance of pre-optimization done (n=270): time 4.278e-06/1.015, allocations: 3.75 kB / 0.6119 GB, free: 69.23 MB / 446.1 MB Notification: Performance of matching and sorting (n=278): time 0.02285/1.038, allocations: 12.87 MB / 0.6245 GB, free: 62.68 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.317e-05/1.038, allocations: 83.53 kB / 0.6245 GB, free: 62.61 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004738/1.043, allocations: 4.061 MB / 0.6285 GB, free: 60.41 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003389/1.043, allocations: 73.58 kB / 0.6286 GB, free: 60.34 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001859/1.045, allocations: 4.626 MB / 0.6331 GB, free: 56.3 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007751/1.046, allocations: 0.9901 MB / 0.6341 GB, free: 55.46 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00139/1.047, allocations: 1.237 MB / 0.6353 GB, free: 54.75 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.052e-05/1.047, allocations: 305.1 kB / 0.6356 GB, free: 54.45 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003001/1.05, allocations: 2.448 MB / 0.638 GB, free: 53.14 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004209/1.055, allocations: 5.599 MB / 0.6434 GB, free: 47.46 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007799/1.062, allocations: 8.688 MB / 0.6519 GB, free: 39.01 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.094e-05/1.062, allocations: 32 kB / 0.6519 GB, free: 38.98 MB / 446.1 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01298/1.075, allocations: 8.741 MB / 0.6605 GB, free: 30.19 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.124e-05/1.075, allocations: 52 kB / 0.6605 GB, free: 30.14 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000122/1.076, allocations: 108 kB / 0.6606 GB, free: 30.04 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002023/1.078, allocations: 0.8567 MB / 0.6615 GB, free: 29.18 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004054/1.082, allocations: 1.408 MB / 0.6628 GB, free: 27.77 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008479/1.09, allocations: 6.988 MB / 0.6697 GB, free: 20.64 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004692/1.095, allocations: 355.2 kB / 0.67 GB, free: 20.29 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007317/1.096, allocations: 352.1 kB / 0.6703 GB, free: 19.95 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.00507/1.101, allocations: 3.677 MB / 0.6739 GB, free: 16.26 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008327/1.102, allocations: 410.9 kB / 0.6743 GB, free: 15.85 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007367/1.109, allocations: 5.062 MB / 0.6793 GB, free: 10.73 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.581e-05/1.109, allocations: 35.84 kB / 0.6793 GB, free: 10.7 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.066e-05/1.109, allocations: 4 kB / 0.6793 GB, free: 10.7 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.209e-05/1.109, allocations: 19.94 kB / 0.6793 GB, free: 10.68 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01732/1.126, allocations: 12.19 MB / 0.6912 GB, free: 14.4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.499e-05/1.126, allocations: 8 kB / 0.6912 GB, free: 14.39 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002221/1.129, allocations: 0.5149 MB / 0.6917 GB, free: 13.88 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001981/1.131, allocations: 0.6918 MB / 0.6924 GB, free: 13.18 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001785/1.131, allocations: 67.97 kB / 0.6925 GB, free: 13.11 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00828/1.139, allocations: 6.156 MB / 0.6985 GB, free: 6.824 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.453e-06/1.139, allocations: 7.938 kB / 0.6985 GB, free: 6.816 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1707/1.31, allocations: 7.31 MB / 0.7056 GB, free: 147.6 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002198/1.312, allocations: 0.797 MB / 0.7064 GB, free: 147.5 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006944/1.313, allocations: 55.45 kB / 0.7065 GB, free: 147.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001865/1.315, allocations: 169 kB / 0.7066 GB, free: 147.5 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005282/1.315, allocations: 202.4 kB / 0.7068 GB, free: 147.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001956/1.315, allocations: 90.44 kB / 0.7069 GB, free: 147.5 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004391/1.32, allocations: 2.674 MB / 0.7095 GB, free: 147.3 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.51e-07/1.32, allocations: 3.969 kB / 0.7095 GB, free: 147.3 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006906/1.327, allocations: 1.551 MB / 0.711 GB, free: 147.3 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.0006748/1.327, allocations: 216.8 kB / 0.7112 GB, free: 147.2 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.009993/1.337, allocations: 6.11 MB / 0.7172 GB, free: 145.4 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.127e-06/1.337, allocations: 5.375 kB / 0.7172 GB, free: 145.4 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003779/1.341, allocations: 2.467 MB / 0.7196 GB, free: 144.4 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004401/1.346, allocations: 0.8954 MB / 0.7205 GB, free: 144.1 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02752/1.373, allocations: 20.39 MB / 0.7404 GB, free: 132.8 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005587/1.379, allocations: 6.204 MB / 0.7465 GB, free: 130.5 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005038/1.384, allocations: 1.946 MB / 0.7484 GB, free: 130.3 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008563/1.385, allocations: 329.9 kB / 0.7487 GB, free: 130.3 MB / 462.1 MB Notification: Performance of SimCode: time 9.42e-07/1.385, allocations: 0 / 0.7487 GB, free: 130.3 MB / 462.1 MB Notification: Performance of Templates: time 0.08263/1.467, allocations: 56.85 MB / 0.8042 GB, free: 78.79 MB / 462.1 MB 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)