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.001477/0.001477, allocations: 92.31 kB / 20.96 MB, free: 3.477 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.001544/0.001544, allocations: 161.7 kB / 24.27 MB, free: 176 kB / 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.546/1.546, allocations: 177.1 MB / 204.6 MB, free: 5.586 MB / 186.7 MB " [Timeout remaining time 178] 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.3431/0.3431, allocations: 32.8 MB / 293.9 MB, free: 1.23 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.623e-06/1.623e-06, allocations: 0 / 375.2 MB, free: 5.004 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.975e-05/3.137e-05, allocations: 6.25 kB / 375.3 MB, free: 4.996 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01235/0.01238, allocations: 7.923 MB / 383.2 MB, free: 13.03 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.00816/0.02054, allocations: 3.372 MB / 386.5 MB, free: 9.648 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00129/0.02183, allocations: 59.69 kB / 386.6 MB, free: 9.59 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003928/0.02576, allocations: 1.732 MB / 388.3 MB, free: 7.852 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004487/0.03024, allocations: 1.641 MB / 390 MB, free: 6.203 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001495/0.03174, allocations: 0.6118 MB / 390.6 MB, free: 5.59 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.006067/0.03781, allocations: 3.964 MB / 394.6 MB, free: 1.621 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003237/0.04104, allocations: 2.137 MB / 396.7 MB, free: 15.43 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002916/0.04396, allocations: 1.68 MB / 398.4 MB, free: 13.74 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002739/0.0467, allocations: 1.703 MB / 400.1 MB, free: 12.04 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004891/0.04719, allocations: 232 kB / 400.3 MB, free: 11.81 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001992/0.04918, allocations: 1.049 MB / 401.4 MB, free: 10.76 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001866/0.05105, allocations: 1.515 MB / 402.9 MB, free: 9.238 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001387/0.05243, allocations: 0.9149 MB / 403.8 MB, free: 8.32 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007543/0.05998, allocations: 5.483 MB / 409.3 MB, free: 2.82 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.77e-06/0.05998, allocations: 0 / 409.3 MB, free: 2.82 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.05998, allocations: 0 / 409.3 MB, free: 2.82 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001294/0.06011, allocations: 0 / 409.3 MB, free: 2.82 MB / 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.008441/0.06855, allocations: 3.72 MB / 413 MB, free: 15.04 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/0.06859, allocations: 12.03 kB / 413 MB, free: 15.03 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01613/0.08473, allocations: 2.772 MB / 415.8 MB, free: 12.25 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00563/0.09036, allocations: 2.126 MB / 417.9 MB, free: 10.09 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001735/0.09053, allocations: 164.5 kB / 418.1 MB, free: 9.93 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007152/0.09125, allocations: 220.2 kB / 418.3 MB, free: 9.715 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01431/0.1056, allocations: 7.511 MB / 425.8 MB, free: 1.566 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000108/0.1057, allocations: 43.64 kB / 425.8 MB, free: 1.523 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003433/0.106, allocations: 103.9 kB / 425.9 MB, free: 1.422 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002763/0.1088, allocations: 1.55 MB / 427.5 MB, free: 15.87 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01274/0.1215, allocations: 6.342 MB / 433.8 MB, free: 9.52 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2014/0.3229, allocations: 28.68 MB / 462.5 MB, free: 79 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004108/0.327, allocations: 1.713 MB / 464.2 MB, free: 78.5 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001283/0.3283, allocations: 1.06 MB / 465.3 MB, free: 78.09 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003399/0.3286, allocations: 105 kB / 465.4 MB, free: 78.07 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.333e-05/0.3287, allocations: 51.31 kB / 465.4 MB, free: 78.03 MB / 410.7 MB Notification: Performance of pre-optimization done (n=108): time 4.438e-06/0.3287, allocations: 0 / 465.4 MB, free: 78.03 MB / 410.7 MB Notification: Performance of matching and sorting (n=132): time 0.05119/0.3798, allocations: 19 MB / 484.4 MB, free: 73.3 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.207e-05/0.3799, allocations: 195.7 kB / 484.6 MB, free: 73.08 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004672/0.3846, allocations: 3.436 MB / 488.1 MB, free: 71.86 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002663/0.3849, allocations: 49.86 kB / 488.1 MB, free: 71.8 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001519/0.3864, allocations: 2.648 MB / 490.8 MB, free: 69.87 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006739/0.3871, allocations: 0.541 MB / 491.3 MB, free: 69.48 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001451/0.3885, allocations: 1.075 MB / 492.4 MB, free: 68.95 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.923e-05/0.3886, allocations: 305.1 kB / 492.7 MB, free: 68.64 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002768/0.3913, allocations: 1.936 MB / 494.6 MB, free: 68.01 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003926/0.3952, allocations: 5.327 MB / 499.9 MB, free: 62.8 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006739/0.402, allocations: 7.755 MB / 0.4958 GB, free: 56.33 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001104/0.4021, allocations: 34.62 kB / 0.4958 GB, free: 56.33 MB / 410.7 MB Notification: Performance of matching and sorting (n=692) (initialization): time 0.01112/0.4132, allocations: 7.708 MB / 0.5033 GB, free: 51.49 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.112e-05/0.4133, allocations: 56 kB / 0.5034 GB, free: 51.43 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001067/0.4134, allocations: 116 kB / 0.5035 GB, free: 51.32 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001761/0.4152, allocations: 0.6812 MB / 0.5042 GB, free: 50.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003637/0.4188, allocations: 1.241 MB / 0.5054 GB, free: 49.73 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003911/0.4227, allocations: 3.955 MB / 0.5092 GB, free: 46.02 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004679/0.4274, allocations: 359.5 kB / 0.5096 GB, free: 45.66 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005872/0.428, allocations: 331.4 kB / 0.5099 GB, free: 45.34 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 537 * 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 (657): * Single equations (assignments): 653 * 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,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002103/0.4301, allocations: 1.693 MB / 0.5116 GB, free: 43.64 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006937/0.4308, allocations: 314.3 kB / 0.5119 GB, free: 43.33 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003703/0.4345, allocations: 2.506 MB / 0.5143 GB, free: 40.81 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.181e-05/0.4345, allocations: 15.94 kB / 0.5143 GB, free: 40.79 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.209e-05/0.4345, allocations: 4.938 kB / 0.5143 GB, free: 40.79 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.061e-05/0.4345, allocations: 7.969 kB / 0.5143 GB, free: 40.78 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009166/0.4437, allocations: 5.565 MB / 0.5198 GB, free: 35.19 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.338e-05/0.4437, allocations: 4 kB / 0.5198 GB, free: 35.18 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001148/0.4448, allocations: 230.8 kB / 0.52 GB, free: 34.96 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001457/0.4463, allocations: 0.509 MB / 0.5205 GB, free: 34.45 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001394/0.4464, allocations: 20 kB / 0.5205 GB, free: 34.43 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00318/0.4496, allocations: 3.332 MB / 0.5238 GB, free: 31 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.4496, allocations: 3.984 kB / 0.5238 GB, free: 31 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00598/0.4556, allocations: 4.928 MB / 0.5286 GB, free: 26.04 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008953/0.4565, allocations: 274 kB / 0.5288 GB, free: 25.77 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006154/0.4571, allocations: 19.98 kB / 0.5289 GB, free: 25.75 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001669/0.4588, allocations: 135.8 kB / 0.529 GB, free: 25.61 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002246/0.459, allocations: 68.52 kB / 0.5291 GB, free: 25.55 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001051/0.4591, allocations: 39.75 kB / 0.5291 GB, free: 25.51 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002661/0.4618, allocations: 2.003 MB / 0.5311 GB, free: 23.51 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.4618, allocations: 4.062 kB / 0.5311 GB, free: 23.5 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004356/0.4661, allocations: 0.8905 MB / 0.5319 GB, free: 22.61 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * 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 (102): * Single equations (assignments): 98 * 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,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004388/0.4666, allocations: 162.7 kB / 0.5321 GB, free: 22.45 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005667/0.4722, allocations: 4.379 MB / 0.5364 GB, free: 18.09 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.626e-06/0.4722, allocations: 0 / 0.5364 GB, free: 18.09 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001442/0.4737, allocations: 1.254 MB / 0.5376 GB, free: 16.82 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002449/0.4761, allocations: 325.7 kB / 0.5379 GB, free: 16.52 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0125/0.4886, allocations: 7.418 MB / 0.5451 GB, free: 9.051 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003135/0.4918, allocations: 2.077 MB / 0.5472 GB, free: 6.949 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003561/0.4953, allocations: 1.684 MB / 0.5488 GB, free: 5.258 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007519/0.4961, allocations: 192.5 kB / 0.549 GB, free: 5.07 MB / 410.7 MB Notification: Performance of SimCode: time 1.142e-06/0.4961, allocations: 4 kB / 0.549 GB, free: 5.066 MB / 410.7 MB Notification: Performance of Templates: time 0.05792/0.554, allocations: 25.56 MB / 0.574 GB, free: 11.92 MB / 442.7 MB " [Timeout remaining time 659] 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.615901141078211]