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


Performing analysis on: 4FGL_J1404.8+6554_daily_bin678
RA = 211.216, Dec = 65.9048
tmin = 415065601, tmax = 415324801
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='171916', job_status='RUN', time_executed='2021-09-09 00:10:42.784752', time_epoch_executed='1631171442.78' WHERE source_name='4FGL J1404.8+6554' and cadence='daily' and bin_id='678'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/171916

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/171916/ft1_4FGL_J1404.8+6554_daily_bin678.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/171916/ft2_4FGL_J1404.8+6554_daily_bin678.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/171916/ft1_4FGL_J1404.8+6554_daily_bin678.fits outfile=/scratch/kocevski/171916/ft1_filteredMKT_4FGL_J1404.8+6554_daily_bin678.fits ra=211.216 dec=65.9048 rad=12.0 tmin=415065601.0 tmax=415324801.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 3.67
user 3.47
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/171916/ft1_filtered_4FGL_J1404.8+6554_daily_bin678.fits" evtable="EVENTS" scfile=/scratch/kocevski/171916/ft2_4FGL_J1404.8+6554_daily_bin678.fits sctable="SC_DATA" outfile=/scratch/kocevski/171916/ltcube_415065601_415324801_4FGL_J1404.8+6554_daily_bin678.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/171916/ft2_4FGL_J1404.8+6554_daily_bin678.fits
.....................!
real 11.88
user 11.49
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/171916/ft1_filtered_4FGL_J1404.8+6554_daily_bin678.fits evtable="EVENTS" scfile=/scratch/kocevski/171916/ft2_4FGL_J1404.8+6554_daily_bin678.fits sctable="SC_DATA" expcube=/scratch/kocevski/171916/ltcube_415065601_415324801_4FGL_J1404.8+6554_daily_bin678.fits outfile=/scratch/kocevski/171916/expmap_415065601_415324801_4FGL_J1404.8+6554_daily_bin678.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/171916/ltcube_415065601_415324801_4FGL_J1404.8+6554_daily_bin678.fits
.....................!
real 191.72
user 185.81
sys 5.47

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/171916/ft1_filtered_4FGL_J1404.8+6554_daily_bin678.fits scfile=/scratch/kocevski/171916/ft2_4FGL_J1404.8+6554_daily_bin678.fits outfile=/scratch/kocevski/171916/cmap_415065601_415324801_4FGL_J1404.8+6554_daily_bin678.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/171916/ft1_filtered_4FGL_J1404.8+6554_daily_bin678.fits scfile=/scratch/kocevski/171916/ft2_4FGL_J1404.8+6554_daily_bin678.fits outfile=/scratch/kocevski/171916/cmap_HighResolution_415065601_415324801_4FGL_J1404.8+6554_daily_bin678.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.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/171916/ft1_filtered_4FGL_J1404.8+6554_daily_bin678.fits', '/scratch/kocevski/171916/ft2_4FGL_J1404.8+6554_daily_bin678.fits', expMap='/scratch/kocevski/171916/expmap_415065601_415324801_4FGL_J1404.8+6554_daily_bin678.fits', expCube='/scratch/kocevski/171916/ltcube_415065601_415324801_4FGL_J1404.8+6554_daily_bin678.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/171916/Model_4FGL_J1404.8+6554_daily_bin678.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/171916/ft1_filtered_4FGL_J1404.8+6554_daily_bin678.fits
Spacecraft file(s): /scratch/kocevski/171916/ft2_4FGL_J1404.8+6554_daily_bin678.fits
Exposure map: /scratch/kocevski/171916/expmap_415065601_415324801_4FGL_J1404.8+6554_daily_bin678.fits
Exposure cube: /scratch/kocevski/171916/ltcube_415065601_415324801_4FGL_J1404.8+6554_daily_bin678.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/171916/Model_4FGL_J1404.8+6554_daily_bin678.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 11.3588852514

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 9.58160147822

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2531       1.0000         .10000E-03   10000.    
     2 'norm      '    6.0621       1.0000         .10000E-03   10000.    
     3 'norm      '    3.6111       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.9973       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .45948       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.7732       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.3660       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.3338       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.0992       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.9681       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.2361       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.6613       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.3359       1.0000         .10000E-03   10000.    
    14 'norm      '    2.9812       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.6838       1.0000         .10000E-03   10000.    
    16 'norm      '    7.1164       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.5792       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.3170       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .79155       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .71059E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.6273       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.4133       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .48255       1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.8459       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.3856       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .52901       1.0000         .10000E-03   10000.    
    27 'Prefactor '    7.5150       1.0000         .10000E-03   10000.    
    28 'norm      '    1109.0       1.0000         .10000E-03   10000.    
    29 'Prefactor '    7.4034       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .10003E-01   1.0000         .10000E-01   10.000    
    31 'Prefactor '    .94924E-06   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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   9.565844     FROM MIGRAD    STATUS=CONVERGED    119 CALLS      242 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2531        1.0123         .0000         .0000    
   2  norm          6.0621        1.0034         .0000         .0000    
   3  norm          3.6111        1.0099         .0000         .0000    
   4  Prefactor     7.9973        1.0020         .0000         .0000    
   5  Prefactor     .29335E-01    .30825       -.11643E-02   -.11161E-02
   6  Prefactor     6.7732        1.0027         .0000         .0000    
   7  Prefactor     5.3660        1.0044         .0000         .0000    
   8  Prefactor     .93140E-02    .39745E-01   -.38936E-02   -.45863E-03
   9  Prefactor     1.0992        1.1889         .0000         .0000    
  10  Prefactor     1.9681        1.0366         .0000         .0000    
  11  Prefactor     .55455        .41914       -.29404E-02   -.33257E-02
  12  Prefactor     1.6613        1.0545         .0000         .0000    
  13  Prefactor     1.3359        1.0966         .0000         .0000    
  14  norm          .17718        .24736       -.29093E-02   -.12637E-02
  15  Prefactor     5.6838        1.0039         .0000         .0000    
  16  norm          .10122E-03    .35331E-01   -.13088E-03** at limit **
  17  Prefactor     2.4658        .61410       -.17177E-02    .22750E-02
  18  Prefactor     5.0888        .83600       -.79969E-03    .14684E-02
  19  Prefactor     .10000E-03    .38491       -.26048E-03** at limit **
  20  Prefactor     .69137E-03    .21960        .17801E-02** at limit **
  21  Prefactor     2.6273        1.0194         .0000         .0000    
  22  Prefactor     .57667E-02    .74914E-01    .31830E-03    .14804E-02
  23  Prefactor     .57797E-01    .31356       -.14692E-02   -.16386E-02
  24  Prefactor     8.8459        1.0016         .0000         .0000    
  25  Prefactor     .11602E-03    .57792E-01   -.80636E-03** at limit **
  26  Prefactor     .12088E-02    .32425        .27059E-03** at limit **
  27  Prefactor     .64646E-02    .33441E-01   -.40571E-02    .40964E-03
  28  norm          1115.3        1.0025        .17683E-03   -.39463E-01
  29  Prefactor     1.9995        .52102       -.22245E-02    .29412E-02
  30  Normalizat    .10000E-01    .25636        .33072E-03** at limit **
  31  Prefactor     .75995E-12    .25715        .25270E-02** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.2531
  norm       = 6.06212
  norm       = 3.61115
  Prefactor  = 7.99726
  Prefactor  = 0.0293355
  Prefactor  = 6.77322
  Prefactor  = 5.36599
  Prefactor  = 0.00931404
  Prefactor  = 1.0992
  Prefactor  = 1.96809
  Prefactor  = 0.554554
  Prefactor  = 1.66126
  Prefactor  = 1.33589
  norm       = 0.177181
  Prefactor  = 5.68376
  norm       = 0.000101222
  Prefactor  = 2.46582
  Prefactor  = 5.08877
  Prefactor  = 0.0001
  Prefactor  = 0.000691369
  Prefactor  = 2.6273
  Prefactor  = 0.00576675
  Prefactor  = 0.0577972
  Prefactor  = 8.84589
  Prefactor  = 0.000116022
  Prefactor  = 0.00120876
  Prefactor  = 0.00646464
  norm       = 1115.32
  Prefactor  = 1.99951
  Normalizat = 0.01
  Prefactor  = 7.59948e-13
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   9.565844     FROM HESSE     STATUS=FAILED         9 CALLS      251 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     551.08        547.75         .0000       -1.5347    
   2  norm          6.0621        1.0034         .0000       -1.5215    
   3  norm          3.6111        1.0099         .0000       -1.5328    
   4  Prefactor     7.9973        1.0020         .0000       -1.5142    
   5  Prefactor     .29335E-01    .30825       -.11643E-02   -1.5742    
   6  Prefactor     6.7732        1.0027         .0000       -1.5187    
   7  Prefactor     5.3660        1.0044         .0000       -1.5245    
   8  Prefactor     .93140E-02    .39745E-01   -.38936E-02   -1.5727    
   9  Prefactor     1.0992        1.1889         .0000       -1.5498    
  10  Prefactor     1.9681        1.0366         .0000       -1.5427    
  11  Prefactor     .55455        .41914       -.29404E-02   -1.5857    
  12  Prefactor     1.6613        1.0545         .0000       -1.5450    
  13  Prefactor     1.3359        1.0966         .0000       -1.5477    
  14  norm          .17718        .24736       -.29093E-02   -1.5792    
  15  Prefactor     5.6838        1.0039         .0000       -1.5231    
  16  norm          .10122E-03    .35331E-01   -.13088E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.4658        .61410       -.17177E-02   -1.5394    
  18  Prefactor     5.0888        .83600       -.79969E-03   -1.5257    
  19  Prefactor     .10000E-03    .38491       -.26048E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .69137E-03    .21960        .17801E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.6273        1.0194         .0000       -1.5384    
  22  Prefactor     .57667E-02    .74914E-01    .31830E-03   -1.5693    
  23  Prefactor     .57797E-01    .31356       -.14692E-02   -1.5756    
  24  Prefactor     8.8459        1.0016         .0000       -1.5113    
  25  Prefactor     .11602E-03    .57792E-01   -.80636E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .12088E-02    .32425        .27059E-03   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .64646E-02    .33441E-01   -.40571E-02   -1.5692    
  28  norm          1115.3        1.0025        .17683E-03   -.88978    
  29  Prefactor     1.9995        .52102       -.22245E-02   -1.5425    
  30  Normalizat    .10000E-01    .25636        .33072E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .75995E-12    .25715        .25270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 9.67215e-10
