Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.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.001483/0.001483, allocations: 109 kB / 21.23 MB, free: 0.6641 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.001728/0.001728, allocations: 213.9 kB / 24.54 MB, free: 4.02 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.479/1.479, allocations: 230.3 MB / 258 MB, free: 8.219 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2378/0.2378, allocations: 46.88 MB / 361.3 MB, free: 4.426 MB / 286.1 MB
"
[Timeout remaining time 180]
Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2")
translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002333/0.002333, allocations: 87.84 kB / 0.4971 GB, free: 7.566 MB / 366.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3907/0.3931, allocations: 66.02 MB / 0.5615 GB, free: 4.586 MB / 398.1 MB
Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01577/0.4088, allocations: 9.13 MB / 0.5704 GB, free: 11.41 MB / 414.1 MB
Notification: Performance of NFInst.instExpressions: time 0.0104/0.4192, allocations: 3.61 MB / 0.574 GB, free: 7.793 MB / 414.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.001845/0.4211, allocations: 55.75 kB / 0.574 GB, free: 7.738 MB / 414.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.005673/0.4267, allocations: 1.931 MB / 0.5759 GB, free: 5.801 MB / 414.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.006291/0.433, allocations: 1.634 MB / 0.5775 GB, free: 4.164 MB / 414.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.002509/0.4355, allocations: 0.5653 MB / 0.5781 GB, free: 3.598 MB / 414.1 MB
Notification: Performance of NFFlatten.flatten: time 0.008048/0.4436, allocations: 3.658 MB / 0.5816 GB, free: 15.93 MB / 430.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.004097/0.4477, allocations: 1.812 MB / 0.5834 GB, free: 14.07 MB / 430.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.003061/0.4507, allocations: 1.184 MB / 0.5846 GB, free: 12.88 MB / 430.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.003132/0.4539, allocations: 1.783 MB / 0.5863 GB, free: 11.09 MB / 430.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0006072/0.4545, allocations: 240 kB / 0.5865 GB, free: 10.86 MB / 430.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.002145/0.4566, allocations: 1.151 MB / 0.5876 GB, free: 9.703 MB / 430.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.001596/0.4582, allocations: 1.546 MB / 0.5892 GB, free: 8.152 MB / 430.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.001689/0.4599, allocations: 1.708 MB / 0.5908 GB, free: 6.434 MB / 430.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.007339/0.4673, allocations: 5.708 MB / 0.5964 GB, free: 0.7031 MB / 430.1 MB
Notification: Performance of FrontEnd - DAE generated: time 1.067e-05/0.4673, allocations: 4 kB / 0.5964 GB, free: 0.6992 MB / 430.1 MB
Notification: Performance of FrontEnd: time 2.074e-06/0.4673, allocations: 4 kB / 0.5964 GB, free: 0.6953 MB / 430.1 MB
Notification: Performance of Transformations before backend: time 0.000193/0.4675, allocations: 0 / 0.5964 GB, free: 0.6953 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: 1211
 * Number of variables: 1211
