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.0009571/0.0009571, allocations: 67.77 kB / 21.69 MB, free: 2.855 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.0009655/0.0009655, allocations: 162.1 kB / 24.99 MB, free: 9.324 MB / 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.9867/0.9867, allocations: 177.1 MB / 205.3 MB, free: 5.617 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.2558/0.2558, allocations: 32.81 MB / 294.6 MB, free: 1.285 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.693e-06/1.693e-06, allocations: 0 / 376 MB, free: 5 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.411e-05/1.58e-05, allocations: 2.312 kB / 376 MB, free: 4.996 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01199/0.012, allocations: 8.783 MB / 384.8 MB, free: 12.17 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.006575/0.01858, allocations: 3.5 MB / 388.3 MB, free: 8.66 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001101/0.01968, allocations: 59.75 kB / 388.3 MB, free: 8.602 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002193/0.02187, allocations: 2.04 MB / 390.4 MB, free: 6.555 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002924/0.02479, allocations: 1.676 MB / 392 MB, free: 4.871 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00108/0.02587, allocations: 0.6235 MB / 392.7 MB, free: 4.246 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.004523/0.0304, allocations: 4.051 MB / 396.7 MB, free: 192 kB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002446/0.03284, allocations: 2.319 MB / 399 MB, free: 13.81 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0028/0.03564, allocations: 1.777 MB / 400.8 MB, free: 12.03 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001882/0.03752, allocations: 1.828 MB / 402.6 MB, free: 10.2 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003799/0.0379, allocations: 248 kB / 402.9 MB, free: 9.953 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001375/0.03928, allocations: 1.076 MB / 404 MB, free: 8.875 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001096/0.04038, allocations: 1.621 MB / 405.6 MB, free: 7.25 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001221/0.0416, allocations: 0.9734 MB / 406.6 MB, free: 6.273 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004692/0.04629, allocations: 3.877 MB / 410.4 MB, free: 2.383 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.036e-06/0.0463, allocations: 0 / 410.4 MB, free: 2.383 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.0463, allocations: 0 / 410.4 MB, free: 2.383 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001665/0.04646, allocations: 0 / 410.4 MB, free: 2.383 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.006722/0.05319, allocations: 4.195 MB / 414.6 MB, free: 14.12 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.558e-05/0.05323, allocations: 12.02 kB / 414.6 MB, free: 14.11 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008042/0.06127, allocations: 2.756 MB / 417.4 MB, free: 11.35 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003369/0.06464, allocations: 2.027 MB / 419.4 MB, free: 9.289 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001105/0.06475, allocations: 176.8 kB / 419.6 MB, free: 9.113 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004567/0.06521, allocations: 228.3 kB / 419.8 MB, free: 8.891 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006402/0.07161, allocations: 4.855 MB / 424.7 MB, free: 3.148 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.116e-05/0.07169, allocations: 39.64 kB / 424.7 MB, free: 3.109 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002582/0.07195, allocations: 115.9 kB / 424.8 MB, free: 2.996 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001504/0.07346, allocations: 1.59 MB / 426.4 MB, free: 1.406 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005284/0.07874, allocations: 2.452 MB / 428.9 MB, free: 14.94 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1903/0.269, allocations: 36.51 MB / 465.4 MB, free: 70.03 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002165/0.2712, allocations: 0.9609 MB / 466.3 MB, free: 69.88 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004496/0.2717, allocations: 365 kB / 466.7 MB, free: 69.84 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001781/0.2718, allocations: 89.75 kB / 466.8 MB, free: 69.84 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.985e-05/0.2719, allocations: 54.77 kB / 466.8 MB, free: 69.79 MB / 410.7 MB Notification: Performance of pre-optimization done (n=104): time 3.176e-06/0.2719, allocations: 0.7188 kB / 466.8 MB, free: 69.79 MB / 410.7 MB Notification: Performance of matching and sorting (n=118): time 0.01245/0.2843, allocations: 6.91 MB / 473.7 MB, free: 67.41 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.132e-05/0.2844, allocations: 193.5 kB / 473.9 MB, free: 67.19 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003102/0.2875, allocations: 3.262 MB / 477.2 MB, free: 65.84 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.827e-05/0.2876, allocations: 40.7 kB / 477.2 MB, free: 65.8 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001107/0.2887, allocations: 2.971 MB / 480.2 MB, free: 63.64 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004148/0.2891, allocations: 0.5266 MB / 480.7 MB, free: 63.27 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009345/0.29, allocations: 1.21 MB / 481.9 MB, free: 62.62 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.486e-05/0.2901, allocations: 480.1 kB / 482.4 MB, free: 62.15 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009361/0.291, allocations: 0.5582 MB / 483 MB, free: 62.08 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002371/0.2934, allocations: 5.91 MB / 488.9 MB, free: 54.8 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00467/0.298, allocations: 7.065 MB / 495.9 MB, free: 46.81 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001195/0.2982, allocations: 35.66 kB / 496 MB, free: 46.81 MB / 410.7 MB Notification: Performance of matching and sorting (n=717) (initialization): time 0.007658/0.3058, allocations: 4.999 MB / 0.4892 GB, free: 44.96 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.058e-05/0.3059, allocations: 59.53 kB / 0.4893 GB, free: 44.96 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001561/0.3061, allocations: 125.9 kB / 0.4894 GB, free: 44.96 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001182/0.3072, allocations: 464.7 kB / 0.4899 GB, free: 44.94 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002506/0.3097, allocations: 1.247 MB / 0.4911 GB, free: 44.78 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002373/0.3121, allocations: 2.904 MB / 0.4939 GB, free: 42.47 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00268/0.3148, allocations: 326.6 kB / 0.4942 GB, free: 42.36 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004854/0.3153, allocations: 345 kB / 0.4946 GB, free: 42.32 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.001247/0.3165, allocations: 0.6171 MB / 0.4952 GB, free: 41.82 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005378/0.3171, allocations: 322.6 kB / 0.4955 GB, free: 41.65 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001545/0.3186, allocations: 0.998 MB / 0.4964 GB, free: 41.32 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.253e-05/0.3186, allocations: 13.47 kB / 0.4965 GB, free: 41.32 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.238e-05/0.3187, allocations: 3.344 kB / 0.4965 GB, free: 41.32 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.042e-05/0.3187, allocations: 8.203 kB / 0.4965 GB, free: 41.32 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005882/0.3245, allocations: 3.874 MB / 0.5002 GB, free: 39.65 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.602e-05/0.3246, allocations: 3.938 kB / 0.5003 GB, free: 39.64 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004785/0.325, allocations: 159.7 kB / 0.5004 GB, free: 39.63 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007622/0.3258, allocations: 283.8 kB / 0.5007 GB, free: 39.61 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.625e-05/0.3259, allocations: 19.78 kB / 0.5007 GB, free: 39.59 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001767/0.3276, allocations: 2.289 MB / 0.5029 GB, free: 37.64 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.3276, allocations: 13.23 kB / 0.5029 GB, free: 37.63 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002635/0.3303, allocations: 1.95 MB / 0.5048 GB, free: 36.65 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000524/0.3308, allocations: 274.3 kB / 0.5051 GB, free: 36.46 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002103/0.331, allocations: 22.02 kB / 0.5051 GB, free: 36.45 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006197/0.3316, allocations: 90.59 kB / 0.5052 GB, free: 36.44 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001745/0.3318, allocations: 63.39 kB / 0.5053 GB, free: 36.43 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.654e-05/0.3319, allocations: 34.45 kB / 0.5053 GB, free: 36.42 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001828/0.3337, allocations: 1.378 MB / 0.5067 GB, free: 35.95 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.3337, allocations: 0 / 0.5067 GB, free: 35.95 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003575/0.3373, allocations: 0.8581 MB / 0.5075 GB, free: 35.85 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.0003809/0.3377, allocations: 159.1 kB / 0.5076 GB, free: 35.73 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00419/0.3418, allocations: 2.625 MB / 0.5102 GB, free: 34.77 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.51e-06/0.3418, allocations: 0 / 0.5102 GB, free: 34.77 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006618/0.3425, allocations: 0.5627 MB / 0.5108 GB, free: 34.48 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00147/0.344, allocations: 324.5 kB / 0.5111 GB, free: 34.21 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008761/0.3527, allocations: 5.817 MB / 0.5167 GB, free: 28.84 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009617/0.3537, allocations: 0.9788 MB / 0.5177 GB, free: 28.13 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002583/0.3563, allocations: 1.451 MB / 0.5191 GB, free: 27.31 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004315/0.3567, allocations: 197.3 kB / 0.5193 GB, free: 27.12 MB / 410.7 MB Notification: Performance of SimCode: time 2.364e-06/0.3567, allocations: 3.938 kB / 0.5193 GB, free: 27.12 MB / 410.7 MB Notification: Performance of Templates: time 0.03408/0.3908, allocations: 23.72 MB / 0.5425 GB, free: 6.043 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.111912295920774]