 **********
 **   18 **HESSE 
 **********

 FCN=   15206.27     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      296 TOTAL
                     EDM=   .34E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19011        11.985        .57524E-05   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.0009        7.0004        .76624E-02   -.20117    
   3  Normalizat    1.0262        .10335        .26620E-03   -.92158    
   4  Prefactor     1.1027        .11311        .28488E-03   -.89381    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.41721e-06
Minuit parameter uncertainties:
  1  3.01895
  2  6.69019
  3  0.103366
  4  0.113132
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15206.2738712
delta logL = 0.416340166585

Extracting fit parameters...

4FGL J0929.3+5014
   Spectrum: PowerLaw
366    Prefactor:  1.901e-01  3.019e+00  0.000e+00  1.000e+06 ( 1.000e-13)
367        Index:  4.001e+00  6.690e+00  0.000e+00  1.000e+01 (-1.000e+00)
368        Scale:  1.474e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
714    Prefactor:  1.103e+00  1.131e-01  0.000e+00  1.000e+01 ( 1.000e+00)
715        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
716        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
713   Normalization:  1.026e+00  1.034e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 142.327 50.235

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/18862201/cmap_HighResolution_709516801_710121601_4FGL_J0929.3+5014_weekly_bin778.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.06e-03', job_status='DONE', photon_flux_upper_limit='4.04e-08', time_completed='2023-07-10 08:52:12.086670', job_id='18862201', GAL2='1.10', fit_tolerance='1e-08', EG2='1.03', EG='1.06', time_epoch_completed='1689004332.09', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='4.16e-01', ts2='0.92', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='778' AND source_name='4FGL J0929.3+5014' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul 10 08:52:12 PDT 2023

/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

e GAL_V02
Working on...
/lscratch/kocevski/18863083/ft1_filtered_4FGL_J0929.3+5014_weekly_bin778.fits.....................!
real 50.71
user 48.99
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18863083/ft1_filtered_4FGL_J0929.3+5014_weekly_bin778.fits', '/lscratch/kocevski/18863083/ft2_4FGL_J0929.3+5014_weekly_bin778.fits', expMap='/lscratch/kocevski/18863083/expmap_709516801_710121601_4FGL_J0929.3+5014_weekly_bin778.fits', expCube='/lscratch/kocevski/18863083/ltcube_709516801_710121601_4FGL_J0929.3+5014_weekly_bin778.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18863083/Model_4FGL_J0929.3+5014_weekly_bin778.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0929.3+5014'

4FGL J0929.3+5014
   Spectrum: PowerLaw
366    Prefactor:  5.632e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
367        Index:  2.125e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
368        Scale:  1.474e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18863083/ft1_filtered_4FGL_J0929.3+5014_weekly_bin778.fits
Spacecraft file(s): /lscratch/kocevski/18863083/ft2_4FGL_J0929.3+5014_weekly_bin778.fits
Exposure map: /lscratch/kocevski/18863083/expmap_709516801_710121601_4FGL_J0929.3+5014_weekly_bin778.fits
Exposure cube: /lscratch/kocevski/18863083/ltcube_709516801_710121601_4FGL_J0929.3+5014_weekly_bin778.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18863083/Model_4FGL_J0929.3+5014_weekly_bin778.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 15206.8147147

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 15206.690708

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96313       1.0000          .0000       .10000E+07
     2 'Prefactor '    6.3627       1.0000          .0000       .10000E+07
     3 'Prefactor '    7.3327       1.0000          .0000       .10000E+07
     4 'norm      '    4.1421       1.0000          .0000       .10000E+07
     5 'norm      '    1.7734       1.0000          .0000       .10000E+07
     6 'Prefactor '    8.8974       1.0000          .0000       .10000E+07
     7 'Prefactor '    .48406E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    .56481E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    11.080       1.0000          .0000       .10000E+07
    10 'Prefactor '    1.4825       1.0000          .0000       .10000E+07
    11 'norm      '    .94180E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    2.0449       1.0000          .0000       .10000E+07
    13 'norm      '    .14362E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    6.8005       1.0000          .0000       .10000E+07
    15 'Prefactor '    .20226E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .55373E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    13.248       1.0000          .0000       .10000E+07
    18 'norm      '    .13440E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    .22561E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    6.1312       1.0000          .0000       .10000E+07
    21 'Prefactor '    14.349       1.0000          .0000       .10000E+07
    22 'norm      '    3.3490       1.0000          .0000       .10000E+07
    23 'Prefactor '    21.149       1.0000          .0000       .10000E+07
    24 'Prefactor '    17.246       1.0000          .0000       .10000E+07
    25 'norm      '    1.2968       1.0000          .0000       .10000E+07
    26 'norm      '    7.5842       1.0000          .0000       .10000E+07
    27 'Prefactor '    .35945       1.0000          .0000       .10000E+07
    28 'norm      '    3.1201       1.0000          .0000       .10000E+07
    29 'Prefactor '    .11948E-02   1.0000          .0000       .10000E+07
    30 'Normalizat'    1.0612       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0801       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15206.69     FROM MIGRAD    STATUS=CONVERGED    240 CALLS     2443 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .95876        5.2133       -.29664E-06   -.17071E-02
   2  Prefactor     6.3947        7.0755       -.36967E-07    .53167E-03
   3  Prefactor     7.3300        4.3423       -.62827E-07   -.79519E-03
   4  norm          4.1367        4.1305       -.99796E-07    .38322E-03
   5  norm          1.7760        3.8090        .18784E-06    .29245E-03
   6  Prefactor     8.8325        8.4373        .51714E-07   -.10634E-04
   7  Prefactor     .16764E-07    7.3846       -.15517E-07** at limit **
   8  Prefactor     .58731E-06    11.722        .47352E-06** at limit **
   9  Prefactor     11.063        3.9661        .48308E-08    .66389E-03
  10  Prefactor     1.5069        34.009       -.78017E-06   -.28004E-02
  11  norm           .0000        .79680        .24105E-06** at limit **
  12  Prefactor     2.0454        2.1881       -.57657E-07    .91776E-03
  13  norm          .20817E-07    10.952       -.72033E-07** at limit **
  14  Prefactor     6.8069        2.5954       -.42772E-07    .30866E-02
  15  Prefactor     .76494E-07    37.301       -.27306E-05** at limit **
  16  Prefactor     .56396E-01    8.5298        .12550E-05** at limit **
  17  Prefactor     13.185        6.7502        .34139E-07   -.12192E-01
  18  norm           .0000        2.9441        .34821E-06** at limit **
  19  Prefactor     .38569E-06    94.765       -.16487E-05** at limit **
  20  Prefactor     6.0886        5.3985       -.84392E-08   -.12965E-02
  21  Prefactor     14.351        5.5015       -.12247E-06   -.19490E-02
  22  norm          3.3351        3.5146        .22963E-06    .51210E-03
  23  Prefactor     20.542        17.498       -.94019E-06    .62309E-01
  24  Prefactor     17.141        2.2256       -.13221E-06    .29814E-02
  25  norm          1.2969        .35425        .26570E-07    .48898E-02
  26  norm          7.5930        7.0451        .34115E-07    .26858E-03
  27  Prefactor     .37129        7.1862        .91966E-06   -.62640E-03
  28  norm          3.1174        1.4233        .14331E-07    .25546E-03
  29  Prefactor     .10648E-05    12.242       -.13114E-05** at limit **
  30  Normalizat    1.0617        .14530       -.37394E-05   -.13363E-03
  31  Prefactor     1.0800        .15419        .16319E-05   -.11254E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.958759
  Prefactor  = 6.39474
  Prefactor  = 7.32999
  norm       = 4.13671
  norm       = 1.77597
  Prefactor  = 8.83252
  Prefactor  = 1.67644e-08
  Prefactor  = 5.87308e-07
  Prefactor  = 11.0632
  Prefactor  = 1.50694
  norm       = 0
  Prefactor  = 2.04543
  norm       = 2.08167e-08
  Prefactor  = 6.80686
  Prefactor  = 7.64944e-08
  Prefactor  = 0.0563957
  Prefactor  = 13.1852
  norm       = 0
  Prefactor  = 3.85691e-07
  Prefactor  = 6.08855
  Prefactor  = 14.3507
  norm       = 3.33508
  Prefactor  = 20.5422
  Prefactor  = 17.1406
  norm       = 1.2969
  norm       = 7.59299
  Prefactor  = 0.371294
  norm       = 3.11737
  Prefactor  = 1.06476e-06
  Normalizat = 1.06173
  Prefactor  = 1.08004
 outfile=/lscratch/kocevski/18864188/ltcube_709516801_710121601_4FGL_J0929.3+5014_weekly_bin778.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /lscratch/kocevski/18864188/ft2_4FGL_J0929.3+5014_weekly_bin778.fits
