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


Performing analysis on: 4FGL_J0804.5+0414_daily_bin126
RA = 121.133, Dec = 4.2393
tmin = 271987201, tmax = 272246401
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='93800', job_status='RUN', time_executed='2021-08-29 00:13:22.516167', time_epoch_executed='1630221202.52' WHERE source_name='4FGL J0804.5+0414' and cadence='daily' and bin_id='126'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/93800

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/93800/ft1_4FGL_J0804.5+0414_daily_bin126.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/93800/ft2_4FGL_J0804.5+0414_daily_bin126.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/93800/ft1_4FGL_J0804.5+0414_daily_bin126.fits outfile=/scratch/kocevski/93800/ft1_filteredMKT_4FGL_J0804.5+0414_daily_bin126.fits ra=121.133 dec=4.2393 rad=12.0 tmin=271987201.0 tmax=272246401.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 2.40
user 1.44
sys 0.94

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/93800/ft1_filtered_4FGL_J0804.5+0414_daily_bin126.fits" evtable="EVENTS" scfile=/scratch/kocevski/93800/ft2_4FGL_J0804.5+0414_daily_bin126.fits sctable="SC_DATA" outfile=/scratch/kocevski/93800/ltcube_271987201_272246401_4FGL_J0804.5+0414_daily_bin126.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/93800/ft2_4FGL_J0804.5+0414_daily_bin126.fits
.....................!
real 13.39
user 12.11
sys 1.17

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/93800/ft1_filtered_4FGL_J0804.5+0414_daily_bin126.fits evtable="EVENTS" scfile=/scratch/kocevski/93800/ft2_4FGL_J0804.5+0414_daily_bin126.fits sctable="SC_DATA" expcube=/scratch/kocevski/93800/ltcube_271987201_272246401_4FGL_J0804.5+0414_daily_bin126.fits outfile=/scratch/kocevski/93800/expmap_271987201_272246401_4FGL_J0804.5+0414_daily_bin126.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/93800/ltcube_271987201_272246401_4FGL_J0804.5+0414_daily_bin126.fits
.....................!
real 194.18
user 187.29
sys 5.50

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/93800/ft1_filtered_4FGL_J0804.5+0414_daily_bin126.fits scfile=/scratch/kocevski/93800/ft2_4FGL_J0804.5+0414_daily_bin126.fits outfile=/scratch/kocevski/93800/cmap_271987201_272246401_4FGL_J0804.5+0414_daily_bin126.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.29
user 0.36
sys 0.91

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/93800/ft1_filtered_4FGL_J0804.5+0414_daily_bin126.fits scfile=/scratch/kocevski/93800/ft2_4FGL_J0804.5+0414_daily_bin126.fits outfile=/scratch/kocevski/93800/cmap_HighResolution_271987201_272246401_4FGL_J0804.5+0414_daily_bin126.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.30
user 0.37
sys 0.92

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    35.670       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.5695       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10148E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11689E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.7195       1.0000         .10000E-03   10000.    
     8 'norm      '    .30938E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.166       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .27647E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10999E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.1455       1.0000         .10000E-03   10000.    
    13 'norm      '    .20210E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    3.2137       1.0000         .10000E-03   10000.    
    15 'norm      '    .16825E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11798E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .29581E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .29153       1.0000         .10000E-03   10000.    
    20 'norm      '    4.8887       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .73766       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.3254       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=   9049.554     FROM MIGRAD    STATUS=CONVERGED    522 CALLS     2410 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .65299       -.10983E-06** at limit **
   2  Prefactor     35.855        40.926       -.14183E-05   -.34461E-04
   3  Prefactor     9.5635        7.6193       -.95451E-06   -.23622E-03
   4  Prefactor     .10000E-03    10.183       -.43265E-07** at limit **
   5  norm          .10000E-03    .54788       -.10996E-06** at limit **
   6  Prefactor     .10000E-03    10.953       -.11231E-06** at limit **
   7  Prefactor     1.7206        2.2754       -.36152E-06    .31270E-03
   8  norm          .10000E-03    9.8163       -.15069E-06** at limit **
   9  Prefactor     16.160        10.469       -.82862E-06   -.22130E-03
  10  Prefactor     .10000E-03    39.857        .21467E-05** at limit **
  11  Prefactor     .10000E-03    2.3509        .65629E-07** at limit **
  12  Prefactor     6.2106        22.169        .19516E-05    .12339E-03
  13  norm          .10001E-03    24.379        .82955E-05** at limit **
  14  norm          3.2178        2.6793       -.16422E-06    .34290E-03
  15  norm          .10000E-03    16.155       -.54632E-06** at limit **
  16  norm          .10000E-03    .98857        .17083E-07** at limit **
  17  Prefactor     .10000E-03    18.453        .47359E-05** at limit **
  18  Prefactor     .10000E-03    4.4270       -.25285E-07** at limit **
  19  norm          .29166        .79658       -.71445E-06    .14857E-02
  20  norm          4.8870        6.8003       -.87496E-06   -.95511E-05
  21  Normalizat    .73772        .18208        .19566E-05    .38599E-03
  22  Prefactor     1.3253        .11863        .49410E-06    .55420E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 35.8545
  Prefactor  = 9.56355
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.72059
  norm       = 0.0001
  Prefactor  = 16.1601
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 6.21059
  norm       = 0.000100006
  norm       = 3.21776
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.291663
  norm       = 4.88698
  Normalizat = 0.737716
  Prefactor  = 1.32532
 **********
 **   18 **HESSE 
 **********

 FCN=   9049.554     FROM HESSE     STATUS=OK           342 CALLS     2752 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.0168        .14827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     35.855        40.960        .67101E-04   -1.4510    
   3  Prefactor     9.5635        7.6639        .12954E-03   -1.5089    
   4  Prefactor     .10000E-03    10.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.0656        .13656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.7206        2.2674        .15764E-03   -1.5446    
   8  norm          .10000E-03    9.8656        .21377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.160        10.522        .99612E-04   -1.4904    
  10  Prefactor     .10000E-03    39.966        .19915E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.3554        .14240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.2106        22.331        .16195E-03   -1.5209    
  13  norm          .10001E-03    24.986        .37179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.2178        2.6755        .13644E-03   -1.5349    
  15  norm          .10000E-03    16.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .99897        .92337E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    18.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.4517        .19545E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .29166        .82329        .13522E-03   -1.5600    
  20  norm          4.8870        6.7831        .18192E-03   -1.5266    
  21  Normalizat    .73772        .19939        .36101E-03   -1.0242    
  22  Prefactor     1.3253        .13123        .18571E-03   -.82557    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28573e-09
