/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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)


Waiting 126 seconds before starting...
Proceeding.

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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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).

number of points = 7657
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0804.5+0414_daily_bin594
RA = 121.133, Dec = 4.2393
tmin = 393292801, tmax = 393552001
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='98991', job_status='RUN', time_executed='2021-08-29 00:27:58.285643', time_epoch_executed='1630222078.29' WHERE source_name='4FGL J0804.5+0414' and cadence='daily' and bin_id='594'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/98991

Creating custom pfile directory:
/scratch/kocevski/98991/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=393292801.0 && nMetStart<393552001.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=393292801.0 && nMetStart<393552001.0' /Data/Flight/Level1/LPA

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/98991/ft1_4FGL_J0804.5+0414_daily_bin594.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=393292801.0 && nMetStart<393552001.0' /Data/Flight/Level1/LPA

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/98991/ft2_4FGL_J0804.5+0414_daily_bin594.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/98991/ft1_4FGL_J0804.5+0414_daily_bin594.fits outfile=/scratch/kocevski/98991/ft1_filteredMKT_4FGL_J0804.5+0414_daily_bin594.fits ra=121.133 dec=4.2393 rad=12.0 tmin=393292801.0 tmax=393552001.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.12
user 4.40
sys 0.69

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/98991/ft2_4FGL_J0804.5+0414_daily_bin594.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/98991/ft2_4FGL_J0804.5+0414_daily_bin594.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/98991/ft1_filteredMKT_4FGL_J0804.5+0414_daily_bin594.fits evtable="EVENTS" outfile="/scratch/kocevski/98991/ft1_filtered_4FGL_J0804.5+0414_daily_bin594.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('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.13
user 0.35
sys 0.72

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/98991/ft1_filtered_4FGL_J0804.5+0414_daily_bin594.fits" evtable="EVENTS" scfile=/scratch/kocevski/98991/ft2_4FGL_J0804.5+0414_daily_bin594.fits sctable="SC_DATA" outfile=/scratch/kocevski/98991/ltcube_393292801_393552001_4FGL_J0804.5+0414_daily_bin594.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 /scratch/kocevski/98991/ft2_4FGL_J0804.5+0414_daily_bin594.fits
.....................!
real 12.79
user 11.90
sys 0.84

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/98991/ft1_filtered_4FGL_J0804.5+0414_daily_bin594.fits evtable="EVENTS" scfile=/scratch/kocevski/98991/ft2_4FGL_J0804.5+0414_daily_bin594.fits sctable="SC_DATA" expcube=/scratch/kocevski/98991/ltcube_393292801_393552001_4FGL_J0804.5+0414_daily_bin594.fits outfile=/scratch/kocevski/98991/expmap_393292801_393552001_4FGL_J0804.5+0414_daily_bin594.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 /scratch/kocevski/98991/ltcube_393292801_393552001_4FGL_J0804.5+0414_daily_bin594.fits
.....................!
real 193.67
user 187.05
sys 6.19

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
Extended source Monoceros in ROI with RadialGaussian spatial model.
Added 167 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0804.5+0414 @ 121.133 4.2393

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/98991/ft1_filtered_4FGL_J0804.5+0414_daily_bin594.fits scfile=/scratch/kocevski/98991/ft2_4FGL_J0804.5+0414_daily_bin594.fits outfile=/scratch/kocevski/98991/cmap_393292801_393552001_4FGL_J0804.5+0414_daily_bin594.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=121.133 yref=4.2393 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 1.07
user 0.37
sys 0.68

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/98991/ft1_filtered_4FGL_J0804.5+0414_daily_bin594.fits scfile=/scratch/kocevski/98991/ft2_4FGL_J0804.5+0414_daily_bin594.fits outfile=/scratch/kocevski/98991/cmap_HighResolution_393292801_393552001_4FGL_J0804.5+0414_daily_bin594.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=121.133 yref=4.2393 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 1.08
user 0.39
sys 0.68

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/98991/ft1_filtered_4FGL_J0804.5+0414_daily_bin594.fits evtable="EVENTS" scfile=/scratch/kocevski/98991/ft2_4FGL_J0804.5+0414_daily_bin594.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/98991/Model_4FGL_J0804.5+0414_daily_bin594.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
adding source Monoceros
Working on...
/scratch/kocevski/98991/ft1_filtered_4FGL_J0804.5+0414_daily_bin594.fits.....................!
real 73.44
user 71.15
sys 1.76

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/98991/ft1_filtered_4FGL_J0804.5+0414_daily_bin594.fits', '/scratch/kocevski/98991/ft2_4FGL_J0804.5+0414_daily_bin594.fits', expMap='/scratch/kocevski/98991/expmap_393292801_393552001_4FGL_J0804.5+0414_daily_bin594.fits', expCube='/scratch/kocevski/98991/ltcube_393292801_393552001_4FGL_J0804.5+0414_daily_bin594.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/98991/Model_4FGL_J0804.5+0414_daily_bin594.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0804.5+0414'

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  7.193e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.491e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  8.390e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/98991/ft1_filtered_4FGL_J0804.5+0414_daily_bin594.fits
Spacecraft file(s): /scratch/kocevski/98991/ft2_4FGL_J0804.5+0414_daily_bin594.fits
Exposure map: /scratch/kocevski/98991/expmap_393292801_393552001_4FGL_J0804.5+0414_daily_bin594.fits
Exposure cube: /scratch/kocevski/98991/ltcube_393292801_393552001_4FGL_J0804.5+0414_daily_bin594.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/98991/Model_4FGL_J0804.5+0414_daily_bin594.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) = 5831.03088684

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6448       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.7073       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.2638       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.0241       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.587       1.0000         .10000E-03   10000.    
    10 'Prefactor '    238.53       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.6297       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.9681       1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.9742       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .38890       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.892       1.0000         .10000E-03   10000.    
    19 'norm      '    .99375       1.0000         .10000E-03   10000.    
    20 'norm      '    4.2140       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .90711       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97725       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5831.016     FROM MIGRAD    STATUS=CONVERGED    142 CALLS     2153 TOTAL
                     EDM=   .14E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6449        2.4188        .30159E-06   -.37519E-04
   2  Prefactor     .10000E-03    13.756        .19681E-05** at limit **
   3  Prefactor     6.7070        7.4284        .26850E-07   -.16679E-04
   4  Prefactor     .10000E-03    84.192       -.24594E-05** at limit **
   5  norm          .10000E-03    1.4329        .31373E-06** at limit **
   6  Prefactor     7.3108        31.452       -.16326E-05   -.22023E-04
   7  Prefactor     2.0232        2.7991       -.18300E-06    .44892E-05
   8  norm          .10000E-03    14.424       -.26359E-05** at limit **
   9  Prefactor     31.591        13.041        .36717E-06    .13355E-02
  10  Prefactor     238.51        3.0059        .12584E-07    .47714E-02
  11  Prefactor     .10000E-03    2.4488       -.16687E-06** at limit **
  12  Prefactor     4.6377        10.829        .65965E-06   -.57675E-03
  13  norm          .10000E-03    3.4786       -.12000E-06** at limit **
  14  norm          2.9676        2.6242       -.21750E-06    .14533E-04
  15  norm          .10000E-03    7.9106        .25345E-06** at limit **
  16  norm          3.9743        4.6392        .16899E-06    .15137E-04
  17  Prefactor     .10006E-03    2295.9        .40252E-04** at limit **
  18  Prefactor     10.898        10.594        .28533E-06   -.34598E-04
  19  norm          .99367        1.1655       -.98814E-07    .21045E-04
  20  norm          4.2132        6.6789        .14015E-06    .60494E-05
  21  Normalizat    .90762        .22569       -.58432E-05    .10583E-04
  22  Prefactor     .97704        .14845        .21867E-05    .24287E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.64486
  Prefactor  = 0.0001
  Prefactor  = 6.70699
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.31081
  Prefactor  = 2.02316
  norm       = 0.0001
  Prefactor  = 31.5914
  Prefactor  = 238.511
  Prefactor  = 0.0001
  Prefactor  = 4.63773
  norm       = 0.0001
  norm       = 2.96762
  norm       = 0.0001
  norm       = 3.97428
  Prefactor  = 0.000100065
  Prefactor  = 10.898
  norm       = 0.993673
  norm       = 4.21319
  Normalizat = 0.907617
  Prefactor  = 0.977042
 **********
 **   18 **HESSE 
 **********

 FCN=   5831.016     FROM HESSE     STATUS=OK           402 CALLS     2555 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6449        2.4110        .52900E-02   -1.5326    
   2  Prefactor     .10000E-03    13.760        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.7070        7.4244        .38734E-02   -1.5190    
   4  Prefactor     .10000E-03    83.242        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .90327        .28597E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.3108        31.535        .37206E-02   -1.5167    
   7  Prefactor     2.0232        2.8522        .72710E-02   -1.5423    
   8  norm          .10000E-03    14.368        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     31.591        16.515        .17823E-02   -1.4583    
  10  Prefactor     238.51        159.20        .65535E-03   -1.2607    
  11  Prefactor     .10000E-03    2.4469        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.6377        17.510        .46763E-02   -1.5277    
  13  norm          .10000E-03    3.4733        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.9676        2.6321        .58922E-02   -1.5363    
  15  norm          .10000E-03    7.9148        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.9743        4.6712        .50581E-02   -1.5309    
  17  Prefactor     .10006E-03    37.395        .13427       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.898        10.626        .30349E-02   -1.5048    
  19  norm          .99367        1.2042        .13144E-01   -1.5509    
  20  norm          4.2132        6.6974        .49076E-02   -1.5297    
  21  Normalizat    .90762        .20360        .68718E-01   -.96193    
  22  Prefactor     .97704        .12939        .45982E-01   -.93499    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.52821e-07
