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.007643/0.007643, allocations: 99.83 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.001414/0.001414, allocations: 189.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.474/1.474, allocations: 205.1 MB / 222.5 MB, free: 4.496 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.001185/0.001185, allocations: 50.73 kB / 326.6 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09297/0.09417, allocations: 46.62 MB / 373.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.008359/0.1026, allocations: 7.95 MB / 381.1 MB, free: 9.316 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00514/0.1077, allocations: 2.56 MB / 383.7 MB, free: 6.746 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000877/0.1086, allocations: 39.81 kB / 383.7 MB, free: 6.707 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002853/0.1115, allocations: 1.425 MB / 385.2 MB, free: 5.277 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002488/0.1141, allocations: 0.9801 MB / 386.1 MB, free: 4.293 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007465/0.1148, allocations: 255.4 kB / 386.4 MB, free: 4.043 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002765/0.1176, allocations: 2.196 MB / 388.6 MB, free: 1.84 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001793/0.1194, allocations: 1.556 MB / 390.1 MB, free: 264 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001168/0.1206, allocations: 0.8367 MB / 391 MB, free: 15.42 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001442/0.122, allocations: 1.191 MB / 392.2 MB, free: 14.22 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003224/0.1224, allocations: 160 kB / 392.3 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001298/0.1237, allocations: 0.6475 MB / 393 MB, free: 13.42 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009945/0.1247, allocations: 1.173 MB / 394.1 MB, free: 12.24 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001156/0.1259, allocations: 1.374 MB / 395.5 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004468/0.1303, allocations: 4.321 MB / 399.8 MB, free: 6.52 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/0.1304, allocations: 4 kB / 399.8 MB, free: 6.516 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.135e-06/0.1304, allocations: 0 / 399.8 MB, free: 6.516 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.079e-05/0.1305, allocations: 3.938 kB / 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.00497/0.1354, allocations: 3.033 MB / 402.9 MB, free: 3.41 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.753e-05/0.1355, allocations: 15.89 kB / 402.9 MB, free: 3.395 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006897/0.1424, allocations: 1.797 MB / 404.7 MB, free: 1.594 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003067/0.1455, allocations: 1.166 MB / 405.9 MB, free: 392 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001407/0.1457, allocations: 155.8 kB / 406 MB, free: 236 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004892/0.1462, allocations: 207.8 kB / 406.2 MB, free: 28 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01905/0.1653, allocations: 8.592 MB / 414.8 MB, free: 6.836 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001095/0.1654, allocations: 39.69 kB / 414.8 MB, free: 6.797 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002956/0.1657, allocations: 103.9 kB / 414.9 MB, free: 6.695 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002945/0.1687, allocations: 1.663 MB / 416.6 MB, free: 5.031 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01855/0.1872, allocations: 7.174 MB / 423.8 MB, free: 13.85 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2568/0.4441, allocations: 30.13 MB / 453.9 MB, free: 62.63 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.023/0.4672, allocations: 5.046 MB / 459 MB, free: 61.9 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001648/0.4689, allocations: 1.25 MB / 460.2 MB, free: 61.84 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004662/0.4736, allocations: 3.754 MB / 464 MB, free: 60.29 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.688e-05/0.4736, allocations: 48.8 kB / 464 MB, free: 60.25 MB / 382.1 MB Notification: Performance of pre-optimization done (n=111): time 2.715e-06/0.4736, allocations: 0 / 464 MB, free: 60.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=111): time 0.04237/0.516, allocations: 9.274 MB / 473.3 MB, free: 58.45 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.72e-05/0.5161, allocations: 197.8 kB / 473.5 MB, free: 58.23 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003518/0.5196, allocations: 3.044 MB / 476.5 MB, free: 56.89 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001058/0.5197, allocations: 44.45 kB / 476.6 MB, free: 56.85 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001052/0.5208, allocations: 2.534 MB / 479.1 MB, free: 54.83 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003236/0.5211, allocations: 0.5106 MB / 479.6 MB, free: 54.4 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009847/0.5221, allocations: 1.103 MB / 480.7 MB, free: 53.77 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.689e-05/0.5222, allocations: 303.8 kB / 481 MB, free: 53.47 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001732/0.5239, allocations: 1.596 MB / 482.6 MB, free: 52.74 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003078/0.527, allocations: 5.169 MB / 487.8 MB, free: 45.88 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005113/0.5321, allocations: 7.324 MB / 495.1 MB, free: 36.86 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.626e-05/0.5322, allocations: 36 kB / 495.1 MB, free: 36.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.007766/0.54, allocations: 6.455 MB / 0.4898 GB, free: 30.37 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.812e-05/0.5401, allocations: 60 kB / 0.4899 GB, free: 30.31 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.178e-05/0.5401, allocations: 129.3 kB / 0.49 GB, free: 30.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001162/0.5403, allocations: 164 kB / 0.4902 GB, free: 30.02 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004056/0.5443, allocations: 1.458 MB / 0.4916 GB, free: 28.56 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001424/0.5445, allocations: 251 kB / 0.4918 GB, free: 28.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003017/0.5475, allocations: 0.7718 MB / 0.4926 GB, free: 27.54 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002994/0.5478, allocations: 344 kB / 0.4929 GB, free: 27.21 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.001672/0.5495, allocations: 1.574 MB / 0.4944 GB, free: 25.62 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003187/0.5498, allocations: 262.3 kB / 0.4947 GB, free: 25.37 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001029/0.5509, allocations: 0.8327 MB / 0.4955 GB, free: 24.53 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.933e-05/0.5509, allocations: 20 kB / 0.4955 GB, free: 24.51 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.024e-05/0.5509, allocations: 0 / 0.4955 GB, free: 24.51 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.139e-05/0.5509, allocations: 13 kB / 0.4955 GB, free: 24.5 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004387/0.5553, allocations: 3.385 MB / 0.4988 GB, free: 21.07 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.674e-06/0.5553, allocations: 7.984 kB / 0.4989 GB, free: 21.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002107/0.5574, allocations: 407.5 kB / 0.4992 GB, free: 20.67 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.248e-06/0.5575, allocations: 7.938 kB / 0.4993 GB, free: 20.66 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.933e-05/0.5576, allocations: 39.97 kB / 0.4993 GB, free: 20.62 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.811e-06/0.5576, allocations: 4 kB / 0.4993 GB, free: 20.62 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.5576, allocations: 3.562 kB / 0.4993 GB, free: 20.62 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002382/0.56, allocations: 2.798 MB / 0.502 GB, free: 17.81 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004781/0.5605, allocations: 320.5 kB / 0.5023 GB, free: 17.48 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002445/0.5607, allocations: 35.92 kB / 0.5024 GB, free: 17.45 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008509/0.5616, allocations: 35.97 kB / 0.5024 GB, free: 17.41 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001118/0.5617, allocations: 67.78 kB / 0.5025 GB, free: 17.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.588e-05/0.5618, allocations: 31.98 kB / 0.5025 GB, free: 17.31 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001908/0.5637, allocations: 1.841 MB / 0.5043 GB, free: 15.47 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.5637, allocations: 0 / 0.5043 GB, free: 15.47 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003319/0.567, allocations: 0.8306 MB / 0.5051 GB, free: 14.64 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.0003053/0.5673, allocations: 171.4 kB / 0.5053 GB, free: 14.47 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004236/0.5716, allocations: 3.614 MB / 0.5088 GB, free: 10.89 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/0.5716, allocations: 4.062 kB / 0.5088 GB, free: 10.88 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006977/0.5723, allocations: 0.7142 MB / 0.5095 GB, free: 10.17 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001629/0.5739, allocations: 264.5 kB / 0.5098 GB, free: 9.922 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009249/0.5832, allocations: 7.159 MB / 0.5167 GB, free: 2.754 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001876/0.5851, allocations: 2.394 MB / 0.5191 GB, free: 332 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003397/0.5885, allocations: 1.633 MB / 0.5207 GB, free: 14.68 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004221/0.5889, allocations: 187.3 kB / 0.5209 GB, free: 14.5 MB / 398.1 MB Notification: Performance of SimCode: time 8.62e-07/0.589, allocations: 0 / 0.5209 GB, free: 14.5 MB / 398.1 MB Notification: Performance of Templates: time 0.03986/0.6288, allocations: 18.81 MB / 0.5392 GB, free: 11.73 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)