Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.001345/0.001345, 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.001452/0.001452, allocations: 185.3 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.442/1.442, allocations: 207.6 MB / 235.2 MB, free: 10.02 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.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.w|speedSensor.flange.phi|smpm.is.1.|smpm.is.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource")
translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.w|speedSensor.flange.phi|smpm.is.1.|smpm.is.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") [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.001819/0.001819, allocations: 55.91 kB / 347.7 MB, free: 9.539 MB / 286.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3146/0.3165, allocations: 49.16 MB / 396.8 MB, free: 9.516 MB / 318.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.02083/0.3373, allocations: 15.24 MB / 412.1 MB, free: 14.65 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.01668/0.354, allocations: 5.148 MB / 417.2 MB, free: 10.87 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.00492/0.3589, allocations: 111.3 kB / 417.3 MB, free: 10.82 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.004881/0.3638, allocations: 1.134 MB / 418.5 MB, free: 9.977 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.007255/0.371, allocations: 1.313 MB / 419.8 MB, free: 8.891 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.00301/0.374, allocations: 0.9151 MB / 420.7 MB, free: 8.141 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.006089/0.3801, allocations: 3.624 MB / 424.3 MB, free: 5.902 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.003435/0.3836, allocations: 1.874 MB / 426.2 MB, free: 4.652 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.004667/0.3882, allocations: 1.775 MB / 428 MB, free: 3.602 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.006643/0.3949, allocations: 2.081 MB / 430 MB, free: 2.039 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.002055/0.3969, allocations: 480 kB / 430.5 MB, free: 1.57 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.003609/0.4005, allocations: 0.6794 MB / 431.2 MB, free: 0.8906 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.001825/0.4024, allocations: 1.161 MB / 432.4 MB, free: 15.72 MB / 350.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.004604/0.407, allocations: 2.038 MB / 434.4 MB, free: 13.68 MB / 350.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0103/0.4173, allocations: 6.277 MB / 440.7 MB, free: 7.387 MB / 350.1 MB
Notification: Performance of FrontEnd - DAE generated: time 7.535e-06/0.4173, allocations: 0 / 440.7 MB, free: 7.387 MB / 350.1 MB
Notification: Performance of FrontEnd: time 1.913e-06/0.4173, allocations: 0 / 440.7 MB, free: 7.387 MB / 350.1 MB
Notification: Performance of Transformations before backend: time 0.0002086/0.4175, allocations: 4 kB / 440.7 MB, free: 7.383 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: 826
 * Number of variables: 826
