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.001553/0.001553, 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.001303/0.001303, 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 1.009/1.009, 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.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.248/0.248, allocations: 34.27 MB / 296.1 MB, free: 0.6445 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.583e-06/1.583e-06, allocations: 0 / 325.3 MB, free: 7.617 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.392e-05/1.55e-05, allocations: 3.188 kB / 325.3 MB, free: 7.613 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.006731/0.006746, allocations: 8.556 MB / 333.8 MB, free: 15.01 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.004273/0.01102, allocations: 3.567 MB / 337.4 MB, free: 11.43 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004436/0.01146, allocations: 55.75 kB / 337.5 MB, free: 11.38 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001838/0.0133, allocations: 1.752 MB / 339.2 MB, free: 9.621 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001856/0.01516, allocations: 1.641 MB / 340.8 MB, free: 7.973 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000638/0.01579, allocations: 0.6118 MB / 341.5 MB, free: 7.359 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002482/0.01828, allocations: 3.957 MB / 345.4 MB, free: 3.398 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001405/0.01968, allocations: 2.102 MB / 347.5 MB, free: 1.227 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001494/0.02118, allocations: 2.125 MB / 349.6 MB, free: 15.1 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001253/0.02243, allocations: 1.629 MB / 351.3 MB, free: 13.46 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002127/0.02264, allocations: 224 kB / 351.5 MB, free: 13.25 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001011/0.02365, allocations: 1.08 MB / 352.6 MB, free: 12.16 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008491/0.0245, allocations: 1.508 MB / 354.1 MB, free: 10.65 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005843/0.02508, allocations: 0.9188 MB / 355 MB, free: 9.73 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002469/0.02755, allocations: 3.702 MB / 358.7 MB, free: 6.016 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.02756, allocations: 0 / 358.7 MB, free: 6.016 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.02756, allocations: 0 / 358.7 MB, free: 6.016 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.212e-05/0.02759, allocations: 0 / 358.7 MB, free: 6.016 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.003459/0.03105, allocations: 3.422 MB / 362.1 MB, free: 2.543 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.035e-05/0.03108, allocations: 8.031 kB / 362.1 MB, free: 2.535 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002696/0.03378, allocations: 0.9801 MB / 363.1 MB, free: 1.555 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001517/0.03529, allocations: 1.465 MB / 364.6 MB, free: 52 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.258e-05/0.03538, allocations: 164.5 kB / 364.7 MB, free: 15.89 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002354/0.03561, allocations: 220.2 kB / 365 MB, free: 15.67 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003172/0.03878, allocations: 3.779 MB / 368.7 MB, free: 11.25 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.537e-05/0.03884, allocations: 35.69 kB / 368.8 MB, free: 11.21 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001748/0.03901, allocations: 111.9 kB / 368.9 MB, free: 11.11 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001167/0.04018, allocations: 1.336 MB / 370.2 MB, free: 9.766 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002271/0.04245, allocations: 1.856 MB / 372.1 MB, free: 7.879 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01344/0.0559, allocations: 24.73 MB / 396.8 MB, free: 14.17 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001475/0.05737, allocations: 0.8029 MB / 397.6 MB, free: 13.32 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002248/0.05759, allocations: 188.5 kB / 397.8 MB, free: 13.13 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002357/0.05995, allocations: 2.211 MB / 400 MB, free: 10.89 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.779e-05/0.05998, allocations: 50.5 kB / 400 MB, free: 10.83 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 1.884e-06/0.05998, allocations: 4 kB / 400 MB, free: 10.83 MB / 378.7 MB Notification: Performance of matching and sorting (n=101): time 0.00757/0.06755, allocations: 3.502 MB / 403.5 MB, free: 7.266 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.949e-05/0.06761, allocations: 188.4 kB / 403.7 MB, free: 7.039 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001827/0.06944, allocations: 2.814 MB / 406.5 MB, free: 4.199 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.335e-05/0.06948, allocations: 37.7 kB / 406.6 MB, free: 4.156 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009384/0.07042, allocations: 2.576 MB / 409.2 MB, free: 1.551 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002134/0.07063, allocations: 452.8 kB / 409.6 MB, free: 1.105 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007506/0.07138, allocations: 1.005 MB / 410.6 MB, free: 92 kB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.761e-05/0.07145, allocations: 305.1 kB / 410.9 MB, free: 15.79 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008158/0.07227, allocations: 0.6149 MB / 411.5 MB, free: 15.17 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00208/0.07435, allocations: 3.991 MB / 415.5 MB, free: 9.414 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00295/0.0773, allocations: 5.027 MB / 420.5 MB, free: 2.652 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.937e-05/0.07732, allocations: 36 kB / 420.6 MB, free: 2.617 MB / 394.7 MB Notification: Performance of matching and sorting (n=681) (initialization): time 0.003184/0.08051, allocations: 3.553 MB / 424.1 MB, free: 15.05 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.705e-05/0.08056, allocations: 68.84 kB / 424.2 MB, free: 14.98 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.389e-05/0.08062, allocations: 120 kB / 424.3 MB, free: 14.87 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002319/0.08085, allocations: 203.6 kB / 424.5 MB, free: 14.66 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001751/0.0826, allocations: 1.216 MB / 425.7 MB, free: 13.45 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007346/0.08334, allocations: 1.436 MB / 427.2 MB, free: 11.91 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001445/0.08478, allocations: 243.7 kB / 427.4 MB, free: 11.68 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002146/0.085, allocations: 292 kB / 427.7 MB, free: 11.39 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.0006474/0.08564, allocations: 0.5641 MB / 428.2 MB, free: 10.81 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002016/0.08585, allocations: 151.8 kB / 428.4 MB, free: 10.66 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000599/0.08644, allocations: 0.4962 MB / 428.9 MB, free: 10.15 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.077e-05/0.08645, allocations: 12 kB / 428.9 MB, free: 10.14 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.08646, allocations: 4 kB / 428.9 MB, free: 10.14 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.702e-06/0.08647, allocations: 7.984 kB / 428.9 MB, free: 10.13 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00274/0.08921, allocations: 2.585 MB / 431.5 MB, free: 7.457 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/0.08921, allocations: 11.97 kB / 431.5 MB, free: 7.445 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003579/0.08957, allocations: 131.8 kB / 431.6 MB, free: 7.316 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002817/0.08985, allocations: 200.4 kB / 431.8 MB, free: 7.113 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.205e-05/0.08989, allocations: 19.98 kB / 431.9 MB, free: 7.094 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006345/0.09053, allocations: 1.213 MB / 433.1 MB, free: 5.781 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.09053, allocations: 4 kB / 433.1 MB, free: 5.777 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009521/0.09148, allocations: 1.273 MB / 434.3 MB, free: 4.43 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002133/0.0917, allocations: 250 kB / 434.6 MB, free: 4.184 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001584/0.09185, allocations: 20 kB / 434.6 MB, free: 4.164 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000436/0.09229, allocations: 24.16 kB / 434.6 MB, free: 4.141 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.722e-05/0.09238, allocations: 63.77 kB / 434.7 MB, free: 4.078 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.305e-05/0.09242, allocations: 27.98 kB / 434.7 MB, free: 4.051 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0008261/0.09325, allocations: 1.001 MB / 435.7 MB, free: 3.047 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.09325, allocations: 0 / 435.7 MB, free: 3.047 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002036/0.09528, allocations: 0.7577 MB / 436.5 MB, free: 2.289 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.000257/0.09554, allocations: 148.1 kB / 436.6 MB, free: 2.137 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001774/0.09731, allocations: 2.041 MB / 438.7 MB, free: 100 kB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001425/0.09746, allocations: 96.2 kB / 438.8 MB, free: 15.99 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003166/0.09777, allocations: 346.3 kB / 439.1 MB, free: 15.64 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001081/0.09885, allocations: 469.8 kB / 439.6 MB, free: 15.18 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005126/0.104, allocations: 5.448 MB / 445 MB, free: 9.629 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006818/0.1047, allocations: 0.9162 MB / 445.9 MB, free: 8.695 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.000823/0.1055, allocations: 422.2 kB / 446.3 MB, free: 8.277 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005627/0.106, allocations: 441.2 kB / 446.8 MB, free: 7.844 MB / 426.7 MB Notification: Performance of SimCode: time 8.62e-07/0.106, allocations: 0 / 446.8 MB, free: 7.844 MB / 426.7 MB Notification: Performance of Templates: time 0.1579/0.264, allocations: 21.18 MB / 467.9 MB, free: 120.5 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 -s gbode -gbm=radauIIA3 -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.7689655320718884]