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.001841/0.001841, 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.002283/0.002283, allocations: 214.4 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.59/1.59, allocations: 230.6 MB / 257.5 MB, free: 8.012 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.2483/0.2483, allocations: 46.93 MB / 360.8 MB, free: 4.25 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.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.002255/0.002255, allocations: 67.89 kB / 0.4966 GB, free: 7.383 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.381/0.3833, allocations: 66.03 MB / 0.5611 GB, free: 4.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01251/0.3958, allocations: 9.127 MB / 0.57 GB, free: 11.24 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.007731/0.4035, allocations: 3.606 MB / 0.5736 GB, free: 7.621 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001157/0.4047, allocations: 63.69 kB / 0.5736 GB, free: 7.559 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003821/0.4085, allocations: 1.943 MB / 0.5755 GB, free: 5.609 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004032/0.4125, allocations: 1.607 MB / 0.5771 GB, free: 3.996 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001467/0.414, allocations: 0.577 MB / 0.5776 GB, free: 3.418 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006427/0.4204, allocations: 3.662 MB / 0.5812 GB, free: 15.75 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002913/0.4233, allocations: 2.009 MB / 0.5832 GB, free: 13.68 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002094/0.4254, allocations: 1.187 MB / 0.5843 GB, free: 12.49 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003044/0.4285, allocations: 1.772 MB / 0.5861 GB, free: 10.71 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006481/0.4291, allocations: 244 kB / 0.5863 GB, free: 10.48 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002365/0.4315, allocations: 1.151 MB / 0.5874 GB, free: 9.324 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001669/0.4332, allocations: 1.546 MB / 0.5889 GB, free: 7.773 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002081/0.4352, allocations: 1.712 MB / 0.5906 GB, free: 6.051 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007662/0.4429, allocations: 5.708 MB / 0.5962 GB, free: 328 kB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.484e-06/0.4429, allocations: 0 / 0.5962 GB, free: 328 kB / 430.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.4429, allocations: 4 kB / 0.5962 GB, free: 324 kB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001372/0.443, allocations: 0 / 0.5962 GB, free: 324 kB / 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.008153/0.4512, allocations: 3.854 MB / 0.6 GB, free: 12.4 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.907e-05/0.4512, allocations: 8.031 kB / 0.6 GB, free: 12.39 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01542/0.4667, allocations: 2.374 MB / 0.6023 GB, free: 10.02 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006136/0.4728, allocations: 2.185 MB / 0.6044 GB, free: 7.793 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001664/0.473, allocations: 176.8 kB / 0.6046 GB, free: 7.617 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005901/0.4736, allocations: 240 kB / 0.6048 GB, free: 7.383 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.013/0.4866, allocations: 7.786 MB / 0.6124 GB, free: 14.95 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001074/0.4867, allocations: 39.69 kB / 0.6125 GB, free: 14.91 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003222/0.487, allocations: 119.9 kB / 0.6126 GB, free: 14.79 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002778/0.4898, allocations: 1.578 MB / 0.6141 GB, free: 13.2 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01302/0.5028, allocations: 6.585 MB / 0.6205 GB, free: 6.613 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04211/0.5449, allocations: 31.56 MB / 0.6514 GB, free: 6.066 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004854/0.5497, allocations: 1.966 MB / 0.6533 GB, free: 4.066 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001681/0.5514, allocations: 1.042 MB / 0.6543 GB, free: 3.012 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003035/0.5517, allocations: 95.94 kB / 0.6544 GB, free: 2.918 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.796e-05/0.5518, allocations: 46.5 kB / 0.6544 GB, free: 2.863 MB / 494.1 MB Notification: Performance of pre-optimization done (n=104): time 3.887e-06/0.5518, allocations: 4 kB / 0.6544 GB, free: 2.859 MB / 494.1 MB Notification: Performance of matching and sorting (n=118): time 0.02469/0.5765, allocations: 9.158 MB / 0.6634 GB, free: 9.648 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001359/0.5766, allocations: 200.4 kB / 0.6636 GB, free: 9.41 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005423/0.582, allocations: 3.763 MB / 0.6672 GB, free: 5.652 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001947/0.5822, allocations: 41.7 kB / 0.6673 GB, free: 5.605 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0023/0.5845, allocations: 2.798 MB / 0.67 GB, free: 2.781 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005877/0.5851, allocations: 0.5119 MB / 0.6705 GB, free: 2.266 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001431/0.5865, allocations: 1.135 MB / 0.6716 GB, free: 1.121 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001438/0.5867, allocations: 305.1 kB / 0.6719 GB, free: 0.8203 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002798/0.5895, allocations: 1.697 MB / 0.6736 GB, free: 15.12 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006107/0.5956, allocations: 5.263 MB / 0.6787 GB, free: 8.055 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009784/0.6054, allocations: 7.504 MB / 0.686 GB, free: 14.77 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.386e-05/0.6055, allocations: 36 kB / 0.6861 GB, free: 14.73 MB / 0.5294 GB Notification: Performance of matching and sorting (n=717) (initialization): time 0.01446/0.6199, allocations: 7.129 MB / 0.693 GB, free: 7.598 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001088/0.62, allocations: 59.94 kB / 0.6931 GB, free: 7.539 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002296/0.6203, allocations: 128 kB / 0.6932 GB, free: 7.414 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001766/0.622, allocations: 0.6645 MB / 0.6939 GB, free: 6.746 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00416/0.6262, allocations: 1.252 MB / 0.6951 GB, free: 5.492 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005751/0.6319, allocations: 3.963 MB / 0.699 GB, free: 1.418 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00458/0.6365, allocations: 299.6 kB / 0.6992 GB, free: 1.125 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001139/0.6377, allocations: 347.9 kB / 0.6996 GB, free: 0.7891 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.004181/0.6418, allocations: 1.783 MB / 0.7013 GB, free: 14.99 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007639/0.6426, allocations: 321.8 kB / 0.7016 GB, free: 14.67 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004002/0.6466, allocations: 1.827 MB / 0.7034 GB, free: 12.82 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.369e-05/0.6466, allocations: 20.38 kB / 0.7034 GB, free: 12.8 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.739e-06/0.6467, allocations: 4 kB / 0.7034 GB, free: 12.8 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.441e-05/0.6467, allocations: 7.984 kB / 0.7034 GB, free: 12.79 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01067/0.6573, allocations: 5.178 MB / 0.7085 GB, free: 7.551 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.228e-05/0.6574, allocations: 11.88 kB / 0.7085 GB, free: 7.539 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000815/0.6582, allocations: 155.8 kB / 0.7087 GB, free: 7.387 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001392/0.6596, allocations: 484.3 kB / 0.7091 GB, free: 6.91 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.122e-05/0.6597, allocations: 23.98 kB / 0.7091 GB, free: 6.887 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004557/0.6642, allocations: 3.329 MB / 0.7124 GB, free: 3.445 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.6642, allocations: 0 / 0.7124 GB, free: 3.445 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006165/0.6704, allocations: 3.749 MB / 0.7161 GB, free: 15.67 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008806/0.6713, allocations: 301.7 kB / 0.7163 GB, free: 15.37 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003825/0.6716, allocations: 23.94 kB / 0.7164 GB, free: 15.35 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001027/0.6727, allocations: 55.92 kB / 0.7164 GB, free: 15.29 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001891/0.6729, allocations: 64.73 kB / 0.7165 GB, free: 15.23 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.803e-05/0.6729, allocations: 31.98 kB / 0.7165 GB, free: 15.2 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003889/0.6768, allocations: 2.334 MB / 0.7188 GB, free: 12.88 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.31e-07/0.6768, allocations: 3.938 kB / 0.7188 GB, free: 12.88 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003935/0.6808, allocations: 0.7928 MB / 0.7196 GB, free: 12.09 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (88): * Single equations (assignments): 84 * 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.0003363/0.6811, allocations: 147 kB / 0.7197 GB, free: 11.93 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.006551/0.6877, allocations: 3.868 MB / 0.7235 GB, free: 8.07 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.6877, allocations: 5.188 kB / 0.7235 GB, free: 8.066 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001545/0.6892, allocations: 0.9344 MB / 0.7244 GB, free: 7.121 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002099/0.6913, allocations: 359.1 kB / 0.7247 GB, free: 6.77 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.307/0.9983, allocations: 7.292 MB / 0.7319 GB, free: 153.5 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00445/1.003, allocations: 2.717 MB / 0.7345 GB, free: 152.7 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003471/1.006, allocations: 1.701 MB / 0.7362 GB, free: 152.7 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005442/1.007, allocations: 211.5 kB / 0.7364 GB, free: 152.7 MB / 0.5606 GB Notification: Performance of SimCode: time 1.123e-06/1.007, allocations: 0 / 0.7364 GB, free: 152.7 MB / 0.5606 GB Notification: Performance of Templates: time 0.05183/1.059, allocations: 29.63 MB / 0.7653 GB, free: 130.9 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins/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: 7.445860362844542]