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.005823/0.005823, allocations: 100.6 kB / 15.73 MB, free: 6.047 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.001354/0.001354, allocations: 190.6 kB / 16.67 MB, free: 5.977 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.433/1.433, allocations: 205.1 MB / 222.5 MB, free: 4.535 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.001393/0.001393, allocations: 51.08 kB / 326.6 MB, free: 14.35 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09852/0.09992, allocations: 46.62 MB / 373.2 MB, free: 1.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.009646/0.1096, allocations: 7.666 MB / 380.8 MB, free: 9.617 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007048/0.1167, allocations: 3.306 MB / 384.1 MB, free: 6.301 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001589/0.1184, allocations: 39.88 kB / 384.2 MB, free: 6.262 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002638/0.1211, allocations: 1.028 MB / 385.2 MB, free: 5.23 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005013/0.1261, allocations: 1.37 MB / 386.6 MB, free: 3.855 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00189/0.128, allocations: 0.5418 MB / 387.1 MB, free: 3.312 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004384/0.1324, allocations: 2.594 MB / 389.7 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002678/0.1351, allocations: 1.393 MB / 391.1 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002368/0.1375, allocations: 0.8406 MB / 392 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002296/0.1398, allocations: 1.152 MB / 393.1 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007305/0.1406, allocations: 148 kB / 393.3 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002627/0.1432, allocations: 0.9009 MB / 394.2 MB, free: 12.24 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001835/0.1451, allocations: 1.063 MB / 395.2 MB, free: 11.18 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002427/0.1475, allocations: 1.258 MB / 396.5 MB, free: 9.91 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007346/0.1549, allocations: 4.122 MB / 400.6 MB, free: 5.773 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.336e-06/0.1549, allocations: 4 kB / 400.6 MB, free: 5.77 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.795e-06/0.155, allocations: 0 / 400.6 MB, free: 5.77 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002014/0.1552, allocations: 0 / 400.6 MB, free: 5.77 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.009235/0.1644, allocations: 2.999 MB / 403.6 MB, free: 2.711 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.366e-05/0.1645, allocations: 8.031 kB / 403.6 MB, free: 2.703 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00604/0.1705, allocations: 1.569 MB / 405.2 MB, free: 1.129 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003435/0.174, allocations: 1.469 MB / 406.6 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000146/0.1742, allocations: 123 kB / 406.8 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008389/0.175, allocations: 159.9 kB / 406.9 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01125/0.1863, allocations: 6.538 MB / 413.5 MB, free: 8.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.1e-05/0.1864, allocations: 27.72 kB / 413.5 MB, free: 8.293 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002931/0.1867, allocations: 87.83 kB / 413.6 MB, free: 8.207 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002516/0.1893, allocations: 1.468 MB / 415 MB, free: 6.738 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01119/0.2005, allocations: 5.83 MB / 420.9 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03823/0.2387, allocations: 25.67 MB / 446.5 MB, free: 6.465 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006027/0.2448, allocations: 2.545 MB / 449.1 MB, free: 3.773 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002032/0.2469, allocations: 1.215 MB / 450.3 MB, free: 2.547 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2389/0.4858, allocations: 4.8 MB / 455.1 MB, free: 70.01 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.276e-05/0.4859, allocations: 44.41 kB / 455.1 MB, free: 69.97 MB / 382.1 MB Notification: Performance of pre-optimization done (n=97): time 4.638e-06/0.4859, allocations: 0 / 455.1 MB, free: 69.97 MB / 382.1 MB Notification: Performance of matching and sorting (n=105): time 0.02428/0.5102, allocations: 9.814 MB / 465 MB, free: 66.82 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.29e-05/0.5103, allocations: 142.4 kB / 465.1 MB, free: 66.67 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003643/0.5139, allocations: 2.72 MB / 467.8 MB, free: 65.66 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000146/0.5141, allocations: 37.61 kB / 467.8 MB, free: 65.62 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008966/0.515, allocations: 2.045 MB / 469.9 MB, free: 64.05 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003121/0.5153, allocations: 434.3 kB / 470.3 MB, free: 63.75 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008347/0.5162, allocations: 0.8374 MB / 471.2 MB, free: 63.34 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.762e-05/0.5162, allocations: 301.1 kB / 471.5 MB, free: 63.04 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001703/0.5179, allocations: 1.448 MB / 472.9 MB, free: 62.6 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002552/0.5205, allocations: 4.067 MB / 477 MB, free: 58.5 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004363/0.5249, allocations: 5.975 MB / 482.9 MB, free: 52.72 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.781e-05/0.5249, allocations: 28 kB / 483 MB, free: 52.7 MB / 382.1 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.008328/0.5333, allocations: 6.02 MB / 489 MB, free: 46.67 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.829e-05/0.5333, allocations: 44 kB / 489 MB, free: 46.62 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.147e-05/0.5334, allocations: 92 kB / 489.1 MB, free: 46.54 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002026/0.5354, allocations: 0.8173 MB / 489.9 MB, free: 45.71 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00228/0.5377, allocations: 0.9513 MB / 490.9 MB, free: 44.76 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004392/0.5421, allocations: 4.668 MB / 495.6 MB, free: 39.97 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002648/0.5448, allocations: 243.6 kB / 495.8 MB, free: 39.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002792/0.5451, allocations: 267.9 kB / 496.1 MB, free: 39.48 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.0015/0.5466, allocations: 1.372 MB / 497.4 MB, free: 38.09 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003103/0.5469, allocations: 229.1 kB / 497.7 MB, free: 37.86 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003574/0.5505, allocations: 2.13 MB / 499.8 MB, free: 35.72 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.74e-05/0.5505, allocations: 13.64 kB / 499.8 MB, free: 35.71 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.5506, allocations: 7.984 kB / 499.8 MB, free: 35.7 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.406e-06/0.5506, allocations: 7.984 kB / 499.8 MB, free: 35.69 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007021/0.5576, allocations: 5.06 MB / 0.493 GB, free: 30.58 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.592e-06/0.5576, allocations: 4 kB / 0.493 GB, free: 30.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006976/0.5583, allocations: 155.8 kB / 0.4932 GB, free: 30.42 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001834/0.5602, allocations: 0.6834 MB / 0.4939 GB, free: 29.73 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.493e-05/0.5603, allocations: 20 kB / 0.4939 GB, free: 29.71 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004105/0.5644, allocations: 4.154 MB / 0.4979 GB, free: 25.43 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.5644, allocations: 0 / 0.4979 GB, free: 25.43 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00552/0.5699, allocations: 4.055 MB / 0.5019 GB, free: 21.34 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008801/0.5708, allocations: 457.9 kB / 0.5023 GB, free: 20.87 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002481/0.5711, allocations: 19.25 kB / 0.5023 GB, free: 20.86 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009273/0.572, allocations: 67.89 kB / 0.5024 GB, free: 20.79 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001652/0.5722, allocations: 60.3 kB / 0.5025 GB, free: 20.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.854e-05/0.5723, allocations: 31.28 kB / 0.5025 GB, free: 20.7 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002323/0.5746, allocations: 1.701 MB / 0.5042 GB, free: 18.99 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.5746, allocations: 4 kB / 0.5042 GB, free: 18.98 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003533/0.5782, allocations: 0.6744 MB / 0.5048 GB, free: 18.32 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.0004311/0.5786, allocations: 190.3 kB / 0.505 GB, free: 18.13 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004319/0.5829, allocations: 3.496 MB / 0.5084 GB, free: 14.65 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.908e-06/0.583, allocations: 0 / 0.5084 GB, free: 14.65 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00115/0.5841, allocations: 1.04 MB / 0.5094 GB, free: 13.6 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00167/0.5858, allocations: 268.5 kB / 0.5097 GB, free: 13.34 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007375/0.5932, allocations: 5.618 MB / 0.5152 GB, free: 7.688 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001721/0.5949, allocations: 2.24 MB / 0.5174 GB, free: 5.422 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002615/0.5976, allocations: 1.324 MB / 0.5187 GB, free: 4.094 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003946/0.598, allocations: 159.4 kB / 0.5188 GB, free: 3.938 MB / 382.1 MB Notification: Performance of SimCode: time 8.61e-07/0.598, allocations: 0 / 0.5188 GB, free: 3.938 MB / 382.1 MB Notification: Performance of Templates: time 0.04008/0.6381, allocations: 21.8 MB / 0.5401 GB, free: 14.18 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)