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.001338/0.001338, allocations: 77.97 kB / 21.42 MB, free: 3.074 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.001329/0.001329, allocations: 168.1 kB / 24.82 MB, free: 9.273 MB / 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 1.049/1.049, allocations: 177.1 MB / 205.3 MB, free: 5.496 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.3393/0.3393, allocations: 34.25 MB / 296.1 MB, free: 0.7188 MB / 266.7 MB " [Timeout remaining time 179] 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 2.044e-06/2.044e-06, allocations: 0 / 378.5 MB, free: 2.418 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.418e-05/2.622e-05, allocations: 5.406 kB / 378.5 MB, free: 2.414 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.008619/0.008645, allocations: 8.608 MB / 387.1 MB, free: 9.762 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.00568/0.01433, allocations: 3.473 MB / 390.6 MB, free: 6.277 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006188/0.01494, allocations: 59.75 kB / 390.6 MB, free: 6.219 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002224/0.01717, allocations: 2.024 MB / 392.7 MB, free: 4.188 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002474/0.01964, allocations: 1.68 MB / 394.3 MB, free: 2.5 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008748/0.02052, allocations: 0.6196 MB / 395 MB, free: 1.879 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.003882/0.0244, allocations: 4.059 MB / 399 MB, free: 13.81 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002414/0.02681, allocations: 2.323 MB / 401.3 MB, free: 11.43 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002376/0.02919, allocations: 2.28 MB / 403.6 MB, free: 9.145 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001726/0.03091, allocations: 1.8 MB / 405.4 MB, free: 7.34 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003114/0.03123, allocations: 248 kB / 405.7 MB, free: 7.098 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001306/0.03253, allocations: 1.069 MB / 406.7 MB, free: 6.027 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009975/0.03353, allocations: 1.613 MB / 408.3 MB, free: 4.41 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008355/0.03437, allocations: 0.9773 MB / 409.3 MB, free: 3.43 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003161/0.03753, allocations: 3.885 MB / 413.2 MB, free: 15.53 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.03753, allocations: 4 kB / 413.2 MB, free: 15.53 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.03754, allocations: 0 / 413.2 MB, free: 15.53 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.935e-05/0.03758, allocations: 0 / 413.2 MB, free: 15.53 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.004183/0.04177, allocations: 4.089 MB / 417.3 MB, free: 11.38 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.386e-05/0.04182, allocations: 12.03 kB / 417.3 MB, free: 11.36 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006163/0.04798, allocations: 1.813 MB / 419.1 MB, free: 9.547 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001891/0.04987, allocations: 1.641 MB / 420.8 MB, free: 7.871 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.116e-05/0.04997, allocations: 172.9 kB / 420.9 MB, free: 7.699 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002636/0.05023, allocations: 236.2 kB / 421.2 MB, free: 7.469 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004182/0.05441, allocations: 4.499 MB / 425.7 MB, free: 2.082 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.289e-05/0.05447, allocations: 39.64 kB / 425.7 MB, free: 2.043 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001918/0.05467, allocations: 115.9 kB / 425.8 MB, free: 1.93 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001222/0.05589, allocations: 1.387 MB / 427.2 MB, free: 0.543 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002684/0.05857, allocations: 1.89 MB / 429.1 MB, free: 14.64 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2587/0.3173, allocations: 36.43 MB / 465.5 MB, free: 62.42 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001693/0.319, allocations: 0.7588 MB / 466.3 MB, free: 62.28 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002401/0.3192, allocations: 233.6 kB / 466.5 MB, free: 62.23 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00275/0.322, allocations: 2.372 MB / 468.9 MB, free: 61.28 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.081e-05/0.322, allocations: 48.59 kB / 468.9 MB, free: 61.24 MB / 410.7 MB Notification: Performance of pre-optimization done (n=82): time 2.124e-06/0.322, allocations: 6.797 kB / 468.9 MB, free: 61.24 MB / 410.7 MB Notification: Performance of matching and sorting (n=91): time 0.005731/0.3278, allocations: 2.696 MB / 471.6 MB, free: 60.68 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.943e-05/0.3278, allocations: 196.2 kB / 471.8 MB, free: 60.46 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002687/0.3305, allocations: 3.335 MB / 475.1 MB, free: 59.93 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.869e-05/0.3305, allocations: 36.61 kB / 475.2 MB, free: 59.9 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001349/0.3319, allocations: 3.081 MB / 478.3 MB, free: 58.12 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002374/0.3321, allocations: 443.5 kB / 478.7 MB, free: 57.84 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008959/0.333, allocations: 1.241 MB / 479.9 MB, free: 57.16 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 6.307e-05/0.3331, allocations: 476.8 kB / 480.4 MB, free: 56.69 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007039/0.3338, allocations: 457.8 kB / 480.8 MB, free: 56.62 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002803/0.3366, allocations: 6.04 MB / 486.9 MB, free: 49 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004463/0.3411, allocations: 7.058 MB / 493.9 MB, free: 41.08 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.871e-05/0.3411, allocations: 38.41 kB / 494 MB, free: 41.08 MB / 410.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.004652/0.3458, allocations: 4.404 MB / 498.4 MB, free: 39.37 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.563e-05/0.3458, allocations: 62.22 kB / 498.4 MB, free: 39.37 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001268/0.346, allocations: 133.7 kB / 498.6 MB, free: 39.37 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003462/0.3463, allocations: 204.6 kB / 498.8 MB, free: 39.36 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001872/0.3482, allocations: 1.236 MB / 0.4883 GB, free: 39.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009222/0.3491, allocations: 1.991 MB / 0.4902 GB, free: 37.39 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002162/0.3513, allocations: 252.3 kB / 0.4905 GB, free: 37.29 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003732/0.3516, allocations: 308.5 kB / 0.4908 GB, free: 37.25 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.001103/0.3527, allocations: 0.6325 MB / 0.4914 GB, free: 36.74 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003705/0.3531, allocations: 304 kB / 0.4917 GB, free: 36.57 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000672/0.3538, allocations: 477.2 kB / 0.4921 GB, free: 36.36 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.126e-05/0.3538, allocations: 14.81 kB / 0.4922 GB, free: 36.36 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.778e-06/0.3538, allocations: 2.125 kB / 0.4922 GB, free: 36.36 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.646e-06/0.3538, allocations: 4.438 kB / 0.4922 GB, free: 36.36 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004536/0.3583, allocations: 3.015 MB / 0.4951 GB, free: 34.79 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.387e-06/0.3584, allocations: 4.125 kB / 0.4951 GB, free: 34.79 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003292/0.3587, allocations: 108.7 kB / 0.4952 GB, free: 34.78 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001772/0.3589, allocations: 46.77 kB / 0.4953 GB, free: 34.76 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.139e-05/0.3589, allocations: 24.17 kB / 0.4953 GB, free: 34.75 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006841/0.3596, allocations: 1.741 MB / 0.497 GB, free: 33.01 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.873e-06/0.3596, allocations: 8.906 kB / 0.497 GB, free: 33 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001373/0.361, allocations: 1.435 MB / 0.4984 GB, free: 32.01 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002904/0.3613, allocations: 267.6 kB / 0.4986 GB, free: 31.83 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001801/0.3614, allocations: 15.25 kB / 0.4987 GB, free: 31.82 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004873/0.3619, allocations: 20.97 kB / 0.4987 GB, free: 31.81 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001143/0.362, allocations: 59.72 kB / 0.4987 GB, free: 31.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.591e-05/0.3621, allocations: 27 kB / 0.4988 GB, free: 31.79 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001571/0.3637, allocations: 1.312 MB / 0.5 GB, free: 31.34 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.3637, allocations: 0 / 0.5 GB, free: 31.34 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00379/0.3674, allocations: 0.7837 MB / 0.5008 GB, free: 31.24 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.0003249/0.3678, allocations: 153 kB / 0.501 GB, free: 31.12 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003016/0.3708, allocations: 2.323 MB / 0.5032 GB, free: 30.25 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.841e-06/0.3708, allocations: 1.188 kB / 0.5032 GB, free: 30.25 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003971/0.3712, allocations: 420.7 kB / 0.5036 GB, free: 30 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001073/0.3723, allocations: 319.6 kB / 0.5039 GB, free: 29.86 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007031/0.3793, allocations: 5.671 MB / 0.5095 GB, free: 26.93 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007744/0.3801, allocations: 0.9658 MB / 0.5104 GB, free: 26.61 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0008601/0.3809, allocations: 431 kB / 0.5108 GB, free: 26.48 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005459/0.3815, allocations: 488.6 kB / 0.5113 GB, free: 26.41 MB / 410.7 MB Notification: Performance of SimCode: time 1.453e-06/0.3815, allocations: 4 kB / 0.5113 GB, free: 26.4 MB / 410.7 MB Notification: Performance of Templates: time 0.03582/0.4173, allocations: 20.54 MB / 0.5313 GB, free: 13.12 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.531336948275566]