Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.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.0009207/0.0009207, allocations: 80.8 kB / 21.5 MB, free: 2.992 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.0008768/0.0008768, allocations: 169.1 kB / 24.91 MB, free: 9.184 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.8769/0.8769, allocations: 177.1 MB / 205.3 MB, free: 5.5 MB / 186.7 MB " [Timeout remaining time 179] 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(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|body1.r_0.[0-9,]+.|body1.v_0.[0-9,]+.|body2.r_0.[0-9,]+.|body2.v_0.[0-9,]+.|body3.r_0.[0-9,]+.|body3.v_0.[0-9,]+.|body4.r_0.[0-9,]+.|body4.v_0.[0-9,]+.",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|body1.r_0.[0-9,]+.|body1.v_0.[0-9,]+.|body2.r_0.[0-9,]+.|body2.v_0.[0-9,]+.|body3.r_0.[0-9,]+.|body3.v_0.[0-9,]+.|body4.r_0.[0-9,]+.|body4.v_0.[0-9,]+.",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.272e-06/1.272e-06, allocations: 0 / 273.4 MB, free: 1.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.367e-06/1.064e-05, allocations: 6.312 kB / 273.4 MB, free: 1.312 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.005755/0.005765, allocations: 7.532 MB / 281 MB, free: 9.746 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003738/0.009504, allocations: 2.593 MB / 283.6 MB, free: 7.145 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004854/0.009989, allocations: 43.81 kB / 283.6 MB, free: 7.102 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001679/0.01167, allocations: 1.526 MB / 285.1 MB, free: 5.57 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001391/0.01306, allocations: 1.061 MB / 286.2 MB, free: 4.504 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000442/0.0135, allocations: 283.2 kB / 286.5 MB, free: 4.227 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001903/0.0154, allocations: 2.219 MB / 288.7 MB, free: 2.004 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001162/0.01657, allocations: 1.438 MB / 290.1 MB, free: 0.5312 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.09866/0.1152, allocations: 1.237 MB / 291.4 MB, free: 15.57 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001532/0.1168, allocations: 1.162 MB / 292.5 MB, free: 15.57 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003315/0.1171, allocations: 162.4 kB / 292.7 MB, free: 15.57 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000949/0.118, allocations: 0.6044 MB / 293.3 MB, free: 15.57 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008/0.1188, allocations: 1.225 MB / 294.5 MB, free: 15.57 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007967/0.1196, allocations: 0.7293 MB / 295.3 MB, free: 15.54 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002517/0.1222, allocations: 2.759 MB / 298 MB, free: 15.08 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.616e-06/0.1222, allocations: 1.125 kB / 298 MB, free: 15.08 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1222, allocations: 0 / 298 MB, free: 15.08 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.375e-05/0.1222, allocations: 3.938 kB / 298 MB, free: 15.08 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1113 * Number of variables: 1113 Notification: Performance of Generate backend data structure: time 0.003027/0.1253, allocations: 2.783 MB / 300.8 MB, free: 13.79 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.794e-05/0.1253, allocations: 10.19 kB / 300.8 MB, free: 13.79 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002561/0.1279, allocations: 0.9522 MB / 301.8 MB, free: 13.77 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001004/0.1289, allocations: 0.8906 MB / 302.7 MB, free: 13.43 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.341e-05/0.1289, allocations: 149.5 kB / 302.8 MB, free: 13.43 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002545/0.1292, allocations: 205.2 kB / 303 MB, free: 13.43 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00376/0.133, allocations: 3.904 MB / 306.9 MB, free: 11.76 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.428e-05/0.133, allocations: 35.08 kB / 306.9 MB, free: 11.75 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001769/0.1332, allocations: 106.9 kB / 307 MB, free: 11.75 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001122/0.1343, allocations: 1.381 MB / 308.4 MB, free: 11.68 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003251/0.1376, allocations: 2.019 MB / 310.4 MB, free: 11.29 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01214/0.1497, allocations: 23.58 MB / 334 MB, free: 3.645 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003979/0.1537, allocations: 1.725 MB / 335.8 MB, free: 1.895 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003229/0.154, allocations: 410.3 kB / 336.2 MB, free: 1.48 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002124/0.1561, allocations: 2.308 MB / 338.5 MB, free: 15.18 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.708e-05/0.1561, allocations: 49.7 kB / 338.5 MB, free: 15.13 MB / 298.7 MB Notification: Performance of pre-optimization done (n=111): time 2.304e-06/0.1561, allocations: 0 / 338.5 MB, free: 15.13 MB / 298.7 MB Notification: Performance of matching and sorting (n=111): time 0.007189/0.1633, allocations: 2.662 MB / 341.2 MB, free: 12.5 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.054e-05/0.1634, allocations: 194.9 kB / 341.4 MB, free: 12.27 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001461/0.1649, allocations: 2.196 MB / 343.6 MB, free: 10.49 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.057e-05/0.1649, allocations: 44.75 kB / 343.6 MB, free: 10.45 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009122/0.1658, allocations: 2.464 MB / 346.1 MB, free: 8.102 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000254/0.1661, allocations: 0.5009 MB / 346.6 MB, free: 7.625 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007729/0.1668, allocations: 1.02 MB / 347.6 MB, free: 6.715 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.016e-05/0.1669, allocations: 345.8 kB / 347.9 MB, free: 6.387 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006021/0.1675, allocations: 0.5453 MB / 348.5 MB, free: 5.836 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002045/0.1696, allocations: 3.983 MB / 352.4 MB, free: 148 kB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003347/0.1729, allocations: 5.204 MB / 357.7 MB, free: 9.16 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-05/0.173, allocations: 40 kB / 357.7 MB, free: 9.121 MB / 314.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.003398/0.1764, allocations: 3.643 MB / 361.3 MB, free: 5.457 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.806e-05/0.1764, allocations: 64.25 kB / 361.4 MB, free: 5.395 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.978e-05/0.1765, allocations: 124 kB / 361.5 MB, free: 5.273 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.428e-05/0.1766, allocations: 168 kB / 361.7 MB, free: 5.109 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002224/0.1788, allocations: 1.353 MB / 363 MB, free: 3.754 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001097/0.1789, allocations: 247 kB / 363.3 MB, free: 3.512 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001472/0.1804, allocations: 0.7251 MB / 364 MB, free: 2.781 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002379/0.1806, allocations: 296 kB / 364.3 MB, free: 2.492 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 580 * Number of states: 0 () * Number of discrete variables: 30 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],body4.sphereColor[3],body4.sphereColor[2],body4.sphereColor[1],body3.sphereColor[3],body3.sphereColor[2],body3.sphereColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (681): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000606/0.1812, allocations: 0.5742 MB / 364.9 MB, free: 1.902 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001821/0.1814, allocations: 147.8 kB / 365 MB, free: 1.758 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000231/0.1816, allocations: 241.1 kB / 365.2 MB, free: 1.516 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.353e-05/0.1816, allocations: 16 kB / 365.3 MB, free: 1.5 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/0.1817, allocations: 0 / 365.3 MB, free: 1.5 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.734e-06/0.1817, allocations: 7.984 kB / 365.3 MB, free: 1.492 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001871/0.1835, allocations: 1.622 MB / 366.9 MB, free: 15.84 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.1835, allocations: 0 / 366.9 MB, free: 15.84 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009212/0.1845, allocations: 311.6 kB / 367.2 MB, free: 15.54 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.419e-06/0.1845, allocations: 4 kB / 367.2 MB, free: 15.53 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.885e-05/0.1845, allocations: 27.97 kB / 367.2 MB, free: 15.5 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.338e-06/0.1845, allocations: 4.547 kB / 367.2 MB, free: 15.5 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.1845, allocations: 4 kB / 367.2 MB, free: 15.5 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001047/0.1856, allocations: 1.404 MB / 368.6 MB, free: 14.07 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001473/0.1857, allocations: 206.2 kB / 368.8 MB, free: 13.87 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001403/0.1858, allocations: 31.98 kB / 368.9 MB, free: 13.84 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003759/0.1862, allocations: 23.97 kB / 368.9 MB, free: 13.82 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.892e-05/0.1863, allocations: 51.84 kB / 368.9 MB, free: 13.77 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.766e-05/0.1863, allocations: 31.92 kB / 369 MB, free: 13.73 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0006211/0.187, allocations: 0.8154 MB / 369.8 MB, free: 12.91 MB / 330.7 MB Notification: Performance of sort global known variables: time 9e-08/0.187, allocations: 0 / 369.8 MB, free: 12.91 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001932/0.1889, allocations: 0.8419 MB / 370.6 MB, free: 12.06 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 24 (body1.r_0[1],body1.r_0[2],body1.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body2.r_0[1],body2.r_0[2],body2.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body3.r_0[1],body3.r_0[2],body3.r_0[3],body3.v_0[1],body3.v_0[2],body3.v_0[3],body4.r_0[1],body4.r_0[2],body4.r_0[3],body4.v_0[1],body4.v_0[2],body4.v_0[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (87): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002208/0.1891, allocations: 144.1 kB / 370.8 MB, free: 11.91 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001573/0.1907, allocations: 1.976 MB / 372.8 MB, free: 9.949 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001402/0.1908, allocations: 88.59 kB / 372.8 MB, free: 9.848 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002267/0.191, allocations: 241 kB / 373.1 MB, free: 9.613 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007799/0.1918, allocations: 234.4 kB / 373.3 MB, free: 9.387 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004842/0.1967, allocations: 5.154 MB / 378.5 MB, free: 4.152 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006556/0.1973, allocations: 0.8157 MB / 379.3 MB, free: 3.32 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0008193/0.1981, allocations: 396.8 kB / 379.7 MB, free: 2.93 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004388/0.1986, allocations: 401.3 kB / 380.1 MB, free: 2.539 MB / 330.7 MB Notification: Performance of SimCode: time 6.72e-07/0.1986, allocations: 0 / 380.1 MB, free: 2.539 MB / 330.7 MB Notification: Performance of Templates: time 0.02597/0.2246, allocations: 17.41 MB / 397.5 MB, free: 1.32 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.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: 3.1611746288836002]