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.0009892/0.0009892, allocations: 80.8 kB / 21.49 MB, free: 2.996 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.00111/0.00111, allocations: 169.6 kB / 24.91 MB, free: 8.727 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.958/0.958, allocations: 177.1 MB / 205.3 MB, free: 5.484 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.2294/0.2294, allocations: 32.8 MB / 294.6 MB, free: 1.238 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.453e-06/1.453e-06, allocations: 0 / 323.3 MB, free: 9.672 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.378e-05/1.523e-05, allocations: 5.859 kB / 323.3 MB, free: 9.668 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.006736/0.006751, allocations: 8.543 MB / 331.8 MB, free: 1.078 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004571/0.01132, allocations: 3.57 MB / 335.4 MB, free: 13.5 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004823/0.01181, allocations: 55.75 kB / 335.4 MB, free: 13.44 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001983/0.01379, allocations: 1.752 MB / 337.2 MB, free: 11.68 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00184/0.01563, allocations: 1.637 MB / 338.8 MB, free: 10.04 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006099/0.01624, allocations: 0.6157 MB / 339.4 MB, free: 9.422 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002473/0.01871, allocations: 3.953 MB / 343.4 MB, free: 5.461 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001619/0.02033, allocations: 2.103 MB / 345.5 MB, free: 3.289 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001484/0.02181, allocations: 2.132 MB / 347.6 MB, free: 1.152 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001248/0.02306, allocations: 1.625 MB / 349.2 MB, free: 15.52 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002155/0.02328, allocations: 224 kB / 349.5 MB, free: 15.3 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009818/0.02426, allocations: 1.084 MB / 350.6 MB, free: 14.22 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00102/0.02528, allocations: 1.508 MB / 352.1 MB, free: 12.71 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005797/0.02586, allocations: 0.9188 MB / 353 MB, free: 11.79 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00234/0.0282, allocations: 3.702 MB / 356.7 MB, free: 8.07 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.845e-06/0.0282, allocations: 0 / 356.7 MB, free: 8.07 MB / 330.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.0282, allocations: 0 / 356.7 MB, free: 8.07 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.061e-05/0.02823, allocations: 0 / 356.7 MB, free: 8.07 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.003281/0.03151, allocations: 3.418 MB / 360.1 MB, free: 4.602 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.413e-05/0.03155, allocations: 12.03 kB / 360.1 MB, free: 4.59 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00264/0.03419, allocations: 0.9762 MB / 361.1 MB, free: 3.613 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00147/0.03566, allocations: 1.465 MB / 362.6 MB, free: 2.109 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.464e-05/0.03573, allocations: 160.5 kB / 362.7 MB, free: 1.949 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002268/0.03596, allocations: 216.2 kB / 362.9 MB, free: 1.738 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003306/0.03927, allocations: 3.779 MB / 366.7 MB, free: 13.32 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.636e-05/0.03932, allocations: 47.61 kB / 366.7 MB, free: 13.27 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001673/0.03949, allocations: 111.9 kB / 366.9 MB, free: 13.16 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001035/0.04052, allocations: 1.344 MB / 368.2 MB, free: 11.81 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002287/0.04281, allocations: 1.83 MB / 370 MB, free: 9.949 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01482/0.05763, allocations: 24.73 MB / 394.8 MB, free: 244 kB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001542/0.05917, allocations: 0.807 MB / 395.6 MB, free: 15.39 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002431/0.05942, allocations: 199.6 kB / 395.8 MB, free: 15.18 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002311/0.06173, allocations: 2.21 MB / 398 MB, free: 12.94 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.133e-05/0.06176, allocations: 42.56 kB / 398 MB, free: 12.89 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 1.993e-06/0.06176, allocations: 0 / 398 MB, free: 12.89 MB / 378.7 MB Notification: Performance of matching and sorting (n=101): time 0.007668/0.06943, allocations: 3.503 MB / 401.5 MB, free: 9.328 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.544e-05/0.0695, allocations: 192.4 kB / 401.7 MB, free: 9.098 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001862/0.07136, allocations: 2.814 MB / 404.5 MB, free: 6.258 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.435e-05/0.0714, allocations: 37.7 kB / 404.6 MB, free: 6.215 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009775/0.07238, allocations: 2.579 MB / 407.1 MB, free: 3.605 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002276/0.07261, allocations: 444.8 kB / 407.6 MB, free: 3.168 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001008/0.07362, allocations: 1.005 MB / 408.6 MB, free: 2.152 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.036e-05/0.07368, allocations: 301.1 kB / 408.9 MB, free: 1.855 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008231/0.0745, allocations: 0.6228 MB / 409.5 MB, free: 1.227 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002144/0.07664, allocations: 3.987 MB / 413.5 MB, free: 11.48 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003399/0.08004, allocations: 5.036 MB / 418.5 MB, free: 4.707 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.753e-05/0.08008, allocations: 39.94 kB / 418.5 MB, free: 4.668 MB / 394.7 MB Notification: Performance of matching and sorting (n=681) (initialization): time 0.003776/0.08386, allocations: 3.555 MB / 422.1 MB, free: 1.098 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.089e-05/0.08391, allocations: 59.94 kB / 422.2 MB, free: 1.039 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.3e-05/0.08398, allocations: 124 kB / 422.3 MB, free: 0.918 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002424/0.08422, allocations: 192 kB / 422.5 MB, free: 0.7266 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001805/0.08603, allocations: 1.224 MB / 423.7 MB, free: 15.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000784/0.08681, allocations: 1.44 MB / 425.1 MB, free: 13.96 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001488/0.0883, allocations: 239.9 kB / 425.4 MB, free: 13.73 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002304/0.08853, allocations: 292 kB / 425.7 MB, free: 13.45 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.0008796/0.08941, allocations: 0.5562 MB / 426.2 MB, free: 12.88 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002203/0.08963, allocations: 155.8 kB / 426.4 MB, free: 12.72 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008424/0.09047, allocations: 0.504 MB / 426.9 MB, free: 12.21 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.324e-05/0.09049, allocations: 16 kB / 426.9 MB, free: 12.19 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/0.09049, allocations: 0 / 426.9 MB, free: 12.19 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.723e-06/0.0905, allocations: 3.984 kB / 426.9 MB, free: 12.19 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002773/0.09327, allocations: 2.581 MB / 429.5 MB, free: 9.52 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-06/0.09327, allocations: 4 kB / 429.5 MB, free: 9.516 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003544/0.09363, allocations: 135.8 kB / 429.6 MB, free: 9.383 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002738/0.0939, allocations: 204.8 kB / 429.8 MB, free: 9.176 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.89e-05/0.09394, allocations: 19.98 kB / 429.8 MB, free: 9.156 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005996/0.09454, allocations: 1.213 MB / 431 MB, free: 7.844 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.538e-06/0.09455, allocations: 7.938 kB / 431 MB, free: 7.836 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001256/0.0958, allocations: 1.27 MB / 432.3 MB, free: 6.492 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002447/0.09605, allocations: 254 kB / 432.6 MB, free: 6.242 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00016/0.09621, allocations: 23.98 kB / 432.6 MB, free: 6.219 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004353/0.09664, allocations: 23.94 kB / 432.6 MB, free: 6.195 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.598e-05/0.09673, allocations: 63.77 kB / 432.7 MB, free: 6.133 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.462e-05/0.09677, allocations: 24 kB / 432.7 MB, free: 6.109 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001178/0.09795, allocations: 1.001 MB / 433.7 MB, free: 5.105 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.09795, allocations: 0 / 433.7 MB, free: 5.105 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001991/0.09994, allocations: 0.7655 MB / 434.5 MB, free: 4.34 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.0002467/0.1002, allocations: 140.1 kB / 434.6 MB, free: 4.195 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001813/0.102, allocations: 2.051 MB / 436.6 MB, free: 2.145 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001316/0.1021, allocations: 92.91 kB / 436.7 MB, free: 2.043 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003188/0.1025, allocations: 349 kB / 437.1 MB, free: 1.684 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00106/0.1035, allocations: 449.8 kB / 437.5 MB, free: 1.25 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005787/0.1093, allocations: 5.46 MB / 443 MB, free: 11.69 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007067/0.11, allocations: 0.9202 MB / 443.9 MB, free: 10.75 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0008562/0.1109, allocations: 422.1 kB / 444.3 MB, free: 10.33 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005552/0.1114, allocations: 437.2 kB / 444.7 MB, free: 9.902 MB / 426.7 MB Notification: Performance of SimCode: time 9.32e-07/0.1114, allocations: 3.938 kB / 444.7 MB, free: 9.898 MB / 426.7 MB Notification: Performance of Templates: time 0.1511/0.2626, allocations: 21.19 MB / 465.9 MB, free: 123.3 MB / 426.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 -s gbode -gbm=radauIIA3 -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: 3.756398430094123]