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


Performing analysis on: 4FGL_J1404.8+6554_daily_bin75
RA = 211.216, Dec = 65.9048
tmin = 258768001, tmax = 259027201
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='166269', job_status='RUN', time_executed='2021-09-08 23:54:35.013407', time_epoch_executed='1631170475.01' WHERE source_name='4FGL J1404.8+6554' and cadence='daily' and bin_id='75'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/166269

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/166269/ft1_4FGL_J1404.8+6554_daily_bin75.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/166269/ft2_4FGL_J1404.8+6554_daily_bin75.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/166269/ft1_4FGL_J1404.8+6554_daily_bin75.fits outfile=/scratch/kocevski/166269/ft1_filteredMKT_4FGL_J1404.8+6554_daily_bin75.fits ra=211.216 dec=65.9048 rad=12.0 tmin=258768001.0 tmax=259027201.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.11
user 0.94
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/166269/ft2_4FGL_J1404.8+6554_daily_bin75.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/166269/ft2_4FGL_J1404.8+6554_daily_bin75.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/166269/ft1_filteredMKT_4FGL_J1404.8+6554_daily_bin75.fits evtable="EVENTS" outfile="/scratch/kocevski/166269/ft1_filtered_4FGL_J1404.8+6554_daily_bin75.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.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/166269/ft1_filtered_4FGL_J1404.8+6554_daily_bin75.fits" evtable="EVENTS" scfile=/scratch/kocevski/166269/ft2_4FGL_J1404.8+6554_daily_bin75.fits sctable="SC_DATA" outfile=/scratch/kocevski/166269/ltcube_258768001_259027201_4FGL_J1404.8+6554_daily_bin75.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/166269/ft2_4FGL_J1404.8+6554_daily_bin75.fits
.....................!
real 8.73
user 8.39
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/166269/ft1_filtered_4FGL_J1404.8+6554_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/166269/ft2_4FGL_J1404.8+6554_daily_bin75.fits sctable="SC_DATA" expcube=/scratch/kocevski/166269/ltcube_258768001_259027201_4FGL_J1404.8+6554_daily_bin75.fits outfile=/scratch/kocevski/166269/expmap_258768001_259027201_4FGL_J1404.8+6554_daily_bin75.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/166269/ltcube_258768001_259027201_4FGL_J1404.8+6554_daily_bin75.fits
.....................!
real 197.48
user 193.21
sys 3.89

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
Added 223 point sources and 0 extended sources

Setting source of interest to:
4FGL J1404.8+6554 @ 211.216 65.9048

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/166269/ft1_filtered_4FGL_J1404.8+6554_daily_bin75.fits scfile=/scratch/kocevski/166269/ft2_4FGL_J1404.8+6554_daily_bin75.fits outfile=/scratch/kocevski/166269/cmap_258768001_259027201_4FGL_J1404.8+6554_daily_bin75.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=211.216 yref=65.9048 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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/166269/ft1_filtered_4FGL_J1404.8+6554_daily_bin75.fits scfile=/scratch/kocevski/166269/ft2_4FGL_J1404.8+6554_daily_bin75.fits outfile=/scratch/kocevski/166269/cmap_HighResolution_258768001_259027201_4FGL_J1404.8+6554_daily_bin75.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=211.216 yref=65.9048 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.54
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/166269/ft1_filtered_4FGL_J1404.8+6554_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/166269/ft2_4FGL_J1404.8+6554_daily_bin75.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/166269/Model_4FGL_J1404.8+6554_daily_bin75.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
Working on...
/scratch/kocevski/166269/ft1_filtered_4FGL_J1404.8+6554_daily_bin75.fits.....................!
real 40.98
user 39.74
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/166269/ft1_filtered_4FGL_J1404.8+6554_daily_bin75.fits', '/scratch/kocevski/166269/ft2_4FGL_J1404.8+6554_daily_bin75.fits', expMap='/scratch/kocevski/166269/expmap_258768001_259027201_4FGL_J1404.8+6554_daily_bin75.fits', expCube='/scratch/kocevski/166269/ltcube_258768001_259027201_4FGL_J1404.8+6554_daily_bin75.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/166269/Model_4FGL_J1404.8+6554_daily_bin75.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1404.8+6554'

4FGL J1404.8+6554
   Spectrum: PowerLaw
