/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 164 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 = 7390
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0804.5+0414_daily_bin199
RA = 121.133, Dec = 4.2393
tmin = 290908801, tmax = 291168001
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='93908', job_status='RUN', time_executed='2021-08-29 00:13:55.098170', time_epoch_executed='1630221235.1' WHERE source_name='4FGL J0804.5+0414' and cadence='daily' and bin_id='199'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/93908

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/93908/ft1_4FGL_J0804.5+0414_daily_bin199.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/93908/ft2_4FGL_J0804.5+0414_daily_bin199.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/93908/ft1_4FGL_J0804.5+0414_daily_bin199.fits outfile=/scratch/kocevski/93908/ft1_filteredMKT_4FGL_J0804.5+0414_daily_bin199.fits ra=121.133 dec=4.2393 rad=12.0 tmin=290908801.0 tmax=291168001.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.29
user 3.20
sys 2.05

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/93908/ft1_filtered_4FGL_J0804.5+0414_daily_bin199.fits" evtable="EVENTS" scfile=/scratch/kocevski/93908/ft2_4FGL_J0804.5+0414_daily_bin199.fits sctable="SC_DATA" outfile=/scratch/kocevski/93908/ltcube_290908801_291168001_4FGL_J0804.5+0414_daily_bin199.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/93908/ft2_4FGL_J0804.5+0414_daily_bin199.fits
.....................!
real 13.71
user 11.30
sys 2.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/93908/ft1_filtered_4FGL_J0804.5+0414_daily_bin199.fits evtable="EVENTS" scfile=/scratch/kocevski/93908/ft2_4FGL_J0804.5+0414_daily_bin199.fits sctable="SC_DATA" expcube=/scratch/kocevski/93908/ltcube_290908801_291168001_4FGL_J0804.5+0414_daily_bin199.fits outfile=/scratch/kocevski/93908/expmap_290908801_291168001_4FGL_J0804.5+0414_daily_bin199.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/93908/ltcube_290908801_291168001_4FGL_J0804.5+0414_daily_bin199.fits
.....................!
real 191.68
user 184.93
sys 6.28

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/93908/ft1_filtered_4FGL_J0804.5+0414_daily_bin199.fits scfile=/scratch/kocevski/93908/ft2_4FGL_J0804.5+0414_daily_bin199.fits outfile=/scratch/kocevski/93908/cmap_290908801_291168001_4FGL_J0804.5+0414_daily_bin199.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 2.16
user 0.38
sys 1.76

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/93908/ft1_filtered_4FGL_J0804.5+0414_daily_bin199.fits scfile=/scratch/kocevski/93908/ft2_4FGL_J0804.5+0414_daily_bin199.fits outfile=/scratch/kocevski/93908/cmap_HighResolution_290908801_291168001_4FGL_J0804.5+0414_daily_bin199.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 2.17
user 0.38
sys 1.78

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.3961       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.6357       1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .59140E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    68.408       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.635       1.0000         .10000E-03   10000.    
    13 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    36.631       1.0000         .10000E-03   10000.    
    16 'norm      '    7.4981       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12325E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.2599       1.0000         .10000E-03   10000.    
    20 'norm      '    2.1823       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .92061       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99594       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.

 FCN=   6289.743     FROM MIGRAD    STATUS=CONVERGED    488 CALLS     2404 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .76364        .98429E-07** at limit **
   2  Prefactor     .10000E-03    11.171        .28983E-05** at limit **
   3  Prefactor     .10000E-03    2.3057        .42403E-07** at limit **
   4  Prefactor     .10000E-03    31.658       -.18236E-05** at limit **
   5  norm          1.3961        1.4072       -.69719E-07   -.10738E-03
   6  Prefactor     .10000E-03    13.863       -.94945E-06** at limit **
   7  Prefactor     4.6353        3.4165       -.19381E-06    .25937E-03
   8  norm          .10000E-03    10.197       -.21358E-05** at limit **
   9  Prefactor     .10000E-03    83.863       -.14004E-04** at limit **
  10  Prefactor     68.407        87.563       -.38904E-06    .85231E-05
  11  Prefactor     .10000E-03    5.7652       -.39733E-08** at limit **
  12  Prefactor     29.636        44.399       -.85045E-06    .41127E-04
  13  norm          .10000E-03    6.3995        .38223E-06** at limit **
  14  norm          .10000E-03    .96627        .56071E-07** at limit **
  15  norm          36.614        30.227        .32779E-05    .68681E-04
  16  norm          7.4989        4.8438       -.45374E-07    .37656E-04
  17  Prefactor     .10000E-03    54.974        .14045E-05** at limit **
  18  Prefactor     .10000E-03    4.1204       -.41197E-07** at limit **
  19  norm          2.2601        1.1847        .40494E-08    .11302E-04
  20  norm          2.1832        7.1565       -.27741E-05    .28764E-04
  21  Normalizat    .92040        .21070        .26802E-05    .33176E-04
  22  Prefactor     .99603        .12597       -.63433E-06    .44670E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.39615
  Prefactor  = 0.0001
  Prefactor  = 4.6353
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 68.4073
  Prefactor  = 0.0001
  Prefactor  = 29.6355
  norm       = 0.0001
  norm       = 0.0001
  norm       = 36.614
  norm       = 7.49893
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 2.26009
  norm       = 2.18324
  Normalizat = 0.920404
  Prefactor  = 0.996029
 **********
 **   18 **HESSE 
 **********

 FCN=   6289.743     FROM HESSE     STATUS=OK           340 CALLS     2744 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .78642        .13520E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.3085        .11760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    32.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.3961        1.3903        .90684E-04   -1.5472    
   6  Prefactor     .10000E-03    13.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.6353        3.3890        .11657E-03   -1.5277    
   8  norm          .10000E-03    10.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    80.715        .38330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     68.407        87.527        .48530E-04   -1.4052    
  11  Prefactor     .10000E-03    5.8637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     29.636        44.479        .73598E-04   -1.4619    
  13  norm          .10000E-03    6.4301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .97305        .76108E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          36.614        30.475        .66218E-04   -1.4497    
  16  norm          7.4989        4.8391        .13356E-03   -1.5160    
  17  Prefactor     .10000E-03    55.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.1290        .15722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.2601        1.1831        .59646E-04   -1.5407    
  20  norm          2.1832        7.1678        .13933E-02   -1.5412    
  21  Normalizat    .92040        .23619        .30901E-03   -.95747    
  22  Prefactor     .99603        .14308        .19110E-03   -.92862    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.97876e-10
