Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.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.0007519/0.0007519, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001051/0.001803, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 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.0006897/0.0006897, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009162/0.001606, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 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.9072/0.9072, allocations: 177.5 MB / 190 MB, free: 4.812 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08928/0.9965, allocations: 53.86 MB / 243.9 MB, free: 14.88 MB / 250.7 MB " [Timeout remaining time 179] 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(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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.302e-06/1.302e-06, allocations: 0 / 245.2 MB, free: 13.59 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.321e-05/1.451e-05, allocations: 5.406 kB / 245.2 MB, free: 13.58 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.00562/0.005634, allocations: 7.631 MB / 252.8 MB, free: 5.91 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003381/0.009016, allocations: 2.608 MB / 255.4 MB, free: 3.297 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003803/0.009396, allocations: 43.81 kB / 255.5 MB, free: 3.254 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001422/0.01082, allocations: 1.467 MB / 257 MB, free: 1.781 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001217/0.01204, allocations: 1.049 MB / 258 MB, free: 0.7266 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003583/0.01239, allocations: 279.2 kB / 258.3 MB, free: 464 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001403/0.0138, allocations: 2.2 MB / 260.5 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009218/0.01472, allocations: 1.353 MB / 261.8 MB, free: 12.87 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009347/0.01565, allocations: 1.281 MB / 263.1 MB, free: 11.59 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009646/0.01662, allocations: 1.138 MB / 264.3 MB, free: 10.45 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001702/0.01679, allocations: 163.9 kB / 264.4 MB, free: 10.29 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006924/0.01748, allocations: 0.6317 MB / 265 MB, free: 9.652 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000593/0.01807, allocations: 1.118 MB / 266.2 MB, free: 8.531 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004371/0.01851, allocations: 0.6034 MB / 266.8 MB, free: 7.926 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001775/0.02029, allocations: 2.591 MB / 269.4 MB, free: 5.324 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.047e-05/0.0203, allocations: 4 kB / 269.4 MB, free: 5.32 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.52e-07/0.0203, allocations: 0 / 269.4 MB, free: 5.32 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.023e-05/0.02033, allocations: 0 / 269.4 MB, free: 5.32 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.002386/0.02271, allocations: 3.327 MB / 272.7 MB, free: 1.949 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.226e-05/0.02275, allocations: 8.625 kB / 272.7 MB, free: 1.941 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002497/0.02524, allocations: 1.044 MB / 273.7 MB, free: 0.8789 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1043/0.1296, allocations: 0.8806 MB / 274.6 MB, free: 20.33 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001338/0.1297, allocations: 153.6 kB / 274.8 MB, free: 20.33 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004637/0.1302, allocations: 205.8 kB / 275 MB, free: 20.33 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005059/0.1352, allocations: 3.888 MB / 278.9 MB, free: 18.67 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.381e-05/0.1353, allocations: 46.03 kB / 278.9 MB, free: 18.67 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001861/0.1355, allocations: 101.5 kB / 279 MB, free: 18.67 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001485/0.137, allocations: 1.303 MB / 280.3 MB, free: 18.67 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004091/0.1411, allocations: 2.023 MB / 282.3 MB, free: 18.62 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01135/0.1524, allocations: 23.57 MB / 305.9 MB, free: 148 kB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003683/0.1561, allocations: 1.704 MB / 307.6 MB, free: 14.93 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003152/0.1564, allocations: 408 kB / 308 MB, free: 14.52 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002305/0.1587, allocations: 2.297 MB / 310.3 MB, free: 12.23 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.923e-05/0.1588, allocations: 50.81 kB / 310.3 MB, free: 12.17 MB / 282.7 MB Notification: Performance of pre-optimization done (n=111): time 2.184e-06/0.1588, allocations: 0 / 310.3 MB, free: 12.17 MB / 282.7 MB Notification: Performance of matching and sorting (n=111): time 0.006755/0.1655, allocations: 2.611 MB / 313 MB, free: 9.586 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.027e-05/0.1656, allocations: 199.8 kB / 313.2 MB, free: 9.348 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001375/0.167, allocations: 2.191 MB / 315.3 MB, free: 7.172 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.922e-05/0.167, allocations: 37.7 kB / 315.4 MB, free: 7.129 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001193/0.1682, allocations: 2.471 MB / 317.9 MB, free: 4.645 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002678/0.1685, allocations: 0.5041 MB / 318.4 MB, free: 4.137 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007375/0.1692, allocations: 1.021 MB / 319.4 MB, free: 3.105 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.023e-05/0.1693, allocations: 337.9 kB / 319.7 MB, free: 2.77 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005658/0.1698, allocations: 0.5491 MB / 320.3 MB, free: 2.215 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00209/0.1719, allocations: 3.974 MB / 324.2 MB, free: 12.45 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004261/0.1762, allocations: 5.611 MB / 329.8 MB, free: 5.043 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.59e-05/0.1762, allocations: 36 kB / 329.9 MB, free: 5.008 MB / 298.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.003875/0.1801, allocations: 3.643 MB / 333.5 MB, free: 1.348 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.973e-05/0.1802, allocations: 60 kB / 333.6 MB, free: 1.289 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001086/0.1803, allocations: 136 kB / 333.7 MB, free: 1.156 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000102/0.1804, allocations: 168 kB / 333.9 MB, free: 0.9922 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002771/0.1832, allocations: 1.565 MB / 335.4 MB, free: 15.43 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001188/0.1833, allocations: 251 kB / 335.7 MB, free: 15.18 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001665/0.1849, allocations: 0.72 MB / 336.4 MB, free: 14.46 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002286/0.1852, allocations: 296 kB / 336.7 MB, free: 14.17 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.0007055/0.1859, allocations: 0.5742 MB / 337.3 MB, free: 13.58 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001819/0.1861, allocations: 151.8 kB / 337.4 MB, free: 13.43 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002215/0.1863, allocations: 237.1 kB / 337.6 MB, free: 13.2 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.254e-05/0.1863, allocations: 8 kB / 337.7 MB, free: 13.19 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.201e-06/0.1863, allocations: 4 kB / 337.7 MB, free: 13.18 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.1863, allocations: 7.984 kB / 337.7 MB, free: 13.18 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001881/0.1882, allocations: 1.61 MB / 339.3 MB, free: 11.54 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.18e-05/0.1882, allocations: 11.98 kB / 339.3 MB, free: 11.52 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001152/0.1893, allocations: 407.6 kB / 339.7 MB, free: 11.12 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000137/0.1895, allocations: 206.2 kB / 339.9 MB, free: 10.92 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.991e-06/0.1895, allocations: 4 kB / 339.9 MB, free: 10.92 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.313e-05/0.1895, allocations: 35.97 kB / 339.9 MB, free: 10.88 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.648e-06/0.1895, allocations: 7.938 kB / 339.9 MB, free: 10.88 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.1895, allocations: 3.938 kB / 339.9 MB, free: 10.87 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008618/0.1904, allocations: 1.412 MB / 341.4 MB, free: 9.441 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001224/0.1905, allocations: 23.98 kB / 341.4 MB, free: 9.418 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003553/0.1909, allocations: 24 kB / 341.4 MB, free: 9.395 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.022e-05/0.191, allocations: 51.83 kB / 341.4 MB, free: 9.344 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.838e-05/0.191, allocations: 28 kB / 341.5 MB, free: 9.316 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000624/0.1916, allocations: 0.8154 MB / 342.3 MB, free: 8.488 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1916, allocations: 0 / 342.3 MB, free: 8.488 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00182/0.1934, allocations: 0.8458 MB / 343.1 MB, free: 7.641 MB / 314.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.0002238/0.1937, allocations: 147.4 kB / 343.3 MB, free: 7.492 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001562/0.1952, allocations: 2.084 MB / 345.4 MB, free: 5.496 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001272/0.1954, allocations: 89.16 kB / 345.5 MB, free: 5.398 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002838/0.1956, allocations: 298.1 kB / 345.7 MB, free: 5.105 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00128/0.1969, allocations: 1.599 MB / 347.3 MB, free: 3.312 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005234/0.2022, allocations: 5.183 MB / 352.5 MB, free: 14.06 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006005/0.2028, allocations: 0.8288 MB / 353.4 MB, free: 13.21 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0007389/0.2035, allocations: 393 kB / 353.7 MB, free: 12.82 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000411/0.2039, allocations: 397.3 kB / 354.1 MB, free: 12.43 MB / 330.7 MB Notification: Performance of SimCode: time 6.41e-07/0.2039, allocations: 0 / 354.1 MB, free: 12.43 MB / 330.7 MB Notification: Performance of Templates: time 0.02419/0.2281, allocations: 15.11 MB / 369.2 MB, free: 13.39 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9184982795268297]