Minuit parameter uncertainties:
  1  1.01233
  2  1.00344
  3  1.00992
  4  1.00197
  5  0.189864
  6  1.00275
  7  1.00441
  8  0.0382735
  9  1.18888
  10  1.03659
  11  0.419146
  12  1.05452
  13  1.09664
  14  0.247366
  15  1.00392
  16  0.000415496
  17  0.614104
  18  0.836
  19  1.49916e-06
  20  0.0227917
  21  1.01936
  22  0.0412078
  23  0.26901
  24  1.00161
  25  0.00192449
  26  0.0379219
  27  0.029178
  28  1.0025
  29  0.521017
  30  8.77185e-08
  31  8.87928e-07
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 9.56584382312

Extracting fit parameters...

4FGL J1404.8+6554
   Spectrum: PowerLaw
366    Prefactor:  2.466e+00  6.141e-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:  7.599e-13  8.879e-07  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.000e-02  8.772e-08  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = -0.144864745463

TS (Fixed Index): -0.00
Ra Dec: 211.216 65.905
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.45e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/171916/likelihoodResults_415065601_415324801_4FGL_J1404.8+6554_daily_bin678.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) = 9.56588011985
delta logL = -3.62967362815e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9.56587801521
delta logL = -3.41920875613e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    1.8518       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=   9.565866     FROM MIGRAD    STATUS=CONVERGED     28 CALLS       85 TOTAL
                     EDM=   .31E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       1.1804        8.6501        .50000        .75160E-08
                               ERR DEF=  .500    
