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.001186/0.001186, allocations: 88.2 kB / 20.94 MB, free: 3.605 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.001009/0.001009, allocations: 169 kB / 24.24 MB, free: 312 kB / 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.8569/0.8569, allocations: 158.6 MB / 186 MB, free: 2.906 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.1579/0.1579, allocations: 32.38 MB / 270.7 MB, free: 14.77 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.623e-06/1.623e-06, allocations: 0 / 347.7 MB, free: 9.789 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.594e-05/2.756e-05, allocations: 4.281 kB / 347.7 MB, free: 9.785 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.006717/0.006745, allocations: 9.694 MB / 357.4 MB, free: 48 kB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.006655/0.0134, allocations: 3.618 MB / 361 MB, free: 12.42 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001793/0.01519, allocations: 59.75 kB / 361 MB, free: 12.36 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002693/0.01789, allocations: 2.09 MB / 363.1 MB, free: 10.26 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00396/0.02185, allocations: 1.866 MB / 365 MB, free: 8.387 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001233/0.02308, allocations: 0.6274 MB / 365.6 MB, free: 7.758 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004473/0.02755, allocations: 4.094 MB / 369.7 MB, free: 3.656 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002393/0.02994, allocations: 2.483 MB / 372.2 MB, free: 1.113 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002437/0.03238, allocations: 1.972 MB / 374.2 MB, free: 15.14 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002164/0.03455, allocations: 2.015 MB / 376.2 MB, free: 13.12 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004821/0.03503, allocations: 280 kB / 376.5 MB, free: 12.84 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001491/0.03652, allocations: 1.115 MB / 377.6 MB, free: 11.73 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001271/0.03779, allocations: 1.819 MB / 379.4 MB, free: 9.902 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001105/0.03889, allocations: 1.098 MB / 380.5 MB, free: 8.801 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004901/0.0438, allocations: 4.312 MB / 384.8 MB, free: 4.473 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.0438, allocations: 7.938 kB / 384.8 MB, free: 4.465 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.744e-06/0.0438, allocations: 0 / 384.8 MB, free: 4.465 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.000128/0.04393, allocations: 0 / 384.8 MB, free: 4.465 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.006323/0.05025, allocations: 4.595 MB / 389.4 MB, free: 15.81 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.495e-05/0.0503, allocations: 15.97 kB / 389.4 MB, free: 15.79 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008903/0.0592, allocations: 2.908 MB / 392.3 MB, free: 12.88 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004159/0.06336, allocations: 2.156 MB / 394.5 MB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001509/0.06351, allocations: 201.3 kB / 394.7 MB, free: 10.48 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006737/0.06419, allocations: 260.2 kB / 394.9 MB, free: 10.23 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009067/0.07325, allocations: 5.268 MB / 400.2 MB, free: 4.07 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001011/0.07335, allocations: 43.64 kB / 400.2 MB, free: 4.027 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003321/0.07369, allocations: 127.8 kB / 400.4 MB, free: 3.902 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002437/0.07612, allocations: 1.833 MB / 402.2 MB, free: 2.07 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007664/0.08379, allocations: 2.74 MB / 404.9 MB, free: 15.32 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03581/0.1196, allocations: 38.7 MB / 443.6 MB, free: 7.348 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003406/0.123, allocations: 1.007 MB / 444.6 MB, free: 6.289 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007169/0.1237, allocations: 380.1 kB / 445 MB, free: 5.902 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002367/0.124, allocations: 100.3 kB / 445.1 MB, free: 5.805 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.692e-05/0.124, allocations: 53.81 kB / 445.2 MB, free: 5.738 MB / 378.7 MB Notification: Performance of pre-optimization done (n=119): time 4.258e-06/0.124, allocations: 0 / 445.2 MB, free: 5.738 MB / 378.7 MB Notification: Performance of matching and sorting (n=133): time 0.1846/0.3086, allocations: 7.439 MB / 452.6 MB, free: 88.35 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.527e-05/0.3087, allocations: 194.4 kB / 452.8 MB, free: 88.13 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003581/0.3123, allocations: 3.427 MB / 456.2 MB, free: 87.59 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002134/0.3125, allocations: 46.92 kB / 456.3 MB, free: 87.56 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001489/0.314, allocations: 3.232 MB / 459.5 MB, free: 85.97 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005726/0.3145, allocations: 0.5804 MB / 460.1 MB, free: 85.66 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001378/0.3159, allocations: 1.295 MB / 461.4 MB, free: 85.51 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.562e-05/0.316, allocations: 481.9 kB / 461.8 MB, free: 85.04 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001345/0.3173, allocations: 0.6069 MB / 462.4 MB, free: 85.02 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003178/0.3205, allocations: 6.327 MB / 468.8 MB, free: 77.59 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005838/0.3263, allocations: 7.576 MB / 476.4 MB, free: 70.2 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002084/0.3265, allocations: 44.89 kB / 476.4 MB, free: 70.19 MB / 378.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.009309/0.3358, allocations: 5.367 MB / 481.8 MB, free: 69 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.992e-05/0.3359, allocations: 62.91 kB / 481.8 MB, free: 69 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001371/0.3361, allocations: 132.6 kB / 482 MB, free: 69 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001014/0.3371, allocations: 481.5 kB / 482.4 MB, free: 68.97 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002579/0.3396, allocations: 1.351 MB / 483.8 MB, free: 68.73 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002156/0.3418, allocations: 2.913 MB / 486.7 MB, free: 65.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005374/0.3472, allocations: 350.2 kB / 487 MB, free: 65.59 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001194/0.3484, allocations: 371.7 kB / 487.4 MB, free: 65.23 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.002141/0.3505, allocations: 0.657 MB / 488.1 MB, free: 64.56 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009125/0.3514, allocations: 345.1 kB / 488.4 MB, free: 64.23 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002527/0.354, allocations: 1.19 MB / 489.6 MB, free: 63.3 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.743e-05/0.354, allocations: 12 kB / 489.6 MB, free: 63.29 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.435e-05/0.354, allocations: 4 kB / 489.6 MB, free: 63.29 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.667e-05/0.354, allocations: 11.62 kB / 489.6 MB, free: 63.28 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007458/0.3615, allocations: 4.272 MB / 493.9 MB, free: 59.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.047e-06/0.3615, allocations: 3.516 kB / 493.9 MB, free: 59.66 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004973/0.362, allocations: 181.7 kB / 494.1 MB, free: 59.51 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007637/0.3627, allocations: 286.7 kB / 494.3 MB, free: 59.35 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.956e-05/0.3628, allocations: 31.7 kB / 494.4 MB, free: 59.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001601/0.3644, allocations: 2.287 MB / 496.7 MB, free: 57.04 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.3644, allocations: 0 / 496.7 MB, free: 57.04 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002396/0.3668, allocations: 2.105 MB / 498.8 MB, free: 55.11 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006941/0.3675, allocations: 460.1 kB / 499.2 MB, free: 54.7 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002042/0.3677, allocations: 24.66 kB / 499.2 MB, free: 54.68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000648/0.3684, allocations: 105.8 kB / 499.3 MB, free: 54.62 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001514/0.3685, allocations: 81.86 kB / 499.4 MB, free: 54.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.283e-05/0.3686, allocations: 35.67 kB / 499.5 MB, free: 54.54 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001305/0.3699, allocations: 1.452 MB / 0.4892 GB, free: 53.11 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3699, allocations: 0 / 0.4892 GB, free: 53.11 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003252/0.3731, allocations: 0.953 MB / 0.4901 GB, free: 52.16 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.0003297/0.3734, allocations: 178 kB / 0.4903 GB, free: 51.98 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003417/0.3769, allocations: 2.816 MB / 0.493 GB, free: 49.18 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.3769, allocations: 0 / 0.493 GB, free: 49.18 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005577/0.3774, allocations: 0.6149 MB / 0.4936 GB, free: 48.54 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001102/0.3785, allocations: 339.7 kB / 0.4939 GB, free: 48.22 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007812/0.3863, allocations: 6.478 MB / 0.5003 GB, free: 41.67 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008415/0.3872, allocations: 1.097 MB / 0.5013 GB, free: 40.55 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001993/0.3892, allocations: 1.542 MB / 0.5028 GB, free: 39.01 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003633/0.3895, allocations: 212.5 kB / 0.503 GB, free: 38.8 MB / 378.7 MB Notification: Performance of SimCode: time 2.034e-06/0.3895, allocations: 0 / 0.503 GB, free: 38.8 MB / 378.7 MB Notification: Performance of Templates: time 0.03406/0.4236, allocations: 25 MB / 0.5275 GB, free: 13.99 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.219051954103634]