/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 73 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 = 7443
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0804.5+0414_daily_bin49
RA = 121.133, Dec = 4.2393
tmin = 252028801, tmax = 252288001
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='92440', job_status='RUN', time_executed='2021-08-29 00:07:43.000022', time_epoch_executed='1630220863.0' WHERE source_name='4FGL J0804.5+0414' and cadence='daily' and bin_id='49'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/92440

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/92440/ft1_4FGL_J0804.5+0414_daily_bin49.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/92440/ft2_4FGL_J0804.5+0414_daily_bin49.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/92440/ft1_4FGL_J0804.5+0414_daily_bin49.fits outfile=/scratch/kocevski/92440/ft1_filteredMKT_4FGL_J0804.5+0414_daily_bin49.fits ra=121.133 dec=4.2393 rad=12.0 tmin=252028801.0 tmax=252288001.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 1.76
user 1.24
sys 0.44

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/92440/ft1_filtered_4FGL_J0804.5+0414_daily_bin49.fits" evtable="EVENTS" scfile=/scratch/kocevski/92440/ft2_4FGL_J0804.5+0414_daily_bin49.fits sctable="SC_DATA" outfile=/scratch/kocevski/92440/ltcube_252028801_252288001_4FGL_J0804.5+0414_daily_bin49.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/92440/ft2_4FGL_J0804.5+0414_daily_bin49.fits
.....................!
real 12.74
user 11.93
sys 0.59

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/92440/ft1_filtered_4FGL_J0804.5+0414_daily_bin49.fits evtable="EVENTS" scfile=/scratch/kocevski/92440/ft2_4FGL_J0804.5+0414_daily_bin49.fits sctable="SC_DATA" expcube=/scratch/kocevski/92440/ltcube_252028801_252288001_4FGL_J0804.5+0414_daily_bin49.fits outfile=/scratch/kocevski/92440/expmap_252028801_252288001_4FGL_J0804.5+0414_daily_bin49.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/92440/ltcube_252028801_252288001_4FGL_J0804.5+0414_daily_bin49.fits
.....................!
real 189.77
user 185.09
sys 4.28

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/92440/ft1_filtered_4FGL_J0804.5+0414_daily_bin49.fits scfile=/scratch/kocevski/92440/ft2_4FGL_J0804.5+0414_daily_bin49.fits outfile=/scratch/kocevski/92440/cmap_252028801_252288001_4FGL_J0804.5+0414_daily_bin49.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.81
user 0.36
sys 0.41

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/92440/ft1_filtered_4FGL_J0804.5+0414_daily_bin49.fits scfile=/scratch/kocevski/92440/ft2_4FGL_J0804.5+0414_daily_bin49.fits outfile=/scratch/kocevski/92440/cmap_HighResolution_252028801_252288001_4FGL_J0804.5+0414_daily_bin49.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.36
sys 0.40

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5039       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10295E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .96958E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.3414       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.4109       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.8083       1.0000         .10000E-03   10000.    
     8 'norm      '    .12219E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    38.840       1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.291       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .33653       1.0000         .10000E-03   10000.    
    14 'norm      '    .10213E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.593       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .18763       1.0000         .10000E-03   10000.    
    19 'norm      '    2.7104       1.0000         .10000E-03   10000.    
    20 'norm      '    3.5756       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .83563       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98880       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=   9663.867     FROM MIGRAD    STATUS=CONVERGED    862 CALLS     2787 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5058        1.5535        .92060E-04    .23093E-03
   2  Prefactor     .10000E-03    16.414        .18142E-02** at limit **
   3  Prefactor     .10000E-03    2.4594        .15016E-02** at limit **
   4  Prefactor     .10004E-03    136.66        .73410E-02** at limit **
   5  norm          2.3411        1.2583        .77697E-04    .15364E-03
   6  Prefactor     2.4059        15.392        .26366E-03   -.27855E-04
   7  Prefactor     2.8073        2.1528        .12020E-03   -.20051E-04
   8  norm          .10000E-03    8.3111        .18142E-02** at limit **
   9  Prefactor     38.831        12.779        .64313E-04    .16079E-03
  10  Prefactor     24.374        76.557        .81275E-04   -.10183E-04
  11  Prefactor     .10000E-03    1.8908        .13182E-02** at limit **
  12  Prefactor     .10000E-03    8.1530        .18142E-02** at limit **
  13  norm          .33404        22.667        .38805E-02   -.42093E-03
  14  norm          .10000E-03    3.3310        .16050E-02** at limit **
  15  norm          .10000E-03    8.3323        .18142E-02** at limit **
  16  norm          .10000E-03    1.0152        .96233E-03** at limit **
  17  Prefactor     12.594        26.466        .11288E-03    .55394E-04
  18  Prefactor     .14810        11.439        .74951E-01    .38369E-03
  19  norm          2.7102        .94970        .53738E-04    .21579E-03
  20  norm          3.5745        3.7334        .18858E-03    .11093E-04
  21  Normalizat    .83581        .18218        .30852E-03    .22220E-03
  22  Prefactor     .98895        .11268        .18616E-03    .55297E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.50579
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100042
  norm       = 2.3411
  Prefactor  = 2.40589
  Prefactor  = 2.80733
  norm       = 0.0001
  Prefactor  = 38.8307
  Prefactor  = 24.3738
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.33404
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 12.5943
  Prefactor  = 0.148104
  norm       = 2.7102
  norm       = 3.57449
  Normalizat = 0.835807
  Prefactor  = 0.988954
 **********
 **   18 **HESSE 
 **********

 FCN=   9663.867     FROM HESSE     STATUS=OK           332 CALLS     3119 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5058        1.5528        .36824E-05   -1.5391    
   2  Prefactor     .10000E-03    16.415        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.4597        .30032E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10004E-03    141.72        .29364E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.3411        1.2581        .31079E-05   -1.5402    
   6  Prefactor     2.4059        15.393        .10546E-04   -1.5398    
   7  Prefactor     2.8073        2.1525        .48081E-05   -1.5373    
   8  norm          .10000E-03    8.3118        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     38.831        12.778        .12863E-04   -1.4461    
  10  Prefactor     24.374        76.555        .16255E-04   -1.4720    
  11  Prefactor     .10000E-03    1.8909        .26364E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.1536        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .33404        22.869        .15522E-03   -1.5592    
  14  norm          .10000E-03    3.4174        .64199E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    8.3336        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.0153        .19247E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.594        26.465        .45151E-05   -1.4998    
  18  Prefactor     .14810        9.9021        .82065E-01   -1.5631    
  19  norm          2.7102        .94956        .21495E-05   -1.5379    
  20  norm          3.5745        3.7332        .75430E-05   -1.5330    
  21  Normalizat    .83581        .18190        .12341E-04   -.98754    
  22  Prefactor     .98895        .11273        .37232E-04   -.93099    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.63097e-09
