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.006905/0.006905, allocations: 102.7 kB / 15.73 MB, free: 6.031 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.001511/0.001511, allocations: 190.1 kB / 16.67 MB, free: 5.953 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.449/1.449, allocations: 205.1 MB / 222.6 MB, free: 4.504 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.00127/0.001271, allocations: 54.92 kB / 326.6 MB, free: 14.33 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0866/0.08788, allocations: 46.63 MB / 373.2 MB, free: 1.305 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.009781/0.0977, allocations: 7.666 MB / 380.8 MB, free: 9.602 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006706/0.1044, allocations: 3.306 MB / 384.2 MB, free: 6.285 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001226/0.1058, allocations: 35.94 kB / 384.2 MB, free: 6.25 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002363/0.1081, allocations: 1.035 MB / 385.2 MB, free: 5.211 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003475/0.1116, allocations: 1.343 MB / 386.6 MB, free: 3.863 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00124/0.1129, allocations: 0.5418 MB / 387.1 MB, free: 3.32 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003633/0.1165, allocations: 2.598 MB / 389.7 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001857/0.1184, allocations: 1.385 MB / 391.1 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001476/0.1199, allocations: 0.8446 MB / 391.9 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001441/0.1214, allocations: 1.148 MB / 393.1 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003505/0.1217, allocations: 152 kB / 393.2 MB, free: 13.15 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001737/0.1235, allocations: 0.8931 MB / 394.1 MB, free: 12.26 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009665/0.1245, allocations: 1.071 MB / 395.2 MB, free: 11.18 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001112/0.1256, allocations: 1.25 MB / 396.4 MB, free: 9.926 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004609/0.1302, allocations: 4.118 MB / 400.6 MB, free: 5.793 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.1302, allocations: 0 / 400.6 MB, free: 5.793 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.106e-06/0.1302, allocations: 0 / 400.6 MB, free: 5.793 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001151/0.1304, allocations: 0 / 400.6 MB, free: 5.793 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.006131/0.1365, allocations: 2.999 MB / 403.6 MB, free: 2.734 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.219e-05/0.1366, allocations: 12.03 kB / 403.6 MB, free: 2.723 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005246/0.1418, allocations: 1.573 MB / 405.1 MB, free: 1.145 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003325/0.1452, allocations: 1.465 MB / 406.6 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001045/0.1453, allocations: 131 kB / 406.7 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003524/0.1457, allocations: 159.9 kB / 406.9 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01054/0.1562, allocations: 6.534 MB / 413.4 MB, free: 8.336 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.793e-05/0.1563, allocations: 31.66 kB / 413.5 MB, free: 8.305 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002883/0.1566, allocations: 87.83 kB / 413.5 MB, free: 8.219 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002381/0.159, allocations: 1.468 MB / 415 MB, free: 6.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01096/0.17, allocations: 5.826 MB / 420.8 MB, free: 0.918 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03289/0.2029, allocations: 25.67 MB / 446.5 MB, free: 6.477 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005491/0.2085, allocations: 2.541 MB / 449.1 MB, free: 3.789 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001547/0.2101, allocations: 1.211 MB / 450.3 MB, free: 2.566 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2527/0.4628, allocations: 4.802 MB / 455.1 MB, free: 70.06 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.831e-05/0.4629, allocations: 46.11 kB / 455.1 MB, free: 70.02 MB / 382.1 MB Notification: Performance of pre-optimization done (n=97): time 3.536e-06/0.4629, allocations: 0 / 455.1 MB, free: 70.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=105): time 0.02416/0.487, allocations: 9.819 MB / 464.9 MB, free: 66.9 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.664e-05/0.4871, allocations: 137.2 kB / 465.1 MB, free: 66.75 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003991/0.4911, allocations: 2.73 MB / 467.8 MB, free: 65.74 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001679/0.4913, allocations: 37.67 kB / 467.8 MB, free: 65.7 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008799/0.4922, allocations: 2.046 MB / 469.9 MB, free: 64.12 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003242/0.4925, allocations: 429.9 kB / 470.3 MB, free: 63.83 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008014/0.4933, allocations: 0.8328 MB / 471.1 MB, free: 63.42 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.08e-05/0.4934, allocations: 301.1 kB / 471.4 MB, free: 63.12 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001714/0.4951, allocations: 1.453 MB / 472.9 MB, free: 62.68 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002554/0.4977, allocations: 4.071 MB / 476.9 MB, free: 58.54 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00447/0.5022, allocations: 5.971 MB / 482.9 MB, free: 52.7 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.972e-05/0.5022, allocations: 28 kB / 482.9 MB, free: 52.67 MB / 382.1 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.008191/0.5104, allocations: 6.014 MB / 489 MB, free: 46.65 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.805e-05/0.5105, allocations: 44 kB / 489 MB, free: 46.61 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-05/0.5106, allocations: 92 kB / 489.1 MB, free: 46.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002041/0.5126, allocations: 0.821 MB / 489.9 MB, free: 45.69 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002376/0.515, allocations: 0.9513 MB / 490.9 MB, free: 44.74 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004545/0.5196, allocations: 4.661 MB / 495.5 MB, free: 39.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002891/0.5225, allocations: 235.6 kB / 495.8 MB, free: 39.72 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003173/0.5228, allocations: 269.8 kB / 496 MB, free: 39.46 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.001613/0.5244, allocations: 1.378 MB / 497.4 MB, free: 38.07 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003254/0.5248, allocations: 225 kB / 497.6 MB, free: 37.84 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003576/0.5283, allocations: 2.131 MB / 499.7 MB, free: 35.7 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.007e-05/0.5284, allocations: 16 kB / 499.8 MB, free: 35.68 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.131e-05/0.5284, allocations: 0 / 499.8 MB, free: 35.68 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.021e-05/0.5284, allocations: 11.98 kB / 499.8 MB, free: 35.67 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008001/0.5364, allocations: 5.069 MB / 0.493 GB, free: 30.55 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.065e-06/0.5365, allocations: 5.859 kB / 0.493 GB, free: 30.55 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006885/0.5371, allocations: 151.8 kB / 0.4932 GB, free: 30.4 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00188/0.539, allocations: 0.6794 MB / 0.4938 GB, free: 29.71 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.442e-05/0.5391, allocations: 24.06 kB / 0.4939 GB, free: 29.69 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003995/0.5431, allocations: 4.154 MB / 0.4979 GB, free: 25.4 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.5432, allocations: 0 / 0.4979 GB, free: 25.4 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005144/0.5483, allocations: 4.055 MB / 0.5019 GB, free: 21.31 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001117/0.5494, allocations: 454.7 kB / 0.5023 GB, free: 20.85 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002424/0.5497, allocations: 20.67 kB / 0.5023 GB, free: 20.83 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008803/0.5506, allocations: 63.91 kB / 0.5024 GB, free: 20.77 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001682/0.5508, allocations: 56.36 kB / 0.5024 GB, free: 20.71 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.928e-05/0.5509, allocations: 35.58 kB / 0.5025 GB, free: 20.68 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002031/0.5529, allocations: 1.701 MB / 0.5041 GB, free: 18.97 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.5529, allocations: 4 kB / 0.5041 GB, free: 18.96 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003362/0.5563, allocations: 0.6744 MB / 0.5048 GB, free: 18.3 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.0004587/0.5567, allocations: 190.4 kB / 0.505 GB, free: 18.11 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004524/0.5613, allocations: 3.499 MB / 0.5084 GB, free: 14.62 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.5613, allocations: 0 / 0.5084 GB, free: 14.62 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001028/0.5623, allocations: 1.036 MB / 0.5094 GB, free: 13.58 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001594/0.5639, allocations: 271.6 kB / 0.5097 GB, free: 13.32 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008171/0.5721, allocations: 5.628 MB / 0.5152 GB, free: 7.656 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001594/0.5737, allocations: 2.237 MB / 0.5173 GB, free: 5.395 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002356/0.5761, allocations: 1.328 MB / 0.5186 GB, free: 4.062 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003564/0.5765, allocations: 155.4 kB / 0.5188 GB, free: 3.914 MB / 382.1 MB Notification: Performance of SimCode: time 6.01e-07/0.5765, allocations: 0 / 0.5188 GB, free: 3.914 MB / 382.1 MB Notification: Performance of Templates: time 0.04047/0.617, allocations: 21.65 MB / 0.5399 GB, free: 14.34 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)