Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.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.001356/0.001356, allocations: 80.92 kB / 21.49 MB, free: 2.996 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.001561/0.001561, allocations: 169 kB / 24.91 MB, free: 8.723 MB / 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 0.8771/0.8771, allocations: 177.1 MB / 205.3 MB, free: 4.492 MB / 186.7 MB " [Timeout remaining time 179] 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.1367/0.1367, allocations: 34.27 MB / 296.1 MB, free: 13.98 MB / 282.7 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.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 9.92e-07/9.92e-07, allocations: 0 / 325.2 MB, free: 0.7969 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.156e-05/1.255e-05, allocations: 2.312 kB / 325.2 MB, free: 0.793 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01738/0.01739, allocations: 8.614 MB / 333.8 MB, free: 8.137 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01219/0.02959, allocations: 3.596 MB / 337.4 MB, free: 4.527 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007596/0.03035, allocations: 55.75 kB / 337.5 MB, free: 4.473 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005848/0.03619, allocations: 2.044 MB / 339.5 MB, free: 2.422 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006073/0.04227, allocations: 1.695 MB / 341.2 MB, free: 0.7188 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001028/0.04329, allocations: 0.6314 MB / 341.9 MB, free: 88 kB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.1503/0.1936, allocations: 4.029 MB / 345.9 MB, free: 19.71 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003448/0.1971, allocations: 2.397 MB / 348.3 MB, free: 19.42 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003519/0.2006, allocations: 2.263 MB / 350.6 MB, free: 18.98 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002373/0.203, allocations: 1.711 MB / 352.3 MB, free: 18.67 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006357/0.2036, allocations: 244.4 kB / 352.5 MB, free: 18.67 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001449/0.2051, allocations: 1.065 MB / 353.6 MB, free: 18.54 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00099/0.2061, allocations: 1.613 MB / 355.2 MB, free: 17.89 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001213/0.2073, allocations: 0.9729 MB / 356.2 MB, free: 17.46 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003515/0.2108, allocations: 3.89 MB / 360 MB, free: 15.12 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.2108, allocations: 0 / 360 MB, free: 15.12 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.422e-06/0.2108, allocations: 0 / 360 MB, free: 15.12 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001385/0.2109, allocations: 0 / 360 MB, free: 15.12 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: 1211 * Number of variables: 1211 Notification: Performance of Generate backend data structure: time 0.004068/0.215, allocations: 3.583 MB / 363.6 MB, free: 11.81 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.481e-05/0.215, allocations: 8.594 kB / 363.6 MB, free: 11.8 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002677/0.2177, allocations: 1.004 MB / 364.6 MB, free: 10.84 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002617/0.2203, allocations: 1.517 MB / 366.2 MB, free: 9.422 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.524e-05/0.2204, allocations: 175.8 kB / 366.3 MB, free: 9.277 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002823/0.2207, allocations: 238.5 kB / 366.6 MB, free: 9.078 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003865/0.2246, allocations: 3.986 MB / 370.6 MB, free: 4.805 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.754e-05/0.2246, allocations: 39.75 kB / 370.6 MB, free: 4.785 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001888/0.2248, allocations: 121.5 kB / 370.7 MB, free: 4.699 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009725/0.2258, allocations: 1.38 MB / 372.1 MB, free: 3.344 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002858/0.2286, allocations: 1.94 MB / 374 MB, free: 1.582 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01939/0.248, allocations: 25.9 MB / 399.9 MB, free: 7.605 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001604/0.2496, allocations: 0.7897 MB / 400.7 MB, free: 6.809 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002226/0.2499, allocations: 185.4 kB / 400.9 MB, free: 6.617 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003025/0.2529, allocations: 2.238 MB / 403.1 MB, free: 4.387 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.177e-05/0.2529, allocations: 45.7 kB / 403.2 MB, free: 4.336 MB / 346.7 MB Notification: Performance of pre-optimization done (n=82): time 3.867e-06/0.2529, allocations: 0 / 403.2 MB, free: 4.336 MB / 346.7 MB Notification: Performance of matching and sorting (n=91): time 0.005782/0.2587, allocations: 2.491 MB / 405.7 MB, free: 1.855 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.324e-05/0.2588, allocations: 191.9 kB / 405.9 MB, free: 1.625 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002453/0.2612, allocations: 2.975 MB / 408.8 MB, free: 15.05 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.944e-05/0.2613, allocations: 37.7 kB / 408.9 MB, free: 15.01 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001199/0.2625, allocations: 2.746 MB / 411.6 MB, free: 12.23 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002628/0.2628, allocations: 425 kB / 412 MB, free: 11.82 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007845/0.2635, allocations: 1.063 MB / 413.1 MB, free: 10.75 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.411e-05/0.2636, allocations: 305.1 kB / 413.4 MB, free: 10.45 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008617/0.2645, allocations: 0.6304 MB / 414 MB, free: 9.812 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002519/0.267, allocations: 4.257 MB / 418.3 MB, free: 3.719 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003917/0.2709, allocations: 5.347 MB / 423.6 MB, free: 12.58 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.85e-05/0.271, allocations: 40 kB / 423.7 MB, free: 12.54 MB / 378.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.004369/0.2754, allocations: 3.746 MB / 427.4 MB, free: 8.785 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.553e-05/0.2754, allocations: 63.94 kB / 427.5 MB, free: 8.723 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001/0.2755, allocations: 136.1 kB / 427.6 MB, free: 8.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003125/0.2758, allocations: 203.7 kB / 427.8 MB, free: 8.387 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001832/0.2777, allocations: 1.24 MB / 429 MB, free: 7.145 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009235/0.2786, allocations: 1.451 MB / 430.5 MB, free: 5.598 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002175/0.2808, allocations: 259.6 kB / 430.7 MB, free: 5.344 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004459/0.2812, allocations: 304 kB / 431 MB, free: 5.047 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 604 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.twoHeadedArrow,distance2.arrow.headAtOrigin,distance1.arrow.twoHeadedArrow,distance1.arrow.headAtOrigin,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[1],distance1.arrowColor[3],distance1.arrowColor[2],distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.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 (689): * Single equations (assignments): 685 * 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.001055/0.2823, allocations: 0.595 MB / 431.6 MB, free: 4.441 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003271/0.2826, allocations: 163.8 kB / 431.8 MB, free: 4.281 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005335/0.2831, allocations: 443.4 kB / 432.2 MB, free: 3.832 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.312e-05/0.2831, allocations: 12 kB / 432.2 MB, free: 3.82 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.2831, allocations: 0 / 432.2 MB, free: 3.82 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.765e-06/0.2831, allocations: 7.984 kB / 432.3 MB, free: 3.812 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003373/0.2865, allocations: 2.503 MB / 434.8 MB, free: 1.219 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.943e-06/0.2865, allocations: 4 kB / 434.8 MB, free: 1.215 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002977/0.2868, allocations: 107.8 kB / 434.9 MB, free: 1.109 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003032/0.2871, allocations: 217.2 kB / 435.1 MB, free: 0.8906 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.726e-05/0.2872, allocations: 16 kB / 435.1 MB, free: 0.875 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007151/0.2879, allocations: 1.22 MB / 436.3 MB, free: 15.55 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.2879, allocations: 8.125 kB / 436.3 MB, free: 15.55 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001132/0.289, allocations: 1.201 MB / 437.5 MB, free: 14.27 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003875/0.2894, allocations: 265.9 kB / 437.8 MB, free: 14.01 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001704/0.2896, allocations: 16 kB / 437.8 MB, free: 14 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004322/0.29, allocations: 23.92 kB / 437.8 MB, free: 13.97 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.652e-05/0.2901, allocations: 56.84 kB / 437.9 MB, free: 13.92 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.82e-05/0.2901, allocations: 24 kB / 437.9 MB, free: 13.89 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001076/0.2912, allocations: 1.053 MB / 439 MB, free: 12.84 MB / 394.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2912, allocations: 4.031 kB / 439 MB, free: 12.84 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003104/0.2943, allocations: 0.7811 MB / 439.7 MB, free: 12.06 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 (Revolute1.phi,Revolute1.w) * Number of discrete variables: 1 (LessEqualThreshold1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (69): * Single equations (assignments): 65 * 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.0003286/0.2946, allocations: 144.1 kB / 439.9 MB, free: 11.91 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002594/0.2972, allocations: 2.109 MB / 442 MB, free: 9.809 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001436/0.2974, allocations: 93.84 kB / 442.1 MB, free: 9.711 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003632/0.2977, allocations: 322.4 kB / 442.4 MB, free: 9.379 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001529/0.2993, allocations: 472.4 kB / 442.9 MB, free: 8.922 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007449/0.3067, allocations: 5.63 MB / 448.5 MB, free: 3.191 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007672/0.3075, allocations: 0.9545 MB / 449.4 MB, free: 2.211 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001084/0.3086, allocations: 439.2 kB / 449.9 MB, free: 1.777 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005214/0.3091, allocations: 445.2 kB / 450.3 MB, free: 1.344 MB / 394.7 MB Notification: Performance of SimCode: time 1.603e-06/0.3091, allocations: 0 / 450.3 MB, free: 1.344 MB / 394.7 MB Notification: Performance of Templates: time 0.0349/0.344, allocations: 20.48 MB / 470.8 MB, free: 13.1 MB / 426.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.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: 3.7357105356641114]