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


Performing analysis on: 4FGL_J0804.5+0414_daily_bin643
RA = 121.133, Dec = 4.2393
tmin = 405993601, tmax = 406252801
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='99062', job_status='RUN', time_executed='2021-08-29 00:28:51.596904', time_epoch_executed='1630222131.6' WHERE source_name='4FGL J0804.5+0414' and cadence='daily' and bin_id='643'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/99062

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/99062/ft1_4FGL_J0804.5+0414_daily_bin643.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/99062/ft2_4FGL_J0804.5+0414_daily_bin643.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/99062/ft1_4FGL_J0804.5+0414_daily_bin643.fits outfile=/scratch/kocevski/99062/ft1_filteredMKT_4FGL_J0804.5+0414_daily_bin643.fits ra=121.133 dec=4.2393 rad=12.0 tmin=405993601.0 tmax=406252801.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 4.21
user 3.10
sys 0.95

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/99062/ft2_4FGL_J0804.5+0414_daily_bin643.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/99062/ft1_filteredMKT_4FGL_J0804.5+0414_daily_bin643.fits evtable="EVENTS" outfile="/scratch/kocevski/99062/ft1_filtered_4FGL_J0804.5+0414_daily_bin643.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.29
user 0.32
sys 0.88

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/99062/ft1_filtered_4FGL_J0804.5+0414_daily_bin643.fits evtable="EVENTS" scfile=/scratch/kocevski/99062/ft2_4FGL_J0804.5+0414_daily_bin643.fits sctable="SC_DATA" expcube=/scratch/kocevski/99062/ltcube_405993601_406252801_4FGL_J0804.5+0414_daily_bin643.fits outfile=/scratch/kocevski/99062/expmap_405993601_406252801_4FGL_J0804.5+0414_daily_bin643.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/99062/ltcube_405993601_406252801_4FGL_J0804.5+0414_daily_bin643.fits
.....................!
real 192.80
user 186.74
sys 5.54

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/99062/ft1_filtered_4FGL_J0804.5+0414_daily_bin643.fits scfile=/scratch/kocevski/99062/ft2_4FGL_J0804.5+0414_daily_bin643.fits outfile=/scratch/kocevski/99062/cmap_405993601_406252801_4FGL_J0804.5+0414_daily_bin643.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.31
user 0.36
sys 0.89

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/99062/ft1_filtered_4FGL_J0804.5+0414_daily_bin643.fits scfile=/scratch/kocevski/99062/ft2_4FGL_J0804.5+0414_daily_bin643.fits outfile=/scratch/kocevski/99062/cmap_HighResolution_405993601_406252801_4FGL_J0804.5+0414_daily_bin643.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.28
user 0.37
sys 0.90

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .49627       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11029E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.5527       1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.244       1.0000         .10000E-03   10000.    
     5 'norm      '    3.1967       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.877       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.503       1.0000         .10000E-03   10000.    
    13 'norm      '    12.905       1.0000         .10000E-03   10000.    
    14 'norm      '    2.8678       1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.8970       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.1165       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.9880       1.0000         .10000E-03   10000.    
    20 'norm      '    10.505       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2036       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .73772       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=   6367.720     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     2075 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .49743        1.4511       -.69691E-06   -.14653E-02
   2  Prefactor     .10000E-03    56.138        .42830E-06** at limit **
   3  Prefactor     3.5528        3.8029        .27951E-07    .13358E-03
   4  Prefactor     23.240        33.199       -.30417E-05    .11629E-03
   5  norm          3.1970        1.9096        .70740E-08   -.15346E-03
   6  Prefactor     .10000E-03    10.370       -.13575E-07** at limit **
   7  Prefactor     .10000E-03    1.8476       -.52009E-07** at limit **
   8  norm          .10000E-03    7.0248        .43073E-09** at limit **
   9  Prefactor     21.877        11.606       -.84281E-07   -.40851E-05
  10  Prefactor     .10000E-03    29.623       -.13155E-06** at limit **
  11  Prefactor     .10000E-03    5.3401       -.20603E-07** at limit **
  12  Prefactor     16.497        36.770       -.79817E-05    .17077E-03
  13  norm          12.904        9.6431        .16186E-07    .35531E-04
  14  norm          2.8680        2.0815       -.44689E-07   -.69335E-06
  15  norm          .10000E-03    9.2584        .51620E-07** at limit **
  16  norm          1.8976        5.1826       -.12377E-05   -.72468E-03
  17  Prefactor     4.1195        46.616        .54623E-05   -.51597E-04
  18  Prefactor     .10000E-03    14.716       -.92181E-07** at limit **
  19  norm          2.9880        1.2344       -.29250E-07   -.22671E-04
  20  norm          10.504        9.7424       -.29880E-06   -.36723E-04
  21  Normalizat    1.2037        .19283        .91090E-06    .39168E-04
  22  Prefactor     .73772        .11598        .56958E-06    .79677E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.497427
  Prefactor  = 0.0001
  Prefactor  = 3.55281
  Prefactor  = 23.2405
  norm       = 3.19703
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 21.8765
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.4969
  norm       = 12.9042
  norm       = 2.86796
  norm       = 0.0001
  norm       = 1.89763
  Prefactor  = 4.11955
  Prefactor  = 0.0001
  norm       = 2.98803
  norm       = 10.5042
  Normalizat = 1.20366
  Prefactor  = 0.73772
 **********
 **   18 **HESSE 
 **********

 FCN=   6367.720     FROM HESSE     STATUS=OK           344 CALLS     2419 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .49743        1.5789        .16681E-03   -1.5567    
   2  Prefactor     .10000E-03    56.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.5528        3.8088        .15692E-03   -1.5331    
   4  Prefactor     23.240        32.386        .83083E-04   -1.4743    
   5  norm          3.1970        1.9071        .80497E-04   -1.5350    
   6  Prefactor     .10000E-03    10.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.9081        .21157E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    7.0365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     21.877        11.625        .85635E-04   -1.4772    
  10  Prefactor     .10000E-03    29.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.3989        .18004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.497        33.828        .98590E-04   -1.4895    
  13  norm          12.904        9.6257        .11150E-03   -1.4989    
  14  norm          2.8680        2.0821        .95190E-04   -1.5369    
  15  norm          .10000E-03    9.2720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.8976        5.5728        .29256E-03   -1.5432    
  17  Prefactor     4.1195        45.307        .19869E-03   -1.5302    
  18  Prefactor     .10000E-03    14.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.9880        1.2355        .54178E-04   -1.5362    
  20  norm          10.504        9.7623        .12362E-03   -1.5060    
  21  Normalizat    1.2037        .22215        .26818E-03   -.86490    
  22  Prefactor     .73772        .13311        .20736E-03   -1.0207    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57772e-09
