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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005894/0.005899, allocations: 98.98 kB / 15.73 MB, free: 6.012 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.001117/0.001117, allocations: 190.4 kB / 16.67 MB, free: 5.934 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.491/1.491, allocations: 205.1 MB / 222.6 MB, free: 4.48 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.00114/0.00114, allocations: 50.7 kB / 326.6 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08568/0.08682, allocations: 46.63 MB / 373.2 MB, free: 1.305 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.009054/0.09591, allocations: 7.95 MB / 381.1 MB, free: 9.312 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00588/0.1018, allocations: 2.556 MB / 383.7 MB, free: 6.746 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00102/0.1029, allocations: 35.88 kB / 383.7 MB, free: 6.711 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002778/0.1057, allocations: 1.425 MB / 385.1 MB, free: 5.281 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002341/0.1081, allocations: 0.9839 MB / 386.1 MB, free: 4.293 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006665/0.1087, allocations: 259.5 kB / 386.4 MB, free: 4.039 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002707/0.1115, allocations: 2.196 MB / 388.6 MB, free: 1.836 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001659/0.1131, allocations: 1.552 MB / 390.1 MB, free: 264 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001034/0.1142, allocations: 0.8406 MB / 391 MB, free: 15.41 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001353/0.1156, allocations: 1.179 MB / 392.2 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003069/0.1159, allocations: 163.9 kB / 392.3 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001207/0.1171, allocations: 0.6591 MB / 393 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009765/0.1181, allocations: 1.165 MB / 394.1 MB, free: 12.24 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001242/0.1193, allocations: 1.378 MB / 395.5 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0043/0.1236, allocations: 4.321 MB / 399.8 MB, free: 6.516 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.1237, allocations: 0 / 399.8 MB, free: 6.516 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.033e-06/0.1237, allocations: 4 kB / 399.8 MB, free: 6.512 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.551e-05/0.1238, allocations: 0 / 399.8 MB, free: 6.512 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.004462/0.1282, allocations: 3.041 MB / 402.9 MB, free: 3.402 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.154e-05/0.1283, allocations: 11.89 kB / 402.9 MB, free: 3.391 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006687/0.135, allocations: 1.793 MB / 404.7 MB, free: 1.594 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001994/0.137, allocations: 1.17 MB / 405.9 MB, free: 388 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.697e-05/0.1371, allocations: 151.8 kB / 406 MB, free: 236 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003401/0.1375, allocations: 207.8 kB / 406.2 MB, free: 28 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01848/0.1559, allocations: 8.596 MB / 414.8 MB, free: 6.832 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.469e-05/0.1561, allocations: 43.62 kB / 414.8 MB, free: 6.789 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002647/0.1564, allocations: 103.9 kB / 414.9 MB, free: 6.688 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002818/0.1592, allocations: 1.667 MB / 416.6 MB, free: 5.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02137/0.1806, allocations: 7.167 MB / 423.8 MB, free: 13.85 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2527/0.4333, allocations: 30.14 MB / 453.9 MB, free: 62.75 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02267/0.456, allocations: 5.04 MB / 459 MB, free: 62.02 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001731/0.4578, allocations: 1.25 MB / 460.2 MB, free: 61.96 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005288/0.4631, allocations: 3.748 MB / 464 MB, free: 60.41 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.713e-05/0.4632, allocations: 51.16 kB / 464 MB, free: 60.37 MB / 382.1 MB Notification: Performance of pre-optimization done (n=111): time 3.517e-06/0.4632, allocations: 1.031 kB / 464 MB, free: 60.37 MB / 382.1 MB Notification: Performance of matching and sorting (n=111): time 0.04166/0.5048, allocations: 9.277 MB / 473.3 MB, free: 58.57 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.568e-05/0.5049, allocations: 194.2 kB / 473.5 MB, free: 58.34 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003418/0.5084, allocations: 3.046 MB / 476.5 MB, free: 56.99 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000143/0.5085, allocations: 41.45 kB / 476.6 MB, free: 56.95 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001032/0.5095, allocations: 2.529 MB / 479.1 MB, free: 54.93 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003355/0.5099, allocations: 0.5208 MB / 479.6 MB, free: 54.5 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009542/0.5109, allocations: 1.093 MB / 480.7 MB, free: 53.87 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.462e-05/0.5109, allocations: 303.8 kB / 481 MB, free: 53.57 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001844/0.5128, allocations: 1.605 MB / 482.6 MB, free: 52.71 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002875/0.5157, allocations: 5.164 MB / 487.8 MB, free: 45.81 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005596/0.5213, allocations: 7.322 MB / 495.1 MB, free: 36.79 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.563e-05/0.5214, allocations: 39.94 kB / 495.1 MB, free: 36.75 MB / 382.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.008901/0.5303, allocations: 6.459 MB / 0.4898 GB, free: 30.29 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.664e-05/0.5304, allocations: 60 kB / 0.4899 GB, free: 30.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.738e-05/0.5305, allocations: 129.3 kB / 0.49 GB, free: 30.11 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001364/0.5307, allocations: 164 kB / 0.4902 GB, free: 29.95 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00422/0.5349, allocations: 1.45 MB / 0.4916 GB, free: 28.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001382/0.535, allocations: 251 kB / 0.4918 GB, free: 28.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003628/0.5387, allocations: 0.7718 MB / 0.4926 GB, free: 27.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004078/0.5391, allocations: 344 kB / 0.4929 GB, free: 27.14 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.001899/0.541, allocations: 1.581 MB / 0.4945 GB, free: 25.55 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004022/0.5414, allocations: 262.3 kB / 0.4947 GB, free: 25.3 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001093/0.5425, allocations: 0.8249 MB / 0.4955 GB, free: 24.46 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.105e-05/0.5425, allocations: 20 kB / 0.4955 GB, free: 24.45 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.144e-05/0.5426, allocations: 0 / 0.4955 GB, free: 24.45 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.078e-05/0.5426, allocations: 15.86 kB / 0.4955 GB, free: 24.43 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004721/0.5473, allocations: 3.39 MB / 0.4989 GB, free: 21 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.763e-06/0.5474, allocations: 4 kB / 0.4989 GB, free: 21 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002035/0.5494, allocations: 411.3 kB / 0.4992 GB, free: 20.6 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.238e-06/0.5494, allocations: 7.938 kB / 0.4993 GB, free: 20.59 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.919e-05/0.5495, allocations: 39.97 kB / 0.4993 GB, free: 20.55 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.103e-06/0.5495, allocations: 4 kB / 0.4993 GB, free: 20.55 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.5495, allocations: 0 / 0.4993 GB, free: 20.55 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00242/0.5519, allocations: 2.806 MB / 0.502 GB, free: 17.73 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004875/0.5524, allocations: 308.5 kB / 0.5023 GB, free: 17.41 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002351/0.5527, allocations: 35.92 kB / 0.5024 GB, free: 17.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008516/0.5536, allocations: 43.95 kB / 0.5024 GB, free: 17.34 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001051/0.5537, allocations: 63.47 kB / 0.5025 GB, free: 17.28 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.708e-05/0.5537, allocations: 35.97 kB / 0.5025 GB, free: 17.24 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002065/0.5558, allocations: 1.837 MB / 0.5043 GB, free: 15.4 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5558, allocations: 0 / 0.5043 GB, free: 15.4 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003547/0.5594, allocations: 0.8383 MB / 0.5051 GB, free: 14.56 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.0003274/0.5597, allocations: 166.5 kB / 0.5053 GB, free: 14.4 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004229/0.564, allocations: 3.613 MB / 0.5088 GB, free: 10.82 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.564, allocations: 0 / 0.5088 GB, free: 10.82 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006883/0.5647, allocations: 0.7142 MB / 0.5095 GB, free: 10.1 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001597/0.5663, allocations: 274 kB / 0.5098 GB, free: 9.848 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0089/0.5752, allocations: 7.156 MB / 0.5167 GB, free: 2.684 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001753/0.577, allocations: 2.387 MB / 0.5191 GB, free: 268 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003573/0.5806, allocations: 1.637 MB / 0.5207 GB, free: 14.61 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004576/0.581, allocations: 191.3 kB / 0.5209 GB, free: 14.43 MB / 398.1 MB Notification: Performance of SimCode: time 1.012e-06/0.581, allocations: 0 / 0.5209 GB, free: 14.43 MB / 398.1 MB Notification: Performance of Templates: time 0.04214/0.6232, allocations: 18.8 MB / 0.5392 GB, free: 11.68 MB / 414.1 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)