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.001049/0.001049, allocations: 95.2 kB / 20.43 MB, free: 4.141 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.0009947/0.0009947, allocations: 165 kB / 23.79 MB, free: 0.7773 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 0.8815/0.8815, allocations: 158.6 MB / 185.7 MB, free: 2.918 MB / 170.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.1284/0.1284, allocations: 32.38 MB / 270.4 MB, free: 14.7 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.605e-06/2.605e-06, allocations: 0 / 347.7 MB, free: 9.457 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.902e-05/4.163e-05, allocations: 2.312 kB / 347.7 MB, free: 9.453 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.008629/0.008671, allocations: 9.72 MB / 357.4 MB, free: 15.69 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007346/0.01602, allocations: 3.645 MB / 361 MB, free: 12.04 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001837/0.01785, allocations: 59.75 kB / 361.1 MB, free: 11.98 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003048/0.0209, allocations: 2.094 MB / 363.2 MB, free: 9.875 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004439/0.02534, allocations: 1.851 MB / 365 MB, free: 8.016 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001244/0.02658, allocations: 0.6274 MB / 365.7 MB, free: 7.387 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004975/0.03156, allocations: 4.104 MB / 369.8 MB, free: 3.273 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003121/0.03468, allocations: 2.479 MB / 372.2 MB, free: 0.7344 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003085/0.03777, allocations: 1.976 MB / 374.2 MB, free: 14.75 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00307/0.04084, allocations: 2.015 MB / 376.2 MB, free: 12.73 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007351/0.04157, allocations: 276 kB / 376.5 MB, free: 12.46 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001919/0.04349, allocations: 1.112 MB / 377.6 MB, free: 11.35 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001616/0.04511, allocations: 1.819 MB / 379.4 MB, free: 9.527 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001658/0.04677, allocations: 1.098 MB / 380.5 MB, free: 8.426 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006636/0.0534, allocations: 4.32 MB / 384.9 MB, free: 4.09 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.017e-06/0.05341, allocations: 3.938 kB / 384.9 MB, free: 4.086 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.05341, allocations: 0 / 384.9 MB, free: 4.086 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002102/0.05362, allocations: 0 / 384.9 MB, free: 4.086 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.008003/0.06162, allocations: 4.591 MB / 389.4 MB, free: 15.43 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.207e-05/0.06168, allocations: 19.97 kB / 389.5 MB, free: 15.41 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00885/0.07053, allocations: 2.908 MB / 392.4 MB, free: 12.5 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00401/0.07454, allocations: 2.156 MB / 394.5 MB, free: 10.3 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001327/0.07467, allocations: 197.3 kB / 394.7 MB, free: 10.11 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000568/0.07524, allocations: 256.2 kB / 395 MB, free: 9.859 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007846/0.08308, allocations: 5.279 MB / 400.3 MB, free: 3.688 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.097e-05/0.08317, allocations: 39.64 kB / 400.3 MB, free: 3.648 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003369/0.0835, allocations: 127.9 kB / 400.4 MB, free: 3.523 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001935/0.08544, allocations: 1.833 MB / 402.3 MB, free: 1.691 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009089/0.09453, allocations: 2.736 MB / 405 MB, free: 14.94 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03286/0.1274, allocations: 38.7 MB / 443.7 MB, free: 6.965 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002545/0.1299, allocations: 1.007 MB / 444.7 MB, free: 5.906 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006185/0.1305, allocations: 376.1 kB / 445.1 MB, free: 5.523 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002162/0.1308, allocations: 104.3 kB / 445.2 MB, free: 5.422 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.892e-05/0.1308, allocations: 49.83 kB / 445.2 MB, free: 5.359 MB / 378.7 MB Notification: Performance of pre-optimization done (n=119): time 4.208e-06/0.1308, allocations: 0 / 445.2 MB, free: 5.359 MB / 378.7 MB Notification: Performance of matching and sorting (n=133): time 0.1641/0.2949, allocations: 7.444 MB / 452.7 MB, free: 98.12 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.665e-05/0.295, allocations: 194 kB / 452.9 MB, free: 97.9 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004298/0.2993, allocations: 3.423 MB / 456.3 MB, free: 97.37 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002489/0.2995, allocations: 43.61 kB / 456.3 MB, free: 97.34 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001674/0.3012, allocations: 3.233 MB / 459.5 MB, free: 95.75 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000566/0.3018, allocations: 0.5837 MB / 460.1 MB, free: 95.45 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001263/0.303, allocations: 1.294 MB / 461.4 MB, free: 95.29 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.03e-05/0.3031, allocations: 482.9 kB / 461.9 MB, free: 94.82 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000934/0.304, allocations: 0.6082 MB / 462.5 MB, free: 94.8 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002804/0.3068, allocations: 6.332 MB / 468.8 MB, free: 87.37 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004674/0.3115, allocations: 7.582 MB / 476.4 MB, free: 79.3 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00011/0.3116, allocations: 39.41 kB / 476.5 MB, free: 79.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.007192/0.3188, allocations: 5.364 MB / 481.8 MB, free: 76.57 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.578e-05/0.3188, allocations: 64 kB / 481.9 MB, free: 76.51 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.418e-05/0.3189, allocations: 136.9 kB / 482 MB, free: 76.38 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009028/0.3198, allocations: 482.1 kB / 482.5 MB, free: 76.03 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002201/0.322, allocations: 1.358 MB / 483.8 MB, free: 74.84 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002125/0.3242, allocations: 2.905 MB / 486.8 MB, free: 72 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003035/0.3272, allocations: 351.8 kB / 487.1 MB, free: 71.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004122/0.3276, allocations: 375.2 kB / 487.5 MB, free: 71.34 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.00118/0.3288, allocations: 0.6484 MB / 488.1 MB, free: 70.68 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004868/0.3293, allocations: 345.9 kB / 488.4 MB, free: 70.34 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001551/0.3308, allocations: 1.185 MB / 489.6 MB, free: 69.42 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.098e-05/0.3309, allocations: 19.19 kB / 489.7 MB, free: 69.4 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.132e-05/0.3309, allocations: 4 kB / 489.7 MB, free: 69.4 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.043e-05/0.3309, allocations: 11.3 kB / 489.7 MB, free: 69.39 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005813/0.3367, allocations: 4.274 MB / 493.9 MB, free: 65.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.182e-06/0.3367, allocations: 4.156 kB / 493.9 MB, free: 65.66 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004792/0.3372, allocations: 175.8 kB / 494.1 MB, free: 65.48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007132/0.3379, allocations: 295.1 kB / 494.4 MB, free: 65.19 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.554e-05/0.338, allocations: 20 kB / 494.4 MB, free: 65.17 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001503/0.3395, allocations: 2.291 MB / 496.7 MB, free: 62.76 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.3395, allocations: 4 kB / 496.7 MB, free: 62.76 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002337/0.3418, allocations: 2.109 MB / 498.8 MB, free: 60.59 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007427/0.3425, allocations: 457.6 kB / 499.3 MB, free: 60.14 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001884/0.3427, allocations: 27.83 kB / 499.3 MB, free: 60.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006371/0.3434, allocations: 99.42 kB / 499.4 MB, free: 60.02 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001361/0.3435, allocations: 72.52 kB / 499.5 MB, free: 59.95 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.367e-05/0.3436, allocations: 39.98 kB / 499.5 MB, free: 59.91 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001524/0.3451, allocations: 1.453 MB / 0.4892 GB, free: 58.47 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3451, allocations: 3.719 kB / 0.4892 GB, free: 58.47 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00345/0.3485, allocations: 0.9453 MB / 0.4901 GB, free: 57.52 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.0003485/0.3489, allocations: 182.5 kB / 0.4903 GB, free: 57.34 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003666/0.3525, allocations: 2.819 MB / 0.4931 GB, free: 54.53 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.3525, allocations: 0 / 0.4931 GB, free: 54.53 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006369/0.3532, allocations: 0.6177 MB / 0.4937 GB, free: 53.89 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001425/0.3546, allocations: 321.6 kB / 0.494 GB, free: 53.59 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007945/0.3626, allocations: 6.491 MB / 0.5003 GB, free: 47.02 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007141/0.3633, allocations: 1.105 MB / 0.5014 GB, free: 45.9 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002039/0.3653, allocations: 1.54 MB / 0.5029 GB, free: 44.36 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003743/0.3657, allocations: 212.5 kB / 0.5031 GB, free: 44.16 MB / 378.7 MB Notification: Performance of SimCode: time 1.764e-06/0.3657, allocations: 0 / 0.5031 GB, free: 44.16 MB / 378.7 MB Notification: Performance of Templates: time 0.03403/0.3997, allocations: 25 MB / 0.5275 GB, free: 19.35 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 -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: 4.0752955339848995]