Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.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.001392/0.001392, allocations: 106.5 kB / 21.23 MB, free: 0.6562 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.001431/0.001431, allocations: 212 kB / 24.54 MB, free: 4.016 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.461/1.461, allocations: 230.6 MB / 258.3 MB, free: 8.055 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.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_4.1.0-beta.om_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.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField") [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.002199/0.002199, allocations: 60.77 kB / 379 MB, free: 2.648 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.265/0.2672, allocations: 53.36 MB / 432.4 MB, free: 6.969 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.01083/0.278, allocations: 7.66 MB / 440.1 MB, free: 15.28 MB / 350.1 MB
Notification: Performance of NFInst.instExpressions: time 0.007127/0.2851, allocations: 3.399 MB / 443.5 MB, free: 11.87 MB / 350.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.001277/0.2864, allocations: 43.81 kB / 443.5 MB, free: 11.82 MB / 350.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0025/0.2889, allocations: 1.059 MB / 444.6 MB, free: 10.76 MB / 350.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.003648/0.2925, allocations: 1.343 MB / 445.9 MB, free: 9.414 MB / 350.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.001431/0.294, allocations: 0.534 MB / 446.4 MB, free: 8.879 MB / 350.1 MB
Notification: Performance of NFFlatten.flatten: time 0.00403/0.298, allocations: 2.628 MB / 449.1 MB, free: 6.246 MB / 350.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.002112/0.3001, allocations: 1.079 MB / 450.2 MB, free: 5.141 MB / 350.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.001788/0.3019, allocations: 0.8407 MB / 451 MB, free: 4.297 MB / 350.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.002125/0.304, allocations: 1.261 MB / 452.3 MB, free: 3.031 MB / 350.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0005168/0.3045, allocations: 148 kB / 452.4 MB, free: 2.887 MB / 350.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.00226/0.3068, allocations: 0.9204 MB / 453.3 MB, free: 1.965 MB / 350.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.001489/0.3083, allocations: 1.083 MB / 454.4 MB, free: 0.8789 MB / 350.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.002101/0.3104, allocations: 1.23 MB / 455.6 MB, free: 15.64 MB / 366.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.006109/0.3165, allocations: 4.1 MB / 459.7 MB, free: 11.53 MB / 366.1 MB
Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.3165, allocations: 0 / 459.7 MB, free: 11.53 MB / 366.1 MB
Notification: Performance of FrontEnd: time 1.293e-06/0.3165, allocations: 0 / 459.7 MB, free: 11.53 MB / 366.1 MB
Notification: Performance of Transformations before backend: time 9.551e-05/0.3166, allocations: 4 kB / 459.7 MB, free: 11.52 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: 951
 * Number of variables: 951
