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.0009338/0.0009338, 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.004344/0.004344, allocations: 173.2 kB / 24.92 MB, free: 9.188 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.9666/0.9666, allocations: 177.1 MB / 205.3 MB, free: 5.473 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.3198/0.3198, allocations: 32.8 MB / 294.6 MB, free: 1.242 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.563e-06/1.563e-06, allocations: 0 / 323.2 MB, free: 9.719 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.705e-05/2.861e-05, allocations: 3.672 kB / 323.2 MB, free: 9.715 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.0109/0.01093, allocations: 8.616 MB / 331.8 MB, free: 1.055 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00889/0.01982, allocations: 3.59 MB / 335.4 MB, free: 13.45 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002098/0.02192, allocations: 59.75 kB / 335.5 MB, free: 13.39 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004668/0.02659, allocations: 2.048 MB / 337.5 MB, free: 11.34 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005648/0.03224, allocations: 1.696 MB / 339.2 MB, free: 9.637 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001754/0.03399, allocations: 0.6313 MB / 339.8 MB, free: 9.004 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.006675/0.04066, allocations: 4.053 MB / 343.9 MB, free: 4.945 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003274/0.04394, allocations: 2.394 MB / 346.3 MB, free: 2.48 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002697/0.04664, allocations: 2.257 MB / 348.6 MB, free: 224 kB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001654/0.04829, allocations: 1.714 MB / 350.3 MB, free: 14.5 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003252/0.04861, allocations: 248 kB / 350.5 MB, free: 14.26 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00121/0.04982, allocations: 1.065 MB / 351.6 MB, free: 13.19 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009518/0.05078, allocations: 1.617 MB / 353.2 MB, free: 11.57 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007748/0.05155, allocations: 0.9734 MB / 354.2 MB, free: 10.59 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002861/0.05441, allocations: 3.877 MB / 358 MB, free: 6.703 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.05442, allocations: 0 / 358 MB, free: 6.703 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.05442, allocations: 0 / 358 MB, free: 6.703 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.873e-05/0.05446, allocations: 0 / 358 MB, free: 6.703 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.003469/0.05793, allocations: 3.587 MB / 361.6 MB, free: 3.066 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.256e-05/0.05796, allocations: 12.03 kB / 361.6 MB, free: 3.055 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002609/0.06057, allocations: 0.9996 MB / 362.6 MB, free: 2.055 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001614/0.06218, allocations: 1.531 MB / 364.2 MB, free: 496 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.251e-05/0.06226, allocations: 180.8 kB / 364.3 MB, free: 312 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002563/0.06252, allocations: 236.2 kB / 364.6 MB, free: 76 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003251/0.06577, allocations: 3.984 MB / 368.6 MB, free: 11.42 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.345e-05/0.06582, allocations: 39.67 kB / 368.6 MB, free: 11.38 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001861/0.06601, allocations: 115.9 kB / 368.7 MB, free: 11.27 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001073/0.06708, allocations: 1.379 MB / 370.1 MB, free: 9.887 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002372/0.06946, allocations: 1.939 MB / 372 MB, free: 7.918 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01444/0.0839, allocations: 25.87 MB / 397.9 MB, free: 13.02 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001444/0.08534, allocations: 0.7957 MB / 398.7 MB, free: 12.18 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002161/0.08556, allocations: 178.8 kB / 398.9 MB, free: 12 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00234/0.0879, allocations: 2.243 MB / 401.1 MB, free: 9.723 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.982e-05/0.08793, allocations: 46.72 kB / 401.2 MB, free: 9.668 MB / 378.7 MB Notification: Performance of pre-optimization done (n=82): time 2.344e-06/0.08793, allocations: 4 kB / 401.2 MB, free: 9.664 MB / 378.7 MB Notification: Performance of matching and sorting (n=91): time 0.005066/0.09299, allocations: 2.496 MB / 403.7 MB, free: 7.133 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.505e-05/0.09306, allocations: 191.9 kB / 403.9 MB, free: 6.902 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002008/0.09507, allocations: 2.971 MB / 406.8 MB, free: 3.914 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.676e-05/0.09511, allocations: 41.69 kB / 406.9 MB, free: 3.867 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001223/0.09634, allocations: 2.746 MB / 409.6 MB, free: 1.094 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002348/0.09657, allocations: 421.1 kB / 410 MB, free: 0.6797 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007705/0.09734, allocations: 1.064 MB / 411.1 MB, free: 15.61 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.887e-05/0.09742, allocations: 305.1 kB / 411.4 MB, free: 15.3 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008456/0.09827, allocations: 0.6236 MB / 412 MB, free: 14.68 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002546/0.1008, allocations: 4.258 MB / 416.3 MB, free: 8.52 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003488/0.1043, allocations: 5.347 MB / 421.6 MB, free: 1.305 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.946e-05/0.1043, allocations: 40 kB / 421.6 MB, free: 1.266 MB / 394.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.003572/0.1079, allocations: 3.742 MB / 425.4 MB, free: 13.51 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.297e-05/0.108, allocations: 72.05 kB / 425.5 MB, free: 13.44 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.709e-05/0.1081, allocations: 132 kB / 425.6 MB, free: 13.31 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002664/0.1083, allocations: 203.7 kB / 425.8 MB, free: 13.11 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001762/0.1101, allocations: 1.236 MB / 427 MB, free: 11.87 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000805/0.1109, allocations: 1.463 MB / 428.5 MB, free: 10.31 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001658/0.1125, allocations: 255.7 kB / 428.7 MB, free: 10.06 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002246/0.1128, allocations: 308 kB / 429 MB, free: 9.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.0007666/0.1135, allocations: 0.5952 MB / 429.6 MB, free: 9.152 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002051/0.1137, allocations: 159.8 kB / 429.8 MB, free: 8.996 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004751/0.1142, allocations: 439.5 kB / 430.2 MB, free: 8.547 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.2e-05/0.1142, allocations: 12 kB / 430.2 MB, free: 8.535 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.603e-06/0.1142, allocations: 0 / 430.2 MB, free: 8.535 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.1142, allocations: 7.938 kB / 430.2 MB, free: 8.527 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002688/0.1169, allocations: 2.514 MB / 432.8 MB, free: 5.922 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.155e-06/0.1169, allocations: 8 kB / 432.8 MB, free: 5.914 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002715/0.1172, allocations: 108.2 kB / 432.9 MB, free: 5.809 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002693/0.1175, allocations: 212.9 kB / 433.1 MB, free: 5.594 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.393e-05/0.1175, allocations: 19.98 kB / 433.1 MB, free: 5.574 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005603/0.1181, allocations: 1.202 MB / 434.3 MB, free: 4.273 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/0.1181, allocations: 11.88 kB / 434.3 MB, free: 4.262 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008311/0.1189, allocations: 1.201 MB / 435.5 MB, free: 2.988 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002258/0.1191, allocations: 262 kB / 435.8 MB, free: 2.73 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001569/0.1193, allocations: 23.92 kB / 435.8 MB, free: 2.707 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003937/0.1197, allocations: 16 kB / 435.8 MB, free: 2.691 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001005/0.1198, allocations: 59.78 kB / 435.9 MB, free: 2.633 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.572e-05/0.1198, allocations: 28.03 kB / 435.9 MB, free: 2.605 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0007874/0.1206, allocations: 1.049 MB / 436.9 MB, free: 1.559 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1206, allocations: 4 kB / 436.9 MB, free: 1.555 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001966/0.1226, allocations: 0.7773 MB / 437.7 MB, free: 0.7773 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.0002451/0.1228, allocations: 138 kB / 437.9 MB, free: 0.6367 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001833/0.1247, allocations: 2.119 MB / 440 MB, free: 14.52 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001311/0.1248, allocations: 92.16 kB / 440.1 MB, free: 14.42 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002687/0.1251, allocations: 321.9 kB / 440.4 MB, free: 14.09 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001023/0.1261, allocations: 461.1 kB / 440.8 MB, free: 13.63 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005299/0.1314, allocations: 5.632 MB / 446.5 MB, free: 7.898 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007201/0.1321, allocations: 0.9626 MB / 447.4 MB, free: 6.914 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0008119/0.1329, allocations: 427.2 kB / 447.8 MB, free: 6.492 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004787/0.1334, allocations: 453.2 kB / 448.3 MB, free: 6.051 MB / 426.7 MB Notification: Performance of SimCode: time 1.123e-06/0.1334, allocations: 3.938 kB / 448.3 MB, free: 6.047 MB / 426.7 MB Notification: Performance of Templates: time 0.1735/0.3069, allocations: 20.49 MB / 468.8 MB, free: 121.2 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 -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.9853912689723074]