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.001569/0.001569, allocations: 106.2 kB / 19.81 MB, free: 2.516 MB / 14.72 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.002159/0.002159, allocations: 194.2 kB / 22.98 MB, free: 5.617 MB / 14.72 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 1.481/1.481, allocations: 225.6 MB / 251.6 MB, free: 13.34 MB / 206.1 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.2431/0.2431, allocations: 44.93 MB / 351.6 MB, free: 12.24 MB / 286.1 MB " [Timeout remaining time 179] 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 0.001939/0.001939, allocations: 71.88 kB / 495.2 MB, free: 1.883 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4/0.402, allocations: 64.24 MB / 0.5464 GB, free: 13.23 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01229/0.4143, allocations: 9.115 MB / 0.5553 GB, free: 6.121 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0105/0.4248, allocations: 3.594 MB / 0.5588 GB, free: 3.129 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002635/0.4274, allocations: 55.81 kB / 0.5588 GB, free: 3.074 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004808/0.4322, allocations: 1.693 MB / 0.5605 GB, free: 1.375 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006563/0.4388, allocations: 1.646 MB / 0.5621 GB, free: 15.73 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00185/0.4406, allocations: 0.5614 MB / 0.5626 GB, free: 15.16 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006707/0.4473, allocations: 3.572 MB / 0.5661 GB, free: 11.58 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002847/0.4502, allocations: 1.65 MB / 0.5677 GB, free: 9.887 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00257/0.4527, allocations: 1.121 MB / 0.5688 GB, free: 8.762 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003585/0.4563, allocations: 1.694 MB / 0.5705 GB, free: 7.062 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008904/0.4572, allocations: 224 kB / 0.5707 GB, free: 6.844 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002973/0.4602, allocations: 1.155 MB / 0.5718 GB, free: 5.688 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002178/0.4624, allocations: 1.484 MB / 0.5733 GB, free: 4.199 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0027/0.4651, allocations: 1.666 MB / 0.5749 GB, free: 2.523 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009141/0.4742, allocations: 5.56 MB / 0.5803 GB, free: 12.94 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.034e-06/0.4742, allocations: 0 / 0.5803 GB, free: 12.94 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.4742, allocations: 0 / 0.5803 GB, free: 12.94 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002078/0.4744, allocations: 4 kB / 0.5803 GB, free: 12.94 MB / 430.1 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.0118/0.4862, allocations: 3.831 MB / 0.5841 GB, free: 9.031 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.167e-05/0.4863, allocations: 12.03 kB / 0.5841 GB, free: 9.02 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01535/0.5016, allocations: 2.385 MB / 0.5864 GB, free: 6.629 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006199/0.5078, allocations: 2.234 MB / 0.5886 GB, free: 4.344 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001723/0.508, allocations: 168.5 kB / 0.5888 GB, free: 4.176 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008412/0.5088, allocations: 216 kB / 0.589 GB, free: 3.965 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01416/0.523, allocations: 7.595 MB / 0.5964 GB, free: 11.75 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001305/0.5231, allocations: 31.75 kB / 0.5964 GB, free: 11.71 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003877/0.5235, allocations: 107.9 kB / 0.5965 GB, free: 11.61 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002818/0.5263, allocations: 1.605 MB / 0.5981 GB, free: 10 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01347/0.5398, allocations: 6.472 MB / 0.6044 GB, free: 3.523 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04195/0.5818, allocations: 30.59 MB / 0.6343 GB, free: 3.992 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004738/0.5865, allocations: 2.167 MB / 0.6364 GB, free: 1.676 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001549/0.588, allocations: 1.047 MB / 0.6374 GB, free: 0.6172 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004259/0.5885, allocations: 323.5 kB / 0.6377 GB, free: 252 kB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.435e-05/0.5885, allocations: 54.88 kB / 0.6378 GB, free: 188 kB / 478.1 MB Notification: Performance of pre-optimization done (n=108): time 4.699e-06/0.5885, allocations: 0 / 0.6378 GB, free: 188 kB / 478.1 MB Notification: Performance of matching and sorting (n=132): time 0.03592/0.6245, allocations: 12.05 MB / 0.6496 GB, free: 4.004 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001326/0.6246, allocations: 196.5 kB / 0.6497 GB, free: 3.77 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005457/0.63, allocations: 3.669 MB / 0.6533 GB, free: 104 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002921/0.6303, allocations: 45.7 kB / 0.6534 GB, free: 52 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002466/0.6328, allocations: 2.69 MB / 0.656 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008401/0.6336, allocations: 0.5583 MB / 0.6565 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001554/0.6352, allocations: 1.092 MB / 0.6576 GB, free: 11.67 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001473/0.6353, allocations: 301.1 kB / 0.6579 GB, free: 11.38 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002713/0.6381, allocations: 1.74 MB / 0.6596 GB, free: 9.629 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005659/0.6437, allocations: 5.111 MB / 0.6646 GB, free: 2.824 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01076/0.6545, allocations: 7.403 MB / 0.6718 GB, free: 9.754 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001549/0.6546, allocations: 32 kB / 0.6718 GB, free: 9.723 MB / 0.5137 GB Notification: Performance of matching and sorting (n=697) (initialization): time 0.01634/0.671, allocations: 7.09 MB / 0.6788 GB, free: 2.625 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001549/0.6711, allocations: 56 kB / 0.6788 GB, free: 2.57 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002544/0.6714, allocations: 124 kB / 0.6789 GB, free: 2.449 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001984/0.6734, allocations: 0.6409 MB / 0.6796 GB, free: 1.805 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004371/0.6777, allocations: 1.224 MB / 0.6808 GB, free: 0.5781 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005515/0.6833, allocations: 4.06 MB / 0.6847 GB, free: 12.38 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004183/0.6874, allocations: 307.6 kB / 0.685 GB, free: 12.07 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009993/0.6884, allocations: 332 kB / 0.6853 GB, free: 11.75 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 542 * 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 (662): * Single equations (assignments): 658 * 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.003816/0.6922, allocations: 1.732 MB / 0.687 GB, free: 10 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008228/0.6931, allocations: 317.8 kB / 0.6873 GB, free: 9.691 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004537/0.6976, allocations: 2.088 MB / 0.6894 GB, free: 7.594 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.59e-05/0.6976, allocations: 19.88 kB / 0.6894 GB, free: 7.574 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.49e-05/0.6977, allocations: 4 kB / 0.6894 GB, free: 7.57 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.711e-05/0.6977, allocations: 7.969 kB / 0.6894 GB, free: 7.562 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01224/0.7099, allocations: 5.662 MB / 0.6949 GB, free: 1.809 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.336e-05/0.7099, allocations: 0 / 0.6949 GB, free: 1.809 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001003/0.7109, allocations: 199.7 kB / 0.6951 GB, free: 1.613 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001408/0.7123, allocations: 488.2 kB / 0.6956 GB, free: 1.133 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001624/0.7125, allocations: 27.98 kB / 0.6956 GB, free: 1.105 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004417/0.7169, allocations: 3.437 MB / 0.699 GB, free: 13.52 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.7169, allocations: 4.062 kB / 0.699 GB, free: 13.52 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006827/0.7238, allocations: 4.196 MB / 0.7031 GB, free: 9.293 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001103/0.7249, allocations: 378.8 kB / 0.7034 GB, free: 8.902 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00082/0.7257, allocations: 20 kB / 0.7035 GB, free: 8.883 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001787/0.7275, allocations: 67.91 kB / 0.7035 GB, free: 8.816 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002806/0.7277, allocations: 84.44 kB / 0.7036 GB, free: 8.734 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001199/0.7279, allocations: 35.98 kB / 0.7036 GB, free: 8.699 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005624/0.7335, allocations: 2.284 MB / 0.7059 GB, free: 6.426 MB / 0.545 GB Notification: Performance of sort global known variables: time 8.1e-08/0.7335, allocations: 0 / 0.7059 GB, free: 6.426 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006405/0.7399, allocations: 0.8123 MB / 0.7067 GB, free: 5.617 MB / 0.545 GB 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.0009709/0.7409, allocations: 151 kB / 0.7068 GB, free: 5.461 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.00985/0.7507, allocations: 3.984 MB / 0.7107 GB, free: 1.488 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.179e-05/0.7507, allocations: 0 / 0.7107 GB, free: 1.488 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002338/0.7531, allocations: 1.056 MB / 0.7117 GB, free: 432 kB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003881/0.7569, allocations: 363.1 kB / 0.7121 GB, free: 72 kB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01703/0.774, allocations: 7.361 MB / 0.7193 GB, free: 8.656 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004794/0.7788, allocations: 2.683 MB / 0.7219 GB, free: 5.949 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004759/0.7835, allocations: 1.702 MB / 0.7235 GB, free: 4.242 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009241/0.7845, allocations: 207.4 kB / 0.7237 GB, free: 4.039 MB / 0.5606 GB Notification: Performance of SimCode: time 2.134e-06/0.7845, allocations: 0 / 0.7237 GB, free: 4.039 MB / 0.5606 GB Notification: Performance of Templates: time 0.3959/1.18, allocations: 27.83 MB / 0.7509 GB, free: 151.3 MB / 0.5606 GB " [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: 7.201210460625589]