Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001815/0.001815, allocations: 110.4 kB / 21.1 MB, free: 0.7891 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002463/0.002463, allocations: 206.2 kB / 24.38 MB, free: 4.203 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.462/1.462, allocations: 230.4 MB / 257.9 MB, free: 7.938 MB / 206.1 MB
"
[Timeout remaining time 178]
Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo)
Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo)
Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") [Timeout 660]
"Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Notification: Performance of FrontEnd - loaded program: time 0.00187/0.00187, allocations: 59.91 kB / 378.7 MB, free: 2.867 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2513/0.2531, allocations: 53.36 MB / 432 MB, free: 7.07 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03561/0.2887, allocations: 28.63 MB / 460.7 MB, free: 10.31 MB / 366.1 MB
Notification: Performance of NFInst.instExpressions: time 0.019/0.3077, allocations: 8.508 MB / 469.2 MB, free: 1.773 MB / 366.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.006167/0.3139, allocations: 254.8 kB / 469.4 MB, free: 1.523 MB / 366.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.02012/0.334, allocations: 8.268 MB / 477.7 MB, free: 9.234 MB / 382.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.009337/0.3434, allocations: 2.917 MB / 480.6 MB, free: 6.309 MB / 382.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.005109/0.3485, allocations: 1.923 MB / 482.5 MB, free: 4.391 MB / 382.1 MB
Notification: Performance of NFFlatten.flatten: time 0.01358/0.3621, allocations: 10.11 MB / 492.6 MB, free: 10.25 MB / 398.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.02242/0.3845, allocations: 13.18 MB / 0.494 GB, free: 12.94 MB / 414.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.009834/0.3943, allocations: 5.49 MB / 0.4993 GB, free: 7.434 MB / 414.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.01156/0.4059, allocations: 6.152 MB / 0.5053 GB, free: 1.262 MB / 414.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.004295/0.4102, allocations: 1.539 MB / 0.5068 GB, free: 15.72 MB / 430.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.006039/0.4162, allocations: 1.925 MB / 0.5087 GB, free: 13.8 MB / 430.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.005223/0.4214, allocations: 2.993 MB / 0.5116 GB, free: 10.8 MB / 430.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.01102/0.4325, allocations: 5.844 MB / 0.5173 GB, free: 4.93 MB / 430.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.02969/0.4621, allocations: 20.68 MB / 0.5375 GB, free: 188 kB / 446.1 MB
Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.4622, allocations: 0 / 0.5375 GB, free: 188 kB / 446.1 MB
Notification: Performance of FrontEnd: time 1.883e-06/0.4622, allocations: 7.938 kB / 0.5375 GB, free: 180 kB / 446.1 MB
Notification: Performance of Transformations before backend: time 0.0006817/0.4628, allocations: 0 / 0.5375 GB, free: 180 kB / 446.1 MB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 2599
 * Number of variables: 2599
