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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001152/0.001152, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00159/0.002742, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009695/0.0009695, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001387/0.002356, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8815/0.8815, allocations: 173.4 MB / 186 MB, free: 7.52 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1738/1.055, allocations: 52.49 MB / 238.5 MB, free: 7.602 MB / 234.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.1556/0.1556, allocations: 32.8 MB / 272 MB, free: 6.273 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0219/0.1775, allocations: 12.54 MB / 284.5 MB, free: 9.688 MB / 282.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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.133e-06/1.133e-06, allocations: 0 / 285.8 MB, free: 8.402 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.14e-05/1.253e-05, allocations: 2.312 kB / 285.8 MB, free: 8.398 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.006774/0.006787, allocations: 8.726 MB / 294.6 MB, free: 15.63 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005249/0.01204, allocations: 3.612 MB / 298.2 MB, free: 12.01 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006777/0.01271, allocations: 59.69 kB / 298.2 MB, free: 11.95 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001679/0.01439, allocations: 1.713 MB / 300 MB, free: 10.23 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002217/0.01661, allocations: 1.668 MB / 301.6 MB, free: 8.555 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007799/0.01739, allocations: 0.5689 MB / 302.2 MB, free: 7.984 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002552/0.01994, allocations: 3.622 MB / 305.8 MB, free: 4.355 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001464/0.02141, allocations: 1.962 MB / 307.8 MB, free: 2.328 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001806/0.02321, allocations: 2.127 MB / 309.9 MB, free: 196 kB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001452/0.02466, allocations: 1.637 MB / 311.5 MB, free: 14.55 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003001/0.02496, allocations: 228 kB / 311.8 MB, free: 14.33 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00117/0.02613, allocations: 1.1 MB / 312.9 MB, free: 13.23 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007969/0.02693, allocations: 1.41 MB / 314.3 MB, free: 11.81 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006202/0.02755, allocations: 0.7749 MB / 315 MB, free: 11.04 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002535/0.03009, allocations: 3.495 MB / 318.5 MB, free: 7.527 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.027e-06/0.0301, allocations: 0 / 318.5 MB, free: 7.527 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.0301, allocations: 0 / 318.5 MB, free: 7.527 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.067e-05/0.03014, allocations: 0 / 318.5 MB, free: 7.527 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: 1170 * Number of variables: 1170 Notification: Performance of Generate backend data structure: time 0.003729/0.03387, allocations: 4.223 MB / 322.8 MB, free: 3.234 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.868e-05/0.0339, allocations: 8.031 kB / 322.8 MB, free: 3.227 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002784/0.03668, allocations: 1.019 MB / 323.8 MB, free: 2.207 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001516/0.0382, allocations: 1.477 MB / 325.3 MB, free: 0.6953 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.287e-05/0.03827, allocations: 164.5 kB / 325.4 MB, free: 0.5312 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002396/0.03851, allocations: 220.2 kB / 325.6 MB, free: 324 kB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1492/0.1877, allocations: 3.82 MB / 329.5 MB, free: 18.02 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.64e-05/0.1878, allocations: 38.62 kB / 329.5 MB, free: 18.02 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002156/0.188, allocations: 110.7 kB / 329.6 MB, free: 18.02 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001432/0.1894, allocations: 1.304 MB / 330.9 MB, free: 18.02 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003398/0.1928, allocations: 1.881 MB / 332.8 MB, free: 17.92 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01326/0.2061, allocations: 24.97 MB / 357.8 MB, free: 15.89 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0014/0.2075, allocations: 0.7897 MB / 358.6 MB, free: 15.63 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002007/0.2077, allocations: 189.7 kB / 358.7 MB, free: 15.57 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002377/0.2101, allocations: 2.224 MB / 361 MB, free: 14.32 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.597e-05/0.2101, allocations: 40.47 kB / 361 MB, free: 14.27 MB / 330.7 MB Notification: Performance of pre-optimization done (n=84): time 1.883e-06/0.2101, allocations: 0 / 361 MB, free: 14.27 MB / 330.7 MB Notification: Performance of matching and sorting (n=101): time 0.007442/0.2175, allocations: 3.484 MB / 364.5 MB, free: 11.83 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.551e-05/0.2176, allocations: 142.8 kB / 364.6 MB, free: 11.66 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001943/0.2195, allocations: 2.838 MB / 367.5 MB, free: 9.312 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.029e-05/0.2196, allocations: 45.67 kB / 367.5 MB, free: 9.266 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001041/0.2206, allocations: 2.617 MB / 370.1 MB, free: 6.805 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002515/0.2209, allocations: 450.3 kB / 370.6 MB, free: 6.387 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007028/0.2216, allocations: 1.01 MB / 371.6 MB, free: 5.484 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.818e-05/0.2216, allocations: 301.1 kB / 371.9 MB, free: 5.188 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008998/0.2225, allocations: 0.6189 MB / 372.5 MB, free: 4.562 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002205/0.2247, allocations: 4.01 MB / 376.5 MB, free: 14.99 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003877/0.2286, allocations: 5.456 MB / 382 MB, free: 8.332 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.706e-05/0.2287, allocations: 36 kB / 382 MB, free: 8.297 MB / 346.7 MB Notification: Performance of matching and sorting (n=684) (initialization): time 0.003746/0.2324, allocations: 3.582 MB / 385.6 MB, free: 4.703 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.895e-05/0.2325, allocations: 57.86 kB / 385.6 MB, free: 4.648 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.08e-05/0.2326, allocations: 128 kB / 385.8 MB, free: 4.523 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002513/0.2328, allocations: 208.3 kB / 386 MB, free: 4.316 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001917/0.2347, allocations: 1.306 MB / 387.3 MB, free: 3.008 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000773/0.2355, allocations: 1.438 MB / 388.7 MB, free: 1.484 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001585/0.2371, allocations: 251.8 kB / 388.9 MB, free: 1.238 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000221/0.2373, allocations: 291.1 kB / 389.2 MB, free: 0.957 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 563 * Number of states: 0 () * Number of discrete variables: 29 (Distance1.arrow.arrowLine.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 (659): * Single equations (assignments): 655 * 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.0007092/0.238, allocations: 0.564 MB / 389.8 MB, free: 388 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001998/0.2382, allocations: 167.8 kB / 390 MB, free: 220 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006165/0.2388, allocations: 0.4934 MB / 390.5 MB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.288e-05/0.2388, allocations: 8 kB / 390.5 MB, free: 15.72 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.2388, allocations: 4 kB / 390.5 MB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/0.2389, allocations: 3.984 kB / 390.5 MB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00279/0.2416, allocations: 2.612 MB / 393.1 MB, free: 13.45 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.36e-05/0.2417, allocations: 11.98 kB / 393.1 MB, free: 13.44 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003689/0.242, allocations: 148.2 kB / 393.2 MB, free: 13.3 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002211/0.2422, allocations: 254 kB / 393.5 MB, free: 13.05 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002806/0.2425, allocations: 206.7 kB / 393.7 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.922e-05/0.2426, allocations: 23.42 kB / 393.7 MB, free: 12.82 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006038/0.2432, allocations: 1.224 MB / 394.9 MB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.538e-06/0.2432, allocations: 4 kB / 394.9 MB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001002/0.2442, allocations: 1.271 MB / 396.2 MB, free: 10.17 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001479/0.2443, allocations: 23.94 kB / 396.2 MB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004366/0.2448, allocations: 16 kB / 396.2 MB, free: 10.13 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.427e-05/0.2448, allocations: 63.92 kB / 396.3 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.008e-05/0.2449, allocations: 27.94 kB / 396.3 MB, free: 10.04 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007798/0.2457, allocations: 1.01 MB / 397.3 MB, free: 9.152 MB / 362.7 MB Notification: Performance of sort global known variables: time 4e-08/0.2457, allocations: 4 kB / 397.4 MB, free: 9.148 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001949/0.2476, allocations: 0.785 MB / 398.1 MB, free: 8.363 MB / 362.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.0002582/0.2479, allocations: 155.3 kB / 398.3 MB, free: 8.207 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002057/0.2499, allocations: 2.171 MB / 400.5 MB, free: 6.305 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 0.000138/0.2501, allocations: 96.16 kB / 400.6 MB, free: 6.203 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003689/0.2504, allocations: 399.4 kB / 400.9 MB, free: 5.809 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001753/0.2522, allocations: 2.27 MB / 403.2 MB, free: 3.246 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009381/0.2616, allocations: 5.664 MB / 408.9 MB, free: 13.51 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007139/0.2623, allocations: 0.9423 MB / 409.8 MB, free: 12.55 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0008282/0.2631, allocations: 418.2 kB / 410.2 MB, free: 12.14 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005314/0.2636, allocations: 453.1 kB / 410.7 MB, free: 11.7 MB / 378.7 MB Notification: Performance of SimCode: time 1.292e-06/0.2636, allocations: 0 / 410.7 MB, free: 11.7 MB / 378.7 MB Notification: Performance of Templates: time 0.0313/0.2949, allocations: 20.3 MB / 431 MB, free: 7.539 MB / 394.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.2087607458233833]