/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 154 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 = 7458
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0804.5+0414_daily_bin628
RA = 121.133, Dec = 4.2393
tmin = 402105601, tmax = 402364801
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='99040', job_status='RUN', time_executed='2021-08-29 00:29:09.616634', time_epoch_executed='1630222149.62' WHERE source_name='4FGL J0804.5+0414' and cadence='daily' and bin_id='628'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/99040

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/99040/ft1_4FGL_J0804.5+0414_daily_bin628.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/99040/ft2_4FGL_J0804.5+0414_daily_bin628.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/99040/ft1_4FGL_J0804.5+0414_daily_bin628.fits outfile=/scratch/kocevski/99040/ft1_filteredMKT_4FGL_J0804.5+0414_daily_bin628.fits ra=121.133 dec=4.2393 rad=12.0 tmin=402105601.0 tmax=402364801.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 6.79
user 3.30
sys 3.45

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/99040/ft2_4FGL_J0804.5+0414_daily_bin628.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/99040/ft1_filteredMKT_4FGL_J0804.5+0414_daily_bin628.fits evtable="EVENTS" outfile="/scratch/kocevski/99040/ft1_filtered_4FGL_J0804.5+0414_daily_bin628.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 3.76
user 0.33
sys 3.40

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/99040/ft1_filtered_4FGL_J0804.5+0414_daily_bin628.fits" evtable="EVENTS" scfile=/scratch/kocevski/99040/ft2_4FGL_J0804.5+0414_daily_bin628.fits sctable="SC_DATA" outfile=/scratch/kocevski/99040/ltcube_402105601_402364801_4FGL_J0804.5+0414_daily_bin628.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/99040/ft2_4FGL_J0804.5+0414_daily_bin628.fits
.....................!
real 15.85
user 11.88
sys 3.93

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/99040/ft1_filtered_4FGL_J0804.5+0414_daily_bin628.fits evtable="EVENTS" scfile=/scratch/kocevski/99040/ft2_4FGL_J0804.5+0414_daily_bin628.fits sctable="SC_DATA" expcube=/scratch/kocevski/99040/ltcube_402105601_402364801_4FGL_J0804.5+0414_daily_bin628.fits outfile=/scratch/kocevski/99040/expmap_402105601_402364801_4FGL_J0804.5+0414_daily_bin628.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/99040/ltcube_402105601_402364801_4FGL_J0804.5+0414_daily_bin628.fits
.....................!
real 194.68
user 184.90
sys 9.16

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/99040/ft1_filtered_4FGL_J0804.5+0414_daily_bin628.fits scfile=/scratch/kocevski/99040/ft2_4FGL_J0804.5+0414_daily_bin628.fits outfile=/scratch/kocevski/99040/cmap_402105601_402364801_4FGL_J0804.5+0414_daily_bin628.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 3.78
user 0.36
sys 3.34

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/99040/ft1_filtered_4FGL_J0804.5+0414_daily_bin628.fits scfile=/scratch/kocevski/99040/ft2_4FGL_J0804.5+0414_daily_bin628.fits outfile=/scratch/kocevski/99040/cmap_HighResolution_402105601_402364801_4FGL_J0804.5+0414_daily_bin628.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 3.75
user 0.39
sys 3.33

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/99040/ft1_filtered_4FGL_J0804.5+0414_daily_bin628.fits evtable="EVENTS" scfile=/scratch/kocevski/99040/ft2_4FGL_J0804.5+0414_daily_bin628.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/99040/Model_4FGL_J0804.5+0414_daily_bin628.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/99040/ft1_filtered_4FGL_J0804.5+0414_daily_bin628.fits.....................!
real 85.32
user 79.52
sys 5.42

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/99040/ft1_filtered_4FGL_J0804.5+0414_daily_bin628.fits', '/scratch/kocevski/99040/ft2_4FGL_J0804.5+0414_daily_bin628.fits', expMap='/scratch/kocevski/99040/expmap_402105601_402364801_4FGL_J0804.5+0414_daily_bin628.fits', expCube='/scratch/kocevski/99040/ltcube_402105601_402364801_4FGL_J0804.5+0414_daily_bin628.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/99040/Model_4FGL_J0804.5+0414_daily_bin628.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/99040/ft1_filtered_4FGL_J0804.5+0414_daily_bin628.fits
Spacecraft file(s): /scratch/kocevski/99040/ft2_4FGL_J0804.5+0414_daily_bin628.fits
Exposure map: /scratch/kocevski/99040/expmap_402105601_402364801_4FGL_J0804.5+0414_daily_bin628.fits
Exposure cube: /scratch/kocevski/99040/ltcube_402105601_402364801_4FGL_J0804.5+0414_daily_bin628.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/99040/Model_4FGL_J0804.5+0414_daily_bin628.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) = 6769.96335264

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8026       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11793E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.7514       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.2929       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10239E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .94791E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.144       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.0548       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    12.565       1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.1941       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .77362E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10079E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4092       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .92853       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=   6769.895     FROM MIGRAD    STATUS=CONVERGED    535 CALLS     2136 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8022        2.0795        .77830E-02    .77905E-03
   2  Prefactor     .10000E-03    27.412        .90712E-02** at limit **
   3  Prefactor     .10000E-03    3.4398        .90712E-02** at limit **
   4  Prefactor     .10000E-03    29.083        .90712E-02** at limit **
   5  norm          2.7510        2.1964        .61355E-02    .60187E-03
   6  Prefactor     7.2968        15.681        .37131E-02    .10992E-02
   7  Prefactor     .10000E-03    2.0090        .38383E-01** at limit **
   8  norm          .10000E-03    13.485        .11015    ** at limit **
   9  Prefactor     15.147        10.973        .25730E-02   -.42523E-04
  10  Prefactor     .10000E-03    69.103        .90712E-02** at limit **
  11  Prefactor     7.0548        6.3163        .37758E-02    .17803E-04
  12  Prefactor     .10000E-03    7.6113        .90712E-02** at limit **
  13  norm          12.552        12.185        .28251E-02   -.65045E-03
  14  norm          .10000E-03    1.5394        .90712E-02** at limit **
  15  norm          4.1978        10.241        .49196E-02    .24130E-02
  16  norm          .10000E-03    1.0163        .90712E-02** at limit **
  17  Prefactor     .10001E-03    26.932        .12466    ** at limit **
  18  Prefactor     .10000E-03    4.8453        .90712E-02** at limit **
  19  norm          .10000E-03    .32903        .22929E-01** at limit **
  20  norm          .10000E-03    12.960        .90712E-02** at limit **
  21  Normalizat    1.4092        .20658        .63174E-01    .14176E-03
  22  Prefactor     .92864        .13285        .45368E-01    .13576E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.80219
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.75101
  Prefactor  = 7.29678
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.1471
  Prefactor  = 0.0001
  Prefactor  = 7.05478
  Prefactor  = 0.0001
  norm       = 12.5516
  norm       = 0.0001
  norm       = 4.19785
  norm       = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.40924
  Prefactor  = 0.928637
 **********
 **   18 **HESSE 
 **********

 FCN=   6769.895     FROM HESSE     STATUS=OK           358 CALLS     2494 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8022        2.0699        .12044E-03   -1.5439    
   2  Prefactor     .10000E-03    27.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.4552        .14902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    29.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.7510        2.1875        .10244E-03   -1.5376    
   6  Prefactor     7.2968        15.680        .14853E-03   -1.5168    
   7  Prefactor     .10000E-03    3.9655        .22318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    16.290        .94544E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.147        10.958        .10292E-03   -1.4929    
  10  Prefactor     .10000E-03    69.124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.0548        6.3135        .15103E-03   -1.5177    
  12  Prefactor     .10000E-03    7.6181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          12.552        12.181        .11301E-03   -1.4999    
  14  norm          .10000E-03    1.5878        .19925E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.1978        10.221        .98392E-03   -1.5298    
  16  norm          .10000E-03    1.0182        .80995E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    29.282        .11811       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.8517        .17687E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .41941        .91649E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    13.445        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.4092        .23936        .27942E-03   -.80362    
  22  Prefactor     .92864        .15532        .21523E-03   -.95147    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.58938e-09
