Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.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.001846/0.001846, allocations: 113.2 kB / 20.43 MB, free: 1.449 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.001574/0.001574, allocations: 214.3 kB / 23.74 MB, free: 4.656 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.515/1.515, allocations: 230.6 MB / 257.5 MB, free: 8.043 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.2637/0.2637, allocations: 46.94 MB / 360.9 MB, free: 4.277 MB / 286.1 MB " [Timeout remaining time 179] 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.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002098/0.002098, allocations: 67.89 kB / 0.4966 GB, free: 7.418 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4486/0.4507, allocations: 66.03 MB / 0.5611 GB, free: 4.469 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.02416/0.4748, allocations: 9.004 MB / 0.5699 GB, free: 11.42 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01493/0.4898, allocations: 3.59 MB / 0.5734 GB, free: 7.82 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00305/0.4928, allocations: 55.75 kB / 0.5735 GB, free: 7.766 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007357/0.5002, allocations: 1.693 MB / 0.5751 GB, free: 6.066 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009179/0.5094, allocations: 1.584 MB / 0.5767 GB, free: 4.477 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00319/0.5126, allocations: 0.5614 MB / 0.5772 GB, free: 3.914 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01085/0.5234, allocations: 3.584 MB / 0.5807 GB, free: 332 kB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005435/0.5288, allocations: 1.825 MB / 0.5825 GB, free: 14.45 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003845/0.5327, allocations: 1.117 MB / 0.5836 GB, free: 13.32 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005092/0.5378, allocations: 1.666 MB / 0.5852 GB, free: 11.65 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001415/0.5392, allocations: 220 kB / 0.5854 GB, free: 11.44 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004447/0.5436, allocations: 1.135 MB / 0.5865 GB, free: 10.3 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003479/0.5471, allocations: 1.453 MB / 0.5879 GB, free: 8.844 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004594/0.5517, allocations: 1.604 MB / 0.5895 GB, free: 7.23 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01246/0.5642, allocations: 5.412 MB / 0.5948 GB, free: 1.797 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.275e-06/0.5642, allocations: 4 kB / 0.5948 GB, free: 1.793 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.5642, allocations: 0 / 0.5948 GB, free: 1.793 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001977/0.5644, allocations: 4 kB / 0.5948 GB, free: 1.789 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: 1141 * Number of variables: 1141 Notification: Performance of Generate backend data structure: time 0.01406/0.5784, allocations: 3.68 MB / 0.5984 GB, free: 14.05 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.435e-05/0.5785, allocations: 8.031 kB / 0.5984 GB, free: 14.05 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02591/0.6044, allocations: 2.358 MB / 0.6007 GB, free: 11.68 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01168/0.6161, allocations: 2.111 MB / 0.6028 GB, free: 9.535 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003703/0.6165, allocations: 160.5 kB / 0.6029 GB, free: 9.375 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001837/0.6183, allocations: 227.9 kB / 0.6031 GB, free: 9.152 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02455/0.6428, allocations: 7.398 MB / 0.6104 GB, free: 1.129 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000253/0.6431, allocations: 39.69 kB / 0.6104 GB, free: 1.09 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001117/0.6442, allocations: 111.9 kB / 0.6105 GB, free: 0.9805 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005021/0.6492, allocations: 1.539 MB / 0.612 GB, free: 15.44 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02074/0.67, allocations: 6.319 MB / 0.6182 GB, free: 9.105 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04911/0.7191, allocations: 30.09 MB / 0.6476 GB, free: 10.09 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005/0.7241, allocations: 1.703 MB / 0.6492 GB, free: 8.348 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001815/0.7259, allocations: 1.051 MB / 0.6503 GB, free: 7.285 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003638/0.7263, allocations: 92.17 kB / 0.6504 GB, free: 7.195 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.949e-05/0.7263, allocations: 47 kB / 0.6504 GB, free: 7.141 MB / 494.1 MB Notification: Performance of pre-optimization done (n=108): time 4.138e-06/0.7263, allocations: 0 / 0.6504 GB, free: 7.141 MB / 494.1 MB Notification: Performance of matching and sorting (n=132): time 0.03927/0.7656, allocations: 11.77 MB / 0.6619 GB, free: 11.3 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001653/0.7658, allocations: 200.6 kB / 0.6621 GB, free: 11.06 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00659/0.7724, allocations: 3.604 MB / 0.6656 GB, free: 7.453 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002983/0.7726, allocations: 45.7 kB / 0.6656 GB, free: 7.402 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002789/0.7754, allocations: 2.647 MB / 0.6682 GB, free: 4.73 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009871/0.7764, allocations: 0.5506 MB / 0.6688 GB, free: 4.176 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002428/0.7789, allocations: 1.088 MB / 0.6698 GB, free: 3.078 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000162/0.779, allocations: 309 kB / 0.6701 GB, free: 2.773 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003175/0.7822, allocations: 1.744 MB / 0.6718 GB, free: 1.023 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007201/0.7894, allocations: 5.084 MB / 0.6768 GB, free: 10.25 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01076/0.8002, allocations: 7.357 MB / 0.684 GB, free: 1.234 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001251/0.8003, allocations: 40 kB / 0.684 GB, free: 1.195 MB / 0.5137 GB Notification: Performance of matching and sorting (n=694) (initialization): time 0.0162/0.8165, allocations: 7.062 MB / 0.6909 GB, free: 10.13 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001196/0.8166, allocations: 59.94 kB / 0.691 GB, free: 10.07 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002201/0.8168, allocations: 120 kB / 0.6911 GB, free: 9.953 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001784/0.8186, allocations: 0.6415 MB / 0.6917 GB, free: 9.309 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004132/0.8227, allocations: 1.209 MB / 0.6929 GB, free: 8.098 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005823/0.8286, allocations: 3.964 MB / 0.6968 GB, free: 4.016 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004086/0.8326, allocations: 295.6 kB / 0.697 GB, free: 3.727 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008704/0.8335, allocations: 331.9 kB / 0.6974 GB, free: 3.402 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 539 * Number of states: 0 () * Number of discrete variables: 29 (Distance1.arrow.twoHeadedArrow,Distance1.arrow.headAtOrigin,BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Distance1.arrowColor[3],Distance1.arrowColor[2],Distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (659): * Single equations (assignments): 655 * 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,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003897/0.8374, allocations: 1.701 MB / 0.699 GB, free: 1.688 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009114/0.8383, allocations: 309.9 kB / 0.6993 GB, free: 1.383 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004831/0.8432, allocations: 2.088 MB / 0.7014 GB, free: 15.28 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.405e-05/0.8432, allocations: 12 kB / 0.7014 GB, free: 15.27 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.595e-05/0.8432, allocations: 4 kB / 0.7014 GB, free: 15.26 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.659e-05/0.8433, allocations: 7.984 kB / 0.7014 GB, free: 15.25 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01344/0.8567, allocations: 5.569 MB / 0.7068 GB, free: 9.602 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.147e-05/0.8567, allocations: 16.05 kB / 0.7068 GB, free: 9.586 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001139/0.8579, allocations: 187.7 kB / 0.707 GB, free: 9.402 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001433/0.8593, allocations: 492.2 kB / 0.7075 GB, free: 8.918 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001478/0.8594, allocations: 23.98 kB / 0.7075 GB, free: 8.895 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004784/0.8642, allocations: 3.33 MB / 0.7108 GB, free: 5.453 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/0.8642, allocations: 7.969 kB / 0.7108 GB, free: 5.445 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007265/0.8715, allocations: 4.191 MB / 0.7149 GB, free: 1.223 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001141/0.8726, allocations: 297.7 kB / 0.7151 GB, free: 0.9297 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006784/0.8733, allocations: 24 kB / 0.7152 GB, free: 0.9062 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001451/0.8748, allocations: 67.91 kB / 0.7152 GB, free: 0.8398 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002152/0.875, allocations: 72.45 kB / 0.7153 GB, free: 0.7695 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001085/0.8751, allocations: 43.97 kB / 0.7153 GB, free: 0.7266 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004438/0.8795, allocations: 2.256 MB / 0.7175 GB, free: 14.48 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.21e-07/0.8795, allocations: 0 / 0.7175 GB, free: 14.48 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.006679/0.8862, allocations: 0.7812 MB / 0.7183 GB, free: 13.7 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 98 * 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,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006252/0.8868, allocations: 144.9 kB / 0.7184 GB, free: 13.55 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.007622/0.8945, allocations: 3.983 MB / 0.7223 GB, free: 9.586 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.5e-06/0.8945, allocations: 0.5 kB / 0.7223 GB, free: 9.586 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001847/0.8963, allocations: 1.056 MB / 0.7234 GB, free: 8.516 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002554/0.8989, allocations: 351.8 kB / 0.7237 GB, free: 8.168 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01509/0.914, allocations: 7.238 MB / 0.7308 GB, free: 0.875 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2905/1.205, allocations: 2.629 MB / 0.7333 GB, free: 153.4 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003909/1.208, allocations: 1.695 MB / 0.735 GB, free: 153.3 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000621/1.209, allocations: 209.3 kB / 0.7352 GB, free: 153.3 MB / 0.5606 GB Notification: Performance of SimCode: time 1.032e-06/1.209, allocations: 3.5 kB / 0.7352 GB, free: 153.3 MB / 0.5606 GB Notification: Performance of Templates: time 0.04995/1.259, allocations: 29.57 MB / 0.7641 GB, free: 132.7 MB / 0.5606 GB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.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: 7.701658168109134]