Minuit parameter uncertainties:
  1  2.41103
  2  9.58129e-06
  3  7.42545
  4  6.38159e-05
  5  1.55576e-07
  6  30.3942
  7  2.85235
  8  5.165e-06
  9  16.5173
  10  159.489
  11  5.56238e-07
  12  17.5291
  13  1.66171e-07
  14  2.63224
  15  1.15307e-06
  16  4.67165
  17  0.00311039
  18  10.628
  19  1.20425
  20  6.69859
  21  0.203777
  22  0.129431
Done.

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

Extracting fit parameters...

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  4.638e+00  1.753e+01  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.491e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  8.390e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  9.770e-01  1.294e-01  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
549   Normalization:  9.076e-01  2.038e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 121.133 4.239
Photon Flux Upper Limit: 8.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/98991/likelihoodResults_393292801_393552001_4FGL_J0804.5+0414_daily_bin594.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): 0
logL (Free Index) = 5830.84460867
delta logL = 0.171156119492

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5830.84432107
delta logL = 0.171443725498

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.794       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7343       1.0000          .0000       10.000    
     3 'Normalizat'    .91144       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97388       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5830.844     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      241 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.896        32.288        .30487E-02    .10680E-04
   2  Index         1.7408        1.2104        .27585       -.43922E-04
   3  Normalizat    .91134        .18752        .68579E-01    .97411E-05
   4  Prefactor     .97390        .12433        .45940E-01    .26429E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.8962
  Index      = 1.74081
  Normalizat = 0.911342
  Prefactor  = 0.973896
 **********
 **   18 **HESSE 
 **********

 FCN=   5830.844     FROM HESSE     STATUS=OK            33 CALLS      274 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.896        20.990        .12195E-03   -1.5048    
   2  Index         1.7408        .97919        .15571E-01   -.71001    
   3  Normalizat    .91134        .21179        .30340E-03   -.96063    
   4  Prefactor     .97390        .14069        .19426E-03   -.93605    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.02586e-11
