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.001473/0.001473, allocations: 92.31 kB / 20.96 MB, free: 3.473 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.002752/0.002752, allocations: 161.7 kB / 24.27 MB, free: 172 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 1.557/1.557, allocations: 177.1 MB / 204.6 MB, free: 5.59 MB / 186.7 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.3562/0.3562, allocations: 32.8 MB / 293.9 MB, free: 1.199 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.493e-06/1.493e-06, allocations: 0 / 375.3 MB, free: 4.977 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.573e-05/2.722e-05, allocations: 2.312 kB / 375.3 MB, free: 4.973 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01186/0.01189, allocations: 8.032 MB / 383.3 MB, free: 12.9 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.008303/0.02019, allocations: 3.387 MB / 386.7 MB, free: 9.5 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001465/0.02166, allocations: 63.69 kB / 386.7 MB, free: 9.438 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004429/0.02609, allocations: 1.993 MB / 388.7 MB, free: 7.438 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00491/0.031, allocations: 1.668 MB / 390.4 MB, free: 5.762 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001633/0.03263, allocations: 0.6235 MB / 391 MB, free: 5.137 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.006569/0.0392, allocations: 4.051 MB / 395.1 MB, free: 1.082 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003948/0.04315, allocations: 2.311 MB / 397.4 MB, free: 14.71 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003101/0.04625, allocations: 1.773 MB / 399.2 MB, free: 12.93 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003234/0.04948, allocations: 1.8 MB / 401 MB, free: 11.13 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006445/0.05013, allocations: 248 kB / 401.2 MB, free: 10.89 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00253/0.05266, allocations: 1.08 MB / 402.3 MB, free: 9.805 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002172/0.05483, allocations: 1.609 MB / 403.9 MB, free: 8.191 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001555/0.05638, allocations: 0.9773 MB / 404.9 MB, free: 7.211 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008476/0.06486, allocations: 5.794 MB / 410.7 MB, free: 1.398 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.593e-06/0.06487, allocations: 0 / 410.7 MB, free: 1.398 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.06487, allocations: 3.938 kB / 410.7 MB, free: 1.395 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000144/0.06501, allocations: 0 / 410.7 MB, free: 1.395 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.009843/0.07486, allocations: 3.893 MB / 414.6 MB, free: 13.45 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.043e-05/0.07491, allocations: 12.03 kB / 414.6 MB, free: 13.43 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01647/0.09138, allocations: 2.807 MB / 417.4 MB, free: 10.62 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006346/0.09772, allocations: 2.2 MB / 419.6 MB, free: 8.387 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001927/0.09792, allocations: 172.9 kB / 419.7 MB, free: 8.215 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006899/0.09861, allocations: 236.2 kB / 420 MB, free: 7.984 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01451/0.1131, allocations: 7.892 MB / 427.9 MB, free: 15.43 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001032/0.1132, allocations: 35.7 kB / 427.9 MB, free: 15.39 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003636/0.1136, allocations: 119.9 kB / 428 MB, free: 15.28 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003062/0.1166, allocations: 1.59 MB / 429.6 MB, free: 13.69 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01447/0.1311, allocations: 6.621 MB / 436.2 MB, free: 7.059 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1956/0.3267, allocations: 30.07 MB / 466.3 MB, free: 77.35 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003978/0.3307, allocations: 1.882 MB / 468.2 MB, free: 76.8 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001172/0.3318, allocations: 1.05 MB / 469.2 MB, free: 76.38 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003341/0.3322, allocations: 109.7 kB / 469.3 MB, free: 76.37 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.823e-05/0.3322, allocations: 48.16 kB / 469.4 MB, free: 76.32 MB / 410.7 MB Notification: Performance of pre-optimization done (n=104): time 3.396e-06/0.3322, allocations: 1.906 kB / 469.4 MB, free: 76.32 MB / 410.7 MB Notification: Performance of matching and sorting (n=118): time 0.02474/0.3569, allocations: 10.88 MB / 480.3 MB, free: 72.59 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.116e-05/0.357, allocations: 199.1 kB / 480.5 MB, free: 72.37 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004341/0.3613, allocations: 3.601 MB / 484.1 MB, free: 71.09 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002536/0.3616, allocations: 50.84 kB / 484.1 MB, free: 71.05 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001162/0.3628, allocations: 2.795 MB / 486.9 MB, free: 69.01 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004815/0.3632, allocations: 0.506 MB / 487.4 MB, free: 68.66 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001277/0.3645, allocations: 1.112 MB / 488.5 MB, free: 68.1 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.236e-05/0.3646, allocations: 301.1 kB / 488.8 MB, free: 67.8 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002486/0.3671, allocations: 1.762 MB / 490.6 MB, free: 67.25 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00404/0.3711, allocations: 5.363 MB / 495.9 MB, free: 61.79 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007799/0.3789, allocations: 7.629 MB / 0.4918 GB, free: 55.16 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000208/0.3791, allocations: 36.47 kB / 0.4918 GB, free: 55.16 MB / 410.7 MB Notification: Performance of matching and sorting (n=715) (initialization): time 0.01319/0.3923, allocations: 7.516 MB / 0.4991 GB, free: 52.32 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.64e-05/0.3924, allocations: 63.06 kB / 0.4992 GB, free: 52.32 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001229/0.3925, allocations: 123.7 kB / 0.4993 GB, free: 52.32 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001768/0.3943, allocations: 0.6956 MB / 0.5 GB, free: 52.21 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003681/0.398, allocations: 1.255 MB / 0.5012 GB, free: 52.06 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004275/0.4022, allocations: 3.944 MB / 0.5051 GB, free: 49.11 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004714/0.4069, allocations: 348.8 kB / 0.5054 GB, free: 48.82 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001098/0.408, allocations: 339.8 kB / 0.5057 GB, free: 48.49 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 575 * 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 (680): * Single equations (assignments): 676 * 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.003601/0.4116, allocations: 1.774 MB / 0.5075 GB, free: 46.91 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008531/0.4125, allocations: 318.6 kB / 0.5078 GB, free: 46.61 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003602/0.4161, allocations: 1.958 MB / 0.5097 GB, free: 45.04 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-05/0.4161, allocations: 15.94 kB / 0.5097 GB, free: 45.03 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.712e-05/0.4161, allocations: 7.781 kB / 0.5097 GB, free: 45.02 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.518e-05/0.4162, allocations: 4.594 kB / 0.5097 GB, free: 45.02 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008706/0.4249, allocations: 4.713 MB / 0.5143 GB, free: 41.12 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.765e-06/0.4249, allocations: 0 / 0.5143 GB, free: 41.12 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007745/0.4256, allocations: 173.6 kB / 0.5145 GB, free: 40.99 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001334/0.427, allocations: 0.5063 MB / 0.515 GB, free: 40.64 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.68e-05/0.4271, allocations: 20 kB / 0.515 GB, free: 40.62 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003107/0.4302, allocations: 3.32 MB / 0.5182 GB, free: 37.59 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.4302, allocations: 4.031 kB / 0.5182 GB, free: 37.59 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004832/0.435, allocations: 4.034 MB / 0.5222 GB, free: 33.89 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007103/0.4357, allocations: 285.8 kB / 0.5225 GB, free: 33.61 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002934/0.436, allocations: 23.61 kB / 0.5225 GB, free: 33.59 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00115/0.4372, allocations: 107.8 kB / 0.5226 GB, free: 33.49 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002053/0.4374, allocations: 69.69 kB / 0.5226 GB, free: 33.42 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000105/0.4375, allocations: 28 kB / 0.5227 GB, free: 33.39 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002402/0.4399, allocations: 2.077 MB / 0.5247 GB, free: 31.32 MB / 410.7 MB Notification: Performance of sort global known variables: time 1e-07/0.4399, allocations: 0 / 0.5247 GB, free: 31.32 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004355/0.4442, allocations: 0.875 MB / 0.5256 GB, free: 30.45 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.0003712/0.4446, allocations: 158.6 kB / 0.5257 GB, free: 30.28 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005524/0.4501, allocations: 4.02 MB / 0.5296 GB, free: 26.27 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.4501, allocations: 0 / 0.5296 GB, free: 26.27 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001149/0.4513, allocations: 1.009 MB / 0.5306 GB, free: 25.25 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002155/0.4534, allocations: 335.4 kB / 0.5309 GB, free: 24.95 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01078/0.4642, allocations: 7.382 MB / 0.5381 GB, free: 17.52 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002733/0.4669, allocations: 2.165 MB / 0.5403 GB, free: 15.32 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003386/0.4703, allocations: 1.685 MB / 0.5419 GB, free: 13.63 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007233/0.4711, allocations: 192.5 kB / 0.5421 GB, free: 13.45 MB / 410.7 MB Notification: Performance of SimCode: time 1.523e-06/0.4711, allocations: 4 kB / 0.5421 GB, free: 13.44 MB / 410.7 MB Notification: Performance of Templates: time 0.04794/0.519, allocations: 23.65 MB / 0.5652 GB, free: 6.238 MB / 426.7 MB " [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.522831077920273]