Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.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.002173/0.002173, 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.002499/0.002499, 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.481/1.481, allocations: 230.3 MB / 258 MB, free: 8.227 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.2225/0.2225, allocations: 46.89 MB / 361.3 MB, free: 4.531 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.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance")
translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.00231/0.00231, allocations: 75.88 kB / 0.497 GB, free: 7.598 MB / 366.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.386/0.3883, allocations: 66.01 MB / 0.5615 GB, free: 4.613 MB / 398.1 MB
Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01198/0.4003, allocations: 9.006 MB / 0.5703 GB, free: 11.57 MB / 414.1 MB
Notification: Performance of NFInst.instExpressions: time 0.008335/0.4086, allocations: 3.594 MB / 0.5738 GB, free: 7.961 MB / 414.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.00174/0.4104, allocations: 55.75 kB / 0.5739 GB, free: 7.906 MB / 414.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.003633/0.414, allocations: 1.69 MB / 0.5755 GB, free: 6.211 MB / 414.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.004584/0.4186, allocations: 1.587 MB / 0.5771 GB, free: 4.621 MB / 414.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.001491/0.4201, allocations: 0.5652 MB / 0.5776 GB, free: 4.055 MB / 414.1 MB
Notification: Performance of NFFlatten.flatten: time 0.005563/0.4257, allocations: 3.572 MB / 0.5811 GB, free: 484 kB / 414.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.002438/0.4281, allocations: 1.634 MB / 0.5827 GB, free: 14.79 MB / 430.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.001939/0.43, allocations: 1.117 MB / 0.5838 GB, free: 13.66 MB / 430.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.002416/0.4324, allocations: 1.67 MB / 0.5854 GB, free: 11.99 MB / 430.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0005348/0.433, allocations: 216 kB / 0.5856 GB, free: 11.78 MB / 430.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.002189/0.4352, allocations: 1.135 MB / 0.5867 GB, free: 10.64 MB / 430.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.001611/0.4368, allocations: 1.445 MB / 0.5882 GB, free: 9.191 MB / 430.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.001916/0.4387, allocations: 1.619 MB / 0.5897 GB, free: 7.562 MB / 430.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.007461/0.4462, allocations: 5.412 MB / 0.595 GB, free: 2.129 MB / 430.1 MB
Notification: Performance of FrontEnd - DAE generated: time 7.103e-06/0.4462, allocations: 0 / 0.595 GB, free: 2.129 MB / 430.1 MB
Notification: Performance of FrontEnd: time 2.094e-06/0.4462, allocations: 0 / 0.595 GB, free: 2.129 MB / 430.1 MB
Notification: Performance of Transformations before backend: time 0.0001473/0.4463, allocations: 4 kB / 0.595 GB, free: 2.125 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: 1141
 * Number of variables: 1141
