Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance.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.001564/0.001564, allocations: 113.1 kB / 21.85 MB, free: 80 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.00179/0.00179, allocations: 220.4 kB / 25.13 MB, free: 3.605 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.452/1.452, allocations: 230.4 MB / 258.7 MB, free: 8.059 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.228/0.228, allocations: 46.93 MB / 362 MB, free: 4.254 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.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance") [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.002327/0.002327, allocations: 75.88 kB / 0.4978 GB, free: 7.422 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3153/0.3177, allocations: 66.08 MB / 0.5623 GB, free: 4.312 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01116/0.3288, allocations: 8.912 MB / 0.571 GB, free: 11.36 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.007279/0.3361, allocations: 3.582 MB / 0.5745 GB, free: 7.77 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001086/0.3372, allocations: 55.75 kB / 0.5746 GB, free: 7.715 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003298/0.3405, allocations: 1.701 MB / 0.5762 GB, free: 6.008 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003992/0.3445, allocations: 1.58 MB / 0.5778 GB, free: 4.422 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001435/0.3459, allocations: 0.5653 MB / 0.5783 GB, free: 3.855 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005535/0.3514, allocations: 3.572 MB / 0.5818 GB, free: 284 kB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002608/0.354, allocations: 1.825 MB / 0.5836 GB, free: 14.4 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00189/0.3559, allocations: 1.113 MB / 0.5847 GB, free: 13.28 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002635/0.3586, allocations: 1.67 MB / 0.5863 GB, free: 11.61 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005774/0.3591, allocations: 220 kB / 0.5865 GB, free: 11.39 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002115/0.3613, allocations: 1.014 MB / 0.5875 GB, free: 10.38 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00176/0.363, allocations: 1.449 MB / 0.5889 GB, free: 8.922 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002385/0.3654, allocations: 1.607 MB / 0.5905 GB, free: 7.305 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008011/0.3734, allocations: 5.428 MB / 0.5958 GB, free: 1.855 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.595e-06/0.3734, allocations: 0 / 0.5958 GB, free: 1.855 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.464e-06/0.3734, allocations: 0 / 0.5958 GB, free: 1.855 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001618/0.3736, allocations: 0 / 0.5958 GB, free: 1.855 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: 1141 * Number of variables: 1141 Notification: Performance of Generate backend data structure: time 0.007961/0.3816, allocations: 3.685 MB / 0.5994 GB, free: 14.11 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.649e-05/0.3816, allocations: 8.031 kB / 0.5994 GB, free: 14.11 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01409/0.3957, allocations: 2.35 MB / 0.6017 GB, free: 11.75 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005365/0.4011, allocations: 2.115 MB / 0.6038 GB, free: 9.598 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001396/0.4012, allocations: 160.5 kB / 0.6039 GB, free: 9.438 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004951/0.4017, allocations: 231.9 kB / 0.6041 GB, free: 9.211 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0125/0.4142, allocations: 7.448 MB / 0.6114 GB, free: 1.125 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.602e-05/0.4143, allocations: 39.69 kB / 0.6115 GB, free: 1.086 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002939/0.4146, allocations: 107.9 kB / 0.6116 GB, free: 0.9805 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002554/0.4171, allocations: 1.538 MB / 0.6131 GB, free: 15.44 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01206/0.4292, allocations: 6.315 MB / 0.6192 GB, free: 9.105 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03784/0.467, allocations: 30 MB / 0.6485 GB, free: 10.18 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004437/0.4715, allocations: 1.714 MB / 0.6502 GB, free: 8.434 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001577/0.4731, allocations: 1.047 MB / 0.6512 GB, free: 7.375 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002932/0.4733, allocations: 88.17 kB / 0.6513 GB, free: 7.289 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.633e-05/0.4734, allocations: 54.98 kB / 0.6514 GB, free: 7.227 MB / 494.1 MB Notification: Performance of pre-optimization done (n=108): time 3.096e-06/0.4734, allocations: 0 / 0.6514 GB, free: 7.227 MB / 494.1 MB Notification: Performance of matching and sorting (n=132): time 0.03649/0.5099, allocations: 11.82 MB / 0.6629 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000134/0.51, allocations: 192.8 kB / 0.6631 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005738/0.5158, allocations: 3.612 MB / 0.6666 GB, free: 7.492 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0003044/0.5161, allocations: 45.64 kB / 0.6667 GB, free: 7.441 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002392/0.5185, allocations: 2.647 MB / 0.6692 GB, free: 4.77 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007412/0.5192, allocations: 0.5467 MB / 0.6698 GB, free: 4.219 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001452/0.5207, allocations: 1.095 MB / 0.6708 GB, free: 3.113 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000158/0.5208, allocations: 305.1 kB / 0.6711 GB, free: 2.812 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002917/0.5237, allocations: 1.74 MB / 0.6728 GB, free: 1.066 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005863/0.5296, allocations: 5.138 MB / 0.6778 GB, free: 10.23 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01055/0.5401, allocations: 7.357 MB / 0.685 GB, free: 1.207 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001043/0.5402, allocations: 36 kB / 0.6851 GB, free: 1.172 MB / 0.5137 GB Notification: Performance of matching and sorting (n=694) (initialization): time 0.01397/0.5542, allocations: 7.07 MB / 0.692 GB, free: 10.09 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001454/0.5544, allocations: 59.94 kB / 0.692 GB, free: 10.03 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001837/0.5545, allocations: 120 kB / 0.6921 GB, free: 9.914 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001667/0.5562, allocations: 0.6369 MB / 0.6928 GB, free: 9.273 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003811/0.56, allocations: 1.217 MB / 0.694 GB, free: 8.055 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005344/0.5654, allocations: 3.959 MB / 0.6978 GB, free: 3.984 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003589/0.569, allocations: 299.6 kB / 0.6981 GB, free: 3.691 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005431/0.5695, allocations: 328 kB / 0.6984 GB, free: 3.371 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 539 * Number of states: 0 () * Number of discrete variables: 29 (Distance1.arrow.twoHeadedArrow,Distance1.arrow.headAtOrigin,BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Distance1.arrowColor[3],Distance1.arrowColor[2],Distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (659): * Single equations (assignments): 655 * 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,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002521/0.572, allocations: 1.705 MB / 0.7001 GB, free: 1.656 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005227/0.5725, allocations: 309.9 kB / 0.7004 GB, free: 1.352 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00398/0.5765, allocations: 2.08 MB / 0.7024 GB, free: 15.25 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.527e-05/0.5766, allocations: 12 kB / 0.7024 GB, free: 15.24 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.928e-06/0.5766, allocations: 8 kB / 0.7024 GB, free: 15.23 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.171e-05/0.5766, allocations: 3.984 kB / 0.7024 GB, free: 15.23 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009901/0.5865, allocations: 5.569 MB / 0.7079 GB, free: 9.578 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.937e-06/0.5865, allocations: 0 / 0.7079 GB, free: 9.578 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009678/0.5875, allocations: 191.7 kB / 0.7081 GB, free: 9.391 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001373/0.5888, allocations: 496.4 kB / 0.7085 GB, free: 8.902 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001079/0.5889, allocations: 20 kB / 0.7085 GB, free: 8.883 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004379/0.5933, allocations: 3.342 MB / 0.7118 GB, free: 5.43 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.047e-06/0.5933, allocations: 4 kB / 0.7118 GB, free: 5.426 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006571/0.5999, allocations: 4.177 MB / 0.7159 GB, free: 1.211 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008972/0.6008, allocations: 301.7 kB / 0.7162 GB, free: 0.9141 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000332/0.6011, allocations: 24 kB / 0.7162 GB, free: 0.8906 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00107/0.6022, allocations: 75.97 kB / 0.7163 GB, free: 0.8164 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002275/0.6024, allocations: 72.45 kB / 0.7163 GB, free: 0.7461 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001047/0.6025, allocations: 39.98 kB / 0.7164 GB, free: 0.707 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003866/0.6064, allocations: 2.252 MB / 0.7186 GB, free: 14.46 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6064, allocations: 0 / 0.7186 GB, free: 14.46 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004383/0.6108, allocations: 0.7851 MB / 0.7193 GB, free: 13.68 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * 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.0004202/0.6112, allocations: 147 kB / 0.7195 GB, free: 13.52 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.007249/0.6184, allocations: 3.986 MB / 0.7234 GB, free: 9.559 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.647e-06/0.6184, allocations: 192 / 0.7234 GB, free: 9.559 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001762/0.6202, allocations: 1.058 MB / 0.7244 GB, free: 8.488 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00222/0.6224, allocations: 348.4 kB / 0.7247 GB, free: 8.145 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0137/0.6361, allocations: 7.24 MB / 0.7318 GB, free: 0.8516 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2776/0.9137, allocations: 2.629 MB / 0.7344 GB, free: 154.1 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004446/0.9181, allocations: 1.696 MB / 0.736 GB, free: 154.1 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006677/0.9188, allocations: 205.3 kB / 0.7362 GB, free: 154.1 MB / 0.5606 GB Notification: Performance of SimCode: time 2.324e-06/0.9188, allocations: 0 / 0.7362 GB, free: 154.1 MB / 0.5606 GB Notification: Performance of Templates: time 0.04714/0.9659, allocations: 29.59 MB / 0.7651 GB, free: 132.5 MB / 0.5606 GB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance.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.769145594211295]