Minuit parameter uncertainties:
  1  2.63225e-06
  2  40.9921
  3  7.66472
  4  1.34313e-05
  5  1.11622e-05
  6  2.07775e-05
  7  2.26756
  8  7.77131e-06
  9  10.5233
  10  0.000320728
  11  1.74567e-06
  12  22.3614
  13  0.000774471
  14  2.67563
  15  0.000218665
  16  4.66803e-06
  17  0.000428704
  18  1.13599e-05
  19  0.823327
  20  6.78416
  21  0.199584
  22  0.131262
Done.

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

Extracting fit parameters...

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  6.211e+00  2.236e+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.325e+00  1.313e-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:  7.377e-01  1.996e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 121.133 4.239
Photon Flux Upper Limit: 8.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/93800/likelihoodResults_271987201_272246401_4FGL_J0804.5+0414_daily_bin126.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) = 9049.16844358
delta logL = 0.385865045952

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9049.15892215
delta logL = 0.395386481321

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6318       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7028       1.0000          .0000       10.000    
     3 'Normalizat'    .68876       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3433       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9049.159     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      269 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6129        80.070        .93505E-03   -.19889E-03
   2  Index         3.7048        4.0359        .74018E-02   -.24126E-04
   3  Normalizat    .68879        .19806        .37292E-03   -.42070E-04
   4  Prefactor     1.3432        .12862        .18465E-03   -.75732E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.61288
  Index      = 3.70483
  Normalizat = 0.688791
  Prefactor  = 1.34324
 **********
 **   18 **HESSE 
 **********

 FCN=   9049.159     FROM HESSE     STATUS=OK            27 CALLS      296 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6129        10.690        .37402E-04   -1.5278    
   2  Index         3.7048        1.3079        .29607E-03   -.26202    
   3  Normalizat    .68879        .19785        .14917E-04   -1.0434    
   4  Prefactor     1.3432        .12794        .73858E-05   -.82030    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.19894e-11
Minuit parameter uncertainties:
  1  10.6941
  2  1.32442
  3  0.19805
  4  0.127967
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/93800': 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) = 9049.15892049
delta logL = 0.395388144942

Extracting fit parameters...

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  4.613e+00  1.069e+01  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  3.705e+00  1.324e+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.343e+00  1.280e-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.888e-01  1.981e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.01
Ra Dec: 121.133 4.239
Photon Index (Free Index): 3.70 +/- 1.32
Photon Flux (Free Index): 4.52e-08 +/- 5.51e-08
Energy Flux (Free Index): 7.16e-06 +/- 8.43e-06

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/93800/cmap_HighResolution_271987201_272246401_4FGL_J0804.5+0414_daily_bin126.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.62e-03', comment='SUCCESS', energy_flux2='7.16e-06', dlogl='3.95e-01', photon_flux2='4.52e-08', job_status='DONE', time_completed='2021-08-29 00:26:46.978483', photon_index_error2='1.32', photon_index2='3.70', ts='0.09', fit_tolerance='1e-08', GAL='1.33', photon_index_error='0.00', photon_flux_upper_limit='8.52e-08', energy_flux_error2='8.43e-06', EG='0.74', time_epoch_completed='1630222006.98', return_code='0', job_id='93800', GAL2='1.34', EG2='0.69', return_code2='0', photon_flux_error2='5.51e-08', ts2='1.01', photon_index='2.49' WHERE bin_id='126' AND source_name='4FGL J0804.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 00:26:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 93800: <4FGL_J0804.5+0414_daily_bin126> in cluster <slac> Done

Job <4FGL_J0804.5+0414_daily_bin126> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Aug 29 00:10:22 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 00:10:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 00:10:24 2021
Terminated at Sun Aug 29 00:26:47 2021
Results reported at Sun Aug 29 00:26:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0804.5+0414_daily_bin126 121.133 4.2393 271987201 272246401 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 :                                   813.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             291.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   983 sec.
    Turnaround time :                            985 sec.

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

