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.007371/0.007371, allocations: 97.11 kB / 15.73 MB, free: 6.043 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.001188/0.001188, allocations: 194.3 kB / 16.68 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.453/1.453, allocations: 205.1 MB / 222.6 MB, free: 4.508 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.001366/0.001366, allocations: 45.19 kB / 326.6 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1113, allocations: 46.63 MB / 373.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.008932/0.1203, allocations: 7.67 MB / 380.9 MB, free: 9.602 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00597/0.1263, allocations: 3.291 MB / 384.1 MB, free: 6.301 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008542/0.1272, allocations: 39.88 kB / 384.2 MB, free: 6.262 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002026/0.1293, allocations: 1.028 MB / 385.2 MB, free: 5.23 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002902/0.1322, allocations: 1.343 MB / 386.6 MB, free: 3.883 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001203/0.1334, allocations: 0.5418 MB / 387.1 MB, free: 3.34 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003257/0.1367, allocations: 2.602 MB / 389.7 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001641/0.1383, allocations: 1.389 MB / 391.1 MB, free: 15.31 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001/0.1394, allocations: 0.8484 MB / 391.9 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001284/0.1406, allocations: 1.152 MB / 393.1 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002738/0.1409, allocations: 147.9 kB / 393.2 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001744/0.1427, allocations: 0.8931 MB / 394.1 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008641/0.1436, allocations: 1.063 MB / 395.2 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009834/0.1446, allocations: 1.246 MB / 396.4 MB, free: 9.945 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004067/0.1486, allocations: 4.135 MB / 400.6 MB, free: 5.793 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.908e-06/0.1487, allocations: 3.984 kB / 400.6 MB, free: 5.789 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.444e-06/0.1487, allocations: 4 kB / 400.6 MB, free: 5.785 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.422e-05/0.1487, allocations: 0 / 400.6 MB, free: 5.785 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.005158/0.1539, allocations: 3.08 MB / 403.7 MB, free: 2.641 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.01e-05/0.154, allocations: 12.03 kB / 403.7 MB, free: 2.629 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005089/0.1591, allocations: 1.594 MB / 405.3 MB, free: 1.031 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002564/0.1616, allocations: 1.469 MB / 406.7 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001/0.1617, allocations: 127 kB / 406.9 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003046/0.1621, allocations: 155.9 kB / 407 MB, free: 15.24 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008507/0.1706, allocations: 6.538 MB / 413.5 MB, free: 8.223 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.215e-05/0.1707, allocations: 27.77 kB / 413.6 MB, free: 8.195 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000228/0.1709, allocations: 87.83 kB / 413.7 MB, free: 8.109 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002309/0.1732, allocations: 1.468 MB / 415.1 MB, free: 6.641 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009815/0.183, allocations: 5.83 MB / 421 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02878/0.2118, allocations: 25.7 MB / 446.7 MB, free: 6.336 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005322/0.2172, allocations: 2.545 MB / 449.2 MB, free: 3.645 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001435/0.2187, allocations: 1.223 MB / 450.4 MB, free: 2.41 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2449/0.4635, allocations: 4.809 MB / 455.2 MB, free: 70.6 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.741e-05/0.4636, allocations: 44.56 kB / 455.3 MB, free: 70.56 MB / 382.1 MB Notification: Performance of pre-optimization done (n=97): time 3.917e-06/0.4636, allocations: 0 / 455.3 MB, free: 70.56 MB / 382.1 MB Notification: Performance of matching and sorting (n=105): time 0.02438/0.488, allocations: 9.948 MB / 465.2 MB, free: 67.32 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.541e-05/0.4881, allocations: 143.8 kB / 465.4 MB, free: 67.17 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003829/0.492, allocations: 2.724 MB / 468.1 MB, free: 66.16 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000145/0.4921, allocations: 42.33 kB / 468.1 MB, free: 66.12 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008998/0.493, allocations: 2.13 MB / 470.3 MB, free: 64.46 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003026/0.4933, allocations: 452.2 kB / 470.7 MB, free: 64.15 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007978/0.4941, allocations: 0.8438 MB / 471.5 MB, free: 63.73 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.85e-05/0.4942, allocations: 312 kB / 471.9 MB, free: 63.43 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001782/0.496, allocations: 1.445 MB / 473.3 MB, free: 62.99 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002649/0.4987, allocations: 4.07 MB / 477.4 MB, free: 58.84 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004579/0.5032, allocations: 5.976 MB / 483.3 MB, free: 52.96 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.783e-05/0.5033, allocations: 29.12 kB / 483.4 MB, free: 52.93 MB / 382.1 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.008561/0.5119, allocations: 6.027 MB / 489.4 MB, free: 46.89 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.535e-05/0.5119, allocations: 50.72 kB / 489.4 MB, free: 46.85 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.022e-05/0.512, allocations: 92 kB / 489.5 MB, free: 46.76 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001932/0.5139, allocations: 0.8168 MB / 490.4 MB, free: 45.94 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002282/0.5162, allocations: 0.9513 MB / 491.3 MB, free: 44.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004475/0.5207, allocations: 4.656 MB / 496 MB, free: 40.19 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002951/0.5237, allocations: 250 kB / 496.2 MB, free: 39.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000317/0.524, allocations: 262.8 kB / 496.5 MB, free: 39.7 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.001611/0.5256, allocations: 1.375 MB / 497.8 MB, free: 38.31 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003928/0.526, allocations: 242.4 kB / 498.1 MB, free: 38.07 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003585/0.5296, allocations: 2.126 MB / 0.4885 GB, free: 35.93 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.116e-05/0.5297, allocations: 12 kB / 0.4885 GB, free: 35.92 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.837e-06/0.5297, allocations: 4 kB / 0.4885 GB, free: 35.91 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.063e-05/0.5297, allocations: 11.98 kB / 0.4885 GB, free: 35.9 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007434/0.5371, allocations: 5.082 MB / 0.4935 GB, free: 30.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.957e-06/0.5372, allocations: 4 kB / 0.4935 GB, free: 30.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006938/0.5379, allocations: 155.8 kB / 0.4936 GB, free: 30.61 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001828/0.5397, allocations: 0.6756 MB / 0.4943 GB, free: 29.93 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.902e-05/0.5398, allocations: 27.94 kB / 0.4943 GB, free: 29.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003767/0.5436, allocations: 4.146 MB / 0.4984 GB, free: 25.62 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.5436, allocations: 3.938 kB / 0.4984 GB, free: 25.62 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005015/0.5486, allocations: 4.06 MB / 0.5023 GB, free: 21.53 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009973/0.5496, allocations: 467.2 kB / 0.5028 GB, free: 21.05 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002878/0.5499, allocations: 23.17 kB / 0.5028 GB, free: 21.04 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008938/0.5508, allocations: 71.89 kB / 0.5029 GB, free: 20.96 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001888/0.551, allocations: 56.31 kB / 0.5029 GB, free: 20.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.139e-05/0.5511, allocations: 31.98 kB / 0.5029 GB, free: 20.88 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002063/0.5532, allocations: 1.701 MB / 0.5046 GB, free: 19.16 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5532, allocations: 3.938 kB / 0.5046 GB, free: 19.16 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003309/0.5565, allocations: 0.6794 MB / 0.5053 GB, free: 18.48 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.0003782/0.5569, allocations: 198.6 kB / 0.5055 GB, free: 18.28 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004379/0.5613, allocations: 3.493 MB / 0.5089 GB, free: 14.79 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.5613, allocations: 0 / 0.5089 GB, free: 14.79 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001118/0.5624, allocations: 1.036 MB / 0.5099 GB, free: 13.75 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001802/0.5642, allocations: 265.7 kB / 0.5101 GB, free: 13.5 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007952/0.5722, allocations: 5.709 MB / 0.5157 GB, free: 7.746 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001568/0.5738, allocations: 2.244 MB / 0.5179 GB, free: 5.48 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002364/0.5762, allocations: 1.317 MB / 0.5192 GB, free: 4.156 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003738/0.5765, allocations: 155.4 kB / 0.5193 GB, free: 4.004 MB / 382.1 MB Notification: Performance of SimCode: time 1.423e-06/0.5766, allocations: 0 / 0.5193 GB, free: 4.004 MB / 382.1 MB Notification: Performance of Templates: time 0.039/0.6156, allocations: 21.8 MB / 0.5406 GB, free: 14.25 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)