.....................!
real 17.03
user 16.54
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18864188/ft1_filtered_4FGL_J0929.3+5014_weekly_bin778.fits evtable="EVENTS" scfile=/lscratch/kocevski/18864188/ft2_4FGL_J0929.3+5014_weekly_bin778.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18864188/ltcube_709516801_710121601_4FGL_J0929.3+5014_weekly_bin778.fits outfile=/lscratch/kocevski/18864188/expmap_709516801_710121601_4FGL_J0929.3+5014_weekly_bin778.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/18864188/ltcube_709516801_710121601_4FGL_J0929.3+5014_weekly_bin778.fits
.....................!
real 65.48
user 61.12
sys 3.91

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 226 point sources and 0 extended sources

Setting source of interest to:
4FGL J0929.3+5014 @ 142.327 50.2352

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/18864188/ft1_filtered_4FGL_J0929.3+5014_weekly_bin778.fits scfile=/lscratch/kocevski/18864188/ft2_4FGL_J0929.3+5014_weekly_bin778.fits outfile=/lscratch/kocevski/18864188/cmap_709516801_710121601_4FGL_J0929.3+5014_weekly_bin778.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=142.327 yref=50.2352 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.59
user 0.24
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18864188/ft1_filtered_4FGL_J0929.3+5014_weekly_bin778.fits scfile=/lscratch/kocevski/18864188/ft2_4FGL_J0929.3+5014_weekly_bin778.fits outfile=/lscratch/kocevski/18864188/cmap_HighResolution_709516801_710121601_4FGL_J0929.3+5014_weekly_bin778.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=142.327 yref=50.2352 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.58
user 0.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18864188/ft1_filtered_4FGL_J0929.3+5014_weekly_bin778.fits evtable="EVENTS" scfile=/lscratch/kocevski/18864188/ft2_4FGL_J0929.3+5014_weekly_bin778.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18864188/Model_4FGL_J0929.3+5014_weekly_bin778.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding sourc **********
 **   18 **HESSE 
 **********

 FCN=   15206.69     FROM HESSE     STATUS=OK           718 CALLS     3161 TOTAL
                     EDM=   .72E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .95876        5.2546        .42456E-03   -1.5688    
   2  Prefactor     6.3947        7.0867        .39768E-03   -1.5657    
   3  Prefactor     7.3300        4.3521        .37016E-03   -1.5654    
   4  norm          4.1367        4.1555        .49502E-03   -1.5667    
   5  norm          1.7760        3.8537        .78591E-03   -1.5681    
   6  Prefactor     8.8325        8.4163        .33578E-03   -1.5649    
   7  Prefactor     .16764E-07    8.3962        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .58731E-06    15.449        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.063        3.9893        .30073E-03   -1.5641    
  10  Prefactor     1.5069        34.699        .88098E-03   -1.5683    
  11  norm           .0000        .15686        .25563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.0454        2.6985        .72275E-03   -1.5679    
  13  norm          .20817E-07    11.098        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.8069        2.6163        .38452E-03   -1.5656    
  15  Prefactor     .76494E-07    36.593        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .56396E-01    .73924        .56330E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.185        14.581        .27494E-03   -1.5635    
  18  norm           .0000        2.9478        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .38569E-06    95.907        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.0886        5.4463        .40522E-03   -1.5659    
  21  Prefactor     14.351        5.8027        .26416E-03   -1.5632    
  22  norm          3.3351        3.5758        .55278E-03   -1.5671    
  23  Prefactor     20.542        25.190        .21751E-03   -1.5617    
  24  Prefactor     17.141        19.521        .24090E-03   -1.5625    
  25  norm          1.2969        .35705        .83608E-03   -1.5685    
  26  norm          7.5930        7.0648        .36391E-03   -1.5653    
  27  Prefactor     .37129        2.1847        .53626E-02   -1.5696    
  28  norm          3.1174        1.4278        .57375E-03   -1.5673    
  29  Prefactor     .10648E-05    16.826        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0617        .12572        .59362E-01   -.90990    
  31  Prefactor     1.0800        .13061        .64993E-01   -.90107    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.15552e-07
