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.001865/0.001865, allocations: 103.5 kB / 20.97 MB, free: 3.438 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.001936/0.001936, allocations: 156.9 kB / 24.27 MB, free: 144 kB / 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 1.599/1.599, allocations: 177 MB / 204.4 MB, free: 5.641 MB / 186.7 MB " [Timeout remaining time 178] 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.3683/0.3683, allocations: 34.25 MB / 295.2 MB, free: 0.6523 MB / 266.7 MB " [Timeout remaining time 179] 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 / 377.2 MB, free: 2.953 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.071e-05/3.264e-05, allocations: 3.156 kB / 377.2 MB, free: 2.949 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.02232/0.02235, allocations: 8.742 MB / 385.9 MB, free: 10.16 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.01315/0.0355, allocations: 3.489 MB / 389.4 MB, free: 6.664 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001312/0.03681, allocations: 55.75 kB / 389.5 MB, free: 6.609 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004299/0.04111, allocations: 2.044 MB / 391.5 MB, free: 4.559 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0044/0.04551, allocations: 1.68 MB / 393.2 MB, free: 2.871 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001442/0.04695, allocations: 0.6158 MB / 393.8 MB, free: 2.254 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.006052/0.053, allocations: 4.049 MB / 397.9 MB, free: 14.2 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003646/0.05665, allocations: 2.319 MB / 400.2 MB, free: 11.82 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003425/0.06008, allocations: 1.781 MB / 402 MB, free: 10.04 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003301/0.06338, allocations: 1.824 MB / 403.8 MB, free: 8.207 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006305/0.06401, allocations: 244 kB / 404 MB, free: 7.969 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002314/0.06632, allocations: 1.076 MB / 405.1 MB, free: 6.891 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00195/0.06827, allocations: 1.621 MB / 406.7 MB, free: 5.266 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001651/0.06992, allocations: 0.9695 MB / 407.7 MB, free: 4.293 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01139/0.08131, allocations: 5.786 MB / 413.5 MB, free: 14.49 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.033e-06/0.08132, allocations: 0 / 413.5 MB, free: 14.49 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.08132, allocations: 0 / 413.5 MB, free: 14.49 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002116/0.08153, allocations: 0 / 413.5 MB, free: 14.49 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.01632/0.09786, allocations: 4.542 MB / 418 MB, free: 9.883 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.755e-05/0.09792, allocations: 12.03 kB / 418 MB, free: 9.871 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02966/0.1276, allocations: 2.764 MB / 420.8 MB, free: 7.102 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009996/0.1376, allocations: 2.062 MB / 422.9 MB, free: 5.004 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003025/0.1379, allocations: 176.8 kB / 423 MB, free: 4.828 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001252/0.1391, allocations: 240.1 kB / 423.3 MB, free: 4.594 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01449/0.1536, allocations: 5.179 MB / 428.5 MB, free: 14.53 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001741/0.1538, allocations: 39.64 kB / 428.5 MB, free: 14.49 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009442/0.1547, allocations: 111.9 kB / 428.6 MB, free: 14.38 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003331/0.1581, allocations: 1.59 MB / 430.2 MB, free: 12.79 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01123/0.1693, allocations: 2.716 MB / 432.9 MB, free: 10.07 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2249/0.3942, allocations: 39.3 MB / 472.2 MB, free: 64.72 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003404/0.3976, allocations: 1.014 MB / 473.2 MB, free: 64.44 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006936/0.3982, allocations: 384.8 kB / 473.6 MB, free: 64.33 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002437/0.3985, allocations: 100.2 kB / 473.7 MB, free: 64.31 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.738e-05/0.3985, allocations: 40.61 kB / 473.7 MB, free: 64.26 MB / 410.7 MB Notification: Performance of pre-optimization done (n=104): time 3.496e-06/0.3985, allocations: 0 / 473.7 MB, free: 64.26 MB / 410.7 MB Notification: Performance of matching and sorting (n=118): time 0.01933/0.4179, allocations: 7.026 MB / 480.8 MB, free: 61.6 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.242e-05/0.4179, allocations: 194 kB / 480.9 MB, free: 61.38 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005266/0.4232, allocations: 4.057 MB / 485 MB, free: 59.64 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002222/0.4234, allocations: 40.98 kB / 485 MB, free: 59.6 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001773/0.4252, allocations: 3.161 MB / 488.2 MB, free: 57.32 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006036/0.4258, allocations: 0.5522 MB / 488.8 MB, free: 56.93 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001541/0.4273, allocations: 1.428 MB / 490.2 MB, free: 56.18 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.26e-05/0.4274, allocations: 480.7 kB / 490.7 MB, free: 55.71 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001188/0.4286, allocations: 0.6119 MB / 491.3 MB, free: 55.61 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003259/0.4319, allocations: 6.13 MB / 497.4 MB, free: 48.18 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006092/0.438, allocations: 7.338 MB / 0.4929 GB, free: 39.99 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001424/0.4381, allocations: 36.09 kB / 0.4929 GB, free: 39.99 MB / 410.7 MB Notification: Performance of matching and sorting (n=717) (initialization): time 0.01106/0.4492, allocations: 5.112 MB / 0.4979 GB, free: 38.09 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000115/0.4493, allocations: 58.72 kB / 0.498 GB, free: 38.09 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001849/0.4495, allocations: 126 kB / 0.4981 GB, free: 38.09 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001683/0.4511, allocations: 475.1 kB / 0.4986 GB, free: 38.05 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003749/0.4549, allocations: 1.252 MB / 0.4998 GB, free: 37.89 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003273/0.4582, allocations: 2.972 MB / 0.5027 GB, free: 35.54 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004343/0.4625, allocations: 333.9 kB / 0.503 GB, free: 35.42 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005576/0.4631, allocations: 347.4 kB / 0.5033 GB, free: 35.38 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.001336/0.4644, allocations: 0.6946 MB / 0.504 GB, free: 34.84 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004889/0.4649, allocations: 314.5 kB / 0.5043 GB, free: 34.67 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002336/0.4672, allocations: 1.029 MB / 0.5053 GB, free: 34.33 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.766e-05/0.4672, allocations: 11.38 kB / 0.5053 GB, free: 34.33 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.696e-06/0.4672, allocations: 3.875 kB / 0.5053 GB, free: 34.33 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.024e-05/0.4673, allocations: 7.469 kB / 0.5053 GB, free: 34.32 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008169/0.4754, allocations: 4.624 MB / 0.5099 GB, free: 32.29 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.275e-06/0.4754, allocations: 3.328 kB / 0.5099 GB, free: 32.29 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007082/0.4761, allocations: 158.6 kB / 0.51 GB, free: 32.27 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00121/0.4774, allocations: 295.6 kB / 0.5103 GB, free: 32.23 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.278e-05/0.4774, allocations: 25.78 kB / 0.5103 GB, free: 32.22 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00233/0.4798, allocations: 2.366 MB / 0.5126 GB, free: 30.23 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.4798, allocations: 0 / 0.5126 GB, free: 30.23 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003432/0.4832, allocations: 2.058 MB / 0.5146 GB, free: 29.19 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000669/0.4839, allocations: 275.9 kB / 0.5149 GB, free: 29 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002905/0.4842, allocations: 18.38 kB / 0.5149 GB, free: 28.99 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001076/0.4852, allocations: 84.81 kB / 0.515 GB, free: 28.98 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001699/0.4854, allocations: 71.34 kB / 0.5151 GB, free: 28.96 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.321e-05/0.4855, allocations: 30.92 kB / 0.5151 GB, free: 28.96 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002229/0.4877, allocations: 1.632 MB / 0.5167 GB, free: 27.64 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4877, allocations: 0 / 0.5167 GB, free: 27.64 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004133/0.4918, allocations: 0.8663 MB / 0.5175 GB, free: 26.78 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.0003512/0.4922, allocations: 154.5 kB / 0.5177 GB, free: 26.62 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004961/0.4972, allocations: 2.904 MB / 0.5205 GB, free: 24.02 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.4972, allocations: 0 / 0.5205 GB, free: 24.02 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008703/0.498, allocations: 0.6194 MB / 0.5211 GB, free: 23.43 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00188/0.4999, allocations: 330.8 kB / 0.5214 GB, free: 23.17 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008902/0.5088, allocations: 5.848 MB / 0.5272 GB, free: 17.75 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002283/0.5111, allocations: 1.965 MB / 0.5291 GB, free: 16.33 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003221/0.5143, allocations: 1.45 MB / 0.5305 GB, free: 15.5 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004787/0.5148, allocations: 195.9 kB / 0.5307 GB, free: 15.32 MB / 410.7 MB Notification: Performance of SimCode: time 1.343e-06/0.5148, allocations: 0 / 0.5307 GB, free: 15.32 MB / 410.7 MB Notification: Performance of Templates: time 0.04559/0.5604, allocations: 23.69 MB / 0.5538 GB, free: 9.332 MB / 426.7 MB " [Timeout remaining time 659] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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.690203586011194]