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


Performing analysis on: 4FGL_J0804.5+0414_daily_bin979
RA = 121.133, Dec = 4.2393
tmin = 493084801, tmax = 493344001
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='100910', job_status='RUN', time_executed='2021-08-29 00:34:16.646410', time_epoch_executed='1630222456.65' WHERE source_name='4FGL J0804.5+0414' and cadence='daily' and bin_id='979'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/100910

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/100910/ft1_4FGL_J0804.5+0414_daily_bin979.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/100910/ft2_4FGL_J0804.5+0414_daily_bin979.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/100910/ft1_4FGL_J0804.5+0414_daily_bin979.fits outfile=/scratch/kocevski/100910/ft1_filteredMKT_4FGL_J0804.5+0414_daily_bin979.fits ra=121.133 dec=4.2393 rad=12.0 tmin=493084801.0 tmax=493344001.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 5.96
user 3.33
sys 2.58

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/100910/ft2_4FGL_J0804.5+0414_daily_bin979.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/100910/ft1_filteredMKT_4FGL_J0804.5+0414_daily_bin979.fits evtable="EVENTS" outfile="/scratch/kocevski/100910/ft1_filtered_4FGL_J0804.5+0414_daily_bin979.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 2.66
user 0.31
sys 2.34

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/100910/ft1_filtered_4FGL_J0804.5+0414_daily_bin979.fits" evtable="EVENTS" scfile=/scratch/kocevski/100910/ft2_4FGL_J0804.5+0414_daily_bin979.fits sctable="SC_DATA" outfile=/scratch/kocevski/100910/ltcube_493084801_493344001_4FGL_J0804.5+0414_daily_bin979.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/100910/ft2_4FGL_J0804.5+0414_daily_bin979.fits
.....................!
real 14.30
user 11.22
sys 3.04

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/100910/ft1_filtered_4FGL_J0804.5+0414_daily_bin979.fits evtable="EVENTS" scfile=/scratch/kocevski/100910/ft2_4FGL_J0804.5+0414_daily_bin979.fits sctable="SC_DATA" expcube=/scratch/kocevski/100910/ltcube_493084801_493344001_4FGL_J0804.5+0414_daily_bin979.fits outfile=/scratch/kocevski/100910/expmap_493084801_493344001_4FGL_J0804.5+0414_daily_bin979.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/100910/ltcube_493084801_493344001_4FGL_J0804.5+0414_daily_bin979.fits
.....................!
real 192.55
user 185.10
sys 7.12

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/100910/ft1_filtered_4FGL_J0804.5+0414_daily_bin979.fits scfile=/scratch/kocevski/100910/ft2_4FGL_J0804.5+0414_daily_bin979.fits outfile=/scratch/kocevski/100910/cmap_493084801_493344001_4FGL_J0804.5+0414_daily_bin979.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.85
user 0.37
sys 2.45

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/100910/ft1_filtered_4FGL_J0804.5+0414_daily_bin979.fits scfile=/scratch/kocevski/100910/ft2_4FGL_J0804.5+0414_daily_bin979.fits outfile=/scratch/kocevski/100910/cmap_HighResolution_493084801_493344001_4FGL_J0804.5+0414_daily_bin979.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.67
user 0.37
sys 2.29

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .49814       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .71743       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.7512       1.0000         .10000E-03   10000.    
     5 'norm      '    1.7802       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.2623       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    28.359       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.0313       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.925       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.9807       1.0000         .10000E-03   10000.    
    16 'norm      '    13.997       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.6877       1.0000         .10000E-03   10000.    
    19 'norm      '    .27646E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.4531       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0896       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1315       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=   6878.357     FROM MIGRAD    STATUS=CONVERGED    471 CALLS     2449 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .49820        1.1171       -.37432E-08   -.65155E-04
   2  Prefactor     .10000E-03    11.081       -.42223E-06** at limit **
   3  Prefactor     .71666        1.3266        .77124E-06   -.36419E-02
   4  Prefactor     1.7516        55.518        .70380E-06   -.18575E-03
   5  norm          1.7801        1.5711       -.94326E-07   -.13359E-03
   6  Prefactor     3.2617        49.299       -.10223E-05   -.23102E-05
   7  Prefactor     .10000E-03    2.3363        .78894E-07** at limit **
   8  norm          28.356        21.284       -.10940E-05   -.20568E-04
   9  Prefactor     9.0295        10.622        .10343E-05   -.17875E-04
  10  Prefactor     .10000E-03    46.931        .12796E-05** at limit **
  11  Prefactor     .10000E-03    1.9758       -.18997E-07** at limit **
  12  Prefactor     15.963        46.132        .69814E-04    .12000E-03
  13  norm          .10000E-03    6.9356        .81039E-07** at limit **
  14  norm          .10000E-03    .73924        .47368E-07** at limit **
  15  norm          8.9701        30.470       -.36610E-04   -.18173E-03
  16  norm          13.996        5.9622       -.13400E-05   -.13478E-03
  17  Prefactor     .10000E-03    9.7523        .30364E-06** at limit **
  18  Prefactor     4.6876        5.9977        .11122E-06   -.19049E-04
  19  norm          .10000E-03    .57376        .29648E-06** at limit **
  20  norm          4.4535        5.4531        .17236E-06   -.16291E-03
  21  Normalizat    1.0897        .21091       -.48884E-05   -.83409E-06
  22  Prefactor     1.1315        .13072        .95205E-06   -.35949E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.498196
  Prefactor  = 0.0001
  Prefactor  = 0.716656
  Prefactor  = 1.75162
  norm       = 1.78013
  Prefactor  = 3.26167
  Prefactor  = 0.0001
  norm       = 28.3563
  Prefactor  = 9.02951
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.9629
  norm       = 0.0001
  norm       = 0.0001
  norm       = 8.97015
  norm       = 13.9961
  Prefactor  = 0.0001
  Prefactor  = 4.68764
  norm       = 0.0001
  norm       = 4.45352
  Normalizat = 1.08966
  Prefactor  = 1.13149
 **********
 **   18 **HESSE 
 **********

 FCN=   6878.357     FROM HESSE     STATUS=OK           350 CALLS     2799 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .49820        .92878        .12621E-02   -1.5567    
   2  Prefactor     .10000E-03    11.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .71666        6.2136        .19972E-02   -1.5539    
   4  Prefactor     1.7516        57.389        .15841E-02   -1.5443    
   5  norm          1.7801        1.5675        .93492E-04   -1.5441    
   6  Prefactor     3.2617        49.329        .22422E-03   -1.5347    
   7  Prefactor     .10000E-03    2.4422        .24723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          28.356        21.273        .75232E-04   -1.4642    
   9  Prefactor     9.0295        10.616        .13337E-03   -1.5107    
  10  Prefactor     .10000E-03    46.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.9768        .11385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     15.963        46.158        .10036E-03   -1.4909    
  13  norm          .10000E-03    6.9673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .74452        .69631E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.9701        30.544        .13375E-03   -1.5109    
  16  norm          13.996        5.9630        .10706E-03   -1.4960    
  17  Prefactor     .10000E-03    9.7550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.6876        5.9951        .18587E-03   -1.5275    
  19  norm          .10000E-03    6.5188        .11853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.4535        5.4482        .95409E-03   -1.5286    
  21  Normalizat    1.0897        .23486        .32119E-03   -.90084    
  22  Prefactor     1.1315        .14887        .20047E-03   -.88466    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.79121e-08
