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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007377/0.007377, allocations: 101.3 kB / 15.73 MB, free: 6.035 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.001487/0.001487, allocations: 186.1 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.492/1.492, allocations: 205.1 MB / 222.5 MB, free: 4.516 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.001127/0.001127, allocations: 62.78 kB / 326.6 MB, free: 14.39 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08848/0.08961, allocations: 46.61 MB / 373.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.009099/0.09876, allocations: 7.958 MB / 381.1 MB, free: 9.316 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004615/0.1034, allocations: 2.563 MB / 383.7 MB, free: 6.742 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006044/0.104, allocations: 35.94 kB / 383.7 MB, free: 6.707 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002535/0.1066, allocations: 1.421 MB / 385.2 MB, free: 5.281 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002129/0.1088, allocations: 1.011 MB / 386.2 MB, free: 4.266 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006884/0.1095, allocations: 263.5 kB / 386.4 MB, free: 4.008 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002685/0.1122, allocations: 2.188 MB / 388.6 MB, free: 1.812 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001602/0.1138, allocations: 1.552 MB / 390.2 MB, free: 240 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001013/0.1148, allocations: 0.8406 MB / 391 MB, free: 15.39 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001438/0.1163, allocations: 1.187 MB / 392.2 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003062/0.1166, allocations: 160 kB / 392.3 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001205/0.1178, allocations: 0.663 MB / 393 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001012/0.1188, allocations: 1.165 MB / 394.2 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001457/0.1203, allocations: 1.374 MB / 395.5 MB, free: 10.83 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004432/0.1247, allocations: 4.308 MB / 399.9 MB, free: 6.504 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.1248, allocations: 0 / 399.9 MB, free: 6.504 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1248, allocations: 0 / 399.9 MB, free: 6.504 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.119e-05/0.1249, allocations: 4 kB / 399.9 MB, free: 6.5 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: 1113 * Number of variables: 1113 Notification: Performance of Generate backend data structure: time 0.004646/0.1295, allocations: 2.949 MB / 402.8 MB, free: 3.488 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.1296, allocations: 11.89 kB / 402.8 MB, free: 3.477 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006782/0.1364, allocations: 1.783 MB / 404.6 MB, free: 1.688 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002149/0.1385, allocations: 1.162 MB / 405.8 MB, free: 492 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001021/0.1387, allocations: 155.8 kB / 405.9 MB, free: 336 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003454/0.139, allocations: 203.8 kB / 406.1 MB, free: 132 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01867/0.1577, allocations: 8.588 MB / 414.7 MB, free: 6.941 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001071/0.1579, allocations: 35.66 kB / 414.7 MB, free: 6.906 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003153/0.1582, allocations: 111.9 kB / 414.8 MB, free: 6.797 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002887/0.1611, allocations: 1.663 MB / 416.5 MB, free: 5.133 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01747/0.1786, allocations: 7.182 MB / 423.7 MB, free: 13.95 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2463/0.4249, allocations: 30.08 MB / 453.8 MB, free: 63.27 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0242/0.4492, allocations: 5.04 MB / 458.8 MB, free: 62.54 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00163/0.4508, allocations: 1.246 MB / 460.1 MB, free: 62.48 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00546/0.4563, allocations: 3.744 MB / 463.8 MB, free: 60.84 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.246e-05/0.4564, allocations: 43.02 kB / 463.9 MB, free: 60.8 MB / 382.1 MB Notification: Performance of pre-optimization done (n=111): time 4.378e-06/0.4564, allocations: 0 / 463.9 MB, free: 60.8 MB / 382.1 MB Notification: Performance of matching and sorting (n=111): time 0.04496/0.5014, allocations: 9.264 MB / 473.1 MB, free: 58.93 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.159e-05/0.5015, allocations: 201.7 kB / 473.3 MB, free: 58.7 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003642/0.5051, allocations: 3.031 MB / 476.3 MB, free: 57.08 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001696/0.5053, allocations: 37.61 kB / 476.4 MB, free: 57.04 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001084/0.5064, allocations: 2.426 MB / 478.8 MB, free: 54.92 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003876/0.5068, allocations: 0.4958 MB / 479.3 MB, free: 54.51 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001061/0.5078, allocations: 1.079 MB / 480.4 MB, free: 53.89 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.612e-05/0.5079, allocations: 301.1 kB / 480.7 MB, free: 53.6 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001735/0.5097, allocations: 1.607 MB / 482.3 MB, free: 52.86 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003267/0.5129, allocations: 5.171 MB / 487.5 MB, free: 45.98 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005115/0.5181, allocations: 7.323 MB / 494.8 MB, free: 36.96 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.462e-05/0.5181, allocations: 36 kB / 494.8 MB, free: 36.92 MB / 382.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.007706/0.5259, allocations: 6.45 MB / 0.4895 GB, free: 30.47 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.851e-05/0.5259, allocations: 60 kB / 0.4896 GB, free: 30.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.57e-05/0.526, allocations: 133.4 kB / 0.4897 GB, free: 30.28 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001069/0.5261, allocations: 168 kB / 0.4899 GB, free: 30.12 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004312/0.5305, allocations: 1.45 MB / 0.4913 GB, free: 28.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001351/0.5306, allocations: 247.1 kB / 0.4915 GB, free: 28.42 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003294/0.5339, allocations: 0.7459 MB / 0.4922 GB, free: 27.67 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005444/0.5345, allocations: 347.9 kB / 0.4926 GB, free: 27.33 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 580 * Number of states: 0 () * Number of discrete variables: 30 (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.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 (681): * Single equations (assignments): 678 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002466/0.537, allocations: 1.579 MB / 0.4941 GB, free: 25.74 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004781/0.5374, allocations: 244.8 kB / 0.4943 GB, free: 25.5 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001222/0.5387, allocations: 0.8288 MB / 0.4952 GB, free: 24.66 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.432e-05/0.5387, allocations: 19.17 kB / 0.4952 GB, free: 24.65 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.102e-05/0.5387, allocations: 0 / 0.4952 GB, free: 24.65 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.184e-05/0.5387, allocations: 13.7 kB / 0.4952 GB, free: 24.64 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005083/0.5438, allocations: 3.397 MB / 0.4985 GB, free: 21.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.074e-05/0.5439, allocations: 4 kB / 0.4985 GB, free: 21.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00218/0.5461, allocations: 407.5 kB / 0.4989 GB, free: 20.8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.1e-05/0.5461, allocations: 7.938 kB / 0.4989 GB, free: 20.79 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.757e-05/0.5462, allocations: 35.97 kB / 0.4989 GB, free: 20.76 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.564e-06/0.5462, allocations: 7.938 kB / 0.4989 GB, free: 20.75 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.5462, allocations: 0 / 0.4989 GB, free: 20.75 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002491/0.5487, allocations: 2.785 MB / 0.5017 GB, free: 17.95 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004805/0.5492, allocations: 301.7 kB / 0.502 GB, free: 17.64 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002418/0.5494, allocations: 31.92 kB / 0.502 GB, free: 17.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008405/0.5503, allocations: 39.95 kB / 0.502 GB, free: 17.57 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001125/0.5504, allocations: 59.92 kB / 0.5021 GB, free: 17.51 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.492e-05/0.5505, allocations: 39.72 kB / 0.5021 GB, free: 17.47 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001996/0.5525, allocations: 1.837 MB / 0.5039 GB, free: 15.63 MB / 382.1 MB Notification: Performance of sort global known variables: time 9.82e-07/0.5525, allocations: 0 / 0.5039 GB, free: 15.63 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003582/0.5561, allocations: 0.8364 MB / 0.5047 GB, free: 14.8 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 24 (body1.r_0[1],body1.r_0[2],body1.r_0[3],body1.v_0[1],body1.v_0[2],body1.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],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]) * 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 (87): * Single equations (assignments): 84 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003373/0.5564, allocations: 165.1 kB / 0.5049 GB, free: 14.64 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004263/0.5607, allocations: 3.604 MB / 0.5084 GB, free: 11.06 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.5607, allocations: 5.875 kB / 0.5084 GB, free: 11.06 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007073/0.5614, allocations: 0.7116 MB / 0.5091 GB, free: 10.35 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00156/0.563, allocations: 269.4 kB / 0.5094 GB, free: 10.1 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00892/0.5719, allocations: 7.058 MB / 0.5163 GB, free: 3.031 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001764/0.5737, allocations: 2.387 MB / 0.5186 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003272/0.577, allocations: 1.633 MB / 0.5202 GB, free: 14.96 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004168/0.5774, allocations: 187.4 kB / 0.5204 GB, free: 14.78 MB / 398.1 MB Notification: Performance of SimCode: time 1.122e-06/0.5774, allocations: 3.938 kB / 0.5204 GB, free: 14.78 MB / 398.1 MB Notification: Performance of Templates: time 0.03903/0.6165, allocations: 18.8 MB / 0.5387 GB, free: 12.03 MB / 414.1 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)