Notification: Performance of Generate backend data structure: time 0.006064/0.3227, allocations: 2.99 MB / 462.7 MB, free: 8.488 MB / 366.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.783e-05/0.3227, allocations: 11.97 kB / 462.7 MB, free: 8.477 MB / 366.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005617/0.3283, allocations: 1.582 MB / 464.3 MB, free: 6.891 MB / 366.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.003064/0.3314, allocations: 1.329 MB / 465.7 MB, free: 5.531 MB / 366.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001425/0.3315, allocations: 123 kB / 465.8 MB, free: 5.41 MB / 366.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005647/0.3321, allocations: 163.8 kB / 465.9 MB, free: 5.25 MB / 366.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.01222/0.3443, allocations: 6.538 MB / 472.5 MB, free: 14.23 MB / 382.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 0.0001101/0.3444, allocations: 35.7 kB / 472.5 MB, free: 14.19 MB / 382.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005598/0.345, allocations: 83.89 kB / 472.6 MB, free: 14.11 MB / 382.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002821/0.3478, allocations: 1.468 MB / 474.1 MB, free: 12.64 MB / 382.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01225/0.3601, allocations: 5.83 MB / 479.9 MB, free: 6.809 MB / 382.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03624/0.3963, allocations: 25.62 MB / 0.4937 GB, free: 12.41 MB / 414.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.005802/0.4021, allocations: 2.007 MB / 0.4956 GB, free: 10.37 MB / 414.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.001809/0.4039, allocations: 1.133 MB / 0.4967 GB, free: 9.227 MB / 414.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.008816/0.4127, allocations: 4.545 MB / 0.5012 GB, free: 4.652 MB / 414.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.777e-05/0.4128, allocations: 50.48 kB / 0.5012 GB, free: 4.594 MB / 414.1 MB
Notification: Performance of pre-optimization done (n=97): time 3.587e-06/0.4128, allocations: 0 / 0.5012 GB, free: 4.594 MB / 414.1 MB
Notification: Performance of matching and sorting (n=105): time 0.0264/0.4392, allocations: 9.68 MB / 0.5107 GB, free: 10.84 MB / 430.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001003/0.4393, allocations: 148.9 kB / 0.5108 GB, free: 10.66 MB / 430.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004652/0.4439, allocations: 2.707 MB / 0.5134 GB, free: 7.938 MB / 430.1 MB
Notification: Performance of collectPreVariables (initialization): time 0.0002058/0.4441, allocations: 41.7 kB / 0.5135 GB, free: 7.891 MB / 430.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0019/0.446, allocations: 2.132 MB / 0.5156 GB, free: 5.738 MB / 430.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0006725/0.4467, allocations: 448.6 kB / 0.516 GB, free: 5.297 MB / 430.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.001788/0.4485, allocations: 0.8378 MB / 0.5168 GB, free: 4.445 MB / 430.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001628/0.4487, allocations: 309.1 kB / 0.5171 GB, free: 4.141 MB / 430.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.00271/0.4514, allocations: 1.445 MB / 0.5185 GB, free: 2.688 MB / 430.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.005212/0.4566, allocations: 4.073 MB / 0.5225 GB, free: 13.29 MB / 446.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.008057/0.4646, allocations: 5.959 MB / 0.5283 GB, free: 6.02 MB / 446.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.515e-05/0.4647, allocations: 28.28 kB / 0.5283 GB, free: 5.992 MB / 446.1 MB
Notification: Performance of matching and sorting (n=538) (initialization): time 0.0129/0.4776, allocations: 6.035 MB / 0.5342 GB, free: 15.95 MB / 462.1 MB
Notification: Performance of prepare postOptimizeDAE: time 0.0001199/0.4777, allocations: 48.09 kB / 0.5343 GB, free: 15.9 MB / 462.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000155/0.4779, allocations: 95.94 kB / 0.5344 GB, free: 15.81 MB / 462.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.002561/0.4805, allocations: 0.8205 MB / 0.5352 GB, free: 14.98 MB / 462.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00331/0.4838, allocations: 0.9513 MB / 0.5361 GB, free: 14.03 MB / 462.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006966/0.4907, allocations: 4.552 MB / 0.5406 GB, free: 9.371 MB / 462.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003046/0.4938, allocations: 243.7 kB / 0.5408 GB, free: 9.133 MB / 462.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000669/0.4944, allocations: 260 kB / 0.541 GB, free: 8.879 MB / 462.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.002623/0.4971, allocations: 1.376 MB / 0.5424 GB, free: 7.492 MB / 462.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005615/0.4976, allocations: 238.3 kB / 0.5426 GB, free: 7.258 MB / 462.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004931/0.5026, allocations: 2.122 MB / 0.5447 GB, free: 5.125 MB / 462.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.211e-05/0.5026, allocations: 16 kB / 0.5447 GB, free: 5.109 MB / 462.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 1.4e-05/0.5026, allocations: 4 kB / 0.5447 GB, free: 5.105 MB / 462.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.77e-05/0.5026, allocations: 3.984 kB / 0.5447 GB, free: 5.102 MB / 462.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2228/0.7254, allocations: 5.032 MB / 0.5496 GB, free: 113.8 MB / 462.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.173e-05/0.7255, allocations: 0.9688 kB / 0.5496 GB, free: 113.8 MB / 462.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001005/0.7265, allocations: 157 kB / 0.5498 GB, free: 113.8 MB / 462.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.002479/0.729, allocations: 0.6743 MB / 0.5504 GB, free: 113.8 MB / 462.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001458/0.7291, allocations: 22.97 kB / 0.5504 GB, free: 113.8 MB / 462.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004813/0.7339, allocations: 4.05 MB / 0.5544 GB, free: 112.3 MB / 462.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.7339, allocations: 3.969 kB / 0.5544 GB, free: 112.3 MB / 462.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005822/0.7397, allocations: 4.061 MB / 0.5584 GB, free: 110.9 MB / 462.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0006006/0.7403, allocations: 210.5 kB / 0.5586 GB, free: 110.8 MB / 462.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002304/0.7406, allocations: 23.33 kB / 0.5586 GB, free: 110.8 MB / 462.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008707/0.7414, allocations: 70.14 kB / 0.5587 GB, free: 110.8 MB / 462.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001918/0.7416, allocations: 65.89 kB / 0.5587 GB, free: 110.8 MB / 462.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.649e-05/0.7417, allocations: 28.72 kB / 0.5587 GB, free: 110.8 MB / 462.1 MB
Notification: Performance of sorting global known variables: time 0.002071/0.7438, allocations: 1.691 MB / 0.5604 GB, free: 110.2 MB / 462.1 MB
Notification: Performance of sort global known variables: time 1e-07/0.7438, allocations: 1.469 kB / 0.5604 GB, free: 110.2 MB / 462.1 MB
Notification: Performance of remove unused functions: time 0.002818/0.7466, allocations: 0.6654 MB / 0.5611 GB, free: 110.2 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.0003933/0.747, allocations: 201.9 kB / 0.5612 GB, free: 110.1 MB / 462.1 MB
Notification: Performance of simCode: created initialization part: time 0.004042/0.751, allocations: 3.361 MB / 0.5645 GB, free: 108.9 MB / 462.1 MB
Notification: Performance of simCode: created event and clocks part: time 4.008e-06/0.751, allocations: 0 / 0.5645 GB, free: 108.9 MB / 462.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.001022/0.7521, allocations: 0.9594 MB / 0.5655 GB, free: 108.6 MB / 462.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001385/0.7534, allocations: 259.9 kB / 0.5657 GB, free: 108.4 MB / 462.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006545/0.76, allocations: 5.731 MB / 0.5713 GB, free: 104.5 MB / 462.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001536/0.7615, allocations: 2.241 MB / 0.5735 GB, free: 102.7 MB / 462.1 MB
Notification: Performance of simCode: alias equations: time 0.002253/0.7638, allocations: 1.318 MB / 0.5748 GB, free: 101.6 MB / 462.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003657/0.7641, allocations: 159.4 kB / 0.5749 GB, free: 101.4 MB / 462.1 MB
Notification: Performance of SimCode: time 9.42e-07/0.7641, allocations: 0 / 0.5749 GB, free: 101.4 MB / 462.1 MB
Notification: Performance of Templates: time 0.03725/0.8014, allocations: 24.77 MB / 0.5991 GB, free: 76.84 MB / 462.1 MB
"
[Timeout remaining time 659]
make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.makefile [Timeout 660]
(rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/UserDefinedGravityField/UserDefinedGravityField.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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: 6.100644567981362]