Minuit parameter uncertainties:
  1  2.07001
  2  0.000173458
  3  1.19152e-07
  4  0.000209807
  5  2.1876
  6  15.689
  7  2.91339e-07
  8  8.63573e-05
  9  10.9596
  10  0.000190162
  11  6.31407
  12  3.67598e-06
  13  12.1832
  14  7.27288e-08
  15  10.2249
  16  1.32471e-07
  17  0.000957326
  18  1.6688e-06
  19  2.67173e-07
  20  7.47734e-06
  21  0.239548
  22  0.155396
Done.

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

Extracting fit parameters...

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  3.676e-06  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.286e-01  1.554e-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:  1.409e+00  2.395e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/99040/likelihoodResults_402105601_402364801_4FGL_J0804.5+0414_daily_bin628.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) = 6769.89584916
delta logL = -0.000623194673608

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6769.89522592
delta logL = 4.54565451946e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4725       1.0000          .0000       10.000    
     3 'Normalizat'    1.4093       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92860       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6769.895     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      256 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    37.063        .18142E-01** at limit **
   2  Index         1.8610        8.4478        .50000        .37633E-06
   3  Normalizat    1.4092        .10349E-01    .27942E-03   -.13279E-03
   4  Prefactor     .92864        .66760E-02    .21523E-03   -.17014E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.86098
  Normalizat = 1.40924
  Prefactor  = 0.928637
 **********
 **   18 **HESSE 
 **********

 FCN=   6769.895     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      285 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    280.35        .25549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8610        5.8413        .50000       -.67873    
   3  Normalizat    1.4092        .29329E-01    .55883E-04   -.80362    
   4  Prefactor     .92864        .18919E-01    .86093E-05   -.95147    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.13668e-09
Minuit parameter uncertainties:
  1  9.37076e-05
  2  980.56
  3  0.0293289
  4  0.0189189
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/99040': 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): 102
logL (Free Index) = 6769.89522434
delta logL = 1.62027481565e-06

Extracting fit parameters...

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  9.371e-05  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  1.861e+00  9.806e+02  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.286e-01  1.892e-02  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:  1.409e+00  2.933e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 121.133 4.239

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/99040/cmap_HighResolution_402105601_402364801_4FGL_J0804.5+0414_daily_bin628.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.92e-03', job_status='DONE', photon_flux_upper_limit='5.05e-08', time_completed='2021-08-29 00:41:00.201171', job_id='99040', GAL2='0.93', fit_tolerance='1e-08', EG2='1.41', EG='1.41', time_epoch_completed='1630222860.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.62e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='628' AND source_name='4FGL J0804.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 00:41:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0153>
Subject: Job 99040: <4FGL_J0804.5+0414_daily_bin628> in cluster <slac> Done

Job <4FGL_J0804.5+0414_daily_bin628> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 29 00:25:30 2021
Job was executed on host(s) <bullet0153>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 00:25:31 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:31 2021
Terminated at Sun Aug 29 00:41:01 2021
Results reported at Sun Aug 29 00:41:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0804.5+0414_daily_bin628 121.133 4.2393 402105601 402364801 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 :                                   758.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             266.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            931 sec.

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

