Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.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.001615/0.001615, allocations: 102 kB / 21.22 MB, free: 0.6562 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.001805/0.001805, allocations: 183.9 kB / 24.51 MB, free: 4.016 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.532/1.532, allocations: 225.6 MB / 253.3 MB, free: 13.05 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2368/0.2368, allocations: 44.9 MB / 353.5 MB, free: 11.83 MB / 286.1 MB
"
[Timeout remaining time 179]
Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo)
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(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2")
translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002039/0.002039, allocations: 67.88 kB / 497.7 MB, free: 1.023 MB / 350.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.4102/0.4123, allocations: 64.29 MB / 0.5488 GB, free: 13.14 MB / 398.1 MB
Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01353/0.4258, allocations: 9.331 MB / 0.5579 GB, free: 5.852 MB / 398.1 MB
Notification: Performance of NFInst.instExpressions: time 0.0107/0.4365, allocations: 3.632 MB / 0.5615 GB, free: 2.438 MB / 398.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.002493/0.439, allocations: 59.75 kB / 0.5615 GB, free: 2.379 MB / 398.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.00447/0.4435, allocations: 1.97 MB / 0.5634 GB, free: 412 kB / 398.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.005546/0.449, allocations: 1.697 MB / 0.5651 GB, free: 14.7 MB / 414.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.001675/0.4507, allocations: 0.5692 MB / 0.5657 GB, free: 14.13 MB / 414.1 MB
Notification: Performance of NFFlatten.flatten: time 0.006321/0.457, allocations: 3.709 MB / 0.5693 GB, free: 10.41 MB / 414.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.002813/0.4598, allocations: 1.835 MB / 0.5711 GB, free: 8.527 MB / 414.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.002361/0.4622, allocations: 1.222 MB / 0.5723 GB, free: 7.301 MB / 414.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.004522/0.4667, allocations: 1.822 MB / 0.574 GB, free: 5.473 MB / 414.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.001376/0.4681, allocations: 248 kB / 0.5743 GB, free: 5.23 MB / 414.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.003425/0.4715, allocations: 1.178 MB / 0.5754 GB, free: 4.051 MB / 414.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.002285/0.4738, allocations: 1.624 MB / 0.577 GB, free: 2.422 MB / 414.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.002411/0.4762, allocations: 1.794 MB / 0.5788 GB, free: 0.6172 MB / 414.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.008061/0.4843, allocations: 5.968 MB / 0.5846 GB, free: 10.62 MB / 430.1 MB
Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.4843, allocations: 0 / 0.5846 GB, free: 10.62 MB / 430.1 MB
Notification: Performance of FrontEnd: time 2.164e-06/0.4843, allocations: 0 / 0.5846 GB, free: 10.62 MB / 430.1 MB
Notification: Performance of Transformations before backend: time 0.0001458/0.4844, allocations: 0 / 0.5846 GB, free: 10.62 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: 1269
 * Number of variables: 1269
Notification: Performance of Generate backend data structure: time 0.009189/0.4936, allocations: 3.999 MB / 0.5885 GB, free: 6.57 MB / 430.1 MB
Notification: Performance of prepare preOptimizeDAE: time 5.466e-05/0.4937, allocations: 12.92 kB / 0.5885 GB, free: 6.559 MB / 430.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01729/0.5109, allocations: 2.428 MB / 0.5909 GB, free: 4.125 MB / 430.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.006379/0.5173, allocations: 2.259 MB / 0.5931 GB, free: 1.828 MB / 430.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001781/0.5175, allocations: 177 kB / 0.5933 GB, free: 1.652 MB / 430.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008396/0.5183, allocations: 248 kB / 0.5935 GB, free: 1.41 MB / 430.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.01441/0.5328, allocations: 8.157 MB / 0.6015 GB, free: 8.613 MB / 446.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 0.0001033/0.5329, allocations: 39.64 kB / 0.6015 GB, free: 8.574 MB / 446.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003569/0.5332, allocations: 123.9 kB / 0.6016 GB, free: 8.453 MB / 446.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003153/0.5364, allocations: 1.707 MB / 0.6033 GB, free: 6.742 MB / 446.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01372/0.5501, allocations: 6.892 MB / 0.61 GB, free: 15.84 MB / 462.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04421/0.5943, allocations: 32.28 MB / 0.6415 GB, free: 14.53 MB / 494.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.005054/0.5994, allocations: 1.944 MB / 0.6434 GB, free: 12.55 MB / 494.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.001608/0.601, allocations: 1.05 MB / 0.6445 GB, free: 11.48 MB / 494.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.0002901/0.6013, allocations: 91.7 kB / 0.6446 GB, free: 11.4 MB / 494.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.988e-05/0.6013, allocations: 46.52 kB / 0.6446 GB, free: 11.34 MB / 494.1 MB
Notification: Performance of pre-optimization done (n=104): time 3.947e-06/0.6013, allocations: 0 / 0.6446 GB, free: 11.34 MB / 494.1 MB
Notification: Performance of matching and sorting (n=118): time 0.02502/0.6263, allocations: 9.298 MB / 0.6537 GB, free: 1.992 MB / 494.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001387/0.6265, allocations: 196.4 kB / 0.6539 GB, free: 1.758 MB / 494.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005634/0.6321, allocations: 3.829 MB / 0.6576 GB, free: 13.94 MB / 0.4981 GB
Notification: Performance of collectPreVariables (initialization): time 0.0002114/0.6323, allocations: 41.7 kB / 0.6576 GB, free: 13.89 MB / 0.4981 GB
Notification: Performance of collectInitialEqns (initialization): time 0.002325/0.6346, allocations: 2.9 MB / 0.6605 GB, free: 10.96 MB / 0.4981 GB
Notification: Performance of collectInitialBindings (initialization): time 0.0006351/0.6353, allocations: 0.508 MB / 0.661 GB, free: 10.45 MB / 0.4981 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.001511/0.6368, allocations: 1.151 MB / 0.6621 GB, free: 9.293 MB / 0.4981 GB
Notification: Performance of setup shared object (initialization): time 0.0001264/0.6369, allocations: 305.1 kB / 0.6624 GB, free: 8.992 MB / 0.4981 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.002656/0.6396, allocations: 1.701 MB / 0.664 GB, free: 7.285 MB / 0.4981 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.005777/0.6454, allocations: 5.33 MB / 0.6693 GB, free: 132 kB / 0.4981 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.01023/0.6556, allocations: 7.591 MB / 0.6767 GB, free: 6.738 MB / 0.5137 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001033/0.6557, allocations: 36.19 kB / 0.6767 GB, free: 6.703 MB / 0.5137 GB
Notification: Performance of matching and sorting (n=726) (initialization): time 0.01444/0.6701, allocations: 7.225 MB / 0.6838 GB, free: 15.47 MB / 0.5294 GB
Notification: Performance of prepare postOptimizeDAE: time 8.723e-05/0.6702, allocations: 60 kB / 0.6838 GB, free: 15.41 MB / 0.5294 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001465/0.6704, allocations: 128 kB / 0.6839 GB, free: 15.29 MB / 0.5294 GB
Notification: Performance of postOpt tearingSystem (initialization): time 0.001752/0.6721, allocations: 0.6565 MB / 0.6846 GB, free: 14.63 MB / 0.5294 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003995/0.6761, allocations: 1.267 MB / 0.6858 GB, free: 13.36 MB / 0.5294 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005509/0.6816, allocations: 3.983 MB / 0.6897 GB, free: 9.266 MB / 0.5294 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00452/0.6861, allocations: 303.7 kB / 0.69 GB, free: 8.969 MB / 0.5294 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009966/0.6871, allocations: 352 kB / 0.6903 GB, free: 8.625 MB / 0.5294 GB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 586
 * Number of states: 0 ()
 * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.arrowLine.twoHeadedArrow,distance2.arrow.headAtOrigin,distance1.arrow.arrowLine.twoHeadedArrow,distance1.arrow.headAtOrigin,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[1],distance1.arrowColor[3],distance1.arrowColor[2],distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.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 (691):
 * Single equations (assignments): 687
 * 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,10,100.0%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 0 systems
Notification: Performance of prepare postOptimizeDAE: time 0.004715/0.6918, allocations: 1.85 MB / 0.6921 GB, free: 6.762 MB / 0.5294 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001108/0.6929, allocations: 317.8 kB / 0.6924 GB, free: 6.449 MB / 0.5294 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004736/0.6977, allocations: 1.835 MB / 0.6942 GB, free: 4.59 MB / 0.5294 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.203e-05/0.6977, allocations: 12 kB / 0.6942 GB, free: 4.578 MB / 0.5294 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 2.102e-05/0.6977, allocations: 4 kB / 0.6942 GB, free: 4.574 MB / 0.5294 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.129e-05/0.6978, allocations: 7.984 kB / 0.6943 GB, free: 4.566 MB / 0.5294 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01527/0.713, allocations: 5.296 MB / 0.6994 GB, free: 15.21 MB / 0.545 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.269e-05/0.713, allocations: 0 / 0.6994 GB, free: 15.21 MB / 0.545 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008591/0.7139, allocations: 163.8 kB / 0.6996 GB, free: 15.05 MB / 0.545 GB
Notification: Performance of postOpt tearingSystem (simulation): time 0.001467/0.7154, allocations: 488.2 kB / 0.7 GB, free: 14.57 MB / 0.545 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001197/0.7155, allocations: 23.94 kB / 0.7001 GB, free: 14.55 MB / 0.545 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004404/0.7199, allocations: 3.329 MB / 0.7033 GB, free: 11.11 MB / 0.545 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.7199, allocations: 0 / 0.7033 GB, free: 11.11 MB / 0.545 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006208/0.7261, allocations: 3.758 MB / 0.707 GB, free: 7.328 MB / 0.545 GB
Notification: Performance of postOpt removeConstants (simulation): time 0.001089/0.7272, allocations: 301.7 kB / 0.7073 GB, free: 7.031 MB / 0.545 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007165/0.7279, allocations: 27.98 kB / 0.7073 GB, free: 7.004 MB / 0.545 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00147/0.7294, allocations: 55.92 kB / 0.7074 GB, free: 6.949 MB / 0.545 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002097/0.7296, allocations: 68.31 kB / 0.7074 GB, free: 6.883 MB / 0.545 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.204e-05/0.7297, allocations: 32 kB / 0.7075 GB, free: 6.852 MB / 0.545 GB
Notification: Performance of sorting global known variables: time 0.004764/0.7344, allocations: 2.366 MB / 0.7098 GB, free: 4.5 MB / 0.545 GB
Notification: Performance of sort global known variables: time 8e-08/0.7344, allocations: 0 / 0.7098 GB, free: 4.5 MB / 0.545 GB
Notification: Performance of remove unused functions: time 0.005829/0.7403, allocations: 0.8357 MB / 0.7106 GB, free: 3.664 MB / 0.545 GB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 5
 * Number of states: 2 (Revolute1.phi,Revolute1.w)
 * Number of discrete variables: 1 (LessEqualThreshold1.y)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (88):
 * Single equations (assignments): 84
 * 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.0005372/0.7408, allocations: 143 kB / 0.7107 GB, free: 3.512 MB / 0.545 GB
Notification: Performance of simCode: created initialization part: time 0.007684/0.7485, allocations: 3.915 MB / 0.7145 GB, free: 15.61 MB / 0.5606 GB
Notification: Performance of simCode: created event and clocks part: time 7.374e-06/0.7485, allocations: 0 / 0.7145 GB, free: 15.61 MB / 0.5606 GB
Notification: Performance of simCode: created simulation system equations: time 0.00164/0.7501, allocations: 0.9317 MB / 0.7155 GB, free: 14.66 MB / 0.5606 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003286/0.7534, allocations: 377.4 kB / 0.7158 GB, free: 14.3 MB / 0.5606 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01644/0.7699, allocations: 7.527 MB / 0.7232 GB, free: 6.727 MB / 0.5606 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003568/0.7734, allocations: 2.813 MB / 0.7259 GB, free: 3.891 MB / 0.5606 GB
Notification: Performance of simCode: alias equations: time 0.00405/0.7775, allocations: 1.719 MB / 0.7276 GB, free: 2.168 MB / 0.5606 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005632/0.778, allocations: 215.4 kB / 0.7278 GB, free: 1.957 MB / 0.5606 GB
Notification: Performance of SimCode: time 2.054e-06/0.7781, allocations: 0 / 0.7278 GB, free: 1.957 MB / 0.5606 GB
Notification: Performance of Templates: time 0.3477/1.126, allocations: 30.24 MB / 0.7573 GB, free: 145.5 MB / 0.5606 GB
"
[Timeout remaining time 659]
make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.makefile [Timeout 660]
(rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 480]
diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.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.307381235063076]