Minuit parameter uncertainties:
  1  0.928804
  2  2.46943e-07
  3  4.22071
  4  20.0726
  5  1.56751
  6  25.3936
  7  1.28065e-05
  8  21.2783
  9  10.6185
  10  2.48598e-05
  11  7.16362e-07
  12  46.262
  13  1.0488e-05
  14  1.16512e-06
  15  30.5967
  16  5.96328
  17  1.62025e-05
  18  5.99585
  19  7.90636e-05
  20  5.44883
  21  0.23509
  22  0.148928
Done.

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

Extracting fit parameters...

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  1.596e+01  4.626e+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.131e+00  1.489e-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.090e+00  2.351e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/100910/likelihoodResults_493084801_493344001_4FGL_J0804.5+0414_daily_bin979.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) = 6878.0551441
delta logL = 0.302172791912

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6878.05091372
delta logL = 0.306403172448

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4055       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6518       1.0000          .0000       10.000    
     3 'Normalizat'    1.0459       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1488       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=   6878.051     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      309 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3583        424.04        .79292E-03   -.32881E-03
   2  Index         3.6558        6.3971        .80925E-02   -.58153E-04
   3  Normalizat    1.0464        .19773        .32682E-03   -.21741E-04
   4  Prefactor     1.1484        .12600        .19917E-03    .18920E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.3583
  Index      = 3.65581
  Normalizat = 1.04638
  Prefactor  = 1.14844
 **********
 **   18 **HESSE 
 **********

 FCN=   6878.051     FROM HESSE     STATUS=OK            25 CALLS      334 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3583        24.279        .31717E-04   -1.5204    
   2  Index         3.6558        2.0510        .32370E-03   -.27219    
   3  Normalizat    1.0464        .23604        .13073E-04   -.91492    
   4  Prefactor     1.1484        .14614        .39833E-04   -.87933    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83564e-10
Minuit parameter uncertainties:
  1  24.3163
  2  2.11866
  3  0.236272
  4  0.146187
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/100910': 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) = 6878.05090893
delta logL = 0.30640796264

Extracting fit parameters...

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  6.358e+00  2.432e+01  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  3.656e+00  2.119e+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.148e+00  1.462e-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.046e+00  2.363e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/100910/cmap_HighResolution_493084801_493344001_4FGL_J0804.5+0414_daily_bin979.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-02', job_status='DONE', photon_flux_upper_limit='1.33e-07', time_completed='2021-08-29 00:46:11.913185', job_id='100910', GAL2='1.15', fit_tolerance='1e-08', EG2='1.05', EG='1.09', time_epoch_completed='1630223171.91', return_code2='0', ts='0.20', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='3.06e-01', ts2='0.88', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='979' AND source_name='4FGL J0804.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 00:46:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0137>
Subject: Job 100910: <4FGL_J0804.5+0414_daily_bin979> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0804.5+0414_daily_bin979 121.133 4.2393 493084801 493344001 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 :                                   744.12 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             266.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   938 sec.
    Turnaround time :                            940 sec.

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

