Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001657/0.001657, allocations: 101.9 kB / 21.93 MB, free: 5.203 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001591/0.001591, allocations: 203.2 kB / 25.22 MB, free: 3.141 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.448/1.448, allocations: 207.7 MB / 236.1 MB, free: 9.777 MB / 190.1 MB " [Timeout remaining time 178] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|quadraticSpeedDependentTorqueQS.phi",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|quadraticSpeedDependentTorqueQS.phi",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001903/0.001903, allocations: 51.94 kB / 348.5 MB, free: 9.332 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2722/0.2741, allocations: 49.15 MB / 397.6 MB, free: 9.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02804/0.3021, allocations: 25.11 MB / 422.7 MB, free: 8.16 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02046/0.3226, allocations: 8.223 MB / 431 MB, free: 1.473 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006891/0.3295, allocations: 218.5 kB / 431.2 MB, free: 1.402 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01984/0.3493, allocations: 7.673 MB / 438.9 MB, free: 9.836 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01177/0.3611, allocations: 3.066 MB / 441.9 MB, free: 6.754 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006387/0.3675, allocations: 1.879 MB / 443.8 MB, free: 4.871 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0155/0.383, allocations: 10.59 MB / 454.4 MB, free: 10.23 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02529/0.4083, allocations: 14.02 MB / 468.4 MB, free: 12.07 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01033/0.4186, allocations: 5.747 MB / 474.2 MB, free: 6.312 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01137/0.43, allocations: 6.178 MB / 480.3 MB, free: 116 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004815/0.4348, allocations: 1.578 MB / 481.9 MB, free: 14.53 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006806/0.4416, allocations: 1.925 MB / 483.8 MB, free: 12.61 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005545/0.4471, allocations: 3.195 MB / 487 MB, free: 9.406 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01078/0.4579, allocations: 4.763 MB / 491.8 MB, free: 4.625 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02935/0.4872, allocations: 21.33 MB / 0.5011 GB, free: 15.22 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.325e-06/0.4873, allocations: 0 / 0.5011 GB, free: 15.22 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.4873, allocations: 3.938 kB / 0.5011 GB, free: 15.22 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0006398/0.4879, allocations: 0 / 0.5011 GB, free: 15.22 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.03984/0.5277, allocations: 12.59 MB / 0.5134 GB, free: 2.539 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.028e-05/0.5278, allocations: 8.031 kB / 0.5134 GB, free: 2.531 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0476/0.5754, allocations: 8.659 MB / 0.5219 GB, free: 9.855 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01466/0.59, allocations: 5.966 MB / 0.5277 GB, free: 3.82 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008823/0.5909, allocations: 0.7425 MB / 0.5284 GB, free: 3.074 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004446/0.5954, allocations: 0.9725 MB / 0.5294 GB, free: 2.102 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04674/0.6421, allocations: 16.72 MB / 0.5457 GB, free: 1.258 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004995/0.6426, allocations: 23.83 kB / 0.5457 GB, free: 1.234 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004316/0.6469, allocations: 412 kB / 0.5461 GB, free: 0.832 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008481/0.6478, allocations: 0.6067 MB / 0.5467 GB, free: 228 kB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03957/0.6873, allocations: 15.89 MB / 0.5622 GB, free: 316 kB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4807/1.168, allocations: 44.35 MB / 0.6055 GB, free: 104.5 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01766/1.186, allocations: 12.1 MB / 0.6174 GB, free: 99.92 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004225/1.19, allocations: 3.143 MB / 0.6204 GB, free: 97.52 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01292/1.203, allocations: 8.371 MB / 0.6286 GB, free: 89.36 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.534e-05/1.203, allocations: 60.62 kB / 0.6287 GB, free: 89.29 MB / 478.1 MB Notification: Performance of pre-optimization done (n=270): time 6.091e-06/1.203, allocations: 0 / 0.6287 GB, free: 89.29 MB / 478.1 MB Notification: Performance of matching and sorting (n=278): time 0.02155/1.224, allocations: 12.81 MB / 0.6412 GB, free: 76.79 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.792e-05/1.224, allocations: 81.59 kB / 0.6412 GB, free: 76.7 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004568/1.229, allocations: 4.072 MB / 0.6452 GB, free: 72.77 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004327/1.229, allocations: 73.7 kB / 0.6453 GB, free: 72.69 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001714/1.231, allocations: 4.804 MB / 0.65 GB, free: 67.88 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007397/1.232, allocations: 1.037 MB / 0.651 GB, free: 66.86 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001285/1.233, allocations: 1.242 MB / 0.6522 GB, free: 65.61 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 3.936e-05/1.233, allocations: 305.1 kB / 0.6525 GB, free: 65.3 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002738/1.236, allocations: 2.448 MB / 0.6549 GB, free: 62.85 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003758/1.24, allocations: 5.628 MB / 0.6604 GB, free: 55.68 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007273/1.247, allocations: 8.678 MB / 0.6689 GB, free: 45.43 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.99e-05/1.247, allocations: 32 kB / 0.6689 GB, free: 45.4 MB / 478.1 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01224/1.259, allocations: 8.719 MB / 0.6774 GB, free: 36.63 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001553/1.259, allocations: 55.94 kB / 0.6775 GB, free: 36.57 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002077/1.26, allocations: 108.8 kB / 0.6776 GB, free: 36.47 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002223/1.262, allocations: 0.8564 MB / 0.6784 GB, free: 35.61 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004122/1.266, allocations: 1.396 MB / 0.6798 GB, free: 34.21 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008845/1.275, allocations: 7.25 MB / 0.6868 GB, free: 26.86 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004614/1.279, allocations: 351.5 kB / 0.6872 GB, free: 26.51 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009777/1.28, allocations: 348 kB / 0.6875 GB, free: 26.17 MB / 478.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.005702/1.286, allocations: 3.68 MB / 0.6911 GB, free: 22.48 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001167/1.287, allocations: 417.3 kB / 0.6915 GB, free: 22.07 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007514/1.295, allocations: 5.03 MB / 0.6964 GB, free: 16.98 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.92e-05/1.295, allocations: 28 kB / 0.6964 GB, free: 16.96 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.938e-06/1.295, allocations: 8 kB / 0.6964 GB, free: 16.95 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.457e-05/1.295, allocations: 15.94 kB / 0.6965 GB, free: 16.93 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02291/1.318, allocations: 10.34 MB / 0.7066 GB, free: 6.508 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.929e-05/1.318, allocations: 4 kB / 0.7066 GB, free: 6.504 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003457/1.321, allocations: 0.5266 MB / 0.7071 GB, free: 5.977 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002766/1.324, allocations: 0.6913 MB / 0.7078 GB, free: 5.281 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004929/1.325, allocations: 67.97 kB / 0.7078 GB, free: 5.215 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01214/1.337, allocations: 6.38 MB / 0.714 GB, free: 14.73 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.075e-05/1.337, allocations: 7.938 kB / 0.7141 GB, free: 14.72 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01912/1.356, allocations: 7.309 MB / 0.7212 GB, free: 7.27 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003639/1.359, allocations: 0.7431 MB / 0.7219 GB, free: 6.523 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001289/1.361, allocations: 59.92 kB / 0.722 GB, free: 6.465 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003248/1.364, allocations: 163.8 kB / 0.7221 GB, free: 6.305 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000642/1.365, allocations: 213.8 kB / 0.7223 GB, free: 6.094 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002971/1.365, allocations: 88.05 kB / 0.7224 GB, free: 6.008 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.006317/1.371, allocations: 2.544 MB / 0.7249 GB, free: 3.484 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/1.371, allocations: 0 / 0.7249 GB, free: 3.484 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.007572/1.379, allocations: 1.543 MB / 0.7264 GB, free: 1.941 MB / 494.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.0008195/1.38, allocations: 218.7 kB / 0.7266 GB, free: 1.715 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01084/1.39, allocations: 5.864 MB / 0.7323 GB, free: 11.83 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 1.174e-05/1.39, allocations: 4.188 kB / 0.7323 GB, free: 11.83 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.004451/1.395, allocations: 2.286 MB / 0.7346 GB, free: 9.527 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004746/1.4, allocations: 0.8801 MB / 0.7354 GB, free: 8.652 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03248/1.432, allocations: 16.21 MB / 0.7513 GB, free: 8.324 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008495/1.441, allocations: 5.572 MB / 0.7567 GB, free: 2.711 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001575/1.442, allocations: 383.3 kB / 0.7571 GB, free: 2.336 MB / 0.5138 GB Notification: Performance of SimCode: time 1.452e-06/1.442, allocations: 0 / 0.7571 GB, free: 2.336 MB / 0.5138 GB Notification: Performance of Templates: time 0.4396/1.882, allocations: 158.5 MB / 0.9119 GB, free: 32.94 MB / 0.5138 GB " [Timeout remaining time 658] make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.814515133854]