Notification: Performance of Generate backend data structure: time 0.008847/0.4552, allocations: 3.678 MB / 0.5986 GB, free: 14.39 MB / 446.1 MB
Notification: Performance of prepare preOptimizeDAE: time 5.148e-05/0.4552, allocations: 8.031 kB / 0.5986 GB, free: 14.38 MB / 446.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0162/0.4714, allocations: 2.343 MB / 0.6009 GB, free: 12.04 MB / 446.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.006711/0.4781, allocations: 2.123 MB / 0.603 GB, free: 9.875 MB / 446.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000147/0.4783, allocations: 164.5 kB / 0.6031 GB, free: 9.711 MB / 446.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005438/0.4788, allocations: 220 kB / 0.6034 GB, free: 9.496 MB / 446.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.01226/0.4911, allocations: 7.406 MB / 0.6106 GB, free: 1.465 MB / 446.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 0.0001027/0.4912, allocations: 35.7 kB / 0.6106 GB, free: 1.43 MB / 446.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003284/0.4915, allocations: 103.9 kB / 0.6107 GB, free: 1.328 MB / 446.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002776/0.4943, allocations: 1.546 MB / 0.6122 GB, free: 15.77 MB / 462.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01208/0.5064, allocations: 6.32 MB / 0.6184 GB, free: 9.438 MB / 462.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03752/0.5439, allocations: 30.1 MB / 0.6478 GB, free: 10.42 MB / 494.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.004346/0.5482, allocations: 1.703 MB / 0.6495 GB, free: 8.68 MB / 494.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.001421/0.5496, allocations: 1.047 MB / 0.6505 GB, free: 7.621 MB / 494.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.0002901/0.5499, allocations: 88.22 kB / 0.6506 GB, free: 7.535 MB / 494.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.874e-05/0.55, allocations: 58.94 kB / 0.6506 GB, free: 7.469 MB / 494.1 MB
Notification: Performance of pre-optimization done (n=108): time 2.905e-06/0.55, allocations: 0 / 0.6506 GB, free: 7.469 MB / 494.1 MB
Notification: Performance of matching and sorting (n=132): time 0.03764/0.5876, allocations: 11.76 MB / 0.6621 GB, free: 11.64 MB / 0.4981 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001513/0.5878, allocations: 200.5 kB / 0.6623 GB, free: 11.4 MB / 0.4981 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005432/0.5932, allocations: 3.612 MB / 0.6658 GB, free: 7.789 MB / 0.4981 GB
Notification: Performance of collectPreVariables (initialization): time 0.0002964/0.5935, allocations: 49.69 kB / 0.6659 GB, free: 7.734 MB / 0.4981 GB
Notification: Performance of collectInitialEqns (initialization): time 0.002297/0.5958, allocations: 2.643 MB / 0.6684 GB, free: 5.066 MB / 0.4981 GB
Notification: Performance of collectInitialBindings (initialization): time 0.0007674/0.5966, allocations: 0.5467 MB / 0.669 GB, free: 4.516 MB / 0.4981 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.001543/0.5981, allocations: 1.091 MB / 0.67 GB, free: 3.414 MB / 0.4981 GB
Notification: Performance of setup shared object (initialization): time 0.0001473/0.5983, allocations: 305.1 kB / 0.6703 GB, free: 3.113 MB / 0.4981 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.002657/0.6009, allocations: 1.744 MB / 0.672 GB, free: 1.363 MB / 0.4981 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.005606/0.6065, allocations: 5.084 MB / 0.677 GB, free: 10.59 MB / 0.5137 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.009721/0.6163, allocations: 7.362 MB / 0.6842 GB, free: 1.566 MB / 0.5137 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001148/0.6164, allocations: 32 kB / 0.6842 GB, free: 1.535 MB / 0.5137 GB
Notification: Performance of matching and sorting (n=694) (initialization): time 0.01448/0.6308, allocations: 7.064 MB / 0.6911 GB, free: 10.46 MB / 0.5294 GB
Notification: Performance of prepare postOptimizeDAE: time 9.264e-05/0.6309, allocations: 59.94 kB / 0.6912 GB, free: 10.4 MB / 0.5294 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001785/0.6311, allocations: 116 kB / 0.6913 GB, free: 10.29 MB / 0.5294 GB
Notification: Performance of postOpt tearingSystem (initialization): time 0.001771/0.6329, allocations: 0.6414 MB / 0.6919 GB, free: 9.645 MB / 0.5294 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003895/0.6368, allocations: 1.224 MB / 0.6931 GB, free: 8.418 MB / 0.5294 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006357/0.6431, allocations: 3.968 MB / 0.697 GB, free: 4.332 MB / 0.5294 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006102/0.6492, allocations: 291.5 kB / 0.6973 GB, free: 4.051 MB / 0.5294 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008304/0.6501, allocations: 335.9 kB / 0.6976 GB, free: 3.723 MB / 0.5294 GB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 539
 * Number of states: 0 ()
 * Number of discrete variables: 29 (Distance1.arrow.twoHeadedArrow,Distance1.arrow.headAtOrigin,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 (659):
 * Single equations (assignments): 655
 * 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,11,100.0%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 0 systems
Notification: Performance of prepare postOptimizeDAE: time 0.003461/0.6535, allocations: 1.699 MB / 0.6992 GB, free: 2.016 MB / 0.5294 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007403/0.6543, allocations: 305.9 kB / 0.6995 GB, free: 1.715 MB / 0.5294 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00445/0.6587, allocations: 2.084 MB / 0.7016 GB, free: 15.61 MB / 0.545 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.711e-05/0.6588, allocations: 16 kB / 0.7016 GB, free: 15.6 MB / 0.545 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 1.26e-05/0.6588, allocations: 4 kB / 0.7016 GB, free: 15.59 MB / 0.545 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.291e-05/0.6588, allocations: 3.984 kB / 0.7016 GB, free: 15.59 MB / 0.545 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0114/0.6702, allocations: 5.577 MB / 0.707 GB, free: 9.93 MB / 0.545 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.191e-05/0.6702, allocations: 0 / 0.707 GB, free: 9.93 MB / 0.545 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001014/0.6712, allocations: 203.7 kB / 0.7072 GB, free: 9.73 MB / 0.545 GB
Notification: Performance of postOpt tearingSystem (simulation): time 0.001423/0.6726, allocations: 488.2 kB / 0.7077 GB, free: 9.25 MB / 0.545 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.965e-05/0.6727, allocations: 20 kB / 0.7077 GB, free: 9.23 MB / 0.545 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004523/0.6772, allocations: 3.338 MB / 0.711 GB, free: 5.781 MB / 0.545 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/0.6773, allocations: 3.938 kB / 0.711 GB, free: 5.777 MB / 0.545 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007008/0.6843, allocations: 4.187 MB / 0.7151 GB, free: 1.555 MB / 0.545 GB
Notification: Performance of postOpt removeConstants (simulation): time 0.001034/0.6853, allocations: 301.7 kB / 0.7154 GB, free: 1.258 MB / 0.545 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003193/0.6856, allocations: 16 kB / 0.7154 GB, free: 1.242 MB / 0.545 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001187/0.6868, allocations: 83.89 kB / 0.7155 GB, free: 1.16 MB / 0.545 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001975/0.687, allocations: 64.53 kB / 0.7155 GB, free: 1.098 MB / 0.545 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001193/0.6871, allocations: 39.98 kB / 0.7156 GB, free: 1.059 MB / 0.545 GB
Notification: Performance of sorting global known variables: time 0.003659/0.6908, allocations: 2.248 MB / 0.7178 GB, free: 14.82 MB / 0.5606 GB
Notification: Performance of sort global known variables: time 1.11e-07/0.6908, allocations: 0 / 0.7178 GB, free: 14.82 MB / 0.5606 GB
Notification: Performance of remove unused functions: time 0.003866/0.6946, allocations: 0.793 MB / 0.7185 GB, free: 14.03 MB / 0.5606 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 (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.000388/0.695, allocations: 146.9 kB / 0.7187 GB, free: 13.87 MB / 0.5606 GB
Notification: Performance of simCode: created initialization part: time 0.006865/0.7019, allocations: 3.972 MB / 0.7225 GB, free: 9.918 MB / 0.5606 GB
Notification: Performance of simCode: created event and clocks part: time 5.13e-06/0.7019, allocations: 1.125 kB / 0.7225 GB, free: 9.918 MB / 0.5606 GB
Notification: Performance of simCode: created simulation system equations: time 0.001685/0.7036, allocations: 1.055 MB / 0.7236 GB, free: 8.848 MB / 0.5606 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002102/0.7057, allocations: 359 kB / 0.7239 GB, free: 8.496 MB / 0.5606 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01339/0.7191, allocations: 7.241 MB / 0.731 GB, free: 1.203 MB / 0.5606 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2813/1, allocations: 2.628 MB / 0.7336 GB, free: 153.9 MB / 0.5606 GB
Notification: Performance of simCode: alias equations: time 0.004038/1.004, allocations: 1.692 MB / 0.7352 GB, free: 153.9 MB / 0.5606 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005453/1.005, allocations: 201.8 kB / 0.7354 GB, free: 153.9 MB / 0.5606 GB
Notification: Performance of SimCode: time 1.272e-06/1.005, allocations: 2 kB / 0.7354 GB, free: 153.9 MB / 0.5606 GB
Notification: Performance of Templates: time 0.0497/1.055, allocations: 29.59 MB / 0.7643 GB, free: 133.2 MB / 0.5606 GB
"
[Timeout remaining time 659]
make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.makefile [Timeout 660]
(rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 480]
diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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.077313129790127]