Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008247/0.0008247, allocations: 91.61 kB / 21.19 MB, free: 3.383 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001007/0.001007, allocations: 160.5 kB / 24.56 MB, free: 24 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9262/0.9262, allocations: 177 MB / 204.8 MB, free: 5.582 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2853/0.2853, allocations: 34.87 MB / 296.3 MB, free: 0.543 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.322e-06/1.322e-06, allocations: 3.938 kB / 378.7 MB, free: 2.094 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.332e-05/2.465e-05, allocations: 2.875 kB / 378.8 MB, free: 2.09 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.007852/0.007876, allocations: 8.692 MB / 387.4 MB, free: 9.355 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.006397/0.01427, allocations: 3.492 MB / 390.9 MB, free: 5.852 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009563/0.01523, allocations: 59.69 kB / 391 MB, free: 5.793 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002217/0.01745, allocations: 1.775 MB / 392.8 MB, free: 4.012 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00341/0.02086, allocations: 1.649 MB / 394.4 MB, free: 2.355 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001037/0.02189, allocations: 0.6157 MB / 395 MB, free: 1.738 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.003575/0.02547, allocations: 3.961 MB / 399 MB, free: 13.77 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002664/0.02813, allocations: 2.145 MB / 401.1 MB, free: 11.57 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002618/0.03075, allocations: 2.175 MB / 403.3 MB, free: 9.391 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002169/0.03292, allocations: 1.707 MB / 405 MB, free: 7.68 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004026/0.03332, allocations: 227.9 kB / 405.2 MB, free: 7.457 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001527/0.03485, allocations: 1.049 MB / 406.3 MB, free: 6.406 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001278/0.03613, allocations: 1.515 MB / 407.8 MB, free: 4.887 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007825/0.03691, allocations: 0.911 MB / 408.7 MB, free: 3.973 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00305/0.03996, allocations: 3.698 MB / 412.4 MB, free: 268 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.84e-06/0.03996, allocations: 0 / 412.4 MB, free: 268 kB / 378.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.03996, allocations: 0 / 412.4 MB, free: 268 kB / 378.7 MB Notification: Performance of Transformations before backend: time 3.227e-05/0.04, allocations: 0 / 412.4 MB, free: 268 kB / 378.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.004263/0.04426, allocations: 4.053 MB / 416.5 MB, free: 12.14 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.885e-05/0.0443, allocations: 16.03 kB / 416.5 MB, free: 12.12 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007204/0.0515, allocations: 2.682 MB / 419.2 MB, free: 9.438 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002046/0.05355, allocations: 1.793 MB / 421 MB, free: 7.609 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.536e-05/0.05364, allocations: 168.5 kB / 421.1 MB, free: 7.441 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002678/0.05391, allocations: 212.2 kB / 421.3 MB, free: 7.234 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004801/0.05871, allocations: 4.608 MB / 425.9 MB, free: 1.77 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.967e-05/0.05877, allocations: 39.64 kB / 426 MB, free: 1.73 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001821/0.05895, allocations: 107.9 kB / 426.1 MB, free: 1.625 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001242/0.0602, allocations: 1.492 MB / 427.6 MB, free: 136 kB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003783/0.06398, allocations: 2.249 MB / 429.8 MB, free: 13.88 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1723/0.2363, allocations: 35.01 MB / 464.8 MB, free: 62.35 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001762/0.2381, allocations: 0.8644 MB / 465.7 MB, free: 62.21 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003078/0.2384, allocations: 278.9 kB / 466 MB, free: 62.16 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002444/0.2408, allocations: 2.487 MB / 468.5 MB, free: 61.23 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.334e-05/0.2408, allocations: 46.03 kB / 468.5 MB, free: 61.18 MB / 410.7 MB Notification: Performance of pre-optimization done (n=84): time 2.374e-06/0.2408, allocations: 0 / 468.5 MB, free: 61.18 MB / 410.7 MB Notification: Performance of matching and sorting (n=101): time 0.009317/0.2502, allocations: 6.292 MB / 474.8 MB, free: 58.94 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.521e-05/0.2502, allocations: 193.6 kB / 475 MB, free: 58.71 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002378/0.2526, allocations: 3.192 MB / 478.2 MB, free: 57.95 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.387e-05/0.2526, allocations: 43.72 kB / 478.2 MB, free: 57.91 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001044/0.2537, allocations: 2.877 MB / 481.1 MB, free: 55.79 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002057/0.2539, allocations: 469.9 kB / 481.6 MB, free: 55.47 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007174/0.2546, allocations: 1.147 MB / 482.7 MB, free: 54.85 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.525e-05/0.2546, allocations: 476.8 kB / 483.2 MB, free: 54.38 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007132/0.2554, allocations: 0.5022 MB / 483.7 MB, free: 54.31 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002081/0.2574, allocations: 5.671 MB / 489.3 MB, free: 47.26 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003326/0.2608, allocations: 6.746 MB / 496.1 MB, free: 39.86 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.573e-05/0.2608, allocations: 37.41 kB / 496.1 MB, free: 39.86 MB / 410.7 MB Notification: Performance of matching and sorting (n=681) (initialization): time 0.004202/0.265, allocations: 4.471 MB / 0.4889 GB, free: 38.11 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.539e-05/0.2651, allocations: 58.12 kB / 0.4889 GB, free: 38.11 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001207/0.2652, allocations: 122 kB / 0.489 GB, free: 38.11 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003463/0.2655, allocations: 200.7 kB / 0.4892 GB, free: 38.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002049/0.2676, allocations: 1.214 MB / 0.4904 GB, free: 37.95 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008191/0.2684, allocations: 1.981 MB / 0.4923 GB, free: 36.13 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001754/0.2702, allocations: 326.1 kB / 0.4927 GB, free: 36.02 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003529/0.2705, allocations: 332.7 kB / 0.493 GB, free: 35.98 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.0007585/0.2713, allocations: 0.5973 MB / 0.4936 GB, free: 35.5 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002731/0.2715, allocations: 301.2 kB / 0.4938 GB, free: 35.33 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007057/0.2722, allocations: 0.5978 MB / 0.4944 GB, free: 35.07 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.554e-05/0.2723, allocations: 12.19 kB / 0.4944 GB, free: 35.07 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.2723, allocations: 1.375 kB / 0.4944 GB, free: 35.07 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.295e-06/0.2723, allocations: 8.938 kB / 0.4945 GB, free: 35.07 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003872/0.2761, allocations: 3.149 MB / 0.4975 GB, free: 33.58 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.196e-06/0.2762, allocations: 3.375 kB / 0.4975 GB, free: 33.58 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004119/0.2766, allocations: 159.9 kB / 0.4977 GB, free: 33.57 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000149/0.2767, allocations: 49.84 kB / 0.4977 GB, free: 33.55 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.549e-05/0.2768, allocations: 17.84 kB / 0.4977 GB, free: 33.54 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005242/0.2773, allocations: 1.762 MB / 0.4995 GB, free: 31.78 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.909e-06/0.2773, allocations: 7.5 kB / 0.4995 GB, free: 31.77 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001354/0.2786, allocations: 1.6 MB / 0.501 GB, free: 30.73 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002368/0.2789, allocations: 271 kB / 0.5013 GB, free: 30.55 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001657/0.279, allocations: 16.34 kB / 0.5013 GB, free: 30.54 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005089/0.2796, allocations: 78.88 kB / 0.5014 GB, free: 30.53 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.408e-05/0.2797, allocations: 71.94 kB / 0.5015 GB, free: 30.52 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.408e-05/0.2797, allocations: 28.25 kB / 0.5015 GB, free: 30.51 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001416/0.2811, allocations: 1.351 MB / 0.5028 GB, free: 30.04 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2811, allocations: 0 / 0.5028 GB, free: 30.04 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002195/0.2833, allocations: 0.7571 MB / 0.5035 GB, free: 29.95 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.0003279/0.2836, allocations: 164.1 kB / 0.5037 GB, free: 29.83 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002988/0.2866, allocations: 2.394 MB / 0.506 GB, free: 28.93 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.5e-06/0.2866, allocations: 6.781 kB / 0.506 GB, free: 28.93 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003958/0.287, allocations: 473.5 kB / 0.5065 GB, free: 28.68 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001043/0.2881, allocations: 303 kB / 0.5068 GB, free: 28.55 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00564/0.2937, allocations: 5.533 MB / 0.5122 GB, free: 25.7 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006244/0.2943, allocations: 0.9293 MB / 0.5131 GB, free: 25.39 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001701/0.296, allocations: 1.409 MB / 0.5145 GB, free: 25.26 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002983/0.2963, allocations: 185.7 kB / 0.5146 GB, free: 25.24 MB / 410.7 MB Notification: Performance of SimCode: time 1.523e-06/0.2963, allocations: 0 / 0.5146 GB, free: 25.24 MB / 410.7 MB Notification: Performance of Templates: time 0.02704/0.3234, allocations: 19.75 MB / 0.5339 GB, free: 10.48 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_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.8421171521767974]