Minuit parameter uncertainties:
  1  1.57907
  2  2.73144e-05
  3  3.80908
  4  32.4108
  5  1.90712
  6  3.91511e-06
  7  4.92966e-06
  8  9.52238e-07
  9  11.6265
  10  5.49249e-06
  11  4.8054e-06
  12  33.8671
  13  9.62682
  14  2.08215
  15  2.73427e-05
  16  5.57437
  17  27.3495
  18  4.70385e-05
  19  1.23547
  20  9.7638
  21  0.222325
  22  0.133169
Done.

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

Extracting fit parameters...

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  1.650e+01  3.387e+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:  7.377e-01  1.332e-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.204e+00  2.223e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.30
Ra Dec: 121.133 4.239
Photon Flux Upper Limit: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/99062/likelihoodResults_405993601_406252801_4FGL_J0804.5+0414_daily_bin643.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) = 6367.562356
delta logL = 0.157880861059

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6367.56208564
delta logL = 0.158151219961

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.611       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9452       1.0000          .0000       10.000    
     3 'Normalizat'    1.2134       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73189       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=   6367.562     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      273 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.532        6027.6        .19414E-02    .19002E-04
   2  Index         1.9431        5.6592        .26114       -.17906E-04
   3  Normalizat    1.2135        .12715        .60414E-01   -.25325E-05
   4  Prefactor     .73190        .84001E-01    .42824E-01    .19798E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.5317
  Index      = 1.9431
  Normalizat = 1.21347
  Prefactor  = 0.731896
 **********
 **   18 **HESSE 
 **********

 FCN=   6367.562     FROM HESSE     STATUS=OK            33 CALLS      306 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.532        39.862        .77658E-04   -1.4677    
   2  Index         1.9431        .80724        .12025E-01   -.65780    
   3  Normalizat    1.2135        .20589        .26719E-03   -.86187    
   4  Prefactor     .73190        .12767        .20803E-03   -1.0229    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.89402e-10
Minuit parameter uncertainties:
  1  39.9024
  2  0.81295
  3  0.206025
  4  0.127722
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/99062': 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) = 6367.56208091
delta logL = 0.158155945579

Extracting fit parameters...

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  2.653e+01  3.990e+01  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  1.943e+00  8.129e-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:  7.319e-01  1.277e-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.213e+00  2.060e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.30
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/99062/cmap_HighResolution_405993601_406252801_4FGL_J0804.5+0414_daily_bin643.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.46e-03', job_status='DONE', photon_flux_upper_limit='1.22e-07', time_completed='2021-08-29 00:39:28.084995', job_id='99062', GAL2='0.73', fit_tolerance='1e-08', EG2='1.21', EG='1.20', time_epoch_completed='1630222768.09', return_code2='0', ts='0.30', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='1.58e-01', ts2='0.62', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='643' AND source_name='4FGL J0804.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 00:39:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 99062: <4FGL_J0804.5+0414_daily_bin643> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0804.5+0414_daily_bin643 121.133 4.2393 405993601 406252801 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 :                                   647.20 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             315.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            837 sec.

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

