Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_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/Modelica 3.1.0+maint.om/package.mo): time 0.6932/0.6932, allocations: 110.8 MB / 118 MB, free: 14.66 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.00182/0.00182, allocations: 156 kB / 143.7 MB, free: 4.988 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 5.711e-06/5.741e-06, allocations: 0 / 173.5 MB, free: 23.05 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04148/0.0415, allocations: 25.17 MB / 198.6 MB, free: 13.95 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1312/0.1727, allocations: 46.54 MB / 245.2 MB, free: 3.043 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002029/0.173, allocations: 73.39 kB / 245.2 MB, free: 3.031 MB / 170.7 MB Notification: Performance of FrontEnd: time 1.576/1.749, allocations: 375.9 MB / 0.6066 GB, free: 8.914 MB / 250.8 MB Notification: Performance of Transformations before backend: time 0.0004938/1.75, allocations: 221.9 kB / 0.6068 GB, free: 8.914 MB / 250.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4074 * Number of variables: 4074 Notification: Performance of Generate backend data structure: time 0.0592/1.809, allocations: 14.06 MB / 0.6205 GB, free: 23 MB / 266.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/1.809, allocations: 11.16 kB / 0.6205 GB, free: 23 MB / 266.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.244/2.053, allocations: 40.32 MB / 0.6599 GB, free: 20.13 MB / 266.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04631/2.1, allocations: 16.97 MB / 0.6765 GB, free: 13.3 MB / 266.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001185/2.101, allocations: 400.9 kB / 0.6768 GB, free: 12.93 MB / 266.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009805/2.111, allocations: 0.6774 MB / 0.6775 GB, free: 12.26 MB / 266.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.07618/2.187, allocations: 34.03 MB / 0.7107 GB, free: 6.883 MB / 282.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1824/2.369, allocations: 36.22 MB / 0.7461 GB, free: 44.99 MB / 282.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006563/2.37, allocations: 106.6 kB / 0.7462 GB, free: 44.99 MB / 282.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007391/2.377, allocations: 35.06 kB / 0.7462 GB, free: 44.99 MB / 282.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.08879/2.466, allocations: 16.31 MB / 0.7622 GB, free: 44.62 MB / 282.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.265/3.731, allocations: 233.2 MB / 0.9899 GB, free: 36.11 MB / 298.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01644/3.748, allocations: 11.74 MB / 1.001 GB, free: 35.26 MB / 298.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01395/3.762, allocations: 10.46 MB / 1.012 GB, free: 35.14 MB / 298.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003684/3.765, allocations: 2.278 MB / 1.014 GB, free: 33.17 MB / 298.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000101/3.765, allocations: 108.2 kB / 1.014 GB, free: 33.12 MB / 298.8 MB Notification: Performance of pre-optimization done (n=701): time 1.59e-05/3.766, allocations: 0 / 1.014 GB, free: 33.12 MB / 298.8 MB Notification: Performance of matching and sorting (n=814): time 0.6557/4.421, allocations: 177.1 MB / 1.187 GB, free: 61.29 MB / 298.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001057/4.421, allocations: 410.6 kB / 1.187 GB, free: 60.87 MB / 298.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.014/4.435, allocations: 7.372 MB / 1.194 GB, free: 60.48 MB / 298.8 MB Notification: Performance of collectPreVariables (initialization): time 0.002304/4.438, allocations: 29.52 kB / 1.194 GB, free: 60.45 MB / 298.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003983/4.442, allocations: 6.871 MB / 1.201 GB, free: 57.11 MB / 298.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.004645/4.446, allocations: 2.838 MB / 1.204 GB, free: 55.33 MB / 298.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003072/4.449, allocations: 0 / 1.204 GB, free: 55.33 MB / 298.8 MB Notification: Performance of setup shared object (initialization): time 0.001138/4.451, allocations: 1.011 MB / 1.205 GB, free: 54.99 MB / 298.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01701/4.468, allocations: 11.2 MB / 1.216 GB, free: 54.95 MB / 298.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02215/4.49, allocations: 19.41 MB / 1.235 GB, free: 43.68 MB / 298.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.05659/4.546, allocations: 26.59 MB / 1.261 GB, free: 36.61 MB / 298.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003598/4.547, allocations: 79.78 kB / 1.261 GB, free: 36.61 MB / 298.8 MB Notification: Performance of matching and sorting (n=2188) (initialization): time 0.2436/4.791, allocations: 51.53 MB / 1.311 GB, free: 50.29 MB / 298.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.704e-05/4.791, allocations: 9.25 kB / 1.311 GB, free: 50.28 MB / 298.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.06712/4.858, allocations: 29.14 MB / 1.34 GB, free: 50.16 MB / 298.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03158/4.889, allocations: 9.999 MB / 1.349 GB, free: 48.26 MB / 298.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01689/4.906, allocations: 3.874 MB / 1.353 GB, free: 47.84 MB / 298.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2669/5.173, allocations: 50.07 MB / 1.402 GB, free: 46.59 MB / 298.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03783/5.211, allocations: 2.637 MB / 1.405 GB, free: 46.59 MB / 298.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.006276/5.217, allocations: 1.324 MB / 1.406 GB, free: 46.59 MB / 298.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1314 * 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 (1943): * Single equations (assignments): 1890 * Array equations: 46 * 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 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,100.0%) 36,(3,100.0%) 3,(6,100.0%) 66} * Non-linear torn systems: 1 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.007443/5.225, allocations: 0.8529 MB / 1.407 GB, free: 46.38 MB / 298.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003768/5.229, allocations: 0.8288 MB / 1.408 GB, free: 46.38 MB / 298.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02343/5.252, allocations: 10.59 MB / 1.418 GB, free: 46.14 MB / 298.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.1094/5.361, allocations: 40.42 MB / 1.457 GB, free: 41.88 MB / 298.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000149/5.362, allocations: 29.81 kB / 1.457 GB, free: 41.88 MB / 298.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002914/5.362, allocations: 41.88 kB / 1.458 GB, free: 41.88 MB / 298.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3613/5.723, allocations: 80.19 MB / 1.536 GB, free: 42.28 MB / 298.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.685e-05/5.723, allocations: 24.34 kB / 1.536 GB, free: 42.28 MB / 298.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005682/5.729, allocations: 1.113 MB / 1.537 GB, free: 42.28 MB / 298.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0299/5.759, allocations: 8.97 MB / 1.546 GB, free: 41.85 MB / 298.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00309/5.762, allocations: 232 kB / 1.546 GB, free: 41.83 MB / 298.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2175/5.98, allocations: 45.63 MB / 1.59 GB, free: 43.38 MB / 298.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00147/5.981, allocations: 2.804 MB / 1.593 GB, free: 40.79 MB / 298.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.09837/6.08, allocations: 54.54 MB / 1.646 GB, free: 31.86 MB / 298.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003484/6.083, allocations: 1.053 MB / 1.648 GB, free: 31.45 MB / 298.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003912/6.087, allocations: 53.7 kB / 1.648 GB, free: 31.44 MB / 298.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01934/6.106, allocations: 1.851 MB / 1.649 GB, free: 31.44 MB / 298.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002818/6.109, allocations: 481.1 kB / 1.65 GB, free: 31.36 MB / 298.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001968/6.111, allocations: 0.5733 MB / 1.65 GB, free: 31.3 MB / 298.8 MB Notification: Performance of sort global known variables: time 0.01089/6.122, allocations: 4.965 MB / 1.655 GB, free: 29.48 MB / 298.8 MB Notification: Performance of remove unused functions: time 0.02264/6.145, allocations: 3.299 MB / 1.658 GB, free: 29.48 MB / 298.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 107 * Number of states: 24 ($STATESET140435279071640.x[3],$STATESET140435279071640.x[2],$STATESET140435279071640.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],$STATESET140435279071639.x[3],$STATESET140435279071639.x[2],$STATESET140435279071639.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 (637): * Single equations (assignments): 613 * Array equations: 18 * 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.002091/6.147, allocations: 270.4 kB / 1.659 GB, free: 29.38 MB / 298.8 MB Notification: Performance of simCode: created initialization part: time 0.2359/6.383, allocations: 28.88 MB / 1.687 GB, free: 43.75 MB / 298.8 MB Notification: Performance of simCode: created event and clocks part: time 2.796e-05/6.383, allocations: 0 / 1.687 GB, free: 43.75 MB / 298.8 MB Notification: Performance of simCode: created simulation system equations: time 0.04273/6.426, allocations: 14.11 MB / 1.701 GB, free: 43.07 MB / 298.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01026/6.436, allocations: 0.7589 MB / 1.701 GB, free: 43.04 MB / 298.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07846/6.514, allocations: 29.52 MB / 1.73 GB, free: 38.2 MB / 298.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0272/6.542, allocations: 9.89 MB / 1.74 GB, free: 37.01 MB / 298.8 MB Notification: Performance of SimCode: time 4.098e-06/6.542, allocations: 3.281 kB / 1.74 GB, free: 37.01 MB / 298.8 MB Notification: Performance of Templates: time 0.6619/7.204, allocations: 214.5 MB / 1.949 GB, free: 22.18 MB / 298.8 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.pipe 2>&1)