Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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.001998/0.001998, 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.002534/0.002534, allocations: 213.6 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.502/1.502, allocations: 230.3 MB / 258 MB, free: 8.188 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.2403/0.2403, allocations: 46.93 MB / 361.4 MB, free: 4.387 MB / 286.1 MB
"
[Timeout remaining time 180]
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.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_4.1.0-beta.om_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.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2") [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.004104/0.004104, allocations: 79.86 kB / 0.4972 GB, free: 7.496 MB / 366.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3735/0.3776, allocations: 66.04 MB / 0.5616 GB, free: 4.527 MB / 398.1 MB
Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01187/0.3895, allocations: 9.134 MB / 0.5706 GB, free: 11.36 MB / 414.1 MB
Notification: Performance of NFInst.instExpressions: time 0.008171/0.3976, allocations: 3.61 MB / 0.5741 GB, free: 7.734 MB / 414.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.001711/0.3994, allocations: 55.75 kB / 0.5741 GB, free: 7.68 MB / 414.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.004067/0.4034, allocations: 1.947 MB / 0.576 GB, free: 5.727 MB / 414.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.004888/0.4083, allocations: 1.611 MB / 0.5776 GB, free: 4.109 MB / 414.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.001448/0.4098, allocations: 0.5731 MB / 0.5782 GB, free: 3.535 MB / 414.1 MB
Notification: Performance of NFFlatten.flatten: time 0.00555/0.4153, allocations: 3.662 MB / 0.5818 GB, free: 15.87 MB / 430.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.002538/0.4178, allocations: 1.811 MB / 0.5835 GB, free: 14 MB / 430.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.00193/0.4198, allocations: 1.176 MB / 0.5847 GB, free: 12.82 MB / 430.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.002455/0.4222, allocations: 1.779 MB / 0.5864 GB, free: 11.04 MB / 430.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0006076/0.4228, allocations: 244 kB / 0.5866 GB, free: 10.8 MB / 430.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.002126/0.425, allocations: 1.147 MB / 0.5878 GB, free: 9.648 MB / 430.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.00163/0.4266, allocations: 1.554 MB / 0.5893 GB, free: 8.09 MB / 430.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.002097/0.4287, allocations: 1.705 MB / 0.5909 GB, free: 6.375 MB / 430.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.007327/0.436, allocations: 5.708 MB / 0.5965 GB, free: 0.6445 MB / 430.1 MB
Notification: Performance of FrontEnd - DAE generated: time 6.152e-06/0.436, allocations: 0 / 0.5965 GB, free: 0.6445 MB / 430.1 MB
Notification: Performance of FrontEnd: time 2.064e-06/0.436, allocations: 4 kB / 0.5965 GB, free: 0.6406 MB / 430.1 MB
Notification: Performance of Transformations before backend: time 0.000134/0.4362, allocations: 0 / 0.5965 GB, free: 0.6406 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.008195/0.4444, allocations: 3.862 MB / 0.6003 GB, free: 12.72 MB / 446.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/0.4444, allocations: 8.031 kB / 0.6003 GB, free: 12.71 MB / 446.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01592/0.4603, allocations: 2.37 MB / 0.6026 GB, free: 10.34 MB / 446.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.005893/0.4662, allocations: 2.181 MB / 0.6047 GB, free: 8.117 MB / 446.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000148/0.4664, allocations: 176.8 kB / 0.6049 GB, free: 7.941 MB / 446.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005908/0.467, allocations: 240 kB / 0.6051 GB, free: 7.707 MB / 446.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.01729/0.4842, allocations: 7.79 MB / 0.6128 GB, free: 15.27 MB / 462.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 0.0001274/0.4844, allocations: 35.75 kB / 0.6128 GB, free: 15.23 MB / 462.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003933/0.4848, allocations: 111.9 kB / 0.6129 GB, free: 15.12 MB / 462.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002778/0.4875, allocations: 1.586 MB / 0.6144 GB, free: 13.53 MB / 462.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01289/0.5004, allocations: 6.597 MB / 0.6209 GB, free: 6.922 MB / 462.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0414/0.5418, allocations: 31.56 MB / 0.6517 GB, free: 6.375 MB / 494.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.005132/0.547, allocations: 1.959 MB / 0.6536 GB, free: 4.379 MB / 494.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.001611/0.5486, allocations: 1.042 MB / 0.6546 GB, free: 3.324 MB / 494.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.0003057/0.5489, allocations: 92 kB / 0.6547 GB, free: 3.234 MB / 494.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.172e-05/0.5489, allocations: 54.48 kB / 0.6548 GB, free: 3.172 MB / 494.1 MB
Notification: Performance of pre-optimization done (n=104): time 3.897e-06/0.5489, allocations: 0 / 0.6548 GB, free: 3.172 MB / 494.1 MB
Notification: Performance of matching and sorting (n=118): time 0.02568/0.5746, allocations: 9.16 MB / 0.6637 GB, free: 9.957 MB / 0.4981 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.000131/0.5747, allocations: 192.4 kB / 0.6639 GB, free: 9.727 MB / 0.4981 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005575/0.5803, allocations: 3.763 MB / 0.6676 GB, free: 5.969 MB / 0.4981 GB
Notification: Performance of collectPreVariables (initialization): time 0.0001999/0.5805, allocations: 41.7 kB / 0.6676 GB, free: 5.922 MB / 0.4981 GB
Notification: Performance of collectInitialEqns (initialization): time 0.002192/0.5827, allocations: 2.798 MB / 0.6704 GB, free: 3.098 MB / 0.4981 GB
Notification: Performance of collectInitialBindings (initialization): time 0.0005722/0.5833, allocations: 0.5158 MB / 0.6709 GB, free: 2.578 MB / 0.4981 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.001432/0.5847, allocations: 1.131 MB / 0.672 GB, free: 1.438 MB / 0.4981 GB
Notification: Performance of setup shared object (initialization): time 0.0001286/0.5848, allocations: 309.1 kB / 0.6723 GB, free: 1.133 MB / 0.4981 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.002545/0.5874, allocations: 1.689 MB / 0.6739 GB, free: 15.44 MB / 0.5137 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.005446/0.5928, allocations: 5.267 MB / 0.6791 GB, free: 8.371 MB / 0.5137 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.009622/0.6024, allocations: 7.515 MB / 0.6864 GB, free: 15.07 MB / 0.5294 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001193/0.6026, allocations: 36 kB / 0.6864 GB, free: 15.04 MB / 0.5294 GB
Notification: Performance of matching and sorting (n=717) (initialization): time 0.01405/0.6166, allocations: 7.128 MB / 0.6934 GB, free: 7.902 MB / 0.5294 GB
Notification: Performance of prepare postOptimizeDAE: time 8.76e-05/0.6167, allocations: 59.94 kB / 0.6934 GB, free: 7.844 MB / 0.5294 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001267/0.6168, allocations: 128 kB / 0.6936 GB, free: 7.719 MB / 0.5294 GB
Notification: Performance of postOpt tearingSystem (initialization): time 0.001666/0.6185, allocations: 0.6572 MB / 0.6942 GB, free: 7.059 MB / 0.5294 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003631/0.6221, allocations: 1.248 MB / 0.6954 GB, free: 5.809 MB / 0.5294 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005416/0.6275, allocations: 3.967 MB / 0.6993 GB, free: 1.73 MB / 0.5294 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003961/0.6315, allocations: 299.6 kB / 0.6996 GB, free: 1.438 MB / 0.5294 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005737/0.6321, allocations: 344.4 kB / 0.6999 GB, free: 1.102 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.002933/0.635, allocations: 1.788 MB / 0.7017 GB, free: 15.3 MB / 0.545 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006528/0.6357, allocations: 317.8 kB / 0.702 GB, free: 14.99 MB / 0.545 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003788/0.6395, allocations: 1.831 MB / 0.7037 GB, free: 13.14 MB / 0.545 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.174e-05/0.6395, allocations: 15.94 kB / 0.7038 GB, free: 13.12 MB / 0.545 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 1.639e-05/0.6395, allocations: 7.984 kB / 0.7038 GB, free: 13.11 MB / 0.545 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.15e-05/0.6395, allocations: 3.984 kB / 0.7038 GB, free: 13.11 MB / 0.545 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009863/0.6494, allocations: 5.17 MB / 0.7088 GB, free: 7.871 MB / 0.545 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.274e-05/0.6494, allocations: 7.938 kB / 0.7088 GB, free: 7.863 MB / 0.545 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007843/0.6502, allocations: 163.7 kB / 0.709 GB, free: 7.703 MB / 0.545 GB
Notification: Performance of postOpt tearingSystem (simulation): time 0.001447/0.6516, allocations: 484.2 kB / 0.7095 GB, free: 7.227 MB / 0.545 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.093e-05/0.6517, allocations: 23.94 kB / 0.7095 GB, free: 7.203 MB / 0.545 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004505/0.6562, allocations: 3.333 MB / 0.7127 GB, free: 3.758 MB / 0.545 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.6562, allocations: 0 / 0.7127 GB, free: 3.758 MB / 0.545 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005985/0.6622, allocations: 3.743 MB / 0.7164 GB, free: 15.99 MB / 0.5606 GB
Notification: Performance of postOpt removeConstants (simulation): time 0.000911/0.6631, allocations: 301.6 kB / 0.7167 GB, free: 15.7 MB / 0.5606 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003375/0.6635, allocations: 27.92 kB / 0.7167 GB, free: 15.67 MB / 0.5606 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001012/0.6645, allocations: 63.92 kB / 0.7168 GB, free: 15.61 MB / 0.5606 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001865/0.6647, allocations: 68.31 kB / 0.7168 GB, free: 15.54 MB / 0.5606 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.56e-05/0.6647, allocations: 28 kB / 0.7169 GB, free: 15.51 MB / 0.5606 GB
Notification: Performance of sorting global known variables: time 0.003823/0.6686, allocations: 2.334 MB / 0.7191 GB, free: 13.19 MB / 0.5606 GB
Notification: Performance of sort global known variables: time 1e-07/0.6686, allocations: 0 / 0.7191 GB, free: 13.19 MB / 0.5606 GB
Notification: Performance of remove unused functions: time 0.004764/0.6733, allocations: 0.7929 MB / 0.7199 GB, free: 12.4 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.0003727/0.6737, allocations: 143.6 kB / 0.72 GB, free: 12.25 MB / 0.5606 GB
Notification: Performance of simCode: created initialization part: time 0.007416/0.6811, allocations: 3.869 MB / 0.7238 GB, free: 8.387 MB / 0.5606 GB
Notification: Performance of simCode: created event and clocks part: time 8.737e-06/0.6811, allocations: 4.062 kB / 0.7238 GB, free: 8.383 MB / 0.5606 GB
Notification: Performance of simCode: created simulation system equations: time 0.001657/0.6828, allocations: 0.9369 MB / 0.7247 GB, free: 7.438 MB / 0.5606 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002795/0.6856, allocations: 364.1 kB / 0.7251 GB, free: 7.078 MB / 0.5606 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3317/1.017, allocations: 7.285 MB / 0.7322 GB, free: 153.3 MB / 0.5606 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00552/1.023, allocations: 2.723 MB / 0.7349 GB, free: 152.6 MB / 0.5606 GB
Notification: Performance of simCode: alias equations: time 0.003924/1.027, allocations: 1.7 MB / 0.7365 GB, free: 152.5 MB / 0.5606 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005704/1.027, allocations: 201.8 kB / 0.7367 GB, free: 152.5 MB / 0.5606 GB
Notification: Performance of SimCode: time 2.074e-06/1.027, allocations: 0 / 0.7367 GB, free: 152.5 MB / 0.5606 GB
Notification: Performance of Templates: time 0.05246/1.08, allocations: 29.63 MB / 0.7656 GB, free: 131 MB / 0.5606 GB
"
[Timeout remaining time 659]
make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2.makefile [Timeout 660]
(rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 480]
diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_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.321267050690949]