Minuit parameter uncertainties:
  1  4.48904
  2  7.08667
  3  4.35207
  4  4.15553
  5  3.85374
  6  8.41628
  7  0.000750344
  8  0.00602436
  9  3.98928
  10  14.4622
  11  7.73504e-07
  12  2.69853
  13  0.000961162
  14  2.61631
  15  0.00334644
  16  0.408363
  17  14.5808
  18  9.58253e-06
  19  0.0121646
  20  5.44627
  21  5.80266
  22  3.57585
  23  25.1905
  24  19.5211
  25  0.357055
  26  7.06484
  27  1.80128
  28  1.42781
  29  0.0084653
  30  0.125757
  31  0.130649
number of points = 17494
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0929.3+5014_weekly_bin778
RA = 142.327, Dec = 50.2352
tmin = 709516801, tmax = 710121601
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='18865484', job_status='RUN', time_executed='2023-07-10 08:52:15.772032', time_epoch_executed='1689004335.77' WHERE source_name='4FGL J0929.3+5014' and cadence='weekly' and bin_id='778'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18865484

Creating custom pfile directory:
/lscratch/kocevski/18865484/pfiles/

Retrieving the FT1 file...

Issuing command:
datacat find --group FT1 --filter 'nMetStop>=709516801.0 && nMetStart<710121601.0' /Data/Flight/Reprocess/P305

Issuing command:
datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=709516801.0 && nMetStart<710121601.0' /Data/Flight/Level1/LPA

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/18865484/ft1_4FGL_J0929.3+5014_weekly_bin778.fits


Retrieving the FT1 file...

Issuing command:
datacat find --group FT2 --filter 'nMetStop>=709516801.0 && nMetStart<710121601.0' /Data/Flight/Level1/LPA

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/18865484/ft2_4FGL_J0929.3+5014_weekly_bin778.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/18865484/ft1_4FGL_J0929.3+5014_weekly_bin778.fits outfile=/lscratch/kocevski/18865484/ft1_filteredMKT_4FGL_J0929.3+5014_weekly_bin778.fits ra=142.327 dec=50.2352 rad=12.0 tmin=709516801.0 tmax=710121601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.08
user 4.52
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/18865484/ft2_4FGL_J0929.3+5014_weekly_bin778.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/18865484/ft2_4FGL_J0929.3+5014_weekly_bin778.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/18865484/ft1_filteredMKT_4FGL_J0929.3+5014_weekly_bin778.fits evtable="EVENTS" outfile="/lscratch/kocevski/18865484/ft1_filtered_4FGL_J0929.3+5014_weekly_bin778.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.58
user 0.22
sys 0.13

Number of photons that the gtmktime cut: 1379

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/18865484/ft1_filtered_4FGL_J0929.3+5014_weekly_bin778.fits" evtable="EVENTS" scfile=/lscratch/kocevski/18865484/ft2_4FGL_J0929.3+5014_weekly_bin778.fits sctable="SC_DATA"Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 15206.6902114

Extracting fit parameters...

4FGL J0929.3+5014
   Spectrum: PowerLaw
366    Prefactor:  7.649e-08  3.346e-03  0.000e+00  1.000e+06 ( 1.000e-13)
367        Index:  2.125e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
368        Scale:  1.474e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
714    Prefactor:  1.080e+00  1.306e-01  0.000e+00  1.000e+01 ( 1.000e+00)
715        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
716        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
713   Normalization:  1.062e+00  1.258e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 142.327 50.235
Photon Flux Upper Limit: 4.04167776962e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00306196022703 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18863083/likelihoodResults_709516801_710121601_4FGL_J0929.3+5014_weekly_bin778.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15206.7141241
delta logL = -0.0239127271143

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15206.2738715
delta logL = 0.416339921803

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18989       1.0000          .0000       .10000E+07
     2 'Index     '    4.0012       1.0000          .0000       10.000    
     3 'Normalizat'    1.0262       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1027       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15206.27     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      263 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19011        1.8986        .11959E-02** at limit **
   2  Index         4.0009        1.7582        .13026        .33857E-03
   3  Normalizat    1.0262        .17866E-01    .42564E-01    .32116E-04
   4  Prefactor     1.1027        .19834E-01    .64406E-01    .25183E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.190114
  Index      = 4.00092
  Normalizat = 1.0262
  Prefactor  = 1.10268
 **********
 **   18 **HESSE 
 **********

 FCN=   15206.27     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      296 TOTAL
                     EDM=   .34E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19011        11.985        .57524E-05   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.0009        7.0004        .76624E-02   -.20117    
   3  Normalizat    1.0262        .10335        .26620E-03   -.92158    
   4  Prefactor     1.1027        .11311        .28488E-03   -.89381    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.41721e-06