Notification: Performance of Generate backend data structure: time 0.01048/0.4779, allocations: 3.858 MB / 0.6002 GB, free: 12.78 MB / 446.1 MB
Notification: Performance of prepare preOptimizeDAE: time 5.663e-05/0.478, allocations: 8.031 kB / 0.6002 GB, free: 12.77 MB / 446.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01644/0.4944, allocations: 2.366 MB / 0.6025 GB, free: 10.4 MB / 446.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.00626/0.5007, allocations: 2.185 MB / 0.6046 GB, free: 8.176 MB / 446.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001679/0.5009, allocations: 184.8 kB / 0.6048 GB, free: 7.992 MB / 446.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007178/0.5016, allocations: 232 kB / 0.605 GB, free: 7.766 MB / 446.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.01364/0.5152, allocations: 7.79 MB / 0.6126 GB, free: 15.32 MB / 462.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 0.0001168/0.5153, allocations: 35.69 kB / 0.6127 GB, free: 15.29 MB / 462.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003543/0.5157, allocations: 115.9 kB / 0.6128 GB, free: 15.18 MB / 462.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00298/0.5187, allocations: 1.586 MB / 0.6143 GB, free: 13.58 MB / 462.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01346/0.5321, allocations: 6.589 MB / 0.6208 GB, free: 6.984 MB / 462.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04811/0.5802, allocations: 31.56 MB / 0.6516 GB, free: 6.438 MB / 494.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.004909/0.5851, allocations: 1.957 MB / 0.6535 GB, free: 4.445 MB / 494.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.001574/0.5867, allocations: 1.046 MB / 0.6545 GB, free: 3.387 MB / 494.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.0002759/0.587, allocations: 99.92 kB / 0.6546 GB, free: 3.289 MB / 494.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.998e-05/0.587, allocations: 42.56 kB / 0.6547 GB, free: 3.238 MB / 494.1 MB
Notification: Performance of pre-optimization done (n=104): time 3.056e-06/0.587, allocations: 0 / 0.6547 GB, free: 3.238 MB / 494.1 MB
Notification: Performance of matching and sorting (n=118): time 0.02398/0.611, allocations: 9.161 MB / 0.6636 GB, free: 10.02 MB / 0.4981 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.000147/0.6112, allocations: 192.4 kB / 0.6638 GB, free: 9.793 MB / 0.4981 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005764/0.6169, allocations: 3.771 MB / 0.6675 GB, free: 6.027 MB / 0.4981 GB
Notification: Performance of collectPreVariables (initialization): time 0.0001908/0.6171, allocations: 45.69 kB / 0.6675 GB, free: 5.977 MB / 0.4981 GB
Notification: Performance of collectInitialEqns (initialization): time 0.002736/0.6199, allocations: 2.802 MB / 0.6702 GB, free: 3.148 MB / 0.4981 GB
Notification: Performance of collectInitialBindings (initialization): time 0.001026/0.6209, allocations: 0.5119 MB / 0.6707 GB, free: 2.633 MB / 0.4981 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.002099/0.623, allocations: 1.127 MB / 0.6718 GB, free: 1.496 MB / 0.4981 GB
Notification: Performance of setup shared object (initialization): time 0.0001937/0.6232, allocations: 309.1 kB / 0.6721 GB, free: 1.191 MB / 0.4981 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.003018/0.6262, allocations: 1.693 MB / 0.6738 GB, free: 15.49 MB / 0.5137 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.006248/0.6324, allocations: 5.263 MB / 0.6789 GB, free: 8.43 MB / 0.5137 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.01072/0.6432, allocations: 7.509 MB / 0.6863 GB, free: 15.14 MB / 0.5294 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001201/0.6433, allocations: 39.94 kB / 0.6863 GB, free: 15.1 MB / 0.5294 GB
Notification: Performance of matching and sorting (n=717) (initialization): time 0.01461/0.6579, allocations: 7.127 MB / 0.6933 GB, free: 7.965 MB / 0.5294 GB
Notification: Performance of prepare postOptimizeDAE: time 0.0001417/0.658, allocations: 59.94 kB / 0.6933 GB, free: 7.906 MB / 0.5294 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002097/0.6582, allocations: 128 kB / 0.6934 GB, free: 7.781 MB / 0.5294 GB
Notification: Performance of postOpt tearingSystem (initialization): time 0.001824/0.6601, allocations: 0.6525 MB / 0.6941 GB, free: 7.125 MB / 0.5294 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004018/0.6641, allocations: 1.26 MB / 0.6953 GB, free: 5.863 MB / 0.5294 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005581/0.6697, allocations: 3.964 MB / 0.6992 GB, free: 1.789 MB / 0.5294 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004059/0.6737, allocations: 299.6 kB / 0.6995 GB, free: 1.496 MB / 0.5294 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008208/0.6745, allocations: 340 kB / 0.6998 GB, free: 1.164 MB / 0.5294 GB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 577
 * Number of states: 0 ()
 * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.twoHeadedArrow,distance2.arrow.headAtOrigin,distance1.arrow.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 (682):
 * Single equations (assignments): 678
 * 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.003686/0.6782, allocations: 1.779 MB / 0.7015 GB, free: 15.37 MB / 0.545 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008522/0.6791, allocations: 325.8 kB / 0.7018 GB, free: 15.05 MB / 0.545 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004317/0.6834, allocations: 1.827 MB / 0.7036 GB, free: 13.2 MB / 0.545 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-05/0.6834, allocations: 12 kB / 0.7036 GB, free: 13.19 MB / 0.545 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 1.407e-05/0.6834, allocations: 8 kB / 0.7036 GB, free: 13.18 MB / 0.545 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.458e-05/0.6835, allocations: 7.984 kB / 0.7036 GB, free: 13.18 MB / 0.545 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01268/0.6962, allocations: 5.182 MB / 0.7087 GB, free: 7.926 MB / 0.545 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-05/0.6962, allocations: 8.312 kB / 0.7087 GB, free: 7.918 MB / 0.545 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008316/0.697, allocations: 155.8 kB / 0.7089 GB, free: 7.766 MB / 0.545 GB
