Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.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.PointGravityWithPointMasses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.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.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo): time 0.6959/0.6959, allocations: 110.8 MB / 118.3 MB, free: 14.47 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001594/0.001594, allocations: 159.4 kB / 144 MB, free: 4.793 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 1.648e-05/1.649e-05, allocations: 4 kB / 173.9 MB, free: 22.79 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04607/0.0461, allocations: 25.18 MB / 199 MB, free: 13.69 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.05858/0.1047, allocations: 40.84 MB / 239.9 MB, free: 4.777 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002355/0.105, allocations: 75.95 kB / 240 MB, free: 4.703 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5473/0.6523, allocations: 125.7 MB / 365.7 MB, free: 40.71 MB / 218.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.6524, allocations: 0 / 365.7 MB, free: 40.71 MB / 218.7 MB Notification: Performance of Transformations before backend: time 0.0001709/0.6526, allocations: 79.39 kB / 365.8 MB, free: 40.71 MB / 218.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1569 * Number of variables: 1569 Notification: Performance of Generate backend data structure: time 0.02018/0.6728, allocations: 5.48 MB / 371.2 MB, free: 37.2 MB / 218.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.63e-05/0.6728, allocations: 11.97 kB / 371.3 MB, free: 37.19 MB / 218.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09722/0.7701, allocations: 20.18 MB / 391.4 MB, free: 16.97 MB / 218.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008881/0.779, allocations: 3.046 MB / 394.5 MB, free: 13.88 MB / 218.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003514/0.7794, allocations: 144 kB / 394.6 MB, free: 13.74 MB / 218.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00357/0.783, allocations: 251.9 kB / 394.9 MB, free: 13.5 MB / 218.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02047/0.8035, allocations: 12.55 MB / 407.4 MB, free: 0.9297 MB / 218.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03118/0.8347, allocations: 14.04 MB / 421.5 MB, free: 2.34 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002539/0.835, allocations: 35.7 kB / 421.5 MB, free: 2.305 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002854/0.8378, allocations: 16 kB / 421.5 MB, free: 2.289 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.1534/0.9913, allocations: 8.159 MB / 429.7 MB, free: 51.39 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5555/1.547, allocations: 102.3 MB / 0.5195 GB, free: 50.63 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003995/1.551, allocations: 3.381 MB / 0.5228 GB, free: 49.73 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001796/1.553, allocations: 1.926 MB / 0.5247 GB, free: 49.62 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.384e-05/1.553, allocations: 38.91 kB / 0.5247 GB, free: 49.62 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.772e-05/1.553, allocations: 60.64 kB / 0.5248 GB, free: 49.58 MB / 250.7 MB Notification: Performance of pre-optimization done (n=205): time 4.118e-06/1.553, allocations: 0 / 0.5248 GB, free: 49.58 MB / 250.7 MB Notification: Performance of matching and sorting (n=205): time 0.02306/1.576, allocations: 6.982 MB / 0.5316 GB, free: 49.51 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001171/1.576, allocations: 410.2 kB / 0.532 GB, free: 49.04 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005175/1.581, allocations: 3.02 MB / 0.5349 GB, free: 48.75 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005674/1.582, allocations: 28.83 kB / 0.5349 GB, free: 48.72 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001723/1.584, allocations: 3.14 MB / 0.538 GB, free: 46.96 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009768/1.585, allocations: 0.7989 MB / 0.5388 GB, free: 46.5 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000385/1.585, allocations: 0 / 0.5388 GB, free: 46.5 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0003661/1.585, allocations: 0.6437 MB / 0.5394 GB, free: 46.18 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003362/1.589, allocations: 2.693 MB / 0.5421 GB, free: 45.63 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005005/1.594, allocations: 7.191 MB / 0.5491 GB, free: 38.6 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00512/1.599, allocations: 3.706 MB / 0.5527 GB, free: 37.57 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001415/1.599, allocations: 46.88 kB / 0.5527 GB, free: 37.57 MB / 250.7 MB Notification: Performance of matching and sorting (n=944) (initialization): time 0.01461/1.614, allocations: 8.39 MB / 0.5609 GB, free: 34.06 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.377e-05/1.614, allocations: 77.25 kB / 0.561 GB, free: 33.99 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000401/1.614, allocations: 325 kB / 0.5613 GB, free: 33.7 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002027/1.614, allocations: 247.1 kB / 0.5616 GB, free: 33.46 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006833/1.621, allocations: 1.992 MB / 0.5635 GB, free: 31.81 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001861/1.621, allocations: 321.8 kB / 0.5638 GB, free: 31.53 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01164/1.633, allocations: 1.978 MB / 0.5657 GB, free: 30.11 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001789/1.635, allocations: 0.5966 MB / 0.5663 GB, free: 29.56 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 738 * 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 (904): * Single equations (assignments): 893 * Array equations: 11 * 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.001416/1.636, allocations: 0.4917 MB / 0.5668 GB, free: 29.07 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007782/1.637, allocations: 292.2 kB / 0.5671 GB, free: 28.78 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0014/1.639, allocations: 0.9349 MB / 0.568 GB, free: 27.97 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01125/1.65, allocations: 3.158 MB / 0.5711 GB, free: 25.98 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.289e-05/1.65, allocations: 4 kB / 0.5711 GB, free: 25.98 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.337e-05/1.65, allocations: 7.266 kB / 0.5711 GB, free: 25.98 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04577/1.696, allocations: 14.06 MB / 0.5848 GB, free: 14.71 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.284e-05/1.696, allocations: 15.38 kB / 0.5848 GB, free: 14.7 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003276/1.699, allocations: 0.6173 MB / 0.5854 GB, free: 14.08 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.919e-05/1.699, allocations: 20 kB / 0.5855 GB, free: 14.06 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006023/1.7, allocations: 100.3 kB / 0.5856 GB, free: 13.96 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.427e-05/1.7, allocations: 19.94 kB / 0.5856 GB, free: 13.94 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.265e-05/1.7, allocations: 15.94 kB / 0.5856 GB, free: 13.93 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008009/1.708, allocations: 7.091 MB / 0.5925 GB, free: 6.414 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001157/1.709, allocations: 440.6 kB / 0.5929 GB, free: 5.961 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008544/1.71, allocations: 24.34 kB / 0.593 GB, free: 5.938 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006612/1.717, allocations: 1.217 MB / 0.5941 GB, free: 4.719 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001747/1.717, allocations: 131 kB / 0.5943 GB, free: 4.594 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002838/1.717, allocations: 207.9 kB / 0.5945 GB, free: 4.391 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.002472/1.719, allocations: 1.956 MB / 0.5964 GB, free: 2.438 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.5e-07/1.719, allocations: 4 kB / 0.5964 GB, free: 2.434 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.005435/1.725, allocations: 1.123 MB / 0.5975 GB, free: 1.312 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 40 * 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 (165): * Single equations (assignments): 154 * Array equations: 11 * 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.0004404/1.725, allocations: 181.5 kB / 0.5976 GB, free: 1.133 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.009531/1.735, allocations: 5.9 MB / 0.6034 GB, free: 11.27 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.812e-05/1.735, allocations: 4.688 kB / 0.6034 GB, free: 11.27 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002654/1.738, allocations: 1.75 MB / 0.6051 GB, free: 9.52 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002211/1.74, allocations: 235.3 kB / 0.6053 GB, free: 9.297 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01874/1.759, allocations: 9.099 MB / 0.6142 GB, free: 188 kB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1353/1.894, allocations: 3.211 MB / 0.6174 GB, free: 67.11 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.009106/1.903, allocations: 2.697 MB / 0.62 GB, free: 67.07 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00241/1.906, allocations: 0.5392 MB / 0.6205 GB, free: 67.07 MB / 266.7 MB Notification: Performance of SimCode: time 1.382e-06/1.906, allocations: 2.656 kB / 0.6205 GB, free: 67.07 MB / 266.7 MB Notification: Performance of Templates: time 0.0701/1.976, allocations: 45.61 MB / 0.6651 GB, free: 52.43 MB / 266.7 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1)