Minuit parameter uncertainties:
  1  3.01895
  2  6.69019
  3  0.103366
  4  0.113132
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15206.2738712
delta logL = 0.416340166585

Extracting fit parameters...

4FGL J0929.3+5014
   Spectrum: PowerLaw
366    Prefactor:  1.901e-01  3.019e+00  0.000e+00  1.000e+06 ( 1.000e-13)
367        Index:  4.001e+00  6.690e+00  0.000e+00  1.000e+01 (-1.000e+00)
368        Scale:  1.474e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
714    Prefactor:  1.103e+00  1.131e-01  0.000e+00  1.000e+01 ( 1.000e+00)
715        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
716        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
713   Normalization:  1.026e+00  1.034e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 142.327 50.235

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/18863083/cmap_HighResolution_709516801_710121601_4FGL_J0929.3+5014_weekly_bin778.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.06e-03', job_status='DONE', photon_flux_upper_limit='4.04e-08', time_completed='2023-07-10 08:57:03.956303', job_id='18863083', GAL2='1.10', fit_tolerance='1e-08', EG2='1.03', EG='1.06', time_epoch_completed='1689004623.96', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='4.16e-01', ts2='0.92', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='778' AND source_name='4FGL J0929.3+5014' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul 10 08:57:04 PDT 2023

 outfile=/lscratch/kocevski/18865484/ltcube_709516801_710121601_4FGL_J0929.3+5014_weekly_bin778.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /lscratch/kocevski/18865484/ft2_4FGL_J0929.3+5014_weekly_bin778.fits
.....................!
real 18.82
user 18.19
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18865484/ft1_filtered_4FGL_J0929.3+5014_weekly_bin778.fits evtable="EVENTS" scfile=/lscratch/kocevski/18865484/ft2_4FGL_J0929.3+5014_weekly_bin778.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18865484/ltcube_709516801_710121601_4FGL_J0929.3+5014_weekly_bin778.fits outfile=/lscratch/kocevski/18865484/expmap_709516801_710121601_4FGL_J0929.3+5014_weekly_bin778.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/18865484/ltcube_709516801_710121601_4FGL_J0929.3+5014_weekly_bin778.fits
.....................!
real 71.19
user 66.46
sys 3.91

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 226 point sources and 0 extended sources

Setting source of interest to:
4FGL J0929.3+5014 @ 142.327 50.2352

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/18865484/ft1_filtered_4FGL_J0929.3+5014_weekly_bin778.fits scfile=/lscratch/kocevski/18865484/ft2_4FGL_J0929.3+5014_weekly_bin778.fits outfile=/lscratch/kocevski/18865484/cmap_709516801_710121601_4FGL_J0929.3+5014_weekly_bin778.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=142.327 yref=50.2352 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.58
user 0.24
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18865484/ft1_filtered_4FGL_J0929.3+5014_weekly_bin778.fits scfile=/lscratch/kocevski/18865484/ft2_4FGL_J0929.3+5014_weekly_bin778.fits outfile=/lscratch/kocevski/18865484/cmap_HighResolution_709516801_710121601_4FGL_J0929.3+5014_weekly_bin778.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=142.327 yref=50.2352 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.65
user 0.24
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18865484/ft1_filtered_4FGL_J0929.3+5014_weekly_bin778.fits evtable="EVENTS" scfile=/lscratch/kocevski/18865484/ft2_4FGL_J0929.3+5014_weekly_bin778.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18865484/Model_4FGL_J0929.3+5014_weekly_bin778.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/18864188/ft1_filtered_4FGL_J0929.3+5014_weekly_bin778.fits.....................!
real 48.87
user 47.11
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18864188/ft1_filtered_4FGL_J0929.3+5014_weekly_bin778.fits', '/lscratch/kocevski/18864188/ft2_4FGL_J0929.3+5014_weekly_bin778.fits', expMap='/lscratch/kocevski/18864188/expmap_709516801_710121601_4FGL_J0929.3+5014_weekly_bin778.fits', expCube='/lscratch/kocevski/18864188/ltcube_709516801_710121601_4FGL_J0929.3+5014_weekly_bin778.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18864188/Model_4FGL_J0929.3+5014_weekly_bin778.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0929.3+5014'

4FGL J0929.3+5014
   Spectrum: PowerLaw
