Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.0007273/0.0007273, allocations: 76.19 kB / 9.911 MB, free: 0.7773 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00098/0.001707, allocations: 447.8 kB / 10.35 MB, free: 348 kB / 10.45 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.0006812/0.0006812, allocations: 161.1 kB / 11.23 MB, free: 2.938 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008673/0.001548, allocations: 463.6 kB / 11.69 MB, free: 2.48 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8561/0.8561, allocations: 158.6 MB / 171 MB, free: 2.188 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1573/1.013, allocations: 49.5 MB / 220.5 MB, free: 5.281 MB / 218.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1317/0.1317, allocations: 32.34 MB / 253.6 MB, free: 4.172 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02223/0.154, allocations: 12.29 MB / 265.9 MB, free: 7.84 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.472e-06/1.472e-06, allocations: 0 / 267.2 MB, free: 6.551 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.227e-05/1.375e-05, allocations: 6.25 kB / 267.2 MB, free: 6.543 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.007517/0.00753, allocations: 9.597 MB / 276.8 MB, free: 12.89 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00662/0.01415, allocations: 3.765 MB / 280.6 MB, free: 9.113 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001086/0.01524, allocations: 59.75 kB / 280.6 MB, free: 9.055 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00213/0.01737, allocations: 1.997 MB / 282.6 MB, free: 7.051 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003264/0.02063, allocations: 1.831 MB / 284.5 MB, free: 5.211 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001008/0.02164, allocations: 0.5845 MB / 285 MB, free: 4.625 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.003626/0.02526, allocations: 3.887 MB / 288.9 MB, free: 0.7266 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002066/0.02733, allocations: 2.257 MB / 291.2 MB, free: 14.4 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002284/0.02962, allocations: 2.26 MB / 293.4 MB, free: 12.13 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001979/0.03159, allocations: 1.898 MB / 295.3 MB, free: 10.23 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003864/0.03198, allocations: 284 kB / 295.6 MB, free: 9.953 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001495/0.03348, allocations: 1.143 MB / 296.8 MB, free: 8.809 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001208/0.03468, allocations: 1.629 MB / 298.4 MB, free: 7.176 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009772/0.03566, allocations: 0.9035 MB / 299.3 MB, free: 6.27 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003594/0.03925, allocations: 3.973 MB / 303.3 MB, free: 2.281 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.557e-05/0.03927, allocations: 7.938 kB / 303.3 MB, free: 2.273 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.03927, allocations: 4 kB / 303.3 MB, free: 2.27 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.261e-05/0.03933, allocations: 0 / 303.3 MB, free: 2.27 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1367 * Number of variables: 1367 Notification: Performance of Generate backend data structure: time 0.005189/0.04452, allocations: 4.76 MB / 308 MB, free: 13.44 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.073e-05/0.04455, allocations: 12.03 kB / 308.1 MB, free: 13.43 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004139/0.04869, allocations: 1.128 MB / 309.2 MB, free: 12.3 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002187/0.05088, allocations: 1.629 MB / 310.8 MB, free: 10.64 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001218/0.051, allocations: 197.3 kB / 311 MB, free: 10.44 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003676/0.05137, allocations: 268.1 kB / 311.3 MB, free: 10.18 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004713/0.05608, allocations: 4.339 MB / 315.6 MB, free: 5.172 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.925e-05/0.05615, allocations: 35.69 kB / 315.6 MB, free: 5.137 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002686/0.05642, allocations: 127.9 kB / 315.8 MB, free: 5.012 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00173/0.05815, allocations: 1.63 MB / 317.4 MB, free: 3.383 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003673/0.06182, allocations: 2.173 MB / 319.6 MB, free: 1.188 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1666/0.2284, allocations: 27.64 MB / 347.2 MB, free: 21.51 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001548/0.2299, allocations: 0.8216 MB / 348 MB, free: 21.3 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002236/0.2302, allocations: 197.5 kB / 348.2 MB, free: 21.27 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002757/0.2329, allocations: 2.388 MB / 350.6 MB, free: 20.55 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.899e-05/0.233, allocations: 48.31 kB / 350.7 MB, free: 20.51 MB / 330.7 MB Notification: Performance of pre-optimization done (n=91): time 2.154e-06/0.233, allocations: 0 / 350.7 MB, free: 20.51 MB / 330.7 MB Notification: Performance of matching and sorting (n=100): time 0.005492/0.2385, allocations: 2.64 MB / 353.3 MB, free: 19.87 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.133e-05/0.2385, allocations: 144.7 kB / 353.4 MB, free: 19.71 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002191/0.2407, allocations: 3.15 MB / 356.6 MB, free: 19.06 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.856e-05/0.2407, allocations: 38.39 kB / 356.6 MB, free: 19.03 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008497/0.2416, allocations: 3.024 MB / 359.7 MB, free: 17 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001999/0.2418, allocations: 462.3 kB / 360.1 MB, free: 16.77 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007181/0.2425, allocations: 1.135 MB / 361.2 MB, free: 16.62 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 2.795e-05/0.2425, allocations: 302.6 kB / 361.5 MB, free: 16.33 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008451/0.2434, allocations: 0.6762 MB / 362.2 MB, free: 16.3 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001639/0.245, allocations: 4.559 MB / 366.8 MB, free: 11.07 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003009/0.248, allocations: 5.745 MB / 372.5 MB, free: 5.809 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.14e-05/0.248, allocations: 40.75 kB / 372.6 MB, free: 5.809 MB / 330.7 MB Notification: Performance of matching and sorting (n=766) (initialization): time 0.003835/0.2519, allocations: 4.024 MB / 376.6 MB, free: 5.262 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.471e-05/0.2519, allocations: 68.88 kB / 376.6 MB, free: 5.258 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.948e-05/0.252, allocations: 142.3 kB / 376.8 MB, free: 5.258 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002668/0.2523, allocations: 226.1 kB / 377 MB, free: 5.246 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001958/0.2543, allocations: 1.475 MB / 378.5 MB, free: 4.277 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006556/0.2549, allocations: 1.472 MB / 380 MB, free: 2.797 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001709/0.2566, allocations: 281.6 kB / 380.2 MB, free: 2.613 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002152/0.2568, allocations: 334.8 kB / 380.6 MB, free: 2.336 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 647 * Number of states: 0 () * Number of discrete variables: 31 (LessEqualThreshold1.y,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 (741): * Single equations (assignments): 737 * 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.0007635/0.2576, allocations: 0.614 MB / 381.2 MB, free: 1.855 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002617/0.2579, allocations: 176.4 kB / 381.3 MB, free: 1.742 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005838/0.2584, allocations: 0.4982 MB / 381.8 MB, free: 1.449 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.421e-05/0.2585, allocations: 12 kB / 381.8 MB, free: 1.438 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.05e-05/0.2585, allocations: 6.078 kB / 381.9 MB, free: 1.434 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.016e-05/0.2585, allocations: 6.891 kB / 381.9 MB, free: 1.434 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00331/0.2618, allocations: 2.761 MB / 384.6 MB, free: 15.51 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.282e-06/0.2618, allocations: 4 kB / 384.6 MB, free: 15.5 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003747/0.2622, allocations: 146.7 kB / 384.8 MB, free: 15.37 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003667/0.2625, allocations: 346.9 kB / 385.1 MB, free: 15.07 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000309/0.2628, allocations: 217.2 kB / 385.3 MB, free: 14.94 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.709e-05/0.2629, allocations: 20.11 kB / 385.3 MB, free: 14.93 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006356/0.2635, allocations: 1.211 MB / 386.6 MB, free: 13.65 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.56e-06/0.2635, allocations: 7.938 kB / 386.6 MB, free: 13.64 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001092/0.2646, allocations: 1.265 MB / 387.8 MB, free: 12.38 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001718/0.2648, allocations: 18.44 kB / 387.8 MB, free: 12.37 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004622/0.2653, allocations: 31.92 kB / 387.9 MB, free: 12.34 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.935e-05/0.2653, allocations: 55.84 kB / 387.9 MB, free: 12.29 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.303e-05/0.2654, allocations: 32.28 kB / 388 MB, free: 12.26 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0009351/0.2663, allocations: 1.117 MB / 389.1 MB, free: 11.29 MB / 346.7 MB Notification: Performance of sort global known variables: time 4e-08/0.2663, allocations: 0 / 389.1 MB, free: 11.29 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002252/0.2686, allocations: 0.8671 MB / 389.9 MB, free: 10.42 MB / 346.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 (79): * Single equations (assignments): 75 * 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.000271/0.2688, allocations: 163 kB / 390.1 MB, free: 10.26 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002058/0.2709, allocations: 2.271 MB / 392.4 MB, free: 8.062 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001673/0.2711, allocations: 102.3 kB / 392.5 MB, free: 7.957 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003092/0.2714, allocations: 343.9 kB / 392.8 MB, free: 7.617 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001245/0.2726, allocations: 0.6912 MB / 393.5 MB, free: 6.938 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008776/0.2814, allocations: 6.36 MB / 399.9 MB, free: 0.5117 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009132/0.2823, allocations: 1.073 MB / 400.9 MB, free: 15.42 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001008/0.2833, allocations: 474.3 kB / 401.4 MB, free: 14.96 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005962/0.2839, allocations: 473.2 kB / 401.9 MB, free: 14.5 MB / 362.7 MB Notification: Performance of SimCode: time 1.363e-06/0.2839, allocations: 0 / 401.9 MB, free: 14.5 MB / 362.7 MB Notification: Performance of Templates: time 0.0331/0.317, allocations: 22.4 MB / 424.3 MB, free: 8.332 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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: 3.715734960511327]