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


Performing analysis on: 4FGL_J0804.5+0414_daily_bin469
RA = 121.133, Dec = 4.2393
tmin = 360892801, tmax = 361152001
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='96927', job_status='RUN', time_executed='2021-08-29 00:24:23.748534', time_epoch_executed='1630221863.75' WHERE source_name='4FGL J0804.5+0414' and cadence='daily' and bin_id='469'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/96927

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/96927/ft1_4FGL_J0804.5+0414_daily_bin469.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/96927/ft2_4FGL_J0804.5+0414_daily_bin469.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/96927/ft1_4FGL_J0804.5+0414_daily_bin469.fits outfile=/scratch/kocevski/96927/ft1_filteredMKT_4FGL_J0804.5+0414_daily_bin469.fits ra=121.133 dec=4.2393 rad=12.0 tmin=360892801.0 tmax=361152001.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 3.55
user 3.34
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/96927/ft2_4FGL_J0804.5+0414_daily_bin469.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/96927/ft1_filteredMKT_4FGL_J0804.5+0414_daily_bin469.fits evtable="EVENTS" outfile="/scratch/kocevski/96927/ft1_filtered_4FGL_J0804.5+0414_daily_bin469.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 0.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/96927/ft1_filtered_4FGL_J0804.5+0414_daily_bin469.fits" evtable="EVENTS" scfile=/scratch/kocevski/96927/ft2_4FGL_J0804.5+0414_daily_bin469.fits sctable="SC_DATA" outfile=/scratch/kocevski/96927/ltcube_360892801_361152001_4FGL_J0804.5+0414_daily_bin469.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/96927/ft2_4FGL_J0804.5+0414_daily_bin469.fits
.....................!
real 11.98
user 11.63
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/96927/ft1_filtered_4FGL_J0804.5+0414_daily_bin469.fits evtable="EVENTS" scfile=/scratch/kocevski/96927/ft2_4FGL_J0804.5+0414_daily_bin469.fits sctable="SC_DATA" expcube=/scratch/kocevski/96927/ltcube_360892801_361152001_4FGL_J0804.5+0414_daily_bin469.fits outfile=/scratch/kocevski/96927/expmap_360892801_361152001_4FGL_J0804.5+0414_daily_bin469.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/96927/ltcube_360892801_361152001_4FGL_J0804.5+0414_daily_bin469.fits
.....................!
real 190.11
user 184.68
sys 5.04

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/96927/ft1_filtered_4FGL_J0804.5+0414_daily_bin469.fits scfile=/scratch/kocevski/96927/ft2_4FGL_J0804.5+0414_daily_bin469.fits outfile=/scratch/kocevski/96927/cmap_360892801_361152001_4FGL_J0804.5+0414_daily_bin469.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 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/96927/ft1_filtered_4FGL_J0804.5+0414_daily_bin469.fits scfile=/scratch/kocevski/96927/ft2_4FGL_J0804.5+0414_daily_bin469.fits outfile=/scratch/kocevski/96927/cmap_HighResolution_360892801_361152001_4FGL_J0804.5+0414_daily_bin469.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 0.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8213       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .20172E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.3678       1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.642       1.0000         .10000E-03   10000.    
     5 'norm      '    .98578       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10259E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.1927       1.0000         .10000E-03   10000.    
    12 'Prefactor '    47.467       1.0000         .10000E-03   10000.    
    13 'norm      '    5.7014       1.0000         .10000E-03   10000.    
    14 'norm      '    1.2791       1.0000         .10000E-03   10000.    
    15 'norm      '    15.078       1.0000         .10000E-03   10000.    
    16 'norm      '    4.0590       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13355E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .16191E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.4280       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4300       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .66924       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=   5695.659     FROM MIGRAD    STATUS=CONVERGED    496 CALLS     2387 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8184        2.2555       -.23344E-06   -.20282E-04
   2  Prefactor     .10005E-03    195.84       -.62132E-05** at limit **
   3  Prefactor     5.3663        7.6622        .40256E-05    .19848E-04
   4  Prefactor     19.638        25.690       -.11315E-07    .71585E-05
   5  norm          .98573        1.4164       -.65819E-07   -.17387E-03
   6  Prefactor     .10000E-03    13.498        .11425E-07** at limit **
   7  Prefactor     .10000E-03    .77841        .89002E-08** at limit **
   8  norm          .10000E-03    37.544        .86902E-06** at limit **
   9  Prefactor     .10000E-03    19.704        .19570E-06** at limit **
  10  Prefactor     .10000E-03    47.515       -.35035E-06** at limit **
  11  Prefactor     3.1927        6.6005        .32253E-06    .41847E-04
  12  Prefactor     47.463        32.741        .29423E-06    .67382E-05
  13  norm          5.7016        6.0224       -.55476E-07   -.35744E-04
  14  norm          1.2796        2.8177        .66411E-06    .14086E-04
  15  norm          15.064        18.719        .11787E-05    .23375E-04
  16  norm          4.0590        3.3978        .26205E-07   -.13521E-06
  17  Prefactor     .10002E-03    126.98        .60265E-05** at limit **
  18  Prefactor     .10016E-03    8.8003       -.16539E-05** at limit **
  19  norm          1.4280        .96407        .44583E-07    .75147E-04
  20  norm          .10000E-03    2.5397        .23925E-08** at limit **
  21  Normalizat    1.4301        .19879        .69515E-06    .51523E-04
  22  Prefactor     .66910        .12835       -.13739E-05    .15459E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.81837
  Prefactor  = 0.000100049
  Prefactor  = 5.3663
  Prefactor  = 19.6379
  norm       = 0.985725
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.19268
  Prefactor  = 47.4625
  norm       = 5.70157
  norm       = 1.27956
  norm       = 15.0637
  norm       = 4.059
  Prefactor  = 0.000100021
  Prefactor  = 0.000100157
  norm       = 1.42796
  norm       = 0.0001
  Normalizat = 1.43012
  Prefactor  = 0.669103
 **********
 **   18 **HESSE 
 **********

 FCN=   5695.659     FROM HESSE     STATUS=OK           348 CALLS     2735 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8184        2.2466        .11703E-03   -1.5438    
   2  Prefactor     .10005E-03    202.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.3663        7.7169        .86729E-03   -1.5245    
   4  Prefactor     19.638        25.636        .90372E-04   -1.4821    
   5  norm          .98573        1.2519        .10281E-02   -1.5509    
   6  Prefactor     .10000E-03    13.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    .78390        .65009E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    38.603        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    20.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    47.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.1927        6.5594        .22677E-03   -1.5351    
  12  Prefactor     47.463        32.770        .58200E-04   -1.4329    
  13  norm          5.7016        6.0227        .16822E-03   -1.5230    
  14  norm          1.2796        2.7930        .17878E-03   -1.5482    
  15  norm          15.064        18.690        .10315E-03   -1.4932    
  16  norm          4.0590        3.3989        .12331E-03   -1.5305    
  17  Prefactor     .10002E-03    131.41        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10016E-03    47.472        .42071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.4280        .96578        .58574E-04   -1.5469    
  20  norm          .10000E-03    2.5436        .11745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.4301        .22504        .25025E-03   -.79761    
  22  Prefactor     .66910        .14520        .22092E-03   -1.0475    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.67897e-09
