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.0009624/0.0009624, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001257/0.002219, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.0007406/0.0007406, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009707/0.001711, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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 1.017/1.017, allocations: 177.2 MB / 189.8 MB, free: 5.242 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1005/1.118, allocations: 53.65 MB / 243.4 MB, free: 15.52 MB / 250.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.2757/0.2757, allocations: 34.25 MB / 278.4 MB, free: 15.27 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.05478/0.3305, allocations: 13.1 MB / 291.5 MB, free: 7.332 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 1.703e-06/1.703e-06, allocations: 3.938 kB / 292.8 MB, free: 6.219 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.939e-05/2.109e-05, allocations: 3.844 kB / 292.8 MB, free: 6.215 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.007266/0.007287, allocations: 8.731 MB / 301.6 MB, free: 13.45 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006135/0.01342, allocations: 3.621 MB / 305.2 MB, free: 9.812 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007907/0.01421, allocations: 59.75 kB / 305.2 MB, free: 9.754 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002075/0.01629, allocations: 1.95 MB / 307.2 MB, free: 7.797 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003321/0.01961, allocations: 1.657 MB / 308.8 MB, free: 6.133 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001164/0.02077, allocations: 0.5728 MB / 309.4 MB, free: 5.559 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004142/0.02491, allocations: 3.773 MB / 313.2 MB, free: 1.781 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001976/0.02689, allocations: 2.12 MB / 315.3 MB, free: 15.58 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002235/0.02913, allocations: 2.182 MB / 317.5 MB, free: 13.39 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001669/0.03079, allocations: 1.695 MB / 319.2 MB, free: 11.7 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003138/0.03111, allocations: 248 kB / 319.4 MB, free: 11.45 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00142/0.03253, allocations: 1.104 MB / 320.5 MB, free: 10.35 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009094/0.03344, allocations: 1.453 MB / 322 MB, free: 8.891 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007026/0.03414, allocations: 0.7944 MB / 322.8 MB, free: 8.094 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003151/0.03729, allocations: 3.569 MB / 326.3 MB, free: 4.512 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.567e-06/0.0373, allocations: 3.938 kB / 326.4 MB, free: 4.508 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.0373, allocations: 0 / 326.4 MB, free: 4.508 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.832e-05/0.03736, allocations: 4 kB / 326.4 MB, free: 4.504 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.004551/0.04191, allocations: 4.327 MB / 330.7 MB, free: 112 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/0.04195, allocations: 12.03 kB / 330.7 MB, free: 100 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002975/0.04493, allocations: 1.019 MB / 331.7 MB, free: 15.08 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001791/0.04672, allocations: 1.512 MB / 333.2 MB, free: 13.53 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.629e-05/0.04681, allocations: 176.8 kB / 333.4 MB, free: 13.36 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002838/0.0471, allocations: 236.2 kB / 333.6 MB, free: 13.12 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003812/0.05091, allocations: 3.988 MB / 337.6 MB, free: 8.473 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.515e-05/0.05097, allocations: 43.62 kB / 337.7 MB, free: 8.43 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001924/0.05117, allocations: 119.9 kB / 337.8 MB, free: 8.312 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001332/0.0525, allocations: 1.297 MB / 339.1 MB, free: 7.016 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004464/0.05696, allocations: 1.931 MB / 341 MB, free: 5.062 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02344/0.0804, allocations: 25.88 MB / 366.9 MB, free: 10.15 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001699/0.0821, allocations: 0.7729 MB / 367.7 MB, free: 9.336 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002272/0.08233, allocations: 190 kB / 367.8 MB, free: 9.141 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003196/0.08552, allocations: 2.235 MB / 370.1 MB, free: 6.875 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.09e-05/0.08555, allocations: 38.8 kB / 370.1 MB, free: 6.828 MB / 362.7 MB Notification: Performance of pre-optimization done (n=82): time 2.414e-06/0.08556, allocations: 0 / 370.1 MB, free: 6.828 MB / 362.7 MB Notification: Performance of matching and sorting (n=91): time 0.005682/0.09124, allocations: 2.484 MB / 372.6 MB, free: 4.305 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.379e-05/0.09129, allocations: 136.5 kB / 372.7 MB, free: 4.141 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002668/0.09396, allocations: 2.974 MB / 375.7 MB, free: 1.148 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.622e-05/0.09402, allocations: 37.7 kB / 375.7 MB, free: 1.105 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001595/0.09561, allocations: 2.743 MB / 378.5 MB, free: 14.33 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003361/0.09595, allocations: 425 kB / 378.9 MB, free: 13.91 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000879/0.09683, allocations: 1.06 MB / 380 MB, free: 12.84 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.986e-05/0.09693, allocations: 301.1 kB / 380.3 MB, free: 12.54 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00104/0.09797, allocations: 0.6275 MB / 380.9 MB, free: 11.91 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003385/0.1014, allocations: 4.262 MB / 385.1 MB, free: 5.75 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005426/0.1068, allocations: 5.765 MB / 390.9 MB, free: 14.12 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001076/0.1069, allocations: 36 kB / 390.9 MB, free: 14.08 MB / 394.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.005803/0.1127, allocations: 3.754 MB / 394.7 MB, free: 10.32 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.682e-05/0.1128, allocations: 60 kB / 394.8 MB, free: 10.26 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001446/0.1129, allocations: 140 kB / 394.9 MB, free: 10.12 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003596/0.1133, allocations: 216.3 kB / 395.1 MB, free: 9.906 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002306/0.1156, allocations: 1.365 MB / 396.5 MB, free: 8.539 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001037/0.1166, allocations: 1.459 MB / 397.9 MB, free: 6.977 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003213/0.1198, allocations: 263.8 kB / 398.2 MB, free: 6.719 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005737/0.1204, allocations: 308 kB / 398.5 MB, free: 6.418 MB / 394.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.001187/0.1216, allocations: 0.5834 MB / 399.1 MB, free: 5.82 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002722/0.1218, allocations: 167.7 kB / 399.2 MB, free: 5.656 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006271/0.1225, allocations: 443.5 kB / 399.7 MB, free: 5.211 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.795e-05/0.1225, allocations: 11.98 kB / 399.7 MB, free: 5.199 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.1225, allocations: 0 / 399.7 MB, free: 5.199 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.646e-06/0.1225, allocations: 4 kB / 399.7 MB, free: 5.195 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002995/0.1255, allocations: 2.507 MB / 402.2 MB, free: 2.598 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.949e-05/0.1255, allocations: 12 kB / 402.2 MB, free: 2.586 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003366/0.1259, allocations: 127.8 kB / 402.3 MB, free: 2.461 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002413/0.1261, allocations: 254 kB / 402.6 MB, free: 2.211 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003265/0.1264, allocations: 217.2 kB / 402.8 MB, free: 1.992 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.048e-05/0.1265, allocations: 16 kB / 402.8 MB, free: 1.977 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007248/0.1272, allocations: 1.213 MB / 404 MB, free: 0.6641 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.1272, allocations: 4 kB / 404 MB, free: 0.6602 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009746/0.1282, allocations: 1.209 MB / 405.2 MB, free: 15.38 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001475/0.1283, allocations: 19.94 kB / 405.3 MB, free: 15.36 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004295/0.1287, allocations: 27.97 kB / 405.3 MB, free: 15.34 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.794e-05/0.1288, allocations: 55.8 kB / 405.3 MB, free: 15.28 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.151e-05/0.1289, allocations: 27.98 kB / 405.4 MB, free: 15.25 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0008283/0.1297, allocations: 1.049 MB / 406.4 MB, free: 14.21 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.71e-07/0.1297, allocations: 0 / 406.4 MB, free: 14.21 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002453/0.1322, allocations: 0.7811 MB / 407.2 MB, free: 13.43 MB / 410.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.0002921/0.1324, allocations: 144.2 kB / 407.3 MB, free: 13.28 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002283/0.1347, allocations: 2.232 MB / 409.6 MB, free: 11.07 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001521/0.1349, allocations: 96.16 kB / 409.7 MB, free: 10.96 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003736/0.1353, allocations: 366.8 kB / 410 MB, free: 10.59 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001992/0.1372, allocations: 2.225 MB / 412.2 MB, free: 8.098 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00918/0.1464, allocations: 5.738 MB / 418 MB, free: 2.254 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008824/0.1473, allocations: 0.9592 MB / 418.9 MB, free: 1.273 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001092/0.1484, allocations: 423.2 kB / 419.3 MB, free: 0.8555 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005508/0.149, allocations: 437.2 kB / 419.8 MB, free: 440 kB / 410.7 MB Notification: Performance of SimCode: time 2.865e-06/0.149, allocations: 4 kB / 419.8 MB, free: 436 kB / 410.7 MB Notification: Performance of Templates: time 0.2079/0.3569, allocations: 19.03 MB / 438.8 MB, free: 112.5 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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.675133773125708]