Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.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.001852/0.001852, allocations: 109.5 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.002219/0.002219, allocations: 187 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.421/1.421, allocations: 225.6 MB / 252.5 MB, free: 13.01 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.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField")
translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001556/0.001556, allocations: 47.92 kB / 370.9 MB, free: 9.34 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2451/0.2466, allocations: 52.19 MB / 423.1 MB, free: 14.66 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.009938/0.2566, allocations: 7.692 MB / 430.8 MB, free: 6.938 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.00662/0.2632, allocations: 3.38 MB / 434.2 MB, free: 3.547 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0007778/0.264, allocations: 43.81 kB / 434.2 MB, free: 3.504 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.002245/0.2662, allocations: 1.039 MB / 435.3 MB, free: 2.461 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.00318/0.2694, allocations: 1.382 MB / 436.7 MB, free: 1.074 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.001272/0.2707, allocations: 0.5495 MB / 437.2 MB, free: 0.5234 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.003645/0.2743, allocations: 2.589 MB / 439.8 MB, free: 13.93 MB / 350.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.001665/0.276, allocations: 1.085 MB / 440.9 MB, free: 12.82 MB / 350.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.001302/0.2773, allocations: 0.8446 MB / 441.7 MB, free: 11.97 MB / 350.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.001708/0.279, allocations: 1.273 MB / 443 MB, free: 10.7 MB / 350.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0003054/0.2793, allocations: 148 kB / 443.1 MB, free: 10.55 MB / 350.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.001872/0.2812, allocations: 0.9438 MB / 444.1 MB, free: 9.605 MB / 350.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.001147/0.2823, allocations: 1.09 MB / 445.2 MB, free: 8.512 MB / 350.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.001325/0.2836, allocations: 1.254 MB / 446.4 MB, free: 7.25 MB / 350.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.005401/0.289, allocations: 4.133 MB / 450.6 MB, free: 3.102 MB / 350.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.289, allocations: 3.938 kB / 450.6 MB, free: 3.098 MB / 350.1 MB
Notification: Performance of FrontEnd: time 2.154e-06/0.289, allocations: 0 / 450.6 MB, free: 3.098 MB / 350.1 MB
Notification: Performance of Transformations before backend: time 5.463e-05/0.2891, allocations: 3.938 kB / 450.6 MB, free: 3.094 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: 951
 * Number of variables: 951