Final values: 
  Index      = 1.18037
 **********
 **   18 **HESSE 
 **********

 FCN=   9.565866     FROM HESSE     STATUS=OK             9 CALLS       94 TOTAL
                     EDM=   .12E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       1.1804        7.4327        .72789E-01   -.86937    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24393e-14
Minuit parameter uncertainties:
  1  138.425
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/171916': 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) = 9.56586587091
delta logL = -2.20477937667e-05

Extracting fit parameters...

4FGL J1404.8+6554
   Spectrum: PowerLaw
366    Prefactor:  2.465e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14) fixed
367        Index:  1.180e+00  1.384e+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:  1.025e-06  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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.000e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


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/171916/cmap_HighResolution_415065601_415324801_4FGL_J1404.8+6554_daily_bin678.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.45e+04', job_status='DONE', photon_flux_upper_limit='-1.00e+00', time_completed='2021-09-09 00:16:21.717559', job_id='171916', GAL2='0.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631171781.72', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.00', dlogl='-2.20e-05', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='678' AND source_name='4FGL J1404.8+6554' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 00:16:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 171916: <4FGL_J1404.8+6554_daily_bin678> in cluster <slac> Done

Job <4FGL_J1404.8+6554_daily_bin678> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep  9 00:10:24 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 00:10:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 00:10:26 2021
Terminated at Thu Sep  9 00:16:22 2021
Results reported at Thu Sep  9 00:16:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1404.8+6554_daily_bin678 211.216 65.9048 415065601 415324801 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 :                                   334.05 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             327.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   355 sec.
    Turnaround time :                            358 sec.

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

