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.001485/0.001485, allocations: 82.42 kB / 20.68 MB, free: 1.035 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.001539/0.001539, allocations: 163.6 kB / 23.96 MB, free: 4.164 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.492/1.492, allocations: 177.2 MB / 204.3 MB, free: 9.18 MB / 190.1 MB " [Timeout remaining time 178] 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.2249/0.2249, allocations: 34.28 MB / 295 MB, free: 14.57 MB / 286.1 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 2.835e-06/2.835e-06, allocations: 0 / 442.7 MB, free: 5.414 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.011e-05/3.294e-05, allocations: 2.281 kB / 442.7 MB, free: 5.41 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.2114/0.2114, allocations: 8.034 MB / 450.7 MB, free: 15.18 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008467/0.2199, allocations: 3.393 MB / 454.1 MB, free: 13.5 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001718/0.2216, allocations: 56.66 kB / 454.1 MB, free: 13.48 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004409/0.226, allocations: 1.958 MB / 456.1 MB, free: 12.66 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004855/0.2309, allocations: 1.665 MB / 457.8 MB, free: 11.9 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001574/0.2324, allocations: 0.6266 MB / 458.4 MB, free: 11.64 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006208/0.2387, allocations: 4.039 MB / 462.4 MB, free: 10.11 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00415/0.2428, allocations: 2.244 MB / 464.7 MB, free: 9.109 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005964/0.2488, allocations: 1.783 MB / 466.5 MB, free: 8.344 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004441/0.2532, allocations: 1.791 MB / 468.3 MB, free: 7.469 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009932/0.2542, allocations: 249.6 kB / 468.5 MB, free: 7.465 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003/0.2572, allocations: 1.07 MB / 469.6 MB, free: 7.059 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002129/0.2593, allocations: 1.605 MB / 471.2 MB, free: 6.109 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002256/0.2616, allocations: 0.9726 MB / 472.1 MB, free: 5.547 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006373/0.268, allocations: 5.769 MB / 477.9 MB, free: 1.707 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.042e-06/0.268, allocations: 0 / 477.9 MB, free: 1.707 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.268, allocations: 0 / 477.9 MB, free: 1.707 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001659/0.2681, allocations: 3.031 kB / 477.9 MB, free: 1.707 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.009271/0.2774, allocations: 3.872 MB / 481.8 MB, free: 14.89 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.689e-05/0.2775, allocations: 12.03 kB / 481.8 MB, free: 14.88 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01857/0.296, allocations: 2.421 MB / 484.2 MB, free: 12.45 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006103/0.3021, allocations: 2.193 MB / 486.4 MB, free: 10.22 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001707/0.3023, allocations: 176.8 kB / 486.6 MB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007683/0.3031, allocations: 232.2 kB / 486.8 MB, free: 9.82 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01392/0.317, allocations: 7.841 MB / 494.7 MB, free: 1.316 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.643e-05/0.3171, allocations: 43.58 kB / 494.7 MB, free: 1.273 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003595/0.3174, allocations: 126.5 kB / 494.8 MB, free: 1.152 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002939/0.3204, allocations: 1.582 MB / 496.4 MB, free: 15.56 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01298/0.3334, allocations: 6.571 MB / 0.4912 GB, free: 8.988 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04044/0.3738, allocations: 29.93 MB / 0.5204 GB, free: 10.11 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005098/0.3789, allocations: 2.005 MB / 0.5224 GB, free: 8.066 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001566/0.3805, allocations: 1.042 MB / 0.5234 GB, free: 7.012 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000267/0.3807, allocations: 95.88 kB / 0.5235 GB, free: 6.918 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.369e-05/0.3808, allocations: 42.56 kB / 0.5235 GB, free: 6.867 MB / 430.1 MB Notification: Performance of pre-optimization done (n=104): time 3.587e-06/0.3808, allocations: 0 / 0.5235 GB, free: 6.867 MB / 430.1 MB Notification: Performance of matching and sorting (n=118): time 0.02685/0.4076, allocations: 9.51 MB / 0.5328 GB, free: 13.31 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001681/0.4078, allocations: 192.4 kB / 0.533 GB, free: 13.08 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006175/0.414, allocations: 3.608 MB / 0.5365 GB, free: 9.457 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003008/0.4143, allocations: 41.7 kB / 0.5366 GB, free: 9.41 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002608/0.4169, allocations: 2.804 MB / 0.5393 GB, free: 6.578 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007844/0.4177, allocations: 0.5003 MB / 0.5398 GB, free: 6.07 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001639/0.4193, allocations: 1.115 MB / 0.5409 GB, free: 4.945 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.4194, allocations: 301.1 kB / 0.5412 GB, free: 4.648 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003071/0.4225, allocations: 1.697 MB / 0.5428 GB, free: 2.945 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006948/0.4295, allocations: 5.31 MB / 0.548 GB, free: 11.82 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01088/0.4403, allocations: 7.506 MB / 0.5553 GB, free: 2.539 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001253/0.4405, allocations: 36 kB / 0.5554 GB, free: 2.504 MB / 462.1 MB Notification: Performance of matching and sorting (n=717) (initialization): time 0.01585/0.4563, allocations: 7.1 MB / 0.5623 GB, free: 11.4 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.716e-05/0.4564, allocations: 56.09 kB / 0.5624 GB, free: 11.34 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001543/0.4566, allocations: 131.9 kB / 0.5625 GB, free: 11.21 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001797/0.4584, allocations: 0.6493 MB / 0.5631 GB, free: 10.56 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004089/0.4625, allocations: 1.256 MB / 0.5643 GB, free: 9.305 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005576/0.468, allocations: 3.936 MB / 0.5682 GB, free: 5.27 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004029/0.4721, allocations: 331.5 kB / 0.5685 GB, free: 4.945 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000632/0.4727, allocations: 351.1 kB / 0.5688 GB, free: 4.605 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.003038/0.4757, allocations: 1.779 MB / 0.5706 GB, free: 2.812 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005785/0.4763, allocations: 282.1 kB / 0.5708 GB, free: 2.535 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003696/0.48, allocations: 1.8 MB / 0.5726 GB, free: 0.7188 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.527e-05/0.48, allocations: 20 kB / 0.5726 GB, free: 0.6992 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.48, allocations: 0 / 0.5726 GB, free: 0.6992 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.426e-05/0.4801, allocations: 7.984 kB / 0.5726 GB, free: 0.6914 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0101/0.4902, allocations: 4.522 MB / 0.577 GB, free: 12.11 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.626e-06/0.4902, allocations: 3.938 kB / 0.577 GB, free: 12.1 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009202/0.4911, allocations: 155.8 kB / 0.5772 GB, free: 11.95 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001439/0.4925, allocations: 488.3 kB / 0.5777 GB, free: 11.47 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.552e-05/0.4926, allocations: 16 kB / 0.5777 GB, free: 11.45 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004432/0.497, allocations: 3.319 MB / 0.5809 GB, free: 8.035 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.497, allocations: 0 / 0.5809 GB, free: 8.035 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006204/0.5032, allocations: 3.704 MB / 0.5845 GB, free: 4.305 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001017/0.5043, allocations: 281.9 kB / 0.5848 GB, free: 4.027 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003512/0.5046, allocations: 27.98 kB / 0.5848 GB, free: 4 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001177/0.5058, allocations: 88 kB / 0.5849 GB, free: 3.914 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002157/0.506, allocations: 68.31 kB / 0.585 GB, free: 3.848 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.857e-05/0.5061, allocations: 32 kB / 0.585 GB, free: 3.816 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003452/0.5096, allocations: 2.081 MB / 0.587 GB, free: 1.738 MB / 494.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5096, allocations: 0 / 0.587 GB, free: 1.738 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004592/0.5142, allocations: 0.871 MB / 0.5879 GB, free: 0.8672 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.0004722/0.5146, allocations: 155.5 kB / 0.588 GB, free: 0.7031 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.006939/0.5216, allocations: 3.875 MB / 0.5918 GB, free: 12.84 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.5216, allocations: 0 / 0.5918 GB, free: 12.84 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001571/0.5231, allocations: 0.9385 MB / 0.5927 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002215/0.5254, allocations: 321.1 kB / 0.593 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01324/0.5386, allocations: 7.206 MB / 0.6001 GB, free: 4.34 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002967/0.5416, allocations: 2.16 MB / 0.6022 GB, free: 2.141 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.003759/0.5453, allocations: 1.665 MB / 0.6038 GB, free: 480 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005784/0.5459, allocations: 196.5 kB / 0.604 GB, free: 284 kB / 0.4981 GB Notification: Performance of SimCode: time 1.031e-06/0.5459, allocations: 0 / 0.604 GB, free: 284 kB / 0.4981 GB Notification: Performance of Templates: time 0.05658/0.6025, allocations: 23.59 MB / 0.627 GB, free: 9.039 MB / 0.5294 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: 6.7007943242788315]