Notification: Performance of Generate backend data structure: time 0.00566/0.2947, allocations: 2.997 MB / 453.6 MB, free: 52 kB / 350.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.594e-05/0.2948, allocations: 8.922 kB / 453.6 MB, free: 44 kB / 350.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005739/0.3005, allocations: 1.592 MB / 455.2 MB, free: 14.45 MB / 366.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.002923/0.3035, allocations: 1.354 MB / 456.5 MB, free: 13.06 MB / 366.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001196/0.3036, allocations: 123 kB / 456.6 MB, free: 12.94 MB / 366.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003477/0.3039, allocations: 163.9 kB / 456.8 MB, free: 12.78 MB / 366.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.01027/0.3142, allocations: 6.534 MB / 463.3 MB, free: 5.762 MB / 366.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 6.73e-05/0.3143, allocations: 31.77 kB / 463.4 MB, free: 5.73 MB / 366.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002662/0.3145, allocations: 83.89 kB / 463.5 MB, free: 5.648 MB / 366.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002819/0.3173, allocations: 1.468 MB / 464.9 MB, free: 4.184 MB / 366.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01094/0.3283, allocations: 5.834 MB / 470.8 MB, free: 14.34 MB / 382.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03246/0.3607, allocations: 25.61 MB / 496.4 MB, free: 3.961 MB / 398.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.005761/0.3665, allocations: 2.02 MB / 498.4 MB, free: 1.902 MB / 398.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.001654/0.3682, allocations: 1.141 MB / 499.5 MB, free: 0.75 MB / 398.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.008391/0.3765, allocations: 4.548 MB / 0.4923 GB, free: 12.18 MB / 414.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.887e-05/0.3766, allocations: 46.56 kB / 0.4923 GB, free: 12.12 MB / 414.1 MB
Notification: Performance of pre-optimization done (n=97): time 3.287e-06/0.3766, allocations: 3.938 kB / 0.4923 GB, free: 12.12 MB / 414.1 MB
Notification: Performance of matching and sorting (n=105): time 0.02605/0.4026, allocations: 9.695 MB / 0.5018 GB, free: 2.344 MB / 414.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 9.25e-05/0.4027, allocations: 144.9 kB / 0.5019 GB, free: 2.172 MB / 414.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004435/0.4072, allocations: 2.707 MB / 0.5046 GB, free: 15.45 MB / 430.1 MB
Notification: Performance of collectPreVariables (initialization): time 0.0001277/0.4073, allocations: 45.64 kB / 0.5046 GB, free: 15.39 MB / 430.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.001796/0.4091, allocations: 2.144 MB / 0.5067 GB, free: 13.23 MB / 430.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0005079/0.4096, allocations: 444.7 kB / 0.5071 GB, free: 12.79 MB / 430.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.001314/0.4109, allocations: 0.8378 MB / 0.5079 GB, free: 11.94 MB / 430.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001466/0.4111, allocations: 301.1 kB / 0.5082 GB, free: 11.64 MB / 430.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.002507/0.4136, allocations: 1.452 MB / 0.5096 GB, free: 10.18 MB / 430.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.004737/0.4183, allocations: 4.073 MB / 0.5136 GB, free: 4.781 MB / 430.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.007845/0.4261, allocations: 5.954 MB / 0.5194 GB, free: 13.52 MB / 446.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.127e-05/0.4262, allocations: 28 kB / 0.5195 GB, free: 13.49 MB / 446.1 MB
Notification: Performance of matching and sorting (n=538) (initialization): time 0.01152/0.4378, allocations: 6.041 MB / 0.5254 GB, free: 7.445 MB / 446.1 MB
Notification: Performance of prepare postOptimizeDAE: time 8.126e-05/0.4378, allocations: 44 kB / 0.5254 GB, free: 7.402 MB / 446.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001307/0.438, allocations: 95.98 kB / 0.5255 GB, free: 7.309 MB / 446.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.002568/0.4405, allocations: 0.8165 MB / 0.5263 GB, free: 6.488 MB / 446.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002961/0.4435, allocations: 0.9513 MB / 0.5272 GB, free: 5.535 MB / 446.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006578/0.4501, allocations: 4.549 MB / 0.5317 GB, free: 0.875 MB / 446.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002754/0.4528, allocations: 235.7 kB / 0.5319 GB, free: 0.6445 MB / 446.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004315/0.4533, allocations: 263.9 kB / 0.5321 GB, free: 396 kB / 446.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 425
 * Number of states: 0 ()
 * Number of discrete variables: 21 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1])
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (502):
 * Single equations (assignments): 498
 * Array equations: 3
 * 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
   {(2,11,100.0%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 0 systems
Notification: Performance of prepare postOptimizeDAE: time 0.002238/0.4555, allocations: 1.382 MB / 0.5335 GB, free: 15 MB / 462.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004945/0.456, allocations: 242.4 kB / 0.5337 GB, free: 14.76 MB / 462.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004845/0.4608, allocations: 2.117 MB / 0.5358 GB, free: 12.63 MB / 462.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.801e-05/0.4609, allocations: 12 kB / 0.5358 GB, free: 12.62 MB / 462.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 9.528e-06/0.4609, allocations: 8 kB / 0.5358 GB, free: 12.61 MB / 462.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.197e-05/0.4609, allocations: 3.984 kB / 0.5358 GB, free: 12.61 MB / 462.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0108/0.4717, allocations: 5.037 MB / 0.5407 GB, free: 7.504 MB / 462.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.078e-05/0.4717, allocations: 3.938 kB / 0.5407 GB, free: 7.5 MB / 462.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000821/0.4725, allocations: 155.8 kB / 0.5409 GB, free: 7.348 MB / 462.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.002374/0.4749, allocations: 0.6795 MB / 0.5415 GB, free: 6.664 MB / 462.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001019/0.475, allocations: 20.28 kB / 0.5416 GB, free: 6.645 MB / 462.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005859/0.4809, allocations: 4.045 MB / 0.5455 GB, free: 2.477 MB / 462.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/0.4809, allocations: 4 kB / 0.5455 GB, free: 2.473 MB / 462.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2081/0.689, allocations: 4.053 MB / 0.5495 GB, free: 121.3 MB / 462.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0006676/0.6897, allocations: 224.3 kB / 0.5497 GB, free: 121.3 MB / 462.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002638/0.6899, allocations: 11.56 kB / 0.5497 GB, free: 121.3 MB / 462.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001002/0.6909, allocations: 73.23 kB / 0.5498 GB, free: 121.3 MB / 462.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001899/0.6911, allocations: 64.09 kB / 0.5498 GB, free: 121.3 MB / 462.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.106e-05/0.6912, allocations: 31.09 kB / 0.5499 GB, free: 121.3 MB / 462.1 MB
Notification: Performance of sorting global known variables: time 0.002391/0.6936, allocations: 1.694 MB / 0.5515 GB, free: 120.9 MB / 462.1 MB
Notification: Performance of sort global known variables: time 1e-07/0.6936, allocations: 1.219 kB / 0.5515 GB, free: 120.9 MB / 462.1 MB
Notification: Performance of remove unused functions: time 0.00274/0.6963, allocations: 0.6768 MB / 0.5522 GB, free: 120.8 MB / 462.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 6
 * Number of states: 2 (rev.phi,rev.w)
 * 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 (74):
 * Single equations (assignments): 70
 * Array equations: 3
 * 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
   {(1,9,100.0%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 0 systems
Notification: Performance of Backend phase and start with SimCode phase: time 0.0003735/0.6967, allocations: 199 kB / 0.5524 GB, free: 120.7 MB / 462.1 MB
Notification: Performance of simCode: created initialization part: time 0.004047/0.7008, allocations: 3.364 MB / 0.5556 GB, free: 119.6 MB / 462.1 MB
Notification: Performance of simCode: created event and clocks part: time 3.928e-06/0.7008, allocations: 0 / 0.5556 GB, free: 119.6 MB / 462.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.001034/0.7018, allocations: 0.9638 MB / 0.5566 GB, free: 119.3 MB / 462.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00145/0.7032, allocations: 252.2 kB / 0.5568 GB, free: 119.1 MB / 462.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007155/0.7104, allocations: 5.744 MB / 0.5624 GB, free: 116.7 MB / 462.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00171/0.7121, allocations: 2.237 MB / 0.5646 GB, free: 115.7 MB / 462.1 MB
Notification: Performance of simCode: alias equations: time 0.002607/0.7147, allocations: 1.32 MB / 0.5659 GB, free: 114.9 MB / 462.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003773/0.7151, allocations: 162.7 kB / 0.5661 GB, free: 114.7 MB / 462.1 MB
Notification: Performance of SimCode: time 1.032e-06/0.7151, allocations: 0 / 0.5661 GB, free: 114.7 MB / 462.1 MB
Notification: Performance of Templates: time 0.03798/0.7531, allocations: 24.8 MB / 0.5903 GB, free: 90.63 MB / 462.1 MB
"
[Timeout remaining time 659]
make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.makefile [Timeout 660]
(rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/UserDefinedGravityField/UserDefinedGravityField.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.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.915899835526943]