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.00106/0.00106, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00116/0.00116, allocations: 191 kB / 16.25 MB, free: 6.621 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.339/1.339, allocations: 205.1 MB / 222.1 MB, free: 4.695 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.001705/0.001705, allocations: 55.91 kB / 278.2 MB, free: 12.67 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2516/0.2533, allocations: 46.62 MB / 324.8 MB, free: 1.938 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.02853/0.2819, allocations: 28.94 MB / 353.8 MB, free: 7.082 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01563/0.2976, allocations: 5.941 MB / 359.7 MB, free: 1.121 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007157/0.3048, allocations: 115.8 kB / 359.8 MB, free: 1.008 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003234/0.3081, allocations: 1.363 MB / 361.2 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003606/0.3117, allocations: 0.9145 MB / 362.1 MB, free: 14.72 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008633/0.3126, allocations: 239.7 kB / 362.4 MB, free: 14.49 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003878/0.3165, allocations: 2.243 MB / 364.6 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003266/0.3198, allocations: 1.651 MB / 366.3 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001737/0.3215, allocations: 0.8406 MB / 367.1 MB, free: 9.723 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002429/0.324, allocations: 1.351 MB / 368.4 MB, free: 8.367 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007611/0.3248, allocations: 163.9 kB / 368.6 MB, free: 8.207 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001738/0.3265, allocations: 0.6592 MB / 369.3 MB, free: 7.547 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001725/0.3282, allocations: 1.188 MB / 370.5 MB, free: 6.355 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002517/0.3308, allocations: 1.401 MB / 371.9 MB, free: 4.945 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005387/0.3362, allocations: 4.15 MB / 376 MB, free: 0.7812 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.767e-06/0.3362, allocations: 0 / 376 MB, free: 0.7812 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.375e-06/0.3362, allocations: 0 / 376 MB, free: 0.7812 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001133/0.3364, allocations: 0 / 376 MB, free: 0.7812 MB / 302.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.005741/0.3421, allocations: 2.949 MB / 379 MB, free: 13.77 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.559e-05/0.3422, allocations: 15.89 kB / 379 MB, free: 13.75 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006507/0.3487, allocations: 1.779 MB / 380.7 MB, free: 11.96 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001848/0.3506, allocations: 1.162 MB / 381.9 MB, free: 10.76 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000133/0.3507, allocations: 159.8 kB / 382.1 MB, free: 10.6 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003683/0.3511, allocations: 203.7 kB / 382.3 MB, free: 10.4 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01879/0.3699, allocations: 8.596 MB / 390.9 MB, free: 1.203 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.124e-05/0.37, allocations: 35.66 kB / 390.9 MB, free: 1.168 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003112/0.3703, allocations: 103.9 kB / 391 MB, free: 1.066 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003028/0.3734, allocations: 1.667 MB / 392.7 MB, free: 15.39 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01767/0.391, allocations: 7.167 MB / 399.8 MB, free: 8.223 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03755/0.4286, allocations: 30.19 MB / 430 MB, free: 9.145 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02255/0.4512, allocations: 5.044 MB / 435.1 MB, free: 3.922 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001604/0.4529, allocations: 1.236 MB / 436.3 MB, free: 2.664 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005641/0.4585, allocations: 3.742 MB / 440 MB, free: 14.77 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.307e-05/0.4586, allocations: 54.83 kB / 440.1 MB, free: 14.71 MB / 382.1 MB Notification: Performance of pre-optimization done (n=111): time 3.316e-06/0.4586, allocations: 0 / 440.1 MB, free: 14.71 MB / 382.1 MB Notification: Performance of matching and sorting (n=111): time 0.04655/0.5052, allocations: 9.258 MB / 449.4 MB, free: 5.363 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001168/0.5053, allocations: 195.9 kB / 449.5 MB, free: 5.129 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004641/0.51, allocations: 3.039 MB / 452.6 MB, free: 2.07 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001933/0.5102, allocations: 53.62 kB / 452.6 MB, free: 2.012 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2086/0.7188, allocations: 2.409 MB / 455 MB, free: 116.4 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009222/0.7198, allocations: 0.4938 MB / 455.5 MB, free: 116.2 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002202/0.722, allocations: 1.093 MB / 456.6 MB, free: 115.9 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.222e-05/0.7221, allocations: 301.8 kB / 456.9 MB, free: 115.6 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002395/0.7245, allocations: 1.603 MB / 458.5 MB, free: 115.1 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003655/0.7281, allocations: 5.173 MB / 463.7 MB, free: 109.8 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006412/0.7346, allocations: 7.317 MB / 471 MB, free: 103.2 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001419/0.7347, allocations: 38.59 kB / 471.1 MB, free: 103.2 MB / 382.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.00871/0.7435, allocations: 6.444 MB / 477.5 MB, free: 99.54 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.338e-05/0.7436, allocations: 60 kB / 477.6 MB, free: 99.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001126/0.7437, allocations: 128.8 kB / 477.7 MB, free: 99.36 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000134/0.7438, allocations: 164 kB / 477.8 MB, free: 99.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004304/0.7481, allocations: 1.461 MB / 479.3 MB, free: 97.94 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001371/0.7483, allocations: 250.2 kB / 479.5 MB, free: 97.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003384/0.7517, allocations: 0.7426 MB / 480.3 MB, free: 97 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003599/0.7521, allocations: 344.8 kB / 480.6 MB, free: 96.66 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.001713/0.7538, allocations: 1.572 MB / 482.2 MB, free: 95.25 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003566/0.7541, allocations: 256.7 kB / 482.5 MB, free: 94.99 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009717/0.7551, allocations: 0.8211 MB / 483.3 MB, free: 94.16 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.237e-05/0.7552, allocations: 19.75 kB / 483.3 MB, free: 94.14 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.027e-05/0.7552, allocations: 0 / 483.3 MB, free: 94.14 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.035e-05/0.7552, allocations: 11.97 kB / 483.3 MB, free: 94.13 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004313/0.7595, allocations: 3.38 MB / 486.7 MB, free: 90.72 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.238e-06/0.7595, allocations: 7.844 kB / 486.7 MB, free: 90.72 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002196/0.7617, allocations: 407.5 kB / 487.1 MB, free: 90.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.067e-06/0.7618, allocations: 4 kB / 487.1 MB, free: 90.32 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.8e-05/0.7618, allocations: 35.97 kB / 487.1 MB, free: 90.28 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.903e-06/0.7618, allocations: 7.938 kB / 487.1 MB, free: 90.27 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.7619, allocations: 3.984 kB / 487.1 MB, free: 90.27 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002386/0.7642, allocations: 2.789 MB / 489.9 MB, free: 87.45 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000414/0.7647, allocations: 305.6 kB / 490.2 MB, free: 87.13 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002375/0.7649, allocations: 31.98 kB / 490.3 MB, free: 87.1 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008531/0.7658, allocations: 35.95 kB / 490.3 MB, free: 87.07 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001104/0.7659, allocations: 63.75 kB / 490.4 MB, free: 87.01 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.265e-05/0.766, allocations: 35.97 kB / 490.4 MB, free: 86.97 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001952/0.7679, allocations: 1.841 MB / 492.2 MB, free: 85.13 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.7679, allocations: 0 / 492.2 MB, free: 85.13 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003953/0.7719, allocations: 0.8248 MB / 493.1 MB, free: 84.3 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.0004227/0.7723, allocations: 180.1 kB / 493.2 MB, free: 84.12 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004588/0.7769, allocations: 3.79 MB / 497 MB, free: 80.37 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.777, allocations: 5.75 kB / 497 MB, free: 80.37 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006587/0.7776, allocations: 0.7167 MB / 497.7 MB, free: 79.65 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001544/0.7792, allocations: 256.1 kB / 498 MB, free: 79.41 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009746/0.7889, allocations: 8.451 MB / 0.4946 GB, free: 70.94 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001775/0.7907, allocations: 2.387 MB / 0.4969 GB, free: 68.53 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003429/0.7942, allocations: 1.637 MB / 0.4985 GB, free: 66.88 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003785/0.7946, allocations: 187.4 kB / 0.4987 GB, free: 66.7 MB / 382.1 MB Notification: Performance of SimCode: time 1.924e-06/0.7946, allocations: 4 kB / 0.4987 GB, free: 66.7 MB / 382.1 MB Notification: Performance of Templates: time 0.03287/0.8275, allocations: 21.39 MB / 0.5196 GB, free: 45.35 MB / 382.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)