366    Prefactor:  5.632e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
367        Index:  2.125e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
368        Scale:  1.474e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18864188/ft1_filtered_4FGL_J0929.3+5014_weekly_bin778.fits
Spacecraft file(s): /lscratch/kocevski/18864188/ft2_4FGL_J0929.3+5014_weekly_bin778.fits
Exposure map: /lscratch/kocevski/18864188/expmap_709516801_710121601_4FGL_J0929.3+5014_weekly_bin778.fits
Exposure cube: /lscratch/kocevski/18864188/ltcube_709516801_710121601_4FGL_J0929.3+5014_weekly_bin778.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18864188/Model_4FGL_J0929.3+5014_weekly_bin778.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 15206.8147147

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 15206.690708

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96313       1.0000          .0000       .10000E+07
     2 'Prefactor '    6.3627       1.0000          .0000       .10000E+07
     3 'Prefactor '    7.3327       1.0000          .0000       .10000E+07
     4 'norm      '    4.1421       1.0000          .0000       .10000E+07
     5 'norm      '    1.7734       1.0000          .0000       .10000E+07
     6 'Prefactor '    8.8974       1.0000          .0000       .10000E+07
     7 'Prefactor '    .48406E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    .56481E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    11.080       1.0000          .0000       .10000E+07
    10 'Prefactor '    1.4825       1.0000          .0000       .10000E+07
    11 'norm      '    .94180E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    2.0449       1.0000          .0000       .10000E+07
    13 'norm      '    .14362E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    6.8005       1.0000          .0000       .10000E+07
    15 'Prefactor '    .20226E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .55373E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    13.248       1.0000          .0000       .10000E+07
    18 'norm      '    .13440E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    .22561E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    6.1312       1.0000          .0000       .10000E+07
    21 'Prefactor '    14.349       1.0000          .0000       .10000E+07
    22 'norm      '    3.3490       1.0000          .0000       .10000E+07
    23 'Prefactor '    21.149       1.0000          .0000       .10000E+07
    24 'Prefactor '    17.246       1.0000          .0000       .10000E+07
    25 'norm      '    1.2968       1.0000          .0000       .10000E+07
    26 'norm      '    7.5842       1.0000          .0000       .10000E+07
    27 'Prefactor '    .35945       1.0000          .0000       .10000E+07
    28 'norm      '    3.1201       1.0000          .0000       .10000E+07
    29 'Prefactor '    .11948E-02   1.0000          .0000       .10000E+07
    30 'Normalizat'    1.0612       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0801       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15206.69     FROM MIGRAD    STATUS=CONVERGED    240 CALLS     2443 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .95876        5.2133       -.29664E-06   -.17071E-02
   2  Prefactor     6.3947        7.0755       -.36967E-07    .53167E-03
   3  Prefactor     7.3300        4.3423       -.62827E-07   -.79519E-03
   4  norm          4.1367        4.1305       -.99796E-07    .38322E-03
   5  norm          1.7760        3.8090        .18784E-06    .29245E-03
   6  Prefactor     8.8325        8.4373        .51714E-07   -.10634E-04
   7  Prefactor     .16764E-07    7.3846       -.15517E-07** at limit **
   8  Prefactor     .58731E-06    11.722        .47352E-06** at limit **
   9  Prefactor     11.063        3.9661        .48308E-08    .66389E-03
  10  Prefactor     1.5069        34.009       -.78017E-06   -.28004E-02
  11  norm           .0000        .79680        .24105E-06** at limit **
  12  Prefactor     2.0454        2.1881       -.57657E-07    .91776E-03
  13  norm          .20817E-07    10.952       -.72033E-07** at limit **
  14  Prefactor     6.8069        2.5954       -.42772E-07    .30866E-02
  15  Prefactor     .76494E-07    37.301       -.27306E-05** at limit **
  16  Prefactor     .56396E-01    8.5298        .12550E-05** at limit **
  17  Prefactor     13.185        6.7502        .34139E-07   -.12192E-01
  18  norm           .0000        2.9441        .34821E-06** at limit **
  19  Prefactor     .38569E-06    94.765       -.16487E-05** at limit **
  20  Prefactor     6.0886        5.3985       -.84392E-08   -.12965E-02
  21  Prefactor     14.351        5.5015       -.12247E-06   -.19490E-02
  22  norm          3.3351        3.5146        .22963E-06    .51210E-03
  23  Prefactor     20.542        17.498       -.94019E-06    .62309E-01
  24  Prefactor     17.141        2.2256       -.13221E-06    .29814E-02
  25  norm          1.2969        .35425        .26570E-07    .48898E-02
  26  norm          7.5930        7.0451        .34115E-07    .26858E-03
  27  Prefactor     .37129        7.1862        .91966E-06   -.62640E-03
  28  norm          3.1174        1.4233        .14331E-07    .25546E-03
  29  Prefactor     .10648E-05    12.242       -.13114E-05** at limit **
  30  Normalizat    1.0617        .14530       -.37394E-05   -.13363E-03
  31  Prefactor     1.0800        .15419        .16319E-05   -.11254E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.958759
  Prefactor  = 6.39474
  Prefactor  = 7.32999
  norm       = 4.13671
  norm       = 1.77597
  Prefactor  = 8.83252
  Prefactor  = 1.67644e-08
  Prefactor  = 5.87308e-07
  Prefactor  = 11.0632
  Prefactor  = 1.50694
  norm       = 0
  Prefactor  = 2.04543
  norm       = 2.08167e-08
  Prefactor  = 6.80686
  Prefactor  = 7.64944e-08
  Prefactor  = 0.0563957
  Prefactor  = 13.1852
  norm       = 0
  Prefactor  = 3.85691e-07
  Prefactor  = 6.08855
  Prefactor  = 14.3507
  norm       = 3.33508
  Prefactor  = 20.5422
  Prefactor  = 17.1406
  norm       = 1.2969
  norm       = 7.59299
  Prefactor  = 0.371294
  norm       = 3.11737
  Prefactor  = 1.06476e-06
  Normalizat = 1.06173
  Prefactor  = 1.08004
 **********
 **   18 **HESSE 
 **********

 FCN=   15206.69     FROM HESSE     STATUS=OK           718 CALLS     3161 TOTAL
                     EDM=   .72E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .95876        5.2546        .42456E-03   -1.5688    
   2  Prefactor     6.3947        7.0867        .39768E-03   -1.5657    
   3  Prefactor     7.3300        4.3521        .37016E-03   -1.5654    
   4  norm          4.1367        4.1555        .49502E-03   -1.5667    
   5  norm          1.7760        3.8537        .78591E-03   -1.5681    
   6  Prefactor     8.8325        8.4163        .33578E-03   -1.5649    
   7  Prefactor     .16764E-07    8.3962        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .58731E-06    15.449        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.063        3.9893        .30073E-03   -1.5641    
  10  Prefactor     1.5069        34.699        .88098E-03   -1.5683    
  11  norm           .0000        .15686        .25563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.0454        2.6985        .72275E-03   -1.5679    
  13  norm          .20817E-07    11.098        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.8069        2.6163        .38452E-03   -1.5656    
  15  Prefactor     .76494E-07    36.593        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .56396E-01    .73924        .56330E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.185        14.581        .27494E-03   -1.5635    
  18  norm           .0000        2.9478        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .38569E-06    95.907        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.0886        5.4463        .40522E-03   -1.5659    
  21  Prefactor     14.351        5.8027        .26416E-03   -1.5632    
  22  norm          3.3351        3.5758        .55278E-03   -1.5671    
  23  Prefactor     20.542        25.190        .21751E-03   -1.5617    
  24  Prefactor     17.141        19.521        .24090E-03   -1.5625    
  25  norm          1.2969        .35705        .83608E-03   -1.5685    
  26  norm          7.5930        7.0648        .36391E-03   -1.5653    
  27  Prefactor     .37129        2.1847        .53626E-02   -1.5696    
  28  norm          3.1174        1.4278        .57375E-03   -1.5673    
  29  Prefactor     .10648E-05    16.826        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0617        .12572        .59362E-01   -.90990    
  31  Prefactor     1.0800        .13061        .64993E-01   -.90107    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.15552e-07
