Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001082/0.001082, allocations: 108.5 kB / 17.06 MB, free: 6.016 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.001415/0.001415, allocations: 192 kB / 18 MB, free: 5.098 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.438/1.438, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.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.001255/0.001255, allocations: 47.94 kB / 327.9 MB, free: 3.285 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09027/0.09153, allocations: 46.62 MB / 374.5 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.1911/0.2827, allocations: 7.961 MB / 382.5 MB, free: 9.043 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005368/0.2881, allocations: 2.555 MB / 385 MB, free: 7.949 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001061/0.2892, allocations: 35 kB / 385 MB, free: 7.945 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002876/0.2921, allocations: 1.423 MB / 386.5 MB, free: 7.34 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002961/0.2951, allocations: 0.9857 MB / 387.4 MB, free: 6.867 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007332/0.2958, allocations: 265.2 kB / 387.7 MB, free: 6.73 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003696/0.2995, allocations: 2.182 MB / 389.9 MB, free: 5.855 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002216/0.3018, allocations: 1.554 MB / 391.4 MB, free: 5.242 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001635/0.3034, allocations: 0.8442 MB / 392.3 MB, free: 4.879 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001902/0.3053, allocations: 1.185 MB / 393.5 MB, free: 4.422 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004809/0.3058, allocations: 159.2 kB / 393.6 MB, free: 4.422 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001594/0.3074, allocations: 0.6501 MB / 394.3 MB, free: 4.27 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001323/0.3088, allocations: 1.168 MB / 395.4 MB, free: 3.859 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001141/0.3099, allocations: 1.373 MB / 396.8 MB, free: 2.871 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004944/0.3149, allocations: 4.307 MB / 401.1 MB, free: 464 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.3149, allocations: 0 / 401.1 MB, free: 464 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3149, allocations: 0 / 401.1 MB, free: 464 kB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001344/0.315, allocations: 1.125 kB / 401.1 MB, free: 464 kB / 318.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.00608/0.3211, allocations: 2.955 MB / 404.1 MB, free: 14.28 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.754e-05/0.3212, allocations: 17.42 kB / 404.1 MB, free: 14.27 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007283/0.3285, allocations: 1.772 MB / 405.9 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003413/0.3319, allocations: 1.165 MB / 407 MB, free: 12.51 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001346/0.3321, allocations: 154.2 kB / 407.2 MB, free: 12.44 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004601/0.3325, allocations: 209.8 kB / 407.4 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02099/0.3535, allocations: 8.594 MB / 416 MB, free: 5.285 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001383/0.3537, allocations: 47.58 kB / 416 MB, free: 5.238 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006338/0.3544, allocations: 99.89 kB / 416.1 MB, free: 5.141 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003016/0.3574, allocations: 1.663 MB / 417.8 MB, free: 3.477 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01878/0.3762, allocations: 7.175 MB / 425 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04907/0.4253, allocations: 30.1 MB / 455.1 MB, free: 13.32 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02331/0.4487, allocations: 5.044 MB / 460.1 MB, free: 8.094 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00184/0.4505, allocations: 1.243 MB / 461.4 MB, free: 6.832 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007207/0.4578, allocations: 3.75 MB / 465.1 MB, free: 2.934 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.752e-05/0.4578, allocations: 50.83 kB / 465.2 MB, free: 2.875 MB / 382.1 MB Notification: Performance of pre-optimization done (n=111): time 4.038e-06/0.4579, allocations: 0 / 465.2 MB, free: 2.875 MB / 382.1 MB Notification: Performance of matching and sorting (n=111): time 0.04694/0.5048, allocations: 9.258 MB / 474.4 MB, free: 9.527 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001037/0.5049, allocations: 191.9 kB / 474.6 MB, free: 9.297 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006008/0.511, allocations: 3.043 MB / 477.6 MB, free: 6.234 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002149/0.5112, allocations: 41.7 kB / 477.7 MB, free: 6.188 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001979/0.5132, allocations: 2.418 MB / 480.1 MB, free: 3.73 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007875/0.514, allocations: 0.5018 MB / 480.6 MB, free: 3.223 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002482/0.5165, allocations: 1.083 MB / 481.7 MB, free: 2.129 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000113/0.5166, allocations: 301.1 kB / 482 MB, free: 1.832 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002678/0.5193, allocations: 1.607 MB / 483.6 MB, free: 224 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004962/0.5243, allocations: 5.169 MB / 488.8 MB, free: 9.242 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0083/0.5326, allocations: 7.32 MB / 496.1 MB, free: 140 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001287/0.5328, allocations: 36 kB / 496.1 MB, free: 104 kB / 414.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01316/0.5459, allocations: 6.446 MB / 0.4908 GB, free: 9.652 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001189/0.5461, allocations: 60 kB / 0.4908 GB, free: 9.594 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002024/0.5463, allocations: 128 kB / 0.491 GB, free: 9.469 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002179/0.5465, allocations: 168 kB / 0.4911 GB, free: 9.305 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005707/0.5523, allocations: 1.454 MB / 0.4925 GB, free: 7.848 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002953/0.5526, allocations: 251 kB / 0.4928 GB, free: 7.602 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004976/0.5576, allocations: 0.7421 MB / 0.4935 GB, free: 6.852 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009722/0.5586, allocations: 348 kB / 0.4938 GB, free: 6.512 MB / 430.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.003242/0.5618, allocations: 1.579 MB / 0.4954 GB, free: 4.918 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006628/0.5625, allocations: 248.8 kB / 0.4956 GB, free: 4.672 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001902/0.5644, allocations: 0.827 MB / 0.4964 GB, free: 3.836 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.279e-05/0.5644, allocations: 16 kB / 0.4964 GB, free: 3.82 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.685e-05/0.5645, allocations: 7.938 kB / 0.4964 GB, free: 3.812 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.173e-05/0.5645, allocations: 7.984 kB / 0.4965 GB, free: 3.805 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007996/0.5725, allocations: 3.392 MB / 0.4998 GB, free: 360 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.159e-05/0.5725, allocations: 0 / 0.4998 GB, free: 360 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002391/0.5749, allocations: 423.3 kB / 0.5002 GB, free: 15.94 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.976e-05/0.575, allocations: 4 kB / 0.5002 GB, free: 15.93 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001543/0.5751, allocations: 35.97 kB / 0.5002 GB, free: 15.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.123e-05/0.5751, allocations: 4 kB / 0.5002 GB, free: 15.89 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.5752, allocations: 0 / 0.5002 GB, free: 15.89 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003819/0.579, allocations: 2.781 MB / 0.5029 GB, free: 13.09 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001148/0.5802, allocations: 305.6 kB / 0.5032 GB, free: 12.77 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006604/0.5808, allocations: 27.98 kB / 0.5032 GB, free: 12.74 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001239/0.5821, allocations: 39.97 kB / 0.5033 GB, free: 12.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001385/0.5822, allocations: 51.91 kB / 0.5033 GB, free: 12.65 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001016/0.5823, allocations: 43.97 kB / 0.5034 GB, free: 12.61 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004528/0.5869, allocations: 1.841 MB / 0.5052 GB, free: 10.76 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.983e-06/0.5869, allocations: 0 / 0.5052 GB, free: 10.76 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005536/0.5924, allocations: 0.8337 MB / 0.506 GB, free: 9.926 MB / 446.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.0005852/0.593, allocations: 167 kB / 0.5061 GB, free: 9.754 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006626/0.5997, allocations: 3.612 MB / 0.5097 GB, free: 6.168 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.493e-06/0.5997, allocations: 0 / 0.5097 GB, free: 6.168 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009898/0.6007, allocations: 0.7196 MB / 0.5104 GB, free: 5.449 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002402/0.6031, allocations: 269.4 kB / 0.5106 GB, free: 5.191 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01433/0.6175, allocations: 7.042 MB / 0.5175 GB, free: 14.11 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003777/0.6213, allocations: 2.398 MB / 0.5199 GB, free: 11.68 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004541/0.6258, allocations: 1.633 MB / 0.5214 GB, free: 10.04 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007535/0.6266, allocations: 187.4 kB / 0.5216 GB, free: 9.852 MB / 462.1 MB Notification: Performance of SimCode: time 1.253e-06/0.6266, allocations: 0 / 0.5216 GB, free: 9.852 MB / 462.1 MB Notification: Performance of Templates: time 0.04367/0.6703, allocations: 18.32 MB / 0.5395 GB, free: 7.504 MB / 478.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1)