Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.001819/0.001819, allocations: 109.6 kB / 19.69 MB, free: 2.199 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.001927/0.001927, allocations: 187.6 kB / 22.98 MB, free: 5.066 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.602/1.602, allocations: 207.6 MB / 233.7 MB, free: 10 MB / 190.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2597/0.2597, allocations: 44.23 MB / 330.2 MB, free: 9.551 MB / 270.1 MB
"
[Timeout remaining time 179]
Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo)
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(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2")
translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2") [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.002498/0.002498, allocations: 75.88 kB / 467.9 MB, free: 4.055 MB / 334.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.1601/0.1626, allocations: 61.03 MB / 0.5166 GB, free: 6.887 MB / 398.1 MB
Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.0138/0.1764, allocations: 10.09 MB / 0.5264 GB, free: 12.75 MB / 414.1 MB
Notification: Performance of NFInst.instExpressions: time 0.009098/0.1854, allocations: 3.747 MB / 0.5301 GB, free: 8.988 MB / 414.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.002142/0.1876, allocations: 59.75 kB / 0.5301 GB, free: 8.93 MB / 414.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.004846/0.1924, allocations: 1.989 MB / 0.5321 GB, free: 6.934 MB / 414.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.006067/0.1985, allocations: 1.79 MB / 0.5338 GB, free: 5.137 MB / 414.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.001865/0.2004, allocations: 0.577 MB / 0.5344 GB, free: 4.559 MB / 414.1 MB
Notification: Performance of NFFlatten.flatten: time 0.006899/0.2073, allocations: 3.747 MB / 0.5381 GB, free: 0.8008 MB / 414.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.2889/0.4962, allocations: 1.91 MB / 0.5399 GB, free: 11.16 MB / 414.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.002538/0.4987, allocations: 1.308 MB / 0.5412 GB, free: 11.08 MB / 414.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.00353/0.5022, allocations: 1.987 MB / 0.5431 GB, free: 10.88 MB / 414.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0009532/0.5032, allocations: 273.5 kB / 0.5434 GB, free: 10.88 MB / 414.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.002768/0.506, allocations: 1.177 MB / 0.5446 GB, free: 10.88 MB / 414.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.002346/0.5083, allocations: 1.74 MB / 0.5463 GB, free: 10.67 MB / 414.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.002923/0.5112, allocations: 1.926 MB / 0.5481 GB, free: 9.969 MB / 414.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.01268/0.5239, allocations: 6.434 MB / 0.5544 GB, free: 8.816 MB / 414.1 MB
Notification: Performance of FrontEnd - DAE generated: time 7.354e-06/0.5239, allocations: 4 kB / 0.5544 GB, free: 8.812 MB / 414.1 MB
Notification: Performance of FrontEnd: time 2.375e-06/0.5239, allocations: 4.094 kB / 0.5544 GB, free: 8.812 MB / 414.1 MB
Notification: Performance of Transformations before backend: time 0.000279/0.5242, allocations: 0 / 0.5544 GB, free: 8.812 MB / 414.1 MB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 1367
 * Number of variables: 1367
Notification: Performance of Generate backend data structure: time 0.01523/0.5394, allocations: 4.24 MB / 0.5586 GB, free: 6.469 MB / 414.1 MB
Notification: Performance of prepare preOptimizeDAE: time 6.784e-05/0.5395, allocations: 8.625 kB / 0.5586 GB, free: 6.469 MB / 414.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01825/0.5578, allocations: 2.466 MB / 0.561 GB, free: 6.113 MB / 414.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.009285/0.567, allocations: 2.385 MB / 0.5633 GB, free: 5.109 MB / 414.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002548/0.5673, allocations: 195.1 kB / 0.5635 GB, free: 5.051 MB / 414.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.001667/0.569, allocations: 256 kB / 0.5637 GB, free: 5 MB / 414.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.02248/0.5914, allocations: 8.769 MB / 0.5723 GB, free: 72 kB / 414.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 0.0001674/0.5916, allocations: 33.03 kB / 0.5723 GB, free: 72 kB / 414.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006055/0.5922, allocations: 129 kB / 0.5725 GB, free: 20 kB / 414.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003767/0.596, allocations: 1.837 MB / 0.5743 GB, free: 15.33 MB / 430.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01723/0.6132, allocations: 7.467 MB / 0.5815 GB, free: 12.04 MB / 430.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06964/0.6829, allocations: 34.07 MB / 0.6148 GB, free: 10.66 MB / 462.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.008106/0.691, allocations: 2.062 MB / 0.6168 GB, free: 8.578 MB / 462.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.002719/0.6937, allocations: 1.107 MB / 0.6179 GB, free: 7.465 MB / 462.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.0004462/0.6941, allocations: 93.47 kB / 0.618 GB, free: 7.383 MB / 462.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.708e-05/0.6942, allocations: 55.36 kB / 0.6181 GB, free: 7.324 MB / 462.1 MB
Notification: Performance of pre-optimization done (n=119): time 6.733e-06/0.6942, allocations: 0 / 0.6181 GB, free: 7.324 MB / 462.1 MB
Notification: Performance of matching and sorting (n=133): time 0.03672/0.7309, allocations: 9.854 MB / 0.6277 GB, free: 13.45 MB / 478.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001623/0.7311, allocations: 200.5 kB / 0.6279 GB, free: 13.21 MB / 478.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009372/0.7405, allocations: 3.977 MB / 0.6317 GB, free: 9.25 MB / 478.1 MB
Notification: Performance of collectPreVariables (initialization): time 0.0004384/0.7409, allocations: 45.7 kB / 0.6318 GB, free: 9.199 MB / 478.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.003562/0.7445, allocations: 3.07 MB / 0.6348 GB, free: 6.152 MB / 478.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.001168/0.7456, allocations: 0.5649 MB / 0.6353 GB, free: 5.594 MB / 478.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.003321/0.7489, allocations: 1.209 MB / 0.6365 GB, free: 4.375 MB / 478.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001528/0.7491, allocations: 305.1 kB / 0.6368 GB, free: 4.074 MB / 478.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.003773/0.7529, allocations: 1.807 MB / 0.6386 GB, free: 2.262 MB / 478.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.008489/0.7614, allocations: 5.632 MB / 0.6441 GB, free: 10.78 MB / 494.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.01276/0.7741, allocations: 8.047 MB / 0.6519 GB, free: 1.152 MB / 494.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002005/0.7743, allocations: 40 kB / 0.652 GB, free: 1.113 MB / 494.1 MB
Notification: Performance of matching and sorting (n=770) (initialization): time 0.02013/0.7945, allocations: 7.611 MB / 0.6594 GB, free: 9.488 MB / 0.4981 GB
Notification: Performance of prepare postOptimizeDAE: time 0.0002266/0.7947, allocations: 60 kB / 0.6595 GB, free: 9.43 MB / 0.4981 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000298/0.795, allocations: 136 kB / 0.6596 GB, free: 9.297 MB / 0.4981 GB
Notification: Performance of postOpt tearingSystem (initialization): time 0.002187/0.7972, allocations: 0.6686 MB / 0.6602 GB, free: 8.625 MB / 0.4981 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005384/0.8025, allocations: 1.349 MB / 0.6616 GB, free: 7.273 MB / 0.4981 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006006/0.8086, allocations: 3.999 MB / 0.6655 GB, free: 3.172 MB / 0.4981 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005549/0.8141, allocations: 319.5 kB / 0.6658 GB, free: 2.859 MB / 0.4981 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001409/0.8155, allocations: 368 kB / 0.6661 GB, free: 2.5 MB / 0.4981 GB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 619
 * Number of states: 0 ()
 * Number of discrete variables: 31 (LessEqualThreshold1.y,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 (735):
 * Single equations (assignments): 731
 * 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.005484/0.821, allocations: 1.949 MB / 0.668 GB, free: 0.543 MB / 0.4981 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009762/0.822, allocations: 337.7 kB / 0.6684 GB, free: 216 kB / 0.4981 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00506/0.827, allocations: 2.057 MB / 0.6704 GB, free: 14.14 MB / 0.5137 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.471e-05/0.8271, allocations: 13.92 kB / 0.6704 GB, free: 14.12 MB / 0.5137 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 1.145e-05/0.8271, allocations: 4 kB / 0.6704 GB, free: 14.12 MB / 0.5137 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.689e-05/0.8271, allocations: 7.984 kB / 0.6704 GB, free: 14.11 MB / 0.5137 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01565/0.8427, allocations: 5.764 MB / 0.676 GB, free: 8.297 MB / 0.5137 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.178e-05/0.8428, allocations: 7.922 kB / 0.676 GB, free: 8.289 MB / 0.5137 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009951/0.8438, allocations: 191.9 kB / 0.6762 GB, free: 8.102 MB / 0.5137 GB
Notification: Performance of postOpt tearingSystem (simulation): time 0.001514/0.8453, allocations: 493.3 kB / 0.6767 GB, free: 7.621 MB / 0.5137 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001411/0.8454, allocations: 26.64 kB / 0.6767 GB, free: 7.598 MB / 0.5137 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004563/0.85, allocations: 3.337 MB / 0.68 GB, free: 4.148 MB / 0.5137 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.85, allocations: 0 / 0.68 GB, free: 4.148 MB / 0.5137 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006919/0.8569, allocations: 4.019 MB / 0.6839 GB, free: 88 kB / 0.5137 GB
Notification: Performance of postOpt removeConstants (simulation): time 0.00184/0.8587, allocations: 485.7 kB / 0.6843 GB, free: 15.61 MB / 0.5294 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009374/0.8597, allocations: 26.66 kB / 0.6844 GB, free: 15.58 MB / 0.5294 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001758/0.8614, allocations: 67.66 kB / 0.6844 GB, free: 15.52 MB / 0.5294 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002458/0.8617, allocations: 72.52 kB / 0.6845 GB, free: 15.45 MB / 0.5294 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001119/0.8618, allocations: 44.06 kB / 0.6845 GB, free: 15.41 MB / 0.5294 GB
Notification: Performance of sorting global known variables: time 0.006343/0.8681, allocations: 2.472 MB / 0.687 GB, free: 12.95 MB / 0.5294 GB
Notification: Performance of sort global known variables: time 8e-08/0.8681, allocations: 0.6562 kB / 0.687 GB, free: 12.95 MB / 0.5294 GB
Notification: Performance of remove unused functions: time 0.008154/0.8763, allocations: 0.8775 MB / 0.6878 GB, free: 12.08 MB / 0.5294 GB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 9
 * 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 (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.0006821/0.877, allocations: 146.9 kB / 0.688 GB, free: 11.93 MB / 0.5294 GB
Notification: Performance of simCode: created initialization part: time 0.01009/0.8871, allocations: 4.15 MB / 0.692 GB, free: 7.797 MB / 0.5294 GB
Notification: Performance of simCode: created event and clocks part: time 9.478e-06/0.8871, allocations: 0 / 0.692 GB, free: 7.797 MB / 0.5294 GB
Notification: Performance of simCode: created simulation system equations: time 0.00217/0.8892, allocations: 1.007 MB / 0.693 GB, free: 6.777 MB / 0.5294 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004148/0.8934, allocations: 378 kB / 0.6934 GB, free: 6.418 MB / 0.5294 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02016/0.9136, allocations: 8.044 MB / 0.7012 GB, free: 14.33 MB / 0.545 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00586/0.9194, allocations: 2.956 MB / 0.7041 GB, free: 11.34 MB / 0.545 GB
Notification: Performance of simCode: alias equations: time 0.005025/0.9244, allocations: 1.822 MB / 0.7059 GB, free: 9.512 MB / 0.545 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009551/0.9254, allocations: 231.4 kB / 0.7061 GB, free: 9.285 MB / 0.545 GB
Notification: Performance of SimCode: time 8.62e-07/0.9254, allocations: 0 / 0.7061 GB, free: 9.285 MB / 0.545 GB
Notification: Performance of Templates: time 0.08074/1.006, allocations: 31.8 MB / 0.7372 GB, free: 9.652 MB / 0.5762 GB
"
[Timeout remaining time 659]
make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.makefile [Timeout 660]
(rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 480]
diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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.42268957849592]