Minuit parameter uncertainties:
  1  4.48904
  2  7.08667
  3  4.35207
  4  4.15553
  5  3.85374
  6  8.41628
  7  0.000750344
  8  0.00602436
  9  3.98928
  10  14.4622
  11  7.73504e-07
  12  2.69853
  13  0.000961162
  14  2.61631
  15  0.00334644
  16  0.408363
  17  14.5808
  18  9.58253e-06
  19  0.0121646
  20  5.44627
  21  5.80266
  22  3.57585
  23  25.1905
  24  19.5211
  25  0.357055
  26  7.06484
  27  1.80128
  28  1.42781
  29  0.0084653
  30  0.125757
  31  0.130649
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 15206.6902114

Extracting fit parameters...

4FGL J0929.3+5014
   Spectrum: PowerLaw
366    Prefactor:  7.649e-08  3.346e-03  0.000e+00  1.000e+06 ( 1.000e-13)
367        Index:  2.125e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
368        Scale:  1.474e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
714    Prefactor:  1.080e+00  1.306e-01  0.000e+00  1.000e+01 ( 1.000e+00)
715        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
716        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
713   Normalization:  1.062e+00  1.258e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 142.327 50.235
Photon Flux Upper Limit: 4.04167776962e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00306196022703 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18864188/likelihoodResults_709516801_710121601_4FGL_J0929.3+5014_weekly_bin778.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15206.7141241
delta logL = -0.0239127271143

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15206.2738715
delta logL = 0.416339921803

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18989       1.0000          .0000       .10000E+07
     2 'Index     '    4.0012       1.0000          .0000       10.000    
     3 'Normalizat'    1.0262       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1027       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15206.27     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      263 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19011        1.8986        .11959E-02** at limit **
   2  Index         4.0009        1.7582        .13026        .33857E-03
   3  Normalizat    1.0262        .17866E-01    .42564E-01    .32116E-04
   4  Prefactor     1.1027        .19834E-01    .64406E-01    .25183E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.190114
  Index      = 4.00092
  Normalizat = 1.0262
  Prefactor  = 1.10268
 **********
 **   18 **HESSE 
 **********

 FCN=   15206.27     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      296 TOTAL
                     EDM=   .34E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19011        11.985        .57524E-05   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.0009        7.0004        .76624E-02   -.20117    
   3  Normalizat    1.0262        .10335        .26620E-03   -.92158    
   4  Prefactor     1.1027        .11311        .28488E-03   -.89381    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.41721e-06
Minuit parameter uncertainties:
  1  3.01895
  2  6.69019
  3  0.103366
  4  0.113132
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15206.2738712
delta logL = 0.416340166585

Extracting fit parameters...

4FGL J0929.3+5014
   Spectrum: PowerLaw
366    Prefactor:  1.901e-01  3.019e+00  0.000e+00  1.000e+06 ( 1.000e-13)
367        Index:  4.001e+00  6.690e+00  0.000e+00  1.000e+01 (-1.000e+00)
368        Scale:  1.474e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
714    Prefactor:  1.103e+00  1.131e-01  0.000e+00  1.000e+01 ( 1.000e+00)
715        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
716        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
713   Normalization:  1.026e+00  1.034e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 142.327 50.235

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/18864188/cmap_HighResolution_709516801_710121601_4FGL_J0929.3+5014_weekly_bin778.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.06e-03', job_status='DONE', photon_flux_upper_limit='4.04e-08', time_completed='2023-07-10 09:02:08.556750', job_id='18864188', GAL2='1.10', fit_tolerance='1e-08', EG2='1.03', EG='1.06', time_epoch_completed='1689004928.56', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='4.16e-01', ts2='0.92', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='778' AND source_name='4FGL J0929.3+5014' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul 10 09:02:08 PDT 2023

e GAL_V02
Working on...
/lscratch/kocevski/18865484/ft1_filtered_4FGL_J0929.3+5014_weekly_bin778.fits.....................!
real 51.03
user 49.84
sys 0.70

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18865484/ft1_filtered_4FGL_J0929.3+5014_weekly_bin778.fits', '/lscratch/kocevski/18865484/ft2_4FGL_J0929.3+5014_weekly_bin778.fits', expMap='/lscratch/kocevski/18865484/expmap_709516801_710121601_4FGL_J0929.3+5014_weekly_bin778.fits', expCube='/lscratch/kocevski/18865484/ltcube_709516801_710121601_4FGL_J0929.3+5014_weekly_bin778.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18865484/Model_4FGL_J0929.3+5014_weekly_bin778.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0929.3+5014'

4FGL J0929.3+5014
   Spectrum: PowerLaw
