Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.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.001787/0.001787, allocations: 112 kB / 20.43 MB, free: 1.449 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.002097/0.002097, allocations: 187.8 kB / 23.72 MB, free: 4.68 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.409/1.409, allocations: 225.6 MB / 252.5 MB, free: 13 MB / 206.1 MB
"
[Timeout remaining time 178]
Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource")
translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001606/0.001606, allocations: 51.91 kB / 371 MB, free: 9.328 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3345/0.3361, allocations: 52.17 MB / 423.1 MB, free: 14.69 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.02028/0.3563, allocations: 15.32 MB / 438.5 MB, free: 15.3 MB / 350.1 MB
Notification: Performance of NFInst.instExpressions: time 0.0135/0.3698, allocations: 5.109 MB / 443.6 MB, free: 10.18 MB / 350.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.003898/0.3737, allocations: 119.2 kB / 443.7 MB, free: 10.06 MB / 350.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.004052/0.3778, allocations: 1.138 MB / 444.8 MB, free: 8.918 MB / 350.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.00595/0.3837, allocations: 1.328 MB / 446.2 MB, free: 7.582 MB / 350.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.00303/0.3868, allocations: 0.9033 MB / 447.1 MB, free: 6.68 MB / 350.1 MB
Notification: Performance of NFFlatten.flatten: time 0.006297/0.3931, allocations: 3.624 MB / 450.7 MB, free: 3.039 MB / 350.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.003319/0.3964, allocations: 1.909 MB / 452.6 MB, free: 1.062 MB / 350.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.003276/0.3997, allocations: 1.772 MB / 454.4 MB, free: 15.29 MB / 366.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.004178/0.4038, allocations: 2.09 MB / 456.4 MB, free: 13.19 MB / 366.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.001278/0.4051, allocations: 476 kB / 456.9 MB, free: 12.72 MB / 366.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.002248/0.4074, allocations: 0.695 MB / 457.6 MB, free: 12.03 MB / 366.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.001378/0.4088, allocations: 1.153 MB / 458.8 MB, free: 10.87 MB / 366.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.003256/0.412, allocations: 2.042 MB / 460.8 MB, free: 8.82 MB / 366.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.009376/0.4214, allocations: 6.287 MB / 467.1 MB, free: 2.512 MB / 366.1 MB
Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/0.4214, allocations: 0 / 467.1 MB, free: 2.512 MB / 366.1 MB
Notification: Performance of FrontEnd: time 2.825e-06/0.4214, allocations: 0 / 467.1 MB, free: 2.512 MB / 366.1 MB
Notification: Performance of Transformations before backend: time 0.000205/0.4216, allocations: 0 / 467.1 MB, free: 2.512 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: 826
 * Number of variables: 826
