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


Performing analysis on: 4FGL_J1404.8+6554_daily_bin56
RA = 211.216, Dec = 65.9048
tmin = 253843201, tmax = 254102401
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='166241', job_status='RUN', time_executed='2021-09-08 23:50:42.051956', time_epoch_executed='1631170242.05' WHERE source_name='4FGL J1404.8+6554' and cadence='daily' and bin_id='56'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/166241

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/166241/ft1_4FGL_J1404.8+6554_daily_bin56.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/166241/ft2_4FGL_J1404.8+6554_daily_bin56.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/166241/ft1_4FGL_J1404.8+6554_daily_bin56.fits outfile=/scratch/kocevski/166241/ft1_filteredMKT_4FGL_J1404.8+6554_daily_bin56.fits ra=211.216 dec=65.9048 rad=12.0 tmin=253843201.0 tmax=254102401.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.47
user 1.30
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/166241/ft2_4FGL_J1404.8+6554_daily_bin56.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/166241/ft1_filteredMKT_4FGL_J1404.8+6554_daily_bin56.fits evtable="EVENTS" outfile="/scratch/kocevski/166241/ft1_filtered_4FGL_J1404.8+6554_daily_bin56.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/166241/ft1_filtered_4FGL_J1404.8+6554_daily_bin56.fits" evtable="EVENTS" scfile=/scratch/kocevski/166241/ft2_4FGL_J1404.8+6554_daily_bin56.fits sctable="SC_DATA" outfile=/scratch/kocevski/166241/ltcube_253843201_254102401_4FGL_J1404.8+6554_daily_bin56.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/166241/ft2_4FGL_J1404.8+6554_daily_bin56.fits
.....................!
real 12.68
user 12.31
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/166241/ft1_filtered_4FGL_J1404.8+6554_daily_bin56.fits evtable="EVENTS" scfile=/scratch/kocevski/166241/ft2_4FGL_J1404.8+6554_daily_bin56.fits sctable="SC_DATA" expcube=/scratch/kocevski/166241/ltcube_253843201_254102401_4FGL_J1404.8+6554_daily_bin56.fits outfile=/scratch/kocevski/166241/expmap_253843201_254102401_4FGL_J1404.8+6554_daily_bin56.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/166241/ltcube_253843201_254102401_4FGL_J1404.8+6554_daily_bin56.fits
.....................!
real 191.10
user 186.72
sys 3.99

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/166241/ft1_filtered_4FGL_J1404.8+6554_daily_bin56.fits scfile=/scratch/kocevski/166241/ft2_4FGL_J1404.8+6554_daily_bin56.fits outfile=/scratch/kocevski/166241/cmap_253843201_254102401_4FGL_J1404.8+6554_daily_bin56.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.54
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/166241/ft1_filtered_4FGL_J1404.8+6554_daily_bin56.fits scfile=/scratch/kocevski/166241/ft2_4FGL_J1404.8+6554_daily_bin56.fits outfile=/scratch/kocevski/166241/cmap_HighResolution_253843201_254102401_4FGL_J1404.8+6554_daily_bin56.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/166241/ft1_filtered_4FGL_J1404.8+6554_daily_bin56.fits evtable="EVENTS" scfile=/scratch/kocevski/166241/ft2_4FGL_J1404.8+6554_daily_bin56.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/166241/Model_4FGL_J1404.8+6554_daily_bin56.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/166241/ft1_filtered_4FGL_J1404.8+6554_daily_bin56.fits.....................!
real 49.24
user 47.93
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/166241/ft1_filtered_4FGL_J1404.8+6554_daily_bin56.fits', '/scratch/kocevski/166241/ft2_4FGL_J1404.8+6554_daily_bin56.fits', expMap='/scratch/kocevski/166241/expmap_253843201_254102401_4FGL_J1404.8+6554_daily_bin56.fits', expCube='/scratch/kocevski/166241/ltcube_253843201_254102401_4FGL_J1404.8+6554_daily_bin56.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/166241/Model_4FGL_J1404.8+6554_daily_bin56.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/166241/ft1_filtered_4FGL_J1404.8+6554_daily_bin56.fits
Spacecraft file(s): /scratch/kocevski/166241/ft2_4FGL_J1404.8+6554_daily_bin56.fits
Exposure map: /scratch/kocevski/166241/expmap_253843201_254102401_4FGL_J1404.8+6554_daily_bin56.fits
Exposure cube: /scratch/kocevski/166241/ltcube_253843201_254102401_4FGL_J1404.8+6554_daily_bin56.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/166241/Model_4FGL_J1404.8+6554_daily_bin56.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) = 5085.51948991

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10291E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .12160E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.5124       1.0000         .10000E-03   10000.    
     4 'Prefactor '    50.287       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.709       1.0000         .10000E-03   10000.    
     8 'Prefactor '    69.086       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.8655       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.8402       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.2946       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.185       1.0000         .10000E-03   10000.    
    16 'norm      '    9.3340       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .19594E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    23.929       1.0000         .10000E-03   10000.    
    23 'Prefactor '    26.076       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    17.112       1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.3660       1.0000         .10000E-03   10000.    
    28 'norm      '    12.598       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10804E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1628       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .74937       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=   5085.500     FROM MIGRAD    STATUS=CONVERGED    811 CALLS     4105 TOTAL
                     EDM=   .27E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    69.543       -.67209E-06** at limit **
   2  norm          .10000E-03    12.265        .97980E-07** at limit **
   3  norm          5.5130        3.7166        .28563E-07   -.55656E-05
   4  Prefactor     50.289        49.350       -.72412E-07   -.88522E-06
   5  Prefactor     .10000E-03    5.4444        .15050E-07** at limit **
   6  Prefactor     .10000E-03    34.205       -.13408E-06** at limit **
   7  Prefactor     23.696        45.751       -.26566E-05   -.95873E-05
   8  Prefactor     69.094        62.085        .17561E-06    .13975E-05
   9  Prefactor     1.8646        3.8105        .23671E-06   -.20685E-04
  10  Prefactor     6.8387        18.592        .45387E-05   -.13040E-04
  11  Prefactor     .10000E-03    21.968        .97224E-07** at limit **
  12  Prefactor     .10000E-03    7.4977       -.13749E-06** at limit **
  13  Prefactor     4.2940        9.3757        .32337E-06   -.16534E-04
  14  norm          .10000E-03    33.954       -.47743E-07** at limit **
  15  Prefactor     10.188        19.900        .18725E-06   -.41316E-05
  16  norm          9.3345        5.3106        .35402E-07   -.69065E-05
  17  Prefactor     .10000E-03    59.198       -.12253E-06** at limit **
  18  Prefactor     .10000E-03    440.29       -.13565E-05** at limit **
  19  Prefactor     .10000E-03    2.9160        .17478E-07** at limit **
  20  Prefactor     .10000E-03    97.212       -.77701E-07** at limit **
  21  Prefactor     .10000E-03    20.470       -.17506E-07** at limit **
  22  Prefactor     23.911        38.700       -.95013E-07   -.11913E-05
  23  Prefactor     26.077        19.576       -.65289E-07   -.79072E-05
  24  Prefactor     .10000E-03    46.409        .83368E-06** at limit **
  25  Prefactor     .10000E-03    7.9066        .37286E-07** at limit **
  26  Prefactor     17.124        24.426       -.15879E-05   -.40681E-04
  27  Prefactor     3.3208        245.64        .95298E-05    .70463E-06
  28  norm          12.596        4.7576        .13220E-06   -.26091E-04
  29  Prefactor     .10000E-03    161.93        .81022E-06** at limit **
  30  Normalizat    1.1627        .18947       -.98219E-06    .24400E-05
  31  Prefactor     .74932        .19715        .60131E-06   -.57326E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.51295
  Prefactor  = 50.2886
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.6964
  Prefactor  = 69.0944
  Prefactor  = 1.86458
  Prefactor  = 6.83866
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.29404
  norm       = 0.0001
  Prefactor  = 10.1877
  norm       = 9.33448
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.9108
  Prefactor  = 26.0773
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.1241
  Prefactor  = 3.32081
  norm       = 12.5959
  Prefactor  = 0.000100001
  Normalizat = 1.16273
  Prefactor  = 0.749321
 **********
 **   18 **HESSE 
 **********

 FCN=   5085.500     FROM HESSE     STATUS=OK           616 CALLS     4721 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    70.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    12.773        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.5130        3.7164        .10969E-03   -1.5238    
   4  Prefactor     50.289        49.359        .56552E-04   -1.4288    
   5  Prefactor     .10000E-03    5.4583        .16249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    34.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     23.696        45.664        .82266E-04   -1.4734    
   8  Prefactor     69.094        62.126        .48293E-04   -1.4044    
   9  Prefactor     1.8646        3.7686        .18945E-03   -1.5435    
  10  Prefactor     6.8387        18.427        .76704E-03   -1.5185    
  11  Prefactor     .10000E-03    21.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.5459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.2940        9.3510        .19440E-03   -1.5293    
  14  norm          .10000E-03    33.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.188        19.881        .12556E-03   -1.5069    
  16  norm          9.3345        5.3122        .11927E-03   -1.5097    
  17  Prefactor     .10000E-03    59.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    440.60        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.0187        .23760E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    99.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    20.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     23.911        38.660        .81886E-04   -1.4730    
  23  Prefactor     26.077        19.575        .78449E-04   -1.4686    
  24  Prefactor     .10000E-03    46.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    7.9982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     17.124        23.913        .96820E-04   -1.4880    
  27  Prefactor     3.3208        237.78        .22057E-03   -1.5343    
  28  norm          12.596        4.7549        .92595E-04   -1.4998    
  29  Prefactor     .10000E-03    162.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.1627        .22018        .21683E-03   -.87763    
  31  Prefactor     .74932        .22919        .28173E-03   -1.0162    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.00627e-11
