Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001068/0.001068, allocations: 82.59 kB / 21.43 MB, free: 3.07 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001077/0.001077, allocations: 171.8 kB / 24.82 MB, free: 9.254 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9587/0.9587, allocations: 177 MB / 205.1 MB, free: 5.469 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2994/0.2994, allocations: 34.87 MB / 296.6 MB, free: 0.5117 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.934e-06/1.934e-06, allocations: 0 / 379.2 MB, free: 1.844 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.688e-05/2.882e-05, allocations: 7.297 kB / 379.2 MB, free: 1.836 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.007806/0.007835, allocations: 8.612 MB / 387.8 MB, free: 9.18 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.007083/0.01492, allocations: 3.482 MB / 391.3 MB, free: 5.688 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00171/0.01663, allocations: 55.75 kB / 391.4 MB, free: 5.633 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002644/0.01927, allocations: 2.021 MB / 393.4 MB, free: 3.605 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003989/0.02326, allocations: 1.672 MB / 395.1 MB, free: 1.926 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001399/0.02466, allocations: 0.6352 MB / 395.7 MB, free: 1.289 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.005772/0.03043, allocations: 4.054 MB / 399.7 MB, free: 13.23 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002607/0.03304, allocations: 2.319 MB / 402.1 MB, free: 10.85 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002861/0.0359, allocations: 2.273 MB / 404.3 MB, free: 8.57 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002515/0.03842, allocations: 1.804 MB / 406.1 MB, free: 6.762 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000447/0.03886, allocations: 248 kB / 406.4 MB, free: 6.52 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001543/0.0404, allocations: 1.069 MB / 407.5 MB, free: 5.449 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001134/0.04154, allocations: 1.613 MB / 409.1 MB, free: 3.832 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001068/0.04261, allocations: 0.9773 MB / 410 MB, free: 2.852 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004263/0.04687, allocations: 3.885 MB / 413.9 MB, free: 14.95 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.04688, allocations: 4 kB / 413.9 MB, free: 14.95 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.04688, allocations: 0 / 413.9 MB, free: 14.95 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.093e-05/0.04694, allocations: 0 / 413.9 MB, free: 14.95 MB / 394.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.005156/0.05209, allocations: 4.085 MB / 418 MB, free: 10.8 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.706e-05/0.05214, allocations: 12.03 kB / 418 MB, free: 10.79 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008155/0.0603, allocations: 1.817 MB / 419.8 MB, free: 8.969 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002953/0.06325, allocations: 1.637 MB / 421.5 MB, free: 7.297 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001315/0.06338, allocations: 176.9 kB / 421.7 MB, free: 7.121 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004951/0.06387, allocations: 240.2 kB / 421.9 MB, free: 6.887 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006916/0.07079, allocations: 4.495 MB / 426.4 MB, free: 1.508 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.963e-05/0.07088, allocations: 39.64 kB / 426.4 MB, free: 1.469 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002938/0.07117, allocations: 115.9 kB / 426.5 MB, free: 1.355 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001565/0.07274, allocations: 1.387 MB / 427.9 MB, free: 15.97 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004775/0.07751, allocations: 1.894 MB / 429.8 MB, free: 14.06 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2098/0.2874, allocations: 36.42 MB / 466.2 MB, free: 61.84 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001798/0.2892, allocations: 0.7594 MB / 467 MB, free: 61.7 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003227/0.2895, allocations: 233.4 kB / 467.2 MB, free: 61.65 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003673/0.2931, allocations: 2.373 MB / 469.6 MB, free: 60.7 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.368e-05/0.2932, allocations: 44.72 kB / 469.6 MB, free: 60.66 MB / 410.7 MB Notification: Performance of pre-optimization done (n=82): time 4.278e-06/0.2932, allocations: 0 / 469.6 MB, free: 60.66 MB / 410.7 MB Notification: Performance of matching and sorting (n=91): time 0.006808/0.3, allocations: 2.704 MB / 472.3 MB, free: 60.1 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.989e-05/0.3, allocations: 189.4 kB / 472.5 MB, free: 59.88 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003207/0.3033, allocations: 3.344 MB / 475.9 MB, free: 59.35 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.524e-05/0.3033, allocations: 36.14 kB / 475.9 MB, free: 59.32 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001188/0.3045, allocations: 3.071 MB / 479 MB, free: 57.54 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003119/0.3048, allocations: 449 kB / 479.4 MB, free: 57.27 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008553/0.3057, allocations: 1.243 MB / 480.7 MB, free: 56.59 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.551e-05/0.3057, allocations: 483.9 kB / 481.1 MB, free: 56.12 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00068/0.3064, allocations: 456.9 kB / 481.6 MB, free: 56.05 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002241/0.3086, allocations: 6.044 MB / 487.6 MB, free: 48.43 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003834/0.3125, allocations: 7.058 MB / 494.7 MB, free: 40.52 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.018e-05/0.3125, allocations: 35.47 kB / 494.7 MB, free: 40.52 MB / 410.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.005231/0.3178, allocations: 4.396 MB / 499.1 MB, free: 38.82 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.822e-05/0.3178, allocations: 63.09 kB / 499.2 MB, free: 38.82 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001254/0.318, allocations: 132.3 kB / 499.3 MB, free: 38.82 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003212/0.3183, allocations: 209.6 kB / 499.5 MB, free: 38.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001893/0.3202, allocations: 1.241 MB / 0.489 GB, free: 38.64 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008242/0.321, allocations: 1.978 MB / 0.4909 GB, free: 36.84 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002498/0.3235, allocations: 269.7 kB / 0.4912 GB, free: 36.73 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003237/0.3238, allocations: 308.3 kB / 0.4915 GB, free: 36.68 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 604 * 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 (689): * Single equations (assignments): 685 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009107/0.3247, allocations: 0.6232 MB / 0.4921 GB, free: 36.18 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004055/0.3251, allocations: 308.2 kB / 0.4924 GB, free: 36.01 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005861/0.3257, allocations: 495.2 kB / 0.4929 GB, free: 35.79 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.611e-05/0.3257, allocations: 10.88 kB / 0.4929 GB, free: 35.79 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.626e-06/0.3257, allocations: 6.312 kB / 0.4929 GB, free: 35.79 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.3258, allocations: 4.625 kB / 0.4929 GB, free: 35.79 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004449/0.3302, allocations: 3.001 MB / 0.4958 GB, free: 34.23 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.532e-05/0.3302, allocations: 6.75 kB / 0.4958 GB, free: 34.23 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003994/0.3306, allocations: 107.3 kB / 0.4959 GB, free: 34.22 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002086/0.3308, allocations: 43.64 kB / 0.496 GB, free: 34.2 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.229e-05/0.3309, allocations: 19.17 kB / 0.496 GB, free: 34.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008475/0.3317, allocations: 1.739 MB / 0.4977 GB, free: 32.45 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.093e-06/0.3317, allocations: 7.719 kB / 0.4977 GB, free: 32.45 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001899/0.3336, allocations: 1.436 MB / 0.4991 GB, free: 31.45 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007272/0.3344, allocations: 263.7 kB / 0.4994 GB, free: 31.27 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003398/0.3347, allocations: 15.16 kB / 0.4994 GB, free: 31.27 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000542/0.3352, allocations: 25.69 kB / 0.4994 GB, free: 31.25 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001137/0.3354, allocations: 60.09 kB / 0.4994 GB, free: 31.24 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.897e-05/0.3354, allocations: 24.34 kB / 0.4995 GB, free: 31.23 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002114/0.3375, allocations: 1.31 MB / 0.5008 GB, free: 30.79 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.3375, allocations: 0 / 0.5008 GB, free: 30.79 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004132/0.3416, allocations: 0.7863 MB / 0.5015 GB, free: 30.68 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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 (69): * Single equations (assignments): 65 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003416/0.342, allocations: 152.7 kB / 0.5017 GB, free: 30.57 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003377/0.3454, allocations: 2.328 MB / 0.5039 GB, free: 29.69 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.675e-06/0.3454, allocations: 5.25 kB / 0.5039 GB, free: 29.68 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004025/0.3458, allocations: 404.4 kB / 0.5043 GB, free: 29.45 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001516/0.3473, allocations: 335.1 kB / 0.5046 GB, free: 29.3 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007424/0.3547, allocations: 5.665 MB / 0.5102 GB, free: 26.38 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009579/0.3557, allocations: 0.958 MB / 0.5111 GB, free: 26.06 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001047/0.3567, allocations: 434.2 kB / 0.5115 GB, free: 25.93 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005685/0.3573, allocations: 487.8 kB / 0.512 GB, free: 25.85 MB / 410.7 MB Notification: Performance of SimCode: time 1.222e-06/0.3573, allocations: 0 / 0.512 GB, free: 25.85 MB / 410.7 MB Notification: Performance of Templates: time 0.03382/0.3911, allocations: 20.55 MB / 0.5321 GB, free: 12.56 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_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","",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.11198935797438]