Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002232/0.002232, allocations: 108.4 kB / 21.17 MB, free: 0.7852 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002936/0.002936, allocations: 217.3 kB / 24.47 MB, free: 4.359 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.515/1.515, allocations: 230.2 MB / 257.8 MB, free: 8.508 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.24/0.24, allocations: 46.89 MB / 361.1 MB, free: 4.641 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-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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-beta.om_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-beta.om_ModelicaTest.MultiBody.Sensors.Distance2") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002797/0.002797, allocations: 75.88 kB / 0.4967 GB, free: 7.844 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3564/0.3592, allocations: 65.99 MB / 0.5612 GB, free: 5.035 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01151/0.3707, allocations: 9.122 MB / 0.5701 GB, free: 11.88 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.007885/0.3786, allocations: 3.616 MB / 0.5736 GB, free: 8.246 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009757/0.3796, allocations: 51.88 kB / 0.5737 GB, free: 8.195 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003724/0.3833, allocations: 1.939 MB / 0.5756 GB, free: 6.25 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003711/0.387, allocations: 1.607 MB / 0.5771 GB, free: 4.637 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001205/0.3882, allocations: 0.5731 MB / 0.5777 GB, free: 4.062 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004932/0.3931, allocations: 3.661 MB / 0.5813 GB, free: 404 kB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002415/0.3955, allocations: 1.808 MB / 0.583 GB, free: 14.53 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001946/0.3975, allocations: 1.16 MB / 0.5842 GB, free: 13.37 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00245/0.3999, allocations: 1.779 MB / 0.5859 GB, free: 11.58 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004723/0.4004, allocations: 244 kB / 0.5861 GB, free: 11.34 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002013/0.4024, allocations: 1.151 MB / 0.5873 GB, free: 10.19 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001573/0.404, allocations: 1.542 MB / 0.5888 GB, free: 8.645 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001788/0.4058, allocations: 1.712 MB / 0.5904 GB, free: 6.922 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006883/0.4127, allocations: 5.704 MB / 0.596 GB, free: 1.195 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.4127, allocations: 3.938 kB / 0.596 GB, free: 1.191 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.537e-06/0.4127, allocations: 4 kB / 0.596 GB, free: 1.188 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001302/0.4128, allocations: 0 / 0.596 GB, free: 1.188 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: 1211 * Number of variables: 1211 Notification: Performance of Generate backend data structure: time 0.008807/0.4216, allocations: 3.933 MB / 0.5999 GB, free: 13.18 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.78e-05/0.4217, allocations: 8.031 kB / 0.5999 GB, free: 13.17 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01667/0.4383, allocations: 2.37 MB / 0.6022 GB, free: 10.8 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006326/0.4447, allocations: 2.253 MB / 0.6044 GB, free: 8.492 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001696/0.4448, allocations: 176.8 kB / 0.6046 GB, free: 8.316 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007199/0.4455, allocations: 244 kB / 0.6048 GB, free: 8.078 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01274/0.4583, allocations: 7.79 MB / 0.6124 GB, free: 15.64 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001059/0.4584, allocations: 35.75 kB / 0.6124 GB, free: 15.6 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003424/0.4587, allocations: 115.9 kB / 0.6125 GB, free: 15.49 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002879/0.4616, allocations: 1.578 MB / 0.6141 GB, free: 13.91 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01291/0.4745, allocations: 6.593 MB / 0.6205 GB, free: 7.297 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05253/0.5271, allocations: 31.68 MB / 0.6514 GB, free: 6.648 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005227/0.5323, allocations: 2.407 MB / 0.6538 GB, free: 4.094 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001633/0.5339, allocations: 1.056 MB / 0.6548 GB, free: 3.027 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000435/0.5344, allocations: 323.3 kB / 0.6551 GB, free: 2.656 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.487e-05/0.5344, allocations: 50.44 kB / 0.6552 GB, free: 2.598 MB / 494.1 MB Notification: Performance of pre-optimization done (n=104): time 3.155e-06/0.5344, allocations: 0 / 0.6552 GB, free: 2.598 MB / 494.1 MB Notification: Performance of matching and sorting (n=118): time 0.02516/0.5596, allocations: 9.308 MB / 0.6643 GB, free: 9.195 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001496/0.5597, allocations: 192.5 kB / 0.6645 GB, free: 8.961 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007527/0.5672, allocations: 3.763 MB / 0.6681 GB, free: 5.203 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0003958/0.5676, allocations: 41.7 kB / 0.6682 GB, free: 5.156 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002981/0.5706, allocations: 2.81 MB / 0.6709 GB, free: 2.32 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008761/0.5715, allocations: 0.5041 MB / 0.6714 GB, free: 1.812 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001779/0.5733, allocations: 1.135 MB / 0.6725 GB, free: 0.668 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001429/0.5734, allocations: 309.1 kB / 0.6728 GB, free: 372 kB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002645/0.5761, allocations: 1.689 MB / 0.6745 GB, free: 14.67 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0059/0.582, allocations: 5.259 MB / 0.6796 GB, free: 7.609 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01022/0.5922, allocations: 7.511 MB / 0.6869 GB, free: 14.32 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001324/0.5923, allocations: 39.98 kB / 0.687 GB, free: 14.28 MB / 0.5294 GB Notification: Performance of matching and sorting (n=717) (initialization): time 0.01461/0.6069, allocations: 7.132 MB / 0.6939 GB, free: 7.141 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001618/0.6071, allocations: 63.94 kB / 0.694 GB, free: 7.078 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002271/0.6073, allocations: 124 kB / 0.6941 GB, free: 6.957 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00184/0.6091, allocations: 0.6526 MB / 0.6948 GB, free: 6.301 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00417/0.6133, allocations: 1.251 MB / 0.696 GB, free: 5.047 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005961/0.6193, allocations: 4.079 MB / 0.7 GB, free: 0.832 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00426/0.6235, allocations: 299.7 kB / 0.7002 GB, free: 0.5391 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008885/0.6244, allocations: 344 kB / 0.7006 GB, free: 208 kB / 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.00359/0.628, allocations: 1.771 MB / 0.7023 GB, free: 14.42 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007875/0.6288, allocations: 321.8 kB / 0.7026 GB, free: 14.1 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004331/0.6331, allocations: 1.836 MB / 0.7044 GB, free: 12.25 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.092e-05/0.6332, allocations: 15.98 kB / 0.7044 GB, free: 12.23 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.928e-05/0.6332, allocations: 4 kB / 0.7044 GB, free: 12.23 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.158e-05/0.6332, allocations: 7.984 kB / 0.7044 GB, free: 12.22 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01327/0.6465, allocations: 5.197 MB / 0.7095 GB, free: 6.949 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-05/0.6465, allocations: 3.938 kB / 0.7095 GB, free: 6.945 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000865/0.6474, allocations: 163.8 kB / 0.7097 GB, free: 6.785 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001463/0.6488, allocations: 484.2 kB / 0.7101 GB, free: 6.309 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001063/0.6489, allocations: 23.94 kB / 0.7102 GB, free: 6.285 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004559/0.6535, allocations: 3.43 MB / 0.7135 GB, free: 2.723 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.017e-06/0.6535, allocations: 8.047 kB / 0.7135 GB, free: 2.715 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006164/0.6597, allocations: 3.751 MB / 0.7172 GB, free: 14.94 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001046/0.6607, allocations: 374.8 kB / 0.7175 GB, free: 14.55 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006521/0.6614, allocations: 19.94 kB / 0.7175 GB, free: 14.53 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001272/0.6626, allocations: 63.91 kB / 0.7176 GB, free: 14.47 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001963/0.6628, allocations: 64.41 kB / 0.7177 GB, free: 14.41 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.048e-05/0.6629, allocations: 35.98 kB / 0.7177 GB, free: 14.37 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003856/0.6668, allocations: 2.33 MB / 0.72 GB, free: 12.05 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/0.6668, allocations: 4.281 kB / 0.72 GB, free: 12.05 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00432/0.6711, allocations: 0.7968 MB / 0.7208 GB, free: 11.25 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.0003923/0.6715, allocations: 143 kB / 0.7209 GB, free: 11.1 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.00722/0.6787, allocations: 3.872 MB / 0.7247 GB, free: 7.238 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.941e-06/0.6787, allocations: 0 / 0.7247 GB, free: 7.238 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001684/0.6804, allocations: 0.9354 MB / 0.7256 GB, free: 6.293 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003066/0.6835, allocations: 355.7 kB / 0.7259 GB, free: 5.945 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2871/0.9705, allocations: 7.295 MB / 0.7331 GB, free: 154.2 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002952/0.9735, allocations: 2.718 MB / 0.7357 GB, free: 153.5 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003297/0.9768, allocations: 1.703 MB / 0.7374 GB, free: 153.4 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005333/0.9773, allocations: 209 kB / 0.7376 GB, free: 153.4 MB / 0.5606 GB Notification: Performance of SimCode: time 1.002e-06/0.9773, allocations: 0 / 0.7376 GB, free: 153.4 MB / 0.5606 GB Notification: Performance of Templates: time 0.04724/1.025, allocations: 27.36 MB / 0.7643 GB, free: 133.1 MB / 0.5606 GB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_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.022349188104272]