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.001251/0.001251, allocations: 79.59 kB / 21.18 MB, free: 3.387 MB / 18.57 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.00143/0.00143, allocations: 161 kB / 24.56 MB, free: 16 kB / 18.57 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 0.9709/0.9709, allocations: 177.1 MB / 205 MB, free: 5.59 MB / 186.7 MB " [Timeout remaining time 179] 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.2447/0.2447, allocations: 32.81 MB / 294.3 MB, free: 1.277 MB / 266.7 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.884e-06/1.884e-06, allocations: 0 / 376 MB, free: 4.672 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.189e-05/3.377e-05, allocations: 2.312 kB / 376 MB, free: 4.668 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.0114/0.01143, allocations: 8.701 MB / 384.7 MB, free: 11.93 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.008458/0.01989, allocations: 3.492 MB / 388.2 MB, free: 8.422 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001348/0.02123, allocations: 59.69 kB / 388.3 MB, free: 8.363 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002182/0.02342, allocations: 1.779 MB / 390 MB, free: 6.578 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002759/0.02618, allocations: 1.645 MB / 391.7 MB, free: 4.926 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008983/0.02707, allocations: 0.6195 MB / 392.3 MB, free: 4.305 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.003401/0.03048, allocations: 3.95 MB / 396.2 MB, free: 352 kB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00208/0.03255, allocations: 2.153 MB / 398.4 MB, free: 14.13 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001759/0.03431, allocations: 1.684 MB / 400.1 MB, free: 12.45 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001683/0.036, allocations: 1.726 MB / 401.8 MB, free: 10.71 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008248/0.03682, allocations: 231.9 kB / 402 MB, free: 10.49 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001435/0.03826, allocations: 1.041 MB / 403.1 MB, free: 9.445 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001027/0.03928, allocations: 1.519 MB / 404.6 MB, free: 7.922 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008767/0.04016, allocations: 0.9149 MB / 405.5 MB, free: 7.004 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004879/0.04504, allocations: 3.69 MB / 409.2 MB, free: 3.301 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.04504, allocations: 0 / 409.2 MB, free: 3.301 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.853e-06/0.04505, allocations: 0 / 409.2 MB, free: 3.301 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001129/0.04516, allocations: 7.938 kB / 409.2 MB, free: 3.293 MB / 378.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.004887/0.05005, allocations: 4.016 MB / 413.2 MB, free: 15.21 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.167e-05/0.05009, allocations: 8.031 kB / 413.2 MB, free: 15.21 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008499/0.05859, allocations: 2.729 MB / 416 MB, free: 12.47 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004025/0.06261, allocations: 1.961 MB / 417.9 MB, free: 10.47 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001277/0.06274, allocations: 156.5 kB / 418.1 MB, free: 10.32 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004097/0.06315, allocations: 220.2 kB / 418.3 MB, free: 10.1 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006701/0.06985, allocations: 4.602 MB / 422.9 MB, free: 4.648 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.576e-05/0.06993, allocations: 43.62 kB / 422.9 MB, free: 4.605 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002486/0.07017, allocations: 111.9 kB / 423 MB, free: 4.496 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001942/0.07212, allocations: 1.535 MB / 424.6 MB, free: 2.961 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005991/0.07811, allocations: 2.342 MB / 426.9 MB, free: 0.6016 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.176/0.2541, allocations: 34.85 MB / 461.8 MB, free: 64.77 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001977/0.2561, allocations: 0.939 MB / 462.7 MB, free: 64.63 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004305/0.2565, allocations: 365.6 kB / 463.1 MB, free: 64.59 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001822/0.2567, allocations: 88.14 kB / 463.2 MB, free: 64.59 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.553e-05/0.2567, allocations: 50.48 kB / 463.2 MB, free: 64.54 MB / 410.7 MB Notification: Performance of pre-optimization done (n=108): time 3.616e-06/0.2567, allocations: 0 / 463.2 MB, free: 64.54 MB / 410.7 MB Notification: Performance of matching and sorting (n=132): time 0.0155/0.2722, allocations: 8.46 MB / 471.7 MB, free: 62.29 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.08e-05/0.2723, allocations: 196.5 kB / 471.9 MB, free: 62.07 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002688/0.275, allocations: 3.109 MB / 475 MB, free: 61.56 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.223e-05/0.275, allocations: 44.83 kB / 475 MB, free: 61.53 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001001/0.276, allocations: 2.808 MB / 477.8 MB, free: 59.9 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003585/0.2764, allocations: 0.5703 MB / 478.4 MB, free: 59.5 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000844/0.2772, allocations: 1.169 MB / 479.6 MB, free: 58.87 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.381e-05/0.2773, allocations: 480.7 kB / 480 MB, free: 58.39 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009107/0.2782, allocations: 0.5759 MB / 480.6 MB, free: 58.32 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002202/0.2804, allocations: 5.59 MB / 486.2 MB, free: 51.5 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003888/0.2843, allocations: 6.743 MB / 492.9 MB, free: 44.36 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.611e-05/0.2844, allocations: 32.81 kB / 493 MB, free: 44.36 MB / 410.7 MB Notification: Performance of matching and sorting (n=694) (initialization): time 0.006302/0.2907, allocations: 4.865 MB / 497.8 MB, free: 42.6 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.894e-05/0.2907, allocations: 60.03 kB / 497.9 MB, free: 42.59 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001324/0.2909, allocations: 119.3 kB / 498 MB, free: 42.59 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009946/0.2919, allocations: 457.8 kB / 498.5 MB, free: 42.56 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002136/0.294, allocations: 1.218 MB / 499.7 MB, free: 42.41 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002175/0.2962, allocations: 2.905 MB / 0.4908 GB, free: 40.1 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00229/0.2985, allocations: 325.8 kB / 0.4911 GB, free: 40 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003374/0.2988, allocations: 329.3 kB / 0.4914 GB, free: 39.95 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.0009193/0.2997, allocations: 0.5941 MB / 0.492 GB, free: 39.47 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004374/0.3002, allocations: 320.3 kB / 0.4923 GB, free: 39.3 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001715/0.3019, allocations: 1.129 MB / 0.4934 GB, free: 38.93 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.898e-05/0.3019, allocations: 20.09 kB / 0.4934 GB, free: 38.93 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.646e-06/0.3019, allocations: 2.156 kB / 0.4934 GB, free: 38.93 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.323e-06/0.3019, allocations: 4.562 kB / 0.4934 GB, free: 38.93 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005297/0.3072, allocations: 3.99 MB / 0.4973 GB, free: 37.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.172e-06/0.3072, allocations: 3.938 kB / 0.4973 GB, free: 37.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005135/0.3077, allocations: 192.7 kB / 0.4975 GB, free: 37.18 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007358/0.3085, allocations: 288.6 kB / 0.4978 GB, free: 37.16 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.597e-05/0.3085, allocations: 25.2 kB / 0.4978 GB, free: 37.14 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001578/0.3101, allocations: 2.292 MB / 0.5001 GB, free: 35.18 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.157e-05/0.3101, allocations: 5.438 kB / 0.5001 GB, free: 35.18 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002467/0.3126, allocations: 2.137 MB / 0.5022 GB, free: 34.15 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004498/0.313, allocations: 273.5 kB / 0.5024 GB, free: 33.97 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001831/0.3132, allocations: 23.22 kB / 0.5024 GB, free: 33.96 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006443/0.3139, allocations: 96.44 kB / 0.5025 GB, free: 33.95 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001437/0.314, allocations: 75.22 kB / 0.5026 GB, free: 33.93 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.199e-05/0.3141, allocations: 37.53 kB / 0.5026 GB, free: 33.93 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001468/0.3155, allocations: 1.319 MB / 0.5039 GB, free: 33.47 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.3155, allocations: 0 / 0.5039 GB, free: 33.47 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003216/0.3188, allocations: 0.8686 MB / 0.5048 GB, free: 33.36 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.000322/0.3191, allocations: 164.4 kB / 0.5049 GB, free: 33.23 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003338/0.3224, allocations: 2.618 MB / 0.5075 GB, free: 32.3 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.357e-06/0.3224, allocations: 0 / 0.5075 GB, free: 32.3 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007299/0.3232, allocations: 0.6241 MB / 0.5081 GB, free: 32.01 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001187/0.3243, allocations: 331.2 kB / 0.5084 GB, free: 31.86 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008928/0.3333, allocations: 5.677 MB / 0.514 GB, free: 27.17 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001041/0.3343, allocations: 0.9533 MB / 0.5149 GB, free: 26.48 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002583/0.3369, allocations: 1.439 MB / 0.5163 GB, free: 25.66 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004222/0.3373, allocations: 194.9 kB / 0.5165 GB, free: 25.48 MB / 410.7 MB Notification: Performance of SimCode: time 2.345e-06/0.3373, allocations: 0 / 0.5165 GB, free: 25.48 MB / 410.7 MB Notification: Performance of Templates: time 0.03026/0.3676, allocations: 23.97 MB / 0.5399 GB, free: 4.902 MB / 410.7 MB " [Timeout remaining time 660] 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.15731094032526]