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


Performing analysis on: 4FGL_J0804.5+0414_daily_bin356
RA = 121.133, Dec = 4.2393
tmin = 331603201, tmax = 331862401
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='95659', job_status='RUN', time_executed='2021-08-29 00:18:56.049033', time_epoch_executed='1630221536.05' WHERE source_name='4FGL J0804.5+0414' and cadence='daily' and bin_id='356'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/95659

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/95659/ft1_4FGL_J0804.5+0414_daily_bin356.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/95659/ft2_4FGL_J0804.5+0414_daily_bin356.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/95659/ft1_4FGL_J0804.5+0414_daily_bin356.fits outfile=/scratch/kocevski/95659/ft1_filteredMKT_4FGL_J0804.5+0414_daily_bin356.fits ra=121.133 dec=4.2393 rad=12.0 tmin=331603201.0 tmax=331862401.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.54
user 3.05
sys 0.44

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/95659/ft1_filtered_4FGL_J0804.5+0414_daily_bin356.fits" evtable="EVENTS" scfile=/scratch/kocevski/95659/ft2_4FGL_J0804.5+0414_daily_bin356.fits sctable="SC_DATA" outfile=/scratch/kocevski/95659/ltcube_331603201_331862401_4FGL_J0804.5+0414_daily_bin356.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/95659/ft2_4FGL_J0804.5+0414_daily_bin356.fits
.....................!
real 12.01
user 11.38
sys 0.60

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/95659/ft1_filtered_4FGL_J0804.5+0414_daily_bin356.fits evtable="EVENTS" scfile=/scratch/kocevski/95659/ft2_4FGL_J0804.5+0414_daily_bin356.fits sctable="SC_DATA" expcube=/scratch/kocevski/95659/ltcube_331603201_331862401_4FGL_J0804.5+0414_daily_bin356.fits outfile=/scratch/kocevski/95659/expmap_331603201_331862401_4FGL_J0804.5+0414_daily_bin356.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/95659/ltcube_331603201_331862401_4FGL_J0804.5+0414_daily_bin356.fits
.....................!
real 189.35
user 184.67
sys 4.32

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/95659/ft1_filtered_4FGL_J0804.5+0414_daily_bin356.fits scfile=/scratch/kocevski/95659/ft2_4FGL_J0804.5+0414_daily_bin356.fits outfile=/scratch/kocevski/95659/cmap_331603201_331862401_4FGL_J0804.5+0414_daily_bin356.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.78
user 0.36
sys 0.39

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/95659/ft1_filtered_4FGL_J0804.5+0414_daily_bin356.fits scfile=/scratch/kocevski/95659/ft2_4FGL_J0804.5+0414_daily_bin356.fits outfile=/scratch/kocevski/95659/cmap_HighResolution_331603201_331862401_4FGL_J0804.5+0414_daily_bin356.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.78
user 0.38
sys 0.39

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10108E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10272E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.7813       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .29996E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    5.0575       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.5282       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.673       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14720E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.652       1.0000         .10000E-03   10000.    
    13 'norm      '    10.136       1.0000         .10000E-03   10000.    
    14 'norm      '    .16968E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.9909       1.0000         .10000E-03   10000.    
    17 'Prefactor '    97.918       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.0207       1.0000         .10000E-03   10000.    
    20 'norm      '    2.7183       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .59070       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.4216       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=   7875.987     FROM MIGRAD    STATUS=CONVERGED    881 CALLS     3163 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.1490        .17415E-02** at limit **
   2  Prefactor     .10000E-03    47.781        .18142E-02** at limit **
   3  Prefactor     4.7829        10.027        .18400E-03    .30276E-05
   4  Prefactor     .10000E-03    36.330        .13566    ** at limit **
   5  norm          5.0575        2.3805        .87346E-04    .58441E-04
   6  Prefactor     .10000E-03    18.290        .18142E-02** at limit **
   7  Prefactor     3.5311        4.8724        .20188E-03   -.22278E-03
   8  norm          .10000E-03    10.338        .18142E-02** at limit **
   9  Prefactor     27.671        18.133        .76156E-04   -.15675E-04
  10  Prefactor     .10000E-03    448.87        .18142E-02** at limit **
  11  Prefactor     .10000E-03    3.1391        .15331E-02** at limit **
  12  Prefactor     25.654        38.036        .79093E-04   -.33635E-04
  13  norm          10.137        10.116        .12586E-03   -.47785E-04
  14  norm          .10000E-03    5.6734        .18244E-02** at limit **
  15  norm          .10000E-03    38.848        .18142E-02** at limit **
  16  norm          6.9908        4.4278        .71107E-03   -.26249E-03
  17  Prefactor     97.922        50.175        .40623E-04   -.35430E-04
  18  Prefactor     .10000E-03    10.039        .18142E-02** at limit **
  19  norm          1.0209        1.1510        .97005E-04    .62935E-04
  20  norm          2.7185        3.9238        .20647E-03   -.38819E-04
  21  Normalizat    .59058        .26289        .44547E-03   -.57116E-04
  22  Prefactor     1.4216        .15611        .19250E-03   -.58702E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 4.78287
  Prefactor  = 0.0001
  norm       = 5.05753
  Prefactor  = 0.0001
  Prefactor  = 3.53109
  norm       = 0.0001
  Prefactor  = 27.671
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.6543
  norm       = 10.1375
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 6.99076
  Prefactor  = 97.9217
  Prefactor  = 0.0001
  norm       = 1.02089
  norm       = 2.71854
  Normalizat = 0.590583
  Prefactor  = 1.42164
 **********
 **   18 **HESSE 
 **********

 FCN=   7875.987     FROM HESSE     STATUS=OK           330 CALLS     3493 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.1579        .34830E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    47.787        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.7829        10.026        .73598E-05   -1.5271    
   4  Prefactor     .10000E-03    36.447        .13537       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.0575        2.3803        .34938E-05   -1.5258    
   6  Prefactor     .10000E-03    18.292        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.5311        4.8705        .80750E-05   -1.5332    
   8  norm          .10000E-03    10.338        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     27.671        18.132        .30462E-05   -1.4655    
  10  Prefactor     .10000E-03    449.09        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.1393        .30661E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     25.654        38.039        .31637E-05   -1.4695    
  13  norm          10.137        10.116        .50342E-05   -1.5071    
  14  norm          .10000E-03    5.7228        .36487E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    38.856        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.9908        4.4272        .28443E-04   -1.5179    
  17  Prefactor     97.922        50.174        .81246E-05   -1.3726    
  18  Prefactor     .10000E-03    10.042        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.0209        1.1509        .38802E-05   -1.5506    
  20  norm          2.7185        3.9238        .82587E-05   -1.5378    
  21  Normalizat    .59058        .26291        .17819E-04   -1.0839    
  22  Prefactor     1.4216        .15615        .77002E-05   -.79759    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.30262e-10
