Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.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.PointGravity,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006451/0.006451, allocations: 101.5 kB / 15.73 MB, free: 6.031 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.001899/0.001899, allocations: 188.6 kB / 16.67 MB, free: 5.969 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.514/1.514, allocations: 205.1 MB / 222.6 MB, free: 4.52 MB / 174.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.001229/0.001229, allocations: 54.58 kB / 326.6 MB, free: 14.36 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08164/0.08288, allocations: 46.62 MB / 373.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity): time 0.007689/0.09059, allocations: 6.981 MB / 380.2 MB, free: 10.3 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005524/0.09614, allocations: 3.1 MB / 383.3 MB, free: 7.191 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008412/0.09704, allocations: 35.94 kB / 383.3 MB, free: 7.156 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001696/0.09875, allocations: 0.6614 MB / 384 MB, free: 6.492 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003161/0.1019, allocations: 1.393 MB / 385.3 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001028/0.103, allocations: 0.4951 MB / 385.8 MB, free: 4.598 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004033/0.107, allocations: 3.129 MB / 389 MB, free: 1.461 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009308/0.108, allocations: 459.1 kB / 389.4 MB, free: 1 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001639/0.1096, allocations: 0.7978 MB / 390.2 MB, free: 204 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002158/0.1118, allocations: 1.222 MB / 391.4 MB, free: 14.97 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006411/0.1125, allocations: 128 kB / 391.6 MB, free: 14.85 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00232/0.1148, allocations: 0.9477 MB / 392.5 MB, free: 13.9 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001424/0.1162, allocations: 1.087 MB / 393.6 MB, free: 12.81 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002257/0.1185, allocations: 1.23 MB / 394.8 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005097/0.1236, allocations: 4.04 MB / 398.9 MB, free: 7.516 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.1236, allocations: 0 / 398.9 MB, free: 7.516 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.896e-06/0.1236, allocations: 0 / 398.9 MB, free: 7.516 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.193e-05/0.1237, allocations: 3.938 kB / 398.9 MB, free: 7.512 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.006566/0.1303, allocations: 3.213 MB / 402.1 MB, free: 4.238 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.712e-05/0.1303, allocations: 8.031 kB / 402.1 MB, free: 4.23 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008437/0.1388, allocations: 1.889 MB / 404 MB, free: 2.336 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003368/0.1422, allocations: 1.75 MB / 405.7 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.728e-05/0.1423, allocations: 114.6 kB / 405.8 MB, free: 436 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008412/0.1431, allocations: 303.5 kB / 406.1 MB, free: 132 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01311/0.1562, allocations: 8.223 MB / 414.4 MB, free: 7.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.422e-05/0.1563, allocations: 39.66 kB / 414.4 MB, free: 7.301 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002495/0.1566, allocations: 87.77 kB / 414.5 MB, free: 7.215 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002563/0.1591, allocations: 1.397 MB / 415.9 MB, free: 5.812 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01732/0.1765, allocations: 9.542 MB / 425.4 MB, free: 12.26 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2605/0.437, allocations: 30.54 MB / 456 MB, free: 50.25 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01287/0.4499, allocations: 4.387 MB / 460.4 MB, free: 49.56 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003052/0.453, allocations: 2.109 MB / 462.5 MB, free: 49.52 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.454e-05/0.4531, allocations: 15.14 kB / 462.5 MB, free: 49.52 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.22e-05/0.4532, allocations: 50.44 kB / 462.5 MB, free: 49.48 MB / 382.1 MB Notification: Performance of pre-optimization done (n=122): time 3.967e-06/0.4532, allocations: 0 / 462.5 MB, free: 49.48 MB / 382.1 MB Notification: Performance of matching and sorting (n=136): time 0.04295/0.4961, allocations: 18.32 MB / 480.8 MB, free: 42.52 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001717/0.4979, allocations: 3.229 MB / 484.1 MB, free: 39.2 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003562/0.5015, allocations: 3.007 MB / 487.1 MB, free: 36.41 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005859/0.5021, allocations: 46.67 kB / 487.1 MB, free: 36.36 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009169/0.503, allocations: 2.076 MB / 489.2 MB, free: 34.3 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006459/0.5036, allocations: 0.5714 MB / 489.8 MB, free: 33.74 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001173/0.5048, allocations: 1.015 MB / 490.8 MB, free: 32.71 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.747e-05/0.5049, allocations: 305.1 kB / 491.1 MB, free: 32.41 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003019/0.5079, allocations: 2.633 MB / 493.7 MB, free: 29.77 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003876/0.5118, allocations: 5.583 MB / 499.3 MB, free: 22.79 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007796/0.5196, allocations: 8.631 MB / 0.496 GB, free: 12.85 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.994e-05/0.5197, allocations: 28 kB / 0.4961 GB, free: 12.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=644) (initialization): time 0.02875/0.5485, allocations: 11.78 MB / 0.5076 GB, free: 1.008 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.14e-05/0.5486, allocations: 55.91 kB / 0.5076 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02289/0.5715, allocations: 7.014 MB / 0.5145 GB, free: 9.914 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02233/0.5939, allocations: 4.54 MB / 0.5189 GB, free: 5.344 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00473/0.5986, allocations: 1.244 MB / 0.5201 GB, free: 4.098 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01745/0.6161, allocations: 12.53 MB / 0.5323 GB, free: 7.012 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00659/0.6227, allocations: 0.5732 MB / 0.5329 GB, free: 6.438 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001601/0.6244, allocations: 327.4 kB / 0.5332 GB, free: 6.125 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 475 * Number of states: 0 () * Number of discrete variables: 18 (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 (592): * Single equations (assignments): 577 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 6 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 4 systems {(4,100.0%), (3,100.0%), (4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 2 systems {4, 4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002764/0.6272, allocations: 1.414 MB / 0.5346 GB, free: 4.703 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006175/0.6278, allocations: 260.6 kB / 0.5348 GB, free: 4.445 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007232/0.6285, allocations: 411.2 kB / 0.5352 GB, free: 4.039 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01236/0.6409, allocations: 5.014 MB / 0.5401 GB, free: 14.99 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.972e-05/0.6409, allocations: 8 kB / 0.5401 GB, free: 14.98 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.624e-05/0.641, allocations: 3.984 kB / 0.5401 GB, free: 14.98 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009182/0.6502, allocations: 5.382 MB / 0.5454 GB, free: 9.562 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.185e-06/0.6502, allocations: 0 / 0.5454 GB, free: 9.562 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001786/0.652, allocations: 371.4 kB / 0.5458 GB, free: 9.199 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008881/0.6609, allocations: 2.387 MB / 0.5481 GB, free: 6.785 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004158/0.6613, allocations: 47.7 kB / 0.5481 GB, free: 6.742 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009751/0.6711, allocations: 9.423 MB / 0.5573 GB, free: 12.77 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002008/0.6731, allocations: 3.083 MB / 0.5603 GB, free: 9.395 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01684/0.69, allocations: 8.765 MB / 0.5689 GB, free: 0.5664 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008544/0.6909, allocations: 321.8 kB / 0.5692 GB, free: 236 kB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003595/0.6912, allocations: 35.98 kB / 0.5692 GB, free: 200 kB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0021/0.6933, allocations: 321.3 kB / 0.5696 GB, free: 15.88 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000414/0.6938, allocations: 103.8 kB / 0.5697 GB, free: 15.78 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001666/0.6939, allocations: 51.8 kB / 0.5697 GB, free: 15.73 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002809/0.6967, allocations: 1.883 MB / 0.5715 GB, free: 13.85 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.6968, allocations: 0 / 0.5715 GB, free: 13.85 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004146/0.7009, allocations: 1.01 MB / 0.5725 GB, free: 12.84 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 24 ($STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],body2.frame_a.r_0[1],body2.frame_a.r_0[2],body2.frame_a.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body2.w_a[1],body2.w_a[2],body2.w_a[3],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[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 (92): * Single equations (assignments): 81 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 6 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 4 systems {(3,100.0%), (4,100.0%), (3,100.0%), (4,100.0%)} * Non-linear Jacobian (size): 2 systems {4, 4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004509/0.7014, allocations: 172.4 kB / 0.5727 GB, free: 12.67 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01218/0.7136, allocations: 7.464 MB / 0.58 GB, free: 5.09 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.559e-06/0.7136, allocations: 0 / 0.58 GB, free: 5.09 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006599/0.7202, allocations: 3.642 MB / 0.5835 GB, free: 1.312 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002252/0.7225, allocations: 302.4 kB / 0.5838 GB, free: 1.016 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01212/0.7346, allocations: 8.143 MB / 0.5918 GB, free: 8.84 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00219/0.7368, allocations: 2.306 MB / 0.594 GB, free: 6.508 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00382/0.7407, allocations: 1.656 MB / 0.5956 GB, free: 4.844 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007747/0.7414, allocations: 203.3 kB / 0.5958 GB, free: 4.645 MB / 478.1 MB Notification: Performance of SimCode: time 9.62e-07/0.7415, allocations: 0 / 0.5958 GB, free: 4.645 MB / 478.1 MB Notification: Performance of Templates: time 0.3031/1.045, allocations: 43.83 MB / 0.6386 GB, free: 180 MB / 0.4981 GB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe 2>&1)