Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+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.1_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.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001899/0.0019, allocations: 169.9 kB / 12.72 MB, free: 2.594 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.581/1.581, allocations: 170.6 MB / 183.8 MB, free: 11.49 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001583/0.001583, allocations: 114.8 kB / 223.2 MB, free: 4.113 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.427e-05/3.43e-05, allocations: 4 kB / 268.9 MB, free: 20.93 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09659/0.09664, allocations: 38.76 MB / 307.6 MB, free: 14.13 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3725/0.4692, allocations: 75.23 MB / 382.9 MB, free: 1.129 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003395/0.4696, allocations: 82.19 kB / 382.9 MB, free: 1.086 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1395/0.6091, allocations: 51.24 MB / 434.2 MB, free: 3.367 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.6092, allocations: 0 / 434.2 MB, free: 3.367 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001465/0.6093, allocations: 48 kB / 434.2 MB, free: 3.32 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1094 * Number of variables: 1094 Notification: Performance of Generate backend data structure: time 0.008848/0.6182, allocations: 2.408 MB / 436.6 MB, free: 0.8555 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.622e-05/0.6183, allocations: 8.031 kB / 436.7 MB, free: 0.8477 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00974/0.628, allocations: 1.954 MB / 438.6 MB, free: 14.89 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004458/0.6325, allocations: 1.392 MB / 440 MB, free: 13.45 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002868/0.6329, allocations: 225.8 kB / 440.2 MB, free: 13.23 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001806/0.6347, allocations: 299.8 kB / 440.5 MB, free: 12.93 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02544/0.6601, allocations: 8.833 MB / 449.3 MB, free: 3.156 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002873/0.6605, allocations: 51.47 kB / 449.4 MB, free: 3.105 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00155/0.662, allocations: 159.8 kB / 449.6 MB, free: 2.949 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001609/0.6637, allocations: 0.789 MB / 450.3 MB, free: 2.156 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01986/0.6836, allocations: 7.045 MB / 457.4 MB, free: 11.1 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2915/0.9751, allocations: 38.01 MB / 495.4 MB, free: 59.41 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02173/0.9968, allocations: 5.22 MB / 0.4889 GB, free: 58.68 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001792/0.9987, allocations: 0.9075 MB / 0.4898 GB, free: 58.62 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00612/1.005, allocations: 3.344 MB / 0.493 GB, free: 57.1 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.06e-05/1.005, allocations: 48.58 kB / 0.4931 GB, free: 57.06 MB / 346.7 MB Notification: Performance of pre-optimization done (n=104): time 5.41e-06/1.005, allocations: 0 / 0.4931 GB, free: 57.06 MB / 346.7 MB Notification: Performance of matching and sorting (n=104): time 0.03651/1.041, allocations: 8.069 MB / 0.501 GB, free: 56.87 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.053e-05/1.042, allocations: 197 kB / 0.5011 GB, free: 56.65 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004715/1.046, allocations: 2.653 MB / 0.5037 GB, free: 56.34 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002433/1.047, allocations: 41.77 kB / 0.5038 GB, free: 56.31 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001702/1.048, allocations: 2.396 MB / 0.5061 GB, free: 55.01 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007381/1.049, allocations: 489.9 kB / 0.5066 GB, free: 54.76 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002251/1.049, allocations: 105.7 kB / 0.5067 GB, free: 54.76 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003868/1.05, allocations: 0.5819 MB / 0.5073 GB, free: 54.44 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002036/1.052, allocations: 1.439 MB / 0.5087 GB, free: 54.43 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003824/1.056, allocations: 4.966 MB / 0.5135 GB, free: 49.82 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00409/1.06, allocations: 2.696 MB / 0.5161 GB, free: 49.64 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001038/1.06, allocations: 36.75 kB / 0.5162 GB, free: 49.64 MB / 346.7 MB Notification: Performance of matching and sorting (n=695) (initialization): time 0.01272/1.073, allocations: 6.086 MB / 0.5221 GB, free: 47.69 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001214/1.073, allocations: 56.06 kB / 0.5222 GB, free: 47.69 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002197/1.073, allocations: 126.4 kB / 0.5223 GB, free: 47.69 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001984/1.073, allocations: 187.4 kB / 0.5225 GB, free: 47.68 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005828/1.079, allocations: 1.508 MB / 0.5239 GB, free: 47.52 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003985/1.079, allocations: 249.4 kB / 0.5242 GB, free: 47.47 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005439/1.085, allocations: 0.749 MB / 0.5249 GB, free: 47 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001273/1.086, allocations: 342.9 kB / 0.5252 GB, free: 46.96 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 577 * Number of states: 0 () * Number of discrete variables: 27 (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.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (671): * Single equations (assignments): 668 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001817/1.088, allocations: 0.5124 MB / 0.5257 GB, free: 46.52 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007796/1.089, allocations: 245.4 kB / 0.526 GB, free: 46.39 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002107/1.091, allocations: 0.7009 MB / 0.5267 GB, free: 46.07 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.785e-05/1.091, allocations: 13.33 kB / 0.5267 GB, free: 46.06 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.367e-05/1.091, allocations: 4 kB / 0.5267 GB, free: 46.06 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.419e-05/1.091, allocations: 7.797 kB / 0.5267 GB, free: 46.05 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006041/1.097, allocations: 2.267 MB / 0.5289 GB, free: 44.22 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.871e-05/1.097, allocations: 0.7656 kB / 0.5289 GB, free: 44.22 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002623/1.1, allocations: 466.8 kB / 0.5293 GB, free: 43.89 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.982e-05/1.1, allocations: 11.88 kB / 0.5294 GB, free: 43.89 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001574/1.1, allocations: 36.34 kB / 0.5294 GB, free: 43.86 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.273e-06/1.1, allocations: 4 kB / 0.5294 GB, free: 43.86 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.691e-06/1.1, allocations: 4 kB / 0.5294 GB, free: 43.85 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00297/1.103, allocations: 2.573 MB / 0.5319 GB, free: 41.43 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007875/1.104, allocations: 311.7 kB / 0.5322 GB, free: 41.11 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002717/1.104, allocations: 27.14 kB / 0.5322 GB, free: 41.09 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008995/1.105, allocations: 50.11 kB / 0.5323 GB, free: 41.05 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001265/1.105, allocations: 53.55 kB / 0.5323 GB, free: 41.02 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.048e-05/1.105, allocations: 36.8 kB / 0.5324 GB, free: 40.99 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002849/1.108, allocations: 1.793 MB / 0.5341 GB, free: 39.39 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.6e-07/1.108, allocations: 4 kB / 0.5341 GB, free: 39.39 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.004967/1.113, allocations: 0.8122 MB / 0.5349 GB, free: 38.58 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 24 (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],body2.r_0[1],body2.r_0[2],body2.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body1.r_0[1],body1.r_0[2],body1.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (81): * Single equations (assignments): 78 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005139/1.114, allocations: 161.8 kB / 0.5351 GB, free: 38.43 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.005276/1.119, allocations: 3.321 MB / 0.5383 GB, free: 35.4 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.983e-06/1.119, allocations: 0 / 0.5383 GB, free: 35.4 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007184/1.12, allocations: 0.5948 MB / 0.5389 GB, free: 34.86 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00147/1.121, allocations: 235.5 kB / 0.5391 GB, free: 34.64 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01001/1.131, allocations: 6.126 MB / 0.5451 GB, free: 29.31 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001937/1.133, allocations: 2.42 MB / 0.5475 GB, free: 27.25 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.00369/1.137, allocations: 1.629 MB / 0.5491 GB, free: 25.61 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004329/1.137, allocations: 183.4 kB / 0.5492 GB, free: 25.43 MB / 346.7 MB Notification: Performance of SimCode: time 1.623e-06/1.137, allocations: 0 / 0.5492 GB, free: 25.43 MB / 346.7 MB Notification: Performance of Templates: time 0.03839/1.176, allocations: 19.93 MB / 0.5687 GB, free: 5.766 MB / 346.7 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1)