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.001854/0.001854, allocations: 124.5 kB / 17.79 MB, free: 5.227 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.002242/0.002242, allocations: 207.2 kB / 20.75 MB, free: 2.273 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.544/1.544, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.2633/0.2633, allocations: 46.92 MB / 357.1 MB, free: 10.31 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.002163/0.002163, allocations: 63.91 kB / 0.4914 GB, free: 7.465 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1278/0.13, allocations: 65.99 MB / 0.5558 GB, free: 5.348 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01245/0.1425, allocations: 9.087 MB / 0.5647 GB, free: 12.21 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.008549/0.151, allocations: 3.596 MB / 0.5682 GB, free: 8.605 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001763/0.1528, allocations: 59.69 kB / 0.5683 GB, free: 8.547 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004389/0.1572, allocations: 1.935 MB / 0.5702 GB, free: 6.605 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005183/0.1623, allocations: 1.607 MB / 0.5717 GB, free: 4.992 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001511/0.1639, allocations: 0.5653 MB / 0.5723 GB, free: 4.426 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.006983/0.1708, allocations: 3.665 MB / 0.5759 GB, free: 0.7539 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003956/0.1748, allocations: 2.066 MB / 0.5779 GB, free: 14.63 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00284/0.1776, allocations: 1.187 MB / 0.5791 GB, free: 13.44 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003175/0.1808, allocations: 1.779 MB / 0.5808 GB, free: 11.66 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006055/0.1814, allocations: 240 kB / 0.581 GB, free: 11.42 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002502/0.1839, allocations: 1.147 MB / 0.5821 GB, free: 10.27 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001929/0.1858, allocations: 1.55 MB / 0.5837 GB, free: 8.719 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002133/0.188, allocations: 1.708 MB / 0.5853 GB, free: 7 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008288/0.1963, allocations: 5.712 MB / 0.5909 GB, free: 1.266 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/0.1963, allocations: 0 / 0.5909 GB, free: 1.266 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.093e-06/0.1963, allocations: 4 kB / 0.5909 GB, free: 1.262 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001434/0.1964, allocations: 4 kB / 0.5909 GB, free: 1.258 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: 1211 * Number of variables: 1211 Notification: Performance of Generate backend data structure: time 0.3054/0.5018, allocations: 3.925 MB / 0.5947 GB, free: 33.3 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.756e-05/0.5018, allocations: 10.62 kB / 0.5948 GB, free: 33.3 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01758/0.5194, allocations: 2.367 MB / 0.5971 GB, free: 33.06 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006509/0.5259, allocations: 2.253 MB / 0.5993 GB, free: 32.6 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001977/0.5261, allocations: 176.1 kB / 0.5994 GB, free: 32.54 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008661/0.527, allocations: 239.9 kB / 0.5997 GB, free: 32.49 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0135/0.5405, allocations: 7.79 MB / 0.6073 GB, free: 28.7 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.293e-05/0.5406, allocations: 41.44 kB / 0.6073 GB, free: 28.67 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003283/0.5409, allocations: 125.7 kB / 0.6074 GB, free: 28.62 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002877/0.5438, allocations: 1.576 MB / 0.609 GB, free: 28.34 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01226/0.5561, allocations: 6.582 MB / 0.6154 GB, free: 25.79 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03412/0.5902, allocations: 31.68 MB / 0.6463 GB, free: 11.13 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005496/0.5957, allocations: 2.413 MB / 0.6487 GB, free: 8.578 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001659/0.5973, allocations: 1.054 MB / 0.6497 GB, free: 7.516 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004234/0.5978, allocations: 315.2 kB / 0.65 GB, free: 7.152 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.121e-05/0.5978, allocations: 46.5 kB / 0.6501 GB, free: 7.098 MB / 462.1 MB Notification: Performance of pre-optimization done (n=104): time 3.306e-06/0.5978, allocations: 4 kB / 0.6501 GB, free: 7.094 MB / 462.1 MB Notification: Performance of matching and sorting (n=118): time 0.02652/0.6244, allocations: 9.313 MB / 0.6592 GB, free: 13.69 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001454/0.6245, allocations: 196.4 kB / 0.6593 GB, free: 13.46 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005826/0.6303, allocations: 3.76 MB / 0.663 GB, free: 9.703 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002768/0.6306, allocations: 45.69 kB / 0.6631 GB, free: 9.652 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00246/0.6331, allocations: 2.81 MB / 0.6658 GB, free: 6.816 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007539/0.6338, allocations: 0.5119 MB / 0.6663 GB, free: 6.301 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001562/0.6354, allocations: 1.127 MB / 0.6674 GB, free: 5.164 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001402/0.6355, allocations: 301.1 kB / 0.6677 GB, free: 4.867 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002815/0.6383, allocations: 1.693 MB / 0.6693 GB, free: 3.168 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006404/0.6447, allocations: 5.263 MB / 0.6745 GB, free: 12.11 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01073/0.6555, allocations: 7.502 MB / 0.6818 GB, free: 2.824 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001395/0.6556, allocations: 39.94 kB / 0.6819 GB, free: 2.785 MB / 494.1 MB Notification: Performance of matching and sorting (n=717) (initialization): time 0.01584/0.6714, allocations: 7.133 MB / 0.6888 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001417/0.6716, allocations: 60 kB / 0.6889 GB, free: 11.58 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000239/0.6718, allocations: 124 kB / 0.689 GB, free: 11.46 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001903/0.6737, allocations: 0.6628 MB / 0.6896 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004289/0.678, allocations: 1.255 MB / 0.6909 GB, free: 9.543 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006073/0.6841, allocations: 4.082 MB / 0.6949 GB, free: 5.328 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004353/0.6884, allocations: 295.6 kB / 0.6951 GB, free: 5.039 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001059/0.6895, allocations: 348 kB / 0.6955 GB, free: 4.699 MB / 0.4981 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.003756/0.6933, allocations: 1.771 MB / 0.6972 GB, free: 2.914 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008486/0.6941, allocations: 321.8 kB / 0.6975 GB, free: 2.598 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004441/0.6986, allocations: 1.829 MB / 0.6993 GB, free: 0.7539 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.848e-05/0.6986, allocations: 23.98 kB / 0.6993 GB, free: 0.7305 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.518e-06/0.6986, allocations: 0 / 0.6993 GB, free: 0.7305 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.664e-05/0.6986, allocations: 7.984 kB / 0.6993 GB, free: 0.7227 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01184/0.7105, allocations: 5.2 MB / 0.7044 GB, free: 11.46 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.173e-05/0.7105, allocations: 0 / 0.7044 GB, free: 11.46 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008356/0.7113, allocations: 159.8 kB / 0.7046 GB, free: 11.3 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001494/0.7128, allocations: 488.3 kB / 0.705 GB, free: 10.82 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001241/0.7129, allocations: 19.94 kB / 0.705 GB, free: 10.8 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004726/0.7176, allocations: 3.442 MB / 0.7084 GB, free: 7.219 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.7177, allocations: 0 / 0.7084 GB, free: 7.219 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006347/0.724, allocations: 3.747 MB / 0.7121 GB, free: 3.445 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009413/0.7249, allocations: 370.9 kB / 0.7124 GB, free: 3.062 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003266/0.7253, allocations: 20 kB / 0.7124 GB, free: 3.043 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001028/0.7263, allocations: 55.92 kB / 0.7125 GB, free: 2.988 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002213/0.7265, allocations: 76.33 kB / 0.7126 GB, free: 2.914 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.874e-05/0.7266, allocations: 32.06 kB / 0.7126 GB, free: 2.883 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.005322/0.7319, allocations: 2.334 MB / 0.7149 GB, free: 0.5625 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7319, allocations: 0 / 0.7149 GB, free: 0.5625 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.005494/0.7374, allocations: 0.793 MB / 0.7156 GB, free: 15.77 MB / 0.5294 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.0004996/0.7379, allocations: 150.8 kB / 0.7158 GB, free: 15.62 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.00771/0.7456, allocations: 3.88 MB / 0.7196 GB, free: 11.75 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.502e-06/0.7456, allocations: 1.188 kB / 0.7196 GB, free: 11.75 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001626/0.7473, allocations: 0.9358 MB / 0.7205 GB, free: 10.8 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002578/0.7498, allocations: 358.7 kB / 0.7208 GB, free: 10.45 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01351/0.7633, allocations: 7.227 MB / 0.7279 GB, free: 3.18 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003234/0.7666, allocations: 2.712 MB / 0.7305 GB, free: 448 kB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.00389/0.7705, allocations: 1.706 MB / 0.7322 GB, free: 14.73 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005754/0.771, allocations: 207.4 kB / 0.7324 GB, free: 14.53 MB / 0.545 GB Notification: Performance of SimCode: time 1.072e-06/0.771, allocations: 3.938 kB / 0.7324 GB, free: 14.52 MB / 0.545 GB Notification: Performance of Templates: time 0.05816/0.8292, allocations: 26.17 MB / 0.758 GB, free: 4.445 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.05869397893548]