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.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.0009609/0.0009609, 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.001058/0.001058, allocations: 173.1 kB / 24.92 MB, free: 9.18 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.9393/0.9393, allocations: 177.1 MB / 205.3 MB, free: 5.496 MB / 186.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.263/0.263, allocations: 32.8 MB / 294.6 MB, free: 1.18 MB / 266.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.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.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.292e-06/1.292e-06, allocations: 0 / 323.3 MB, free: 9.66 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.96e-05/2.089e-05, allocations: 7.156 kB / 323.3 MB, free: 9.652 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.007321/0.007342, allocations: 8.652 MB / 331.9 MB, free: 0.957 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006084/0.01343, allocations: 3.598 MB / 335.5 MB, free: 13.35 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001057/0.01448, allocations: 59.75 kB / 335.6 MB, free: 13.29 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002253/0.01674, allocations: 2.013 MB / 337.6 MB, free: 11.27 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003003/0.01974, allocations: 1.664 MB / 339.3 MB, free: 9.598 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008826/0.02062, allocations: 0.6196 MB / 339.9 MB, free: 8.977 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.003909/0.02453, allocations: 4.061 MB / 343.9 MB, free: 4.91 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002336/0.02687, allocations: 2.273 MB / 346.2 MB, free: 2.566 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002572/0.02944, allocations: 2.234 MB / 348.4 MB, free: 336 kB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002297/0.03174, allocations: 1.711 MB / 350.2 MB, free: 14.61 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003975/0.03213, allocations: 248 kB / 350.4 MB, free: 14.37 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001501/0.03363, allocations: 1.1 MB / 351.5 MB, free: 13.27 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001183/0.03482, allocations: 1.617 MB / 353.1 MB, free: 11.65 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001023/0.03584, allocations: 0.9695 MB / 354.1 MB, free: 10.68 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00433/0.04017, allocations: 3.885 MB / 358 MB, free: 6.777 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.04018, allocations: 4 kB / 358 MB, free: 6.773 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.04018, allocations: 0 / 358 MB, free: 6.773 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.718e-05/0.04026, allocations: 0 / 358 MB, free: 6.773 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.00473/0.04499, allocations: 3.579 MB / 361.5 MB, free: 3.145 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.028e-05/0.04503, allocations: 12.03 kB / 361.6 MB, free: 3.133 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003784/0.04881, allocations: 1.003 MB / 362.6 MB, free: 2.129 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002512/0.05132, allocations: 1.531 MB / 364.1 MB, free: 0.5586 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000115/0.05144, allocations: 176.8 kB / 364.3 MB, free: 392 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003423/0.05178, allocations: 240.2 kB / 364.5 MB, free: 152 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004913/0.05669, allocations: 3.976 MB / 368.5 MB, free: 11.5 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.627e-05/0.05677, allocations: 43.62 kB / 368.5 MB, free: 11.46 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002535/0.05702, allocations: 119.9 kB / 368.6 MB, free: 11.34 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001771/0.05879, allocations: 1.379 MB / 370 MB, free: 9.961 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00384/0.06263, allocations: 1.931 MB / 371.9 MB, free: 8 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02207/0.0847, allocations: 25.89 MB / 397.8 MB, free: 13.08 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001817/0.08652, allocations: 0.7844 MB / 398.6 MB, free: 12.25 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004816/0.087, allocations: 186.8 kB / 398.8 MB, free: 12.06 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003127/0.09013, allocations: 2.235 MB / 401 MB, free: 9.793 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.78e-05/0.09016, allocations: 42.8 kB / 401.1 MB, free: 9.742 MB / 378.7 MB Notification: Performance of pre-optimization done (n=82): time 2.625e-06/0.09016, allocations: 0 / 401.1 MB, free: 9.742 MB / 378.7 MB Notification: Performance of matching and sorting (n=91): time 0.00566/0.09582, allocations: 2.507 MB / 403.6 MB, free: 7.199 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.736e-05/0.09589, allocations: 191.9 kB / 403.8 MB, free: 6.969 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002661/0.09855, allocations: 2.963 MB / 406.7 MB, free: 3.988 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.6e-05/0.09863, allocations: 41.7 kB / 406.8 MB, free: 3.941 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001307/0.09994, allocations: 2.746 MB / 409.5 MB, free: 1.168 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003042/0.1002, allocations: 429 kB / 409.9 MB, free: 0.7461 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000766/0.101, allocations: 1.056 MB / 411 MB, free: 15.68 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.653e-05/0.1011, allocations: 301.1 kB / 411.3 MB, free: 15.38 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000903/0.102, allocations: 0.6353 MB / 411.9 MB, free: 14.74 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002679/0.1047, allocations: 4.254 MB / 416.2 MB, free: 8.594 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004257/0.1089, allocations: 5.338 MB / 421.5 MB, free: 1.387 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.671e-05/0.109, allocations: 40 kB / 421.6 MB, free: 1.348 MB / 394.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.004995/0.114, allocations: 3.758 MB / 425.3 MB, free: 13.58 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.365e-05/0.1141, allocations: 60 kB / 425.4 MB, free: 13.52 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.385e-05/0.1142, allocations: 132 kB / 425.5 MB, free: 13.39 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000266/0.1144, allocations: 207.6 kB / 425.7 MB, free: 13.18 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001938/0.1164, allocations: 1.283 MB / 427 MB, free: 11.9 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008797/0.1172, allocations: 1.455 MB / 428.4 MB, free: 10.35 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001986/0.1192, allocations: 259.7 kB / 428.7 MB, free: 10.09 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002548/0.1195, allocations: 312.1 kB / 429 MB, free: 9.789 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.0008893/0.1204, allocations: 0.5834 MB / 429.6 MB, free: 9.191 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002534/0.1206, allocations: 167.8 kB / 429.8 MB, free: 9.027 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005277/0.1212, allocations: 443.5 kB / 430.2 MB, free: 8.574 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.534e-05/0.1212, allocations: 12 kB / 430.2 MB, free: 8.562 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.1212, allocations: 0 / 430.2 MB, free: 8.562 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.1212, allocations: 4 kB / 430.2 MB, free: 8.559 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003091/0.1243, allocations: 2.515 MB / 432.7 MB, free: 5.953 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.963e-06/0.1243, allocations: 8.062 kB / 432.7 MB, free: 5.945 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003067/0.1246, allocations: 119.8 kB / 432.8 MB, free: 5.828 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002769/0.1249, allocations: 204.9 kB / 433 MB, free: 5.621 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.135e-05/0.1249, allocations: 19.98 kB / 433.1 MB, free: 5.602 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00062/0.1255, allocations: 1.21 MB / 434.3 MB, free: 4.293 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/0.1255, allocations: 7.938 kB / 434.3 MB, free: 4.285 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009071/0.1264, allocations: 1.204 MB / 435.5 MB, free: 3.008 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002605/0.1267, allocations: 257.9 kB / 435.7 MB, free: 2.754 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001502/0.1268, allocations: 23.94 kB / 435.8 MB, free: 2.73 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004082/0.1273, allocations: 24.12 kB / 435.8 MB, free: 2.707 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.449e-05/0.1273, allocations: 51.84 kB / 435.8 MB, free: 2.656 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.885e-05/0.1274, allocations: 31.88 kB / 435.9 MB, free: 2.625 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0008206/0.1282, allocations: 1.053 MB / 436.9 MB, free: 1.574 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1282, allocations: 0 / 436.9 MB, free: 1.574 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002452/0.1306, allocations: 0.7812 MB / 437.7 MB, free: 0.793 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.0002702/0.1309, allocations: 136.1 kB / 437.8 MB, free: 0.6523 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002548/0.1335, allocations: 2.11 MB / 439.9 MB, free: 14.55 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001409/0.1336, allocations: 96.16 kB / 440 MB, free: 14.45 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003082/0.1339, allocations: 317.2 kB / 440.3 MB, free: 14.12 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001333/0.1352, allocations: 466.3 kB / 440.8 MB, free: 13.66 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00679/0.142, allocations: 5.623 MB / 446.4 MB, free: 7.934 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007869/0.1428, allocations: 0.9587 MB / 447.4 MB, free: 6.953 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001006/0.1438, allocations: 439.2 kB / 447.8 MB, free: 6.52 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005461/0.1444, allocations: 457.2 kB / 448.3 MB, free: 6.074 MB / 426.7 MB Notification: Performance of SimCode: time 1.623e-06/0.1444, allocations: 4 kB / 448.3 MB, free: 6.07 MB / 426.7 MB Notification: Performance of Templates: time 0.1579/0.3023, allocations: 20.48 MB / 468.7 MB, free: 113.3 MB / 426.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 -s gbode -gbm=radauIIA3 -emit_protected -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.642480885144323]