Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001601/0.001601, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.001975/0.001975, allocations: 161 kB / 24.56 MB, free: 16 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.002/1.002, allocations: 177.1 MB / 205 MB, free: 5.652 MB / 186.7 MB " [Timeout remaining time 179] 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.3023/0.3023, allocations: 32.81 MB / 294.3 MB, free: 1.301 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.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 376 MB, free: 4.699 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.8e-05/2.962e-05, allocations: 2.312 kB / 376 MB, free: 4.695 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.008197/0.008227, allocations: 8.69 MB / 384.7 MB, free: 11.96 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.006291/0.01452, allocations: 3.496 MB / 388.2 MB, free: 8.457 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001553/0.01607, allocations: 55.75 kB / 388.2 MB, free: 8.402 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002563/0.01863, allocations: 1.779 MB / 390 MB, free: 6.617 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004394/0.02303, allocations: 1.645 MB / 391.7 MB, free: 4.965 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001207/0.02423, allocations: 0.6157 MB / 392.3 MB, free: 4.348 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.004123/0.02836, allocations: 3.969 MB / 396.3 MB, free: 380 kB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002925/0.03128, allocations: 2.145 MB / 398.4 MB, free: 14.17 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003362/0.03464, allocations: 2.175 MB / 400.6 MB, free: 11.99 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002186/0.03683, allocations: 1.711 MB / 402.3 MB, free: 10.27 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006862/0.03752, allocations: 228 kB / 402.5 MB, free: 10.05 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001784/0.0393, allocations: 1.045 MB / 403.6 MB, free: 9.004 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001719/0.04102, allocations: 1.519 MB / 405.1 MB, free: 7.48 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001483/0.0425, allocations: 0.9072 MB / 406 MB, free: 6.57 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004919/0.04742, allocations: 3.702 MB / 409.7 MB, free: 2.855 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.925e-06/0.04743, allocations: 0 / 409.7 MB, free: 2.855 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.495e-06/0.04743, allocations: 0 / 409.7 MB, free: 2.855 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000206/0.04764, allocations: 0 / 409.7 MB, free: 2.855 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: 1141 * Number of variables: 1141 Notification: Performance of Generate backend data structure: time 0.00656/0.0542, allocations: 4.049 MB / 413.7 MB, free: 14.74 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.015e-05/0.05425, allocations: 8.031 kB / 413.7 MB, free: 14.73 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00775/0.062, allocations: 2.682 MB / 416.4 MB, free: 12.05 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003583/0.06558, allocations: 1.804 MB / 418.2 MB, free: 10.21 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001259/0.06571, allocations: 160.5 kB / 418.4 MB, free: 10.05 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003978/0.0661, allocations: 216.2 kB / 418.6 MB, free: 9.836 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006119/0.07222, allocations: 4.601 MB / 423.2 MB, free: 4.383 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.552e-05/0.0723, allocations: 43.62 kB / 423.2 MB, free: 4.34 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002054/0.0725, allocations: 107.9 kB / 423.3 MB, free: 4.234 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001265/0.07377, allocations: 1.488 MB / 424.8 MB, free: 2.746 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005031/0.0788, allocations: 2.256 MB / 427.1 MB, free: 484 kB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2189/0.2977, allocations: 35 MB / 462.1 MB, free: 64.63 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002204/0.2999, allocations: 0.8577 MB / 462.9 MB, free: 64.49 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004282/0.3003, allocations: 276.8 kB / 463.2 MB, free: 64.44 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003803/0.3041, allocations: 2.484 MB / 465.7 MB, free: 63.5 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.571e-05/0.3042, allocations: 51.42 kB / 465.7 MB, free: 63.46 MB / 410.7 MB Notification: Performance of pre-optimization done (n=84): time 7.494e-06/0.3042, allocations: 0 / 465.7 MB, free: 63.46 MB / 410.7 MB Notification: Performance of matching and sorting (n=101): time 0.01167/0.3159, allocations: 6.306 MB / 472.1 MB, free: 61.21 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.401e-05/0.3159, allocations: 193.1 kB / 472.2 MB, free: 60.99 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003362/0.3193, allocations: 3.183 MB / 475.4 MB, free: 60.48 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001808/0.3195, allocations: 41.72 kB / 475.5 MB, free: 60.45 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001565/0.321, allocations: 2.877 MB / 478.3 MB, free: 58.37 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005211/0.3215, allocations: 467.6 kB / 478.8 MB, free: 58.05 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001005/0.3225, allocations: 1.157 MB / 480 MB, free: 57.43 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.625e-05/0.3226, allocations: 480.1 kB / 480.4 MB, free: 56.96 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000874/0.3235, allocations: 0.5035 MB / 480.9 MB, free: 56.89 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002743/0.3262, allocations: 5.68 MB / 486.6 MB, free: 49.83 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005133/0.3314, allocations: 6.731 MB / 493.3 MB, free: 42.49 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001548/0.3315, allocations: 36 kB / 493.4 MB, free: 42.49 MB / 410.7 MB Notification: Performance of matching and sorting (n=681) (initialization): time 0.009009/0.3405, allocations: 4.466 MB / 497.8 MB, free: 40.75 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.356e-05/0.3406, allocations: 59.59 kB / 497.9 MB, free: 40.75 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001425/0.3408, allocations: 121.8 kB / 498 MB, free: 40.75 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004245/0.3412, allocations: 199.3 kB / 498.2 MB, free: 40.73 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00257/0.3437, allocations: 1.216 MB / 499.4 MB, free: 40.57 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00108/0.3448, allocations: 1.983 MB / 0.4897 GB, free: 38.76 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002889/0.3477, allocations: 325.1 kB / 0.49 GB, free: 38.65 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004318/0.3481, allocations: 336.1 kB / 0.4903 GB, free: 38.61 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.001008/0.3492, allocations: 0.5956 MB / 0.4909 GB, free: 38.12 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004119/0.3496, allocations: 297.4 kB / 0.4912 GB, free: 37.96 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007987/0.3504, allocations: 0.5896 MB / 0.4917 GB, free: 37.71 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.905e-05/0.3504, allocations: 18.86 kB / 0.4918 GB, free: 37.7 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.714e-06/0.3504, allocations: 1.062 kB / 0.4918 GB, free: 37.7 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.446e-06/0.3504, allocations: 5.625 kB / 0.4918 GB, free: 37.7 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00439/0.3548, allocations: 3.164 MB / 0.4948 GB, free: 36.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.506e-06/0.3548, allocations: 4.219 kB / 0.4949 GB, free: 36.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004322/0.3552, allocations: 160.7 kB / 0.495 GB, free: 36.19 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001683/0.3554, allocations: 44.47 kB / 0.495 GB, free: 36.18 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.856e-05/0.3554, allocations: 22.34 kB / 0.4951 GB, free: 36.16 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006003/0.3561, allocations: 1.76 MB / 0.4968 GB, free: 34.39 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.3561, allocations: 3.438 kB / 0.4968 GB, free: 34.39 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001701/0.3578, allocations: 1.61 MB / 0.4984 GB, free: 33.35 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004167/0.3582, allocations: 268.6 kB / 0.4986 GB, free: 33.18 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001957/0.3584, allocations: 15.16 kB / 0.4986 GB, free: 33.17 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005516/0.3589, allocations: 82.55 kB / 0.4987 GB, free: 33.16 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001007/0.359, allocations: 59.77 kB / 0.4988 GB, free: 33.14 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.461e-05/0.3591, allocations: 38.95 kB / 0.4988 GB, free: 33.14 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001616/0.3607, allocations: 1.344 MB / 0.5001 GB, free: 32.67 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3607, allocations: 1.375 kB / 0.5001 GB, free: 32.67 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00328/0.364, allocations: 0.7585 MB / 0.5009 GB, free: 32.57 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.0003389/0.3643, allocations: 159.7 kB / 0.501 GB, free: 32.46 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004226/0.3685, allocations: 2.382 MB / 0.5033 GB, free: 31.57 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.095e-06/0.3685, allocations: 1.75 kB / 0.5033 GB, free: 31.57 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006855/0.3692, allocations: 482.8 kB / 0.5038 GB, free: 31.31 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001989/0.3712, allocations: 307.2 kB / 0.5041 GB, free: 31.18 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01024/0.3815, allocations: 5.538 MB / 0.5095 GB, free: 28.32 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009546/0.3824, allocations: 0.9248 MB / 0.5104 GB, free: 28.02 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002473/0.3849, allocations: 1.404 MB / 0.5118 GB, free: 27.89 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004923/0.3854, allocations: 188.9 kB / 0.512 GB, free: 27.88 MB / 410.7 MB Notification: Performance of SimCode: time 2.865e-06/0.3854, allocations: 0 / 0.512 GB, free: 27.88 MB / 410.7 MB Notification: Performance of Templates: time 0.03404/0.4194, allocations: 19.75 MB / 0.5312 GB, free: 13.78 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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: 4.200103749055415]