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.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001876/0.001876, allocations: 106 kB / 21.18 MB, free: 0.707 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002161/0.002161, allocations: 183.9 kB / 24.47 MB, free: 4.074 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.406/1.406, allocations: 207.6 MB / 235.2 MB, free: 10.03 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.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="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.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.001799/0.001799, allocations: 59.86 kB / 347.7 MB, free: 9.516 MB / 286.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2601/0.2619, allocations: 49.15 MB / 396.9 MB, free: 9.535 MB / 318.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02973/0.2916, allocations: 29.39 MB / 426.2 MB, free: 3.793 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.01948/0.3111, allocations: 8.584 MB / 434.8 MB, free: 12.7 MB / 350.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.006167/0.3173, allocations: 217.2 kB / 435 MB, free: 12.63 MB / 350.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.02001/0.3373, allocations: 8.327 MB / 443.4 MB, free: 4.738 MB / 350.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0128/0.3501, allocations: 3.167 MB / 446.5 MB, free: 1.555 MB / 350.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.006849/0.3569, allocations: 1.961 MB / 448.5 MB, free: 15.59 MB / 366.1 MB
Notification: Performance of NFFlatten.flatten: time 0.01616/0.3731, allocations: 10.58 MB / 459.1 MB, free: 4.965 MB / 366.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.02526/0.3983, allocations: 13.24 MB / 472.3 MB, free: 7.59 MB / 382.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.01082/0.4092, allocations: 5.739 MB / 478.1 MB, free: 1.836 MB / 382.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.01197/0.4211, allocations: 6.443 MB / 484.5 MB, free: 11.37 MB / 398.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.004931/0.4261, allocations: 1.582 MB / 486.1 MB, free: 9.789 MB / 398.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.007966/0.434, allocations: 1.949 MB / 488 MB, free: 7.84 MB / 398.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.005587/0.4396, allocations: 3.199 MB / 491.2 MB, free: 4.633 MB / 398.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.01316/0.4528, allocations: 6.12 MB / 497.3 MB, free: 14.48 MB / 414.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.03197/0.4847, allocations: 21.24 MB / 0.5064 GB, free: 9.184 MB / 430.1 MB
Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.4847, allocations: 0 / 0.5064 GB, free: 9.184 MB / 430.1 MB
Notification: Performance of FrontEnd: time 1.513e-06/0.4848, allocations: 4 kB / 0.5064 GB, free: 9.18 MB / 430.1 MB
Notification: Performance of Transformations before backend: time 0.0005667/0.4853, allocations: 0 / 0.5064 GB, free: 9.18 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.03916/0.5245, allocations: 12.59 MB / 0.5187 GB, free: 12.49 MB / 446.1 MB
Notification: Performance of prepare preOptimizeDAE: time 6.109e-05/0.5245, allocations: 8.031 kB / 0.5187 GB, free: 12.48 MB / 446.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04878/0.5733, allocations: 8.655 MB / 0.5272 GB, free: 3.812 MB / 446.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.01555/0.5889, allocations: 5.974 MB / 0.533 GB, free: 13.77 MB / 462.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008658/0.5897, allocations: 0.7424 MB / 0.5338 GB, free: 13.02 MB / 462.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.004948/0.5947, allocations: 0.9765 MB / 0.5347 GB, free: 12.05 MB / 462.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.04825/0.6429, allocations: 16.56 MB / 0.5509 GB, free: 11.39 MB / 478.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 0.0004407/0.6434, allocations: 27.83 kB / 0.5509 GB, free: 11.36 MB / 478.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003326/0.6467, allocations: 408 kB / 0.5513 GB, free: 10.96 MB / 478.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008004/0.6475, allocations: 0.6028 MB / 0.5519 GB, free: 10.36 MB / 478.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4163/1.064, allocations: 15.98 MB / 0.5675 GB, free: 130.4 MB / 478.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08055/1.144, allocations: 49.89 MB / 0.6162 GB, free: 98.36 MB / 478.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.01827/1.163, allocations: 12.24 MB / 0.6282 GB, free: 89.66 MB / 478.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.004995/1.168, allocations: 3.155 MB / 0.6312 GB, free: 86.5 MB / 478.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.01622/1.184, allocations: 9.067 MB / 0.6401 GB, free: 77.66 MB / 478.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.908e-05/1.184, allocations: 68.62 kB / 0.6402 GB, free: 77.58 MB / 478.1 MB
Notification: Performance of pre-optimization done (n=270): time 5.32e-06/1.184, allocations: 0 / 0.6402 GB, free: 77.58 MB / 478.1 MB
Notification: Performance of matching and sorting (n=278): time 0.02507/1.209, allocations: 12.89 MB / 0.6527 GB, free: 65.02 MB / 478.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.493e-05/1.209, allocations: 81.59 kB / 0.6528 GB, free: 64.93 MB / 478.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006722/1.216, allocations: 4.079 MB / 0.6568 GB, free: 60.89 MB / 478.1 MB
Notification: Performance of collectPreVariables (initialization): time 0.0003249/1.216, allocations: 73.7 kB / 0.6569 GB, free: 60.81 MB / 478.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.002229/1.218, allocations: 4.805 MB / 0.6616 GB, free: 56 MB / 478.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0008942/1.219, allocations: 1.044 MB / 0.6626 GB, free: 54.97 MB / 478.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.00202/1.221, allocations: 1.238 MB / 0.6638 GB, free: 53.72 MB / 478.1 MB
Notification: Performance of setup shared object (initialization): time 4.405e-05/1.221, allocations: 305.1 kB / 0.6641 GB, free: 53.42 MB / 478.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.003197/1.224, allocations: 2.448 MB / 0.6665 GB, free: 50.96 MB / 478.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.004416/1.229, allocations: 5.599 MB / 0.6719 GB, free: 43.83 MB / 478.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.007873/1.237, allocations: 8.69 MB / 0.6804 GB, free: 33.57 MB / 478.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.852e-05/1.237, allocations: 28 kB / 0.6805 GB, free: 33.54 MB / 478.1 MB
Notification: Performance of matching and sorting (n=778) (initialization): time 0.01379/1.251, allocations: 8.751 MB / 0.689 GB, free: 24.74 MB / 478.1 MB
Notification: Performance of prepare postOptimizeDAE: time 0.0001001/1.251, allocations: 55.94 kB / 0.6891 GB, free: 24.68 MB / 478.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001861/1.251, allocations: 108 kB / 0.6892 GB, free: 24.58 MB / 478.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.002261/1.253, allocations: 0.8648 MB / 0.69 GB, free: 23.71 MB / 478.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0043/1.257, allocations: 1.408 MB / 0.6914 GB, free: 22.3 MB / 478.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008849/1.266, allocations: 7.472 MB / 0.6987 GB, free: 14.71 MB / 478.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004647/1.271, allocations: 347.5 kB / 0.699 GB, free: 14.37 MB / 478.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001026/1.272, allocations: 352 kB / 0.6993 GB, free: 14.03 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.006255/1.278, allocations: 3.673 MB / 0.7029 GB, free: 10.34 MB / 478.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001207/1.279, allocations: 437.2 kB / 0.7033 GB, free: 9.91 MB / 478.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008301/1.288, allocations: 5.047 MB / 0.7083 GB, free: 4.805 MB / 478.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.912e-05/1.288, allocations: 36 kB / 0.7083 GB, free: 4.77 MB / 478.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 1.445e-05/1.288, allocations: 4 kB / 0.7083 GB, free: 4.766 MB / 478.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.542e-05/1.288, allocations: 19.94 kB / 0.7083 GB, free: 4.746 MB / 478.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0254/1.313, allocations: 12.22 MB / 0.7203 GB, free: 8.387 MB / 494.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.585e-05/1.313, allocations: 7.938 kB / 0.7203 GB, free: 8.379 MB / 494.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002418/1.316, allocations: 0.5187 MB / 0.7208 GB, free: 7.859 MB / 494.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.002351/1.318, allocations: 0.7029 MB / 0.7215 GB, free: 7.152 MB / 494.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003727/1.318, allocations: 71.97 kB / 0.7215 GB, free: 7.082 MB / 494.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01075/1.329, allocations: 6.609 MB / 0.728 GB, free: 364 kB / 494.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.895e-06/1.329, allocations: 11.94 kB / 0.728 GB, free: 352 kB / 494.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01579/1.345, allocations: 7.333 MB / 0.7352 GB, free: 8.863 MB / 0.4982 GB
Notification: Performance of postOpt removeConstants (simulation): time 0.00238/1.347, allocations: 0.7587 MB / 0.7359 GB, free: 8.102 MB / 0.4982 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001068/1.348, allocations: 63.88 kB / 0.736 GB, free: 8.039 MB / 0.4982 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002373/1.351, allocations: 159.9 kB / 0.7361 GB, free: 7.883 MB / 0.4982 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005948/1.351, allocations: 221.8 kB / 0.7363 GB, free: 7.664 MB / 0.4982 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002514/1.352, allocations: 87.92 kB / 0.7364 GB, free: 7.578 MB / 0.4982 GB
Notification: Performance of sorting global known variables: time 0.005596/1.357, allocations: 2.676 MB / 0.739 GB, free: 4.891 MB / 0.4982 GB
Notification: Performance of sort global known variables: time 9e-08/1.357, allocations: 0 / 0.739 GB, free: 4.891 MB / 0.4982 GB
Notification: Performance of remove unused functions: time 0.007836/1.365, allocations: 1.547 MB / 0.7405 GB, free: 3.344 MB / 0.4982 GB
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.0008081/1.366, allocations: 218.7 kB / 0.7407 GB, free: 3.117 MB / 0.4982 GB
Notification: Performance of simCode: created initialization part: time 0.0119/1.378, allocations: 5.888 MB / 0.7465 GB, free: 13.21 MB / 0.5138 GB
Notification: Performance of simCode: created event and clocks part: time 9.818e-06/1.378, allocations: 0 / 0.7465 GB, free: 13.21 MB / 0.5138 GB
Notification: Performance of simCode: created simulation system equations: time 0.004963/1.383, allocations: 2.29 MB / 0.7487 GB, free: 10.9 MB / 0.5138 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004824/1.388, allocations: 0.94 MB / 0.7497 GB, free: 9.969 MB / 0.5138 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2903/1.678, allocations: 16.49 MB / 0.7658 GB, free: 161.8 MB / 0.5138 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008926/1.687, allocations: 6.198 MB / 0.7718 GB, free: 160.9 MB / 0.5138 GB
Notification: Performance of simCode: alias equations: time 0.005629/1.692, allocations: 1.949 MB / 0.7737 GB, free: 160.8 MB / 0.5138 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001111/1.693, allocations: 330.9 kB / 0.774 GB, free: 160.8 MB / 0.5138 GB
Notification: Performance of SimCode: time 1.383e-06/1.693, allocations: 0 / 0.774 GB, free: 160.8 MB / 0.5138 GB
Notification: Performance of Templates: time 0.1012/1.795, allocations: 61.19 MB / 0.8338 GB, free: 116.8 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/jenkins/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/jenkins/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: 7.837609792128205]