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.00149/0.00149, allocations: 80.8 kB / 21.5 MB, free: 2.992 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.001799/0.001799, allocations: 172.4 kB / 24.91 MB, free: 8.266 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.9965/0.9965, allocations: 177.1 MB / 205.3 MB, free: 5.48 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.283/0.283, allocations: 34.25 MB / 296.1 MB, free: 0.7148 MB / 266.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.402e-06/1.402e-06, allocations: 0 / 325.3 MB, free: 7.645 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.669e-05/1.809e-05, allocations: 3.922 kB / 325.3 MB, free: 7.641 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.007397/0.007415, allocations: 8.671 MB / 333.9 MB, free: 14.93 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.00648/0.01389, allocations: 3.591 MB / 337.5 MB, free: 11.33 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009431/0.01484, allocations: 59.75 kB / 337.6 MB, free: 11.27 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002216/0.01705, allocations: 2.016 MB / 339.6 MB, free: 9.246 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002425/0.01948, allocations: 1.668 MB / 341.3 MB, free: 7.57 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008523/0.02033, allocations: 0.6196 MB / 341.9 MB, free: 6.949 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0029/0.02323, allocations: 4.056 MB / 345.9 MB, free: 2.887 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001528/0.02476, allocations: 2.272 MB / 348.2 MB, free: 0.543 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001657/0.02642, allocations: 2.222 MB / 350.4 MB, free: 14.31 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001347/0.02776, allocations: 1.722 MB / 352.2 MB, free: 12.59 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002156/0.02798, allocations: 244 kB / 352.4 MB, free: 12.35 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001225/0.0292, allocations: 1.104 MB / 353.5 MB, free: 11.24 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008393/0.03004, allocations: 1.609 MB / 355.1 MB, free: 9.629 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006968/0.03074, allocations: 0.9812 MB / 356.1 MB, free: 8.645 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002896/0.03363, allocations: 3.881 MB / 360 MB, free: 4.75 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.03364, allocations: 0 / 360 MB, free: 4.75 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.424e-06/0.03364, allocations: 0 / 360 MB, free: 4.75 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.951e-05/0.03367, allocations: 0 / 360 MB, free: 4.75 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: 1211 * Number of variables: 1211 Notification: Performance of Generate backend data structure: time 0.003483/0.03715, allocations: 3.583 MB / 363.6 MB, free: 1.117 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.669e-05/0.0372, allocations: 8.031 kB / 363.6 MB, free: 1.109 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002765/0.03997, allocations: 1.004 MB / 364.6 MB, free: 108 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001642/0.04161, allocations: 1.531 MB / 366.1 MB, free: 14.54 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.021e-05/0.0417, allocations: 176.8 kB / 366.3 MB, free: 14.36 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002535/0.04195, allocations: 236.2 kB / 366.5 MB, free: 14.13 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003406/0.04536, allocations: 3.988 MB / 370.5 MB, free: 9.473 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.382e-05/0.04542, allocations: 35.64 kB / 370.5 MB, free: 9.438 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001862/0.04561, allocations: 119.9 kB / 370.6 MB, free: 9.32 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001084/0.04669, allocations: 1.379 MB / 372 MB, free: 7.938 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002533/0.04923, allocations: 1.941 MB / 374 MB, free: 5.969 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01529/0.06452, allocations: 25.88 MB / 399.8 MB, free: 11.07 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001509/0.06603, allocations: 0.7988 MB / 400.6 MB, free: 10.23 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002124/0.06624, allocations: 185.2 kB / 400.8 MB, free: 10.04 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002337/0.06858, allocations: 2.239 MB / 403.1 MB, free: 7.766 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.862e-05/0.06861, allocations: 42.8 kB / 403.1 MB, free: 7.715 MB / 378.7 MB Notification: Performance of pre-optimization done (n=82): time 2.144e-06/0.06861, allocations: 0 / 403.1 MB, free: 7.715 MB / 378.7 MB Notification: Performance of matching and sorting (n=91): time 0.004986/0.07359, allocations: 2.498 MB / 405.6 MB, free: 5.18 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.854e-05/0.07366, allocations: 191.9 kB / 405.8 MB, free: 4.949 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002003/0.07567, allocations: 2.978 MB / 408.8 MB, free: 1.953 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.229e-05/0.07571, allocations: 33.7 kB / 408.8 MB, free: 1.914 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001188/0.0769, allocations: 2.746 MB / 411.5 MB, free: 15.14 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002057/0.0771, allocations: 421.1 kB / 412 MB, free: 14.72 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007242/0.07783, allocations: 1.06 MB / 413 MB, free: 13.65 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 6.813e-05/0.07789, allocations: 305.1 kB / 413.3 MB, free: 13.35 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009434/0.07884, allocations: 0.6275 MB / 413.9 MB, free: 12.72 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002211/0.08105, allocations: 4.258 MB / 418.2 MB, free: 6.566 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003008/0.08406, allocations: 5.344 MB / 423.5 MB, free: 15.36 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.987e-05/0.08409, allocations: 40 kB / 423.6 MB, free: 15.32 MB / 410.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.003329/0.08742, allocations: 3.746 MB / 427.3 MB, free: 11.56 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.13e-05/0.08747, allocations: 66.03 kB / 427.4 MB, free: 11.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.409e-05/0.08754, allocations: 136.2 kB / 427.5 MB, free: 11.36 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002503/0.08779, allocations: 211.6 kB / 427.7 MB, free: 11.15 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001823/0.08961, allocations: 1.275 MB / 429 MB, free: 9.875 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007879/0.0904, allocations: 1.463 MB / 430.5 MB, free: 8.316 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001483/0.09189, allocations: 259.7 kB / 430.7 MB, free: 8.062 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002314/0.09212, allocations: 308 kB / 431 MB, free: 7.762 MB / 410.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.0006449/0.09276, allocations: 0.5796 MB / 431.6 MB, free: 7.168 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000212/0.09297, allocations: 163.8 kB / 431.8 MB, free: 7.008 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000476/0.09345, allocations: 443.4 kB / 432.2 MB, free: 6.555 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.057e-05/0.09346, allocations: 8 kB / 432.2 MB, free: 6.547 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.66e-06/0.09347, allocations: 4 kB / 432.2 MB, free: 6.543 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.374e-06/0.09347, allocations: 7.969 kB / 432.2 MB, free: 6.535 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002518/0.09599, allocations: 2.514 MB / 434.7 MB, free: 3.93 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.719e-06/0.096, allocations: 7.938 kB / 434.7 MB, free: 3.922 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002998/0.0963, allocations: 115.8 kB / 434.9 MB, free: 3.809 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002775/0.09657, allocations: 213.2 kB / 435.1 MB, free: 3.594 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.592e-05/0.09661, allocations: 23.97 kB / 435.1 MB, free: 3.57 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005752/0.09718, allocations: 1.206 MB / 436.3 MB, free: 2.266 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.776e-06/0.09719, allocations: 8.031 kB / 436.3 MB, free: 2.258 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008488/0.09804, allocations: 1.204 MB / 437.5 MB, free: 0.9805 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002198/0.09826, allocations: 258 kB / 437.8 MB, free: 0.7266 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001524/0.09841, allocations: 19.94 kB / 437.8 MB, free: 0.707 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004089/0.09882, allocations: 16 kB / 437.8 MB, free: 0.6914 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.644e-05/0.0989, allocations: 59.78 kB / 437.9 MB, free: 0.6328 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.717e-05/0.09894, allocations: 24 kB / 437.9 MB, free: 0.6094 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0008205/0.09976, allocations: 1.06 MB / 438.9 MB, free: 15.55 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.09976, allocations: 0 / 438.9 MB, free: 15.55 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001983/0.1017, allocations: 0.7734 MB / 439.7 MB, free: 14.78 MB / 426.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.0002241/0.102, allocations: 136.1 kB / 439.8 MB, free: 14.64 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001747/0.1037, allocations: 2.11 MB / 442 MB, free: 12.53 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001357/0.1039, allocations: 93.84 kB / 442 MB, free: 12.43 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002764/0.1041, allocations: 325.7 kB / 442.4 MB, free: 12.1 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00107/0.1052, allocations: 465.5 kB / 442.8 MB, free: 11.64 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007007/0.1122, allocations: 5.618 MB / 448.4 MB, free: 5.918 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008801/0.1131, allocations: 0.9587 MB / 449.4 MB, free: 4.934 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001146/0.1142, allocations: 439.2 kB / 449.8 MB, free: 4.5 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006327/0.1149, allocations: 449.2 kB / 450.3 MB, free: 4.062 MB / 426.7 MB Notification: Performance of SimCode: time 2.765e-06/0.1149, allocations: 0 / 450.3 MB, free: 4.062 MB / 426.7 MB Notification: Performance of Templates: time 0.1732/0.288, allocations: 20.49 MB / 470.8 MB, free: 117.6 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 -s gbode -gbm=radauIIA3 -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.8529490996152163]