Minuit parameter uncertainties:
  1  2.2467
  2  0.00633481
  3  7.71835
  4  25.6506
  5  1.25191
  6  1.90305e-06
  7  3.2159e-07
  8  0.000257851
  9  1.58644e-06
  10  0.000245363
  11  6.56089
  12  32.7824
  13  6.02335
  14  2.7933
  15  18.697
  16  3.39907
  17  0.00335402
  18  0.00546965
  19  0.965795
  20  2.33507e-07
  21  0.225193
  22  0.145284
Done.

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

Extracting fit parameters...

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  4.746e+01  3.278e+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:  6.691e-01  1.453e-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.430e+00  2.252e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.42
Ra Dec: 121.133 4.239
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 6.38e-08 +/- 4.40e-08
Energy Flux (Fixed Index): 1.87e-05 +/- 1.29e-05

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) = 5694.56411755
delta logL = 1.09453112233

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5694.49381556
delta logL = 1.16483311207

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    63.118       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7292       1.0000          .0000       10.000    
     3 'Normalizat'    1.4661       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65439       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=   5694.494     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      210 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     63.118        45.573        .12627E-02    .13040E-02
   2  Index         1.7294        .40397        .19031       -.32701E-04
   3  Normalizat    1.4661        .19329        .56029E-01    .18943E-05
   4  Prefactor     .65439        .12152        .41791E-01    .15781E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 63.1176
  Index      = 1.72939
  Normalizat = 1.4661
  Prefactor  = 0.654388
 **********
 **   18 **HESSE 
 **********

 FCN=   5694.494     FROM HESSE     STATUS=OK            31 CALLS      241 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     63.118        45.486        .25255E-03   -1.4117    
   2  Index         1.7294        .45927        .73660E-02   -.71302    
   3  Normalizat    1.4661        .21897        .24774E-03   -.78736    
   4  Prefactor     .65439        .13751        .22297E-03   -1.0534    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.0817e-09
Minuit parameter uncertainties:
  1  45.5112
  2  0.460405
  3  0.219112
  4  0.137586
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/96927': 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) = 5694.4938154
delta logL = 1.16483327532

Extracting fit parameters...

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  6.312e+01  4.551e+01  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  1.729e+00  4.604e-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:  6.544e-01  1.376e-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.466e+00  2.191e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.75
Ra Dec: 121.133 4.239
Photon Index (Free Index): 1.73 +/- 0.46
Photon Flux (Free Index): 3.40e-08 +/- 3.11e-08
Energy Flux (Free Index): 5.06e-05 +/- 5.47e-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/96927/cmap_HighResolution_360892801_361152001_4FGL_J0804.5+0414_daily_bin469.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.38e-08', energy_flux2='5.06e-05', photon_flux_error='4.40e-08', dlogl='1.16e+00', energy_flux='1.87e-05', photon_flux2='3.40e-08', job_status='DONE', time_completed='2021-08-29 00:33:49.836130', photon_index_error2='0.46', photon_index2='1.73', ts='4.42', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', energy_flux_error2='5.47e-05', EG='1.43', time_epoch_completed='1630222429.84', return_code='0', job_id='96927', GAL2='0.65', EG2='1.47', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='3.11e-08', ts2='6.75', photon_index='2.49' WHERE bin_id='469' AND source_name='4FGL J0804.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 00:33:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 96927: <4FGL_J0804.5+0414_daily_bin469> in cluster <slac> Done

Job <4FGL_J0804.5+0414_daily_bin469> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Aug 29 00:20:21 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 00:20:23 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:20:23 2021
Terminated at Sun Aug 29 00:33:50 2021
Results reported at Sun Aug 29 00:33:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0804.5+0414_daily_bin469 121.133 4.2393 360892801 361152001 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 :                                   564.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             235.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            809 sec.

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

