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.001187/0.001187, allocations: 92.08 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.001527/0.001527, 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.525/1.525, allocations: 205.4 MB / 222.1 MB, free: 5.652 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.0004599/0.00046, allocations: 16 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2487/0.2491, allocations: 47.58 MB / 326.5 MB, free: 1.402 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.01553/0.2647, allocations: 16.33 MB / 342.8 MB, free: 3.137 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01276/0.2775, allocations: 4.688 MB / 347.5 MB, free: 14.43 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003949/0.2815, allocations: 71.81 kB / 347.6 MB, free: 14.36 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003405/0.2849, allocations: 0.7893 MB / 348.4 MB, free: 13.57 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007881/0.2929, allocations: 2.65 MB / 351 MB, free: 10.91 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00158/0.2944, allocations: 471.1 kB / 351.5 MB, free: 10.45 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003889/0.2984, allocations: 2.808 MB / 354.3 MB, free: 7.633 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002853/0.3012, allocations: 1.581 MB / 355.9 MB, free: 6.02 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00167/0.3029, allocations: 0.7588 MB / 356.6 MB, free: 5.258 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001994/0.3049, allocations: 1.164 MB / 357.8 MB, free: 4.09 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005913/0.3055, allocations: 80 kB / 357.9 MB, free: 4.012 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001969/0.3075, allocations: 0.7488 MB / 358.6 MB, free: 3.262 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001613/0.3091, allocations: 0.9856 MB / 359.6 MB, free: 2.273 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001056/0.3102, allocations: 0.4923 MB / 360.1 MB, free: 1.773 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003981/0.3142, allocations: 3.08 MB / 363.2 MB, free: 14.69 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.175e-06/0.3142, allocations: 3.938 kB / 363.2 MB, free: 14.68 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.486e-06/0.3142, allocations: 0 / 363.2 MB, free: 14.68 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002265/0.3145, allocations: 0 / 363.2 MB, free: 14.68 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.005852/0.3203, allocations: 2.547 MB / 365.7 MB, free: 12.08 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.3204, allocations: 12.03 kB / 365.7 MB, free: 12.07 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005066/0.3255, allocations: 1.603 MB / 367.3 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002692/0.3282, allocations: 1.422 MB / 368.8 MB, free: 8.988 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.298e-05/0.3283, allocations: 123 kB / 368.9 MB, free: 8.867 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002769/0.3286, allocations: 155.9 kB / 369 MB, free: 8.715 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008958/0.3375, allocations: 6.53 MB / 375.6 MB, free: 1.699 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.433e-05/0.3376, allocations: 35.66 kB / 375.6 MB, free: 1.664 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002168/0.3379, allocations: 83.89 kB / 375.7 MB, free: 1.582 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002255/0.3401, allocations: 1.468 MB / 377.1 MB, free: 120 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009888/0.35, allocations: 5.822 MB / 383 MB, free: 10.29 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03157/0.3816, allocations: 25.76 MB / 408.7 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005577/0.3873, allocations: 2.58 MB / 411.3 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001679/0.389, allocations: 1.219 MB / 412.5 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007396/0.3964, allocations: 4.799 MB / 417.3 MB, free: 6.914 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.173e-05/0.3965, allocations: 46.52 kB / 417.4 MB, free: 6.859 MB / 350.1 MB Notification: Performance of pre-optimization done (n=97): time 2.785e-06/0.3965, allocations: 0 / 417.4 MB, free: 6.859 MB / 350.1 MB Notification: Performance of matching and sorting (n=105): time 0.02318/0.4197, allocations: 9.759 MB / 427.1 MB, free: 12.96 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.676e-05/0.4198, allocations: 141 kB / 427.3 MB, free: 12.79 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004106/0.4239, allocations: 2.714 MB / 430 MB, free: 10.05 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001278/0.424, allocations: 37.7 kB / 430 MB, free: 10.01 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001398/0.4254, allocations: 2.048 MB / 432.1 MB, free: 7.934 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004656/0.4259, allocations: 426.7 kB / 432.5 MB, free: 7.512 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002497/0.4262, allocations: 80 kB / 432.5 MB, free: 7.434 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002953/0.4265, allocations: 491.3 kB / 433 MB, free: 6.945 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002275/0.4288, allocations: 1.433 MB / 434.5 MB, free: 5.504 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003942/0.4327, allocations: 4.057 MB / 438.5 MB, free: 120 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003507/0.4362, allocations: 2.338 MB / 440.9 MB, free: 13.77 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.923e-05/0.4363, allocations: 32 kB / 440.9 MB, free: 13.74 MB / 382.1 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.0106/0.4469, allocations: 5.998 MB / 446.9 MB, free: 7.734 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.82e-05/0.447, allocations: 44 kB / 446.9 MB, free: 7.691 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001406/0.4472, allocations: 99.94 kB / 447 MB, free: 7.594 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002235/0.4494, allocations: 0.8279 MB / 447.9 MB, free: 6.762 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00283/0.4523, allocations: 0.9475 MB / 448.8 MB, free: 5.812 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005539/0.4578, allocations: 4.348 MB / 453.2 MB, free: 1.336 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002589/0.4604, allocations: 243.6 kB / 453.4 MB, free: 1.098 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004432/0.4609, allocations: 260 kB / 453.6 MB, free: 0.8438 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.2161/0.677, allocations: 1.36 MB / 455 MB, free: 109.3 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005389/0.6775, allocations: 225.7 kB / 455.2 MB, free: 109.3 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004276/0.6818, allocations: 2.132 MB / 457.4 MB, free: 109.2 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.123e-05/0.6818, allocations: 16.48 kB / 457.4 MB, free: 109.2 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/0.6819, allocations: 5.781 kB / 457.4 MB, free: 109.2 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.827e-06/0.6819, allocations: 3.891 kB / 457.4 MB, free: 109.2 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007248/0.6891, allocations: 5.064 MB / 462.4 MB, free: 107.6 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.811e-06/0.6892, allocations: 1 kB / 462.4 MB, free: 107.6 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006686/0.6898, allocations: 158.5 kB / 462.6 MB, free: 107.6 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001645/0.6915, allocations: 0.6833 MB / 463.3 MB, free: 107.5 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.635e-05/0.6916, allocations: 17.28 kB / 463.3 MB, free: 107.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00375/0.6953, allocations: 3.895 MB / 467.2 MB, free: 105.4 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.6953, allocations: 3.781 kB / 467.2 MB, free: 105.4 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004806/0.7001, allocations: 4.045 MB / 471.2 MB, free: 103.5 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007152/0.7009, allocations: 459.8 kB / 471.7 MB, free: 103.3 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002976/0.7012, allocations: 19.7 kB / 471.7 MB, free: 103.3 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008361/0.702, allocations: 69.42 kB / 471.8 MB, free: 103.2 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001277/0.7022, allocations: 57.2 kB / 471.8 MB, free: 103.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.548e-05/0.7022, allocations: 34.7 kB / 471.9 MB, free: 103.2 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001975/0.7042, allocations: 1.689 MB / 473.6 MB, free: 102.3 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.7042, allocations: 0 / 473.6 MB, free: 102.3 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002893/0.7071, allocations: 0.6797 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.000347/0.7075, allocations: 174.4 kB / 474.4 MB, free: 101.6 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004039/0.7115, allocations: 3.462 MB / 477.9 MB, free: 98.15 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.7116, allocations: 0 / 477.9 MB, free: 98.15 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001028/0.7126, allocations: 1.036 MB / 478.9 MB, free: 97.1 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001333/0.7139, allocations: 250.3 kB / 479.2 MB, free: 96.86 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00738/0.7213, allocations: 6.669 MB / 485.8 MB, free: 90.21 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001752/0.7231, allocations: 2.237 MB / 488.1 MB, free: 87.93 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002496/0.7256, allocations: 1.329 MB / 489.4 MB, free: 86.6 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003893/0.726, allocations: 158.3 kB / 489.5 MB, free: 86.45 MB / 382.1 MB Notification: Performance of SimCode: time 4.61e-07/0.726, allocations: 0 / 489.5 MB, free: 86.45 MB / 382.1 MB Notification: Performance of Templates: time 0.02939/0.7554, allocations: 22.27 MB / 0.4998 GB, free: 64.21 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)