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.0008538/0.0008537, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.0008596/0.0008597, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.549/1.549, allocations: 205.4 MB / 222.1 MB, free: 5.469 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.0004388/0.0004388, allocations: 12 kB / 278.9 MB, free: 12.7 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2274/0.2278, allocations: 47.6 MB / 326.5 MB, free: 1.41 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.01499/0.2429, allocations: 16.34 MB / 342.8 MB, free: 3.094 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0104/0.2533, allocations: 4.692 MB / 347.5 MB, free: 14.39 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004097/0.2575, allocations: 71.81 kB / 347.6 MB, free: 14.32 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00232/0.2598, allocations: 0.7815 MB / 348.4 MB, free: 13.53 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007049/0.2669, allocations: 2.639 MB / 351 MB, free: 10.88 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001562/0.2685, allocations: 487 kB / 351.5 MB, free: 10.41 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004686/0.2732, allocations: 2.812 MB / 354.3 MB, free: 7.586 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002688/0.2759, allocations: 1.573 MB / 355.9 MB, free: 5.98 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001395/0.2773, allocations: 0.755 MB / 356.6 MB, free: 5.223 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001624/0.2789, allocations: 1.168 MB / 357.8 MB, free: 4.051 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002693/0.2792, allocations: 84 kB / 357.9 MB, free: 3.969 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001503/0.2807, allocations: 0.741 MB / 358.6 MB, free: 3.227 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009909/0.2817, allocations: 0.9856 MB / 359.6 MB, free: 2.238 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006382/0.2824, allocations: 0.5 MB / 360.1 MB, free: 1.73 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003383/0.2858, allocations: 3.072 MB / 363.2 MB, free: 14.65 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.815e-06/0.2858, allocations: 0 / 363.2 MB, free: 14.65 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.975e-06/0.2858, allocations: 4 kB / 363.2 MB, free: 14.64 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001047/0.2859, allocations: 0 / 363.2 MB, free: 14.64 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.004898/0.2908, allocations: 2.539 MB / 365.7 MB, free: 12.05 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.65e-05/0.2909, allocations: 12.03 kB / 365.7 MB, free: 12.04 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004994/0.2959, allocations: 1.619 MB / 367.3 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002512/0.2984, allocations: 1.414 MB / 368.8 MB, free: 8.953 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001059/0.2985, allocations: 123 kB / 368.9 MB, free: 8.832 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003/0.2989, allocations: 159.9 kB / 369 MB, free: 8.676 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009624/0.3085, allocations: 6.526 MB / 375.6 MB, free: 1.664 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.952e-05/0.3086, allocations: 31.66 kB / 375.6 MB, free: 1.633 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000247/0.3089, allocations: 83.89 kB / 375.7 MB, free: 1.551 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002541/0.3114, allocations: 1.468 MB / 377.1 MB, free: 84 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01045/0.3219, allocations: 5.814 MB / 382.9 MB, free: 10.26 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02983/0.3517, allocations: 25.77 MB / 408.7 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005546/0.3573, allocations: 2.58 MB / 411.3 MB, free: 13 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001642/0.359, allocations: 1.211 MB / 412.5 MB, free: 11.78 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007386/0.3664, allocations: 4.803 MB / 417.3 MB, free: 6.875 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.34e-05/0.3665, allocations: 46.45 kB / 417.4 MB, free: 6.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=97): time 3.877e-06/0.3665, allocations: 0 / 417.4 MB, free: 6.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=105): time 0.02304/0.3895, allocations: 9.759 MB / 427.1 MB, free: 12.92 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.77e-05/0.3896, allocations: 144.9 kB / 427.3 MB, free: 12.75 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00366/0.3933, allocations: 2.718 MB / 430 MB, free: 10.01 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001232/0.3934, allocations: 37.7 kB / 430 MB, free: 9.965 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001373/0.3948, allocations: 2.044 MB / 432.1 MB, free: 7.891 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003748/0.3952, allocations: 426.7 kB / 432.5 MB, free: 7.469 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001718/0.3954, allocations: 83.98 kB / 432.6 MB, free: 7.387 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002561/0.3956, allocations: 491 kB / 433 MB, free: 6.898 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002043/0.3977, allocations: 1.429 MB / 434.5 MB, free: 5.461 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003812/0.4015, allocations: 4.053 MB / 438.5 MB, free: 80 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003219/0.4047, allocations: 2.342 MB / 440.9 MB, free: 13.73 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.722e-05/0.4048, allocations: 28 kB / 440.9 MB, free: 13.71 MB / 382.1 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.01043/0.4152, allocations: 5.99 MB / 446.9 MB, free: 7.707 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.672e-05/0.4153, allocations: 47.94 kB / 446.9 MB, free: 7.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.641e-05/0.4154, allocations: 100.1 kB / 447 MB, free: 7.562 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00217/0.4176, allocations: 0.8357 MB / 447.9 MB, free: 6.723 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002808/0.4204, allocations: 0.9474 MB / 448.8 MB, free: 5.773 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005676/0.4261, allocations: 4.34 MB / 453.1 MB, free: 1.301 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003049/0.4292, allocations: 243.6 kB / 453.4 MB, free: 1.062 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004497/0.4297, allocations: 264 kB / 453.6 MB, free: 0.8047 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.2007/0.6303, allocations: 1.365 MB / 455 MB, free: 109.2 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000608/0.631, allocations: 225.9 kB / 455.2 MB, free: 109.2 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004553/0.6355, allocations: 2.134 MB / 457.4 MB, free: 109.2 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.106e-05/0.6356, allocations: 12.72 kB / 457.4 MB, free: 109.2 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.388e-05/0.6356, allocations: 7.031 kB / 457.4 MB, free: 109.2 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.533e-05/0.6356, allocations: 4.859 kB / 457.4 MB, free: 109.2 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008683/0.6443, allocations: 5.065 MB / 462.5 MB, free: 107.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.087e-05/0.6444, allocations: 0 / 462.5 MB, free: 107.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007272/0.6451, allocations: 158.8 kB / 462.6 MB, free: 107.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002917/0.648, allocations: 0.6795 MB / 463.3 MB, free: 107.4 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001681/0.6482, allocations: 23.62 kB / 463.3 MB, free: 107.4 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004657/0.6529, allocations: 3.89 MB / 467.2 MB, free: 105.4 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.6529, allocations: 0 / 467.2 MB, free: 105.4 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005253/0.6582, allocations: 4.054 MB / 471.3 MB, free: 103.5 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008969/0.6591, allocations: 461.9 kB / 471.7 MB, free: 103.2 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002425/0.6594, allocations: 15.52 kB / 471.7 MB, free: 103.2 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008634/0.6602, allocations: 71.92 kB / 471.8 MB, free: 103.2 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001429/0.6604, allocations: 49.06 kB / 471.8 MB, free: 103.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.126e-05/0.6605, allocations: 40.16 kB / 471.9 MB, free: 103.2 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002126/0.6626, allocations: 1.683 MB / 473.6 MB, free: 102.3 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.6626, allocations: 3.938 kB / 473.6 MB, free: 102.3 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003321/0.666, allocations: 0.682 MB / 474.2 MB, free: 101.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000392/0.6664, allocations: 174.9 kB / 474.4 MB, free: 101.5 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004421/0.6708, allocations: 3.459 MB / 477.9 MB, free: 98.08 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.6708, allocations: 0 / 477.9 MB, free: 98.08 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001076/0.6719, allocations: 1.037 MB / 478.9 MB, free: 97.03 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001623/0.6735, allocations: 240.8 kB / 479.1 MB, free: 96.8 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007814/0.6814, allocations: 6.683 MB / 485.8 MB, free: 90.14 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001542/0.683, allocations: 2.237 MB / 488.1 MB, free: 87.87 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002749/0.6857, allocations: 1.327 MB / 489.4 MB, free: 86.54 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004119/0.6862, allocations: 159.4 kB / 489.6 MB, free: 86.38 MB / 382.1 MB Notification: Performance of SimCode: time 9.62e-07/0.6862, allocations: 0 / 489.6 MB, free: 86.38 MB / 382.1 MB Notification: Performance of Templates: time 0.03574/0.7219, allocations: 22.27 MB / 0.4998 GB, free: 64.14 MB / 382.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)