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.0007603/0.0007604, allocations: 91.64 kB / 16.65 MB, free: 6.535 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.0008283/0.0008283, allocations: 175.1 kB / 17.56 MB, free: 6.184 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.309/1.309, allocations: 205.4 MB / 223.7 MB, free: 13.06 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.0004309/0.000431, allocations: 8 kB / 280.8 MB, free: 3.395 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07561/0.07605, allocations: 47.59 MB / 328.3 MB, free: 3.738 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02553/0.1016, allocations: 27.46 MB / 355.8 MB, free: 8.152 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01629/0.1179, allocations: 8.398 MB / 364.2 MB, free: 15.73 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007659/0.1257, allocations: 171.4 kB / 364.4 MB, free: 15.56 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005625/0.1313, allocations: 1.789 MB / 366.2 MB, free: 13.76 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0087/0.14, allocations: 2.765 MB / 368.9 MB, free: 10.98 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004388/0.1444, allocations: 1.567 MB / 370.5 MB, free: 9.414 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2957/0.4402, allocations: 10.56 MB / 381.1 MB, free: 11.23 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03106/0.4713, allocations: 21.46 MB / 402.5 MB, free: 8.152 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00608/0.4774, allocations: 3.952 MB / 406.5 MB, free: 7.16 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006731/0.4841, allocations: 4.905 MB / 411.4 MB, free: 5.23 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001751/0.4859, allocations: 0.61 MB / 412 MB, free: 5.23 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002596/0.4885, allocations: 0.9684 MB / 413 MB, free: 5.113 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001342/0.4899, allocations: 2.007 MB / 415 MB, free: 4.039 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004403/0.4943, allocations: 4.848 MB / 419.8 MB, free: 15.7 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01666/0.511, allocations: 19.9 MB / 439.7 MB, free: 13.26 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.511, allocations: 3.938 kB / 439.7 MB, free: 13.26 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.511, allocations: 3.938 kB / 439.7 MB, free: 13.25 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0005556/0.5116, allocations: 0 / 439.7 MB, free: 13.25 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.02703/0.5386, allocations: 10.25 MB / 450 MB, free: 2.977 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.997e-05/0.5387, allocations: 12.03 kB / 450 MB, free: 2.965 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04695/0.5856, allocations: 8.608 MB / 458.6 MB, free: 10.44 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01263/0.5983, allocations: 5.903 MB / 464.5 MB, free: 4.777 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008049/0.5991, allocations: 0.7478 MB / 465.2 MB, free: 4.043 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003629/0.6028, allocations: 0.9815 MB / 466.2 MB, free: 3.074 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04048/0.6433, allocations: 16.56 MB / 482.8 MB, free: 2.461 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004944/0.6438, allocations: 15.91 kB / 482.8 MB, free: 2.445 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002795/0.6466, allocations: 412 kB / 483.2 MB, free: 2.055 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006852/0.6473, allocations: 0.6067 MB / 483.8 MB, free: 1.445 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03158/0.6789, allocations: 15.96 MB / 499.8 MB, free: 1.469 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2771/0.956, allocations: 52.25 MB / 0.5391 GB, free: 126 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03021/0.9863, allocations: 52.22 MB / 0.5901 GB, free: 76.47 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00532/0.9917, allocations: 3.463 MB / 0.5935 GB, free: 76.42 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01447/1.006, allocations: 9.42 MB / 0.6027 GB, free: 75.45 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.186e-05/1.006, allocations: 62.2 kB / 0.6027 GB, free: 75.41 MB / 446.1 MB Notification: Performance of pre-optimization done (n=270): time 5.28e-06/1.006, allocations: 3.688 kB / 0.6027 GB, free: 75.41 MB / 446.1 MB Notification: Performance of matching and sorting (n=278): time 0.02424/1.031, allocations: 12.9 MB / 0.6153 GB, free: 70.54 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.99e-05/1.031, allocations: 81.75 kB / 0.6154 GB, free: 70.48 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005192/1.036, allocations: 4.059 MB / 0.6194 GB, free: 68.93 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004405/1.036, allocations: 72.7 kB / 0.6194 GB, free: 68.87 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001904/1.038, allocations: 4.621 MB / 0.6239 GB, free: 65.38 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008625/1.039, allocations: 0.9938 MB / 0.6249 GB, free: 64.64 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005366/1.04, allocations: 484.4 kB / 0.6254 GB, free: 64.42 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.9e-05/1.04, allocations: 305.1 kB / 0.6257 GB, free: 64.12 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003129/1.043, allocations: 2.45 MB / 0.6281 GB, free: 63.22 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004254/1.047, allocations: 5.596 MB / 0.6335 GB, free: 58.03 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009129/1.056, allocations: 8.682 MB / 0.642 GB, free: 50.5 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.764e-05/1.056, allocations: 32.81 kB / 0.642 GB, free: 50.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.0134/1.07, allocations: 8.742 MB / 0.6506 GB, free: 42.47 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.343e-05/1.07, allocations: 56.06 kB / 0.6506 GB, free: 42.41 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001435/1.07, allocations: 108 kB / 0.6507 GB, free: 42.31 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002035/1.072, allocations: 0.854 MB / 0.6516 GB, free: 41.45 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00435/1.076, allocations: 1.404 MB / 0.6529 GB, free: 40.05 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008075/1.084, allocations: 7.004 MB / 0.6598 GB, free: 32.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004278/1.089, allocations: 355.3 kB / 0.6601 GB, free: 32.55 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000798/1.09, allocations: 348 kB / 0.6604 GB, free: 32.21 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.005416/1.095, allocations: 3.677 MB / 0.664 GB, free: 28.52 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008326/1.096, allocations: 407 kB / 0.6644 GB, free: 28.12 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007659/1.104, allocations: 5.066 MB / 0.6694 GB, free: 23 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-05/1.104, allocations: 28 kB / 0.6694 GB, free: 22.97 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.028e-05/1.104, allocations: 8 kB / 0.6694 GB, free: 22.96 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.383e-05/1.104, allocations: 15.94 kB / 0.6694 GB, free: 22.95 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0172/1.121, allocations: 12.2 MB / 0.6813 GB, free: 10.66 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.084e-05/1.121, allocations: 0 / 0.6813 GB, free: 10.66 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002004/1.123, allocations: 0.5226 MB / 0.6818 GB, free: 10.14 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00175/1.125, allocations: 0.6918 MB / 0.6825 GB, free: 9.445 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001692/1.125, allocations: 71.97 kB / 0.6826 GB, free: 9.375 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006992/1.132, allocations: 6.146 MB / 0.6886 GB, free: 3.086 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/1.132, allocations: 4 kB / 0.6886 GB, free: 3.082 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01062/1.142, allocations: 7.32 MB / 0.6957 GB, free: 11.62 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001937/1.144, allocations: 0.8199 MB / 0.6965 GB, free: 10.77 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000573/1.145, allocations: 56.05 kB / 0.6966 GB, free: 10.72 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001805/1.147, allocations: 171.8 kB / 0.6968 GB, free: 10.55 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004393/1.147, allocations: 202 kB / 0.6969 GB, free: 10.35 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000182/1.148, allocations: 83.98 kB / 0.697 GB, free: 10.27 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004419/1.152, allocations: 2.68 MB / 0.6996 GB, free: 7.578 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.8e-07/1.152, allocations: 0 / 0.6996 GB, free: 7.578 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005922/1.158, allocations: 1.55 MB / 0.7012 GB, free: 6.031 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.0005597/1.158, allocations: 218.5 kB / 0.7014 GB, free: 5.816 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.1826/1.341, allocations: 6.104 MB / 0.7073 GB, free: 149.9 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.439e-05/1.341, allocations: 1.25 kB / 0.7073 GB, free: 149.9 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004985/1.346, allocations: 2.478 MB / 0.7097 GB, free: 149.7 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006276/1.352, allocations: 0.8853 MB / 0.7106 GB, free: 149.7 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02995/1.382, allocations: 20.45 MB / 0.7306 GB, free: 139.8 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00684/1.389, allocations: 6.207 MB / 0.7366 GB, free: 137.5 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005406/1.395, allocations: 1.944 MB / 0.7385 GB, free: 137.2 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008617/1.396, allocations: 327.1 kB / 0.7389 GB, free: 137.2 MB / 462.1 MB Notification: Performance of SimCode: time 7.41e-07/1.396, allocations: 0 / 0.7389 GB, free: 137.2 MB / 462.1 MB Notification: Performance of Templates: time 0.0852/1.481, allocations: 56.12 MB / 0.7937 GB, free: 92.57 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)