Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001167/0.001167, allocations: 104.4 kB / 16.92 MB, free: 5.793 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001187/0.001187, allocations: 191.3 kB / 17.85 MB, free: 5.188 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.462/1.462, allocations: 205.1 MB / 223.7 MB, free: 12.31 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001789/0.001789, allocations: 51.94 kB / 280 MB, free: 3.168 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.1028, allocations: 46.63 MB / 326.6 MB, free: 4.469 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.009513/0.1124, allocations: 7.958 MB / 334.6 MB, free: 12.46 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00518/0.1176, allocations: 2.556 MB / 337.1 MB, free: 9.891 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001043/0.1187, allocations: 39.94 kB / 337.2 MB, free: 9.852 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002874/0.1216, allocations: 1.421 MB / 338.6 MB, free: 8.426 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002591/0.1242, allocations: 0.9839 MB / 339.6 MB, free: 7.438 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009084/0.1251, allocations: 263.5 kB / 339.8 MB, free: 7.18 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003678/0.1288, allocations: 2.177 MB / 342 MB, free: 4.996 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002728/0.1316, allocations: 1.564 MB / 343.6 MB, free: 3.414 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001531/0.1332, allocations: 0.8406 MB / 344.4 MB, free: 2.57 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002089/0.1353, allocations: 1.183 MB / 345.6 MB, free: 1.383 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006122/0.1359, allocations: 160 kB / 345.8 MB, free: 1.227 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00171/0.1376, allocations: 0.6552 MB / 346.4 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001465/0.1391, allocations: 1.161 MB / 347.6 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002312/0.1415, allocations: 1.374 MB / 348.9 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00528/0.1468, allocations: 4.112 MB / 353.1 MB, free: 9.898 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/0.1468, allocations: 0 / 353.1 MB, free: 9.898 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.136e-06/0.1468, allocations: 0 / 353.1 MB, free: 9.898 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001552/0.147, allocations: 7.938 kB / 353.1 MB, free: 9.891 MB / 302.1 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.006286/0.1533, allocations: 2.957 MB / 356 MB, free: 6.871 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.632e-05/0.1533, allocations: 15.88 kB / 356 MB, free: 6.855 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007225/0.1606, allocations: 1.775 MB / 357.8 MB, free: 5.074 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002827/0.1634, allocations: 1.158 MB / 359 MB, free: 3.871 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001706/0.1636, allocations: 151.8 kB / 359.1 MB, free: 3.723 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000828/0.1645, allocations: 215.7 kB / 359.3 MB, free: 3.512 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02102/0.1855, allocations: 8.592 MB / 367.9 MB, free: 10.32 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000194/0.1858, allocations: 35.66 kB / 368 MB, free: 10.28 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000805/0.1866, allocations: 107.9 kB / 368.1 MB, free: 10.18 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003341/0.1899, allocations: 1.675 MB / 369.7 MB, free: 8.496 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02006/0.21, allocations: 7.155 MB / 376.9 MB, free: 1.34 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2078/0.4178, allocations: 30.18 MB / 407.1 MB, free: 27.26 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02087/0.4387, allocations: 5.038 MB / 412.1 MB, free: 24.84 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001329/0.4401, allocations: 1.253 MB / 413.4 MB, free: 24.24 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00416/0.4443, allocations: 3.734 MB / 417.1 MB, free: 21.43 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.465e-05/0.4443, allocations: 63.39 kB / 417.2 MB, free: 21.36 MB / 318.1 MB Notification: Performance of pre-optimization done (n=111): time 2.946e-06/0.4443, allocations: 0 / 417.2 MB, free: 21.36 MB / 318.1 MB Notification: Performance of matching and sorting (n=111): time 0.04216/0.4865, allocations: 9.251 MB / 426.4 MB, free: 12.78 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.384e-05/0.4866, allocations: 203.8 kB / 426.6 MB, free: 12.54 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003079/0.4897, allocations: 3.035 MB / 429.6 MB, free: 9.484 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.387e-05/0.4898, allocations: 45.7 kB / 429.7 MB, free: 9.434 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008666/0.4906, allocations: 2.416 MB / 432.1 MB, free: 7.023 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002846/0.4909, allocations: 0.4972 MB / 432.6 MB, free: 6.531 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009151/0.4919, allocations: 1.087 MB / 433.7 MB, free: 5.434 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.51e-05/0.4919, allocations: 305.1 kB / 434 MB, free: 5.133 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001693/0.4936, allocations: 1.596 MB / 435.6 MB, free: 3.531 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003833/0.4975, allocations: 5.169 MB / 440.8 MB, free: 12.56 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007483/0.505, allocations: 7.326 MB / 448.1 MB, free: 3.445 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.03e-05/0.505, allocations: 40 kB / 448.1 MB, free: 3.406 MB / 334.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.009453/0.5145, allocations: 6.44 MB / 454.6 MB, free: 12.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.283e-05/0.5146, allocations: 67.77 kB / 454.6 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000144/0.5148, allocations: 128 kB / 454.7 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001602/0.5149, allocations: 172.8 kB / 454.9 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004827/0.5198, allocations: 1.454 MB / 456.4 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001861/0.52, allocations: 255 kB / 456.6 MB, free: 10.9 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003769/0.5238, allocations: 0.7382 MB / 457.4 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005155/0.5243, allocations: 344 kB / 457.7 MB, free: 9.82 MB / 350.1 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.002266/0.5266, allocations: 1.575 MB / 459.3 MB, free: 8.234 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005011/0.5271, allocations: 248.8 kB / 459.5 MB, free: 7.988 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001374/0.5284, allocations: 0.8327 MB / 460.3 MB, free: 7.148 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.796e-05/0.5285, allocations: 12.38 kB / 460.4 MB, free: 7.137 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.078e-05/0.5285, allocations: 3.938 kB / 460.4 MB, free: 7.133 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.422e-05/0.5285, allocations: 7.984 kB / 460.4 MB, free: 7.125 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005997/0.5345, allocations: 3.393 MB / 463.8 MB, free: 3.691 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.506e-06/0.5346, allocations: 7.938 kB / 463.8 MB, free: 3.684 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002345/0.5369, allocations: 407.5 kB / 464.2 MB, free: 3.285 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.722e-05/0.5369, allocations: 4 kB / 464.2 MB, free: 3.281 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001171/0.5371, allocations: 35.97 kB / 464.2 MB, free: 3.246 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.347e-06/0.5371, allocations: 4 kB / 464.2 MB, free: 3.242 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.5371, allocations: 0 / 464.2 MB, free: 3.242 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0035/0.5406, allocations: 2.786 MB / 467 MB, free: 452 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000653/0.5413, allocations: 309.5 kB / 467.3 MB, free: 116 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004426/0.5417, allocations: 34.05 kB / 467.3 MB, free: 84 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001038/0.5428, allocations: 35.95 kB / 467.4 MB, free: 48 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000154/0.5429, allocations: 63.8 kB / 467.4 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.943e-05/0.543, allocations: 37.94 kB / 467.5 MB, free: 15.95 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003406/0.5464, allocations: 1.841 MB / 469.3 MB, free: 14.11 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.3e-07/0.5464, allocations: 0 / 469.3 MB, free: 14.11 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.004316/0.5508, allocations: 0.8352 MB / 470.1 MB, free: 13.27 MB / 366.1 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.0004205/0.5512, allocations: 163.1 kB / 470.3 MB, free: 13.11 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.006116/0.5573, allocations: 3.799 MB / 474.1 MB, free: 9.352 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.589e-06/0.5573, allocations: 0 / 474.1 MB, free: 9.352 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009585/0.5583, allocations: 0.7169 MB / 474.8 MB, free: 8.637 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001874/0.5602, allocations: 270.3 kB / 475.1 MB, free: 8.383 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01131/0.5715, allocations: 7.13 MB / 482.2 MB, free: 1.223 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002754/0.5743, allocations: 2.391 MB / 484.6 MB, free: 14.8 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.004051/0.5784, allocations: 1.639 MB / 486.2 MB, free: 13.16 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005371/0.5789, allocations: 187.4 kB / 486.4 MB, free: 12.98 MB / 382.1 MB Notification: Performance of SimCode: time 7.12e-07/0.5789, allocations: 0 / 486.4 MB, free: 12.98 MB / 382.1 MB Notification: Performance of Templates: time 0.04549/0.6244, allocations: 21.4 MB / 0.4959 GB, free: 7.559 MB / 398.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1)