Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.00185/0.00185, allocations: 73.33 kB / 21.24 MB, free: 0.5547 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.00239/0.00239, allocations: 158.2 kB / 24.5 MB, free: 3.719 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: 177.2 MB / 204.9 MB, free: 8.98 MB / 190.1 MB " [Timeout remaining time 178] 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.2085/0.2085, allocations: 32.8 MB / 294.1 MB, free: 24 kB / 270.1 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.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance") [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002544/0.002544, allocations: 64.19 kB / 440.6 MB, free: 9.438 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3574/0.3599, allocations: 65.44 MB / 0.4941 GB, free: 31.44 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.008035/0.368, allocations: 7.934 MB / 0.5019 GB, free: 26.27 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.006861/0.3748, allocations: 3.361 MB / 0.5052 GB, free: 24.16 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001521/0.3763, allocations: 61.22 kB / 0.5052 GB, free: 24.14 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002898/0.3792, allocations: 1.63 MB / 0.5068 GB, free: 23.46 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00489/0.3841, allocations: 1.58 MB / 0.5084 GB, free: 22.76 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00163/0.3858, allocations: 0.5693 MB / 0.5089 GB, free: 22.54 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.005935/0.3917, allocations: 3.575 MB / 0.5124 GB, free: 21.18 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003122/0.3948, allocations: 1.816 MB / 0.5142 GB, free: 20.31 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002263/0.3971, allocations: 1.121 MB / 0.5153 GB, free: 19.84 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003588/0.4007, allocations: 1.585 MB / 0.5168 GB, free: 19.32 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008446/0.4015, allocations: 219.6 kB / 0.517 GB, free: 19.32 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002884/0.4044, allocations: 0.9999 MB / 0.518 GB, free: 19.13 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002167/0.4066, allocations: 1.445 MB / 0.5194 GB, free: 18.59 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002315/0.4089, allocations: 1.178 MB / 0.5206 GB, free: 17.87 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01022/0.4191, allocations: 5.428 MB / 0.5259 GB, free: 15.87 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.067e-06/0.4191, allocations: 0 / 0.5259 GB, free: 15.87 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.4191, allocations: 0 / 0.5259 GB, free: 15.87 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002109/0.4193, allocations: 1.219 kB / 0.5259 GB, free: 15.87 MB / 446.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.01364/0.433, allocations: 3.679 MB / 0.5295 GB, free: 13.73 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.161e-05/0.433, allocations: 10.11 kB / 0.5295 GB, free: 13.73 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02162/0.4546, allocations: 2.403 MB / 0.5318 GB, free: 12.97 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006257/0.4609, allocations: 2.127 MB / 0.5339 GB, free: 11.66 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002097/0.4611, allocations: 165.3 kB / 0.5341 GB, free: 11.57 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001166/0.4623, allocations: 220.4 kB / 0.5343 GB, free: 11.49 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01412/0.4764, allocations: 7.45 MB / 0.5415 GB, free: 6.754 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002036/0.4766, allocations: 43.45 kB / 0.5416 GB, free: 6.727 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008563/0.4774, allocations: 110.2 kB / 0.5417 GB, free: 6.652 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002871/0.4803, allocations: 1.544 MB / 0.5432 GB, free: 5.973 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01157/0.4919, allocations: 6.301 MB / 0.5493 GB, free: 15.66 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0453/0.5372, allocations: 28.48 MB / 0.5772 GB, free: 2.281 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006927/0.5441, allocations: 1.759 MB / 0.5789 GB, free: 500 kB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002492/0.5466, allocations: 1.051 MB / 0.5799 GB, free: 15.43 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003949/0.547, allocations: 84.31 kB / 0.58 GB, free: 15.34 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.287e-05/0.5471, allocations: 47 kB / 0.58 GB, free: 15.29 MB / 494.1 MB Notification: Performance of pre-optimization done (n=108): time 4.879e-06/0.5471, allocations: 0 / 0.58 GB, free: 15.29 MB / 494.1 MB Notification: Performance of matching and sorting (n=132): time 0.05041/0.5975, allocations: 12.07 MB / 0.5918 GB, free: 3.141 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001291/0.5976, allocations: 196.6 kB / 0.592 GB, free: 2.906 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005748/0.6034, allocations: 3.359 MB / 0.5953 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002293/0.6036, allocations: 41.7 kB / 0.5953 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002104/0.6057, allocations: 2.68 MB / 0.5979 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006453/0.6063, allocations: 0.5506 MB / 0.5985 GB, free: 12.22 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001451/0.6078, allocations: 1.095 MB / 0.5996 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001217/0.6079, allocations: 305.1 kB / 0.5998 GB, free: 10.81 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002799/0.6107, allocations: 1.736 MB / 0.6015 GB, free: 9.07 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005769/0.6165, allocations: 5.134 MB / 0.6066 GB, free: 2.238 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0093/0.6258, allocations: 7.363 MB / 0.6137 GB, free: 9.215 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001051/0.6259, allocations: 32 kB / 0.6138 GB, free: 9.184 MB / 0.5137 GB Notification: Performance of matching and sorting (n=694) (initialization): time 0.01434/0.6402, allocations: 7.026 MB / 0.6206 GB, free: 2.152 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.000151/0.6404, allocations: 56 kB / 0.6207 GB, free: 2.098 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002235/0.6406, allocations: 123.9 kB / 0.6208 GB, free: 1.977 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001784/0.6424, allocations: 0.6528 MB / 0.6214 GB, free: 1.32 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004229/0.6466, allocations: 1.209 MB / 0.6226 GB, free: 112 kB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005483/0.6521, allocations: 3.914 MB / 0.6264 GB, free: 12.09 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004142/0.6562, allocations: 291.6 kB / 0.6267 GB, free: 11.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009704/0.6572, allocations: 328 kB / 0.627 GB, free: 11.48 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.003913/0.6611, allocations: 1.709 MB / 0.6287 GB, free: 9.766 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007512/0.6619, allocations: 278.1 kB / 0.629 GB, free: 9.492 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004618/0.6665, allocations: 2.057 MB / 0.631 GB, free: 7.418 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.03e-05/0.6665, allocations: 16.09 kB / 0.631 GB, free: 7.402 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.178e-05/0.6665, allocations: 7.938 kB / 0.631 GB, free: 7.395 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.651e-05/0.6665, allocations: 7.984 kB / 0.631 GB, free: 7.387 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01182/0.6784, allocations: 4.796 MB / 0.6357 GB, free: 2.535 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.278e-05/0.6784, allocations: 4 kB / 0.6357 GB, free: 2.531 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001082/0.6795, allocations: 195.7 kB / 0.6359 GB, free: 2.34 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001488/0.6809, allocations: 492.2 kB / 0.6364 GB, free: 1.855 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001445/0.6811, allocations: 20 kB / 0.6364 GB, free: 1.836 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004494/0.6856, allocations: 3.299 MB / 0.6396 GB, free: 14.43 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.6856, allocations: 0 / 0.6396 GB, free: 14.43 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007107/0.6927, allocations: 4.144 MB / 0.6436 GB, free: 10.25 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009221/0.6936, allocations: 254 kB / 0.6439 GB, free: 10 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007162/0.6943, allocations: 16 kB / 0.6439 GB, free: 9.988 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001651/0.696, allocations: 87.81 kB / 0.644 GB, free: 9.902 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002353/0.6962, allocations: 80.33 kB / 0.6441 GB, free: 9.824 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001115/0.6963, allocations: 32 kB / 0.6441 GB, free: 9.793 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004623/0.7009, allocations: 1.937 MB / 0.646 GB, free: 7.855 MB / 0.545 GB Notification: Performance of sort global known variables: time 8e-08/0.7009, allocations: 0 / 0.646 GB, free: 7.855 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005233/0.7062, allocations: 0.7734 MB / 0.6467 GB, free: 7.082 MB / 0.545 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.0004461/0.7066, allocations: 151.1 kB / 0.6469 GB, free: 6.922 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.007389/0.714, allocations: 3.983 MB / 0.6508 GB, free: 2.961 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.45e-06/0.714, allocations: 0 / 0.6508 GB, free: 2.961 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001704/0.7157, allocations: 1.058 MB / 0.6518 GB, free: 1.887 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002485/0.7182, allocations: 302.3 kB / 0.6521 GB, free: 1.59 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0153/0.7335, allocations: 7.191 MB / 0.6591 GB, free: 10.34 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004156/0.7377, allocations: 2.08 MB / 0.6611 GB, free: 8.23 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004524/0.7422, allocations: 1.657 MB / 0.6628 GB, free: 6.566 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008317/0.743, allocations: 188.5 kB / 0.6629 GB, free: 6.383 MB / 0.5606 GB Notification: Performance of SimCode: time 9.72e-07/0.743, allocations: 0 / 0.6629 GB, free: 6.383 MB / 0.5606 GB Notification: Performance of Templates: time 0.0526/0.7956, allocations: 22.55 MB / 0.685 GB, free: 184 kB / 0.5762 GB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 6.56714983494021]