Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001772/0.001772, allocations: 84.92 kB / 20.68 MB, free: 1.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002231/0.002231, allocations: 164.6 kB / 23.95 MB, free: 4.168 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.531/1.531, allocations: 177.1 MB / 204.3 MB, free: 9.184 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.219/0.219, allocations: 34.27 MB / 295 MB, free: 14.58 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+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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_4.1.0_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.823e-06/1.823e-06, allocations: 0 / 442.7 MB, free: 5.43 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.76e-05/3.942e-05, allocations: 2.281 kB / 442.7 MB, free: 5.426 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.2019/0.2019, allocations: 7.933 MB / 450.6 MB, free: 15.22 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00687/0.2088, allocations: 3.376 MB / 454 MB, free: 13.59 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001471/0.2103, allocations: 55.62 kB / 454 MB, free: 13.57 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003339/0.2136, allocations: 1.702 MB / 455.7 MB, free: 12.86 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004525/0.2181, allocations: 1.638 MB / 457.4 MB, free: 12.11 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001506/0.2196, allocations: 0.607 MB / 458 MB, free: 11.87 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005451/0.2251, allocations: 3.951 MB / 461.9 MB, free: 10.37 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003143/0.2282, allocations: 2.079 MB / 464 MB, free: 9.43 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002955/0.2312, allocations: 1.684 MB / 465.7 MB, free: 8.719 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002918/0.2341, allocations: 1.698 MB / 467.4 MB, free: 8.043 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009256/0.235, allocations: 224.9 kB / 467.6 MB, free: 8.043 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002542/0.2376, allocations: 1.046 MB / 468.6 MB, free: 7.641 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001685/0.2393, allocations: 1.51 MB / 470.2 MB, free: 6.746 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001513/0.2408, allocations: 0.9067 MB / 471.1 MB, free: 6.227 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007013/0.2478, allocations: 5.463 MB / 476.5 MB, free: 2.602 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.2478, allocations: 0 / 476.5 MB, free: 2.602 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.2478, allocations: 0.8125 kB / 476.5 MB, free: 2.602 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002374/0.248, allocations: 0 / 476.5 MB, free: 2.602 MB / 366.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.009879/0.2579, allocations: 3.704 MB / 480.2 MB, free: 15.96 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.916e-05/0.258, allocations: 8.938 kB / 480.2 MB, free: 15.96 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01857/0.2765, allocations: 2.405 MB / 482.6 MB, free: 14.05 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006139/0.2827, allocations: 2.119 MB / 484.8 MB, free: 11.89 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001797/0.2828, allocations: 160.5 kB / 484.9 MB, free: 11.73 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008505/0.2837, allocations: 220.2 kB / 485.1 MB, free: 11.52 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01388/0.2976, allocations: 7.461 MB / 492.6 MB, free: 3.422 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001061/0.2977, allocations: 40.25 kB / 492.6 MB, free: 3.383 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003859/0.2981, allocations: 107.9 kB / 492.7 MB, free: 3.277 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00291/0.301, allocations: 1.539 MB / 494.3 MB, free: 1.73 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01308/0.3141, allocations: 6.311 MB / 0.4889 GB, free: 11.42 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03954/0.3536, allocations: 28.56 MB / 0.5167 GB, free: 13.96 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004928/0.3585, allocations: 1.748 MB / 0.5185 GB, free: 12.18 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001673/0.3602, allocations: 1.052 MB / 0.5195 GB, free: 11.11 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000302/0.3605, allocations: 84.44 kB / 0.5196 GB, free: 11.03 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.061e-05/0.3605, allocations: 51 kB / 0.5196 GB, free: 10.97 MB / 430.1 MB Notification: Performance of pre-optimization done (n=108): time 3.757e-06/0.3605, allocations: 0 / 0.5196 GB, free: 10.97 MB / 430.1 MB Notification: Performance of matching and sorting (n=132): time 0.0403/0.4008, allocations: 12.14 MB / 0.5315 GB, free: 14.77 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001338/0.401, allocations: 192.6 kB / 0.5317 GB, free: 14.54 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005051/0.406, allocations: 3.445 MB / 0.535 GB, free: 11.07 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002306/0.4063, allocations: 45.7 kB / 0.5351 GB, free: 11.02 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002172/0.4084, allocations: 2.649 MB / 0.5376 GB, free: 8.344 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007163/0.4091, allocations: 0.5508 MB / 0.5382 GB, free: 7.789 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001579/0.4107, allocations: 1.072 MB / 0.5392 GB, free: 6.707 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.4109, allocations: 305.1 kB / 0.5395 GB, free: 6.406 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002838/0.4137, allocations: 1.74 MB / 0.5412 GB, free: 4.656 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006084/0.4198, allocations: 5.134 MB / 0.5462 GB, free: 13.82 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01055/0.4303, allocations: 7.357 MB / 0.5534 GB, free: 4.809 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001233/0.4304, allocations: 32 kB / 0.5534 GB, free: 4.777 MB / 462.1 MB Notification: Performance of matching and sorting (n=694) (initialization): time 0.01465/0.4451, allocations: 7.04 MB / 0.5603 GB, free: 13.73 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000134/0.4452, allocations: 56 kB / 0.5604 GB, free: 13.67 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002215/0.4455, allocations: 120 kB / 0.5605 GB, free: 13.55 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001874/0.4473, allocations: 0.6412 MB / 0.5611 GB, free: 12.91 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004234/0.4516, allocations: 1.216 MB / 0.5623 GB, free: 11.69 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00646/0.458, allocations: 3.94 MB / 0.5662 GB, free: 7.656 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005034/0.4631, allocations: 323.5 kB / 0.5665 GB, free: 7.34 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001007/0.4641, allocations: 328 kB / 0.5668 GB, free: 7.02 MB / 478.1 MB 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.003826/0.4679, allocations: 1.71 MB / 0.5684 GB, free: 5.301 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007836/0.4687, allocations: 281.2 kB / 0.5687 GB, free: 5.027 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004705/0.4734, allocations: 2.053 MB / 0.5707 GB, free: 2.957 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.448e-05/0.4734, allocations: 16 kB / 0.5707 GB, free: 2.941 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.345e-05/0.4734, allocations: 4 kB / 0.5707 GB, free: 2.938 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.705e-05/0.4734, allocations: 3.984 kB / 0.5707 GB, free: 2.934 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01195/0.4854, allocations: 4.873 MB / 0.5755 GB, free: 14 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.381e-05/0.4854, allocations: 0 / 0.5755 GB, free: 14 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00112/0.4865, allocations: 199.7 kB / 0.5757 GB, free: 13.81 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00159/0.4881, allocations: 484.3 kB / 0.5762 GB, free: 13.33 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001497/0.4883, allocations: 27.98 kB / 0.5762 GB, free: 13.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004885/0.4932, allocations: 3.315 MB / 0.5794 GB, free: 9.887 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.4932, allocations: 0 / 0.5794 GB, free: 9.887 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007567/0.5007, allocations: 4.154 MB / 0.5835 GB, free: 5.703 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001224/0.5019, allocations: 278 kB / 0.5837 GB, free: 5.43 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007661/0.5027, allocations: 27.98 kB / 0.5838 GB, free: 5.402 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001863/0.5046, allocations: 99.84 kB / 0.5839 GB, free: 5.305 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002641/0.5048, allocations: 80.39 kB / 0.5839 GB, free: 5.223 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001234/0.505, allocations: 36 kB / 0.584 GB, free: 5.188 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004703/0.5097, allocations: 1.999 MB / 0.5859 GB, free: 3.188 MB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5097, allocations: 0 / 0.5859 GB, free: 3.188 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005422/0.5151, allocations: 0.8593 MB / 0.5868 GB, free: 2.328 MB / 494.1 MB 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.000617/0.5157, allocations: 163 kB / 0.5869 GB, free: 2.156 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008436/0.5241, allocations: 3.974 MB / 0.5908 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 7.203e-06/0.5241, allocations: 0 / 0.5908 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002015/0.5262, allocations: 1.062 MB / 0.5918 GB, free: 13.12 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002811/0.529, allocations: 309.7 kB / 0.5921 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01614/0.5451, allocations: 7.139 MB / 0.5991 GB, free: 5.633 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004324/0.5494, allocations: 2.077 MB / 0.6011 GB, free: 3.516 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.004574/0.554, allocations: 1.661 MB / 0.6028 GB, free: 1.848 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009426/0.555, allocations: 200.4 kB / 0.6029 GB, free: 1.652 MB / 0.4981 GB Notification: Performance of SimCode: time 1.062e-06/0.555, allocations: 0 / 0.6029 GB, free: 1.652 MB / 0.4981 GB Notification: Performance of Templates: time 0.057/0.612, allocations: 23.81 MB / 0.6262 GB, free: 10.19 MB / 0.5294 GB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_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: 6.835479624569416]