Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001072/0.001072, allocations: 88.86 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001162/0.001162, allocations: 163.5 kB / 24.91 MB, free: 8.715 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9761/0.9761, allocations: 177 MB / 205.2 MB, free: 5.059 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2499/0.2499, allocations: 34.86 MB / 296.6 MB, free: 404 kB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.382e-06/1.382e-06, allocations: 0 / 325.9 MB, free: 7.121 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.912e-05/2.05e-05, allocations: 3.406 kB / 325.9 MB, free: 7.117 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.00709/0.00711, allocations: 8.658 MB / 334.6 MB, free: 14.42 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.006021/0.01313, allocations: 3.598 MB / 338.2 MB, free: 10.81 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001113/0.01424, allocations: 55.75 kB / 338.3 MB, free: 10.76 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002427/0.01667, allocations: 2.02 MB / 340.3 MB, free: 8.73 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003091/0.01976, allocations: 1.664 MB / 341.9 MB, free: 7.059 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009797/0.02074, allocations: 0.6196 MB / 342.6 MB, free: 6.438 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.004299/0.02504, allocations: 4.056 MB / 346.6 MB, free: 2.379 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003073/0.02811, allocations: 2.28 MB / 348.9 MB, free: 28 kB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002629/0.03074, allocations: 2.218 MB / 351.1 MB, free: 13.8 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001978/0.03272, allocations: 1.722 MB / 352.8 MB, free: 12.08 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004769/0.0332, allocations: 244 kB / 353.1 MB, free: 11.84 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001312/0.03451, allocations: 1.092 MB / 354.2 MB, free: 10.75 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009789/0.03549, allocations: 1.621 MB / 355.8 MB, free: 9.121 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001044/0.03653, allocations: 0.9734 MB / 356.8 MB, free: 8.145 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00365/0.04018, allocations: 3.892 MB / 360.7 MB, free: 4.238 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.04019, allocations: 0 / 360.7 MB, free: 4.238 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.353e-06/0.04019, allocations: 0 / 360.7 MB, free: 4.238 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001235/0.04031, allocations: 0 / 360.7 MB, free: 4.238 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.005039/0.04535, allocations: 3.587 MB / 364.2 MB, free: 0.6016 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.575e-05/0.04539, allocations: 8.031 kB / 364.2 MB, free: 0.5938 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002989/0.04838, allocations: 1.003 MB / 365.3 MB, free: 15.59 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002039/0.05041, allocations: 1.524 MB / 366.8 MB, free: 14.03 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.377e-05/0.05051, allocations: 180.8 kB / 367 MB, free: 13.85 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002646/0.05077, allocations: 232.2 kB / 367.2 MB, free: 13.62 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004667/0.05544, allocations: 3.984 MB / 371.2 MB, free: 8.973 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.644e-05/0.05552, allocations: 43.62 kB / 371.2 MB, free: 8.93 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000253/0.05577, allocations: 119.9 kB / 371.3 MB, free: 8.812 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001537/0.05731, allocations: 1.379 MB / 372.7 MB, free: 7.43 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004166/0.06147, allocations: 1.939 MB / 374.6 MB, free: 5.461 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02274/0.08421, allocations: 25.87 MB / 400.5 MB, free: 10.57 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002135/0.08635, allocations: 0.8019 MB / 401.3 MB, free: 9.723 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003071/0.08665, allocations: 186.1 kB / 401.5 MB, free: 9.531 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003516/0.09017, allocations: 2.235 MB / 403.7 MB, free: 7.266 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.487e-05/0.0902, allocations: 46.78 kB / 403.8 MB, free: 7.211 MB / 378.7 MB Notification: Performance of pre-optimization done (n=82): time 3.837e-06/0.09021, allocations: 3.938 kB / 403.8 MB, free: 7.207 MB / 378.7 MB Notification: Performance of matching and sorting (n=91): time 0.007335/0.09754, allocations: 2.492 MB / 406.3 MB, free: 4.676 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.303e-05/0.09762, allocations: 191.9 kB / 406.5 MB, free: 4.445 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002968/0.1006, allocations: 2.978 MB / 409.4 MB, free: 1.449 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.592e-05/0.1006, allocations: 33.7 kB / 409.5 MB, free: 1.41 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001488/0.1021, allocations: 2.746 MB / 412.2 MB, free: 14.63 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003368/0.1025, allocations: 417.1 kB / 412.6 MB, free: 14.22 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001039/0.1035, allocations: 1.064 MB / 413.7 MB, free: 13.15 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.941e-05/0.1036, allocations: 305.1 kB / 414 MB, free: 12.85 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001206/0.1048, allocations: 0.6197 MB / 414.6 MB, free: 12.22 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002996/0.1078, allocations: 4.278 MB / 418.9 MB, free: 6.051 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004609/0.1124, allocations: 5.331 MB / 424.2 MB, free: 14.85 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.347e-05/0.1125, allocations: 40 kB / 424.3 MB, free: 14.81 MB / 410.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.008368/0.1208, allocations: 3.746 MB / 428 MB, free: 11.05 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.15e-05/0.1209, allocations: 67.98 kB / 428.1 MB, free: 10.99 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001708/0.1211, allocations: 132 kB / 428.2 MB, free: 10.86 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004748/0.1216, allocations: 216.4 kB / 428.4 MB, free: 10.64 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003618/0.1252, allocations: 1.271 MB / 429.7 MB, free: 9.371 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001428/0.1266, allocations: 1.459 MB / 431.1 MB, free: 7.816 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004378/0.131, allocations: 271.8 kB / 431.4 MB, free: 7.551 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006898/0.1317, allocations: 300 kB / 431.7 MB, free: 7.258 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.001558/0.1333, allocations: 0.5795 MB / 432.3 MB, free: 6.664 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005793/0.1338, allocations: 171.8 kB / 432.4 MB, free: 6.496 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001015/0.1348, allocations: 435.5 kB / 432.9 MB, free: 6.051 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.333e-05/0.1349, allocations: 12 kB / 432.9 MB, free: 6.039 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.192e-05/0.1349, allocations: 8 kB / 432.9 MB, free: 6.031 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.01e-05/0.1349, allocations: 3.984 kB / 432.9 MB, free: 6.027 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004822/0.1397, allocations: 2.51 MB / 435.4 MB, free: 3.426 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.167e-06/0.1397, allocations: 4 kB / 435.4 MB, free: 3.422 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005203/0.1402, allocations: 119.8 kB / 435.5 MB, free: 3.305 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005003/0.1407, allocations: 213.2 kB / 435.7 MB, free: 3.09 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.594e-05/0.1408, allocations: 16 kB / 435.7 MB, free: 3.074 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001007/0.1418, allocations: 1.202 MB / 436.9 MB, free: 1.773 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.1418, allocations: 7.938 kB / 437 MB, free: 1.766 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002035/0.1439, allocations: 1.216 MB / 438.2 MB, free: 492 kB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006357/0.1445, allocations: 258 kB / 438.4 MB, free: 232 kB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003046/0.1448, allocations: 19.94 kB / 438.4 MB, free: 212 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007874/0.1456, allocations: 19.98 kB / 438.5 MB, free: 192 kB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001426/0.1457, allocations: 51.86 kB / 438.5 MB, free: 140 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.516e-05/0.1458, allocations: 35.91 kB / 438.5 MB, free: 104 kB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001839/0.1476, allocations: 1.049 MB / 439.6 MB, free: 15.05 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.1477, allocations: 0 / 439.6 MB, free: 15.05 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005144/0.1528, allocations: 0.7734 MB / 440.4 MB, free: 14.28 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.0004381/0.1532, allocations: 140.2 kB / 440.5 MB, free: 14.14 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004319/0.1576, allocations: 2.12 MB / 442.6 MB, free: 12.02 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0002662/0.1578, allocations: 92.16 kB / 442.7 MB, free: 11.92 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006188/0.1584, allocations: 318.7 kB / 443 MB, free: 11.59 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002617/0.1611, allocations: 478.3 kB / 443.5 MB, free: 11.13 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009175/0.1702, allocations: 5.614 MB / 449.1 MB, free: 5.41 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008373/0.1711, allocations: 0.9625 MB / 450.1 MB, free: 4.422 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.00108/0.1721, allocations: 431.2 kB / 450.5 MB, free: 3.996 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005833/0.1727, allocations: 461.2 kB / 450.9 MB, free: 3.547 MB / 426.7 MB Notification: Performance of SimCode: time 1.523e-06/0.1727, allocations: 0 / 450.9 MB, free: 3.547 MB / 426.7 MB Notification: Performance of Templates: time 0.1659/0.3386, allocations: 20.48 MB / 471.4 MB, free: 116.7 MB / 426.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_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.831027038861066]