Notification: Performance of Generate backend data structure: time 0.01333/0.4349, allocations: 4.271 MB / 471.4 MB, free: 14.18 MB / 382.1 MB
Notification: Performance of prepare preOptimizeDAE: time 5.205e-05/0.435, allocations: 8.031 kB / 471.4 MB, free: 14.17 MB / 382.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003026/0.438, allocations: 0.6349 MB / 472 MB, free: 13.54 MB / 382.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.005045/0.4431, allocations: 2.214 MB / 474.2 MB, free: 11.27 MB / 382.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002225/0.4433, allocations: 238.7 kB / 474.5 MB, free: 11.04 MB / 382.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006481/0.4439, allocations: 320.1 kB / 474.8 MB, free: 10.73 MB / 382.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.008533/0.4525, allocations: 4.043 MB / 478.8 MB, free: 6.621 MB / 382.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 7.598e-05/0.4525, allocations: 4 kB / 478.8 MB, free: 6.617 MB / 382.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003237/0.4529, allocations: 132 kB / 478.9 MB, free: 6.488 MB / 382.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001829/0.453, allocations: 142.2 kB / 479.1 MB, free: 6.348 MB / 382.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00631/0.4594, allocations: 3.393 MB / 482.5 MB, free: 2.945 MB / 382.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02249/0.4818, allocations: 12.82 MB / 495.3 MB, free: 5.711 MB / 398.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.003507/0.4854, allocations: 1.684 MB / 497 MB, free: 4.062 MB / 398.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.001597/0.4869, allocations: 0.8948 MB / 497.9 MB, free: 3.168 MB / 398.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.004913/0.4919, allocations: 2.411 MB / 0.4886 GB, free: 0.7305 MB / 398.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.211e-05/0.4919, allocations: 51.55 kB / 0.4886 GB, free: 0.6719 MB / 398.1 MB
Notification: Performance of pre-optimization done (n=108): time 2.635e-06/0.4919, allocations: 0 / 0.4886 GB, free: 0.6719 MB / 398.1 MB
Notification: Performance of matching and sorting (n=142): time 0.0126/0.5045, allocations: 5.799 MB / 0.4943 GB, free: 10.84 MB / 414.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.474e-05/0.5046, allocations: 68.72 kB / 0.4943 GB, free: 10.76 MB / 414.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003392/0.508, allocations: 1.897 MB / 0.4962 GB, free: 8.82 MB / 414.1 MB
Notification: Performance of collectPreVariables (initialization): time 0.0001473/0.5081, allocations: 45.7 kB / 0.4962 GB, free: 8.77 MB / 414.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.001383/0.5095, allocations: 1.552 MB / 0.4977 GB, free: 7.203 MB / 414.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0005429/0.51, allocations: 0.4997 MB / 0.4982 GB, free: 6.699 MB / 414.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005675/0.5106, allocations: 335.4 kB / 0.4985 GB, free: 6.363 MB / 414.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001384/0.5107, allocations: 301.1 kB / 0.4988 GB, free: 6.066 MB / 414.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.001292/0.512, allocations: 0.773 MB / 0.4996 GB, free: 5.293 MB / 414.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.001765/0.5138, allocations: 1.371 MB / 0.5009 GB, free: 3.648 MB / 414.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.003308/0.5171, allocations: 2.32 MB / 0.5032 GB, free: 1.062 MB / 414.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.428e-05/0.5171, allocations: 7.984 kB / 0.5032 GB, free: 1.055 MB / 414.1 MB
Notification: Performance of matching and sorting (n=235) (initialization): time 0.004816/0.5219, allocations: 2.478 MB / 0.5056 GB, free: 14.56 MB / 430.1 MB
Notification: Performance of prepare postOptimizeDAE: time 3.125e-05/0.522, allocations: 12 kB / 0.5056 GB, free: 14.55 MB / 430.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.337e-05/0.522, allocations: 24.66 kB / 0.5057 GB, free: 14.52 MB / 430.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0004072/0.5224, allocations: 122.4 kB / 0.5058 GB, free: 14.39 MB / 430.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001939/0.5243, allocations: 483.2 kB / 0.5062 GB, free: 13.92 MB / 430.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001307/0.5256, allocations: 1.31 MB / 0.5075 GB, free: 12.5 MB / 430.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00177/0.5274, allocations: 112 kB / 0.5076 GB, free: 12.39 MB / 430.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001475/0.5276, allocations: 83.98 kB / 0.5077 GB, free: 12.31 MB / 430.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 87
 * 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 (232):
 * Single equations (assignments): 229
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 2
 * Torn equation systems: 1
 * Mixed (continuous/discrete) equation systems: 0
Notification: Equation system details (not torn):
 * Constant Jacobian (size): 0 systems
 * Linear Jacobian (size,density): 2 systems
   {(2,100.0%), (2,100.0%)}
 * Non-linear Jacobian (size): 0 systems
 * Without analytic Jacobian (size): 0 systems