366    Prefactor:  7.015e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
367        Index:  1.926e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
368        Scale:  2.467e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/166269/ft1_filtered_4FGL_J1404.8+6554_daily_bin75.fits
Spacecraft file(s): /scratch/kocevski/166269/ft2_4FGL_J1404.8+6554_daily_bin75.fits
Exposure map: /scratch/kocevski/166269/expmap_258768001_259027201_4FGL_J1404.8+6554_daily_bin75.fits
Exposure cube: /scratch/kocevski/166269/ltcube_258768001_259027201_4FGL_J1404.8+6554_daily_bin75.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/166269/Model_4FGL_J1404.8+6554_daily_bin75.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) = 3822.81124269

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.2804       1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.7997       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.731       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.9717       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.434       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10609E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10235E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.600       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    32.597       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14623       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.3878       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.5581       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    14.746       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .62523       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.3355       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3822.680     FROM MIGRAD    STATUS=CONVERGED    793 CALLS     3475 TOTAL
                     EDM=   .19E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.2887        29.176        .11446E-05   -.32517E-05
   2  norm          .10000E-03    11.634        .43310E-06** at limit **
   3  norm          6.7996        4.4372        .37593E-07   -.12774E-04
   4  Prefactor     16.825        41.396        .72739E-06   -.24847E-05
   5  Prefactor     8.9771        16.841        .74591E-06   -.30457E-05
   6  Prefactor     .10000E-03    55.871        .20474E-06** at limit **
   7  Prefactor     .10000E-03    13.706        .48748E-07** at limit **
   8  Prefactor     .10000E-03    30.910        .10696E-06** at limit **
   9  Prefactor     10.439        6.8738        .24935E-06   -.23074E-04
  10  Prefactor     .10000E-03    10.080        .12858E-06** at limit **
  11  Prefactor     .10000E-03    28.206        .15697E-06** at limit **
  12  Prefactor     .10000E-03    15.815        .27764E-07** at limit **
  13  Prefactor     .10000E-03    8.1989        .91060E-07** at limit **
  14  norm          .10000E-03    35.679       -.14505E-07** at limit **
  15  Prefactor     10.623        31.513        .23402E-05   -.63626E-05
  16  norm          .10000E-03    1.2590        .31856E-07** at limit **
  17  Prefactor     32.609        40.281        .32104E-07   -.24038E-05
  18  Prefactor     .10006E-03    9568.4       -.19644E-03** at limit **
  19  Prefactor     2.3880        3.1161        .18559E-06    .10574E-05
  20  Prefactor     .10000E-03    8.2765        .24875E-07** at limit **
  21  Prefactor     .10000E-03    53.880        .19746E-08** at limit **
  22  Prefactor     .10000E-03    11.694        .21606E-07** at limit **
  23  Prefactor     .10000E-03    10.211        .10970E-06** at limit **
  24  Prefactor     8.5697        39.198        .26015E-05   -.38728E-05
  25  Prefactor     .10000E-03    2.6138        .33689E-07** at limit **
  26  Prefactor     .10000E-03    25.021        .73100E-06** at limit **
  27  Prefactor     .10000E-03    22.315        .17046E-06** at limit **
  28  norm          14.746        5.6342        .10153E-06   -.17713E-04
  29  Prefactor     .10000E-03    51.458        .10301E-06** at limit **
  30  Normalizat    .62510        .20505       -.19418E-05   -.60247E-04
  31  Prefactor     1.3354        .22651       -.19388E-05   -.41859E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.28871
  norm       = 0.0001
  norm       = 6.79965
  Prefactor  = 16.8255
  Prefactor  = 8.97711
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.4387
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.623
  norm       = 0.0001
  Prefactor  = 32.6094
  Prefactor  = 0.000100058
  Prefactor  = 2.38797
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.5697
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.7463
  Prefactor  = 0.0001
  Normalizat = 0.625103
  Prefactor  = 1.33543
 **********
 **   18 **HESSE 
 **********

 FCN=   3822.680     FROM HESSE     STATUS=OK           610 CALLS     4085 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.2887        29.211        .13932E-03   -1.5132    
   2  norm          .10000E-03    12.154        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.7996        4.4325        .97965E-04   -1.5186    
   4  Prefactor     16.825        41.394        .97917E-04   -1.4887    
   5  Prefactor     8.9771        16.866        .13381E-03   -1.5109    
   6  Prefactor     .10000E-03    55.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    30.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.439        6.8954        .12171E-03   -1.5062    
  10  Prefactor     .10000E-03    10.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    28.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.2501        .17288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    35.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.623        31.533        .12306E-03   -1.5056    
  16  norm          .10000E-03    1.2619        .67754E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     32.609        40.280        .70183E-04   -1.4565    
  18  Prefactor     .10006E-03    9542.7        .19459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.3880        3.1046        .12083E-03   -1.5399    
  20  Prefactor     .10000E-03    8.2817        .17374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    53.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    10.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.5697        39.205        .13703E-03   -1.5122    
  25  Prefactor     .10000E-03    2.6148        .97628E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    25.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    22.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          14.746        5.6344        .88133E-04   -1.4940    
  29  Prefactor     .10000E-03    51.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .62510        .24805        .27081E-03   -1.0693    
  31  Prefactor     1.3354        .27322        .21947E-03   -.82260    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.78541e-11
