Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.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.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.01087/0.01087, allocations: 101.6 kB / 15.73 MB, free: 6.492 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.001971/0.001971, allocations: 196.4 kB / 16.68 MB, free: 6.375 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.448/1.448, allocations: 205.1 MB / 222.6 MB, free: 4.512 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.001381/0.001381, allocations: 49.89 kB / 326.6 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1064, 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.01016/0.1166, allocations: 7.67 MB / 380.8 MB, free: 9.605 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006999/0.1237, allocations: 3.302 MB / 384.1 MB, free: 6.293 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001217/0.125, allocations: 39.88 kB / 384.2 MB, free: 6.254 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002454/0.1274, allocations: 1.031 MB / 385.2 MB, free: 5.219 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004316/0.1318, allocations: 1.362 MB / 386.6 MB, free: 3.852 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001379/0.1332, allocations: 0.5457 MB / 387.1 MB, free: 3.305 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003539/0.1367, allocations: 2.598 MB / 389.7 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002069/0.1388, allocations: 1.401 MB / 391.1 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001532/0.1404, allocations: 0.8329 MB / 392 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001901/0.1423, allocations: 1.156 MB / 393.1 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005727/0.1429, allocations: 148 kB / 393.3 MB, free: 13.13 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002068/0.145, allocations: 0.8969 MB / 394.2 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001283/0.1462, allocations: 1.067 MB / 395.2 MB, free: 11.16 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001988/0.1483, allocations: 1.25 MB / 396.5 MB, free: 9.902 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005118/0.1534, allocations: 4.122 MB / 400.6 MB, free: 5.766 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.1534, allocations: 4 kB / 400.6 MB, free: 5.762 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.1534, allocations: 4 kB / 400.6 MB, free: 5.758 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001372/0.1536, allocations: 0 / 400.6 MB, free: 5.758 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.00637/0.1599, allocations: 2.995 MB / 403.6 MB, free: 2.703 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.401e-05/0.16, allocations: 8.031 kB / 403.6 MB, free: 2.695 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005026/0.165, allocations: 1.576 MB / 405.2 MB, free: 1.113 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002738/0.1678, allocations: 1.461 MB / 406.6 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001093/0.1679, allocations: 127 kB / 406.8 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003616/0.1683, allocations: 159.9 kB / 406.9 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009903/0.1782, allocations: 6.534 MB / 413.5 MB, free: 8.312 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.819e-05/0.1783, allocations: 35.64 kB / 413.5 MB, free: 8.277 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002416/0.1786, allocations: 87.83 kB / 413.6 MB, free: 8.191 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002347/0.1809, allocations: 1.46 MB / 415 MB, free: 6.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01125/0.1922, allocations: 5.834 MB / 420.9 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03167/0.2239, allocations: 25.66 MB / 446.5 MB, free: 6.461 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005291/0.2292, allocations: 2.545 MB / 449.1 MB, free: 3.77 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001657/0.2309, allocations: 1.223 MB / 450.3 MB, free: 2.535 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2036/0.4345, allocations: 4.796 MB / 455.1 MB, free: 70.51 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.015e-05/0.4346, allocations: 45.95 kB / 455.1 MB, free: 70.46 MB / 382.1 MB Notification: Performance of pre-optimization done (n=97): time 4.248e-06/0.4346, allocations: 0 / 455.1 MB, free: 70.46 MB / 382.1 MB Notification: Performance of matching and sorting (n=105): time 0.02461/0.4592, allocations: 9.809 MB / 464.9 MB, free: 67.07 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.322e-05/0.4593, allocations: 141.7 kB / 465.1 MB, free: 66.91 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003682/0.463, allocations: 2.722 MB / 467.8 MB, free: 65.91 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001144/0.4632, allocations: 41.64 kB / 467.8 MB, free: 65.87 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000891/0.4641, allocations: 2.04 MB / 469.9 MB, free: 64.29 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003358/0.4644, allocations: 436.2 kB / 470.3 MB, free: 63.99 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008502/0.4653, allocations: 0.8324 MB / 471.1 MB, free: 63.59 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.134e-05/0.4653, allocations: 303 kB / 471.4 MB, free: 63.29 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001745/0.4671, allocations: 1.449 MB / 472.9 MB, free: 62.85 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002475/0.4696, allocations: 4.078 MB / 477 MB, free: 58.67 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004671/0.4742, allocations: 5.966 MB / 482.9 MB, free: 52.86 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.504e-05/0.4743, allocations: 28 kB / 483 MB, free: 52.83 MB / 382.1 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.008231/0.4825, allocations: 6.023 MB / 489 MB, free: 46.8 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.288e-05/0.4826, allocations: 44 kB / 489 MB, free: 46.76 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.839e-05/0.4827, allocations: 93.12 kB / 489.1 MB, free: 46.67 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001975/0.4847, allocations: 0.8167 MB / 489.9 MB, free: 45.85 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002263/0.4869, allocations: 0.9513 MB / 490.9 MB, free: 44.89 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004579/0.4915, allocations: 4.662 MB / 495.6 MB, free: 40.11 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002851/0.4944, allocations: 243.6 kB / 495.8 MB, free: 39.87 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002443/0.4946, allocations: 264 kB / 496 MB, free: 39.61 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.001557/0.4962, allocations: 1.379 MB / 497.4 MB, free: 38.23 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003006/0.4965, allocations: 232.9 kB / 497.7 MB, free: 38 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003417/0.4999, allocations: 2.137 MB / 499.8 MB, free: 35.85 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.716e-05/0.5, allocations: 12 kB / 499.8 MB, free: 35.84 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.03e-05/0.5, allocations: 4 kB / 499.8 MB, free: 35.83 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.03e-05/0.5, allocations: 7.984 kB / 499.8 MB, free: 35.82 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007068/0.5071, allocations: 5.055 MB / 0.493 GB, free: 30.71 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.236e-06/0.5071, allocations: 4 kB / 0.493 GB, free: 30.71 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007036/0.5078, allocations: 163.7 kB / 0.4932 GB, free: 30.55 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001846/0.5097, allocations: 0.6756 MB / 0.4939 GB, free: 29.87 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.469e-05/0.5098, allocations: 23.98 kB / 0.4939 GB, free: 29.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004073/0.5138, allocations: 4.148 MB / 0.4979 GB, free: 25.56 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.5139, allocations: 0 / 0.4979 GB, free: 25.56 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005133/0.519, allocations: 4.058 MB / 0.5019 GB, free: 21.47 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001021/0.52, allocations: 457.9 kB / 0.5023 GB, free: 21 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006274/0.5207, allocations: 15.94 kB / 0.5023 GB, free: 20.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001281/0.522, allocations: 75.08 kB / 0.5024 GB, free: 20.91 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001839/0.5222, allocations: 56.42 kB / 0.5025 GB, free: 20.86 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.014e-05/0.5223, allocations: 32 kB / 0.5025 GB, free: 20.83 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002929/0.5252, allocations: 1.697 MB / 0.5042 GB, free: 19.12 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.5252, allocations: 0 / 0.5042 GB, free: 19.12 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003658/0.5289, allocations: 0.6757 MB / 0.5048 GB, free: 18.45 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.0004486/0.5293, allocations: 200.7 kB / 0.505 GB, free: 18.26 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004537/0.5339, allocations: 3.491 MB / 0.5084 GB, free: 14.78 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.5339, allocations: 0 / 0.5084 GB, free: 14.78 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00109/0.535, allocations: 1.04 MB / 0.5094 GB, free: 13.73 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001831/0.5368, allocations: 265.3 kB / 0.5097 GB, free: 13.48 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008824/0.5457, allocations: 5.624 MB / 0.5152 GB, free: 7.82 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002625/0.5483, allocations: 2.242 MB / 0.5174 GB, free: 5.551 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002964/0.5513, allocations: 1.324 MB / 0.5187 GB, free: 4.223 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008092/0.5521, allocations: 163.4 kB / 0.5188 GB, free: 4.066 MB / 382.1 MB Notification: Performance of SimCode: time 9.82e-07/0.5522, allocations: 3.938 kB / 0.5188 GB, free: 4.062 MB / 382.1 MB Notification: Performance of Templates: time 0.04381/0.596, allocations: 21.79 MB / 0.5401 GB, free: 14.31 MB / 414.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1)