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.001912/0.001912, allocations: 92.97 kB / 20.21 MB, free: 4.215 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.001915/0.001915, allocations: 165.2 kB / 23.52 MB, free: 0.9023 MB / 18.57 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 1.383/1.383, allocations: 158.6 MB / 185.3 MB, free: 2.91 MB / 170.7 MB " [Timeout remaining time 178] 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.2238/0.2238, allocations: 32.38 MB / 270 MB, free: 14.76 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 2.234e-06/2.234e-06, allocations: 0 / 346.9 MB, free: 9.805 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.452e-05/3.675e-05, allocations: 2.312 kB / 346.9 MB, free: 9.801 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.0155/0.01554, allocations: 9.659 MB / 356.6 MB, free: 100 kB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01468/0.03022, allocations: 3.61 MB / 360.2 MB, free: 12.48 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002173/0.03239, allocations: 63.75 kB / 360.3 MB, free: 12.41 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008045/0.04044, allocations: 2.09 MB / 362.4 MB, free: 10.32 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009541/0.04998, allocations: 1.855 MB / 364.2 MB, free: 8.453 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003118/0.05309, allocations: 0.6274 MB / 364.8 MB, free: 7.824 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.01098/0.06407, allocations: 4.098 MB / 368.9 MB, free: 3.719 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005893/0.06996, allocations: 2.487 MB / 371.4 MB, free: 1.172 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00522/0.07518, allocations: 1.976 MB / 373.4 MB, free: 15.19 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005583/0.08077, allocations: 2.015 MB / 375.4 MB, free: 13.17 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001093/0.08186, allocations: 284 kB / 375.7 MB, free: 12.89 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004207/0.08607, allocations: 1.104 MB / 376.8 MB, free: 11.79 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004332/0.0904, allocations: 1.823 MB / 378.6 MB, free: 9.961 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003543/0.09394, allocations: 1.098 MB / 379.7 MB, free: 8.859 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01598/0.1099, allocations: 6.51 MB / 386.2 MB, free: 2.328 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.141e-06/0.1099, allocations: 0 / 386.2 MB, free: 2.328 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.1099, allocations: 0 / 386.2 MB, free: 2.328 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001322/0.1101, allocations: 0 / 386.2 MB, free: 2.328 MB / 314.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.01956/0.1296, allocations: 5.009 MB / 391.2 MB, free: 13.26 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 9.628e-05/0.1297, allocations: 12.02 kB / 391.3 MB, free: 13.25 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03329/0.163, allocations: 2.9 MB / 394.2 MB, free: 10.34 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01033/0.1733, allocations: 2.214 MB / 396.4 MB, free: 8.086 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003686/0.1737, allocations: 197.3 kB / 396.6 MB, free: 7.891 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001528/0.1752, allocations: 256.2 kB / 396.8 MB, free: 7.641 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02174/0.197, allocations: 5.662 MB / 402.5 MB, free: 1.09 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002108/0.1972, allocations: 39.64 kB / 402.5 MB, free: 1.051 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001144/0.1983, allocations: 127.9 kB / 402.6 MB, free: 0.9258 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006216/0.2045, allocations: 1.84 MB / 404.5 MB, free: 15.09 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01665/0.2212, allocations: 3.06 MB / 407.5 MB, free: 12.02 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05735/0.2785, allocations: 42.21 MB / 449.7 MB, free: 492 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1294/0.4079, allocations: 1.073 MB / 450.8 MB, free: 102.7 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008772/0.4088, allocations: 406.2 kB / 451.2 MB, free: 102.6 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002778/0.4091, allocations: 97.23 kB / 451.3 MB, free: 102.6 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.906e-05/0.4091, allocations: 49.77 kB / 451.4 MB, free: 102.6 MB / 378.7 MB Notification: Performance of pre-optimization done (n=119): time 3.266e-06/0.4091, allocations: 0 / 451.4 MB, free: 102.6 MB / 378.7 MB Notification: Performance of matching and sorting (n=133): time 0.02038/0.4295, allocations: 7.583 MB / 458.9 MB, free: 100.4 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.214e-05/0.4296, allocations: 193.9 kB / 459.1 MB, free: 100.2 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004249/0.4338, allocations: 4.272 MB / 463.4 MB, free: 99.45 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000112/0.4339, allocations: 44.27 kB / 463.4 MB, free: 99.42 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001374/0.4353, allocations: 3.439 MB / 466.9 MB, free: 96.95 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004749/0.4358, allocations: 0.6144 MB / 467.5 MB, free: 96.52 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001425/0.4372, allocations: 1.53 MB / 469 MB, free: 95.71 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.433e-05/0.4372, allocations: 486.2 kB / 469.5 MB, free: 95.24 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001299/0.4385, allocations: 0.6668 MB / 470.2 MB, free: 95.13 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003058/0.4416, allocations: 6.584 MB / 476.8 MB, free: 86.58 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005093/0.4467, allocations: 7.901 MB / 484.7 MB, free: 76.12 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001064/0.4468, allocations: 40 kB / 484.7 MB, free: 76.09 MB / 378.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.008575/0.4554, allocations: 5.488 MB / 490.2 MB, free: 70.59 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.294e-05/0.4554, allocations: 64.94 kB / 490.2 MB, free: 70.53 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001001/0.4555, allocations: 136 kB / 490.4 MB, free: 70.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001426/0.457, allocations: 487.2 kB / 490.9 MB, free: 69.92 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003337/0.4603, allocations: 1.357 MB / 492.2 MB, free: 68.56 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00288/0.4632, allocations: 2.996 MB / 495.2 MB, free: 65.45 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003987/0.4672, allocations: 347.5 kB / 495.5 MB, free: 65.11 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004819/0.4677, allocations: 374.4 kB / 495.9 MB, free: 64.74 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 619 * 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 (735): * Single equations (assignments): 731 * 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.00161/0.4693, allocations: 0.7313 MB / 496.6 MB, free: 64 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005267/0.4698, allocations: 341.9 kB / 497 MB, free: 63.66 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002658/0.4725, allocations: 1.274 MB / 498.3 MB, free: 62.36 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-05/0.4725, allocations: 12 kB / 498.3 MB, free: 62.35 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/0.4725, allocations: 7.984 kB / 498.3 MB, free: 62.34 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.08e-05/0.4725, allocations: 7.984 kB / 498.3 MB, free: 62.33 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008756/0.4812, allocations: 5.182 MB / 0.4917 GB, free: 57.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.678e-06/0.4813, allocations: 8.031 kB / 0.4917 GB, free: 57.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007984/0.4821, allocations: 179.8 kB / 0.4918 GB, free: 56.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001201/0.4833, allocations: 299.1 kB / 0.4921 GB, free: 56.63 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.253e-05/0.4833, allocations: 23.62 kB / 0.4921 GB, free: 56.61 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002248/0.4856, allocations: 2.363 MB / 0.4945 GB, free: 54.12 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.4856, allocations: 0 / 0.4945 GB, free: 54.12 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00378/0.4894, allocations: 2.255 MB / 0.4967 GB, free: 51.82 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001419/0.4908, allocations: 445.8 kB / 0.4971 GB, free: 51.38 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003683/0.4912, allocations: 27.94 kB / 0.4971 GB, free: 51.35 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001203/0.4924, allocations: 95.84 kB / 0.4972 GB, free: 51.26 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001991/0.4926, allocations: 72.47 kB / 0.4973 GB, free: 51.19 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.317e-05/0.4926, allocations: 39.98 kB / 0.4973 GB, free: 51.15 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002416/0.4951, allocations: 1.758 MB / 0.499 GB, free: 49.4 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.4951, allocations: 0 / 0.499 GB, free: 49.4 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004284/0.4993, allocations: 0.9491 MB / 0.5 GB, free: 48.45 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (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.0003835/0.4997, allocations: 178.3 kB / 0.5001 GB, free: 48.27 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004674/0.5044, allocations: 3.135 MB / 0.5032 GB, free: 45.13 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.5044, allocations: 1.375 kB / 0.5032 GB, free: 45.13 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008969/0.5053, allocations: 0.6751 MB / 0.5038 GB, free: 44.44 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001902/0.5072, allocations: 340.7 kB / 0.5042 GB, free: 44.12 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008368/0.5156, allocations: 6.562 MB / 0.5106 GB, free: 37.47 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00195/0.5175, allocations: 2.184 MB / 0.5127 GB, free: 35.27 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002938/0.5205, allocations: 1.546 MB / 0.5142 GB, free: 33.72 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004914/0.5209, allocations: 212.5 kB / 0.5144 GB, free: 33.51 MB / 378.7 MB Notification: Performance of SimCode: time 1.814e-06/0.521, allocations: 0 / 0.5144 GB, free: 33.51 MB / 378.7 MB Notification: Performance of Templates: time 0.0452/0.5662, allocations: 24.96 MB / 0.5388 GB, free: 8.707 MB / 378.7 MB " [Timeout remaining time 659] 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 -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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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.673181236023083]