366    Prefactor:  5.632e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
367        Index:  2.125e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
368        Scale:  1.474e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18865484/ft1_filtered_4FGL_J0929.3+5014_weekly_bin778.fits
Spacecraft file(s): /lscratch/kocevski/18865484/ft2_4FGL_J0929.3+5014_weekly_bin778.fits
Exposure map: /lscratch/kocevski/18865484/expmap_709516801_710121601_4FGL_J0929.3+5014_weekly_bin778.fits
Exposure cube: /lscratch/kocevski/18865484/ltcube_709516801_710121601_4FGL_J0929.3+5014_weekly_bin778.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18865484/Model_4FGL_J0929.3+5014_weekly_bin778.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 15206.8147147

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 15206.690708

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96313       1.0000          .0000       .10000E+07
     2 'Prefactor '    6.3627       1.0000          .0000       .10000E+07
     3 'Prefactor '    7.3327       1.0000          .0000       .10000E+07
     4 'norm      '    4.1421       1.0000          .0000       .10000E+07
     5 'norm      '    1.7734       1.0000          .0000       .10000E+07
     6 'Prefactor '    8.8974       1.0000          .0000       .10000E+07
     7 'Prefactor '    .48406E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    .56481E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    11.080       1.0000          .0000       .10000E+07
    10 'Prefactor '    1.4825       1.0000          .0000       .10000E+07
    11 'norm      '    .94180E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    2.0449       1.0000          .0000       .10000E+07
    13 'norm      '    .14362E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    6.8005       1.0000          .0000       .10000E+07
    15 'Prefactor '    .20226E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .55373E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    13.248       1.0000          .0000       .10000E+07
    18 'norm      '    .13440E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    .22561E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    6.1312       1.0000          .0000       .10000E+07
    21 'Prefactor '    14.349       1.0000          .0000       .10000E+07
    22 'norm      '    3.3490       1.0000          .0000       .10000E+07
    23 'Prefactor '    21.149       1.0000          .0000       .10000E+07
    24 'Prefactor '    17.246       1.0000          .0000       .10000E+07
    25 'norm      '    1.2968       1.0000          .0000       .10000E+07
    26 'norm      '    7.5842       1.0000          .0000       .10000E+07
    27 'Prefactor '    .35945       1.0000          .0000       .10000E+07
    28 'norm      '    3.1201       1.0000          .0000       .10000E+07
    29 'Prefactor '    .11948E-02   1.0000          .0000       .10000E+07
    30 'Normalizat'    1.0612       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0801       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15206.69     FROM MIGRAD    STATUS=CONVERGED    240 CALLS     2443 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .95876        5.2133       -.29664E-06   -.17071E-02
   2  Prefactor     6.3947        7.0755       -.36967E-07    .53167E-03
   3  Prefactor     7.3300        4.3423       -.62827E-07   -.79519E-03
   4  norm          4.1367        4.1305       -.99796E-07    .38322E-03
   5  norm          1.7760        3.8090        .18784E-06    .29245E-03
   6  Prefactor     8.8325        8.4373        .51714E-07   -.10634E-04
   7  Prefactor     .16764E-07    7.3846       -.15517E-07** at limit **
   8  Prefactor     .58731E-06    11.722        .47352E-06** at limit **
   9  Prefactor     11.063        3.9661        .48308E-08    .66389E-03
  10  Prefactor     1.5069        34.009       -.78017E-06   -.28004E-02
  11  norm           .0000        .79680        .24105E-06** at limit **
  12  Prefactor     2.0454        2.1881       -.57657E-07    .91776E-03
  13  norm          .20817E-07    10.952       -.72033E-07** at limit **
  14  Prefactor     6.8069        2.5954       -.42772E-07    .30866E-02
  15  Prefactor     .76494E-07    37.301       -.27306E-05** at limit **
  16  Prefactor     .56396E-01    8.5298        .12550E-05** at limit **
  17  Prefactor     13.185        6.7502        .34139E-07   -.12192E-01
  18  norm           .0000        2.9441        .34821E-06** at limit **
  19  Prefactor     .38569E-06    94.765       -.16487E-05** at limit **
  20  Prefactor     6.0886        5.3985       -.84392E-08   -.12965E-02
  21  Prefactor     14.351        5.5015       -.12247E-06   -.19490E-02
  22  norm          3.3351        3.5146        .22963E-06    .51210E-03
  23  Prefactor     20.542        17.498       -.94019E-06    .62309E-01
  24  Prefactor     17.141        2.2256       -.13221E-06    .29814E-02
  25  norm          1.2969        .35425        .26570E-07    .48898E-02
  26  norm          7.5930        7.0451        .34115E-07    .26858E-03
  27  Prefactor     .37129        7.1862        .91966E-06   -.62640E-03
  28  norm          3.1174        1.4233        .14331E-07    .25546E-03
  29  Prefactor     .10648E-05    12.242       -.13114E-05** at limit **
  30  Normalizat    1.0617        .14530       -.37394E-05   -.13363E-03
  31  Prefactor     1.0800        .15419        .16319E-05   -.11254E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.958759
  Prefactor  = 6.39474
  Prefactor  = 7.32999
  norm       = 4.13671
  norm       = 1.77597
  Prefactor  = 8.83252
  Prefactor  = 1.67644e-08
  Prefactor  = 5.87308e-07
  Prefactor  = 11.0632
  Prefactor  = 1.50694
  norm       = 0
  Prefactor  = 2.04543
  norm       = 2.08167e-08
  Prefactor  = 6.80686
  Prefactor  = 7.64944e-08
  Prefactor  = 0.0563957
  Prefactor  = 13.1852
  norm       = 0
  Prefactor  = 3.85691e-07
  Prefactor  = 6.08855
  Prefactor  = 14.3507
  norm       = 3.33508
  Prefactor  = 20.5422
  Prefactor  = 17.1406
  norm       = 1.2969
  norm       = 7.59299
  Prefactor  = 0.371294
  norm       = 3.11737
  Prefactor  = 1.06476e-06
  Normalizat = 1.06173
  Prefactor  = 1.08004
 **********
 **   18 **HESSE 
 **********

 FCN=   15206.69     FROM HESSE     STATUS=OK           718 CALLS     3161 TOTAL
                     EDM=   .72E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .95876        5.2546        .42456E-03   -1.5688    
   2  Prefactor     6.3947        7.0867        .39768E-03   -1.5657    
   3  Prefactor     7.3300        4.3521        .37016E-03   -1.5654    
   4  norm          4.1367        4.1555        .49502E-03   -1.5667    
   5  norm          1.7760        3.8537        .78591E-03   -1.5681    
   6  Prefactor     8.8325        8.4163        .33578E-03   -1.5649    
   7  Prefactor     .16764E-07    8.3962        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .58731E-06    15.449        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.063        3.9893        .30073E-03   -1.5641    
  10  Prefactor     1.5069        34.699        .88098E-03   -1.5683    
  11  norm           .0000        .15686        .25563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.0454        2.6985        .72275E-03   -1.5679    
  13  norm          .20817E-07    11.098        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.8069        2.6163        .38452E-03   -1.5656    
  15  Prefactor     .76494E-07    36.593        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .56396E-01    .73924        .56330E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.185        14.581        .27494E-03   -1.5635    
  18  norm           .0000        2.9478        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .38569E-06    95.907        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.0886        5.4463        .40522E-03   -1.5659    
  21  Prefactor     14.351        5.8027        .26416E-03   -1.5632    
  22  norm          3.3351        3.5758        .55278E-03   -1.5671    
  23  Prefactor     20.542        25.190        .21751E-03   -1.5617    
  24  Prefactor     17.141        19.521        .24090E-03   -1.5625    
  25  norm          1.2969        .35705        .83608E-03   -1.5685    
  26  norm          7.5930        7.0648        .36391E-03   -1.5653    
  27  Prefactor     .37129        2.1847        .53626E-02   -1.5696    
  28  norm          3.1174        1.4278        .57375E-03   -1.5673    
  29  Prefactor     .10648E-05    16.826        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0617        .12572        .59362E-01   -.90990    
  31  Prefactor     1.0800        .13061        .64993E-01   -.90107    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.15552e-07