Notification: Torn system details for strict tearing set:
 * Linear torn systems (#iteration vars, #inner vars, density): 1 system
   {(1,1,100.0%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 0 systems
Notification: Performance of prepare postOptimizeDAE: time 0.002065/0.5296, allocations: 0.9889 MB / 0.5087 GB, free: 11.31 MB / 430.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005327/0.5302, allocations: 210.6 kB / 0.5089 GB, free: 11.1 MB / 430.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003765/0.5339, allocations: 1.969 MB / 0.5108 GB, free: 9.117 MB / 430.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.705e-05/0.5339, allocations: 16 kB / 0.5108 GB, free: 9.102 MB / 430.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.534, allocations: 0 / 0.5108 GB, free: 9.102 MB / 430.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.717e-05/0.534, allocations: 11.97 kB / 0.5108 GB, free: 9.09 MB / 430.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01013/0.5441, allocations: 4.951 MB / 0.5157 GB, free: 4.035 MB / 430.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.178e-05/0.5441, allocations: 4 kB / 0.5157 GB, free: 4.031 MB / 430.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001999/0.5461, allocations: 311.8 kB / 0.516 GB, free: 3.727 MB / 430.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0004053/0.5465, allocations: 94.47 kB / 0.516 GB, free: 3.625 MB / 430.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001218/0.5466, allocations: 27.98 kB / 0.5161 GB, free: 3.598 MB / 430.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001426/0.5481, allocations: 1.275 MB / 0.5173 GB, free: 2.207 MB / 430.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.731e-06/0.5481, allocations: 7.938 kB / 0.5173 GB, free: 2.199 MB / 430.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006974/0.555, allocations: 3.095 MB / 0.5203 GB, free: 15.04 MB / 446.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.001586/0.5566, allocations: 394.4 kB / 0.5207 GB, free: 14.65 MB / 446.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005731/0.5572, allocations: 28 kB / 0.5208 GB, free: 14.62 MB / 446.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001565/0.5588, allocations: 75.91 kB / 0.5208 GB, free: 14.55 MB / 446.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002797/0.559, allocations: 101.1 kB / 0.5209 GB, free: 14.45 MB / 446.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001255/0.5592, allocations: 36 kB / 0.521 GB, free: 14.42 MB / 446.1 MB
Notification: Performance of sorting global known variables: time 0.003254/0.5624, allocations: 1.293 MB / 0.5222 GB, free: 13.1 MB / 446.1 MB
Notification: Performance of sort global known variables: time 1.8e-07/0.5624, allocations: 0 / 0.5222 GB, free: 13.1 MB / 446.1 MB
Notification: Performance of remove unused functions: time 0.002821/0.5652, allocations: 0.5312 MB / 0.5227 GB, free: 12.57 MB / 446.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 9
 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi)
 * 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 (141):
 * Single equations (assignments): 138
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 2
 * Torn equation systems: 1
 * Mixed (continuous/discrete) equation systems: 0
Notification: Equation system details (not torn):
 * Constant Jacobian (size): 0 systems
 * Linear Jacobian (size,density): 2 systems
   {(2,100.0%), (2,100.0%)}
 * Non-linear Jacobian (size): 0 systems
 * Without analytic Jacobian (size): 0 systems
Notification: Torn system details for strict tearing set:
 * Linear torn systems (#iteration vars, #inner vars, density): 1 system
   {(1,1,100.0%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 0 systems
Notification: Performance of Backend phase and start with SimCode phase: time 0.0004736/0.5657, allocations: 170.9 kB / 0.5229 GB, free: 12.39 MB / 446.1 MB
Notification: Performance of simCode: created initialization part: time 0.005008/0.5707, allocations: 1.974 MB / 0.5248 GB, free: 10.4 MB / 446.1 MB
Notification: Performance of simCode: created event and clocks part: time 1.045e-05/0.5707, allocations: 0 / 0.5248 GB, free: 10.4 MB / 446.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.002384/0.5731, allocations: 0.9509 MB / 0.5258 GB, free: 9.438 MB / 446.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003726/0.5768, allocations: 0.5148 MB / 0.5263 GB, free: 8.93 MB / 446.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01493/0.5918, allocations: 5.706 MB / 0.5318 GB, free: 3.16 MB / 446.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003023/0.5948, allocations: 2.263 MB / 0.534 GB, free: 0.8633 MB / 446.1 MB
Notification: Performance of simCode: alias equations: time 0.002518/0.5973, allocations: 0.5092 MB / 0.5345 GB, free: 360 kB / 446.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000566/0.5979, allocations: 155.4 kB / 0.5347 GB, free: 204 kB / 446.1 MB
Notification: Performance of SimCode: time 1.062e-06/0.5979, allocations: 0 / 0.5347 GB, free: 204 kB / 446.1 MB
Notification: Performance of Templates: time 0.2642/0.8621, allocations: 28.07 MB / 0.5621 GB, free: 88.74 MB / 446.1 MB
"
[Timeout remaining time 659]
make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660]
(rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.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: 5.866909181699157]