Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.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.001018/0.001018, 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.0009812/0.0009812, allocations: 165.4 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.8959/0.8959, allocations: 177.1 MB / 205 MB, free: 5.273 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2614/0.2614, allocations: 34.26 MB / 295.7 MB, free: 0.6445 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_4.1.0_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_ModelicaTest.MultiBody.Sensors.Distance2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.356e-06/3.356e-06, allocations: 0 / 378 MB, free: 2.641 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.011e-05/4.346e-05, allocations: 2.312 kB / 378 MB, free: 2.637 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01092/0.01096, allocations: 8.802 MB / 386.8 MB, free: 9.793 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.00771/0.01867, allocations: 3.512 MB / 390.4 MB, free: 6.27 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001786/0.02046, allocations: 59.75 kB / 390.4 MB, free: 6.211 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003908/0.02437, allocations: 2.052 MB / 392.5 MB, free: 4.152 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005153/0.02952, allocations: 1.68 MB / 394.1 MB, free: 2.465 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001576/0.0311, allocations: 0.6196 MB / 394.8 MB, free: 1.844 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.006124/0.03722, allocations: 4.051 MB / 398.8 MB, free: 13.78 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00382/0.04104, allocations: 2.315 MB / 401.1 MB, free: 11.41 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004865/0.04591, allocations: 2.277 MB / 403.4 MB, free: 9.125 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003404/0.04931, allocations: 1.808 MB / 405.2 MB, free: 7.312 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007605/0.05007, allocations: 244 kB / 405.4 MB, free: 7.074 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001751/0.05182, allocations: 1.065 MB / 406.5 MB, free: 6.008 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001546/0.05337, allocations: 1.625 MB / 408.1 MB, free: 4.379 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001589/0.05496, allocations: 0.9734 MB / 409.1 MB, free: 3.402 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006419/0.06138, allocations: 3.881 MB / 413 MB, free: 15.51 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.145e-06/0.06139, allocations: 0 / 413 MB, free: 15.51 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.06139, allocations: 0 / 413 MB, free: 15.51 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001828/0.06157, allocations: 4 kB / 413 MB, free: 15.5 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: 1211 * Number of variables: 1211 Notification: Performance of Generate backend data structure: time 0.007067/0.06864, allocations: 4.23 MB / 417.2 MB, free: 11.21 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.957e-05/0.06869, allocations: 12.02 kB / 417.2 MB, free: 11.2 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008145/0.07683, allocations: 2.714 MB / 420 MB, free: 8.48 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00319/0.08002, allocations: 1.863 MB / 421.8 MB, free: 6.582 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001126/0.08013, allocations: 172.9 kB / 422 MB, free: 6.41 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004892/0.08062, allocations: 240.2 kB / 422.2 MB, free: 6.176 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006354/0.08698, allocations: 4.852 MB / 427.1 MB, free: 448 kB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.708e-05/0.08705, allocations: 35.7 kB / 427.1 MB, free: 412 kB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002321/0.08729, allocations: 115.9 kB / 427.2 MB, free: 296 kB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00134/0.08863, allocations: 1.539 MB / 428.8 MB, free: 14.75 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004868/0.09349, allocations: 2.358 MB / 431.1 MB, free: 12.38 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.178/0.2715, allocations: 36.62 MB / 467.7 MB, free: 61.16 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001806/0.2733, allocations: 0.8448 MB / 468.6 MB, free: 61.02 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003138/0.2736, allocations: 273.2 kB / 468.8 MB, free: 60.98 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00268/0.2763, allocations: 2.51 MB / 471.4 MB, free: 60.02 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.723e-05/0.2763, allocations: 42.81 kB / 471.4 MB, free: 59.98 MB / 410.7 MB Notification: Performance of pre-optimization done (n=82): time 4.168e-06/0.2763, allocations: 0 / 471.4 MB, free: 59.98 MB / 410.7 MB Notification: Performance of matching and sorting (n=91): time 0.007176/0.2835, allocations: 5.101 MB / 476.5 MB, free: 57.75 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.354e-05/0.2835, allocations: 186.4 kB / 476.7 MB, free: 57.53 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002868/0.2864, allocations: 3.378 MB / 480.1 MB, free: 56.74 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.929e-05/0.2864, allocations: 37.05 kB / 480.1 MB, free: 56.7 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001036/0.2875, allocations: 3.049 MB / 483.1 MB, free: 54.43 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002342/0.2877, allocations: 439.9 kB / 483.6 MB, free: 54.14 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008162/0.2885, allocations: 1.215 MB / 484.8 MB, free: 53.48 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.701e-05/0.2886, allocations: 480 kB / 485.3 MB, free: 53.02 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006733/0.2892, allocations: 0.4935 MB / 485.7 MB, free: 52.95 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002083/0.2913, allocations: 6.069 MB / 491.8 MB, free: 45.36 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003841/0.2952, allocations: 7.158 MB / 499 MB, free: 37.38 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.453e-05/0.2952, allocations: 35.88 kB / 499 MB, free: 37.38 MB / 410.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.005275/0.3005, allocations: 4.694 MB / 0.4919 GB, free: 35.53 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.775e-05/0.3006, allocations: 60.56 kB / 0.492 GB, free: 35.53 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001144/0.3007, allocations: 132.2 kB / 0.4921 GB, free: 35.53 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003624/0.301, allocations: 215.3 kB / 0.4923 GB, free: 35.51 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002159/0.3032, allocations: 1.267 MB / 0.4935 GB, free: 35.34 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008645/0.3041, allocations: 2.001 MB / 0.4955 GB, free: 33.52 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002344/0.3064, allocations: 334.8 kB / 0.4958 GB, free: 33.41 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003196/0.3067, allocations: 355.6 kB / 0.4961 GB, free: 33.37 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 604 * 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 (689): * Single equations (assignments): 685 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009297/0.3077, allocations: 0.6221 MB / 0.4967 GB, free: 32.87 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003582/0.308, allocations: 307 kB / 0.497 GB, free: 32.7 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006276/0.3086, allocations: 0.5124 MB / 0.4975 GB, free: 32.46 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.527e-05/0.3087, allocations: 13.64 kB / 0.4975 GB, free: 32.46 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/0.3087, allocations: 2.688 kB / 0.4976 GB, free: 32.46 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/0.3087, allocations: 3.281 kB / 0.4976 GB, free: 32.46 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004053/0.3127, allocations: 3.066 MB / 0.5005 GB, free: 30.98 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.953e-06/0.3127, allocations: 6.938 kB / 0.5006 GB, free: 30.98 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003536/0.3131, allocations: 134.2 kB / 0.5007 GB, free: 30.98 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000152/0.3132, allocations: 41.66 kB / 0.5007 GB, free: 30.96 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.961e-05/0.3133, allocations: 28.2 kB / 0.5008 GB, free: 30.95 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000553/0.3138, allocations: 1.754 MB / 0.5025 GB, free: 29.18 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/0.3138, allocations: 3.781 kB / 0.5025 GB, free: 29.18 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0013/0.3151, allocations: 1.519 MB / 0.504 GB, free: 28.14 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000346/0.3155, allocations: 272.3 kB / 0.5042 GB, free: 27.96 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000194/0.3157, allocations: 19.5 kB / 0.5042 GB, free: 27.96 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005085/0.3162, allocations: 71.33 kB / 0.5043 GB, free: 27.95 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001057/0.3163, allocations: 64.3 kB / 0.5044 GB, free: 27.93 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.195e-05/0.3163, allocations: 30.75 kB / 0.5044 GB, free: 27.93 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001555/0.3179, allocations: 1.405 MB / 0.5058 GB, free: 27.45 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3179, allocations: 1.156 kB / 0.5058 GB, free: 27.45 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003108/0.321, allocations: 0.7743 MB / 0.5065 GB, free: 27.35 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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 (69): * Single equations (assignments): 65 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002808/0.3213, allocations: 164.7 kB / 0.5067 GB, free: 27.23 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003169/0.3244, allocations: 2.438 MB / 0.5091 GB, free: 26.31 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.539e-06/0.3244, allocations: 3.703 kB / 0.5091 GB, free: 26.31 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003881/0.3248, allocations: 423 kB / 0.5095 GB, free: 26.07 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001162/0.326, allocations: 332.5 kB / 0.5098 GB, free: 25.92 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006572/0.3326, allocations: 5.692 MB / 0.5153 GB, free: 22.99 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006895/0.3333, allocations: 0.9584 MB / 0.5163 GB, free: 22.67 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001891/0.3352, allocations: 1.44 MB / 0.5177 GB, free: 22.54 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003039/0.3355, allocations: 192.3 kB / 0.5179 GB, free: 22.52 MB / 410.7 MB Notification: Performance of SimCode: time 1.624e-06/0.3355, allocations: 0 / 0.5179 GB, free: 22.52 MB / 410.7 MB Notification: Performance of Templates: time 0.03027/0.3657, allocations: 18.97 MB / 0.5364 GB, free: 8.629 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.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.003475026227534]