Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance.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.001373/0.001373, 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.001648/0.001648, allocations: 213.2 kB / 24.54 MB, free: 4.016 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.54/1.54, allocations: 230.3 MB / 258 MB, free: 8.234 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2439/0.2439, allocations: 46.94 MB / 361.4 MB, free: 4.406 MB / 286.1 MB
"
[Timeout remaining time 179]
Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo)
Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance")
translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance") [Timeout 660]
"Warning: Requested package Modelica 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.002722/0.002722, allocations: 83.86 kB / 0.4972 GB, free: 7.52 MB / 366.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3815/0.3842, allocations: 66.04 MB / 0.5616 GB, free: 4.523 MB / 398.1 MB
Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01226/0.3965, allocations: 9.006 MB / 0.5704 GB, free: 11.48 MB / 414.1 MB
Notification: Performance of NFInst.instExpressions: time 0.008226/0.4047, allocations: 3.586 MB / 0.5739 GB, free: 7.883 MB / 414.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.001693/0.4064, allocations: 55.75 kB / 0.574 GB, free: 7.828 MB / 414.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.003684/0.4101, allocations: 1.701 MB / 0.5757 GB, free: 6.121 MB / 414.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.004536/0.4146, allocations: 1.576 MB / 0.5772 GB, free: 4.539 MB / 414.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.001507/0.4161, allocations: 0.5691 MB / 0.5778 GB, free: 3.969 MB / 414.1 MB
Notification: Performance of NFFlatten.flatten: time 0.00568/0.4218, allocations: 3.568 MB / 0.5812 GB, free: 404 kB / 414.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.002415/0.4242, allocations: 1.637 MB / 0.5828 GB, free: 14.7 MB / 430.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.001964/0.4262, allocations: 1.117 MB / 0.5839 GB, free: 13.58 MB / 430.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.002691/0.4288, allocations: 1.67 MB / 0.5856 GB, free: 11.91 MB / 430.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.000661/0.4295, allocations: 220 kB / 0.5858 GB, free: 11.69 MB / 430.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.002314/0.4318, allocations: 1.131 MB / 0.5869 GB, free: 10.56 MB / 430.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.001719/0.4335, allocations: 1.457 MB / 0.5883 GB, free: 9.098 MB / 430.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.002122/0.4357, allocations: 1.607 MB / 0.5899 GB, free: 7.48 MB / 430.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.007564/0.4432, allocations: 5.408 MB / 0.5951 GB, free: 2.051 MB / 430.1 MB
Notification: Performance of FrontEnd - DAE generated: time 7.273e-06/0.4432, allocations: 0 / 0.5951 GB, free: 2.051 MB / 430.1 MB
Notification: Performance of FrontEnd: time 2.515e-06/0.4432, allocations: 0 / 0.5951 GB, free: 2.051 MB / 430.1 MB
Notification: Performance of Transformations before backend: time 0.0001787/0.4434, allocations: 4 kB / 0.5952 GB, free: 2.047 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: 1141
 * Number of variables: 1141
