Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.001013/0.001013, 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.001394/0.001394, allocations: 165 kB / 23.79 MB, free: 0.7734 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.921/0.921, allocations: 158.6 MB / 185.7 MB, free: 2.93 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.1248/0.1248, 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.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.395e-06/2.395e-06, allocations: 0 / 347.7 MB, free: 9.457 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.974e-05/3.213e-05, allocations: 2.312 kB / 347.7 MB, free: 9.453 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01057/0.01061, allocations: 9.176 MB / 356.8 MB, free: 244 kB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.008722/0.01933, allocations: 3.54 MB / 360.4 MB, free: 12.69 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001739/0.02107, allocations: 59.69 kB / 360.4 MB, free: 12.63 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002518/0.02358, allocations: 1.806 MB / 362.2 MB, free: 10.82 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003952/0.02754, allocations: 1.758 MB / 364 MB, free: 9.051 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001082/0.02862, allocations: 0.6119 MB / 364.6 MB, free: 8.438 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004613/0.03323, allocations: 3.869 MB / 368.5 MB, free: 4.562 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002385/0.03562, allocations: 2.239 MB / 370.7 MB, free: 2.27 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002755/0.03837, allocations: 2.089 MB / 372.8 MB, free: 180 kB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002206/0.04058, allocations: 1.82 MB / 374.6 MB, free: 14.35 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003867/0.04096, allocations: 240 kB / 374.9 MB, free: 14.12 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001498/0.04246, allocations: 1.076 MB / 375.9 MB, free: 13.04 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001438/0.0439, allocations: 1.632 MB / 377.6 MB, free: 11.4 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008824/0.04478, allocations: 0.9734 MB / 378.5 MB, free: 10.43 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004039/0.04882, allocations: 3.954 MB / 382.5 MB, free: 6.457 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.04883, allocations: 0 / 382.5 MB, free: 6.457 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.245e-06/0.04883, allocations: 4 kB / 382.5 MB, free: 6.453 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.092e-05/0.04888, allocations: 0 / 382.5 MB, free: 6.453 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: 1219 * Number of variables: 1219 Notification: Performance of Generate backend data structure: time 0.005146/0.05403, allocations: 4.252 MB / 386.8 MB, free: 2.137 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.738e-05/0.05407, allocations: 8.031 kB / 386.8 MB, free: 2.129 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00783/0.0619, allocations: 2.764 MB / 389.5 MB, free: 15.36 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003726/0.06563, allocations: 1.887 MB / 391.4 MB, free: 13.43 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001033/0.06573, allocations: 168.7 kB / 391.6 MB, free: 13.27 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004583/0.06619, allocations: 240.1 kB / 391.8 MB, free: 13.03 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007426/0.07362, allocations: 4.81 MB / 396.6 MB, free: 7.355 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.548e-05/0.07369, allocations: 35.7 kB / 396.7 MB, free: 7.32 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002326/0.07392, allocations: 111.9 kB / 396.8 MB, free: 7.211 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001795/0.07572, allocations: 1.613 MB / 398.4 MB, free: 5.598 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00509/0.08081, allocations: 2.392 MB / 400.8 MB, free: 3.191 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02991/0.1107, allocations: 36.07 MB / 436.8 MB, free: 13.87 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002523/0.1132, allocations: 0.9263 MB / 437.8 MB, free: 12.89 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004715/0.1137, allocations: 298.6 kB / 438.1 MB, free: 12.59 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004262/0.118, allocations: 2.606 MB / 440.7 MB, free: 9.949 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.316e-05/0.118, allocations: 41.72 kB / 440.7 MB, free: 9.898 MB / 378.7 MB Notification: Performance of pre-optimization done (n=93): time 4.378e-06/0.118, allocations: 0 / 440.7 MB, free: 9.898 MB / 378.7 MB Notification: Performance of matching and sorting (n=110): time 0.01276/0.1308, allocations: 6.631 MB / 447.3 MB, free: 3.176 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001012/0.1309, allocations: 196.4 kB / 447.5 MB, free: 2.941 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1635/0.2943, allocations: 3.266 MB / 450.8 MB, free: 97.8 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002297/0.2946, allocations: 40.8 kB / 450.8 MB, free: 97.77 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001759/0.2963, allocations: 3.007 MB / 453.8 MB, free: 96.79 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004809/0.2968, allocations: 0.4912 MB / 454.3 MB, free: 96.59 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001279/0.2981, allocations: 1.185 MB / 455.5 MB, free: 96.45 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.382e-05/0.2982, allocations: 478.1 kB / 456 MB, free: 95.98 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001173/0.2993, allocations: 0.5257 MB / 456.5 MB, free: 95.96 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002873/0.3022, allocations: 5.85 MB / 462.4 MB, free: 89.03 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005164/0.3074, allocations: 6.96 MB / 469.3 MB, free: 82 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001093/0.3075, allocations: 37.75 kB / 469.4 MB, free: 82 MB / 378.7 MB Notification: Performance of matching and sorting (n=706) (initialization): time 0.007066/0.3145, allocations: 4.633 MB / 474 MB, free: 80.88 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.621e-05/0.3146, allocations: 60.34 kB / 474.1 MB, free: 80.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001156/0.3147, allocations: 127.1 kB / 474.2 MB, free: 80.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003698/0.3151, allocations: 196.3 kB / 474.4 MB, free: 80.86 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002079/0.3172, allocations: 1.264 MB / 475.6 MB, free: 80.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009031/0.3181, allocations: 1.995 MB / 477.6 MB, free: 78.96 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002237/0.3203, allocations: 344.2 kB / 478 MB, free: 78.94 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003105/0.3206, allocations: 341.3 kB / 478.3 MB, free: 78.93 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 576 * Number of states: 0 () * Number of discrete variables: 27 (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 (681): * Single equations (assignments): 677 * 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.0009719/0.3216, allocations: 0.6096 MB / 478.9 MB, free: 78.5 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003825/0.322, allocations: 310.1 kB / 479.2 MB, free: 78.2 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007786/0.3227, allocations: 0.6674 MB / 479.9 MB, free: 77.62 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.464e-05/0.3228, allocations: 15.84 kB / 479.9 MB, free: 77.61 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.3228, allocations: 11.25 kB / 479.9 MB, free: 77.6 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.075e-06/0.3228, allocations: 3.891 kB / 479.9 MB, free: 77.6 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003965/0.3267, allocations: 3.358 MB / 483.3 MB, free: 74.65 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.025e-06/0.3267, allocations: 4 kB / 483.3 MB, free: 74.65 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004755/0.3272, allocations: 178.1 kB / 483.4 MB, free: 74.51 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001979/0.3274, allocations: 44.17 kB / 483.5 MB, free: 74.47 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.213e-05/0.3275, allocations: 28.48 kB / 483.5 MB, free: 74.45 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000803/0.3283, allocations: 1.756 MB / 485.3 MB, free: 72.59 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.638e-06/0.3283, allocations: 11.44 kB / 485.3 MB, free: 72.59 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002009/0.3303, allocations: 1.695 MB / 487 MB, free: 70.9 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008706/0.3312, allocations: 395 kB / 487.4 MB, free: 70.56 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002565/0.3314, allocations: 20 kB / 487.4 MB, free: 70.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00061/0.332, allocations: 92.33 kB / 487.5 MB, free: 70.48 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001048/0.3321, allocations: 72.59 kB / 487.5 MB, free: 70.44 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.992e-05/0.3322, allocations: 32 kB / 487.6 MB, free: 70.41 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001602/0.3338, allocations: 1.387 MB / 489 MB, free: 69.27 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3338, allocations: 0 / 489 MB, free: 69.27 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003579/0.3374, allocations: 0.8153 MB / 489.8 MB, free: 68.46 MB / 378.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 (88): * Single equations (assignments): 84 * 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.0004135/0.3378, allocations: 174.7 kB / 490 MB, free: 68.29 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003843/0.3416, allocations: 2.473 MB / 492.4 MB, free: 66.09 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.638e-06/0.3416, allocations: 0 / 492.4 MB, free: 66.09 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005995/0.3422, allocations: 0.4917 MB / 492.9 MB, free: 65.62 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001725/0.344, allocations: 333.5 kB / 493.2 MB, free: 65.35 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0095/0.3535, allocations: 5.868 MB / 499.1 MB, free: 59.87 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008059/0.3543, allocations: 0.9873 MB / 0.4884 GB, free: 59.05 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002118/0.3564, allocations: 1.435 MB / 0.4898 GB, free: 57.62 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003824/0.3568, allocations: 196.5 kB / 0.49 GB, free: 57.43 MB / 378.7 MB Notification: Performance of SimCode: time 2.645e-06/0.3568, allocations: 0 / 0.49 GB, free: 57.43 MB / 378.7 MB Notification: Performance of Templates: time 0.03214/0.3889, allocations: 20.71 MB / 0.5102 GB, free: 36.93 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.212557011283934]