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.001104/0.001109, allocations: 102.8 kB / 16.92 MB, free: 6.191 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.001167/0.001167, allocations: 191.3 kB / 17.85 MB, free: 5.301 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.314/1.314, allocations: 205.1 MB / 223.7 MB, free: 12.3 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.001855/0.001856, allocations: 51.94 kB / 280 MB, free: 3.133 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09863/0.1005, allocations: 46.63 MB / 326.7 MB, free: 4.434 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03033/0.1309, allocations: 29.2 MB / 355.8 MB, free: 7.094 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01614/0.1471, allocations: 8.549 MB / 364.4 MB, free: 14.52 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004849/0.1519, allocations: 183.4 kB / 364.6 MB, free: 14.34 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02584/0.1778, allocations: 8.191 MB / 372.8 MB, free: 6.109 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01634/0.1942, allocations: 3.035 MB / 375.8 MB, free: 3.059 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009449/0.2037, allocations: 1.898 MB / 377.7 MB, free: 1.156 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1926/0.3963, allocations: 10.41 MB / 388.1 MB, free: 12 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02735/0.4237, allocations: 21.53 MB / 409.6 MB, free: 4.391 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009499/0.4332, allocations: 5.777 MB / 415.4 MB, free: 0 / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01243/0.4457, allocations: 6.514 MB / 421.9 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003769/0.4495, allocations: 1.582 MB / 423.5 MB, free: 9.629 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005561/0.4551, allocations: 1.943 MB / 425.5 MB, free: 7.758 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003759/0.4588, allocations: 3.193 MB / 428.7 MB, free: 5.062 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01182/0.4707, allocations: 6.124 MB / 434.8 MB, free: 15.31 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02278/0.4935, allocations: 21.07 MB / 455.8 MB, free: 11.13 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.124e-06/0.4935, allocations: 3.938 kB / 455.9 MB, free: 11.12 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.4935, allocations: 0 / 455.9 MB, free: 11.12 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004661/0.494, allocations: 0 / 455.9 MB, free: 11.12 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.03288/0.5269, allocations: 12.48 MB / 468.3 MB, free: 14.67 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.769e-05/0.527, allocations: 12.03 kB / 468.3 MB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04981/0.5768, allocations: 8.582 MB / 476.9 MB, free: 6.164 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01879/0.5956, allocations: 5.884 MB / 482.8 MB, free: 0.5234 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001212/0.5969, allocations: 0.7478 MB / 483.6 MB, free: 15.79 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005543/0.6024, allocations: 0.9806 MB / 484.5 MB, free: 14.82 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05607/0.6585, allocations: 16.57 MB / 0.4894 GB, free: 14.21 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000558/0.6591, allocations: 15.81 kB / 0.4894 GB, free: 14.19 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003917/0.6631, allocations: 411.8 kB / 0.4898 GB, free: 13.8 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009212/0.664, allocations: 0.6067 MB / 0.4904 GB, free: 13.19 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0493/0.7133, allocations: 15.96 MB / 0.5059 GB, free: 13.21 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3311/1.044, allocations: 52.13 MB / 0.5569 GB, free: 122.7 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02701/1.071, allocations: 52.27 MB / 0.6079 GB, free: 73.04 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005428/1.077, allocations: 3.465 MB / 0.6113 GB, free: 71.76 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01523/1.092, allocations: 9.434 MB / 0.6205 GB, free: 67.37 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.539e-05/1.092, allocations: 63.16 kB / 0.6206 GB, free: 67.31 MB / 446.1 MB Notification: Performance of pre-optimization done (n=270): time 5.65e-06/1.092, allocations: 0 / 0.6206 GB, free: 67.31 MB / 446.1 MB Notification: Performance of matching and sorting (n=278): time 0.0249/1.117, allocations: 12.93 MB / 0.6332 GB, free: 59.79 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.439e-05/1.117, allocations: 82.44 kB / 0.6333 GB, free: 59.72 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006189/1.123, allocations: 4.066 MB / 0.6372 GB, free: 57.52 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003308/1.124, allocations: 70.42 kB / 0.6373 GB, free: 57.45 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002108/1.126, allocations: 4.634 MB / 0.6418 GB, free: 53.41 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008771/1.127, allocations: 0.9889 MB / 0.6428 GB, free: 52.57 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002056/1.129, allocations: 1.231 MB / 0.644 GB, free: 51.85 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.13e-05/1.129, allocations: 305.1 kB / 0.6443 GB, free: 51.55 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003281/1.132, allocations: 2.446 MB / 0.6467 GB, free: 50.25 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004723/1.137, allocations: 5.607 MB / 0.6522 GB, free: 43.2 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008605/1.146, allocations: 8.694 MB / 0.6606 GB, free: 32.93 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.446e-05/1.146, allocations: 32 kB / 0.6607 GB, free: 32.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01401/1.16, allocations: 8.756 MB / 0.6692 GB, free: 24.09 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001058/1.16, allocations: 52 kB / 0.6693 GB, free: 24.04 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001812/1.16, allocations: 116 kB / 0.6694 GB, free: 23.93 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002277/1.162, allocations: 0.8725 MB / 0.6702 GB, free: 23.05 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004305/1.167, allocations: 1.396 MB / 0.6716 GB, free: 21.66 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008666/1.175, allocations: 7.571 MB / 0.679 GB, free: 13.94 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004172/1.18, allocations: 355.3 kB / 0.6793 GB, free: 13.59 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007571/1.18, allocations: 351.8 kB / 0.6797 GB, free: 13.25 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.005004/1.185, allocations: 3.684 MB / 0.6833 GB, free: 9.555 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009841/1.186, allocations: 403 kB / 0.6836 GB, free: 9.156 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007997/1.194, allocations: 5.07 MB / 0.6886 GB, free: 4.027 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.744e-05/1.194, allocations: 28 kB / 0.6886 GB, free: 4 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.709e-05/1.194, allocations: 11.98 kB / 0.6886 GB, free: 3.988 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.598e-05/1.194, allocations: 19.89 kB / 0.6887 GB, free: 3.969 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02286/1.217, allocations: 12.22 MB / 0.7006 GB, free: 7.664 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.129e-05/1.217, allocations: 0 / 0.7006 GB, free: 7.664 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002314/1.22, allocations: 0.5227 MB / 0.7011 GB, free: 7.141 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00212/1.222, allocations: 0.7071 MB / 0.7018 GB, free: 6.43 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002787/1.222, allocations: 71.91 kB / 0.7019 GB, free: 6.359 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1743/1.396, allocations: 6.705 MB / 0.7084 GB, free: 151.2 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.987e-06/1.396, allocations: 9.75 kB / 0.7084 GB, free: 151.2 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01309/1.41, allocations: 7.335 MB / 0.7156 GB, free: 150 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002022/1.412, allocations: 0.799 MB / 0.7164 GB, free: 149.7 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006158/1.412, allocations: 55.91 kB / 0.7164 GB, free: 149.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00185/1.414, allocations: 163.6 kB / 0.7166 GB, free: 149.7 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005636/1.415, allocations: 202 kB / 0.7168 GB, free: 149.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002019/1.415, allocations: 91.42 kB / 0.7169 GB, free: 149.6 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004289/1.419, allocations: 2.677 MB / 0.7195 GB, free: 148.6 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.91e-07/1.419, allocations: 1.875 kB / 0.7195 GB, free: 148.6 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00607/1.425, allocations: 1.548 MB / 0.721 GB, free: 148.5 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.000545/1.426, allocations: 228.7 kB / 0.7212 GB, free: 148.3 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01584/1.442, allocations: 9.105 MB / 0.7301 GB, free: 145.9 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.808e-06/1.442, allocations: 2.531 kB / 0.7301 GB, free: 145.9 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00347/1.445, allocations: 2.484 MB / 0.7325 GB, free: 144.9 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004151/1.449, allocations: 0.9475 MB / 0.7334 GB, free: 144.6 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02466/1.474, allocations: 16.3 MB / 0.7494 GB, free: 136.4 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007405/1.482, allocations: 6.203 MB / 0.7554 GB, free: 131.6 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005877/1.487, allocations: 1.938 MB / 0.7573 GB, free: 130.3 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001145/1.489, allocations: 332.8 kB / 0.7576 GB, free: 130 MB / 462.1 MB Notification: Performance of SimCode: time 9.62e-07/1.489, allocations: 4 kB / 0.7576 GB, free: 130 MB / 462.1 MB Notification: Performance of Templates: time 0.0884/1.577, allocations: 59.01 MB / 0.8153 GB, free: 72.47 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)