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.001231/0.001231, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.001368/0.001368, allocations: 161 kB / 24.56 MB, free: 16 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 0.9466/0.9466, allocations: 177.1 MB / 205 MB, free: 5.578 MB / 186.7 MB " [Timeout remaining time 179] 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.2983/0.2983, allocations: 32.81 MB / 294.3 MB, free: 1.27 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.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.412e-06/1.412e-06, allocations: 0 / 376 MB, free: 4.68 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.295e-05/1.437e-05, allocations: 2.312 kB / 376 MB, free: 4.676 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.006911/0.006925, allocations: 8.818 MB / 384.8 MB, free: 11.82 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.004319/0.01124, allocations: 3.508 MB / 388.3 MB, free: 8.297 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004643/0.01171, allocations: 59.69 kB / 388.4 MB, free: 8.238 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002062/0.01377, allocations: 2.048 MB / 390.4 MB, free: 6.184 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001928/0.0157, allocations: 1.676 MB / 392.1 MB, free: 4.5 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006921/0.01639, allocations: 0.6274 MB / 392.7 MB, free: 3.871 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.002706/0.0191, allocations: 4.047 MB / 396.8 MB, free: 15.81 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001748/0.02084, allocations: 2.307 MB / 399.1 MB, free: 13.45 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001376/0.02222, allocations: 1.785 MB / 400.9 MB, free: 11.66 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001625/0.02385, allocations: 1.824 MB / 402.7 MB, free: 9.828 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002995/0.02414, allocations: 248 kB / 402.9 MB, free: 9.586 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001078/0.02522, allocations: 1.072 MB / 404 MB, free: 8.512 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009636/0.02619, allocations: 1.625 MB / 405.6 MB, free: 6.883 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008083/0.02699, allocations: 0.9734 MB / 406.6 MB, free: 5.906 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00291/0.0299, allocations: 3.881 MB / 410.5 MB, free: 2.012 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.02991, allocations: 0 / 410.5 MB, free: 2.012 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.02991, allocations: 0 / 410.5 MB, free: 2.012 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.14e-05/0.02994, allocations: 0 / 410.5 MB, free: 2.012 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: 1211 * Number of variables: 1211 Notification: Performance of Generate backend data structure: time 0.004203/0.03414, allocations: 4.198 MB / 414.7 MB, free: 13.75 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.607e-05/0.03418, allocations: 12.02 kB / 414.7 MB, free: 13.74 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007992/0.04217, allocations: 2.76 MB / 417.5 MB, free: 10.97 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002371/0.04454, allocations: 2.023 MB / 419.5 MB, free: 8.914 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.236e-05/0.04462, allocations: 172.9 kB / 419.7 MB, free: 8.742 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002628/0.04489, allocations: 240.2 kB / 419.9 MB, free: 8.508 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004771/0.04966, allocations: 4.852 MB / 424.7 MB, free: 2.77 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.866e-05/0.04972, allocations: 39.7 kB / 424.8 MB, free: 2.73 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001982/0.04991, allocations: 115.9 kB / 424.9 MB, free: 2.617 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001417/0.05133, allocations: 1.582 MB / 426.5 MB, free: 1.035 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003724/0.05505, allocations: 2.446 MB / 428.9 MB, free: 14.57 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1766/0.2317, allocations: 36.51 MB / 465.4 MB, free: 63.24 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001992/0.2337, allocations: 0.9645 MB / 466.4 MB, free: 63.1 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004053/0.2341, allocations: 357.6 kB / 466.8 MB, free: 63.05 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001861/0.2343, allocations: 92.95 kB / 466.8 MB, free: 63.05 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.982e-05/0.2343, allocations: 53.36 kB / 466.9 MB, free: 63.01 MB / 410.7 MB Notification: Performance of pre-optimization done (n=104): time 3.657e-06/0.2343, allocations: 0 / 466.9 MB, free: 63.01 MB / 410.7 MB Notification: Performance of matching and sorting (n=118): time 0.01258/0.2469, allocations: 6.916 MB / 473.8 MB, free: 60.79 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.979e-05/0.247, allocations: 195.9 kB / 474 MB, free: 60.57 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003125/0.2501, allocations: 3.267 MB / 477.3 MB, free: 60.04 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.564e-05/0.2501, allocations: 36.8 kB / 477.3 MB, free: 60.01 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001317/0.2515, allocations: 2.967 MB / 480.3 MB, free: 58.05 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003461/0.2518, allocations: 0.5237 MB / 480.8 MB, free: 57.69 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001087/0.2529, allocations: 1.217 MB / 482 MB, free: 57.04 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.442e-05/0.2529, allocations: 480.8 kB / 482.5 MB, free: 56.56 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001031/0.254, allocations: 0.5573 MB / 483 MB, free: 56.49 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002754/0.2567, allocations: 5.906 MB / 488.9 MB, free: 49.21 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004353/0.2611, allocations: 7.064 MB / 496 MB, free: 41.59 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.189e-05/0.2611, allocations: 36.03 kB / 496 MB, free: 41.59 MB / 410.7 MB Notification: Performance of matching and sorting (n=717) (initialization): time 0.007011/0.2681, allocations: 4.997 MB / 0.4893 GB, free: 39.75 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.663e-05/0.2682, allocations: 63.91 kB / 0.4894 GB, free: 39.75 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001736/0.2684, allocations: 128.8 kB / 0.4895 GB, free: 39.75 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001216/0.2696, allocations: 467.9 kB / 0.4899 GB, free: 39.72 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002751/0.2724, allocations: 1.249 MB / 0.4912 GB, free: 39.56 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002634/0.275, allocations: 2.89 MB / 0.494 GB, free: 37.27 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002624/0.2776, allocations: 322.8 kB / 0.4943 GB, free: 37.16 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003844/0.278, allocations: 348.4 kB / 0.4946 GB, free: 37.12 MB / 410.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.0009878/0.279, allocations: 0.6239 MB / 0.4952 GB, free: 36.61 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000395/0.2794, allocations: 315.3 kB / 0.4955 GB, free: 36.44 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001811/0.2812, allocations: 0.997 MB / 0.4965 GB, free: 36.11 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.145e-05/0.2812, allocations: 18.38 kB / 0.4965 GB, free: 36.11 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.21e-05/0.2812, allocations: 6.391 kB / 0.4965 GB, free: 36.11 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.098e-05/0.2812, allocations: 4.812 kB / 0.4965 GB, free: 36.11 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006246/0.2875, allocations: 3.872 MB / 0.5003 GB, free: 34.45 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.823e-06/0.2875, allocations: 1.375 kB / 0.5003 GB, free: 34.45 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005084/0.288, allocations: 162.2 kB / 0.5005 GB, free: 34.43 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008915/0.2889, allocations: 290.3 kB / 0.5007 GB, free: 34.4 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.641e-05/0.289, allocations: 23.31 kB / 0.5008 GB, free: 34.39 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001808/0.2908, allocations: 2.289 MB / 0.503 GB, free: 32.43 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.2908, allocations: 0 / 0.503 GB, free: 32.43 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002664/0.2934, allocations: 1.956 MB / 0.5049 GB, free: 31.44 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003908/0.2938, allocations: 281.2 kB / 0.5052 GB, free: 31.25 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002212/0.294, allocations: 19.69 kB / 0.5052 GB, free: 31.24 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007943/0.2948, allocations: 87.72 kB / 0.5053 GB, free: 31.23 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000164/0.295, allocations: 64.12 kB / 0.5053 GB, free: 31.22 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.57e-05/0.2951, allocations: 34.22 kB / 0.5054 GB, free: 31.21 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001793/0.2969, allocations: 1.373 MB / 0.5067 GB, free: 30.74 MB / 410.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2969, allocations: 0 / 0.5067 GB, free: 30.74 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003925/0.3008, allocations: 0.865 MB / 0.5076 GB, free: 30.64 MB / 410.7 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.0003671/0.3011, allocations: 169.6 kB / 0.5077 GB, free: 30.52 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00375/0.3049, allocations: 2.608 MB / 0.5103 GB, free: 29.57 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.818e-06/0.3049, allocations: 0 / 0.5103 GB, free: 29.57 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005373/0.3054, allocations: 0.5737 MB / 0.5108 GB, free: 29.29 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001061/0.3065, allocations: 320.7 kB / 0.5111 GB, free: 29.14 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01337/0.3199, allocations: 5.814 MB / 0.5168 GB, free: 25.03 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003965/0.3238, allocations: 0.9822 MB / 0.5178 GB, free: 24.32 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.005707/0.3295, allocations: 1.449 MB / 0.5192 GB, free: 23.5 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004094/0.3299, allocations: 197.7 kB / 0.5194 GB, free: 23.31 MB / 410.7 MB Notification: Performance of SimCode: time 1.654e-06/0.3299, allocations: 4 kB / 0.5194 GB, free: 23.31 MB / 410.7 MB Notification: Performance of Templates: time 0.06104/0.391, allocations: 23.72 MB / 0.5425 GB, free: 3.152 MB / 410.7 MB " [Timeout remaining time 660] 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.076304845046252]