Minuit parameter uncertainties:
  1  0.000109919
  2  1.99996e-05
  3  10.0298
  4  0.000226147
  5  2.38039
  6  1.20069e-05
  7  4.87106
  8  2.2894e-05
  9  18.1354
  10  0.000210465
  11  7.32602e-06
  12  38.0753
  13  10.1173
  14  1.28016e-05
  15  0.00035419
  16  4.42737
  17  50.1961
  18  7.48944e-06
  19  1.15089
  20  3.92414
  21  0.263466
  22  0.156202
Done.

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

Extracting fit parameters...

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  2.565e+01  3.808e+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.422e+00  1.562e-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:  5.906e-01  2.635e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/95659/likelihoodResults_331603201_331862401_4FGL_J0804.5+0414_daily_bin356.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) = 7875.98607777
delta logL = 0.00121804792434

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7875.98578645
delta logL = 0.00150937241779

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.909       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5511       1.0000          .0000       10.000    
     3 'Normalizat'    .58764       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4226       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=   7875.986     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      245 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.895        41.187        .80262E-04    .70383E-03
   2  Index         2.5494        1.1011        .11464E-01    .33874E-03
   3  Normalizat    .58810        .23834        .44635E-03   -.11300E-02
   4  Prefactor     1.4226        .15027        .19245E-03   -.23466E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.8945
  Index      = 2.54942
  Normalizat = 0.588097
  Prefactor  = 1.42263
 **********
 **   18 **HESSE 
 **********

 FCN=   7875.986     FROM HESSE     STATUS=OK            23 CALLS      268 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.895        39.330        .16052E-04   -1.4710    
   2  Index         2.5494        1.0501        .45854E-03   -.51222    
   3  Normalizat    .58810        .23834        .89270E-04   -1.0849    
   4  Prefactor     1.4226        .15021        .38490E-04   -.79730    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22929e-08
Minuit parameter uncertainties:
  1  39.3708
  2  1.06056
  3  0.238757
  4  0.150256
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/95659': 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) = 7875.98577991
delta logL = 0.00151590844052

Extracting fit parameters...

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  2.489e+01  3.937e+01  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.549e+00  1.061e+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.423e+00  1.503e-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:  5.881e-01  2.388e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.60
Ra Dec: 121.133 4.239

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/95659/cmap_HighResolution_331603201_331862401_4FGL_J0804.5+0414_daily_bin356.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.12e-02', job_status='DONE', photon_flux_upper_limit='1.44e-07', time_completed='2021-08-29 00:32:12.346971', job_id='95659', GAL2='1.42', fit_tolerance='1e-08', EG2='0.59', EG='0.59', time_epoch_completed='1630222332.35', return_code2='0', ts='0.60', comment='SUCCESS', return_code='0', GAL='1.42', dlogl='1.52e-03', ts2='0.61', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='356' AND source_name='4FGL J0804.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 00:32:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 95659: <4FGL_J0804.5+0414_daily_bin356> in cluster <slac> Done

Job <4FGL_J0804.5+0414_daily_bin356> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Aug 29 00:15:58 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 00:15:59 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:15:59 2021
Terminated at Sun Aug 29 00:32:12 2021
Results reported at Sun Aug 29 00:32:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0804.5+0414_daily_bin356 121.133 4.2393 331603201 331862401 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 :                                   797.29 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             314.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   973 sec.
    Turnaround time :                            974 sec.

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