Notification: Performance of Generate backend data structure: time 0.01307/0.4306, allocations: 4.252 MB / 444.9 MB, free: 3.07 MB / 350.1 MB
Notification: Performance of prepare preOptimizeDAE: time 5.39e-05/0.4306, allocations: 8.031 kB / 444.9 MB, free: 3.062 MB / 350.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003215/0.4338, allocations: 0.6388 MB / 445.6 MB, free: 2.422 MB / 350.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.004463/0.4383, allocations: 2.077 MB / 447.7 MB, free: 304 kB / 350.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002166/0.4385, allocations: 238.7 kB / 447.9 MB, free: 64 kB / 350.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005604/0.4391, allocations: 316.1 kB / 448.2 MB, free: 15.75 MB / 366.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.009814/0.4489, allocations: 4.043 MB / 452.2 MB, free: 11.65 MB / 366.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 9.784e-05/0.449, allocations: 3.938 kB / 452.2 MB, free: 11.64 MB / 366.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003851/0.4494, allocations: 128 kB / 452.4 MB, free: 11.52 MB / 366.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002082/0.4496, allocations: 142.2 kB / 452.5 MB, free: 11.38 MB / 366.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007867/0.4574, allocations: 3.382 MB / 455.9 MB, free: 7.988 MB / 366.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02709/0.4845, allocations: 12.84 MB / 468.7 MB, free: 10.74 MB / 382.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.004118/0.4886, allocations: 1.692 MB / 470.4 MB, free: 9.082 MB / 382.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.001757/0.4904, allocations: 0.9026 MB / 471.3 MB, free: 8.18 MB / 382.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.006159/0.4966, allocations: 2.4 MB / 473.7 MB, free: 5.758 MB / 382.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.197e-05/0.4966, allocations: 47.56 kB / 473.8 MB, free: 5.703 MB / 382.1 MB
Notification: Performance of pre-optimization done (n=108): time 3.987e-06/0.4966, allocations: 4 kB / 473.8 MB, free: 5.699 MB / 382.1 MB
Notification: Performance of matching and sorting (n=142): time 0.01406/0.5107, allocations: 5.812 MB / 479.6 MB, free: 15.84 MB / 398.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 6.294e-05/0.5107, allocations: 68.72 kB / 479.6 MB, free: 15.76 MB / 398.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003469/0.5142, allocations: 1.889 MB / 481.5 MB, free: 13.83 MB / 398.1 MB
Notification: Performance of collectPreVariables (initialization): time 0.0002389/0.5145, allocations: 49.7 kB / 481.6 MB, free: 13.77 MB / 398.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.00146/0.5159, allocations: 1.544 MB / 483.1 MB, free: 12.21 MB / 398.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0006648/0.5166, allocations: 0.4997 MB / 483.6 MB, free: 11.71 MB / 398.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006495/0.5172, allocations: 343.4 kB / 484 MB, free: 11.37 MB / 398.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001455/0.5174, allocations: 301.1 kB / 484.3 MB, free: 11.07 MB / 398.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.001415/0.5188, allocations: 0.7691 MB / 485 MB, free: 10.3 MB / 398.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.001881/0.5207, allocations: 1.375 MB / 486.4 MB, free: 8.656 MB / 398.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.003424/0.5241, allocations: 2.32 MB / 488.7 MB, free: 6.07 MB / 398.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.326e-05/0.5241, allocations: 4 kB / 488.7 MB, free: 6.066 MB / 398.1 MB
Notification: Performance of matching and sorting (n=235) (initialization): time 0.004878/0.529, allocations: 2.482 MB / 491.2 MB, free: 3.566 MB / 398.1 MB
Notification: Performance of prepare postOptimizeDAE: time 3.848e-05/0.529, allocations: 12 kB / 491.2 MB, free: 3.555 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.255e-05/0.5291, allocations: 20 kB / 491.2 MB, free: 3.535 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0004255/0.5295, allocations: 122.9 kB / 491.4 MB, free: 3.406 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001896/0.5314, allocations: 499.2 kB / 491.8 MB, free: 2.918 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001317/0.5327, allocations: 1.302 MB / 493.1 MB, free: 1.496 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001838/0.5345, allocations: 112 kB / 493.3 MB, free: 1.387 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001824/0.5347, allocations: 87.98 kB / 493.3 MB, free: 1.301 MB / 398.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.002132/0.5368, allocations: 0.9851 MB / 494.3 MB, free: 312 kB / 398.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005538/0.5374, allocations: 214.6 kB / 494.5 MB, free: 96 kB / 398.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003847/0.5413, allocations: 1.958 MB / 496.5 MB, free: 14.12 MB / 414.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.706e-05/0.5413, allocations: 16 kB / 496.5 MB, free: 14.1 MB / 414.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.5413, allocations: 3.938 kB / 496.5 MB, free: 14.1 MB / 414.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.492e-05/0.5413, allocations: 7.969 kB / 496.5 MB, free: 14.09 MB / 414.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009391/0.5507, allocations: 4.955 MB / 0.4897 GB, free: 9.035 MB / 414.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.255e-06/0.5507, allocations: 0 / 0.4897 GB, free: 9.035 MB / 414.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001529/0.5522, allocations: 319.8 kB / 0.49 GB, free: 8.723 MB / 414.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0003765/0.5526, allocations: 98.52 kB / 0.4901 GB, free: 8.617 MB / 414.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001102/0.5527, allocations: 31.98 kB / 0.4902 GB, free: 8.586 MB / 414.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001152/0.5539, allocations: 1.275 MB / 0.4914 GB, free: 7.199 MB / 414.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/0.5539, allocations: 3.938 kB / 0.4914 GB, free: 7.195 MB / 414.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005264/0.5591, allocations: 3.091 MB / 0.4944 GB, free: 4.043 MB / 414.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.001293/0.5604, allocations: 386.5 kB / 0.4948 GB, free: 3.664 MB / 414.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003203/0.5607, allocations: 27.94 kB / 0.4948 GB, free: 3.637 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001029/0.5618, allocations: 79.91 kB / 0.4949 GB, free: 3.559 MB / 414.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001883/0.562, allocations: 101.1 kB / 0.495 GB, free: 3.461 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.696e-05/0.562, allocations: 39.98 kB / 0.495 GB, free: 3.422 MB / 414.1 MB
Notification: Performance of sorting global known variables: time 0.002185/0.5642, allocations: 1.285 MB / 0.4963 GB, free: 2.113 MB / 414.1 MB
Notification: Performance of sort global known variables: time 9e-08/0.5642, allocations: 0 / 0.4963 GB, free: 2.113 MB / 414.1 MB
Notification: Performance of remove unused functions: time 0.001965/0.5662, allocations: 0.5351 MB / 0.4968 GB, free: 1.578 MB / 414.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.0004117/0.5666, allocations: 163 kB / 0.497 GB, free: 1.41 MB / 414.1 MB
Notification: Performance of simCode: created initialization part: time 0.004288/0.5709, allocations: 1.979 MB / 0.4989 GB, free: 15.41 MB / 430.1 MB
Notification: Performance of simCode: created event and clocks part: time 7.945e-06/0.5709, allocations: 0 / 0.4989 GB, free: 15.41 MB / 430.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.001772/0.5727, allocations: 0.9536 MB / 0.4998 GB, free: 14.45 MB / 430.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003092/0.5758, allocations: 0.5098 MB / 0.5003 GB, free: 13.93 MB / 430.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01139/0.5872, allocations: 5.702 MB / 0.5059 GB, free: 8.164 MB / 430.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002526/0.5897, allocations: 2.255 MB / 0.5081 GB, free: 5.871 MB / 430.1 MB
Notification: Performance of simCode: alias equations: time 0.002014/0.5917, allocations: 0.517 MB / 0.5086 GB, free: 5.352 MB / 430.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004933/0.5922, allocations: 151.4 kB / 0.5087 GB, free: 5.203 MB / 430.1 MB
Notification: Performance of SimCode: time 2.324e-06/0.5922, allocations: 0 / 0.5087 GB, free: 5.203 MB / 430.1 MB
Notification: Performance of Templates: time 0.06173/0.6539, allocations: 28.04 MB / 0.5361 GB, free: 9.105 MB / 462.1 MB
"
[Timeout remaining time 659]
make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.makefile [Timeout 660]
(rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.792333398014307]