Notification: Performance of Generate backend data structure: time 0.008615/0.452, allocations: 3.681 MB / 0.5987 GB, free: 14.31 MB / 446.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.687e-05/0.4521, allocations: 8.031 kB / 0.5988 GB, free: 14.3 MB / 446.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01617/0.4682, allocations: 2.347 MB / 0.601 GB, free: 11.95 MB / 446.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.005922/0.4742, allocations: 2.123 MB / 0.6031 GB, free: 9.789 MB / 446.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001686/0.4743, allocations: 160.5 kB / 0.6033 GB, free: 9.629 MB / 446.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007027/0.475, allocations: 224 kB / 0.6035 GB, free: 9.41 MB / 446.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.01277/0.4878, allocations: 7.398 MB / 0.6107 GB, free: 1.387 MB / 446.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 9.39e-05/0.4879, allocations: 39.69 kB / 0.6107 GB, free: 1.348 MB / 446.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003229/0.4882, allocations: 103.9 kB / 0.6108 GB, free: 1.246 MB / 446.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0028/0.491, allocations: 1.542 MB / 0.6124 GB, free: 15.7 MB / 462.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0126/0.5036, allocations: 6.322 MB / 0.6185 GB, free: 9.359 MB / 462.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04059/0.5442, allocations: 30.09 MB / 0.6479 GB, free: 10.34 MB / 494.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.004945/0.5492, allocations: 1.702 MB / 0.6496 GB, free: 8.605 MB / 494.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.001721/0.5509, allocations: 1.051 MB / 0.6506 GB, free: 7.543 MB / 494.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.000327/0.5512, allocations: 92.22 kB / 0.6507 GB, free: 7.453 MB / 494.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.827e-05/0.5513, allocations: 51 kB / 0.6507 GB, free: 7.395 MB / 494.1 MB
Notification: Performance of pre-optimization done (n=108): time 3.646e-06/0.5513, allocations: 0 / 0.6507 GB, free: 7.395 MB / 494.1 MB
Notification: Performance of matching and sorting (n=132): time 0.03846/0.5897, allocations: 11.76 MB / 0.6622 GB, free: 11.56 MB / 0.4981 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002201/0.59, allocations: 200.5 kB / 0.6624 GB, free: 11.32 MB / 0.4981 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006717/0.5967, allocations: 3.608 MB / 0.6659 GB, free: 7.711 MB / 0.4981 GB
Notification: Performance of collectPreVariables (initialization): time 0.0003615/0.597, allocations: 49.69 kB / 0.666 GB, free: 7.656 MB / 0.4981 GB
Notification: Performance of collectInitialEqns (initialization): time 0.002703/0.5997, allocations: 2.647 MB / 0.6686 GB, free: 4.984 MB / 0.4981 GB
Notification: Performance of collectInitialBindings (initialization): time 0.0007461/0.6005, allocations: 0.5467 MB / 0.6691 GB, free: 4.434 MB / 0.4981 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.001537/0.602, allocations: 1.095 MB / 0.6702 GB, free: 3.328 MB / 0.4981 GB
Notification: Performance of setup shared object (initialization): time 0.0001581/0.6022, allocations: 305.1 kB / 0.6705 GB, free: 3.027 MB / 0.4981 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.002724/0.6049, allocations: 1.732 MB / 0.6722 GB, free: 1.289 MB / 0.4981 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.005838/0.6107, allocations: 5.088 MB / 0.6771 GB, free: 10.52 MB / 0.5137 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.01009/0.6208, allocations: 7.364 MB / 0.6843 GB, free: 1.488 MB / 0.5137 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.986e-05/0.6209, allocations: 36 kB / 0.6844 GB, free: 1.453 MB / 0.5137 GB
Notification: Performance of matching and sorting (n=694) (initialization): time 0.01419/0.6351, allocations: 7.066 MB / 0.6913 GB, free: 10.38 MB / 0.5294 GB
Notification: Performance of prepare postOptimizeDAE: time 9.298e-05/0.6352, allocations: 59.94 kB / 0.6913 GB, free: 10.32 MB / 0.5294 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001421/0.6353, allocations: 116 kB / 0.6914 GB, free: 10.2 MB / 0.5294 GB
Notification: Performance of postOpt tearingSystem (initialization): time 0.001717/0.6371, allocations: 0.6452 MB / 0.6921 GB, free: 9.555 MB / 0.5294 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003938/0.641, allocations: 1.209 MB / 0.6932 GB, free: 8.344 MB / 0.5294 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005301/0.6463, allocations: 3.967 MB / 0.6971 GB, free: 4.262 MB / 0.5294 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004013/0.6503, allocations: 299.6 kB / 0.6974 GB, free: 3.969 MB / 0.5294 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006393/0.651, allocations: 328 kB / 0.6977 GB, free: 3.648 MB / 0.5294 GB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 539
 * Number of states: 0 ()
 * Number of discrete variables: 29 (Distance1.arrow.twoHeadedArrow,Distance1.arrow.headAtOrigin,BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Distance1.arrowColor[3],Distance1.arrowColor[2],Distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[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])
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (659):
 * Single equations (assignments): 655
 * 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,11,100.0%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 0 systems
