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.001119/0.001119, allocations: 105 kB / 17.06 MB, free: 6.109 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.001044/0.001044, allocations: 194.9 kB / 18 MB, free: 5.188 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.386/1.386, allocations: 205.1 MB / 223.9 MB, free: 12.23 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.0012/0.0012, allocations: 51.92 kB / 327.9 MB, free: 3.289 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09003/0.09124, allocations: 46.61 MB / 374.5 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.2221/0.3134, allocations: 7.962 MB / 382.4 MB, free: 9.09 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006001/0.3195, allocations: 2.553 MB / 385 MB, free: 8 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001203/0.3208, allocations: 34.88 kB / 385 MB, free: 7.996 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002928/0.3237, allocations: 1.429 MB / 386.5 MB, free: 7.359 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002653/0.3264, allocations: 0.9813 MB / 387.4 MB, free: 6.891 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007622/0.3272, allocations: 260.5 kB / 387.7 MB, free: 6.758 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003327/0.3305, allocations: 2.193 MB / 389.9 MB, free: 5.875 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001852/0.3324, allocations: 1.56 MB / 391.5 MB, free: 5.246 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001248/0.3336, allocations: 0.8372 MB / 392.3 MB, free: 4.887 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001551/0.3352, allocations: 1.184 MB / 393.5 MB, free: 4.43 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00035/0.3355, allocations: 159.4 kB / 393.6 MB, free: 4.43 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00133/0.3369, allocations: 0.6504 MB / 394.3 MB, free: 4.277 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001045/0.3379, allocations: 1.16 MB / 395.4 MB, free: 3.875 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001033/0.339, allocations: 1.385 MB / 396.8 MB, free: 2.875 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004615/0.3436, allocations: 4.303 MB / 401.1 MB, free: 472 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.3436, allocations: 0.9688 kB / 401.1 MB, free: 472 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.3436, allocations: 0 / 401.1 MB, free: 472 kB / 318.1 MB Notification: Performance of Transformations before backend: time 9.929e-05/0.3437, allocations: 0 / 401.1 MB, free: 472 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.005381/0.3491, allocations: 2.955 MB / 404.1 MB, free: 14.29 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.802e-05/0.3492, allocations: 13.55 kB / 404.1 MB, free: 14.29 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00725/0.3565, allocations: 1.776 MB / 405.9 MB, free: 13.35 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003538/0.36, allocations: 1.162 MB / 407 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001623/0.3602, allocations: 154 kB / 407.2 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006072/0.3608, allocations: 209.2 kB / 407.4 MB, free: 12.37 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02313/0.384, allocations: 8.59 MB / 416 MB, free: 5.285 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001182/0.3841, allocations: 43.59 kB / 416 MB, free: 5.242 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003062/0.3844, allocations: 107.9 kB / 416.1 MB, free: 5.137 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002986/0.3874, allocations: 1.663 MB / 417.8 MB, free: 3.473 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01902/0.4065, allocations: 7.179 MB / 425 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04225/0.4488, allocations: 30.1 MB / 455.1 MB, free: 13.31 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02367/0.4725, allocations: 5.04 MB / 460.1 MB, free: 8.09 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001849/0.4744, allocations: 1.243 MB / 461.4 MB, free: 6.828 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006391/0.4808, allocations: 3.749 MB / 465.1 MB, free: 2.93 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.114e-05/0.4809, allocations: 46.89 kB / 465.1 MB, free: 2.875 MB / 382.1 MB Notification: Performance of pre-optimization done (n=111): time 3.656e-06/0.4809, allocations: 0 / 465.1 MB, free: 2.875 MB / 382.1 MB Notification: Performance of matching and sorting (n=111): time 0.04705/0.5279, allocations: 9.258 MB / 474.4 MB, free: 9.523 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001076/0.5281, allocations: 191.9 kB / 474.6 MB, free: 9.293 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00528/0.5334, allocations: 3.047 MB / 477.6 MB, free: 6.227 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002452/0.5337, allocations: 37.7 kB / 477.7 MB, free: 6.184 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00197/0.5356, allocations: 2.418 MB / 480.1 MB, free: 3.73 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007667/0.5364, allocations: 0.5018 MB / 480.6 MB, free: 3.223 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001498/0.5379, allocations: 1.083 MB / 481.7 MB, free: 2.129 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001204/0.5381, allocations: 309.1 kB / 482 MB, free: 1.824 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00235/0.5404, allocations: 1.599 MB / 483.6 MB, free: 224 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004953/0.5454, allocations: 5.169 MB / 488.8 MB, free: 9.242 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008262/0.5537, allocations: 7.324 MB / 496.1 MB, free: 136 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.767e-05/0.5538, allocations: 36 kB / 496.1 MB, free: 100 kB / 414.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01171/0.5655, allocations: 6.438 MB / 0.4908 GB, free: 9.652 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.997e-05/0.5656, allocations: 60 kB / 0.4908 GB, free: 9.594 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001344/0.5658, allocations: 128.4 kB / 0.4909 GB, free: 9.469 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001626/0.566, allocations: 168.1 kB / 0.4911 GB, free: 9.305 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004766/0.5707, allocations: 1.458 MB / 0.4925 GB, free: 7.844 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002119/0.571, allocations: 255 kB / 0.4928 GB, free: 7.594 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003996/0.575, allocations: 0.746 MB / 0.4935 GB, free: 6.84 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004794/0.5754, allocations: 344 kB / 0.4938 GB, free: 6.504 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.002458/0.5779, allocations: 1.586 MB / 0.4954 GB, free: 4.906 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004923/0.5784, allocations: 244.8 kB / 0.4956 GB, free: 4.664 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00136/0.5798, allocations: 0.8231 MB / 0.4964 GB, free: 3.832 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-05/0.5798, allocations: 19.98 kB / 0.4964 GB, free: 3.812 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.009e-05/0.5798, allocations: 3.938 kB / 0.4964 GB, free: 3.809 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.105e-05/0.5799, allocations: 7.984 kB / 0.4965 GB, free: 3.801 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006045/0.5859, allocations: 3.392 MB / 0.4998 GB, free: 356 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.837e-06/0.5859, allocations: 4 kB / 0.4998 GB, free: 352 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002378/0.5883, allocations: 407.4 kB / 0.5002 GB, free: 15.95 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.491e-05/0.5884, allocations: 11.92 kB / 0.5002 GB, free: 15.93 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001028/0.5885, allocations: 35.98 kB / 0.5002 GB, free: 15.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.508e-05/0.5885, allocations: 7.984 kB / 0.5002 GB, free: 15.89 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.696e-06/0.5885, allocations: 0 / 0.5002 GB, free: 15.89 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003403/0.5919, allocations: 2.781 MB / 0.5029 GB, free: 13.08 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007118/0.5926, allocations: 305.6 kB / 0.5032 GB, free: 12.76 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002512/0.5929, allocations: 27.98 kB / 0.5032 GB, free: 12.73 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008836/0.5938, allocations: 39.95 kB / 0.5033 GB, free: 12.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001484/0.5939, allocations: 59.91 kB / 0.5033 GB, free: 12.64 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.71e-05/0.594, allocations: 35.98 kB / 0.5034 GB, free: 12.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002812/0.5969, allocations: 1.841 MB / 0.5052 GB, free: 10.76 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5969, allocations: 0 / 0.5052 GB, free: 10.76 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004881/0.6018, allocations: 0.8299 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.0005997/0.6024, allocations: 171 kB / 0.5061 GB, free: 9.75 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006936/0.6093, allocations: 3.608 MB / 0.5097 GB, free: 6.168 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.847e-06/0.6094, allocations: 0 / 0.5097 GB, free: 6.168 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001057/0.6104, allocations: 0.7237 MB / 0.5104 GB, free: 5.445 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002284/0.6127, allocations: 268.8 kB / 0.5106 GB, free: 5.188 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01194/0.6247, allocations: 7.049 MB / 0.5175 GB, free: 14.09 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002452/0.6272, allocations: 2.391 MB / 0.5198 GB, free: 11.67 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00375/0.6309, allocations: 1.633 MB / 0.5214 GB, free: 10.03 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004779/0.6314, allocations: 187.4 kB / 0.5216 GB, free: 9.848 MB / 462.1 MB Notification: Performance of SimCode: time 1.623e-06/0.6315, allocations: 0 / 0.5216 GB, free: 9.848 MB / 462.1 MB Notification: Performance of Templates: time 0.0426/0.6741, allocations: 18.8 MB / 0.54 GB, free: 7.02 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)