Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.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.001339/0.001339, allocations: 107.3 kB / 19.69 MB, free: 2.188 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.001457/0.001457, allocations: 195.2 kB / 22.98 MB, free: 5.016 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.508/1.508, allocations: 207.6 MB / 233.7 MB, free: 10.01 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.2382/0.2382, allocations: 44.24 MB / 330.2 MB, free: 9.555 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.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance")
translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance") [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.002324/0.002324, allocations: 74.56 kB / 467.9 MB, free: 4.051 MB / 334.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.158/0.1603, allocations: 61.03 MB / 0.5166 GB, free: 6.879 MB / 398.1 MB
Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01353/0.1739, allocations: 9.501 MB / 0.5259 GB, free: 13.33 MB / 414.1 MB
Notification: Performance of NFInst.instExpressions: time 0.009487/0.1834, allocations: 3.642 MB / 0.5294 GB, free: 9.68 MB / 414.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.001949/0.1853, allocations: 63.69 kB / 0.5295 GB, free: 9.617 MB / 414.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.004042/0.1894, allocations: 1.721 MB / 0.5312 GB, free: 7.891 MB / 414.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.005247/0.1946, allocations: 1.689 MB / 0.5328 GB, free: 6.195 MB / 414.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.001652/0.1963, allocations: 0.5536 MB / 0.5333 GB, free: 5.641 MB / 414.1 MB
Notification: Performance of NFFlatten.flatten: time 0.006124/0.2024, allocations: 3.517 MB / 0.5368 GB, free: 2.113 MB / 414.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.002867/0.2052, allocations: 1.693 MB / 0.5384 GB, free: 380 kB / 414.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.3113/0.5166, allocations: 1.181 MB / 0.5396 GB, free: 12.17 MB / 414.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.004231/0.5208, allocations: 1.777 MB / 0.5413 GB, free: 12.11 MB / 414.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.001299/0.5221, allocations: 236.2 kB / 0.5415 GB, free: 12.11 MB / 414.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.002715/0.5248, allocations: 1.154 MB / 0.5427 GB, free: 12.11 MB / 414.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.00202/0.5268, allocations: 1.552 MB / 0.5442 GB, free: 11.91 MB / 414.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.002185/0.529, allocations: 1.73 MB / 0.5459 GB, free: 11.28 MB / 414.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.01227/0.5413, allocations: 5.791 MB / 0.5515 GB, free: 10.38 MB / 414.1 MB
Notification: Performance of FrontEnd - DAE generated: time 1.339e-05/0.5413, allocations: 1.531 kB / 0.5515 GB, free: 10.38 MB / 414.1 MB
Notification: Performance of FrontEnd: time 4.698e-06/0.5413, allocations: 2.031 kB / 0.5515 GB, free: 10.38 MB / 414.1 MB
Notification: Performance of Transformations before backend: time 0.0004039/0.5417, allocations: 0 / 0.5515 GB, free: 10.38 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: 1219
 * Number of variables: 1219