Notification: Performance of prepare postOptimizeDAE: time 0.002797/0.6538, allocations: 1.705 MB / 0.6994 GB, free: 1.934 MB / 0.5294 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006501/0.6544, allocations: 305.9 kB / 0.6997 GB, free: 1.633 MB / 0.5294 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004209/0.6586, allocations: 2.084 MB / 0.7017 GB, free: 15.53 MB / 0.545 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.773e-05/0.6586, allocations: 16 kB / 0.7017 GB, free: 15.52 MB / 0.545 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 9.788e-06/0.6587, allocations: 4 kB / 0.7017 GB, free: 15.51 MB / 0.545 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.179e-05/0.6587, allocations: 3.984 kB / 0.7017 GB, free: 15.51 MB / 0.545 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01024/0.6689, allocations: 5.581 MB / 0.7072 GB, free: 9.844 MB / 0.545 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.059e-05/0.6689, allocations: 3.984 kB / 0.7072 GB, free: 9.84 MB / 0.545 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000993/0.6699, allocations: 195.8 kB / 0.7074 GB, free: 9.648 MB / 0.545 GB
Notification: Performance of postOpt tearingSystem (simulation): time 0.001412/0.6713, allocations: 492.2 kB / 0.7078 GB, free: 9.164 MB / 0.545 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.207e-05/0.6714, allocations: 20 kB / 0.7078 GB, free: 9.145 MB / 0.545 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004475/0.6759, allocations: 3.338 MB / 0.7111 GB, free: 5.695 MB / 0.545 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.49e-06/0.6759, allocations: 3.984 kB / 0.7111 GB, free: 5.691 MB / 0.545 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006919/0.6828, allocations: 4.181 MB / 0.7152 GB, free: 1.473 MB / 0.545 GB
Notification: Performance of postOpt removeConstants (simulation): time 0.0009782/0.6838, allocations: 305.8 kB / 0.7155 GB, free: 1.172 MB / 0.545 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003239/0.6841, allocations: 23.94 kB / 0.7155 GB, free: 1.148 MB / 0.545 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001117/0.6852, allocations: 71.91 kB / 0.7156 GB, free: 1.078 MB / 0.545 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001917/0.6854, allocations: 68.52 kB / 0.7156 GB, free: 1.012 MB / 0.545 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001156/0.6855, allocations: 39.98 kB / 0.7157 GB, free: 0.9727 MB / 0.545 GB
Notification: Performance of sorting global known variables: time 0.003579/0.6891, allocations: 2.248 MB / 0.7179 GB, free: 14.73 MB / 0.5606 GB
Notification: Performance of sort global known variables: time 9e-08/0.6891, allocations: 0 / 0.7179 GB, free: 14.73 MB / 0.5606 GB
Notification: Performance of remove unused functions: time 0.004229/0.6933, allocations: 0.7929 MB / 0.7187 GB, free: 13.94 MB / 0.5606 GB
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 (102):
 * Single equations (assignments): 98
 * 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,8,100.0%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 0 systems
Notification: Performance of Backend phase and start with SimCode phase: time 0.0004349/0.6938, allocations: 146.9 kB / 0.7188 GB, free: 13.79 MB / 0.5606 GB
Notification: Performance of simCode: created initialization part: time 0.007123/0.7009, allocations: 3.968 MB / 0.7227 GB, free: 9.836 MB / 0.5606 GB
Notification: Performance of simCode: created event and clocks part: time 5.059e-06/0.7009, allocations: 5.125 kB / 0.7227 GB, free: 9.832 MB / 0.5606 GB
Notification: Performance of simCode: created simulation system equations: time 0.001684/0.7026, allocations: 1.059 MB / 0.7237 GB, free: 8.758 MB / 0.5606 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002294/0.7049, allocations: 352.6 kB / 0.724 GB, free: 8.41 MB / 0.5606 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01297/0.7179, allocations: 7.238 MB / 0.7311 GB, free: 1.121 MB / 0.5606 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3219/1.04, allocations: 2.632 MB / 0.7337 GB, free: 153.8 MB / 0.5606 GB
Notification: Performance of simCode: alias equations: time 0.004808/1.045, allocations: 1.69 MB / 0.7353 GB, free: 153.8 MB / 0.5606 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000735/1.045, allocations: 206 kB / 0.7355 GB, free: 153.8 MB / 0.5606 GB
Notification: Performance of SimCode: time 2.154e-06/1.045, allocations: 0 / 0.7355 GB, free: 153.8 MB / 0.5606 GB
Notification: Performance of Templates: time 0.05304/1.098, allocations: 29.59 MB / 0.7644 GB, free: 133.1 MB / 0.5606 GB
"
[Timeout remaining time 659]
make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance.makefile [Timeout 660]
(rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 480]
diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance.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.201617993414402]