Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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.002806/0.002806, allocations: 99.53 kB / 20.97 MB, free: 3.453 MB / 18.57 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.003683/0.003683, allocations: 160.8 kB / 24.27 MB, free: 156 kB / 18.57 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.571/1.571, allocations: 177 MB / 204.5 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3717/0.3717, allocations: 34.26 MB / 295.2 MB, free: 0.6523 MB / 266.7 MB " [Timeout remaining time 179] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 377.2 MB, free: 2.914 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.897e-05/3.059e-05, allocations: 10.25 kB / 377.2 MB, free: 2.902 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.0127/0.01273, allocations: 8.623 MB / 385.8 MB, free: 10.24 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.008817/0.02155, allocations: 3.476 MB / 389.3 MB, free: 6.754 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001811/0.02336, allocations: 59.69 kB / 389.4 MB, free: 6.695 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0044/0.02776, allocations: 1.783 MB / 391.1 MB, free: 4.906 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004893/0.03265, allocations: 1.637 MB / 392.8 MB, free: 3.262 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001633/0.03429, allocations: 0.6157 MB / 393.4 MB, free: 2.645 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.006229/0.04051, allocations: 3.95 MB / 397.3 MB, free: 14.68 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003254/0.04377, allocations: 2.141 MB / 399.5 MB, free: 12.48 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002934/0.0467, allocations: 1.691 MB / 401.2 MB, free: 10.79 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003263/0.04997, allocations: 1.722 MB / 402.9 MB, free: 9.062 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007307/0.0507, allocations: 224 kB / 403.1 MB, free: 8.844 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002591/0.05329, allocations: 1.053 MB / 404.2 MB, free: 7.789 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001962/0.05525, allocations: 1.515 MB / 405.7 MB, free: 6.27 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001655/0.0569, allocations: 0.9111 MB / 406.6 MB, free: 5.355 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008345/0.06525, allocations: 5.471 MB / 412.1 MB, free: 15.87 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.658e-06/0.06526, allocations: 7.938 kB / 412.1 MB, free: 15.86 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.774e-06/0.06526, allocations: 0 / 412.1 MB, free: 15.86 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000154/0.06542, allocations: 0 / 412.1 MB, free: 15.86 MB / 394.7 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.01037/0.07579, allocations: 4.333 MB / 416.4 MB, free: 11.46 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.842e-05/0.07584, allocations: 8.031 kB / 416.4 MB, free: 11.45 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01886/0.0947, allocations: 2.733 MB / 419.2 MB, free: 8.715 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006033/0.1007, allocations: 2 MB / 421.2 MB, free: 6.68 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001632/0.1009, allocations: 164.5 kB / 421.3 MB, free: 6.516 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005209/0.1014, allocations: 220.1 kB / 421.5 MB, free: 6.301 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009694/0.1111, allocations: 4.924 MB / 426.5 MB, free: 0.5273 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.905e-05/0.1112, allocations: 39.64 kB / 426.5 MB, free: 500 kB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003113/0.1115, allocations: 111.9 kB / 426.6 MB, free: 388 kB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002852/0.1144, allocations: 1.539 MB / 428.1 MB, free: 14.84 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007638/0.122, allocations: 2.606 MB / 430.7 MB, free: 12.23 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2059/0.3279, allocations: 37.47 MB / 468.2 MB, free: 66.7 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003549/0.3314, allocations: 0.9997 MB / 469.2 MB, free: 66.42 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007111/0.3322, allocations: 380 kB / 469.6 MB, free: 66.31 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003011/0.3325, allocations: 97.64 kB / 469.7 MB, free: 66.3 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.906e-05/0.3325, allocations: 50.73 kB / 469.7 MB, free: 66.25 MB / 410.7 MB Notification: Performance of pre-optimization done (n=108): time 3.727e-06/0.3325, allocations: 0 / 469.7 MB, free: 66.25 MB / 410.7 MB Notification: Performance of matching and sorting (n=132): time 0.02669/0.3592, allocations: 8.631 MB / 478.4 MB, free: 63.34 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.625e-05/0.3593, allocations: 200.2 kB / 478.6 MB, free: 63.12 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004444/0.3637, allocations: 3.859 MB / 482.4 MB, free: 61.46 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002713/0.364, allocations: 54.5 kB / 482.5 MB, free: 61.41 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001674/0.3657, allocations: 2.985 MB / 485.5 MB, free: 59.25 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000774/0.3664, allocations: 0.5953 MB / 486.1 MB, free: 58.82 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001501/0.3679, allocations: 1.361 MB / 487.4 MB, free: 58.11 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 6.665e-05/0.368, allocations: 480.1 kB / 487.9 MB, free: 57.64 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001298/0.3693, allocations: 0.6376 MB / 488.5 MB, free: 57.53 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003197/0.3725, allocations: 5.818 MB / 494.3 MB, free: 50.58 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006213/0.3787, allocations: 7.068 MB / 0.4897 GB, free: 42.86 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001552/0.3789, allocations: 35.72 kB / 0.4897 GB, free: 42.86 MB / 410.7 MB Notification: Performance of matching and sorting (n=694) (initialization): time 0.01215/0.391, allocations: 4.993 MB / 0.4946 GB, free: 41.02 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001635/0.3912, allocations: 59.5 kB / 0.4946 GB, free: 41.02 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003382/0.3915, allocations: 117.6 kB / 0.4947 GB, free: 41.02 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002093/0.3936, allocations: 464.7 kB / 0.4952 GB, free: 40.98 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004207/0.3978, allocations: 1.223 MB / 0.4964 GB, free: 40.82 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003306/0.4011, allocations: 2.975 MB / 0.4993 GB, free: 38.46 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004129/0.4052, allocations: 333.4 kB / 0.4996 GB, free: 38.35 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007061/0.406, allocations: 331.6 kB / 0.4999 GB, free: 38.3 MB / 410.7 MB 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.001497/0.4074, allocations: 0.6644 MB / 0.5006 GB, free: 37.79 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005881/0.408, allocations: 311.2 kB / 0.5009 GB, free: 37.62 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002762/0.4108, allocations: 1.182 MB / 0.502 GB, free: 37.23 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.145e-05/0.4108, allocations: 15.84 kB / 0.502 GB, free: 37.23 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.258e-06/0.4108, allocations: 3.969 kB / 0.502 GB, free: 37.23 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.234e-05/0.4108, allocations: 4.125 kB / 0.502 GB, free: 37.23 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008843/0.4197, allocations: 4.743 MB / 0.5067 GB, free: 35.13 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.189e-05/0.4197, allocations: 3.312 kB / 0.5067 GB, free: 35.13 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009239/0.4206, allocations: 193.3 kB / 0.5069 GB, free: 35.11 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001218/0.4218, allocations: 296.8 kB / 0.5071 GB, free: 35.08 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001011/0.4219, allocations: 33.17 kB / 0.5072 GB, free: 35.06 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00235/0.4243, allocations: 2.358 MB / 0.5095 GB, free: 33.06 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.4243, allocations: 3.125 kB / 0.5095 GB, free: 33.06 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003812/0.4281, allocations: 2.261 MB / 0.5117 GB, free: 31.92 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007699/0.4289, allocations: 271.9 kB / 0.5119 GB, free: 31.66 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003116/0.4292, allocations: 20 kB / 0.512 GB, free: 31.64 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001162/0.4303, allocations: 102.4 kB / 0.5121 GB, free: 31.58 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001971/0.4305, allocations: 82.83 kB / 0.5121 GB, free: 31.54 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.877e-05/0.4306, allocations: 43.3 kB / 0.5122 GB, free: 31.5 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002295/0.4329, allocations: 1.565 MB / 0.5137 GB, free: 30.17 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.4329, allocations: 0 / 0.5137 GB, free: 30.17 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004379/0.4373, allocations: 0.86 MB / 0.5145 GB, free: 29.31 MB / 410.7 MB 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.0004246/0.4377, allocations: 164.7 kB / 0.5147 GB, free: 29.15 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005257/0.443, allocations: 2.905 MB / 0.5175 GB, free: 26.54 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/0.443, allocations: 0 / 0.5175 GB, free: 26.54 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001062/0.4441, allocations: 0.685 MB / 0.5182 GB, free: 25.89 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002177/0.4462, allocations: 326.8 kB / 0.5185 GB, free: 25.62 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009766/0.456, allocations: 5.757 MB / 0.5241 GB, free: 20.29 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002379/0.4584, allocations: 1.885 MB / 0.526 GB, free: 18.94 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003262/0.4616, allocations: 1.432 MB / 0.5274 GB, free: 18.12 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005679/0.4622, allocations: 195.9 kB / 0.5276 GB, free: 17.94 MB / 410.7 MB Notification: Performance of SimCode: time 2.334e-06/0.4622, allocations: 4 kB / 0.5276 GB, free: 17.93 MB / 410.7 MB Notification: Performance of Templates: time 0.04606/0.5083, allocations: 23.93 MB / 0.5509 GB, free: 11.62 MB / 426.7 MB " [Timeout remaining time 659] make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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.605768011067994]