Notification: Performance of postOpt tearingSystem (simulation): time 0.001457/0.6985, allocations: 488.2 kB / 0.7093 GB, free: 7.285 MB / 0.545 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001036/0.6986, allocations: 23.98 kB / 0.7094 GB, free: 7.262 MB / 0.545 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004488/0.703, allocations: 3.333 MB / 0.7126 GB, free: 3.816 MB / 0.545 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.7031, allocations: 0 / 0.7126 GB, free: 3.816 MB / 0.545 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006283/0.7093, allocations: 3.749 MB / 0.7163 GB, free: 48 kB / 0.545 GB
Notification: Performance of postOpt removeConstants (simulation): time 0.001062/0.7104, allocations: 301.8 kB / 0.7166 GB, free: 15.75 MB / 0.5606 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006413/0.711, allocations: 23.75 kB / 0.7166 GB, free: 15.73 MB / 0.5606 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001498/0.7125, allocations: 51.92 kB / 0.7166 GB, free: 15.68 MB / 0.5606 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002255/0.7128, allocations: 64.38 kB / 0.7167 GB, free: 15.61 MB / 0.5606 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001066/0.7129, allocations: 35.98 kB / 0.7167 GB, free: 15.58 MB / 0.5606 GB
Notification: Performance of sorting global known variables: time 0.005106/0.718, allocations: 2.338 MB / 0.719 GB, free: 13.25 MB / 0.5606 GB
Notification: Performance of sort global known variables: time 8.1e-08/0.718, allocations: 0 / 0.719 GB, free: 13.25 MB / 0.5606 GB
Notification: Performance of remove unused functions: time 0.005099/0.7231, allocations: 0.7932 MB / 0.7198 GB, free: 12.46 MB / 0.5606 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.0005321/0.7236, allocations: 143 kB / 0.7199 GB, free: 12.31 MB / 0.5606 GB
Notification: Performance of simCode: created initialization part: time 0.007424/0.731, allocations: 3.872 MB / 0.7237 GB, free: 8.445 MB / 0.5606 GB
Notification: Performance of simCode: created event and clocks part: time 6.523e-06/0.731, allocations: 0 / 0.7237 GB, free: 8.445 MB / 0.5606 GB
Notification: Performance of simCode: created simulation system equations: time 0.001624/0.7327, allocations: 0.9396 MB / 0.7246 GB, free: 7.496 MB / 0.5606 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003148/0.7358, allocations: 363.2 kB / 0.725 GB, free: 7.141 MB / 0.5606 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3061/1.042, allocations: 7.289 MB / 0.7321 GB, free: 153.4 MB / 0.5606 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006189/1.048, allocations: 2.715 MB / 0.7347 GB, free: 152.6 MB / 0.5606 GB
Notification: Performance of simCode: alias equations: time 0.003582/1.052, allocations: 1.705 MB / 0.7364 GB, free: 152.6 MB / 0.5606 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006035/1.052, allocations: 211 kB / 0.7366 GB, free: 152.6 MB / 0.5606 GB
Notification: Performance of SimCode: time 2.294e-06/1.052, allocations: 0 / 0.7366 GB, free: 152.6 MB / 0.5606 GB
Notification: Performance of Templates: time 0.05267/1.105, allocations: 29.62 MB / 0.7655 GB, free: 131.2 MB / 0.5606 GB
"
[Timeout remaining time 659]
make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.makefile [Timeout 660]
(rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 480]
diffSimulationResults("ModelicaTest_trunk_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_trunk_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.035121292807162]