Minuit parameter uncertainties:
  1  29.2618
  2  7.13682e-05
  3  4.43268
  4  41.4648
  5  16.8751
  6  6.96593e-05
  7  8.40177e-06
  8  2.5009e-05
  9  6.89592
  10  1.7062e-05
  11  4.91072e-05
  12  3.41578e-05
  13  2.55873e-05
  14  9.85616e-06
  15  31.5825
  16  1.80565e-06
  17  40.3132
  18  0.0611032
  19  3.10484
  20  4.46287e-06
  21  2.64883e-05
  22  3.94089e-06
  23  1.56336e-05
  24  36.6987
  25  2.32217e-06
  26  0.000125733
  27  2.47864e-05
  28  5.63458
  29  1.8561e-05
  30  0.248492
  31  0.273513
Done.

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

Extracting fit parameters...

4FGL J1404.8+6554
   Spectrum: PowerLaw
366    Prefactor:  3.261e+01  4.031e+01  1.000e-04  1.000e+04 ( 1.000e-14)
367        Index:  1.926e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
368        Scale:  2.467e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
711    Prefactor:  1.335e+00  2.735e-01  0.000e+00  1.000e+01 ( 1.000e+00)
712        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
713        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
710   Normalization:  6.251e-01  2.485e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.26
Ra Dec: 211.216 65.905
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 1.69e-08 +/- 2.09e-08
Energy Flux (Fixed Index): 1.41e-05 +/- 1.74e-05

TS (Fixed Index): 1.26
Ra Dec: 211.216 65.905
Photon Flux Upper Limit: 7.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/166269/likelihoodResults_258768001_259027201_4FGL_J1404.8+6554_daily_bin75.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) = 3822.53627057
delta logL = 0.143440777665

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3822.53484447
delta logL = 0.144866878618

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.442       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4408       1.0000          .0000       10.000    
     3 'Normalizat'    .60935       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3452       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7140E+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=   3822.535     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      300 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.445        44.442        .95900E-04    .11570E-03
   2  Index         2.4407        1.2607        .61180E-02    .59063E-04
   3  Normalizat    .60953        .23941        .27397E-03    .18682E-03
   4  Prefactor     1.3449        .27164        .21875E-03    .28879E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.4451
  Index      = 2.44069
  Normalizat = 0.609528
  Prefactor  = 1.34491
 **********
 **   18 **HESSE 
 **********

 FCN=   3822.535     FROM HESSE     STATUS=OK            25 CALLS      325 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.445        35.766        .38360E-05   -1.4872    
   2  Index         2.4407        1.0182        .24472E-03   -.53735    
   3  Normalizat    .60953        .23813        .10959E-04   -1.0758    
   4  Prefactor     1.3449        .27102        .43750E-04   -.81981    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31887e-10
Minuit parameter uncertainties:
  1  35.8104
  2  1.02801
  3  0.23853
  4  0.271304
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/166269': 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) = 3822.534844
delta logL = 0.144867350525

Extracting fit parameters...

4FGL J1404.8+6554
   Spectrum: PowerLaw
366    Prefactor:  1.745e+01  3.581e+01  1.000e-04  1.000e+04 ( 1.000e-14)
367        Index:  2.441e+00  1.028e+00  0.000e+00  1.000e+01 (-1.000e+00)
368        Scale:  2.467e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
711    Prefactor:  1.345e+00  2.713e-01  0.000e+00  1.000e+01 ( 1.000e+00)
712        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
713        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
710   Normalization:  6.095e-01  2.385e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.55
Ra Dec: 211.216 65.905
Photon Index (Free Index): 2.44 +/- 1.03
Photon Flux (Free Index): 3.03e-08 +/- 4.15e-08
Energy Flux (Free Index): 9.42e-06 +/- 1.10e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/166269/cmap_HighResolution_258768001_259027201_4FGL_J1404.8+6554_daily_bin75.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.78e-03', comment='SUCCESS', photon_flux='1.69e-08', energy_flux2='9.42e-06', photon_flux_error='2.09e-08', dlogl='1.45e-01', energy_flux='1.41e-05', photon_flux2='3.03e-08', job_status='DONE', time_completed='2021-09-09 00:06:17.220178', photon_index_error2='1.03', photon_index2='2.44', ts='1.26', fit_tolerance='1e-08', GAL='1.34', photon_index_error='0.00', photon_flux_upper_limit='7.75e-08', energy_flux_error2='1.10e-05', EG='0.63', time_epoch_completed='1631171177.22', return_code='0', job_id='166269', GAL2='1.34', EG2='0.61', return_code2='0', energy_flux_error='1.74e-05', photon_flux_error2='4.15e-08', ts2='1.55', photon_index='1.93' WHERE bin_id='75' AND source_name='4FGL J1404.8+6554' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 00:06:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0138>
Subject: Job 166269: <4FGL_J1404.8+6554_daily_bin75> in cluster <slac> Done

Job <4FGL_J1404.8+6554_daily_bin75> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 23:50:34 2021
Job was executed on host(s) <bullet0138>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 23:50:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 23:50:35 2021
Terminated at Thu Sep  9 00:06:17 2021
Results reported at Thu Sep  9 00:06:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1404.8+6554_daily_bin75 211.216 65.9048 258768001 259027201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1404.8+6554 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   703.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             258.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            943 sec.

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

