Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001902/0.001902, allocations: 91.61 kB / 20.96 MB, free: 3.461 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.002077/0.002077, allocations: 165.3 kB / 24.27 MB, free: 152 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 1.592/1.592, allocations: 177.1 MB / 204.6 MB, free: 5.598 MB / 186.7 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.3354/0.3354, allocations: 32.8 MB / 293.9 MB, free: 1.191 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.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_4.0.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.0.0_ModelicaTest.MultiBody.Sensors.Distance2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.493e-06/1.493e-06, allocations: 0 / 375.2 MB, free: 5 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.035e-05/3.184e-05, allocations: 13.2 kB / 375.3 MB, free: 4.988 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01275/0.01278, allocations: 8.737 MB / 384 MB, free: 12.21 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.008461/0.02124, allocations: 3.496 MB / 387.5 MB, free: 8.699 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001725/0.02297, allocations: 55.75 kB / 387.5 MB, free: 8.645 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004895/0.02786, allocations: 2.052 MB / 389.6 MB, free: 6.586 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00526/0.03312, allocations: 1.668 MB / 391.3 MB, free: 4.91 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001867/0.03499, allocations: 0.6196 MB / 391.9 MB, free: 4.289 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.006725/0.04172, allocations: 4.054 MB / 395.9 MB, free: 232 kB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004413/0.04613, allocations: 2.315 MB / 398.3 MB, free: 13.85 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00451/0.05064, allocations: 1.781 MB / 400 MB, free: 12.07 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003651/0.05429, allocations: 1.824 MB / 401.9 MB, free: 10.24 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009706/0.05526, allocations: 248 kB / 402.1 MB, free: 9.996 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002742/0.058, allocations: 1.069 MB / 403.2 MB, free: 8.926 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002492/0.0605, allocations: 1.624 MB / 404.8 MB, free: 7.297 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002192/0.06269, allocations: 0.9695 MB / 405.8 MB, free: 6.324 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008472/0.07116, allocations: 5.786 MB / 411.6 MB, free: 0.5195 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.07116, allocations: 0 / 411.6 MB, free: 0.5195 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.07117, allocations: 0 / 411.6 MB, free: 0.5195 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001437/0.07131, allocations: 0 / 411.6 MB, free: 0.5195 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: 1211 * Number of variables: 1211 Notification: Performance of Generate backend data structure: time 0.0101/0.08141, allocations: 4.546 MB / 416.1 MB, free: 11.91 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.735e-05/0.08145, allocations: 8.031 kB / 416.1 MB, free: 11.9 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0177/0.09915, allocations: 2.756 MB / 418.9 MB, free: 9.141 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006769/0.1059, allocations: 2.058 MB / 420.9 MB, free: 7.047 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001999/0.1061, allocations: 176.8 kB / 421.1 MB, free: 6.871 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000816/0.1069, allocations: 248.1 kB / 421.3 MB, free: 6.629 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01124/0.1182, allocations: 5.183 MB / 426.5 MB, free: 0.5625 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001158/0.1183, allocations: 35.64 kB / 426.6 MB, free: 0.5273 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003533/0.1186, allocations: 119.9 kB / 426.7 MB, free: 420 kB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003154/0.1218, allocations: 1.582 MB / 428.3 MB, free: 14.83 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00888/0.1307, allocations: 2.712 MB / 431 MB, free: 12.11 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2261/0.3568, allocations: 39.3 MB / 470.3 MB, free: 66.69 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00344/0.3602, allocations: 1.015 MB / 471.3 MB, free: 66.41 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006695/0.3609, allocations: 374.5 kB / 471.6 MB, free: 66.3 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002594/0.3611, allocations: 95.81 kB / 471.7 MB, free: 66.29 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.167e-05/0.3612, allocations: 50.92 kB / 471.8 MB, free: 66.25 MB / 410.7 MB Notification: Performance of pre-optimization done (n=104): time 2.836e-06/0.3612, allocations: 3.562 kB / 471.8 MB, free: 66.25 MB / 410.7 MB Notification: Performance of matching and sorting (n=118): time 0.01906/0.3802, allocations: 7.014 MB / 478.8 MB, free: 63.58 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.097e-05/0.3803, allocations: 202.9 kB / 479 MB, free: 63.36 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004145/0.3844, allocations: 4.056 MB / 483.1 MB, free: 61.62 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.72e-05/0.3845, allocations: 40.83 kB / 483.1 MB, free: 61.58 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001657/0.3862, allocations: 3.154 MB / 486.3 MB, free: 59.3 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004516/0.3866, allocations: 0.5562 MB / 486.8 MB, free: 58.92 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001499/0.3881, allocations: 1.425 MB / 488.2 MB, free: 58.18 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 6.51e-05/0.3882, allocations: 483.8 kB / 488.7 MB, free: 57.7 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001135/0.3893, allocations: 0.6072 MB / 489.3 MB, free: 57.6 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00336/0.3927, allocations: 6.127 MB / 495.4 MB, free: 50.19 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006374/0.3991, allocations: 7.34 MB / 0.491 GB, free: 42.02 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001582/0.3992, allocations: 34.81 kB / 0.491 GB, free: 42.02 MB / 410.7 MB Notification: Performance of matching and sorting (n=717) (initialization): time 0.01221/0.4114, allocations: 5.107 MB / 0.496 GB, free: 40.12 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000107/0.4116, allocations: 58.78 kB / 0.4961 GB, free: 40.12 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002102/0.4118, allocations: 129.4 kB / 0.4962 GB, free: 40.12 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001723/0.4135, allocations: 474.7 kB / 0.4967 GB, free: 40.09 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004058/0.4175, allocations: 1.247 MB / 0.4979 GB, free: 39.93 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003372/0.4209, allocations: 2.994 MB / 0.5008 GB, free: 37.57 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004342/0.4253, allocations: 328 kB / 0.5011 GB, free: 37.46 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008747/0.4261, allocations: 343.7 kB / 0.5014 GB, free: 37.42 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 577 * 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 (682): * Single equations (assignments): 678 * 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 {(2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00204/0.4282, allocations: 0.6987 MB / 0.5021 GB, free: 36.88 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007799/0.4289, allocations: 315.4 kB / 0.5024 GB, free: 36.71 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003505/0.4325, allocations: 1.024 MB / 0.5034 GB, free: 36.36 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.225e-05/0.4325, allocations: 14.66 kB / 0.5034 GB, free: 36.36 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.251e-05/0.4325, allocations: 3.594 kB / 0.5034 GB, free: 36.36 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.612e-05/0.4325, allocations: 11.41 kB / 0.5034 GB, free: 36.36 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01399/0.4465, allocations: 4.629 MB / 0.508 GB, free: 34.32 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.706e-05/0.4465, allocations: 0 / 0.508 GB, free: 34.32 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00108/0.4476, allocations: 156.2 kB / 0.5081 GB, free: 34.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001872/0.4495, allocations: 299 kB / 0.5084 GB, free: 34.27 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000176/0.4497, allocations: 23.47 kB / 0.5084 GB, free: 34.26 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003406/0.4531, allocations: 2.356 MB / 0.5107 GB, free: 32.26 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.858e-06/0.4531, allocations: 3.594 kB / 0.5107 GB, free: 32.26 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00507/0.4581, allocations: 2.052 MB / 0.5127 GB, free: 31.22 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001321/0.4595, allocations: 276.8 kB / 0.513 GB, free: 31.04 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009273/0.4604, allocations: 22.81 kB / 0.513 GB, free: 31.03 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002322/0.4627, allocations: 87.84 kB / 0.5131 GB, free: 31.02 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003203/0.463, allocations: 66.05 kB / 0.5132 GB, free: 31 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001268/0.4631, allocations: 34.11 kB / 0.5132 GB, free: 31 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004443/0.4676, allocations: 1.632 MB / 0.5148 GB, free: 30.39 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4676, allocations: 0 / 0.5148 GB, free: 30.39 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.007941/0.4755, allocations: 0.8607 MB / 0.5156 GB, free: 29.62 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (88): * Single equations (assignments): 84 * 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.0006619/0.4762, allocations: 172.5 kB / 0.5158 GB, free: 29.46 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007952/0.4841, allocations: 2.904 MB / 0.5186 GB, free: 26.85 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.392e-06/0.4842, allocations: 0 / 0.5186 GB, free: 26.85 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00143/0.4856, allocations: 0.6172 MB / 0.5192 GB, free: 26.26 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004058/0.4896, allocations: 322.9 kB / 0.5195 GB, free: 25.99 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0149/0.5045, allocations: 5.867 MB / 0.5253 GB, free: 20.57 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003222/0.5078, allocations: 1.964 MB / 0.5272 GB, free: 19.16 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003341/0.5111, allocations: 1.453 MB / 0.5286 GB, free: 18.33 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000565/0.5117, allocations: 195.9 kB / 0.5288 GB, free: 18.15 MB / 410.7 MB Notification: Performance of SimCode: time 1.854e-06/0.5117, allocations: 0 / 0.5288 GB, free: 18.15 MB / 410.7 MB Notification: Performance of Templates: time 0.04414/0.5558, allocations: 23.69 MB / 0.5519 GB, free: 12.45 MB / 426.7 MB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.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.603104669018649]