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.001384/0.001384, allocations: 110.8 kB / 21.19 MB, free: 0.6484 MB / 14.72 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.001477/0.001477, allocations: 211.6 kB / 24.49 MB, free: 3.938 MB / 14.72 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.467/1.467, allocations: 230.6 MB / 258.3 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] 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.2268/0.2268, allocations: 46.96 MB / 361.6 MB, free: 4.051 MB / 286.1 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 0.002009/0.002009, allocations: 71.89 kB / 0.4973 GB, free: 7.246 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.339/0.341, allocations: 66.04 MB / 0.5618 GB, free: 4.176 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01125/0.3522, allocations: 8.021 MB / 0.5696 GB, free: 12.12 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.00813/0.3603, allocations: 3.388 MB / 0.573 GB, free: 8.719 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001271/0.3616, allocations: 59.69 kB / 0.573 GB, free: 8.66 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003915/0.3655, allocations: 1.869 MB / 0.5748 GB, free: 6.785 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004108/0.3696, allocations: 1.615 MB / 0.5764 GB, free: 5.164 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00135/0.371, allocations: 0.577 MB / 0.577 GB, free: 4.586 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005394/0.3764, allocations: 3.661 MB / 0.5806 GB, free: 0.918 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002761/0.3791, allocations: 2.001 MB / 0.5825 GB, free: 14.86 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001894/0.381, allocations: 1.18 MB / 0.5837 GB, free: 13.68 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002532/0.3836, allocations: 1.779 MB / 0.5854 GB, free: 11.89 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005385/0.3841, allocations: 244 kB / 0.5856 GB, free: 11.65 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001938/0.386, allocations: 1.026 MB / 0.5866 GB, free: 10.62 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001635/0.3877, allocations: 1.542 MB / 0.5881 GB, free: 9.078 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001607/0.3893, allocations: 1.262 MB / 0.5894 GB, free: 7.809 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007705/0.397, allocations: 5.724 MB / 0.595 GB, free: 2.062 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.743e-06/0.397, allocations: 0 / 0.595 GB, free: 2.062 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.397, allocations: 0 / 0.595 GB, free: 2.062 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001273/0.3971, allocations: 0 / 0.595 GB, free: 2.062 MB / 430.1 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.008284/0.4054, allocations: 3.862 MB / 0.5987 GB, free: 14.14 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.728e-05/0.4055, allocations: 8.031 kB / 0.5987 GB, free: 14.14 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0164/0.4219, allocations: 2.366 MB / 0.6011 GB, free: 11.77 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006226/0.4281, allocations: 2.197 MB / 0.6032 GB, free: 9.531 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001609/0.4282, allocations: 176.8 kB / 0.6034 GB, free: 9.355 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006049/0.4289, allocations: 236 kB / 0.6036 GB, free: 9.125 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01311/0.442, allocations: 7.837 MB / 0.6112 GB, free: 0.625 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.535e-05/0.4421, allocations: 39.67 kB / 0.6113 GB, free: 0.5859 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003342/0.4424, allocations: 119.9 kB / 0.6114 GB, free: 480 kB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0028/0.4452, allocations: 1.586 MB / 0.6129 GB, free: 14.88 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01267/0.4579, allocations: 6.574 MB / 0.6194 GB, free: 8.293 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03933/0.4972, allocations: 29.77 MB / 0.6484 GB, free: 9.566 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004916/0.5021, allocations: 1.948 MB / 0.6503 GB, free: 7.582 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001573/0.5037, allocations: 1.045 MB / 0.6514 GB, free: 6.527 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002824/0.504, allocations: 91.95 kB / 0.6514 GB, free: 6.438 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.249e-05/0.504, allocations: 46.55 kB / 0.6515 GB, free: 6.383 MB / 494.1 MB Notification: Performance of pre-optimization done (n=104): time 3.907e-06/0.504, allocations: 0 / 0.6515 GB, free: 6.383 MB / 494.1 MB Notification: Performance of matching and sorting (n=118): time 0.0243/0.5283, allocations: 9.17 MB / 0.6604 GB, free: 13.16 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001301/0.5284, allocations: 192.4 kB / 0.6606 GB, free: 12.92 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00482/0.5332, allocations: 3.526 MB / 0.6641 GB, free: 9.383 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001967/0.5334, allocations: 45.69 kB / 0.6641 GB, free: 9.332 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.00232/0.5358, allocations: 2.832 MB / 0.6669 GB, free: 6.473 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006303/0.5364, allocations: 0.508 MB / 0.6674 GB, free: 5.961 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00154/0.5379, allocations: 1.131 MB / 0.6685 GB, free: 4.82 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001381/0.5381, allocations: 309.1 kB / 0.6688 GB, free: 4.516 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002735/0.5408, allocations: 1.697 MB / 0.6704 GB, free: 2.812 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005909/0.5467, allocations: 5.313 MB / 0.6756 GB, free: 11.69 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009652/0.5564, allocations: 7.515 MB / 0.683 GB, free: 2.402 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001053/0.5565, allocations: 36 kB / 0.683 GB, free: 2.367 MB / 0.5137 GB Notification: Performance of matching and sorting (n=717) (initialization): time 0.01349/0.57, allocations: 7.092 MB / 0.6899 GB, free: 11.27 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.743e-05/0.5701, allocations: 58.19 kB / 0.69 GB, free: 11.21 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001485/0.5702, allocations: 131.9 kB / 0.6901 GB, free: 11.08 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001751/0.572, allocations: 0.6564 MB / 0.6907 GB, free: 10.42 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004058/0.576, allocations: 1.252 MB / 0.692 GB, free: 9.168 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005417/0.5814, allocations: 3.925 MB / 0.6958 GB, free: 5.145 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003816/0.5852, allocations: 299.6 kB / 0.6961 GB, free: 4.852 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006398/0.5859, allocations: 344 kB / 0.6964 GB, free: 4.516 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 577 * 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 (682): * Single equations (assignments): 678 * 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 {(2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002999/0.5889, allocations: 1.778 MB / 0.6981 GB, free: 2.727 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005979/0.5895, allocations: 282.1 kB / 0.6984 GB, free: 2.449 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00372/0.5932, allocations: 1.8 MB / 0.7002 GB, free: 0.625 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.553e-05/0.5932, allocations: 3.984 kB / 0.7002 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.457e-05/0.5932, allocations: 11.98 kB / 0.7002 GB, free: 0.6094 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000597/0.5938, allocations: 250 kB / 0.7004 GB, free: 372 kB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002891/0.5941, allocations: 20 kB / 0.7004 GB, free: 352 kB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009808/0.5951, allocations: 67.89 kB / 0.7005 GB, free: 284 kB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001966/0.5953, allocations: 68.3 kB / 0.7006 GB, free: 212 kB / 0.5294 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004464/0.5998, allocations: 2.426 MB / 0.7029 GB, free: 13.77 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004612/0.6044, allocations: 3.313 MB / 0.7062 GB, free: 10.44 MB / 0.545 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001104/0.6055, allocations: 0.7288 MB / 0.7069 GB, free: 9.715 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003122/0.6086, allocations: 2.015 MB / 0.7089 GB, free: 7.703 MB / 0.545 GB Notification: Performance of Backend: time 3.21e-07/0.6086, allocations: 0 / 0.7089 GB, free: 7.703 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.007454/0.6161, allocations: 3.399 MB / 0.7122 GB, free: 4.309 MB / 0.545 GB Notification: Performance of SimCode: time 0.01306/0.6291, allocations: 7.524 MB / 0.7195 GB, free: 12.73 MB / 0.5606 GB Notification: Performance of Templates: time 0.3059/0.935, allocations: 38.69 MB / 0.7573 GB, free: 139.8 MB / 0.5606 GB " [Timeout remaining time 659] 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.777002695002011]