Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001875/0.001875, allocations: 84.55 kB / 20.68 MB, free: 1.023 MB / 14.72 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.002198/0.002198, allocations: 163.9 kB / 23.95 MB, free: 4.156 MB / 14.72 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.416/1.416, allocations: 177.1 MB / 204.3 MB, free: 9.172 MB / 190.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.2021/0.2021, allocations: 32.81 MB / 293.5 MB, free: 32 kB / 270.1 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.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_4.0.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.0.0_ModelicaTest.MultiBody.Sensors.Distance2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.463e-06/1.463e-06, allocations: 0 / 440.1 MB, free: 8.16 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.245e-05/2.392e-05, allocations: 2.281 kB / 440.1 MB, free: 8.156 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01069/0.01071, allocations: 8.026 MB / 448.1 MB, free: 100 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.1724/0.1831, allocations: 3.387 MB / 451.5 MB, free: 15.16 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008598/0.1839, allocations: 56.06 kB / 451.6 MB, free: 15.14 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003317/0.1872, allocations: 1.96 MB / 453.5 MB, free: 14.71 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003509/0.1908, allocations: 1.667 MB / 455.2 MB, free: 14.11 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001286/0.192, allocations: 0.6162 MB / 455.8 MB, free: 13.91 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004969/0.197, allocations: 4.048 MB / 459.8 MB, free: 12.68 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002875/0.1999, allocations: 2.25 MB / 462.1 MB, free: 11.81 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002687/0.2026, allocations: 1.78 MB / 463.9 MB, free: 11.12 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002383/0.205, allocations: 1.792 MB / 465.7 MB, free: 10.54 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000504/0.2055, allocations: 245.1 kB / 465.9 MB, free: 10.54 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001921/0.2074, allocations: 1.066 MB / 467 MB, free: 10.14 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001191/0.2086, allocations: 1.613 MB / 468.6 MB, free: 9.184 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001247/0.2098, allocations: 0.9656 MB / 469.5 MB, free: 8.629 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00586/0.2157, allocations: 5.776 MB / 475.3 MB, free: 4.781 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.2157, allocations: 0 / 475.3 MB, free: 4.781 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.2157, allocations: 9.047 kB / 475.3 MB, free: 4.773 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000103/0.2158, allocations: 0 / 475.3 MB, free: 4.773 MB / 366.1 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.007005/0.2228, allocations: 3.869 MB / 479.2 MB, free: 2.02 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.561e-05/0.2228, allocations: 10.62 kB / 479.2 MB, free: 2.02 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01553/0.2384, allocations: 2.424 MB / 481.6 MB, free: 428 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005853/0.2442, allocations: 2.182 MB / 483.8 MB, free: 14.2 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001574/0.2444, allocations: 180.8 kB / 484 MB, free: 14.02 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005404/0.2449, allocations: 236.2 kB / 484.2 MB, free: 13.79 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01352/0.2584, allocations: 7.845 MB / 492.1 MB, free: 5.281 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.702e-05/0.2585, allocations: 39.64 kB / 492.1 MB, free: 5.242 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003451/0.2589, allocations: 115.9 kB / 492.2 MB, free: 5.129 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002802/0.2617, allocations: 1.586 MB / 493.8 MB, free: 3.539 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01294/0.2746, allocations: 6.57 MB / 0.4887 GB, free: 12.96 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03907/0.3137, allocations: 29.94 MB / 0.5179 GB, free: 14.07 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004944/0.3186, allocations: 1.999 MB / 0.5198 GB, free: 12.03 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001519/0.3201, allocations: 1.047 MB / 0.5209 GB, free: 10.97 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002472/0.3204, allocations: 83.94 kB / 0.5209 GB, free: 10.89 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.978e-05/0.3204, allocations: 46.56 kB / 0.521 GB, free: 10.84 MB / 430.1 MB Notification: Performance of pre-optimization done (n=104): time 3.236e-06/0.3204, allocations: 0 / 0.521 GB, free: 10.84 MB / 430.1 MB Notification: Performance of matching and sorting (n=118): time 0.02573/0.3462, allocations: 9.506 MB / 0.5303 GB, free: 1.277 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001377/0.3463, allocations: 196.4 kB / 0.5305 GB, free: 1.043 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005227/0.3515, allocations: 3.612 MB / 0.534 GB, free: 13.41 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00017/0.3517, allocations: 41.7 kB / 0.534 GB, free: 13.37 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00218/0.3539, allocations: 2.804 MB / 0.5368 GB, free: 10.54 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005987/0.3545, allocations: 0.5043 MB / 0.5373 GB, free: 10.03 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001529/0.356, allocations: 1.112 MB / 0.5383 GB, free: 8.91 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001331/0.3561, allocations: 305.1 kB / 0.5386 GB, free: 8.609 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002666/0.3588, allocations: 1.689 MB / 0.5403 GB, free: 6.914 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005822/0.3646, allocations: 5.317 MB / 0.5455 GB, free: 15.78 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009315/0.3739, allocations: 7.504 MB / 0.5528 GB, free: 6.5 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001044/0.3741, allocations: 39.94 kB / 0.5528 GB, free: 6.461 MB / 462.1 MB Notification: Performance of matching and sorting (n=717) (initialization): time 0.01319/0.3872, allocations: 7.094 MB / 0.5598 GB, free: 15.36 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.682e-05/0.3873, allocations: 60 kB / 0.5598 GB, free: 15.3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001486/0.3875, allocations: 128 kB / 0.56 GB, free: 15.17 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0017/0.3892, allocations: 0.657 MB / 0.5606 GB, free: 14.51 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003665/0.3928, allocations: 1.248 MB / 0.5618 GB, free: 13.26 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005413/0.3983, allocations: 3.939 MB / 0.5657 GB, free: 9.227 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003749/0.402, allocations: 323.5 kB / 0.566 GB, free: 8.91 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000542/0.4025, allocations: 352 kB / 0.5663 GB, free: 8.57 MB / 478.1 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.00296/0.4055, allocations: 1.786 MB / 0.568 GB, free: 6.773 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007289/0.4062, allocations: 282.1 kB / 0.5683 GB, free: 6.496 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003913/0.4101, allocations: 1.804 MB / 0.5701 GB, free: 4.676 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.848e-05/0.4102, allocations: 12 kB / 0.5701 GB, free: 4.664 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.597e-05/0.4102, allocations: 4 kB / 0.5701 GB, free: 4.66 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.253e-05/0.4102, allocations: 3.984 kB / 0.5701 GB, free: 4.656 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01054/0.4207, allocations: 4.527 MB / 0.5745 GB, free: 76 kB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.284e-05/0.4208, allocations: 0 / 0.5745 GB, free: 76 kB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009544/0.4217, allocations: 155.8 kB / 0.5747 GB, free: 15.92 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001697/0.4234, allocations: 488.3 kB / 0.5751 GB, free: 15.44 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001783/0.4236, allocations: 20 kB / 0.5752 GB, free: 15.42 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004839/0.4284, allocations: 3.311 MB / 0.5784 GB, free: 12.01 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.883e-06/0.4284, allocations: 7.969 kB / 0.5784 GB, free: 12 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006571/0.435, allocations: 3.708 MB / 0.582 GB, free: 8.266 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001071/0.4361, allocations: 293.9 kB / 0.5823 GB, free: 7.977 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007193/0.4368, allocations: 16 kB / 0.5823 GB, free: 7.961 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001604/0.4384, allocations: 91.86 kB / 0.5824 GB, free: 7.871 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002259/0.4386, allocations: 56.38 kB / 0.5824 GB, free: 7.816 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.578e-05/0.4387, allocations: 36 kB / 0.5825 GB, free: 7.781 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003542/0.4423, allocations: 2.077 MB / 0.5845 GB, free: 5.707 MB / 494.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.4423, allocations: 0 / 0.5845 GB, free: 5.707 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004901/0.4472, allocations: 0.8632 MB / 0.5854 GB, free: 4.844 MB / 494.1 MB 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.0005019/0.4477, allocations: 167.4 kB / 0.5855 GB, free: 4.668 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007222/0.4549, allocations: 3.865 MB / 0.5893 GB, free: 0.8125 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.691e-06/0.4549, allocations: 4 kB / 0.5893 GB, free: 0.8086 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001556/0.4564, allocations: 0.9393 MB / 0.5902 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002645/0.4591, allocations: 327.2 kB / 0.5905 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01453/0.4736, allocations: 7.206 MB / 0.5976 GB, free: 8.301 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003205/0.4768, allocations: 2.157 MB / 0.5997 GB, free: 6.105 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.003904/0.4807, allocations: 1.665 MB / 0.6013 GB, free: 4.434 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000631/0.4814, allocations: 196.5 kB / 0.6015 GB, free: 4.242 MB / 0.4981 GB Notification: Performance of SimCode: time 1.502e-06/0.4814, allocations: 0 / 0.6015 GB, free: 4.242 MB / 0.4981 GB Notification: Performance of Templates: time 0.05496/0.5363, allocations: 23.58 MB / 0.6245 GB, free: 13.01 MB / 0.5294 GB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 6.330419111996889]