Notification: Performance of Generate backend data structure: time 0.2847/0.7475, allocations: 12.01 MB / 0.5493 GB, free: 88.5 MB / 446.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.2e-05/0.7476, allocations: 7.906 kB / 0.5493 GB, free: 88.5 MB / 446.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02976/0.7773, allocations: 5.596 MB / 0.5547 GB, free: 85.95 MB / 446.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.01204/0.7894, allocations: 6.385 MB / 0.561 GB, free: 80.03 MB / 446.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004868/0.7899, allocations: 0.7023 MB / 0.5617 GB, free: 79.33 MB / 446.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.003364/0.7932, allocations: 0.9253 MB / 0.5626 GB, free: 78.42 MB / 446.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.03124/0.8245, allocations: 15.1 MB / 0.5773 GB, free: 63.27 MB / 446.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 0.0002746/0.8247, allocations: 11.91 kB / 0.5773 GB, free: 63.25 MB / 446.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00186/0.8266, allocations: 395.5 kB / 0.5777 GB, free: 62.88 MB / 446.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003401/0.8269, allocations: 0.5155 MB / 0.5782 GB, free: 62.36 MB / 446.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02309/0.85, allocations: 13.78 MB / 0.5917 GB, free: 48.55 MB / 446.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05952/0.9095, allocations: 46.31 MB / 0.6369 GB, free: 1.445 MB / 446.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0136/0.9231, allocations: 8.014 MB / 0.6447 GB, free: 10.67 MB / 462.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.00459/0.9277, allocations: 2.794 MB / 0.6474 GB, free: 7.875 MB / 462.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.000319/0.9281, allocations: 114.8 kB / 0.6475 GB, free: 7.762 MB / 462.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.186e-05/0.9281, allocations: 69.58 kB / 0.6476 GB, free: 7.684 MB / 462.1 MB
Notification: Performance of pre-optimization done (n=384): time 5.009e-06/0.9281, allocations: 4 kB / 0.6476 GB, free: 7.68 MB / 462.1 MB
Notification: Performance of matching and sorting (n=392): time 0.03274/0.9609, allocations: 14.75 MB / 0.662 GB, free: 8.883 MB / 478.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 7.881e-05/0.9609, allocations: 91.8 kB / 0.6621 GB, free: 8.781 MB / 478.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005681/0.9666, allocations: 3.607 MB / 0.6656 GB, free: 5.18 MB / 478.1 MB
Notification: Performance of collectPreVariables (initialization): time 0.0005136/0.9671, allocations: 93.7 kB / 0.6657 GB, free: 5.082 MB / 478.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.00303/0.9702, allocations: 4.184 MB / 0.6698 GB, free: 0.8594 MB / 478.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.00156/0.9717, allocations: 1.41 MB / 0.6712 GB, free: 15.44 MB / 494.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.001843/0.9736, allocations: 1.176 MB / 0.6723 GB, free: 14.25 MB / 494.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001314/0.9737, allocations: 305.1 kB / 0.6726 GB, free: 13.95 MB / 494.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.004411/0.9781, allocations: 2.592 MB / 0.6752 GB, free: 11.35 MB / 494.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.00677/0.9849, allocations: 5.095 MB / 0.6801 GB, free: 5.082 MB / 494.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.01266/0.9975, allocations: 8.348 MB / 0.6883 GB, free: 11.55 MB / 0.4981 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001084/0.9976, allocations: 27.94 kB / 0.6883 GB, free: 11.52 MB / 0.4981 GB
Notification: Performance of matching and sorting (n=769) (initialization): time 0.01743/1.015, allocations: 8.653 MB / 0.6968 GB, free: 2.836 MB / 0.4981 GB
Notification: Performance of prepare postOptimizeDAE: time 7.474e-05/1.015, allocations: 47.88 kB / 0.6968 GB, free: 2.789 MB / 0.4981 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001273/1.015, allocations: 84 kB / 0.6969 GB, free: 2.707 MB / 0.4981 GB
Notification: Performance of postOpt tearingSystem (initialization): time 0.002661/1.018, allocations: 0.8503 MB / 0.6977 GB, free: 1.855 MB / 0.4981 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00517/1.023, allocations: 1.365 MB / 0.699 GB, free: 500 kB / 0.4981 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01289/1.036, allocations: 7.582 MB / 0.7065 GB, free: 8.777 MB / 0.5137 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005592/1.042, allocations: 331.5 kB / 0.7068 GB, free: 8.453 MB / 0.5137 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001609/1.043, allocations: 312 kB / 0.7071 GB, free: 8.148 MB / 0.5137 GB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 378
 * 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 (722):
 * Single equations (assignments): 721
 * 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,40,65.6%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 0 systems