Minuit parameter uncertainties:
  1  1.11532e-06
  2  9.94709e-05
  3  6.38596e-09
  4  0.000141888
  5  1.39031
  6  4.30364e-05
  7  3.38914
  8  7.41106e-05
  9  0.000412774
  10  87.6927
  11  9.8183e-06
  12  44.5292
  13  1.14922e-05
  14  1.13139e-06
  15  30.4875
  16  4.83938
  17  0.000349049
  18  1.10677e-05
  19  1.18313
  20  7.17059
  21  0.236456
  22  0.14313
Done.

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

Extracting fit parameters...

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  2.964e+01  4.453e+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.960e-01  1.431e-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.204e-01  2.365e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.66
Ra Dec: 121.133 4.239
Photon Flux Upper Limit: 1.50e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.16e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/93908/likelihoodResults_290908801_291168001_4FGL_J0804.5+0414_daily_bin199.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) = 6289.33821046
delta logL = 0.405114012936

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6289.31334469
delta logL = 0.429979782724

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.4206       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6553       1.0000          .0000       10.000    
     3 'Normalizat'    .87137       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0177       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6289.313     FROM MIGRAD    STATUS=FAILED       103 CALLS      309 TOTAL
                     EDM=   .70E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3670        310.30        .69074E-03   -.16826E-03
   2  Index         3.6594        6.8134        .63229E-02    .55187E-03
   3  Normalizat    .87132        .19392        .31661E-03   -.95190E-04
   4  Prefactor     1.0179        .12473        .18930E-03   -.11782E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6289.313     FROM SIMPLEX   STATUS=UNCHANGED     83 CALLS      392 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3670        310.30        .64405E-03   -.16826E-03
   2  Index         3.6594        6.8134        .22683E-02    .55187E-03
   3  Normalizat    .87132        .19392        .31321E-03   -.95190E-04
   4  Prefactor     1.0179        .12473        .10196E-03   -.11782E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6289.313     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      421 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3671        50.248        .27630E-04   -.13595E-03
   2  Index         3.6594        2.5838        .12646E-02   -.35951E-04
   3  Normalizat    .87132        .23086        .12664E-04   -.79355E-04
   4  Prefactor     1.0179        .14471        .37860E-04   -.96872E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.36708
  Index      = 3.65939
  Normalizat = 0.871322
  Prefactor  = 1.01786
 **********
 **   18 **HESSE 
 **********

 FCN=   6289.313     FROM HESSE     STATUS=OK            23 CALLS      444 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.3671        30.136        .55259E-05   -1.5129    
   2  Index         3.6594        1.9471        .50583E-04   -.27144    
   3  Normalizat    .87132        .23093        .25329E-05   -.97475    
   4  Prefactor     1.0179        .14447        .75719E-05   -.92137    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94799e-11
Minuit parameter uncertainties:
  1  30.191
  2  2.00444
  3  0.23119
  4  0.144521
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/93908': 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) = 6289.3133395
delta logL = 0.42998497651

Extracting fit parameters...

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  8.367e+00  3.019e+01  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  3.659e+00  2.004e+00  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:  1.018e+00  1.445e-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:  8.713e-01  2.312e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.65
Ra Dec: 121.133 4.239
Photon Index (Free Index): 3.66 +/- 2.00
Photon Flux (Free Index): 7.58e-08 +/- 6.91e-08
Energy Flux (Free Index): 1.21e-05 +/- 1.23e-05

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/93908/cmap_HighResolution_290908801_291168001_4FGL_J0804.5+0414_daily_bin199.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.16e-02', comment='SUCCESS', energy_flux2='1.21e-05', dlogl='4.30e-01', photon_flux2='7.58e-08', job_status='DONE', time_completed='2021-08-29 00:25:10.701017', photon_index_error2='2.00', photon_index2='3.66', ts='0.66', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.50e-07', energy_flux_error2='1.23e-05', EG='0.92', time_epoch_completed='1630221910.7', return_code='0', job_id='93908', GAL2='1.02', EG2='0.87', return_code2='0', photon_flux_error2='6.91e-08', ts2='1.65', photon_index='2.49' WHERE bin_id='199' AND source_name='4FGL J0804.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 00:25:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0212>
Subject: Job 93908: <4FGL_J0804.5+0414_daily_bin199> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0804.5+0414_daily_bin199 121.133 4.2393 290908801 291168001 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 :                                   702.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             255.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            882 sec.

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

