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.0009525/0.0009525, allocations: 88.2 kB / 20.94 MB, free: 3.605 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.0009817/0.0009817, allocations: 169 kB / 24.25 MB, free: 308 kB / 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.9308/0.9308, allocations: 158.6 MB / 186 MB, free: 2.891 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.1454/0.1454, allocations: 32.37 MB / 270.7 MB, free: 14.77 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 1.724e-06/1.724e-06, allocations: 3.938 kB / 347.7 MB, free: 9.785 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.553e-05/2.725e-05, allocations: 4.281 kB / 347.7 MB, free: 9.781 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.006632/0.006659, allocations: 9.137 MB / 356.8 MB, free: 0.6055 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.005058/0.01172, allocations: 3.54 MB / 360.3 MB, free: 13.05 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006641/0.01238, allocations: 55.75 kB / 360.4 MB, free: 13 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001834/0.01421, allocations: 1.802 MB / 362.2 MB, free: 11.19 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002241/0.01646, allocations: 1.75 MB / 363.9 MB, free: 9.434 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008091/0.01727, allocations: 0.6119 MB / 364.6 MB, free: 8.82 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00313/0.0204, allocations: 3.858 MB / 368.4 MB, free: 4.953 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001689/0.02208, allocations: 2.239 MB / 370.7 MB, free: 2.66 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001606/0.02369, allocations: 1.793 MB / 372.4 MB, free: 0.8633 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001547/0.02524, allocations: 1.831 MB / 374.3 MB, free: 15.03 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002486/0.02549, allocations: 240 kB / 374.5 MB, free: 14.79 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00113/0.02662, allocations: 1.076 MB / 375.6 MB, free: 13.71 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008784/0.02749, allocations: 1.624 MB / 377.2 MB, free: 12.09 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007619/0.02826, allocations: 0.9851 MB / 378.2 MB, free: 11.1 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002859/0.03112, allocations: 3.939 MB / 382.1 MB, free: 7.145 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.03112, allocations: 0 / 382.1 MB, free: 7.145 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.03112, allocations: 4 kB / 382.1 MB, free: 7.141 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.35e-05/0.03114, allocations: 0 / 382.1 MB, free: 7.141 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.003886/0.03503, allocations: 4.225 MB / 386.4 MB, free: 2.852 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.777e-05/0.03507, allocations: 12.03 kB / 386.4 MB, free: 2.84 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007845/0.04291, allocations: 2.803 MB / 389.2 MB, free: 32 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0026/0.04551, allocations: 2.039 MB / 391.2 MB, free: 13.95 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.54e-05/0.04561, allocations: 168.7 kB / 391.4 MB, free: 13.79 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002717/0.04588, allocations: 232.2 kB / 391.6 MB, free: 13.56 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00533/0.05121, allocations: 4.818 MB / 396.4 MB, free: 7.875 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.057e-05/0.05127, allocations: 39.62 kB / 396.5 MB, free: 7.836 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000206/0.05148, allocations: 111.9 kB / 396.6 MB, free: 7.727 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001515/0.05299, allocations: 1.668 MB / 398.2 MB, free: 6.059 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003933/0.05693, allocations: 2.489 MB / 400.7 MB, free: 3.555 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02212/0.07905, allocations: 35.93 MB / 436.7 MB, free: 14.43 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002103/0.08115, allocations: 1.029 MB / 437.7 MB, free: 13.35 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004722/0.08162, allocations: 380.1 kB / 438.1 MB, free: 12.96 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001709/0.08179, allocations: 88.3 kB / 438.2 MB, free: 12.88 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.724e-05/0.08183, allocations: 49.89 kB / 438.2 MB, free: 12.82 MB / 378.7 MB Notification: Performance of pre-optimization done (n=117): time 4.449e-06/0.08184, allocations: 0 / 438.2 MB, free: 12.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=141): time 0.01597/0.09781, allocations: 8.792 MB / 447 MB, free: 3.953 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.53e-05/0.09788, allocations: 192.6 kB / 447.2 MB, free: 3.723 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002722/0.1006, allocations: 3.189 MB / 450.4 MB, free: 0.5039 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.816e-05/0.1007, allocations: 41.7 kB / 450.4 MB, free: 468 kB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1431/0.2438, allocations: 2.941 MB / 453.4 MB, free: 104.2 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008511/0.2446, allocations: 0.6041 MB / 454 MB, free: 103.9 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001333/0.2459, allocations: 1.206 MB / 455.2 MB, free: 103.8 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.111e-05/0.246, allocations: 481.2 kB / 455.6 MB, free: 103.3 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001294/0.2473, allocations: 0.6078 MB / 456.2 MB, free: 103.3 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002765/0.2501, allocations: 5.761 MB / 462 MB, free: 96.59 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005253/0.2553, allocations: 6.956 MB / 469 MB, free: 89.5 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.213e-05/0.2554, allocations: 33.59 kB / 469 MB, free: 89.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=719) (initialization): time 0.00609/0.2615, allocations: 5.029 MB / 474 MB, free: 87.68 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.565e-05/0.2615, allocations: 58.16 kB / 474.1 MB, free: 87.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000111/0.2616, allocations: 121.7 kB / 474.2 MB, free: 87.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009512/0.2626, allocations: 461.8 kB / 474.6 MB, free: 87.36 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001967/0.2645, allocations: 1.262 MB / 475.9 MB, free: 86.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00195/0.2665, allocations: 2.893 MB / 478.8 MB, free: 83.42 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001969/0.2685, allocations: 329.5 kB / 479.1 MB, free: 83.15 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002356/0.2687, allocations: 346.1 kB / 479.5 MB, free: 82.82 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.0008699/0.2696, allocations: 0.6076 MB / 480.1 MB, free: 82.29 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003018/0.2699, allocations: 326 kB / 480.4 MB, free: 81.96 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001666/0.2715, allocations: 1.205 MB / 481.6 MB, free: 81.04 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.97e-05/0.2715, allocations: 16 kB / 481.6 MB, free: 81.02 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.005e-05/0.2716, allocations: 7.938 kB / 481.6 MB, free: 81.02 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.109e-05/0.2716, allocations: 7.359 kB / 481.6 MB, free: 81.02 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004982/0.2766, allocations: 4.203 MB / 485.8 MB, free: 77.35 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.131e-06/0.2766, allocations: 4 kB / 485.8 MB, free: 77.35 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005261/0.2771, allocations: 207.7 kB / 486 MB, free: 77.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006975/0.2778, allocations: 291.2 kB / 486.3 MB, free: 76.86 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.91e-05/0.2779, allocations: 27.98 kB / 486.3 MB, free: 76.83 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001458/0.2793, allocations: 2.286 MB / 488.6 MB, free: 74.43 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.2793, allocations: 8.031 kB / 488.6 MB, free: 74.42 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002243/0.2816, allocations: 2.205 MB / 490.8 MB, free: 72.17 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005307/0.2821, allocations: 463.7 kB / 491.3 MB, free: 71.72 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001897/0.2823, allocations: 20 kB / 491.3 MB, free: 71.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006632/0.2829, allocations: 111.8 kB / 491.4 MB, free: 71.59 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001605/0.2831, allocations: 86.39 kB / 491.5 MB, free: 71.51 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.95e-05/0.2832, allocations: 38.55 kB / 491.5 MB, free: 71.48 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00128/0.2844, allocations: 1.365 MB / 492.9 MB, free: 70.11 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2844, allocations: 0 / 492.9 MB, free: 70.11 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002881/0.2873, allocations: 0.9081 MB / 493.8 MB, free: 69.21 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.0003953/0.2877, allocations: 178.5 kB / 494 MB, free: 69.04 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003272/0.291, allocations: 2.728 MB / 496.7 MB, free: 66.32 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.291, allocations: 0 / 496.7 MB, free: 66.32 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005735/0.2916, allocations: 0.6576 MB / 497.4 MB, free: 65.64 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001044/0.2926, allocations: 333 kB / 497.7 MB, free: 65.33 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006598/0.2992, allocations: 6.05 MB / 0.492 GB, free: 59.23 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006654/0.2999, allocations: 1.002 MB / 0.4929 GB, free: 58.21 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001843/0.3017, allocations: 1.477 MB / 0.4944 GB, free: 56.73 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003775/0.3021, allocations: 204.5 kB / 0.4946 GB, free: 56.53 MB / 378.7 MB Notification: Performance of SimCode: time 1.412e-06/0.3021, allocations: 0 / 0.4946 GB, free: 56.53 MB / 378.7 MB Notification: Performance of Templates: time 0.03058/0.3327, allocations: 24.92 MB / 0.5189 GB, free: 31.79 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.089212605031207]