Minuit parameter uncertainties:
  1  4.48904
  2  7.08667
  3  4.35207
  4  4.15553
  5  3.85374
  6  8.41628
  7  0.000750344
  8  0.00602436
  9  3.98928
  10  14.4622
  11  7.73504e-07
  12  2.69853
  13  0.000961162
  14  2.61631
  15  0.00334644
  16  0.408363
  17  14.5808
  18  9.58253e-06
  19  0.0121646
  20  5.44627
  21  5.80266
  22  3.57585
  23  25.1905
  24  19.5211
  25  0.357055
  26  7.06484
  27  1.80128
  28  1.42781
  29  0.0084653
  30  0.125757
  31  0.130649
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 15206.6902114

Extracting fit parameters...

4FGL J0929.3+5014
   Spectrum: PowerLaw
366    Prefactor:  7.649e-08  3.346e-03  0.000e+00  1.000e+06 ( 1.000e-13)
367        Index:  2.125e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
368        Scale:  1.474e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
714    Prefactor:  1.080e+00  1.306e-01  0.000e+00  1.000e+01 ( 1.000e+00)
715        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
716        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
713   Normalization:  1.062e+00  1.258e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 142.327 50.235
Photon Flux Upper Limit: 4.04167776962e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00306196022703 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18865484/likelihoodResults_709516801_710121601_4FGL_J0929.3+5014_weekly_bin778.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15206.7141241
delta logL = -0.0239127271143

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15206.2738715
delta logL = 0.416339921803

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18989       1.0000          .0000       .10000E+07
     2 'Index     '    4.0012       1.0000          .0000       10.000    
     3 'Normalizat'    1.0262       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1027       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15206.27     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      263 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19011        1.8986        .11959E-02** at limit **
   2  Index         4.0009        1.7582        .13026        .33857E-03
   3  Normalizat    1.0262        .17866E-01    .42564E-01    .32116E-04
   4  Prefactor     1.1027        .19834E-01    .64406E-01    .25183E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.190114
  Index      = 4.00092
  Normalizat = 1.0262
  Prefactor  = 1.10268
 **********
 **   18 **HESSE 
 **********

 FCN=   15206.27     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      296 TOTAL
                     EDM=   .34E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19011        11.985        .57524E-05   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.0009        7.0004        .76624E-02   -.20117    
   3  Normalizat    1.0262        .10335        .26620E-03   -.92158    
   4  Prefactor     1.1027        .11311        .28488E-03   -.89381    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.41721e-06
Minuit parameter uncertainties:
  1  3.01895
  2  6.69019
  3  0.103366
  4  0.113132
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15206.2738712
delta logL = 0.416340166585

Extracting fit parameters...

4FGL J0929.3+5014
   Spectrum: PowerLaw
366    Prefactor:  1.901e-01  3.019e+00  0.000e+00  1.000e+06 ( 1.000e-13)
367        Index:  4.001e+00  6.690e+00  0.000e+00  1.000e+01 (-1.000e+00)
368        Scale:  1.474e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
714    Prefactor:  1.103e+00  1.131e-01  0.000e+00  1.000e+01 ( 1.000e+00)
715        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
716        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
713   Normalization:  1.026e+00  1.034e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 142.327 50.235

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/18865484/cmap_HighResolution_709516801_710121601_4FGL_J0929.3+5014_weekly_bin778.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.06e-03', job_status='DONE', photon_flux_upper_limit='4.04e-08', time_completed='2023-07-10 09:06:58.202775', job_id='18865484', GAL2='1.10', fit_tolerance='1e-08', EG2='1.03', EG='1.06', time_epoch_completed='1689005218.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='4.16e-01', ts2='0.92', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='778' AND source_name='4FGL J0929.3+5014' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul 10 09:06:58 PDT 2023