Minuit parameter uncertainties:
  1  1.55287
  2  9.52891e-06
  3  2.86298e-06
  4  0.00491505
  5  1.25815
  6  12.1754
  7  2.15253
  8  5.05252e-06
  9  12.7784
  10  76.8657
  11  3.59963e-06
  12  8.51911e-06
  13  5.5292
  14  7.928e-05
  15  1.35301e-05
  16  3.26239e-06
  17  26.4892
  18  2.42162
  19  0.949568
  20  3.73349
  21  0.182035
  22  0.112753
Done.

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

Extracting fit parameters...

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  8.519e-06  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:  9.890e-01  1.128e-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:  8.358e-01  1.820e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/92440/likelihoodResults_252028801_252288001_4FGL_J0804.5+0414_daily_bin49.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): 102
logL (Free Index) = 9663.86795819
delta logL = -0.000584539682677

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9663.86737357
delta logL = 8.67057678988e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4725       1.0000          .0000       10.000    
     3 'Normalizat'    .83580       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98896       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=   9663.867     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      252 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10252E-03    10.542        .18142E-01** at limit **
   2  Index         2.3775        6.3775        .50000        .15196E-04
   3  Normalizat    .83581        .43281E-02    .30852E-03   -.28743E-05
   4  Prefactor     .98895        .28381E-02    .18616E-03   -.46412E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010252
  Index      = 2.37755
  Normalizat = 0.835808
  Prefactor  = 0.988953
 **********
 **   18 **HESSE 
 **********

 FCN=   9663.867     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      281 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10252E-03    84.725        .28435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3775        8.6666        .50000       -.55212    
   3  Normalizat    .83581        .12353E-01    .12341E-04   -.98754    
   4  Prefactor     .98895        .81002E-02    .74465E-05   -.93099    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.13876e-09
Minuit parameter uncertainties:
  1  0.0292663
  2  447.134
  3  0.0123526
  4  0.0081002
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/92440': 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): 102
logL (Free Index) = 9663.86737333
delta logL = 3.25257133227e-07

Extracting fit parameters...

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  1.025e-04  2.927e-02  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.378e+00  4.471e+02  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:  9.890e-01  8.100e-03  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:  8.358e-01  1.235e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/92440/cmap_HighResolution_252028801_252288001_4FGL_J0804.5+0414_daily_bin49.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.71e-03', job_status='DONE', photon_flux_upper_limit='4.77e-08', time_completed='2021-08-29 00:21:38.897878', job_id='92440', GAL2='0.99', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1630221698.9', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='3.25e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='49' AND source_name='4FGL J0804.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 00:21:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 92440: <4FGL_J0804.5+0414_daily_bin49> in cluster <slac> Done

Job <4FGL_J0804.5+0414_daily_bin49> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Aug 29 00:05:35 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 00:05:36 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:05:36 2021
Terminated at Sun Aug 29 00:21:39 2021
Results reported at Sun Aug 29 00:21:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0804.5+0414_daily_bin49 121.133 4.2393 252028801 252288001 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 :                                   839.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   963 sec.
    Turnaround time :                            964 sec.

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

