Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009464/0.0009464, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.002693/0.003639, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008729/0.0008729, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001328/0.002201, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9055/0.9055, allocations: 173.4 MB / 186 MB, free: 7.535 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1838/1.089, allocations: 52.48 MB / 238.5 MB, free: 7.637 MB / 234.7 MB " [Timeout remaining time 179] 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.1527/0.1527, allocations: 32.8 MB / 272 MB, free: 6.309 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.03772/0.1904, allocations: 12.54 MB / 284.5 MB, free: 9.727 MB / 282.7 MB " [Timeout remaining time 180] 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_ModelicaTest.MultiBody.Sensors.Distance2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 285.8 MB, free: 8.438 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.886e-05/2.041e-05, allocations: 5.547 kB / 285.8 MB, free: 8.434 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.00757/0.00759, allocations: 8.915 MB / 294.8 MB, free: 15.47 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006005/0.0136, allocations: 3.651 MB / 298.4 MB, free: 11.81 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001221/0.01482, allocations: 67.69 kB / 298.5 MB, free: 11.74 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002154/0.01697, allocations: 1.958 MB / 300.4 MB, free: 9.777 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003168/0.02014, allocations: 1.738 MB / 302.2 MB, free: 8.031 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009752/0.02111, allocations: 0.5767 MB / 302.7 MB, free: 7.453 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003662/0.02478, allocations: 3.755 MB / 306.5 MB, free: 3.688 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002226/0.027, allocations: 2.152 MB / 308.7 MB, free: 1.469 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002663/0.02966, allocations: 2.233 MB / 310.9 MB, free: 15.22 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001718/0.03138, allocations: 1.746 MB / 312.6 MB, free: 13.47 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003512/0.03173, allocations: 252 kB / 312.9 MB, free: 13.23 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00142/0.03315, allocations: 1.127 MB / 314 MB, free: 12.1 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009711/0.03412, allocations: 1.523 MB / 315.5 MB, free: 10.57 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008294/0.03495, allocations: 0.8334 MB / 316.4 MB, free: 9.734 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00379/0.03874, allocations: 3.721 MB / 320.1 MB, free: 6 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.146e-05/0.03876, allocations: 0 / 320.1 MB, free: 6 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.03876, allocations: 7.922 kB / 320.1 MB, free: 5.992 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.728e-05/0.03884, allocations: 0 / 320.1 MB, free: 5.992 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: 1269 * Number of variables: 1269 Notification: Performance of Generate backend data structure: time 0.00552/0.04435, allocations: 4.486 MB / 324.6 MB, free: 1.438 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.548e-05/0.04439, allocations: 12.03 kB / 324.6 MB, free: 1.426 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003697/0.04809, allocations: 1.062 MB / 325.7 MB, free: 372 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1346/0.1827, allocations: 1.557 MB / 327.2 MB, free: 28.32 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001332/0.1828, allocations: 184.5 kB / 327.4 MB, free: 28.31 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000455/0.1832, allocations: 246.8 kB / 327.6 MB, free: 28.3 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005352/0.1886, allocations: 4.094 MB / 331.7 MB, free: 26.52 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.319e-05/0.1887, allocations: 33.27 kB / 331.8 MB, free: 26.52 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002082/0.1889, allocations: 121.9 kB / 331.9 MB, free: 26.52 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001303/0.1902, allocations: 1.397 MB / 333.3 MB, free: 26.51 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00389/0.1941, allocations: 2.002 MB / 335.3 MB, free: 26.41 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01611/0.2102, allocations: 26.38 MB / 361.7 MB, free: 4.137 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001445/0.2116, allocations: 0.7839 MB / 362.4 MB, free: 3.344 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001811/0.2118, allocations: 177.8 kB / 362.6 MB, free: 3.16 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002346/0.2142, allocations: 2.251 MB / 364.9 MB, free: 0.9258 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.586e-05/0.2142, allocations: 42.73 kB / 364.9 MB, free: 0.875 MB / 314.7 MB Notification: Performance of pre-optimization done (n=82): time 4.438e-06/0.2142, allocations: 0 / 364.9 MB, free: 0.875 MB / 314.7 MB Notification: Performance of matching and sorting (n=91): time 0.005432/0.2196, allocations: 2.484 MB / 367.4 MB, free: 14.4 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.895e-05/0.2197, allocations: 144.1 kB / 367.5 MB, free: 14.23 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002281/0.222, allocations: 3.018 MB / 370.5 MB, free: 11.43 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.123e-05/0.222, allocations: 41.69 kB / 370.6 MB, free: 11.38 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001385/0.2234, allocations: 2.835 MB / 373.4 MB, free: 8.527 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002749/0.2237, allocations: 425 kB / 373.8 MB, free: 8.109 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008009/0.2245, allocations: 1.076 MB / 374.9 MB, free: 7.023 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.018e-05/0.2245, allocations: 305.1 kB / 375.2 MB, free: 6.723 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008727/0.2254, allocations: 0.6356 MB / 375.8 MB, free: 6.082 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0026/0.228, allocations: 4.317 MB / 380.2 MB, free: 15.86 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005491/0.2335, allocations: 5.873 MB / 386 MB, free: 8.117 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.356e-05/0.2336, allocations: 40 kB / 386.1 MB, free: 8.078 MB / 346.7 MB Notification: Performance of matching and sorting (n=723) (initialization): time 0.005703/0.2393, allocations: 3.801 MB / 389.9 MB, free: 4.27 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.215e-05/0.2394, allocations: 64 kB / 389.9 MB, free: 4.207 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001631/0.2395, allocations: 140 kB / 390.1 MB, free: 4.07 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003996/0.2399, allocations: 207.7 kB / 390.3 MB, free: 3.863 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002857/0.2428, allocations: 1.38 MB / 391.7 MB, free: 2.48 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001105/0.2439, allocations: 1.474 MB / 393.1 MB, free: 0.9102 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002895/0.2468, allocations: 259.7 kB / 393.4 MB, free: 0.6562 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003476/0.2471, allocations: 316 kB / 393.7 MB, free: 356 kB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 613 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.arrowLine.twoHeadedArrow,distance2.arrow.headAtOrigin,distance1.arrow.arrowLine.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 (698): * Single equations (assignments): 694 * 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.00112/0.2483, allocations: 0.588 MB / 394.3 MB, free: 15.75 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003166/0.2486, allocations: 163.8 kB / 394.4 MB, free: 15.59 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000652/0.2492, allocations: 460.3 kB / 394.9 MB, free: 15.12 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.315e-05/0.2492, allocations: 8 kB / 394.9 MB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.2492, allocations: 4 kB / 394.9 MB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.255e-06/0.2493, allocations: 3.984 kB / 394.9 MB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004275/0.2535, allocations: 2.564 MB / 397.5 MB, free: 12.45 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.86e-05/0.2535, allocations: 19.66 kB / 397.5 MB, free: 12.44 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004432/0.254, allocations: 128.2 kB / 397.6 MB, free: 12.31 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004007/0.2544, allocations: 261.9 kB / 397.9 MB, free: 12.05 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004001/0.2548, allocations: 217 kB / 398.1 MB, free: 11.84 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.659e-05/0.2548, allocations: 16 kB / 398.1 MB, free: 11.82 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007772/0.2556, allocations: 1.21 MB / 399.3 MB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/0.2556, allocations: 4 kB / 399.3 MB, free: 10.51 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001202/0.2568, allocations: 1.205 MB / 400.5 MB, free: 9.227 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002365/0.2571, allocations: 23.97 kB / 400.5 MB, free: 9.203 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000654/0.2577, allocations: 23.98 kB / 400.6 MB, free: 9.18 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001159/0.2578, allocations: 59.8 kB / 400.6 MB, free: 9.121 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.237e-05/0.2579, allocations: 32.08 kB / 400.7 MB, free: 9.09 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001151/0.259, allocations: 1.07 MB / 401.7 MB, free: 8.023 MB / 362.7 MB Notification: Performance of sort global known variables: time 9e-08/0.259, allocations: 0 / 401.7 MB, free: 8.023 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003489/0.2625, allocations: 0.8163 MB / 402.5 MB, free: 7.207 MB / 362.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.0003571/0.2629, allocations: 152 kB / 402.7 MB, free: 7.047 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003071/0.266, allocations: 2.246 MB / 404.9 MB, free: 4.91 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0002098/0.2662, allocations: 99.34 kB / 405 MB, free: 4.809 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004921/0.2667, allocations: 369.5 kB / 405.4 MB, free: 4.43 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002672/0.2693, allocations: 2.321 MB / 407.7 MB, free: 1.828 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01074/0.2801, allocations: 5.945 MB / 413.7 MB, free: 11.79 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001088/0.2812, allocations: 0.9978 MB / 414.7 MB, free: 10.77 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001301/0.2825, allocations: 438.8 kB / 415.1 MB, free: 10.34 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006652/0.2831, allocations: 449.2 kB / 415.5 MB, free: 9.898 MB / 378.7 MB Notification: Performance of SimCode: time 1.512e-06/0.2831, allocations: 0 / 415.5 MB, free: 9.898 MB / 378.7 MB Notification: Performance of Templates: time 0.03572/0.3189, allocations: 19.52 MB / 435 MB, free: 6.492 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.3979035755619407]