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.001513/0.001513, allocations: 82.64 kB / 21.44 MB, free: 3.059 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.000987/0.000987, allocations: 167.8 kB / 24.84 MB, free: 8.91 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.8645/0.8645, allocations: 158.6 MB / 186.7 MB, free: 2.805 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.1273/0.1273, allocations: 32.37 MB / 271.5 MB, free: 2.449 MB / 250.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 1.753e-06/1.753e-06, allocations: 0 / 348.9 MB, free: 4.824 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.113e-05/2.288e-05, allocations: 6.25 kB / 348.9 MB, free: 4.816 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.1418/0.1418, allocations: 8.955 MB / 357.9 MB, free: 63.04 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.006194/0.148, allocations: 3.506 MB / 361.4 MB, free: 61.18 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00143/0.1494, allocations: 57.31 kB / 361.4 MB, free: 61.16 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00288/0.1523, allocations: 1.795 MB / 363.2 MB, free: 60.41 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004444/0.1568, allocations: 1.74 MB / 365 MB, free: 59.63 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00132/0.1581, allocations: 0.6223 MB / 365.6 MB, free: 59.38 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.005477/0.1636, allocations: 3.873 MB / 369.5 MB, free: 57.35 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002606/0.1662, allocations: 2.237 MB / 371.7 MB, free: 55.77 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00316/0.1693, allocations: 2.097 MB / 373.8 MB, free: 54.48 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002078/0.1714, allocations: 1.825 MB / 375.6 MB, free: 53 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005197/0.1719, allocations: 244 kB / 375.9 MB, free: 52.77 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001413/0.1733, allocations: 1.065 MB / 376.9 MB, free: 51.7 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009419/0.1743, allocations: 1.628 MB / 378.5 MB, free: 50.07 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009755/0.1753, allocations: 0.985 MB / 379.5 MB, free: 49.08 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003217/0.1785, allocations: 3.939 MB / 383.5 MB, free: 45.12 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.1785, allocations: 4 kB / 383.5 MB, free: 45.12 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1785, allocations: 0 / 383.5 MB, free: 45.12 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001371/0.1786, allocations: 0 / 383.5 MB, free: 45.12 MB / 330.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.004413/0.183, allocations: 4.115 MB / 387.6 MB, free: 40.94 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.33e-05/0.1831, allocations: 12.03 kB / 387.6 MB, free: 40.93 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007032/0.1901, allocations: 1.848 MB / 389.4 MB, free: 39.08 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002296/0.1924, allocations: 1.672 MB / 391.1 MB, free: 37.37 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.635e-05/0.1925, allocations: 176.7 kB / 391.3 MB, free: 37.2 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002749/0.1927, allocations: 230.1 kB / 391.5 MB, free: 36.97 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004125/0.1969, allocations: 4.447 MB / 396 MB, free: 31.66 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.803e-05/0.1969, allocations: 35.7 kB / 396 MB, free: 31.62 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001828/0.1971, allocations: 111.9 kB / 396.1 MB, free: 31.51 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001057/0.1981, allocations: 1.453 MB / 397.6 MB, free: 30.06 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002837/0.201, allocations: 1.933 MB / 399.5 MB, free: 28.13 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02304/0.224, allocations: 35.87 MB / 435.4 MB, free: 7.055 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00303/0.2271, allocations: 0.8175 MB / 436.2 MB, free: 6.188 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005232/0.2276, allocations: 251.5 kB / 436.4 MB, free: 5.926 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003889/0.2315, allocations: 2.478 MB / 438.9 MB, free: 3.418 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.459e-05/0.2315, allocations: 41.72 kB / 438.9 MB, free: 3.367 MB / 346.7 MB Notification: Performance of pre-optimization done (n=93): time 4.158e-06/0.2315, allocations: 0 / 438.9 MB, free: 3.367 MB / 346.7 MB Notification: Performance of matching and sorting (n=110): time 0.009906/0.2414, allocations: 3.963 MB / 442.9 MB, free: 15.34 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001067/0.2415, allocations: 196.3 kB / 443.1 MB, free: 15.1 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003196/0.2447, allocations: 3.25 MB / 446.4 MB, free: 11.82 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.743e-05/0.2448, allocations: 33.7 kB / 446.4 MB, free: 11.79 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001669/0.2465, allocations: 3.037 MB / 449.4 MB, free: 8.719 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003825/0.2469, allocations: 0.4965 MB / 449.9 MB, free: 8.219 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009534/0.2478, allocations: 1.215 MB / 451.1 MB, free: 6.992 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001073/0.2479, allocations: 484.7 kB / 451.6 MB, free: 6.516 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000696/0.2486, allocations: 474.5 kB / 452.1 MB, free: 6.047 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00326/0.2519, allocations: 5.826 MB / 457.9 MB, free: 13.75 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004655/0.2565, allocations: 6.831 MB / 464.7 MB, free: 4.484 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.735e-05/0.2566, allocations: 36 kB / 464.8 MB, free: 4.449 MB / 378.7 MB Notification: Performance of matching and sorting (n=706) (initialization): time 0.005838/0.2625, allocations: 4.344 MB / 469.1 MB, free: 100 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.903e-05/0.2625, allocations: 56 kB / 469.2 MB, free: 44 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001158/0.2626, allocations: 128 kB / 469.3 MB, free: 15.91 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000431/0.2631, allocations: 203.5 kB / 469.5 MB, free: 15.71 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002109/0.2652, allocations: 1.22 MB / 470.7 MB, free: 14.49 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001257/0.2664, allocations: 1.973 MB / 472.7 MB, free: 12.4 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002875/0.2693, allocations: 259.6 kB / 472.9 MB, free: 12.15 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000304/0.2696, allocations: 300.1 kB / 473.2 MB, free: 11.86 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 576 * 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 (681): * Single equations (assignments): 677 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001064/0.2707, allocations: 0.6133 MB / 473.8 MB, free: 11.23 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000511/0.2712, allocations: 302.1 kB / 474.1 MB, free: 10.93 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009701/0.2722, allocations: 0.6248 MB / 474.8 MB, free: 10.29 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.656e-05/0.2722, allocations: 15.94 kB / 474.8 MB, free: 10.28 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/0.2722, allocations: 0 / 474.8 MB, free: 10.28 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.179e-05/0.2722, allocations: 7.984 kB / 474.8 MB, free: 10.27 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0051/0.2773, allocations: 3.271 MB / 478.1 MB, free: 6.891 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.354e-06/0.2773, allocations: 4 kB / 478.1 MB, free: 6.887 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004294/0.2777, allocations: 148.1 kB / 478.2 MB, free: 6.742 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001793/0.2779, allocations: 47.59 kB / 478.2 MB, free: 6.691 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.542e-05/0.278, allocations: 23.98 kB / 478.3 MB, free: 6.668 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009987/0.279, allocations: 1.735 MB / 480 MB, free: 4.824 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.279, allocations: 4 kB / 480 MB, free: 4.82 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00161/0.2806, allocations: 1.594 MB / 481.6 MB, free: 3.152 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005465/0.2811, allocations: 361.8 kB / 482 MB, free: 2.797 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001896/0.2813, allocations: 16 kB / 482 MB, free: 2.781 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005048/0.2818, allocations: 27.98 kB / 482 MB, free: 2.754 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.773e-05/0.2819, allocations: 76.3 kB / 482.1 MB, free: 2.68 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.015e-05/0.282, allocations: 28 kB / 482.1 MB, free: 2.652 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001175/0.2831, allocations: 1.292 MB / 483.4 MB, free: 1.363 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.2831, allocations: 0 / 483.4 MB, free: 1.363 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002958/0.2861, allocations: 0.8202 MB / 484.2 MB, free: 0.543 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 (rev.w,damper.phi_rel) * 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 (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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003267/0.2864, allocations: 167 kB / 484.4 MB, free: 376 kB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003128/0.2895, allocations: 2.343 MB / 486.7 MB, free: 14.02 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.092e-06/0.2896, allocations: 0 / 486.7 MB, free: 14.02 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000493/0.29, allocations: 475.5 kB / 487.2 MB, free: 13.54 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001477/0.2915, allocations: 328.4 kB / 487.5 MB, free: 13.23 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008631/0.3002, allocations: 5.855 MB / 493.4 MB, free: 7.258 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009108/0.3011, allocations: 0.9796 MB / 494.3 MB, free: 6.258 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001222/0.3023, allocations: 439.1 kB / 494.8 MB, free: 5.824 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000667/0.303, allocations: 490.1 kB / 495.2 MB, free: 5.344 MB / 410.7 MB Notification: Performance of SimCode: time 2.835e-06/0.303, allocations: 0 / 495.2 MB, free: 5.344 MB / 410.7 MB Notification: Performance of Templates: time 0.1759/0.4789, allocations: 22.78 MB / 0.5059 GB, free: 135.1 MB / 426.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.146056198980659]