Notification: Performance of prepare postOptimizeDAE: time 0.008274/1.051, allocations: 3.509 MB / 0.7105 GB, free: 4.625 MB / 0.5137 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001606/1.053, allocations: 437.2 kB / 0.7109 GB, free: 4.195 MB / 0.5137 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01176/1.065, allocations: 5.961 MB / 0.7167 GB, free: 14.2 MB / 0.5294 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.853e-05/1.065, allocations: 47.94 kB / 0.7168 GB, free: 14.15 MB / 0.5294 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 1.496e-05/1.065, allocations: 8 kB / 0.7168 GB, free: 14.14 MB / 0.5294 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.046e-05/1.065, allocations: 23.86 kB / 0.7168 GB, free: 14.12 MB / 0.5294 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02835/1.093, allocations: 14.93 MB / 0.7314 GB, free: 15.04 MB / 0.545 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.836e-05/1.093, allocations: 12.08 kB / 0.7314 GB, free: 15.02 MB / 0.545 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003056/1.096, allocations: 0.6943 MB / 0.7321 GB, free: 14.33 MB / 0.545 GB
Notification: Performance of postOpt tearingSystem (simulation): time 0.002225/1.099, allocations: 0.7093 MB / 0.7328 GB, free: 13.62 MB / 0.545 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003093/1.099, allocations: 95.97 kB / 0.7329 GB, free: 13.52 MB / 0.545 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01021/1.109, allocations: 6.614 MB / 0.7393 GB, free: 6.789 MB / 0.545 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.354e-06/1.109, allocations: 8 kB / 0.7393 GB, free: 6.781 MB / 0.545 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4111/1.52, allocations: 8.771 MB / 0.7479 GB, free: 177.8 MB / 0.545 GB
Notification: Performance of postOpt removeConstants (simulation): time 0.002831/1.523, allocations: 0.854 MB / 0.7487 GB, free: 177.8 MB / 0.545 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009723/1.524, allocations: 73.56 kB / 0.7488 GB, free: 177.8 MB / 0.545 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002421/1.526, allocations: 180.8 kB / 0.749 GB, free: 177.8 MB / 0.545 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006065/1.527, allocations: 288.5 kB / 0.7492 GB, free: 177.8 MB / 0.545 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002252/1.527, allocations: 118.2 kB / 0.7494 GB, free: 177.8 MB / 0.545 GB
Notification: Performance of sorting global known variables: time 0.003561/1.531, allocations: 2.415 MB / 0.7517 GB, free: 177.3 MB / 0.545 GB
Notification: Performance of sort global known variables: time 9.1e-08/1.531, allocations: 0 / 0.7517 GB, free: 177.3 MB / 0.545 GB
Notification: Performance of remove unused functions: time 0.006071/1.537, allocations: 1.556 MB / 0.7532 GB, free: 177.1 MB / 0.545 GB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 21
 * 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 (377):
 * Single equations (assignments): 376
 * 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,59.4%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 0 systems
Notification: Performance of Backend phase and start with SimCode phase: time 0.0007004/1.538, allocations: 268.8 kB / 0.7535 GB, free: 177 MB / 0.545 GB
Notification: Performance of simCode: created initialization part: time 0.009181/1.547, allocations: 6.284 MB / 0.7596 GB, free: 174.6 MB / 0.545 GB
Notification: Performance of simCode: created event and clocks part: time 7.324e-06/1.547, allocations: 0 / 0.7596 GB, free: 174.6 MB / 0.545 GB
Notification: Performance of simCode: created simulation system equations: time 0.003968/1.551, allocations: 2.746 MB / 0.7623 GB, free: 173.6 MB / 0.545 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004527/1.555, allocations: 0.9548 MB / 0.7632 GB, free: 173.2 MB / 0.545 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02401/1.579, allocations: 16.01 MB / 0.7789 GB, free: 165.5 MB / 0.545 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005185/1.585, allocations: 5.971 MB / 0.7847 GB, free: 160.9 MB / 0.545 GB
Notification: Performance of simCode: alias equations: time 0.004064/1.589, allocations: 1.89 MB / 0.7866 GB, free: 159.6 MB / 0.545 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009826/1.59, allocations: 361.8 kB / 0.7869 GB, free: 159.3 MB / 0.545 GB
Notification: Performance of SimCode: time 1.162e-06/1.59, allocations: 0 / 0.7869 GB, free: 159.3 MB / 0.545 GB
Notification: Performance of Templates: time 0.09618/1.686, allocations: 65.79 MB / 0.8512 GB, free: 95.39 MB / 0.545 GB
"
[Timeout remaining time 658]
make -j1 -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile [Timeout 660]
(rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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: 8.16042744088918]