Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001843/0.001843, allocations: 87.67 kB / 20.96 MB, free: 3.441 MB / 18.57 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.002014/0.002014, allocations: 161.3 kB / 24.27 MB, free: 136 kB / 18.57 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.566/1.566, allocations: 177.1 MB / 204.6 MB, free: 5.59 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3712/0.3712, allocations: 32.8 MB / 293.9 MB, free: 1.211 MB / 266.7 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0.0_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.403e-06/1.403e-06, allocations: 0 / 375.2 MB, free: 5.016 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.946e-05/4.087e-05, allocations: 10.31 kB / 375.3 MB, free: 5.004 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01306/0.0131, allocations: 8.632 MB / 383.9 MB, free: 12.33 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.00808/0.02118, allocations: 3.469 MB / 387.4 MB, free: 8.852 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001297/0.02248, allocations: 55.75 kB / 387.4 MB, free: 8.797 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003698/0.02618, allocations: 1.775 MB / 389.2 MB, free: 7.016 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00416/0.03034, allocations: 1.641 MB / 390.8 MB, free: 5.367 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001365/0.0317, allocations: 0.6235 MB / 391.4 MB, free: 4.742 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.005875/0.03758, allocations: 3.954 MB / 395.4 MB, free: 0.7812 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002882/0.04046, allocations: 2.145 MB / 397.5 MB, free: 14.58 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002835/0.04329, allocations: 1.691 MB / 399.2 MB, free: 12.88 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002865/0.04616, allocations: 1.722 MB / 401 MB, free: 11.16 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004584/0.04662, allocations: 224 kB / 401.2 MB, free: 10.94 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002052/0.04867, allocations: 1.053 MB / 402.2 MB, free: 9.883 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001645/0.05031, allocations: 1.511 MB / 403.7 MB, free: 8.367 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001277/0.05159, allocations: 0.911 MB / 404.7 MB, free: 7.453 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007372/0.05896, allocations: 5.482 MB / 410.1 MB, free: 1.953 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.05897, allocations: 0 / 410.1 MB, free: 1.953 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.05897, allocations: 0 / 410.1 MB, free: 1.953 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.906e-05/0.05907, allocations: 0 / 410.1 MB, free: 1.953 MB / 378.7 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.00956/0.06863, allocations: 4.337 MB / 414.5 MB, free: 13.55 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.645e-05/0.06868, allocations: 8.031 kB / 414.5 MB, free: 13.54 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01769/0.08637, allocations: 2.733 MB / 417.2 MB, free: 10.8 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007022/0.09339, allocations: 2 MB / 419.2 MB, free: 8.77 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001736/0.09357, allocations: 160.5 kB / 419.4 MB, free: 8.609 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006136/0.09418, allocations: 220.2 kB / 419.6 MB, free: 8.395 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01066/0.1048, allocations: 4.92 MB / 424.5 MB, free: 2.625 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001194/0.105, allocations: 47.67 kB / 424.6 MB, free: 2.578 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003236/0.1053, allocations: 103.9 kB / 424.7 MB, free: 2.477 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002895/0.1082, allocations: 1.539 MB / 426.2 MB, free: 0.9375 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008498/0.1167, allocations: 2.606 MB / 428.8 MB, free: 14.32 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2237/0.3404, allocations: 37.47 MB / 466.3 MB, free: 68.59 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004923/0.3453, allocations: 1.001 MB / 467.3 MB, free: 68.45 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009574/0.3462, allocations: 380.2 kB / 467.6 MB, free: 68.4 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003844/0.3466, allocations: 97.78 kB / 467.7 MB, free: 68.4 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.774e-05/0.3467, allocations: 47.41 kB / 467.8 MB, free: 68.36 MB / 410.7 MB Notification: Performance of pre-optimization done (n=108): time 5.029e-06/0.3467, allocations: 3.062 kB / 467.8 MB, free: 68.36 MB / 410.7 MB Notification: Performance of matching and sorting (n=132): time 0.04509/0.3918, allocations: 8.641 MB / 476.4 MB, free: 65.51 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.906e-05/0.3919, allocations: 200.8 kB / 476.6 MB, free: 65.29 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007038/0.3989, allocations: 3.857 MB / 480.5 MB, free: 63.62 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002723/0.3992, allocations: 46.7 kB / 480.5 MB, free: 63.58 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001626/0.4008, allocations: 2.983 MB / 483.5 MB, free: 61.41 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006081/0.4014, allocations: 0.598 MB / 484.1 MB, free: 60.99 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001429/0.4028, allocations: 1.366 MB / 485.5 MB, free: 60.27 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.903e-05/0.4029, allocations: 480.7 kB / 485.9 MB, free: 59.8 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001217/0.4041, allocations: 0.634 MB / 486.6 MB, free: 59.69 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003043/0.4072, allocations: 5.826 MB / 492.4 MB, free: 52.75 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005856/0.413, allocations: 7.062 MB / 499.5 MB, free: 45.05 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001186/0.4131, allocations: 38.16 kB / 499.5 MB, free: 45.04 MB / 410.7 MB Notification: Performance of matching and sorting (n=694) (initialization): time 0.01095/0.4241, allocations: 4.997 MB / 0.4927 GB, free: 43.2 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001052/0.4242, allocations: 54.94 kB / 0.4927 GB, free: 43.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001929/0.4244, allocations: 118.3 kB / 0.4928 GB, free: 43.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001845/0.4262, allocations: 457.7 kB / 0.4933 GB, free: 43.17 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004177/0.4304, allocations: 1.216 MB / 0.4945 GB, free: 43.02 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0035/0.4339, allocations: 3.001 MB / 0.4974 GB, free: 40.65 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004805/0.4387, allocations: 323.5 kB / 0.4977 GB, free: 40.54 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008616/0.4396, allocations: 329.5 kB / 0.498 GB, free: 40.5 MB / 410.7 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.001729/0.4413, allocations: 0.6688 MB / 0.4987 GB, free: 39.98 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006689/0.442, allocations: 311.2 kB / 0.499 GB, free: 39.81 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002791/0.4448, allocations: 1.178 MB / 0.5001 GB, free: 39.41 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.106e-05/0.4448, allocations: 14.97 kB / 0.5001 GB, free: 39.41 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.224e-05/0.4448, allocations: 3.406 kB / 0.5001 GB, free: 39.41 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.221e-05/0.4448, allocations: 10.84 kB / 0.5001 GB, free: 39.41 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008664/0.4535, allocations: 4.746 MB / 0.5048 GB, free: 37.32 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.905e-06/0.4535, allocations: 0 / 0.5048 GB, free: 37.32 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009187/0.4544, allocations: 195.3 kB / 0.505 GB, free: 37.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001238/0.4556, allocations: 297.7 kB / 0.5053 GB, free: 37.27 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.161e-05/0.4557, allocations: 22.39 kB / 0.5053 GB, free: 37.26 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002339/0.4581, allocations: 2.357 MB / 0.5076 GB, free: 35.26 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.4581, allocations: 0 / 0.5076 GB, free: 35.26 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004016/0.4621, allocations: 2.265 MB / 0.5098 GB, free: 34.15 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008768/0.463, allocations: 277.4 kB / 0.5101 GB, free: 33.97 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000574/0.4635, allocations: 26.12 kB / 0.5101 GB, free: 33.95 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001472/0.465, allocations: 99.84 kB / 0.5102 GB, free: 33.94 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002214/0.4652, allocations: 69.02 kB / 0.5102 GB, free: 33.93 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.696e-05/0.4653, allocations: 35.16 kB / 0.5103 GB, free: 33.93 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003379/0.4687, allocations: 1.571 MB / 0.5118 GB, free: 32.99 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.4687, allocations: 0 / 0.5118 GB, free: 32.99 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004624/0.4733, allocations: 0.8593 MB / 0.5126 GB, free: 32.13 MB / 410.7 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.0004828/0.4738, allocations: 172.5 kB / 0.5128 GB, free: 31.96 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005706/0.4795, allocations: 2.898 MB / 0.5156 GB, free: 29.36 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.721e-06/0.4795, allocations: 0 / 0.5156 GB, free: 29.36 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001066/0.4806, allocations: 0.6841 MB / 0.5163 GB, free: 28.71 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002692/0.4833, allocations: 329.5 kB / 0.5166 GB, free: 28.44 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01126/0.4945, allocations: 5.759 MB / 0.5222 GB, free: 23.1 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002833/0.4974, allocations: 1.889 MB / 0.5241 GB, free: 21.74 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003508/0.5009, allocations: 1.436 MB / 0.5255 GB, free: 20.92 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005664/0.5014, allocations: 198.5 kB / 0.5257 GB, free: 20.73 MB / 410.7 MB Notification: Performance of SimCode: time 1.733e-06/0.5014, allocations: 0 / 0.5257 GB, free: 20.73 MB / 410.7 MB Notification: Performance of Templates: time 0.0637/0.5651, allocations: 23.92 MB / 0.549 GB, free: 14.62 MB / 426.7 MB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_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_4.0.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.68498316698242]