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.00206/0.00206, allocations: 113.1 kB / 21.85 MB, free: 68 kB / 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.002466/0.002466, allocations: 207.4 kB / 25.12 MB, free: 3.59 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.471/1.471, allocations: 230.4 MB / 258.7 MB, free: 8.066 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.2376/0.2376, allocations: 46.94 MB / 362 MB, free: 4.238 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-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.00233/0.00233, allocations: 75.88 kB / 0.4978 GB, free: 7.414 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.32/0.3223, allocations: 66.09 MB / 0.5623 GB, free: 4.277 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01138/0.3337, allocations: 9.032 MB / 0.5711 GB, free: 11.2 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.007319/0.341, allocations: 3.605 MB / 0.5747 GB, free: 7.59 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009584/0.3419, allocations: 55.75 kB / 0.5747 GB, free: 7.535 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003754/0.3457, allocations: 1.943 MB / 0.5766 GB, free: 5.586 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003745/0.3494, allocations: 1.623 MB / 0.5782 GB, free: 3.957 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001327/0.3508, allocations: 0.5692 MB / 0.5788 GB, free: 3.387 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005148/0.3559, allocations: 3.665 MB / 0.5823 GB, free: 15.71 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002607/0.3585, allocations: 2.006 MB / 0.5843 GB, free: 13.65 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002224/0.3607, allocations: 1.18 MB / 0.5854 GB, free: 12.47 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002941/0.3637, allocations: 1.776 MB / 0.5872 GB, free: 10.69 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005763/0.3643, allocations: 240 kB / 0.5874 GB, free: 10.45 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002197/0.3665, allocations: 1.03 MB / 0.5884 GB, free: 9.422 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001745/0.3682, allocations: 1.546 MB / 0.5899 GB, free: 7.871 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001994/0.3702, allocations: 1.712 MB / 0.5916 GB, free: 6.148 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006805/0.377, allocations: 5.727 MB / 0.5972 GB, free: 408 kB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.377, allocations: 0 / 0.5972 GB, free: 408 kB / 430.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.377, allocations: 0 / 0.5972 GB, free: 408 kB / 430.1 MB Notification: Performance of Transformations before backend: time 8.163e-05/0.3771, allocations: 0 / 0.5972 GB, free: 408 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.007045/0.3841, allocations: 3.858 MB / 0.601 GB, free: 12.48 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.645e-05/0.3842, allocations: 8.031 kB / 0.601 GB, free: 12.47 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01439/0.3986, allocations: 2.366 MB / 0.6033 GB, free: 10.1 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005565/0.4041, allocations: 2.189 MB / 0.6054 GB, free: 7.875 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001453/0.4043, allocations: 176.8 kB / 0.6056 GB, free: 7.699 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005506/0.4048, allocations: 236 kB / 0.6058 GB, free: 7.469 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01282/0.4177, allocations: 7.837 MB / 0.6135 GB, free: 14.97 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001027/0.4178, allocations: 39.69 kB / 0.6135 GB, free: 14.93 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003159/0.4181, allocations: 119.9 kB / 0.6136 GB, free: 14.81 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002604/0.4207, allocations: 1.585 MB / 0.6152 GB, free: 13.22 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01288/0.4336, allocations: 6.585 MB / 0.6216 GB, free: 6.625 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03897/0.4725, allocations: 31.47 MB / 0.6523 GB, free: 6.176 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004676/0.4772, allocations: 1.959 MB / 0.6542 GB, free: 4.18 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001563/0.4788, allocations: 1.046 MB / 0.6553 GB, free: 3.121 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000284/0.479, allocations: 95.94 kB / 0.6553 GB, free: 3.027 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.641e-05/0.4791, allocations: 46.56 kB / 0.6554 GB, free: 2.973 MB / 494.1 MB Notification: Performance of pre-optimization done (n=104): time 3.276e-06/0.4791, allocations: 0 / 0.6554 GB, free: 2.973 MB / 494.1 MB Notification: Performance of matching and sorting (n=118): time 0.02413/0.5032, allocations: 9.199 MB / 0.6644 GB, free: 9.719 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001407/0.5034, allocations: 192.4 kB / 0.6646 GB, free: 9.488 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006316/0.5097, allocations: 3.763 MB / 0.6682 GB, free: 5.73 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002532/0.5099, allocations: 41.7 kB / 0.6683 GB, free: 5.684 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002514/0.5125, allocations: 2.81 MB / 0.671 GB, free: 2.848 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007139/0.5132, allocations: 0.508 MB / 0.6715 GB, free: 2.336 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00155/0.5147, allocations: 1.131 MB / 0.6726 GB, free: 1.195 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001441/0.5149, allocations: 309.1 kB / 0.6729 GB, free: 0.8906 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002827/0.5177, allocations: 1.689 MB / 0.6746 GB, free: 15.19 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006846/0.5245, allocations: 5.313 MB / 0.6798 GB, free: 8.066 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01098/0.5355, allocations: 7.505 MB / 0.6871 GB, free: 14.78 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001032/0.5356, allocations: 40 kB / 0.6871 GB, free: 14.74 MB / 0.5294 GB Notification: Performance of matching and sorting (n=717) (initialization): time 0.01434/0.55, allocations: 7.128 MB / 0.6941 GB, free: 7.609 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.235e-05/0.5501, allocations: 64.16 kB / 0.6941 GB, free: 7.547 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001568/0.5502, allocations: 128 kB / 0.6943 GB, free: 7.422 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001732/0.5519, allocations: 0.6642 MB / 0.6949 GB, free: 6.754 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004085/0.556, allocations: 1.251 MB / 0.6961 GB, free: 5.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005688/0.5617, allocations: 3.964 MB / 0.7 GB, free: 1.426 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003948/0.5657, allocations: 307.6 kB / 0.7003 GB, free: 1.125 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007254/0.5664, allocations: 344 kB / 0.7006 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.002963/0.5694, allocations: 1.78 MB / 0.7024 GB, free: 15 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006139/0.57, allocations: 317.8 kB / 0.7027 GB, free: 14.68 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00373/0.5737, allocations: 1.835 MB / 0.7045 GB, free: 12.83 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.47e-05/0.5737, allocations: 12 kB / 0.7045 GB, free: 12.82 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.847e-06/0.5737, allocations: 4 kB / 0.7045 GB, free: 12.81 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.188e-05/0.5737, allocations: 3.984 kB / 0.7045 GB, free: 12.81 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009932/0.5837, allocations: 5.178 MB / 0.7095 GB, free: 7.562 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.308e-05/0.5837, allocations: 7.938 kB / 0.7095 GB, free: 7.555 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008346/0.5845, allocations: 155.8 kB / 0.7097 GB, free: 7.402 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0014/0.5859, allocations: 484.3 kB / 0.7102 GB, free: 6.926 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.239e-05/0.586, allocations: 24 kB / 0.7102 GB, free: 6.902 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004465/0.5905, allocations: 3.326 MB / 0.7134 GB, free: 3.465 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.5905, allocations: 4.031 kB / 0.7134 GB, free: 3.461 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006153/0.5966, allocations: 3.754 MB / 0.7171 GB, free: 15.68 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008614/0.5975, allocations: 305.7 kB / 0.7174 GB, free: 15.38 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003084/0.5978, allocations: 19.94 kB / 0.7174 GB, free: 15.36 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009723/0.5988, allocations: 59.92 kB / 0.7175 GB, free: 15.3 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002141/0.599, allocations: 64.38 kB / 0.7175 GB, free: 15.24 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.461e-05/0.5991, allocations: 28 kB / 0.7176 GB, free: 15.21 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003801/0.6029, allocations: 2.334 MB / 0.7198 GB, free: 12.89 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.01e-07/0.6029, allocations: 0 / 0.7198 GB, free: 12.89 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004009/0.6069, allocations: 0.7969 MB / 0.7206 GB, free: 12.1 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.0003504/0.6072, allocations: 142.9 kB / 0.7207 GB, free: 11.95 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.006804/0.614, allocations: 3.876 MB / 0.7245 GB, free: 8.082 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.614, allocations: 3.938 kB / 0.7245 GB, free: 8.078 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001513/0.6156, allocations: 0.9354 MB / 0.7254 GB, free: 7.133 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002027/0.6176, allocations: 362.7 kB / 0.7258 GB, free: 6.777 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2533/0.8709, allocations: 7.283 MB / 0.7329 GB, free: 154.3 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003891/0.8748, allocations: 2.714 MB / 0.7356 GB, free: 153.5 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003081/0.8779, allocations: 1.702 MB / 0.7372 GB, free: 153.5 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00041/0.8783, allocations: 208.2 kB / 0.7374 GB, free: 153.5 MB / 0.5606 GB Notification: Performance of SimCode: time 9.31e-07/0.8783, allocations: 0 / 0.7374 GB, free: 153.5 MB / 0.5606 GB Notification: Performance of Templates: time 0.04716/0.9255, allocations: 29.63 MB / 0.7664 GB, free: 130.7 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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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: 6.881776897003874]