Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.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.001375/0.001375, allocations: 85.44 kB / 20.68 MB, free: 1.035 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.001423/0.001423, allocations: 163.6 kB / 23.95 MB, free: 4.168 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.403/1.403, allocations: 177.1 MB / 204.3 MB, free: 9.195 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2032/0.2032, allocations: 32.81 MB / 293.5 MB, free: 60 kB / 270.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.252e-06/1.252e-06, allocations: 0 / 440.1 MB, free: 8.195 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.117e-05/2.242e-05, allocations: 2.281 kB / 440.1 MB, free: 8.191 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.009705/0.009728, allocations: 7.926 MB / 448 MB, free: 236 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2071/0.2168, allocations: 3.365 MB / 451.4 MB, free: 15.17 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000994/0.2178, allocations: 59.97 kB / 451.4 MB, free: 15.15 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003338/0.2212, allocations: 1.704 MB / 453.1 MB, free: 14.86 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003412/0.2246, allocations: 1.625 MB / 454.8 MB, free: 14.27 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001282/0.2259, allocations: 0.6181 MB / 455.4 MB, free: 14.06 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004926/0.2308, allocations: 3.949 MB / 459.3 MB, free: 12.87 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002872/0.2337, allocations: 2.082 MB / 461.4 MB, free: 12.05 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002528/0.2362, allocations: 1.683 MB / 463.1 MB, free: 11.45 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002484/0.2387, allocations: 1.697 MB / 464.8 MB, free: 11.08 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004269/0.2391, allocations: 224.5 kB / 465 MB, free: 11.08 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00196/0.2411, allocations: 1.043 MB / 466.1 MB, free: 10.75 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001173/0.2422, allocations: 1.513 MB / 467.6 MB, free: 9.852 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00105/0.2433, allocations: 0.9104 MB / 468.5 MB, free: 9.328 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005623/0.2489, allocations: 5.46 MB / 473.9 MB, free: 5.707 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.2489, allocations: 0 / 473.9 MB, free: 5.707 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.2489, allocations: 5.375 kB / 473.9 MB, free: 5.703 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001122/0.249, allocations: 0 / 473.9 MB, free: 5.703 MB / 366.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.00854/0.2576, allocations: 3.703 MB / 477.6 MB, free: 3.059 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.972e-05/0.2576, allocations: 14.34 kB / 477.7 MB, free: 3.055 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01654/0.2741, allocations: 2.4 MB / 480.1 MB, free: 1.926 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006722/0.2809, allocations: 2.116 MB / 482.2 MB, free: 15.92 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002367/0.2811, allocations: 156.4 kB / 482.3 MB, free: 15.77 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001271/0.2824, allocations: 231.1 kB / 482.6 MB, free: 15.54 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01256/0.2949, allocations: 7.461 MB / 490 MB, free: 7.445 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.925e-05/0.295, allocations: 35.7 kB / 490 MB, free: 7.41 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003139/0.2953, allocations: 107.9 kB / 490.2 MB, free: 7.305 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002747/0.2981, allocations: 1.543 MB / 491.7 MB, free: 5.758 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01142/0.3095, allocations: 6.3 MB / 498 MB, free: 15.45 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04746/0.357, allocations: 28.56 MB / 0.5142 GB, free: 2 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006782/0.3637, allocations: 1.766 MB / 0.5159 GB, free: 208 kB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00199/0.3657, allocations: 1.047 MB / 0.517 GB, free: 15.14 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003015/0.366, allocations: 88.44 kB / 0.517 GB, free: 15.06 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.54e-05/0.3661, allocations: 43.06 kB / 0.5171 GB, free: 15.01 MB / 430.1 MB Notification: Performance of pre-optimization done (n=108): time 3.567e-06/0.3661, allocations: 0 / 0.5171 GB, free: 15.01 MB / 430.1 MB Notification: Performance of matching and sorting (n=132): time 0.03951/0.4056, allocations: 12.13 MB / 0.5289 GB, free: 2.797 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001318/0.4057, allocations: 196.6 kB / 0.5291 GB, free: 2.562 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005131/0.4109, allocations: 3.445 MB / 0.5325 GB, free: 15.09 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001929/0.411, allocations: 41.7 kB / 0.5325 GB, free: 15.05 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002256/0.4133, allocations: 2.649 MB / 0.5351 GB, free: 12.38 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006909/0.414, allocations: 0.5506 MB / 0.5357 GB, free: 11.82 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001632/0.4156, allocations: 1.064 MB / 0.5367 GB, free: 10.75 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.4158, allocations: 301.1 kB / 0.537 GB, free: 10.45 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003089/0.4189, allocations: 1.744 MB / 0.5387 GB, free: 8.699 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006992/0.4259, allocations: 5.141 MB / 0.5437 GB, free: 1.859 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01072/0.4366, allocations: 7.367 MB / 0.5509 GB, free: 8.828 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001051/0.4367, allocations: 32 kB / 0.5509 GB, free: 8.797 MB / 462.1 MB Notification: Performance of matching and sorting (n=694) (initialization): time 0.01388/0.4506, allocations: 7.036 MB / 0.5578 GB, free: 1.758 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.58e-05/0.4507, allocations: 60.03 kB / 0.5579 GB, free: 1.699 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001499/0.4508, allocations: 127.9 kB / 0.558 GB, free: 1.574 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001828/0.4526, allocations: 0.6425 MB / 0.5586 GB, free: 0.9297 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004039/0.4567, allocations: 1.209 MB / 0.5598 GB, free: 15.72 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005688/0.4624, allocations: 3.947 MB / 0.5636 GB, free: 11.68 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004172/0.4665, allocations: 323.6 kB / 0.5639 GB, free: 11.36 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00071/0.4672, allocations: 329.1 kB / 0.5643 GB, free: 11.04 MB / 478.1 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.003433/0.4707, allocations: 1.694 MB / 0.5659 GB, free: 9.336 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007076/0.4714, allocations: 286 kB / 0.5662 GB, free: 9.055 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004279/0.4757, allocations: 2.053 MB / 0.5682 GB, free: 6.984 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.693e-05/0.4757, allocations: 19.94 kB / 0.5682 GB, free: 6.965 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.114e-05/0.4757, allocations: 4 kB / 0.5682 GB, free: 6.961 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.786e-05/0.4757, allocations: 7.969 kB / 0.5682 GB, free: 6.953 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01077/0.4865, allocations: 4.863 MB / 0.573 GB, free: 2.031 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.165e-05/0.4865, allocations: 8.062 kB / 0.573 GB, free: 2.023 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001048/0.4876, allocations: 191.8 kB / 0.5732 GB, free: 1.836 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001488/0.489, allocations: 488.2 kB / 0.5736 GB, free: 1.355 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001031/0.4891, allocations: 27.98 kB / 0.5737 GB, free: 1.328 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004686/0.4938, allocations: 3.322 MB / 0.5769 GB, free: 13.9 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.4938, allocations: 4.062 kB / 0.5769 GB, free: 13.89 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007082/0.5009, allocations: 4.147 MB / 0.581 GB, free: 9.719 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009591/0.5019, allocations: 278 kB / 0.5812 GB, free: 9.445 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003253/0.5022, allocations: 20 kB / 0.5812 GB, free: 9.426 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001317/0.5035, allocations: 103.9 kB / 0.5813 GB, free: 9.324 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002425/0.5038, allocations: 80.39 kB / 0.5814 GB, free: 9.242 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001136/0.5039, allocations: 43.89 kB / 0.5815 GB, free: 9.203 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003303/0.5072, allocations: 1.996 MB / 0.5834 GB, free: 7.207 MB / 494.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5072, allocations: 0 / 0.5834 GB, free: 7.207 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004479/0.5117, allocations: 0.8593 MB / 0.5842 GB, free: 6.348 MB / 494.1 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.0005211/0.5122, allocations: 163 kB / 0.5844 GB, free: 6.176 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.006995/0.5192, allocations: 3.978 MB / 0.5883 GB, free: 2.215 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.5192, allocations: 4 kB / 0.5883 GB, free: 2.211 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001733/0.5209, allocations: 1.052 MB / 0.5893 GB, free: 1.145 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002056/0.523, allocations: 308.6 kB / 0.5896 GB, free: 0.8477 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01294/0.5359, allocations: 7.14 MB / 0.5966 GB, free: 9.656 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002826/0.5387, allocations: 2.08 MB / 0.5986 GB, free: 7.539 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.003829/0.5426, allocations: 1.657 MB / 0.6002 GB, free: 5.875 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006152/0.5432, allocations: 196.5 kB / 0.6004 GB, free: 5.68 MB / 0.4981 GB Notification: Performance of SimCode: time 8.71e-07/0.5432, allocations: 0 / 0.6004 GB, free: 5.68 MB / 0.4981 GB Notification: Performance of Templates: time 0.05369/0.5969, allocations: 23.82 MB / 0.6237 GB, free: 14.2 MB / 0.5294 GB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_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.207337893545628]