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.001035/0.001035, 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.00103/0.00103, allocations: 170.8 kB / 24.91 MB, free: 9.148 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.9759/0.9759, allocations: 177.1 MB / 205.3 MB, free: 5.461 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.252/0.252, allocations: 32.8 MB / 294.6 MB, free: 1.234 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.312e-06/1.312e-06, allocations: 0 / 323.2 MB, free: 9.727 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.641e-05/1.772e-05, allocations: 7.609 kB / 323.2 MB, free: 9.719 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.006786/0.006804, allocations: 8.499 MB / 331.7 MB, free: 1.18 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005689/0.01249, allocations: 3.566 MB / 335.3 MB, free: 13.6 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007816/0.01327, allocations: 55.75 kB / 335.3 MB, free: 13.54 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001978/0.01525, allocations: 1.783 MB / 337.1 MB, free: 11.75 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002392/0.01764, allocations: 1.668 MB / 338.8 MB, free: 10.08 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007838/0.01843, allocations: 0.6196 MB / 339.4 MB, free: 9.457 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002721/0.02115, allocations: 3.96 MB / 343.4 MB, free: 5.488 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001389/0.02254, allocations: 2.208 MB / 345.6 MB, free: 3.211 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001624/0.02416, allocations: 2.152 MB / 347.7 MB, free: 1.055 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001226/0.02539, allocations: 1.637 MB / 349.4 MB, free: 15.41 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002093/0.0256, allocations: 228 kB / 349.6 MB, free: 15.19 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001002/0.0266, allocations: 1.037 MB / 350.6 MB, free: 14.15 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000839/0.02744, allocations: 1.508 MB / 352.1 MB, free: 12.64 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006095/0.02805, allocations: 0.9149 MB / 353 MB, free: 11.72 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002436/0.03048, allocations: 3.702 MB / 356.7 MB, free: 8.008 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.03049, allocations: 4 kB / 356.7 MB, free: 8.004 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.03049, allocations: 0 / 356.7 MB, free: 8.004 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.115e-05/0.03051, allocations: 0 / 356.7 MB, free: 8.004 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.003123/0.03363, allocations: 3.414 MB / 360.2 MB, free: 4.539 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.236e-05/0.03367, allocations: 12.03 kB / 360.2 MB, free: 4.527 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002558/0.03622, allocations: 0.9801 MB / 361.2 MB, free: 3.547 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001544/0.03777, allocations: 1.461 MB / 362.6 MB, free: 2.047 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.849e-05/0.03785, allocations: 160.4 kB / 362.8 MB, free: 1.887 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002461/0.03809, allocations: 220.2 kB / 363 MB, free: 1.672 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003229/0.04132, allocations: 3.786 MB / 366.8 MB, free: 13.24 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.52e-05/0.04138, allocations: 39.67 kB / 366.8 MB, free: 13.2 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001756/0.04155, allocations: 103.9 kB / 366.9 MB, free: 13.1 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001067/0.04262, allocations: 1.347 MB / 368.3 MB, free: 11.75 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002328/0.04495, allocations: 1.841 MB / 370.1 MB, free: 9.875 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01387/0.05882, allocations: 24.72 MB / 394.8 MB, free: 176 kB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001449/0.06027, allocations: 0.8118 MB / 395.6 MB, free: 15.32 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002125/0.06048, allocations: 197.1 kB / 395.8 MB, free: 15.11 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002277/0.06276, allocations: 2.202 MB / 398 MB, free: 12.88 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.723e-05/0.06278, allocations: 50.55 kB / 398.1 MB, free: 12.82 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 2.925e-06/0.06279, allocations: 0 / 398.1 MB, free: 12.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=101): time 0.007437/0.07022, allocations: 3.505 MB / 401.6 MB, free: 9.258 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.924e-05/0.07029, allocations: 196.4 kB / 401.8 MB, free: 9.023 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001902/0.0722, allocations: 2.814 MB / 404.6 MB, free: 6.184 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.839e-05/0.07224, allocations: 37.7 kB / 404.6 MB, free: 6.141 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001004/0.07325, allocations: 2.575 MB / 407.2 MB, free: 3.535 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002333/0.07348, allocations: 448.8 kB / 407.6 MB, free: 3.094 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007877/0.07427, allocations: 1.005 MB / 408.6 MB, free: 2.078 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.283e-05/0.07435, allocations: 301.1 kB / 408.9 MB, free: 1.781 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009493/0.0753, allocations: 0.6189 MB / 409.6 MB, free: 1.156 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002342/0.07764, allocations: 3.991 MB / 413.6 MB, free: 11.4 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003096/0.08074, allocations: 5.028 MB / 418.6 MB, free: 4.637 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.042e-05/0.08077, allocations: 35.98 kB / 418.6 MB, free: 4.602 MB / 394.7 MB Notification: Performance of matching and sorting (n=681) (initialization): time 0.003148/0.08392, allocations: 3.562 MB / 422.2 MB, free: 1.031 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.733e-05/0.08397, allocations: 59.94 kB / 422.2 MB, free: 0.9727 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.735e-05/0.08403, allocations: 124 kB / 422.4 MB, free: 0.8516 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002494/0.08428, allocations: 200.2 kB / 422.6 MB, free: 0.6523 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001685/0.08597, allocations: 1.177 MB / 423.7 MB, free: 15.47 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007341/0.0867, allocations: 1.432 MB / 425.2 MB, free: 13.95 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001448/0.08815, allocations: 247.9 kB / 425.4 MB, free: 13.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002082/0.08836, allocations: 287.9 kB / 425.7 MB, free: 13.42 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.0006963/0.08905, allocations: 0.5562 MB / 426.2 MB, free: 12.85 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001869/0.08924, allocations: 167.8 kB / 426.4 MB, free: 12.69 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005182/0.08976, allocations: 0.4923 MB / 426.9 MB, free: 12.18 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.158e-05/0.08977, allocations: 12 kB / 426.9 MB, free: 12.17 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.65e-06/0.08978, allocations: 4 kB / 426.9 MB, free: 12.17 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.151e-06/0.08978, allocations: 3.984 kB / 426.9 MB, free: 12.16 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00264/0.09242, allocations: 2.585 MB / 429.5 MB, free: 9.492 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.43e-06/0.09243, allocations: 4 kB / 429.5 MB, free: 9.488 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003166/0.09274, allocations: 123.8 kB / 429.6 MB, free: 9.367 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002617/0.09301, allocations: 204.8 kB / 429.8 MB, free: 9.16 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.833e-05/0.09304, allocations: 27.92 kB / 429.9 MB, free: 9.133 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005771/0.09362, allocations: 1.214 MB / 431.1 MB, free: 7.82 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.09363, allocations: 8.031 kB / 431.1 MB, free: 7.812 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009239/0.09455, allocations: 1.264 MB / 432.3 MB, free: 6.477 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000213/0.09476, allocations: 261.9 kB / 432.6 MB, free: 6.219 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001553/0.09492, allocations: 19.98 kB / 432.6 MB, free: 6.199 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004122/0.09533, allocations: 23.94 kB / 432.6 MB, free: 6.176 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.645e-05/0.0954, allocations: 55.78 kB / 432.7 MB, free: 6.121 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.846e-05/0.09543, allocations: 31.98 kB / 432.7 MB, free: 6.09 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0007173/0.09615, allocations: 1.005 MB / 433.7 MB, free: 5.082 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.09615, allocations: 0 / 433.7 MB, free: 5.082 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001842/0.09799, allocations: 0.7577 MB / 434.5 MB, free: 4.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.0002247/0.09822, allocations: 146 kB / 434.6 MB, free: 4.176 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001591/0.09981, allocations: 2.042 MB / 436.7 MB, free: 2.133 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001228/0.09993, allocations: 92.53 kB / 436.8 MB, free: 2.031 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002765/0.1002, allocations: 348.7 kB / 437.1 MB, free: 1.672 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009786/0.1012, allocations: 450.6 kB / 437.5 MB, free: 1.234 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004946/0.1061, allocations: 5.452 MB / 443 MB, free: 11.68 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006585/0.1068, allocations: 0.9163 MB / 443.9 MB, free: 10.74 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.000796/0.1076, allocations: 426.1 kB / 444.3 MB, free: 10.32 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005148/0.1081, allocations: 445.2 kB / 444.8 MB, free: 9.883 MB / 426.7 MB Notification: Performance of SimCode: time 1.593e-06/0.1081, allocations: 0 / 444.8 MB, free: 9.883 MB / 426.7 MB Notification: Performance of Templates: time 0.177/0.2851, 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 -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.7372244223952293]