Minuit parameter uncertainties:
  1  0.000134963
  2  8.14482e-06
  3  3.71656
  4  49.3992
  5  1.28407e-06
  6  4.40381e-05
  7  45.7313
  8  62.1844
  9  3.76911
  10  18.4425
  11  2.56351e-05
  12  1.79874e-05
  13  9.3542
  14  3.04564e-05
  15  19.8943
  16  5.31249
  17  5.21577e-05
  18  0.00278304
  19  3.64664e-06
  20  7.33003e-05
  21  1.41263e-05
  22  38.701
  23  19.5795
  24  0.000173303
  25  6.5865e-06
  26  23.9261
  27  56.4341
  28  4.75503
  29  0.00078824
  30  0.220355
  31  0.229478
Done.

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

Extracting fit parameters...

4FGL J1404.8+6554
   Spectrum: PowerLaw
366    Prefactor:  1.000e-04  5.216e-05  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:  7.493e-01  2.295e-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:  1.163e+00  2.204e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/166241/likelihoodResults_253843201_254102401_4FGL_J1404.8+6554_daily_bin56.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) = 5085.50038271
delta logL = -7.97292723291e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5085.50030383
delta logL = -8.49609932629e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22252E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0393       1.0000          .0000       10.000    
     3 'Normalizat'    1.1627       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74932       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.

 FCN=   5085.500     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      246 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.105        .90712E-02** at limit **
   2  Index         2.0551        5.4783        .50000       -.16210E-05
   3  Normalizat    1.1627        .28026E-02    .35878E-01   -.56390E-03
   4  Prefactor     .74932        .30037E-02    .63686E-01   -.37471E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 2.05514
  Normalizat = 1.16273
  Prefactor  = 0.749322
 **********
 **   18 **HESSE 
 **********

 FCN=   5085.500     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    173.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0551        5.4994        .50000       -.62979    
   3  Normalizat    1.1627        .72085E-02    .21683E-03   -.87763    
   4  Prefactor     .74932        .77150E-02    .28172E-03   -1.0162    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.60886e-09
