Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001077/0.001077, allocations: 195.6 kB / 8.138 MB, free: 2.125 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.073/1.073, allocations: 194.2 MB / 202.8 MB, free: 8.664 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001765/0.001765, allocations: 123.1 kB / 247.8 MB, free: 6.355 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 7.354e-06/7.374e-06, allocations: 4 kB / 297.6 MB, free: 7.988 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06774/0.06776, allocations: 44.48 MB / 342.1 MB, free: 11.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1974/0.2652, allocations: 86.29 MB / 428.4 MB, free: 8.996 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001896/0.2654, allocations: 86.39 kB / 428.4 MB, free: 8.953 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.5709/0.8363, allocations: 178.5 MB / 0.5927 GB, free: 59.85 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004532/0.8368, allocations: 158.9 kB / 0.5928 GB, free: 59.85 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: 2934 * Number of variables: 2934 Notification: Performance of Generate backend data structure: time 0.0264/0.8632, allocations: 8.156 MB / 0.6008 GB, free: 54.63 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/0.8633, allocations: 9.031 kB / 0.6008 GB, free: 54.63 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01979/0.8831, allocations: 3.552 MB / 0.6043 GB, free: 52.92 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02693/0.9101, allocations: 13.13 MB / 0.6171 GB, free: 42.68 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004211/0.9105, allocations: 272 kB / 0.6174 GB, free: 42.41 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003286/0.9138, allocations: 0.5152 MB / 0.6179 GB, free: 41.9 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02018/0.934, allocations: 13.24 MB / 0.6308 GB, free: 28.66 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03339/0.9674, allocations: 18.64 MB / 0.649 GB, free: 8.297 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005432/0.968, allocations: 130.8 kB / 0.6491 GB, free: 8.168 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002783/0.9708, allocations: 52 kB / 0.6492 GB, free: 8.117 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003122/0.9739, allocations: 2.226 MB / 0.6513 GB, free: 5.891 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2061/1.18, allocations: 91.61 MB / 0.7408 GB, free: 55.21 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008663/1.189, allocations: 7.026 MB / 0.7477 GB, free: 51.8 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006342/1.195, allocations: 6.102 MB / 0.7536 GB, free: 49.06 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003286/1.198, allocations: 2.241 MB / 0.7558 GB, free: 47.04 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.659e-05/1.198, allocations: 66.12 kB / 0.7559 GB, free: 46.98 MB / 410.7 MB Notification: Performance of pre-optimization done (n=314): time 6.081e-06/1.199, allocations: 0.7656 kB / 0.7559 GB, free: 46.98 MB / 410.7 MB Notification: Performance of matching and sorting (n=411): time 0.4495/1.648, allocations: 126.9 MB / 0.8798 GB, free: 101.1 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.787e-05/1.648, allocations: 202.5 kB / 0.88 GB, free: 100.9 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008559/1.657, allocations: 5.629 MB / 0.8855 GB, free: 100.4 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001122/1.658, allocations: 25.7 kB / 0.8855 GB, free: 100.4 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00262/1.66, allocations: 5.331 MB / 0.8907 GB, free: 97.16 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001993/1.662, allocations: 1.518 MB / 0.8922 GB, free: 96.24 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008656/1.663, allocations: 0 / 0.8922 GB, free: 96.24 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005065/1.664, allocations: 0.7747 MB / 0.8929 GB, free: 95.85 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008323/1.672, allocations: 6.607 MB / 0.8994 GB, free: 93.36 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01297/1.685, allocations: 12.82 MB / 0.9119 GB, free: 82.55 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.05074/1.736, allocations: 22.09 MB / 0.9335 GB, free: 76.55 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003874/1.736, allocations: 64 kB / 0.9335 GB, free: 76.48 MB / 410.7 MB Notification: Performance of matching and sorting (n=1451) (initialization): time 0.09945/1.836, allocations: 39.78 MB / 0.9724 GB, free: 44.7 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.848e-05/1.836, allocations: 4 kB / 0.9724 GB, free: 44.69 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.1922/2.028, allocations: 24.84 MB / 0.9967 GB, free: 93.14 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03415/2.062, allocations: 9.991 MB / 1.006 GB, free: 93.07 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009059/2.071, allocations: 2.477 MB / 1.009 GB, free: 93.07 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09208/2.163, allocations: 50.3 MB / 1.058 GB, free: 78 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01368/2.177, allocations: 0.7798 MB / 1.059 GB, free: 78 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003114/2.18, allocations: 0.7386 MB / 1.059 GB, free: 77.91 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1009 * Number of states: 0 () * Number of discrete variables: 84 (referenceSystem.fixedTranslation5.color[3],referenceSystem.fixedTranslation5.color[2],referenceSystem.fixedTranslation5.color[1],referenceSystem.fixedTranslation4.color[3],referenceSystem.fixedTranslation4.color[2],referenceSystem.fixedTranslation4.color[1],referenceSystem.fixedTranslation3.color[3],referenceSystem.fixedTranslation3.color[2],referenceSystem.fixedTranslation3.color[1],referenceSystem.fixedTranslation2.color[3],referenceSystem.fixedTranslation2.color[2],referenceSystem.fixedTranslation2.color[1],referenceSystem.fixedTranslation1.color[3],referenceSystem.fixedTranslation1.color[2],referenceSystem.fixedTranslation1.color[1],referenceSystem.fixedTranslation.color[3],referenceSystem.fixedTranslation.color[2],referenceSystem.fixedTranslation.color[1],referenceSystem.pointMass6.sphereColor[3],referenceSystem.pointMass6.sphereColor[2],referenceSystem.pointMass6.sphereColor[1],referenceSystem.pointMass5.sphereColor[3],referenceSystem.pointMass5.sphereColor[2],referenceSystem.pointMass5.sphereColor[1],referenceSystem.pointMass4.sphereColor[3],referenceSystem.pointMass4.sphereColor[2],referenceSystem.pointMass4.sphereColor[1],referenceSystem.pointMass3.sphereColor[3],referenceSystem.pointMass3.sphereColor[2],referenceSystem.pointMass3.sphereColor[1],referenceSystem.pointMass2.sphereColor[3],referenceSystem.pointMass2.sphereColor[2],referenceSystem.pointMass2.sphereColor[1],referenceSystem.pointMass1.sphereColor[3],referenceSystem.pointMass1.sphereColor[2],referenceSystem.pointMass1.sphereColor[1],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],fixedTranslation5.color[3],fixedTranslation5.color[2],fixedTranslation5.color[1],fixedTranslation4.color[3],fixedTranslation4.color[2],fixedTranslation4.color[1],fixedTranslation3.color[3],fixedTranslation3.color[2],fixedTranslation3.color[1],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],pointMass6.sphereColor[3],pointMass6.sphereColor[2],pointMass6.sphereColor[1],pointMass5.sphereColor[3],pointMass5.sphereColor[2],pointMass5.sphereColor[1],pointMass4.sphereColor[3],pointMass4.sphereColor[2],pointMass4.sphereColor[1],pointMass3.sphereColor[3],pointMass3.sphereColor[2],pointMass3.sphereColor[1],pointMass2.sphereColor[3],pointMass2.sphereColor[2],pointMass2.sphereColor[1],pointMass1.sphereColor[3],pointMass1.sphereColor[2],pointMass1.sphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1281): * Single equations (assignments): 1267 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,100.0%) 66,(6,100.0%) 36,(3,100.0%) 3} * Non-linear torn systems: 1 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.004659/2.185, allocations: 0.6768 MB / 1.06 GB, free: 77.72 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002246/2.187, allocations: 0.628 MB / 1.061 GB, free: 77.72 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02029/2.208, allocations: 8.092 MB / 1.069 GB, free: 74.97 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.08113/2.289, allocations: 31.41 MB / 1.099 GB, free: 47.98 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.155e-05/2.289, allocations: 28 kB / 1.099 GB, free: 47.96 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.588e-05/2.289, allocations: 19.92 kB / 1.099 GB, free: 47.94 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2411/2.53, allocations: 50.53 MB / 1.149 GB, free: 88.79 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.145e-05/2.53, allocations: 3.812 kB / 1.149 GB, free: 88.79 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003173/2.533, allocations: 0.5383 MB / 1.149 GB, free: 88.79 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03267/2.566, allocations: 9.413 MB / 1.158 GB, free: 88.74 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001435/2.567, allocations: 83.48 kB / 1.158 GB, free: 88.74 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.09574/2.663, allocations: 47.12 MB / 1.204 GB, free: 71.92 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001571/2.665, allocations: 2.757 MB / 1.207 GB, free: 69.26 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.2302/2.895, allocations: 41 MB / 1.247 GB, free: 84.72 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001947/2.897, allocations: 0.6471 MB / 1.248 GB, free: 84.63 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002631/2.9, allocations: 22.98 kB / 1.248 GB, free: 84.63 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006251/2.906, allocations: 358.9 kB / 1.248 GB, free: 84.63 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001268/2.907, allocations: 240.9 kB / 1.248 GB, free: 84.63 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001027/2.908, allocations: 212.8 kB / 1.249 GB, free: 84.63 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.007175/2.916, allocations: 3.816 MB / 1.252 GB, free: 84.41 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.01361/2.929, allocations: 2.443 MB / 1.255 GB, free: 84.41 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 24 ($STATESET139651765758360.x[3],$STATESET139651765758360.x[2],$STATESET139651765758360.x[1],freeMotion.r_rel_a[1],freeMotion.r_rel_a[2],freeMotion.r_rel_a[3],freeMotion.v_rel_a[1],freeMotion.v_rel_a[2],freeMotion.v_rel_a[3],freeMotion.w_rel_b[1],freeMotion.w_rel_b[2],freeMotion.w_rel_b[3],$STATESET139651765758359.x[3],$STATESET139651765758359.x[2],$STATESET139651765758359.x[1],referenceSystem.pointMass1.frame_a.r_0[1],referenceSystem.pointMass1.frame_a.r_0[2],referenceSystem.pointMass1.frame_a.r_0[3],referenceSystem.pointMass1.v_0[1],referenceSystem.pointMass1.v_0[2],referenceSystem.pointMass1.v_0[3],referenceSystem.pointMass6.w_a[1],referenceSystem.pointMass6.w_a[2],referenceSystem.pointMass6.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (264): * Single equations (assignments): 255 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 2 {4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,100.0%) 36,(6,100.0%) 66} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001369/2.931, allocations: 196.8 kB / 1.255 GB, free: 84.33 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.02349/2.954, allocations: 16.39 MB / 1.271 GB, free: 83.53 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.935e-06/2.954, allocations: 3.688 kB / 1.271 GB, free: 83.53 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01045/2.965, allocations: 7.221 MB / 1.278 GB, free: 82.85 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005131/2.97, allocations: 0.6448 MB / 1.279 GB, free: 82.82 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05526/3.025, allocations: 20.92 MB / 1.299 GB, free: 79.59 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01453/3.04, allocations: 6.739 MB / 1.306 GB, free: 77.6 MB / 410.7 MB Notification: Performance of SimCode: time 8.02e-07/3.04, allocations: 0 / 1.306 GB, free: 77.6 MB / 410.7 MB Notification: Performance of Templates: time 0.3185/3.358, allocations: 126.2 MB / 1.429 GB, free: 78.7 MB / 410.7 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.pipe 2>&1)