Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.001048/0.001048, allocations: 95.2 kB / 20.43 MB, free: 4.145 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.001369/0.001369, allocations: 165 kB / 23.79 MB, free: 0.7812 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9808/0.9808, allocations: 158.6 MB / 185.7 MB, free: 2.918 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1404/0.1404, allocations: 32.37 MB / 270.4 MB, free: 14.71 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.444e-06/2.444e-06, allocations: 0 / 347.7 MB, free: 9.465 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.934e-05/3.178e-05, allocations: 2.312 kB / 347.7 MB, free: 9.461 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.006484/0.006516, allocations: 9.17 MB / 356.8 MB, free: 260 kB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.006265/0.01278, allocations: 3.548 MB / 360.4 MB, free: 12.7 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001492/0.01427, allocations: 55.75 kB / 360.4 MB, free: 12.64 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002679/0.01695, allocations: 1.81 MB / 362.2 MB, free: 10.82 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003802/0.02075, allocations: 1.754 MB / 364 MB, free: 9.062 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001144/0.0219, allocations: 0.608 MB / 364.6 MB, free: 8.453 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004567/0.02646, allocations: 3.871 MB / 368.5 MB, free: 4.574 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002705/0.02917, allocations: 2.235 MB / 370.7 MB, free: 2.285 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002738/0.03191, allocations: 1.789 MB / 372.5 MB, free: 0.4922 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002446/0.03435, allocations: 1.835 MB / 374.3 MB, free: 14.65 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004841/0.03484, allocations: 240 kB / 374.6 MB, free: 14.42 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00156/0.0364, allocations: 1.073 MB / 375.6 MB, free: 13.34 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001172/0.03757, allocations: 1.632 MB / 377.3 MB, free: 11.71 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001166/0.03874, allocations: 0.9812 MB / 378.3 MB, free: 10.72 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004759/0.04349, allocations: 3.943 MB / 382.2 MB, free: 6.766 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.254e-06/0.0435, allocations: 0 / 382.2 MB, free: 6.766 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.0435, allocations: 0 / 382.2 MB, free: 6.766 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001407/0.04364, allocations: 0 / 382.2 MB, free: 6.766 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1219 * Number of variables: 1219 Notification: Performance of Generate backend data structure: time 0.006149/0.04979, allocations: 4.229 MB / 386.4 MB, free: 2.473 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.169e-05/0.04984, allocations: 8.031 kB / 386.4 MB, free: 2.465 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008059/0.0579, allocations: 2.807 MB / 389.2 MB, free: 15.65 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003808/0.06171, allocations: 2.031 MB / 391.3 MB, free: 13.58 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001308/0.06184, allocations: 176.7 kB / 391.4 MB, free: 13.41 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004672/0.06231, allocations: 232.2 kB / 391.7 MB, free: 13.18 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006736/0.06905, allocations: 4.814 MB / 396.5 MB, free: 7.5 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.403e-05/0.06913, allocations: 47.62 kB / 396.5 MB, free: 7.453 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002231/0.06935, allocations: 111.9 kB / 396.6 MB, free: 7.344 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001614/0.07097, allocations: 1.66 MB / 398.3 MB, free: 5.684 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005613/0.07658, allocations: 2.486 MB / 400.8 MB, free: 3.184 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02793/0.1045, allocations: 35.94 MB / 436.7 MB, free: 14.05 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002627/0.1071, allocations: 1.01 MB / 437.7 MB, free: 12.98 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005865/0.1077, allocations: 388.1 kB / 438.1 MB, free: 12.59 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003022/0.108, allocations: 100.3 kB / 438.2 MB, free: 12.5 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.662e-05/0.1081, allocations: 49.83 kB / 438.3 MB, free: 12.44 MB / 378.7 MB Notification: Performance of pre-optimization done (n=117): time 4.609e-06/0.1081, allocations: 0 / 438.3 MB, free: 12.44 MB / 378.7 MB Notification: Performance of matching and sorting (n=141): time 0.01838/0.1265, allocations: 8.787 MB / 447.1 MB, free: 3.574 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.377e-05/0.1265, allocations: 192.6 kB / 447.2 MB, free: 3.344 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003131/0.1297, allocations: 3.186 MB / 450.4 MB, free: 132 kB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002154/0.1299, allocations: 49.7 kB / 450.5 MB, free: 76 kB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1894/0.3192, allocations: 2.933 MB / 453.4 MB, free: 88.61 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000951/0.3202, allocations: 0.5977 MB / 454 MB, free: 88.35 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001391/0.3216, allocations: 1.205 MB / 455.2 MB, free: 88.21 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.567e-05/0.3217, allocations: 484.9 kB / 455.7 MB, free: 87.74 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001097/0.3228, allocations: 0.5989 MB / 456.3 MB, free: 87.73 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002658/0.3254, allocations: 5.759 MB / 462 MB, free: 81.04 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005633/0.331, allocations: 6.954 MB / 469 MB, free: 74.44 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001217/0.3312, allocations: 38.59 kB / 469 MB, free: 74.44 MB / 378.7 MB Notification: Performance of matching and sorting (n=719) (initialization): time 0.008411/0.3396, allocations: 5.046 MB / 474.1 MB, free: 73.7 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.932e-05/0.3396, allocations: 56.59 kB / 474.1 MB, free: 73.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001187/0.3398, allocations: 125.8 kB / 474.3 MB, free: 73.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001174/0.3409, allocations: 461.6 kB / 474.7 MB, free: 73.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002441/0.3434, allocations: 1.26 MB / 476 MB, free: 73.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002217/0.3456, allocations: 2.873 MB / 478.8 MB, free: 71.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00304/0.3486, allocations: 342.5 kB / 479.2 MB, free: 71.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005082/0.3491, allocations: 339.2 kB / 479.5 MB, free: 71.5 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * Number of states: 0 () * Number of discrete variables: 27 (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 (684): * Single equations (assignments): 680 * 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.001276/0.3504, allocations: 0.6097 MB / 480.1 MB, free: 71.22 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004425/0.3509, allocations: 328.8 kB / 480.4 MB, free: 71.06 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001687/0.3525, allocations: 1.202 MB / 481.6 MB, free: 70.89 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-05/0.3526, allocations: 20.88 kB / 481.7 MB, free: 70.88 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.073e-05/0.3526, allocations: 3.312 kB / 481.7 MB, free: 70.88 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.288e-05/0.3526, allocations: 10.42 kB / 481.7 MB, free: 70.88 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005414/0.358, allocations: 4.191 MB / 485.9 MB, free: 67.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.168e-06/0.358, allocations: 8.062 kB / 485.9 MB, free: 67.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005616/0.3586, allocations: 209.9 kB / 486.1 MB, free: 67.35 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007322/0.3593, allocations: 292.4 kB / 486.4 MB, free: 67.19 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.073e-05/0.3594, allocations: 27.31 kB / 486.4 MB, free: 67.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001762/0.3611, allocations: 2.292 MB / 488.7 MB, free: 64.89 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.3611, allocations: 4 kB / 488.7 MB, free: 64.89 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00293/0.3641, allocations: 2.211 MB / 490.9 MB, free: 62.87 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007672/0.3648, allocations: 461.5 kB / 491.4 MB, free: 62.47 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001882/0.365, allocations: 16 kB / 491.4 MB, free: 62.46 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006747/0.3657, allocations: 112.3 kB / 491.5 MB, free: 62.39 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001502/0.3659, allocations: 82 kB / 491.6 MB, free: 62.35 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.009e-05/0.3659, allocations: 38.97 kB / 491.6 MB, free: 62.31 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001561/0.3675, allocations: 1.365 MB / 493 MB, free: 61.19 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3675, allocations: 0 / 493 MB, free: 61.19 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003181/0.3707, allocations: 0.9176 MB / 493.9 MB, free: 60.28 MB / 378.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 (112): * Single equations (assignments): 108 * 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.0003923/0.3711, allocations: 169.3 kB / 494 MB, free: 60.12 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003814/0.3749, allocations: 2.733 MB / 496.8 MB, free: 57.7 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.3749, allocations: 1.125 kB / 496.8 MB, free: 57.7 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006747/0.3756, allocations: 0.6553 MB / 497.4 MB, free: 57.09 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001374/0.3769, allocations: 330.8 kB / 497.8 MB, free: 56.82 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009163/0.3861, allocations: 6.042 MB / 0.492 GB, free: 50.84 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007433/0.3868, allocations: 1.006 MB / 0.493 GB, free: 49.82 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002368/0.3892, allocations: 1.471 MB / 0.4944 GB, free: 48.34 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004981/0.3897, allocations: 204.5 kB / 0.4946 GB, free: 48.14 MB / 378.7 MB Notification: Performance of SimCode: time 3.547e-06/0.3897, allocations: 0 / 0.4946 GB, free: 48.14 MB / 378.7 MB Notification: Performance of Templates: time 0.0381/0.4278, allocations: 24.93 MB / 0.5189 GB, free: 23.41 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.254368253983557]