Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.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.UserDefinedGravityField,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005343/0.005343, allocations: 103.1 kB / 15.74 MB, free: 6.066 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.001399/0.001399, allocations: 192.5 kB / 16.67 MB, free: 5.973 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.498/1.498, allocations: 205.1 MB / 222.6 MB, free: 4.52 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.001636/0.001636, allocations: 58.53 kB / 326.6 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1024, allocations: 46.62 MB / 373.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.008601/0.1111, allocations: 7.662 MB / 380.8 MB, free: 9.613 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006236/0.1173, allocations: 3.295 MB / 384.1 MB, free: 6.309 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00111/0.1185, allocations: 39.88 kB / 384.2 MB, free: 6.27 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002098/0.1206, allocations: 1.035 MB / 385.2 MB, free: 5.23 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003517/0.1242, allocations: 1.37 MB / 386.6 MB, free: 3.855 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00128/0.1255, allocations: 0.5418 MB / 387.1 MB, free: 3.312 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003696/0.1292, allocations: 2.602 MB / 389.7 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001694/0.1309, allocations: 1.389 MB / 391.1 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001192/0.1321, allocations: 0.8367 MB / 392 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001281/0.1334, allocations: 1.156 MB / 393.1 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000254/0.1337, allocations: 151.9 kB / 393.3 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001688/0.1354, allocations: 0.897 MB / 394.2 MB, free: 12.24 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009708/0.1363, allocations: 1.063 MB / 395.2 MB, free: 11.17 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001181/0.1375, allocations: 1.254 MB / 396.5 MB, free: 9.91 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004446/0.142, allocations: 4.135 MB / 400.6 MB, free: 5.758 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.142, allocations: 4 kB / 400.6 MB, free: 5.754 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.142, allocations: 4 kB / 400.6 MB, free: 5.75 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.87e-05/0.1421, allocations: 0 / 400.6 MB, free: 5.75 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: 951 * Number of variables: 951 Notification: Performance of Generate backend data structure: time 0.005336/0.1474, allocations: 3.076 MB / 403.7 MB, free: 2.609 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.946e-05/0.1475, allocations: 8.031 kB / 403.7 MB, free: 2.602 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005226/0.1527, allocations: 1.594 MB / 405.3 MB, free: 1.004 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003171/0.1559, allocations: 1.473 MB / 406.8 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001091/0.156, allocations: 131 kB / 406.9 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003831/0.1564, allocations: 159.9 kB / 407.1 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01104/0.1675, allocations: 6.538 MB / 413.6 MB, free: 8.18 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001026/0.1676, allocations: 27.77 kB / 413.6 MB, free: 8.152 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000356/0.168, allocations: 83.89 kB / 413.7 MB, free: 8.07 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002725/0.1707, allocations: 1.464 MB / 415.2 MB, free: 6.605 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01119/0.1819, allocations: 5.838 MB / 421 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03455/0.2165, allocations: 25.7 MB / 446.7 MB, free: 6.301 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005667/0.2222, allocations: 2.537 MB / 449.2 MB, free: 3.617 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001571/0.2238, allocations: 1.227 MB / 450.5 MB, free: 2.379 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2625/0.4863, allocations: 4.813 MB / 455.3 MB, free: 69.94 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.383e-05/0.4864, allocations: 42.97 kB / 455.3 MB, free: 69.9 MB / 382.1 MB Notification: Performance of pre-optimization done (n=97): time 3.887e-06/0.4864, allocations: 0 / 455.3 MB, free: 69.9 MB / 382.1 MB Notification: Performance of matching and sorting (n=105): time 0.02521/0.5116, allocations: 9.947 MB / 465.3 MB, free: 66.71 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.338e-05/0.5117, allocations: 138.6 kB / 465.4 MB, free: 66.55 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004439/0.5161, allocations: 2.732 MB / 468.1 MB, free: 65.59 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002875/0.5164, allocations: 37.67 kB / 468.2 MB, free: 65.55 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001102/0.5176, allocations: 2.14 MB / 470.3 MB, free: 64.1 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004239/0.518, allocations: 451.8 kB / 470.8 MB, free: 63.79 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008849/0.5189, allocations: 0.844 MB / 471.6 MB, free: 63.37 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.352e-05/0.5189, allocations: 305.1 kB / 471.9 MB, free: 63.07 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001721/0.5207, allocations: 1.444 MB / 473.3 MB, free: 62.62 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003076/0.5238, allocations: 4.074 MB / 477.4 MB, free: 58.5 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005428/0.5292, allocations: 5.965 MB / 483.4 MB, free: 52.62 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.477e-05/0.5293, allocations: 28 kB / 483.4 MB, free: 52.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.008851/0.5381, allocations: 6.033 MB / 489.4 MB, free: 46.55 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.137e-05/0.5382, allocations: 44 kB / 489.5 MB, free: 46.51 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.36e-05/0.5383, allocations: 92 kB / 489.6 MB, free: 46.42 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002033/0.5403, allocations: 0.8172 MB / 490.4 MB, free: 45.6 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002527/0.5429, allocations: 0.9513 MB / 491.3 MB, free: 44.64 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004534/0.5474, allocations: 4.657 MB / 496 MB, free: 39.85 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003259/0.5507, allocations: 250.7 kB / 496.2 MB, free: 39.61 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003844/0.5511, allocations: 264 kB / 496.5 MB, free: 39.35 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 425 * Number of states: 0 () * Number of discrete variables: 21 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[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 (502): * Single equations (assignments): 498 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001875/0.553, allocations: 1.374 MB / 497.9 MB, free: 37.96 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005468/0.5535, allocations: 238.4 kB / 498.1 MB, free: 37.73 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003769/0.5573, allocations: 2.127 MB / 0.4885 GB, free: 35.59 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-05/0.5573, allocations: 12 kB / 0.4885 GB, free: 35.58 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.486e-05/0.5574, allocations: 4 kB / 0.4885 GB, free: 35.57 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.103e-05/0.5574, allocations: 14.77 kB / 0.4885 GB, free: 35.56 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008477/0.5659, allocations: 5.078 MB / 0.4935 GB, free: 30.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.167e-05/0.5659, allocations: 5.875 kB / 0.4935 GB, free: 30.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007057/0.5666, allocations: 159.7 kB / 0.4937 GB, free: 30.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001858/0.5685, allocations: 0.679 MB / 0.4943 GB, free: 29.59 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.802e-05/0.5686, allocations: 27.86 kB / 0.4943 GB, free: 29.56 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004138/0.5727, allocations: 4.144 MB / 0.4984 GB, free: 25.28 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.5727, allocations: 3.938 kB / 0.4984 GB, free: 25.27 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005374/0.5781, allocations: 4.06 MB / 0.5024 GB, free: 21.18 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001279/0.5794, allocations: 471.2 kB / 0.5028 GB, free: 20.7 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002072/0.5796, allocations: 16.69 kB / 0.5028 GB, free: 20.69 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008748/0.5805, allocations: 67.89 kB / 0.5029 GB, free: 20.62 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001474/0.5807, allocations: 64.36 kB / 0.503 GB, free: 20.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.668e-05/0.5807, allocations: 31.59 kB / 0.503 GB, free: 20.53 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001994/0.5827, allocations: 1.701 MB / 0.5046 GB, free: 18.82 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5828, allocations: 0 / 0.5046 GB, free: 18.82 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003343/0.5861, allocations: 0.6717 MB / 0.5053 GB, free: 18.14 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * 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 (74): * Single equations (assignments): 70 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004376/0.5866, allocations: 200.1 kB / 0.5055 GB, free: 17.94 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004065/0.5906, allocations: 3.489 MB / 0.5089 GB, free: 14.46 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.5906, allocations: 192 / 0.5089 GB, free: 14.46 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001007/0.5917, allocations: 1.043 MB / 0.5099 GB, free: 13.41 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001478/0.5932, allocations: 259.3 kB / 0.5102 GB, free: 13.16 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007184/0.6003, allocations: 5.708 MB / 0.5157 GB, free: 7.41 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001552/0.6019, allocations: 2.242 MB / 0.5179 GB, free: 5.145 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002343/0.6043, allocations: 1.324 MB / 0.5192 GB, free: 3.816 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003706/0.6047, allocations: 167.3 kB / 0.5194 GB, free: 3.652 MB / 382.1 MB Notification: Performance of SimCode: time 8.71e-07/0.6047, allocations: 0 / 0.5194 GB, free: 3.652 MB / 382.1 MB Notification: Performance of Templates: time 0.04251/0.6472, allocations: 21.8 MB / 0.5407 GB, free: 13.89 MB / 414.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1)