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.007502/0.00751, allocations: 103.5 kB / 15.74 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.001371/0.001371, allocations: 196 kB / 16.68 MB, free: 5.965 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.438/1.438, allocations: 205.1 MB / 222.5 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.0012/0.0012, allocations: 51.03 kB / 326.6 MB, free: 14.39 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09649/0.0977, allocations: 46.63 MB / 373.2 MB, free: 1.289 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.008403/0.1061, allocations: 7.658 MB / 380.8 MB, free: 9.594 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006182/0.1123, allocations: 3.298 MB / 384.1 MB, free: 6.285 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001067/0.1135, allocations: 35.94 kB / 384.2 MB, free: 6.25 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002275/0.1158, allocations: 1.035 MB / 385.2 MB, free: 5.211 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003193/0.119, allocations: 1.343 MB / 386.6 MB, free: 3.863 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001298/0.1203, allocations: 0.5418 MB / 387.1 MB, free: 3.32 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003545/0.1239, allocations: 2.606 MB / 389.7 MB, free: 0.707 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002065/0.126, allocations: 1.393 MB / 391.1 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001459/0.1274, allocations: 0.8407 MB / 391.9 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001781/0.1292, allocations: 1.148 MB / 393.1 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005157/0.1298, allocations: 148 kB / 393.2 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002003/0.1318, allocations: 0.8931 MB / 394.1 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001332/0.1331, allocations: 1.06 MB / 395.2 MB, free: 11.19 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002146/0.1353, allocations: 1.258 MB / 396.4 MB, free: 9.922 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004928/0.1402, allocations: 4.122 MB / 400.6 MB, free: 5.785 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.1403, allocations: 0 / 400.6 MB, free: 5.785 MB / 334.1 MB Notification: Performance of FrontEnd: time 7.51e-07/0.1403, allocations: 0 / 400.6 MB, free: 5.785 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.355e-05/0.1403, 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.005408/0.1457, allocations: 3.003 MB / 403.6 MB, free: 2.723 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.95e-05/0.1458, allocations: 12.03 kB / 403.6 MB, free: 2.711 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005425/0.1512, allocations: 1.565 MB / 405.1 MB, free: 1.141 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002783/0.154, allocations: 1.469 MB / 406.6 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.89e-05/0.1541, allocations: 131 kB / 406.7 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003233/0.1545, allocations: 155.9 kB / 406.9 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01004/0.1645, allocations: 6.534 MB / 413.4 MB, free: 8.332 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.4e-05/0.1646, allocations: 31.66 kB / 413.5 MB, free: 8.301 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002517/0.1649, allocations: 83.83 kB / 413.5 MB, free: 8.219 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002489/0.1674, allocations: 1.472 MB / 415 MB, free: 6.746 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01051/0.1779, allocations: 5.83 MB / 420.8 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03009/0.208, allocations: 25.66 MB / 446.5 MB, free: 6.48 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005562/0.2136, allocations: 2.542 MB / 449 MB, free: 3.793 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001599/0.2153, allocations: 1.211 MB / 450.3 MB, free: 2.57 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2185/0.4338, allocations: 4.808 MB / 455.1 MB, free: 70.08 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.825e-05/0.4338, allocations: 46.45 kB / 455.1 MB, free: 70.04 MB / 382.1 MB Notification: Performance of pre-optimization done (n=97): time 4.058e-06/0.4338, allocations: 4.781 kB / 455.1 MB, free: 70.04 MB / 382.1 MB Notification: Performance of matching and sorting (n=105): time 0.02463/0.4585, allocations: 9.804 MB / 464.9 MB, free: 66.92 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.68e-05/0.4586, allocations: 145.7 kB / 465.1 MB, free: 66.76 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003334/0.4619, allocations: 2.722 MB / 467.8 MB, free: 65.76 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000144/0.4621, allocations: 37.67 kB / 467.8 MB, free: 65.72 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008319/0.4629, allocations: 2.043 MB / 469.9 MB, free: 64.14 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002747/0.4632, allocations: 433.5 kB / 470.3 MB, free: 63.84 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007615/0.4639, allocations: 0.8349 MB / 471.1 MB, free: 63.43 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.078e-05/0.464, allocations: 307.4 kB / 471.4 MB, free: 63.14 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001656/0.4657, allocations: 1.441 MB / 472.9 MB, free: 62.7 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002405/0.4681, allocations: 4.072 MB / 476.9 MB, free: 58.58 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004609/0.4727, allocations: 5.97 MB / 482.9 MB, free: 52.64 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.827e-05/0.4728, allocations: 29.12 kB / 482.9 MB, free: 52.62 MB / 382.1 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.008981/0.4818, allocations: 6.026 MB / 489 MB, free: 46.59 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.589e-05/0.4818, allocations: 44 kB / 489 MB, free: 46.54 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.54e-05/0.4819, allocations: 96 kB / 489.1 MB, free: 46.45 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002138/0.4841, allocations: 0.817 MB / 489.9 MB, free: 45.63 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00258/0.4867, allocations: 0.9435 MB / 490.9 MB, free: 44.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004694/0.4914, allocations: 4.659 MB / 495.5 MB, free: 39.89 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003584/0.495, allocations: 247.6 kB / 495.8 MB, free: 39.65 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003643/0.4954, allocations: 258.8 kB / 496 MB, free: 39.4 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.001673/0.497, allocations: 1.38 MB / 497.4 MB, free: 38.01 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00043/0.4975, allocations: 225 kB / 497.6 MB, free: 37.79 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003706/0.5012, allocations: 2.138 MB / 499.7 MB, free: 35.63 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.322e-05/0.5012, allocations: 12 kB / 499.8 MB, free: 35.62 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.417e-05/0.5012, allocations: 4 kB / 499.8 MB, free: 35.62 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.395e-05/0.5013, allocations: 4.828 kB / 499.8 MB, free: 35.61 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008613/0.5099, allocations: 5.068 MB / 0.493 GB, free: 30.49 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.566e-06/0.5099, allocations: 0 / 0.493 GB, free: 30.49 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007538/0.5107, allocations: 151.8 kB / 0.4931 GB, free: 30.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001978/0.5127, allocations: 0.6873 MB / 0.4938 GB, free: 29.65 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001175/0.5128, allocations: 16 kB / 0.4938 GB, free: 29.64 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004226/0.517, allocations: 4.153 MB / 0.4979 GB, free: 25.35 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.5171, allocations: 4 kB / 0.4979 GB, free: 25.35 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005667/0.5227, allocations: 4.055 MB / 0.5019 GB, free: 21.26 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001154/0.5239, allocations: 457.9 kB / 0.5023 GB, free: 20.79 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002905/0.5242, allocations: 15.75 kB / 0.5023 GB, free: 20.78 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009612/0.5252, allocations: 79.95 kB / 0.5024 GB, free: 20.7 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002023/0.5254, allocations: 48.36 kB / 0.5024 GB, free: 20.65 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.491e-05/0.5255, allocations: 35.44 kB / 0.5025 GB, free: 20.62 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002156/0.5277, allocations: 1.701 MB / 0.5041 GB, free: 18.91 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5277, allocations: 0 / 0.5041 GB, free: 18.91 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003646/0.5313, allocations: 0.6705 MB / 0.5048 GB, free: 18.25 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.0005/0.5318, allocations: 195.3 kB / 0.505 GB, free: 18.05 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005251/0.5371, allocations: 3.492 MB / 0.5084 GB, free: 14.57 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.921e-06/0.5371, allocations: 4 kB / 0.5084 GB, free: 14.57 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001231/0.5384, allocations: 1.04 MB / 0.5094 GB, free: 13.52 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001941/0.5403, allocations: 268.2 kB / 0.5096 GB, free: 13.27 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007867/0.5482, allocations: 5.626 MB / 0.5151 GB, free: 7.605 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001665/0.5499, allocations: 2.236 MB / 0.5173 GB, free: 5.344 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002499/0.5524, allocations: 1.321 MB / 0.5186 GB, free: 4.023 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004049/0.5529, allocations: 163.4 kB / 0.5188 GB, free: 3.863 MB / 382.1 MB Notification: Performance of SimCode: time 1.252e-06/0.5529, allocations: 0 / 0.5188 GB, free: 3.863 MB / 382.1 MB Notification: Performance of Templates: time 0.04416/0.597, allocations: 21.81 MB / 0.5401 GB, free: 14.11 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)