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.001472/0.001472, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001856/0.001856, allocations: 192.5 kB / 16.25 MB, free: 6.621 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.415/1.415, allocations: 205.1 MB / 222.1 MB, free: 4.707 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.001273/0.001273, allocations: 51.94 kB / 278.2 MB, free: 12.67 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2273/0.2286, allocations: 46.62 MB / 324.8 MB, free: 1.914 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.0164/0.245, allocations: 18.15 MB / 343 MB, free: 1.895 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.009381/0.2545, allocations: 4.966 MB / 348 MB, free: 12.91 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003543/0.2581, allocations: 71.81 kB / 348 MB, free: 12.84 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002262/0.2604, allocations: 0.9777 MB / 349 MB, free: 11.86 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003414/0.2638, allocations: 1.258 MB / 350.3 MB, free: 10.6 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001292/0.2651, allocations: 0.5185 MB / 350.8 MB, free: 10.08 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003588/0.2687, allocations: 2.621 MB / 353.4 MB, free: 7.449 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002218/0.2709, allocations: 1.465 MB / 354.9 MB, free: 5.961 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001384/0.2723, allocations: 0.8523 MB / 355.7 MB, free: 5.105 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001712/0.274, allocations: 1.289 MB / 357 MB, free: 3.812 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00036/0.2744, allocations: 148 kB / 357.2 MB, free: 3.668 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001913/0.2763, allocations: 0.9048 MB / 358.1 MB, free: 2.762 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001025/0.2774, allocations: 1.087 MB / 359.2 MB, free: 1.672 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001107/0.2785, allocations: 1.262 MB / 360.4 MB, free: 412 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004729/0.2832, allocations: 3.999 MB / 364.4 MB, free: 12.39 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.802e-06/0.2833, allocations: 0 / 364.4 MB, free: 12.39 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.2833, allocations: 0 / 364.4 MB, free: 12.39 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.981e-05/0.2834, allocations: 0 / 364.4 MB, free: 12.39 MB / 302.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.005108/0.2885, allocations: 2.996 MB / 367.4 MB, free: 9.336 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.954e-05/0.2885, allocations: 12.03 kB / 367.4 MB, free: 9.324 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005082/0.2936, allocations: 1.569 MB / 369 MB, free: 7.75 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002236/0.2959, allocations: 1.442 MB / 370.4 MB, free: 6.262 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.835e-05/0.296, allocations: 127 kB / 370.6 MB, free: 6.137 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000295/0.2963, allocations: 171.8 kB / 370.7 MB, free: 5.969 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008523/0.3048, allocations: 6.53 MB / 377.3 MB, free: 14.95 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.671e-05/0.3049, allocations: 23.81 kB / 377.3 MB, free: 14.93 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002263/0.3051, allocations: 87.83 kB / 377.4 MB, free: 14.84 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002298/0.3074, allocations: 1.464 MB / 378.8 MB, free: 13.38 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009151/0.3166, allocations: 5.83 MB / 384.7 MB, free: 7.543 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02866/0.3453, allocations: 25.79 MB / 410.4 MB, free: 13 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005504/0.3508, allocations: 2.553 MB / 413 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00143/0.3523, allocations: 1.215 MB / 414.2 MB, free: 9.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006841/0.3591, allocations: 4.811 MB / 419 MB, free: 4.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.514e-05/0.3592, allocations: 42.5 kB / 419.1 MB, free: 4.109 MB / 350.1 MB Notification: Performance of pre-optimization done (n=97): time 3.326e-06/0.3592, allocations: 3.938 kB / 419.1 MB, free: 4.105 MB / 350.1 MB Notification: Performance of matching and sorting (n=105): time 0.02287/0.3821, allocations: 9.81 MB / 428.9 MB, free: 10.15 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.91e-05/0.3822, allocations: 137 kB / 429 MB, free: 9.988 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003505/0.3858, allocations: 2.718 MB / 431.7 MB, free: 7.25 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002157/0.386, allocations: 37.7 kB / 431.8 MB, free: 7.207 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001311/0.3873, allocations: 2.052 MB / 433.8 MB, free: 5.125 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004911/0.3878, allocations: 426.7 kB / 434.2 MB, free: 4.703 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001059/0.3889, allocations: 0.8409 MB / 435.1 MB, free: 3.848 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001218/0.389, allocations: 301.1 kB / 435.4 MB, free: 3.551 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002156/0.3912, allocations: 1.445 MB / 436.8 MB, free: 2.098 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003737/0.3949, allocations: 4.073 MB / 440.9 MB, free: 12.7 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006691/0.4016, allocations: 5.951 MB / 446.8 MB, free: 5.434 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.947e-05/0.4018, allocations: 28 kB / 446.9 MB, free: 5.406 MB / 382.1 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.194/0.5957, allocations: 6.031 MB / 452.9 MB, free: 108.4 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001185/0.5959, allocations: 48.72 kB / 452.9 MB, free: 108.4 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002221/0.5961, allocations: 93.81 kB / 453 MB, free: 108.4 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002821/0.599, allocations: 0.8219 MB / 453.9 MB, free: 108.4 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003395/0.6024, allocations: 0.9461 MB / 454.8 MB, free: 108.4 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006137/0.6085, allocations: 4.66 MB / 459.5 MB, free: 106.8 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003574/0.6121, allocations: 240.5 kB / 459.7 MB, free: 106.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003676/0.6125, allocations: 259.8 kB / 460 MB, free: 106.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.002126/0.6146, allocations: 1.377 MB / 461.3 MB, free: 106.2 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003879/0.615, allocations: 226 kB / 461.6 MB, free: 106.2 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003577/0.6186, allocations: 2.132 MB / 463.7 MB, free: 105.5 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.261e-05/0.6186, allocations: 24.47 kB / 463.7 MB, free: 105.5 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.185e-06/0.6187, allocations: 0 / 463.7 MB, free: 105.5 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.796e-06/0.6187, allocations: 7.828 kB / 463.7 MB, free: 105.5 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007419/0.6261, allocations: 5.07 MB / 468.8 MB, free: 103.7 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.968e-06/0.6261, allocations: 0 / 468.8 MB, free: 103.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007/0.6269, allocations: 162 kB / 468.9 MB, free: 103.7 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001846/0.6287, allocations: 0.683 MB / 469.6 MB, free: 103.3 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.817e-05/0.6288, allocations: 15.69 kB / 469.6 MB, free: 103.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004046/0.6329, allocations: 4.16 MB / 473.8 MB, free: 100 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.6329, allocations: 0 / 473.8 MB, free: 100 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004878/0.6378, allocations: 4.054 MB / 477.9 MB, free: 96.09 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007756/0.6385, allocations: 460.2 kB / 478.3 MB, free: 95.71 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002321/0.6388, allocations: 12 kB / 478.3 MB, free: 95.7 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008554/0.6396, allocations: 75.89 kB / 478.4 MB, free: 95.62 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001553/0.6398, allocations: 59.89 kB / 478.5 MB, free: 95.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.511e-05/0.6399, allocations: 32 kB / 478.5 MB, free: 95.54 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001853/0.6418, allocations: 1.701 MB / 480.2 MB, free: 93.83 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.6418, allocations: 0 / 480.2 MB, free: 93.83 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002978/0.6447, allocations: 0.6749 MB / 480.9 MB, free: 93.16 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.0004099/0.6452, allocations: 199.5 kB / 481.1 MB, free: 92.99 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004246/0.6494, allocations: 3.705 MB / 484.8 MB, free: 89.38 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.6494, allocations: 2.844 kB / 484.8 MB, free: 89.38 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000993/0.6504, allocations: 1.036 MB / 485.8 MB, free: 88.33 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001508/0.652, allocations: 258 kB / 486 MB, free: 88.09 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006896/0.6589, allocations: 6.89 MB / 492.9 MB, free: 81.16 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001452/0.6603, allocations: 2.237 MB / 495.2 MB, free: 78.89 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002519/0.6629, allocations: 1.317 MB / 496.5 MB, free: 77.57 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003683/0.6632, allocations: 163.4 kB / 496.7 MB, free: 77.41 MB / 382.1 MB Notification: Performance of SimCode: time 8.22e-07/0.6633, allocations: 0 / 496.7 MB, free: 77.41 MB / 382.1 MB Notification: Performance of Templates: time 0.03547/0.6987, allocations: 23.94 MB / 0.5084 GB, free: 53.5 MB / 382.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)