Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.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.000997/0.000997, allocations: 80.8 kB / 21.5 MB, free: 2.992 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.001141/0.001141, allocations: 170.3 kB / 24.91 MB, free: 8.766 MB / 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 0.9546/0.9546, allocations: 177.1 MB / 205.3 MB, free: 5.105 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2466/0.2466, allocations: 34.25 MB / 296.1 MB, free: 0.6836 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 325.2 MB, free: 7.727 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.746e-05/1.902e-05, allocations: 2.312 kB / 325.2 MB, free: 7.723 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.007309/0.007328, allocations: 8.505 MB / 333.7 MB, free: 15.18 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.00613/0.01346, allocations: 3.571 MB / 337.3 MB, free: 11.59 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007486/0.01421, allocations: 55.75 kB / 337.4 MB, free: 11.54 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001859/0.01607, allocations: 1.775 MB / 339.1 MB, free: 9.758 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002136/0.0182, allocations: 1.672 MB / 340.8 MB, free: 8.078 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007473/0.01895, allocations: 0.6195 MB / 341.4 MB, free: 7.457 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.003076/0.02202, allocations: 3.957 MB / 345.4 MB, free: 3.492 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001843/0.02387, allocations: 2.212 MB / 347.6 MB, free: 1.211 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002188/0.02606, allocations: 2.16 MB / 349.8 MB, free: 15.05 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001468/0.02752, allocations: 1.625 MB / 351.4 MB, free: 13.42 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002138/0.02774, allocations: 228 kB / 351.6 MB, free: 13.2 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001077/0.02881, allocations: 1.041 MB / 352.6 MB, free: 12.15 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009619/0.02978, allocations: 1.511 MB / 354.2 MB, free: 10.64 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006632/0.03044, allocations: 0.9149 MB / 355.1 MB, free: 9.719 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002821/0.03326, allocations: 3.698 MB / 358.8 MB, free: 6.008 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.03326, allocations: 0 / 358.8 MB, free: 6.008 MB / 330.7 MB Notification: Performance of FrontEnd: time 9.71e-07/0.03327, allocations: 0 / 358.8 MB, free: 6.008 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.238e-05/0.03329, allocations: 0 / 358.8 MB, free: 6.008 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1141 * Number of variables: 1141 Notification: Performance of Generate backend data structure: time 0.003198/0.03649, allocations: 3.418 MB / 362.2 MB, free: 2.539 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.662e-05/0.03652, allocations: 16.03 kB / 362.2 MB, free: 2.523 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002563/0.03909, allocations: 0.9723 MB / 363.2 MB, free: 1.551 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001705/0.04079, allocations: 1.465 MB / 364.6 MB, free: 48 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.449e-05/0.04087, allocations: 160.5 kB / 364.8 MB, free: 15.89 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002459/0.04112, allocations: 220.2 kB / 365 MB, free: 15.67 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003108/0.04423, allocations: 3.782 MB / 368.8 MB, free: 11.25 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.969e-05/0.04429, allocations: 43.61 kB / 368.8 MB, free: 11.2 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001778/0.04447, allocations: 107.9 kB / 368.9 MB, free: 11.1 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001141/0.04561, allocations: 1.34 MB / 370.3 MB, free: 9.754 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002294/0.0479, allocations: 1.837 MB / 372.1 MB, free: 7.883 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0151/0.063, allocations: 24.74 MB / 396.9 MB, free: 14.16 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001533/0.06453, allocations: 0.8053 MB / 397.7 MB, free: 13.32 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002202/0.06475, allocations: 198.6 kB / 397.9 MB, free: 13.11 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002697/0.06745, allocations: 2.203 MB / 400.1 MB, free: 10.88 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.799e-05/0.06748, allocations: 50.56 kB / 400.1 MB, free: 10.82 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 2.204e-06/0.06748, allocations: 0 / 400.1 MB, free: 10.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=101): time 0.007606/0.07508, allocations: 3.499 MB / 403.6 MB, free: 7.262 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.735e-05/0.07515, allocations: 196.4 kB / 403.8 MB, free: 7.027 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002011/0.07716, allocations: 2.81 MB / 406.6 MB, free: 4.191 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.28e-05/0.07722, allocations: 37.7 kB / 406.7 MB, free: 4.148 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009814/0.0782, allocations: 2.579 MB / 409.2 MB, free: 1.539 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000223/0.07842, allocations: 448.8 kB / 409.7 MB, free: 1.098 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006859/0.07911, allocations: 1.005 MB / 410.7 MB, free: 84 kB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.982e-05/0.07919, allocations: 301.1 kB / 411 MB, free: 15.79 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008114/0.08, allocations: 0.615 MB / 411.6 MB, free: 15.16 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002186/0.08218, allocations: 3.991 MB / 415.6 MB, free: 9.41 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003024/0.08521, allocations: 5.037 MB / 420.6 MB, free: 2.641 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.952e-05/0.08524, allocations: 36 kB / 420.6 MB, free: 2.605 MB / 394.7 MB Notification: Performance of matching and sorting (n=681) (initialization): time 0.003095/0.08833, allocations: 3.555 MB / 424.2 MB, free: 15.04 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.478e-05/0.08839, allocations: 56 kB / 424.3 MB, free: 14.98 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.786e-05/0.08846, allocations: 132.2 kB / 424.4 MB, free: 14.85 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000318/0.08877, allocations: 191.7 kB / 424.6 MB, free: 14.66 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001704/0.09048, allocations: 1.177 MB / 425.7 MB, free: 13.48 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007599/0.09124, allocations: 1.436 MB / 427.2 MB, free: 11.95 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001505/0.09274, allocations: 239.7 kB / 427.4 MB, free: 11.71 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002117/0.09295, allocations: 288 kB / 427.7 MB, free: 11.43 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 560 * Number of states: 0 () * Number of discrete variables: 29 (Distance1.arrow.twoHeadedArrow,Distance1.arrow.headAtOrigin,BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Distance1.arrowColor[3],Distance1.arrowColor[2],Distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (656): * Single equations (assignments): 652 * 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.000739/0.09369, allocations: 0.5679 MB / 428.3 MB, free: 10.85 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001988/0.09389, allocations: 159.8 kB / 428.4 MB, free: 10.7 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000535/0.09443, allocations: 0.4962 MB / 428.9 MB, free: 10.18 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.07e-05/0.09444, allocations: 12 kB / 428.9 MB, free: 10.17 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.09444, allocations: 0 / 428.9 MB, free: 10.17 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.09445, allocations: 7.984 kB / 428.9 MB, free: 10.16 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002691/0.09714, allocations: 2.585 MB / 431.5 MB, free: 7.492 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.09714, allocations: 4 kB / 431.5 MB, free: 7.488 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004046/0.09755, allocations: 127.8 kB / 431.7 MB, free: 7.363 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002678/0.09782, allocations: 200.4 kB / 431.8 MB, free: 7.16 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.762e-05/0.09785, allocations: 19.98 kB / 431.9 MB, free: 7.141 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006175/0.09847, allocations: 1.221 MB / 433.1 MB, free: 5.82 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.776e-06/0.09847, allocations: 4 kB / 433.1 MB, free: 5.816 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000968/0.09944, allocations: 1.267 MB / 434.4 MB, free: 4.477 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002156/0.09966, allocations: 266.1 kB / 434.6 MB, free: 4.215 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001609/0.09982, allocations: 24 kB / 434.6 MB, free: 4.191 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000416/0.1002, allocations: 16 kB / 434.7 MB, free: 4.176 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.284e-05/0.1003, allocations: 55.84 kB / 434.7 MB, free: 4.121 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.868e-05/0.1003, allocations: 27.98 kB / 434.7 MB, free: 4.094 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0007544/0.1011, allocations: 1.005 MB / 435.7 MB, free: 3.086 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1011, allocations: 3.938 kB / 435.8 MB, free: 3.082 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001977/0.1031, allocations: 0.7577 MB / 436.5 MB, free: 2.324 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 (rev.w,damper.phi_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (78): * Single equations (assignments): 74 * 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.0002532/0.1033, allocations: 144.1 kB / 436.6 MB, free: 2.176 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001873/0.1052, allocations: 2.039 MB / 438.7 MB, free: 144 kB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0002541/0.1055, allocations: 92.16 kB / 438.8 MB, free: 40 kB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003236/0.1058, allocations: 342.5 kB / 439.1 MB, free: 15.68 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001048/0.1068, allocations: 459.9 kB / 439.6 MB, free: 15.24 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005257/0.1121, allocations: 5.449 MB / 445 MB, free: 9.68 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007859/0.1129, allocations: 0.924 MB / 445.9 MB, free: 8.738 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0008354/0.1137, allocations: 422 kB / 446.3 MB, free: 8.324 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005455/0.1143, allocations: 437.2 kB / 446.8 MB, free: 7.895 MB / 426.7 MB Notification: Performance of SimCode: time 1.593e-06/0.1143, allocations: 0 / 446.8 MB, free: 7.895 MB / 426.7 MB Notification: Performance of Templates: time 0.1778/0.292, allocations: 21.19 MB / 468 MB, free: 120.6 MB / 426.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.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.7778114899992943]