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


Performing analysis on: 4FGL_J0804.5+0414_daily_bin593
RA = 121.133, Dec = 4.2393
tmin = 393033601, tmax = 393292801
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='98990', job_status='RUN', time_executed='2021-08-29 00:28:30.576924', time_epoch_executed='1630222110.58' WHERE source_name='4FGL J0804.5+0414' and cadence='daily' and bin_id='593'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/98990

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/98990/ft1_4FGL_J0804.5+0414_daily_bin593.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/98990/ft2_4FGL_J0804.5+0414_daily_bin593.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/98990/ft1_4FGL_J0804.5+0414_daily_bin593.fits outfile=/scratch/kocevski/98990/ft1_filteredMKT_4FGL_J0804.5+0414_daily_bin593.fits ra=121.133 dec=4.2393 rad=12.0 tmin=393033601.0 tmax=393292801.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.75
user 3.25
sys 1.47

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/98990/ft1_filtered_4FGL_J0804.5+0414_daily_bin593.fits" evtable="EVENTS" scfile=/scratch/kocevski/98990/ft2_4FGL_J0804.5+0414_daily_bin593.fits sctable="SC_DATA" outfile=/scratch/kocevski/98990/ltcube_393033601_393292801_4FGL_J0804.5+0414_daily_bin593.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/98990/ft2_4FGL_J0804.5+0414_daily_bin593.fits
.....................!
real 13.40
user 11.58
sys 1.74

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/98990/ft1_filtered_4FGL_J0804.5+0414_daily_bin593.fits evtable="EVENTS" scfile=/scratch/kocevski/98990/ft2_4FGL_J0804.5+0414_daily_bin593.fits sctable="SC_DATA" expcube=/scratch/kocevski/98990/ltcube_393033601_393292801_4FGL_J0804.5+0414_daily_bin593.fits outfile=/scratch/kocevski/98990/expmap_393033601_393292801_4FGL_J0804.5+0414_daily_bin593.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/98990/ltcube_393033601_393292801_4FGL_J0804.5+0414_daily_bin593.fits
.....................!
real 193.33
user 185.85
sys 7.01

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/98990/ft1_filtered_4FGL_J0804.5+0414_daily_bin593.fits scfile=/scratch/kocevski/98990/ft2_4FGL_J0804.5+0414_daily_bin593.fits outfile=/scratch/kocevski/98990/cmap_393033601_393292801_4FGL_J0804.5+0414_daily_bin593.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.28
user 0.38
sys 1.39

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/98990/ft1_filtered_4FGL_J0804.5+0414_daily_bin593.fits scfile=/scratch/kocevski/98990/ft2_4FGL_J0804.5+0414_daily_bin593.fits outfile=/scratch/kocevski/98990/cmap_HighResolution_393033601_393292801_4FGL_J0804.5+0414_daily_bin593.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.07
user 0.38
sys 1.39

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.344       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10269E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .28192E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.5432       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .18791E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10398E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .80175       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.3725       1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.402       1.0000         .10000E-03   10000.    
    13 'norm      '    2.6924       1.0000         .10000E-03   10000.    
    14 'norm      '    .78495       1.0000         .10000E-03   10000.    
    15 'norm      '    .11137E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.8168       1.0000         .10000E-03   10000.    
    17 'Prefactor '    45.464       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .16189E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .47340       1.0000         .10000E-03   10000.    
    20 'norm      '    .10300E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .66838       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1873       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=   5741.957     FROM MIGRAD    STATUS=CONVERGED    561 CALLS     2459 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .78935        .27830E-06** at limit **
   2  Prefactor     23.298        50.254        .88514E-05    .34316E-03
   3  Prefactor     .10000E-03    4.5284        .13887E-06** at limit **
   4  Prefactor     .10000E-03    145.44        .24092E-05** at limit **
   5  norm          5.5461        2.7343        .81031E-06   -.10665E-02
   6  Prefactor     .10000E-03    15.936       -.51635E-07** at limit **
   7  Prefactor     .10000E-03    2.0177        .11959E-06** at limit **
   8  norm          .10000E-03    4.9078        .28545E-07** at limit **
   9  Prefactor     .10000E-03    5.0510       -.58600E-08** at limit **
  10  Prefactor     .14665E-02    100.41       -.10415E-05** at limit **
  11  Prefactor     8.3689        7.4661        .24426E-06   -.11324E-03
  12  Prefactor     19.397        34.187       -.23603E-05   -.12574E-03
  13  norm          2.6810        10.431       -.23697E-06   -.72515E-04
  14  norm          .78533        1.8757        .56241E-06   -.32692E-04
  15  norm          .10000E-03    35.730       -.14514E-05** at limit **
  16  norm          3.8204        4.1450        .30359E-05   -.94836E-03
  17  Prefactor     45.434        36.867       -.15916E-05   -.31883E-03
  18  Prefactor     .10000E-03    8.2877        .15004E-06** at limit **
  19  norm          .47217        1.1662        .42175E-06   -.23067E-03
  20  norm          .10000E-03    7.7517        .41042E-07** at limit **
  21  Normalizat    .66860        .21161        .19236E-05   -.16920E-03
  22  Prefactor     1.1873        .13983       -.24462E-05    .88613E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 23.2977
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 5.54607
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00146648
  Prefactor  = 8.3689
  Prefactor  = 19.3969
  norm       = 2.68103
  norm       = 0.785334
  norm       = 0.0001
  norm       = 3.82041
  Prefactor  = 45.4338
  Prefactor  = 0.000100002
  norm       = 0.472168
  norm       = 0.0001
  Normalizat = 0.668604
  Prefactor  = 1.18735
 **********
 **   18 **HESSE 
 **********

 FCN=   5741.957     FROM HESSE     STATUS=OK           348 CALLS     2807 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .79955        .65641E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     23.298        53.064        .82906E-04   -1.4742    
   3  Prefactor     .10000E-03    4.5515        .15746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    149.75        .42832E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.5461        2.7502        .41201E-03   -1.5237    
   6  Prefactor     .10000E-03    15.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.0801        .20988E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.9090        .16395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.0613        .16630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .14665E-02    95.549        .23202       -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.3689        7.4288        .69273E-03   -1.5129    
  12  Prefactor     19.397        34.051        .90930E-04   -1.4827    
  13  norm          2.6810        10.368        .24829E-03   -1.5380    
  14  norm          .78533        1.7628        .15491E-02   -1.5531    
  15  norm          .10000E-03    35.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.8204        4.2140        .77923E-03   -1.5317    
  17  Prefactor     45.434        37.126        .59463E-04   -1.4359    
  18  Prefactor     .10000E-03    49.969        .41516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .47217        1.1658        .11799E-03   -1.5571    
  20  norm          .10000E-03    7.9197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .66860        .22612        .34231E-03   -1.0515    
  22  Prefactor     1.1873        .15275        .18096E-03   -.86722    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02952e-08
