Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.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.0008887/0.0008887, allocations: 91.61 kB / 21.44 MB, free: 3.098 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.001158/0.001158, allocations: 158.1 kB / 24.7 MB, free: 9.438 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 0.8728/0.8728, allocations: 177.2 MB / 205 MB, free: 5.734 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.2544/0.2544, allocations: 34.25 MB / 295.7 MB, free: 0.6914 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.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.623e-06/1.623e-06, allocations: 0 / 443.4 MB, free: 1.168 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.39e-05/2.553e-05, allocations: 9.453 kB / 443.4 MB, free: 1.16 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.1783/0.1783, allocations: 8.034 MB / 451.5 MB, free: 40.04 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.003691/0.182, allocations: 3.383 MB / 454.9 MB, free: 37.96 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004629/0.1824, allocations: 57.81 kB / 454.9 MB, free: 37.95 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001594/0.184, allocations: 1.95 MB / 456.9 MB, free: 37.13 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001634/0.1857, allocations: 1.672 MB / 458.5 MB, free: 36.37 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006008/0.1863, allocations: 0.6209 MB / 459.2 MB, free: 36.12 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.00191/0.1882, allocations: 4.046 MB / 463.2 MB, free: 34.59 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001152/0.1893, allocations: 2.259 MB / 465.5 MB, free: 33.57 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001022/0.1904, allocations: 1.768 MB / 467.2 MB, free: 32.82 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001132/0.1915, allocations: 1.798 MB / 469 MB, free: 32.34 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000236/0.1917, allocations: 245.1 kB / 469.3 MB, free: 32.34 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001136/0.1929, allocations: 1.067 MB / 470.3 MB, free: 32.14 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006752/0.1935, allocations: 1.609 MB / 471.9 MB, free: 31.48 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005348/0.1941, allocations: 0.968 MB / 472.9 MB, free: 31 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003021/0.1971, allocations: 5.773 MB / 478.7 MB, free: 29.02 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.1971, allocations: 0.7031 kB / 478.7 MB, free: 29.02 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1971, allocations: 7.938 kB / 478.7 MB, free: 29.02 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.134e-05/0.1971, allocations: 0 / 478.7 MB, free: 29.02 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1211 * Number of variables: 1211 Notification: Performance of Generate backend data structure: time 0.004209/0.2013, allocations: 3.866 MB / 482.6 MB, free: 26.8 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/0.2014, allocations: 10.25 kB / 482.6 MB, free: 26.8 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007692/0.2091, allocations: 2.425 MB / 485 MB, free: 26.46 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003511/0.2126, allocations: 2.183 MB / 487.2 MB, free: 25.39 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.676e-05/0.2127, allocations: 176.8 kB / 487.3 MB, free: 25.3 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003274/0.213, allocations: 241.5 kB / 487.6 MB, free: 25.22 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008445/0.2215, allocations: 7.844 MB / 495.4 MB, free: 21.29 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.64e-05/0.2215, allocations: 39.8 kB / 495.5 MB, free: 21.27 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002279/0.2218, allocations: 117 kB / 495.6 MB, free: 21.19 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001769/0.2235, allocations: 1.594 MB / 497.2 MB, free: 20.9 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007984/0.2315, allocations: 6.567 MB / 0.4919 GB, free: 18.52 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01869/0.2502, allocations: 29.93 MB / 0.5212 GB, free: 4.742 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002673/0.2529, allocations: 1.997 MB / 0.5231 GB, free: 2.707 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001009/0.2539, allocations: 1.038 MB / 0.5241 GB, free: 1.656 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001596/0.254, allocations: 95.86 kB / 0.5242 GB, free: 1.562 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.515e-05/0.2541, allocations: 46.55 kB / 0.5243 GB, free: 1.508 MB / 426.7 MB Notification: Performance of pre-optimization done (n=104): time 3.176e-06/0.2541, allocations: 0 / 0.5243 GB, free: 1.508 MB / 426.7 MB Notification: Performance of matching and sorting (n=118): time 0.01318/0.2673, allocations: 9.512 MB / 0.5336 GB, free: 7.949 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.162e-05/0.2673, allocations: 188.4 kB / 0.5337 GB, free: 7.723 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002858/0.2702, allocations: 3.612 MB / 0.5373 GB, free: 4.098 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.089e-05/0.2702, allocations: 45.83 kB / 0.5373 GB, free: 4.047 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001193/0.2714, allocations: 2.793 MB / 0.54 GB, free: 1.227 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003017/0.2717, allocations: 0.5157 MB / 0.5405 GB, free: 0.707 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008427/0.2726, allocations: 1.119 MB / 0.5416 GB, free: 15.58 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 6.213e-05/0.2726, allocations: 301.1 kB / 0.5419 GB, free: 15.28 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001505/0.2741, allocations: 1.686 MB / 0.5436 GB, free: 13.59 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003016/0.2772, allocations: 5.317 MB / 0.5488 GB, free: 6.461 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00518/0.2823, allocations: 7.503 MB / 0.5561 GB, free: 13.18 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.43e-05/0.2824, allocations: 36 kB / 0.5561 GB, free: 13.15 MB / 474.7 MB Notification: Performance of matching and sorting (n=717) (initialization): time 0.006744/0.2891, allocations: 7.099 MB / 0.563 GB, free: 6.039 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.817e-05/0.2892, allocations: 62.5 kB / 0.5631 GB, free: 5.98 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.465e-05/0.2892, allocations: 130.6 kB / 0.5632 GB, free: 5.855 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008796/0.2901, allocations: 0.6609 MB / 0.5639 GB, free: 5.191 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001766/0.2919, allocations: 1.251 MB / 0.5651 GB, free: 3.938 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002997/0.2949, allocations: 3.926 MB / 0.5689 GB, free: 15.91 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001934/0.2968, allocations: 327.5 kB / 0.5692 GB, free: 15.59 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002565/0.2971, allocations: 348 kB / 0.5696 GB, free: 15.25 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 577 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.twoHeadedArrow,distance2.arrow.headAtOrigin,distance1.arrow.twoHeadedArrow,distance1.arrow.headAtOrigin,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[1],distance1.arrowColor[3],distance1.arrowColor[2],distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.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 (682): * Single equations (assignments): 678 * 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 {(2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001957/0.299, allocations: 1.783 MB / 0.5713 GB, free: 13.45 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002631/0.2993, allocations: 278.1 kB / 0.5716 GB, free: 13.18 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001875/0.3012, allocations: 1.808 MB / 0.5733 GB, free: 11.36 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.548e-05/0.3012, allocations: 16 kB / 0.5734 GB, free: 11.34 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.3012, allocations: 0 / 0.5734 GB, free: 11.34 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.017e-05/0.3012, allocations: 7.984 kB / 0.5734 GB, free: 11.33 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005042/0.3062, allocations: 4.518 MB / 0.5778 GB, free: 6.754 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.019e-06/0.3063, allocations: 4 kB / 0.5778 GB, free: 6.75 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000384/0.3066, allocations: 155.8 kB / 0.5779 GB, free: 6.598 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007264/0.3074, allocations: 488.3 kB / 0.5784 GB, free: 6.117 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.843e-05/0.3074, allocations: 16 kB / 0.5784 GB, free: 6.102 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002627/0.31, allocations: 3.316 MB / 0.5817 GB, free: 2.688 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.31, allocations: 0 / 0.5817 GB, free: 2.688 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003485/0.3135, allocations: 3.713 MB / 0.5853 GB, free: 14.95 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003293/0.3139, allocations: 290 kB / 0.5856 GB, free: 14.66 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001532/0.314, allocations: 20.62 kB / 0.5856 GB, free: 14.64 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005642/0.3146, allocations: 87.86 kB / 0.5857 GB, free: 14.55 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001117/0.3147, allocations: 56.39 kB / 0.5857 GB, free: 14.5 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.835e-05/0.3147, allocations: 35.98 kB / 0.5857 GB, free: 14.46 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001793/0.3165, allocations: 2.081 MB / 0.5878 GB, free: 12.39 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.01e-07/0.3165, allocations: 0 / 0.5878 GB, free: 12.39 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.002579/0.3191, allocations: 0.8593 MB / 0.5886 GB, free: 11.53 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (Revolute1.phi,Revolute1.w) * Number of discrete variables: 1 (LessEqualThreshold1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 84 * 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.0002988/0.3194, allocations: 167.4 kB / 0.5888 GB, free: 11.35 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.003766/0.3232, allocations: 3.867 MB / 0.5926 GB, free: 7.5 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.3232, allocations: 4.062 kB / 0.5926 GB, free: 7.496 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0007811/0.324, allocations: 0.9388 MB / 0.5935 GB, free: 6.547 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001011/0.325, allocations: 313.4 kB / 0.5938 GB, free: 6.254 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00755/0.3325, allocations: 7.556 MB / 0.6012 GB, free: 14.65 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00166/0.3342, allocations: 2.152 MB / 0.6033 GB, free: 12.46 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004305/0.3346, allocations: 240.5 kB / 0.6035 GB, free: 12.22 MB / 0.5105 GB Notification: Performance of SimCode: time 1.202e-06/0.3346, allocations: 0 / 0.6035 GB, free: 12.22 MB / 0.5105 GB Notification: Performance of Templates: time 0.235/0.5696, allocations: 62.4 MB / 0.6644 GB, free: 139.9 MB / 0.5261 GB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.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.848668065853417]