Notification: Performance of Generate backend data structure: time 0.01674/0.5585, allocations: 3.889 MB / 0.5553 GB, free: 8.57 MB / 414.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.998e-05/0.5585, allocations: 9.859 kB / 0.5553 GB, free: 8.57 MB / 414.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01734/0.5758, allocations: 2.398 MB / 0.5577 GB, free: 8.246 MB / 414.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.007139/0.583, allocations: 2.266 MB / 0.5599 GB, free: 7.285 MB / 414.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001832/0.5832, allocations: 170.4 kB / 0.5601 GB, free: 7.234 MB / 414.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008499/0.584, allocations: 226.2 kB / 0.5603 GB, free: 7.188 MB / 414.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.01426/0.5983, allocations: 7.892 MB / 0.568 GB, free: 3.441 MB / 414.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 0.0001097/0.5984, allocations: 46.67 kB / 0.568 GB, free: 3.434 MB / 414.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003644/0.5987, allocations: 112.7 kB / 0.5681 GB, free: 3.391 MB / 414.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003165/0.6019, allocations: 1.663 MB / 0.5698 GB, free: 2.828 MB / 414.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01492/0.6168, allocations: 6.759 MB / 0.5764 GB, free: 15.88 MB / 430.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04812/0.665, allocations: 31.35 MB / 0.607 GB, free: 3.281 MB / 446.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.004918/0.6699, allocations: 1.813 MB / 0.6087 GB, free: 1.441 MB / 446.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.001627/0.6715, allocations: 1.091 MB / 0.6098 GB, free: 348 kB / 446.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.0002988/0.6718, allocations: 97.03 kB / 0.6099 GB, free: 260 kB / 446.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.978e-05/0.6719, allocations: 43.06 kB / 0.6099 GB, free: 208 kB / 446.1 MB
Notification: Performance of pre-optimization done (n=117): time 3.476e-06/0.6719, allocations: 0 / 0.6099 GB, free: 208 kB / 446.1 MB
Notification: Performance of matching and sorting (n=141): time 0.04128/0.7131, allocations: 12.25 MB / 0.6219 GB, free: 3.938 MB / 462.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001492/0.7133, allocations: 200.5 kB / 0.6221 GB, free: 3.699 MB / 462.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006686/0.72, allocations: 3.743 MB / 0.6258 GB, free: 15.96 MB / 478.1 MB
Notification: Performance of collectPreVariables (initialization): time 0.0005732/0.7206, allocations: 45.45 kB / 0.6258 GB, free: 15.92 MB / 478.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.002687/0.7232, allocations: 2.775 MB / 0.6285 GB, free: 13.16 MB / 478.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0009429/0.7242, allocations: 0.5846 MB / 0.6291 GB, free: 12.58 MB / 478.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.001762/0.7259, allocations: 1.126 MB / 0.6302 GB, free: 11.45 MB / 478.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001425/0.7261, allocations: 317 kB / 0.6305 GB, free: 11.14 MB / 478.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.003048/0.7291, allocations: 1.799 MB / 0.6322 GB, free: 9.332 MB / 478.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.006225/0.7354, allocations: 5.252 MB / 0.6374 GB, free: 2.406 MB / 478.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.01046/0.7458, allocations: 7.61 MB / 0.6448 GB, free: 9.508 MB / 494.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.701e-05/0.7459, allocations: 36 kB / 0.6448 GB, free: 9.473 MB / 494.1 MB
Notification: Performance of matching and sorting (n=719) (initialization): time 0.01475/0.7607, allocations: 7.302 MB / 0.652 GB, free: 2.156 MB / 494.1 MB
Notification: Performance of prepare postOptimizeDAE: time 0.0001222/0.7608, allocations: 60 kB / 0.652 GB, free: 2.098 MB / 494.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002259/0.761, allocations: 121.1 kB / 0.6521 GB, free: 1.98 MB / 494.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.001925/0.7629, allocations: 0.657 MB / 0.6528 GB, free: 1.32 MB / 494.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004282/0.7672, allocations: 1.27 MB / 0.654 GB, free: 52 kB / 494.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005912/0.7731, allocations: 3.96 MB / 0.6579 GB, free: 11.99 MB / 0.4981 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005183/0.7783, allocations: 303.6 kB / 0.6582 GB, free: 11.69 MB / 0.4981 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001022/0.7793, allocations: 344 kB / 0.6585 GB, free: 11.36 MB / 0.4981 GB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 555
 * Number of states: 0 ()
 * Number of discrete variables: 27 (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 (684):
 * Single equations (assignments): 680
 * 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.004775/0.7841, allocations: 1.778 MB / 0.6602 GB, free: 9.57 MB / 0.4981 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001146/0.7853, allocations: 333.7 kB / 0.6606 GB, free: 9.242 MB / 0.4981 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00565/0.7909, allocations: 2.215 MB / 0.6627 GB, free: 7.012 MB / 0.4981 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.419e-05/0.791, allocations: 16 kB / 0.6627 GB, free: 6.996 MB / 0.4981 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 2.008e-05/0.791, allocations: 4 kB / 0.6627 GB, free: 6.992 MB / 0.4981 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.877e-05/0.791, allocations: 15.92 kB / 0.6628 GB, free: 6.977 MB / 0.4981 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0181/0.8091, allocations: 5.895 MB / 0.6685 GB, free: 1.031 MB / 0.4981 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.685e-05/0.8091, allocations: 4 kB / 0.6685 GB, free: 1.027 MB / 0.4981 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001223/0.8104, allocations: 207.7 kB / 0.6687 GB, free: 0.8242 MB / 0.4981 GB
Notification: Performance of postOpt tearingSystem (simulation): time 0.001549/0.8119, allocations: 494.8 kB / 0.6692 GB, free: 348 kB / 0.4981 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002081/0.8121, allocations: 28 kB / 0.6692 GB, free: 320 kB / 0.4981 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004736/0.8168, allocations: 3.33 MB / 0.6725 GB, free: 12.87 MB / 0.5137 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.955e-06/0.8169, allocations: 5.594 kB / 0.6725 GB, free: 12.87 MB / 0.5137 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007967/0.8248, allocations: 4.369 MB / 0.6767 GB, free: 8.469 MB / 0.5137 GB
Notification: Performance of postOpt removeConstants (simulation): time 0.00212/0.8269, allocations: 0.4898 MB / 0.6772 GB, free: 7.977 MB / 0.5137 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001048/0.828, allocations: 20.06 kB / 0.6772 GB, free: 7.957 MB / 0.5137 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001871/0.8299, allocations: 83.83 kB / 0.6773 GB, free: 7.875 MB / 0.5137 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002505/0.8301, allocations: 79.5 kB / 0.6774 GB, free: 7.801 MB / 0.5137 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001186/0.8302, allocations: 39.98 kB / 0.6774 GB, free: 7.762 MB / 0.5137 GB
Notification: Performance of sorting global known variables: time 0.005933/0.8362, allocations: 2.341 MB / 0.6797 GB, free: 5.434 MB / 0.5137 GB
Notification: Performance of sort global known variables: time 1.1e-07/0.8362, allocations: 4 kB / 0.6797 GB, free: 5.43 MB / 0.5137 GB
Notification: Performance of remove unused functions: time 0.005955/0.8421, allocations: 0.8319 MB / 0.6805 GB, free: 4.598 MB / 0.5137 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 (112):
 * Single equations (assignments): 108
 * 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.0004998/0.8426, allocations: 158.5 kB / 0.6807 GB, free: 4.438 MB / 0.5137 GB
Notification: Performance of simCode: created initialization part: time 0.00853/0.8511, allocations: 4.13 MB / 0.6847 GB, free: 324 kB / 0.5137 GB
Notification: Performance of simCode: created event and clocks part: time 6.372e-06/0.8512, allocations: 4.062 kB / 0.6847 GB, free: 320 kB / 0.5137 GB
Notification: Performance of simCode: created simulation system equations: time 0.001983/0.8531, allocations: 1.097 MB / 0.6858 GB, free: 15.2 MB / 0.5294 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004025/0.8572, allocations: 362.7 kB / 0.6861 GB, free: 14.86 MB / 0.5294 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02049/0.8777, allocations: 7.638 MB / 0.6936 GB, free: 7.191 MB / 0.5294 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00541/0.8831, allocations: 2.756 MB / 0.6963 GB, free: 4.414 MB / 0.5294 GB
Notification: Performance of simCode: alias equations: time 0.004988/0.8881, allocations: 1.742 MB / 0.698 GB, free: 2.668 MB / 0.5294 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008353/0.8889, allocations: 223.4 kB / 0.6982 GB, free: 2.449 MB / 0.5294 GB
Notification: Performance of SimCode: time 1.713e-06/0.8889, allocations: 0 / 0.6982 GB, free: 2.449 MB / 0.5294 GB
Notification: Performance of Templates: time 0.07344/0.9623, allocations: 30.95 MB / 0.7284 GB, free: 3.648 MB / 0.5606 GB
"
[Timeout remaining time 659]
make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.makefile [Timeout 660]
(rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 480]
diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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.192355327308178]