Minuit parameter uncertainties:
  1  21.0042
  2  0.990411
  3  0.211987
  4  0.14074
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/98991': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5830.84429294
delta logL = 0.171471855954

Extracting fit parameters...

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  1.090e+01  2.100e+01  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  1.741e+00  9.904e-01  0.000e+00  1.000e+01 (-1.000e+00)
283        Scale:  8.390e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  9.739e-01  1.407e-01  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
549   Normalization:  9.113e-01  2.120e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
Ra Dec: 121.133 4.239

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/98991/cmap_HighResolution_393292801_393552001_4FGL_J0804.5+0414_daily_bin594.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/98991

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.55e-03', job_status='DONE', photon_flux_upper_limit='8.43e-08', time_completed='2021-08-29 00:38:28.258632', job_id='98991', GAL2='0.97', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1630222708.26', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.71e-01', ts2='0.43', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='594' AND source_name='4FGL J0804.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 00:38:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 98991: <4FGL_J0804.5+0414_daily_bin594> in cluster <slac> Done

Job <4FGL_J0804.5+0414_daily_bin594> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 29 00:25:27 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 00:25:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 00:25:29 2021
Terminated at Sun Aug 29 00:38:29 2021
Results reported at Sun Aug 29 00:38:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0804.5+0414_daily_bin594 121.133 4.2393 393292801 393552001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0804.5+0414 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   634.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            782 sec.

The output (if any) is above this job summary.