Minuit parameter uncertainties:
  1  0.00150857
  2  128.072
  3  0.00720851
  4  0.00771506
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/166241': 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) = 5085.5003029
delta logL = 8.5345163825e-08

Extracting fit parameters...

4FGL J1404.8+6554
   Spectrum: PowerLaw
366    Prefactor:  1.000e-04  1.509e-03  1.000e-04  1.000e+04 ( 1.000e-14)
367        Index:  2.055e+00  1.281e+02  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:  7.493e-01  7.715e-03  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:  1.163e+00  7.209e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 211.216 65.905

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/166241/cmap_HighResolution_253843201_254102401_4FGL_J1404.8+6554_daily_bin56.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.56e-03', job_status='DONE', photon_flux_upper_limit='4.78e-08', time_completed='2021-09-09 00:05:14.546740', job_id='166241', GAL2='0.75', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1631171114.55', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='8.53e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='56' AND source_name='4FGL J1404.8+6554' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 00:05:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0022>
Subject: Job 166241: <4FGL_J1404.8+6554_daily_bin56> in cluster <slac> Done

Job <4FGL_J1404.8+6554_daily_bin56> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 23:50:32 2021
Job was executed on host(s) <bullet0022>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 23:50:33 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:33 2021
Terminated at Thu Sep  9 00:05:15 2021
Results reported at Thu Sep  9 00:05:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1404.8+6554_daily_bin56 211.216 65.9048 253843201 254102401 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 :                                   869.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             322.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            883 sec.

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

