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.001687/0.001687, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001877/0.001877, allocations: 192.3 kB / 16.53 MB, free: 6.391 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.355/1.355, allocations: 205.1 MB / 222.4 MB, free: 4.586 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.001236/0.001237, allocations: 55.91 kB / 278.7 MB, free: 12.36 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2403/0.2415, allocations: 46.64 MB / 325.3 MB, free: 1.852 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.008777/0.2504, allocations: 7.955 MB / 333.3 MB, free: 11.6 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.005293/0.2557, allocations: 2.558 MB / 335.8 MB, free: 9.375 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009082/0.2567, allocations: 35.94 kB / 335.9 MB, free: 9.34 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003071/0.2598, allocations: 1.421 MB / 337.3 MB, free: 7.914 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002766/0.2626, allocations: 0.98 MB / 338.3 MB, free: 6.93 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008313/0.2634, allocations: 275.4 kB / 338.5 MB, free: 6.66 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002909/0.2663, allocations: 2.181 MB / 340.7 MB, free: 4.473 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002151/0.2685, allocations: 1.549 MB / 342.3 MB, free: 2.906 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001158/0.2697, allocations: 0.8367 MB / 343.1 MB, free: 2.066 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001393/0.2711, allocations: 1.187 MB / 344.3 MB, free: 0.875 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003462/0.2715, allocations: 163.9 kB / 344.5 MB, free: 0.7148 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001362/0.2728, allocations: 0.6514 MB / 345.1 MB, free: 64 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001155/0.274, allocations: 1.169 MB / 346.3 MB, free: 14.89 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00126/0.2753, allocations: 1.37 MB / 347.6 MB, free: 13.51 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004694/0.28, allocations: 4.119 MB / 351.8 MB, free: 9.379 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.142e-06/0.28, allocations: 0 / 351.8 MB, free: 9.379 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.28, allocations: 4 kB / 351.8 MB, free: 9.375 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.938e-05/0.2801, allocations: 0 / 351.8 MB, free: 9.375 MB / 286.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.00488/0.285, allocations: 2.949 MB / 354.7 MB, free: 6.363 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.691e-05/0.285, allocations: 19.83 kB / 354.7 MB, free: 6.344 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006982/0.292, allocations: 1.775 MB / 356.5 MB, free: 4.562 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002151/0.2942, allocations: 1.154 MB / 357.7 MB, free: 3.363 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001027/0.2943, allocations: 147.8 kB / 357.8 MB, free: 3.219 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003681/0.2947, allocations: 215.8 kB / 358 MB, free: 3.008 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01803/0.3128, allocations: 8.592 MB / 366.6 MB, free: 9.812 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.54e-05/0.3129, allocations: 39.66 kB / 366.6 MB, free: 9.773 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002624/0.3132, allocations: 103.9 kB / 366.7 MB, free: 9.672 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002772/0.3159, allocations: 1.663 MB / 368.4 MB, free: 8.004 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01769/0.3336, allocations: 7.178 MB / 375.6 MB, free: 0.8242 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03556/0.3692, allocations: 30.19 MB / 405.8 MB, free: 1.742 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02279/0.3921, allocations: 5.04 MB / 410.8 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001711/0.3938, allocations: 1.244 MB / 412.1 MB, free: 11.26 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0053/0.3991, allocations: 3.734 MB / 415.8 MB, free: 7.375 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.528e-05/0.3992, allocations: 62.67 kB / 415.9 MB, free: 7.305 MB / 350.1 MB Notification: Performance of pre-optimization done (n=111): time 3.036e-06/0.3992, allocations: 0 / 415.9 MB, free: 7.305 MB / 350.1 MB Notification: Performance of matching and sorting (n=111): time 0.04698/0.4462, allocations: 9.254 MB / 425.1 MB, free: 13.96 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001077/0.4463, allocations: 199.8 kB / 425.3 MB, free: 13.73 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003975/0.4503, allocations: 3.039 MB / 428.3 MB, free: 10.67 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001472/0.4505, allocations: 41.7 kB / 428.4 MB, free: 10.62 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001554/0.4521, allocations: 2.422 MB / 430.8 MB, free: 8.16 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005024/0.4526, allocations: 0.494 MB / 431.3 MB, free: 7.66 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001191/0.4538, allocations: 1.087 MB / 432.4 MB, free: 6.562 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.846e-05/0.4539, allocations: 305.1 kB / 432.7 MB, free: 6.262 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002121/0.456, allocations: 1.599 MB / 434.3 MB, free: 4.656 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004535/0.4606, allocations: 5.173 MB / 439.5 MB, free: 13.68 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007801/0.4684, allocations: 7.315 MB / 446.8 MB, free: 4.578 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.771e-05/0.4685, allocations: 36 kB / 446.8 MB, free: 4.543 MB / 382.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.1753/0.6438, allocations: 6.445 MB / 453.3 MB, free: 107 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.612e-05/0.644, allocations: 60.41 kB / 453.3 MB, free: 107 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001929/0.6442, allocations: 127.7 kB / 453.4 MB, free: 107 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002264/0.6444, allocations: 166.7 kB / 453.6 MB, free: 107 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004891/0.6493, allocations: 1.457 MB / 455.1 MB, free: 107 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001992/0.6495, allocations: 253.4 kB / 455.3 MB, free: 107 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003465/0.653, allocations: 0.7415 MB / 456 MB, free: 106.9 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004611/0.6535, allocations: 341.5 kB / 456.4 MB, free: 106.9 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.001918/0.6554, allocations: 1.572 MB / 458 MB, free: 106.7 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004378/0.6558, allocations: 252.2 kB / 458.2 MB, free: 106.7 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001104/0.6569, allocations: 0.8317 MB / 459 MB, free: 106.5 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.153e-05/0.657, allocations: 19.47 kB / 459 MB, free: 106.5 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.666e-06/0.657, allocations: 0 / 459 MB, free: 106.5 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.028e-05/0.657, allocations: 7.578 kB / 459.1 MB, free: 106.5 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004403/0.6614, allocations: 3.39 MB / 462.4 MB, free: 105.3 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.211e-06/0.6614, allocations: 0 / 462.4 MB, free: 105.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002172/0.6636, allocations: 411.7 kB / 462.8 MB, free: 105.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.183e-05/0.6636, allocations: 4.5 kB / 462.9 MB, free: 105.2 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.28e-05/0.6637, allocations: 35.41 kB / 462.9 MB, free: 105.2 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.544e-06/0.6637, allocations: 3.312 kB / 462.9 MB, free: 105.2 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.768e-06/0.6638, allocations: 14.38 kB / 462.9 MB, free: 105.2 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002516/0.6663, allocations: 2.771 MB / 465.7 MB, free: 103.9 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004349/0.6667, allocations: 303.5 kB / 466 MB, free: 103.7 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002376/0.667, allocations: 26.08 kB / 466 MB, free: 103.7 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008255/0.6678, allocations: 42.64 kB / 466 MB, free: 103.7 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001163/0.6679, allocations: 66.23 kB / 466.1 MB, free: 103.7 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.213e-05/0.668, allocations: 35.44 kB / 466.1 MB, free: 103.7 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002316/0.6703, allocations: 1.846 MB / 468 MB, free: 103 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.6703, allocations: 0 / 468 MB, free: 103 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003865/0.6742, allocations: 0.8282 MB / 468.8 MB, free: 102.1 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.0003467/0.6746, allocations: 168.5 kB / 469 MB, free: 102 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004557/0.6791, allocations: 3.806 MB / 472.8 MB, free: 98.64 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.621e-06/0.6792, allocations: 0 / 472.8 MB, free: 98.64 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007162/0.6799, allocations: 0.7144 MB / 473.5 MB, free: 98.02 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001559/0.6814, allocations: 267.2 kB / 473.8 MB, free: 97.78 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008992/0.6904, allocations: 7.133 MB / 480.9 MB, free: 90.71 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001948/0.6924, allocations: 2.398 MB / 483.3 MB, free: 88.29 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.005286/0.6977, allocations: 1.629 MB / 484.9 MB, free: 86.65 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006371/0.6984, allocations: 187.4 kB / 485.1 MB, free: 86.47 MB / 382.1 MB Notification: Performance of SimCode: time 1.723e-06/0.6984, allocations: 0 / 485.1 MB, free: 86.47 MB / 382.1 MB Notification: Performance of Templates: time 0.04938/0.7478, allocations: 21.41 MB / 0.4946 GB, free: 65.1 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)