Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.001795/0.001795, allocations: 108.3 kB / 19.7 MB, free: 1.918 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.002218/0.002218, allocations: 214.1 kB / 22.99 MB, free: 4.977 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.525/1.525, allocations: 207.7 MB / 233.8 MB, free: 9.801 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2751/0.2751, allocations: 44.27 MB / 330.3 MB, free: 9.297 MB / 270.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 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.002683/0.002683, allocations: 67.91 kB / 468 MB, free: 3.84 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1617/0.1644, allocations: 61.04 MB / 0.5166 GB, free: 6.676 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01515/0.1795, allocations: 8.833 MB / 0.5253 GB, free: 13.79 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01024/0.1898, allocations: 3.525 MB / 0.5287 GB, free: 10.26 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002457/0.1922, allocations: 63.75 kB / 0.5288 GB, free: 10.2 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004976/0.1972, allocations: 1.908 MB / 0.5306 GB, free: 8.281 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006223/0.2034, allocations: 1.794 MB / 0.5324 GB, free: 6.48 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001951/0.2054, allocations: 0.5731 MB / 0.5329 GB, free: 5.906 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.007577/0.213, allocations: 3.743 MB / 0.5366 GB, free: 2.152 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3037/0.5167, allocations: 2.137 MB / 0.5387 GB, free: 11.54 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003343/0.52, allocations: 1.302 MB / 0.54 GB, free: 11.49 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00403/0.524, allocations: 1.892 MB / 0.5418 GB, free: 11.29 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001034/0.5251, allocations: 273.8 kB / 0.5421 GB, free: 11.29 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002827/0.5279, allocations: 1.053 MB / 0.5431 GB, free: 11.29 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002702/0.5306, allocations: 1.731 MB / 0.5448 GB, free: 11.07 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003634/0.5342, allocations: 1.411 MB / 0.5462 GB, free: 10.55 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01209/0.5463, allocations: 6.463 MB / 0.5525 GB, free: 9.551 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.457e-06/0.5463, allocations: 1.766 kB / 0.5525 GB, free: 9.551 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.935e-06/0.5463, allocations: 0 / 0.5525 GB, free: 9.551 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003267/0.5467, allocations: 0.5312 kB / 0.5525 GB, free: 9.551 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1367 * Number of variables: 1367 Notification: Performance of Generate backend data structure: time 0.01694/0.5636, allocations: 4.245 MB / 0.5566 GB, free: 7.719 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.44e-05/0.5637, allocations: 9.469 kB / 0.5566 GB, free: 7.719 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01769/0.5814, allocations: 2.463 MB / 0.559 GB, free: 7.363 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008554/0.5899, allocations: 2.402 MB / 0.5614 GB, free: 6.355 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002376/0.5901, allocations: 199 kB / 0.5616 GB, free: 6.297 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001392/0.5915, allocations: 254.5 kB / 0.5618 GB, free: 6.246 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01723/0.6088, allocations: 8.812 MB / 0.5704 GB, free: 1.879 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001271/0.6089, allocations: 41.83 kB / 0.5705 GB, free: 1.871 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004285/0.6093, allocations: 127.7 kB / 0.5706 GB, free: 1.82 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00348/0.6128, allocations: 1.835 MB / 0.5724 GB, free: 1.137 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01563/0.6284, allocations: 7.447 MB / 0.5796 GB, free: 13.86 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04955/0.678, allocations: 31.95 MB / 0.6108 GB, free: 15.25 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005415/0.6834, allocations: 2.05 MB / 0.6128 GB, free: 13.18 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00202/0.6854, allocations: 1.101 MB / 0.6139 GB, free: 12.07 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003276/0.6857, allocations: 98.66 kB / 0.614 GB, free: 11.98 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.985e-05/0.6858, allocations: 43.06 kB / 0.6141 GB, free: 11.93 MB / 462.1 MB Notification: Performance of pre-optimization done (n=119): time 5.52e-06/0.6858, allocations: 0 / 0.6141 GB, free: 11.93 MB / 462.1 MB Notification: Performance of matching and sorting (n=133): time 0.0264/0.7122, allocations: 9.879 MB / 0.6237 GB, free: 2.043 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001675/0.7124, allocations: 196 kB / 0.6239 GB, free: 1.812 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006091/0.7185, allocations: 3.711 MB / 0.6275 GB, free: 14.09 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001888/0.7186, allocations: 44.75 kB / 0.6276 GB, free: 14.05 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002667/0.7213, allocations: 3.1 MB / 0.6306 GB, free: 10.96 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000716/0.722, allocations: 0.5649 MB / 0.6311 GB, free: 10.41 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001768/0.7238, allocations: 1.208 MB / 0.6323 GB, free: 9.188 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.724, allocations: 305.1 kB / 0.6326 GB, free: 8.887 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00297/0.7269, allocations: 1.803 MB / 0.6344 GB, free: 7.078 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006846/0.7338, allocations: 5.69 MB / 0.6399 GB, free: 15.52 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01136/0.7451, allocations: 8.047 MB / 0.6478 GB, free: 5.84 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001343/0.7453, allocations: 40 kB / 0.6478 GB, free: 5.801 MB / 494.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01535/0.7606, allocations: 7.579 MB / 0.6552 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001073/0.7607, allocations: 60 kB / 0.6553 GB, free: 14.15 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002012/0.7609, allocations: 136 kB / 0.6554 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001859/0.7628, allocations: 0.6604 MB / 0.6561 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004284/0.7671, allocations: 1.353 MB / 0.6574 GB, free: 12 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005613/0.7727, allocations: 3.934 MB / 0.6612 GB, free: 7.965 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004694/0.7774, allocations: 319.5 kB / 0.6615 GB, free: 7.652 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009336/0.7783, allocations: 373.9 kB / 0.6619 GB, free: 7.289 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 619 * Number of states: 0 () * Number of discrete variables: 31 (LessEqualThreshold1.y,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 (735): * Single equations (assignments): 731 * 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.004269/0.7826, allocations: 1.945 MB / 0.6638 GB, free: 5.332 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007442/0.7833, allocations: 302 kB / 0.6641 GB, free: 5.035 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004276/0.7876, allocations: 2.039 MB / 0.6661 GB, free: 2.973 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.698e-05/0.7876, allocations: 25.58 kB / 0.6661 GB, free: 2.953 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.062e-05/0.7876, allocations: 4 kB / 0.6661 GB, free: 2.949 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.312e-05/0.7877, allocations: 3.984 kB / 0.6661 GB, free: 2.945 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01163/0.7993, allocations: 4.871 MB / 0.6708 GB, free: 14.04 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.2e-05/0.7993, allocations: 3.984 kB / 0.6709 GB, free: 14.03 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009267/0.8002, allocations: 183.7 kB / 0.671 GB, free: 13.85 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001397/0.8016, allocations: 484.8 kB / 0.6715 GB, free: 13.38 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001085/0.8017, allocations: 31.98 kB / 0.6715 GB, free: 13.34 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004493/0.8062, allocations: 3.301 MB / 0.6747 GB, free: 9.949 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.8062, allocations: 3.938 kB / 0.6747 GB, free: 9.945 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00661/0.8128, allocations: 3.978 MB / 0.6786 GB, free: 5.926 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001647/0.8145, allocations: 437.8 kB / 0.679 GB, free: 5.496 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000382/0.8149, allocations: 27.09 kB / 0.6791 GB, free: 5.473 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001089/0.816, allocations: 67.91 kB / 0.6791 GB, free: 5.406 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002218/0.8162, allocations: 84.39 kB / 0.6792 GB, free: 5.324 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001153/0.8163, allocations: 32 kB / 0.6793 GB, free: 5.293 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004371/0.8207, allocations: 2.124 MB / 0.6813 GB, free: 3.176 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.01e-07/0.8207, allocations: 4 kB / 0.6813 GB, free: 3.172 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.006637/0.8273, allocations: 0.8671 MB / 0.6822 GB, free: 2.305 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (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.0006007/0.8279, allocations: 146 kB / 0.6823 GB, free: 2.156 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.009453/0.8374, allocations: 4.15 MB / 0.6864 GB, free: 14.02 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.417e-05/0.8374, allocations: 5.375 kB / 0.6864 GB, free: 14.02 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001947/0.8393, allocations: 1.002 MB / 0.6874 GB, free: 13 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00311/0.8424, allocations: 303.2 kB / 0.6876 GB, free: 12.71 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02014/0.8626, allocations: 8.001 MB / 0.6955 GB, free: 4.664 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004102/0.8667, allocations: 2.41 MB / 0.6978 GB, free: 2.227 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004622/0.8713, allocations: 1.769 MB / 0.6995 GB, free: 464 kB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006614/0.872, allocations: 211.4 kB / 0.6997 GB, free: 252 kB / 0.5294 GB Notification: Performance of SimCode: time 2.104e-06/0.872, allocations: 4 kB / 0.6997 GB, free: 248 kB / 0.5294 GB Notification: Performance of Templates: time 0.06618/0.9382, allocations: 27.32 MB / 0.7264 GB, free: 5.02 MB / 0.5606 GB " [Timeout remaining time 659] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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: 7.341451430693269]