Minuit parameter uncertainties:
  1  4.96556e-06
  2  53.1721
  3  4.12236e-06
  4  0.000790471
  5  2.75023
  6  5.81168e-07
  7  4.49068e-06
  8  4.60172e-06
  9  2.81113e-06
  10  0.723833
  11  7.42966
  12  34.0854
  13  10.3753
  14  1.76289
  15  0.000202103
  16  4.21431
  17  37.1448
  18  0.000639066
  19  1.16587
  20  6.37055e-06
  21  0.226434
  22  0.152803
Done.

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

Extracting fit parameters...

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  1.940e+01  3.409e+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:  1.187e+00  1.528e-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:  6.686e-01  2.264e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/98990/likelihoodResults_393033601_393292801_4FGL_J0804.5+0414_daily_bin593.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) = 5741.9495965
delta logL = 0.0070988628886

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5741.94655151
delta logL = 0.0101438530537

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.698       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6613       1.0000          .0000       10.000    
     3 'Normalizat'    .66431       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1895       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=   5741.947     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      259 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.699        40.076        .98014E-04    .45120E-04
   2  Index         2.6598        1.3351        .98101E-02    .14454E-04
   3  Normalizat    .66500        .21704        .34316E-03    .88224E-04
   4  Prefactor     1.1890        .14742        .18085E-03    .18479E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.6989
  Index      = 2.65979
  Normalizat = 0.665003
  Prefactor  = 1.18898
 **********
 **   18 **HESSE 
 **********

 FCN=   5741.947     FROM HESSE     STATUS=OK            25 CALLS      284 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.699        36.246        .39206E-05   -1.4890    
   2  Index         2.6598        1.2098        .39240E-03   -.48707    
   3  Normalizat    .66500        .21720        .13726E-04   -1.0529    
   4  Prefactor     1.1890        .14743        .36170E-04   -.86671    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64752e-11
Minuit parameter uncertainties:
  1  36.2942
  2  1.2254
  3  0.217481
  4  0.147483
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/98990': 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) = 5741.94654539
delta logL = 0.010149970446

Extracting fit parameters...

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  1.670e+01  3.629e+01  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.660e+00  1.225e+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.189e+00  1.475e-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:  6.650e-01  2.175e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.40
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/98990/cmap_HighResolution_393033601_393292801_4FGL_J0804.5+0414_daily_bin593.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.85e-03', job_status='DONE', photon_flux_upper_limit='1.27e-07', time_completed='2021-08-29 00:39:12.617171', job_id='98990', GAL2='1.19', fit_tolerance='1e-08', EG2='0.67', EG='0.67', time_epoch_completed='1630222752.62', return_code2='0', ts='0.40', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='1.01e-02', ts2='0.42', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='593' AND source_name='4FGL J0804.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 00:39:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 98990: <4FGL_J0804.5+0414_daily_bin593> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0804.5+0414_daily_bin593 121.133 4.2393 393033601 393292801 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 :                                   659.31 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             260.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   824 sec.
    Turnaround time :                            827 sec.

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

