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


Performing analysis on: 4FGL_J1404.8+6554_daily_bin731
RA = 211.216, Dec = 65.9048
tmin = 428803201, tmax = 429062401
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='171990', job_status='RUN', time_executed='2021-09-09 00:10:44.729103', time_epoch_executed='1631171444.73' WHERE source_name='4FGL J1404.8+6554' and cadence='daily' and bin_id='731'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/171990

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/171990/ft1_4FGL_J1404.8+6554_daily_bin731.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/171990/ft2_4FGL_J1404.8+6554_daily_bin731.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/171990/ft1_4FGL_J1404.8+6554_daily_bin731.fits outfile=/scratch/kocevski/171990/ft1_filteredMKT_4FGL_J1404.8+6554_daily_bin731.fits ra=211.216 dec=65.9048 rad=12.0 tmin=428803201.0 tmax=429062401.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 6.53
user 6.23
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/171990/ft1_filtered_4FGL_J1404.8+6554_daily_bin731.fits" evtable="EVENTS" scfile=/scratch/kocevski/171990/ft2_4FGL_J1404.8+6554_daily_bin731.fits sctable="SC_DATA" outfile=/scratch/kocevski/171990/ltcube_428803201_429062401_4FGL_J1404.8+6554_daily_bin731.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/171990/ft2_4FGL_J1404.8+6554_daily_bin731.fits
.....................!
real 11.89
user 11.55
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/171990/ft1_filtered_4FGL_J1404.8+6554_daily_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/171990/ft2_4FGL_J1404.8+6554_daily_bin731.fits sctable="SC_DATA" expcube=/scratch/kocevski/171990/ltcube_428803201_429062401_4FGL_J1404.8+6554_daily_bin731.fits outfile=/scratch/kocevski/171990/expmap_428803201_429062401_4FGL_J1404.8+6554_daily_bin731.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/171990/ltcube_428803201_429062401_4FGL_J1404.8+6554_daily_bin731.fits
.....................!
real 191.00
user 185.98
sys 4.69

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/171990/ft1_filtered_4FGL_J1404.8+6554_daily_bin731.fits scfile=/scratch/kocevski/171990/ft2_4FGL_J1404.8+6554_daily_bin731.fits outfile=/scratch/kocevski/171990/cmap_428803201_429062401_4FGL_J1404.8+6554_daily_bin731.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.55
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/171990/ft1_filtered_4FGL_J1404.8+6554_daily_bin731.fits scfile=/scratch/kocevski/171990/ft2_4FGL_J1404.8+6554_daily_bin731.fits outfile=/scratch/kocevski/171990/cmap_HighResolution_428803201_429062401_4FGL_J1404.8+6554_daily_bin731.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.889       1.0000         .10000E-03   10000.    
     2 'norm      '    11.253       1.0000         .10000E-03   10000.    
     3 'norm      '    3.5606       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.328       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.123       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.550       1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.176       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10479E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .14496E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    26.417       1.0000         .10000E-03   10000.    
    16 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.051       1.0000         .10000E-03   10000.    
    20 'Prefactor '    27.489       1.0000         .10000E-03   10000.    
    21 'Prefactor '    43.393       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .17120E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    116.90       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11183E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    61.644       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    133.06       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .52275       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0210       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=   2284.394     FROM MIGRAD    STATUS=CONVERGED    813 CALLS     4787 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.890        22.575       -.29597E-05    .20192E-04
   2  norm          11.254        6.5879       -.16239E-05    .34781E-04
   3  norm          3.5608        4.1545       -.36456E-06    .28426E-04
   4  Prefactor     .10000E-03    71.003        .15084E-04** at limit **
   5  Prefactor     10.330        20.744       -.19466E-05   -.30013E-03
   6  Prefactor     .10000E-03    63.173       -.22875E-04** at limit **
   7  Prefactor     .10000E-03    45.821        .85293E-05** at limit **
   8  Prefactor     17.894        154.49       -.20672E-03    .12995E-04
   9  Prefactor     11.550        13.887       -.26472E-05    .12163E-03
  10  Prefactor     28.175        27.362       -.32124E-05    .44012E-04
  11  Prefactor     .10000E-03    96.796       -.14722E-04** at limit **
  12  Prefactor     .10000E-03    37.477       -.44768E-05** at limit **
  13  Prefactor     .10000E-03    3.9649       -.19588E-06** at limit **
  14  norm          .10001E-03    188.49       -.14387E-04** at limit **
  15  Prefactor     26.419        24.482       -.31920E-05    .13325E-04
  16  norm          .10000E-03    4.0383        .67185E-06** at limit **
  17  Prefactor     .10000E-03    37.940       -.13329E-05** at limit **
  18  Prefactor     .10000E-03    803.13        .39126E-03** at limit **
  19  Prefactor     11.061        12.086        .27684E-04   -.10221E-03
  20  Prefactor     27.198        132.35       -.28067E-03    .25320E-04
  21  Prefactor     43.384        73.498       -.58081E-05   -.14051E-05
  22  Prefactor     .10008E-03    88.571        .25852E-04** at limit **
  23  Prefactor     .10000E-03    18.709       -.93444E-08** at limit **
  24  Prefactor     116.91        60.051       -.95124E-05    .17774E-04
  25  Prefactor     .10001E-03    25.044        .22973E-05** at limit **
  26  Prefactor     61.640        40.622       -.59947E-05    .23493E-04
  27  Prefactor     .10000E-03    33.591        .21858E-05** at limit **
  28  norm          .10000E-03    2.0464       -.14707E-07** at limit **
  29  Prefactor     133.06        137.07       -.42180E-06    .31447E-05
  30  Normalizat    .52209        .26120        .29904E-04   -.93285E-04
  31  Prefactor     1.0217        .26860       -.15204E-05    .26470E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.8901
  norm       = 11.2536
  norm       = 3.5608
  Prefactor  = 0.0001
  Prefactor  = 10.3298
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.8944
  Prefactor  = 11.5496
  Prefactor  = 28.1752
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100014
  Prefactor  = 26.4189
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.0611
  Prefactor  = 27.1978
  Prefactor  = 43.3838
  Prefactor  = 0.000100084
  Prefactor  = 0.0001
  Prefactor  = 116.906
  Prefactor  = 0.000100013
  Prefactor  = 61.6398
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 133.058
  Normalizat = 0.522091
  Prefactor  = 1.02167
 **********
 **   18 **HESSE 
 **********

 FCN=   2284.394     FROM HESSE     STATUS=OK           610 CALLS     5397 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.890        22.582        .92156E-04   -1.4838    
   2  norm          11.254        6.5900        .89300E-04   -1.5037    
   3  norm          3.5608        4.1498        .10023E-03   -1.5331    
   4  Prefactor     .10000E-03    71.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.330        20.742        .62339E-03   -1.5065    
   6  Prefactor     .10000E-03    63.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    45.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.894        155.37        .94081E-04   -1.4862    
   9  Prefactor     11.550        13.865        .11788E-03   -1.5028    
  10  Prefactor     28.175        27.350        .75474E-04   -1.4646    
  11  Prefactor     .10000E-03    96.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    37.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.9777        .92940E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10001E-03    188.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     26.419        24.487        .77942E-04   -1.4680    
  16  norm          .10000E-03    4.0409        .93803E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    37.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    803.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.061        12.089        .12052E-03   -1.5043    
  20  Prefactor     27.198        133.64        .76410E-04   -1.4664    
  21  Prefactor     43.384        73.532        .60859E-04   -1.4390    
  22  Prefactor     .10008E-03    89.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    18.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     116.91        60.055        .37214E-04   -1.3541    
  25  Prefactor     .10001E-03    25.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     61.640        40.662        .51106E-04   -1.4136    
  27  Prefactor     .10000E-03    33.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    2.0476        .66771E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     133.06        137.09        .34910E-04   -1.3396    
  30  Normalizat    .52209        .29453        .28189E-03   -1.1140    
  31  Prefactor     1.0217        .30539        .22685E-03   -.92011    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.83925e-09
Minuit parameter uncertainties:
  1  22.5925
  2  6.5904
  3  4.15017
  4  0.000205772
  5  20.7564
  6  0.000211395
  7  0.000234286
  8  105.826
  9  13.8684
  10  27.362
  11  0.000559056
  12  1.17602e-05
  13  3.71408e-05
  14  0.00330527
  15  24.496
  16  0.000136404
  17  3.19536e-05
  18  0.00039644
  19  12.0914
  20  121.015
  21  73.6858
  22  0.00547507
  23  6.66903e-06
  24  60.0867
  25  0.00116524
  26  40.6807
  27  9.31722e-06
  28  3.91388e-06
  29  137.415
  30  0.295413
  31  0.305914
Done.

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

Extracting fit parameters...

4FGL J1404.8+6554
   Spectrum: PowerLaw
366    Prefactor:  1.000e-04  3.195e-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:  1.022e+00  3.059e-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:  5.221e-01  2.954e-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: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/171990/likelihoodResults_428803201_429062401_4FGL_J1404.8+6554_daily_bin731.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) = 2284.39405454
delta logL = -0.000125261162339

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2284.39393001
delta logL = -7.32789430913e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11215E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2020       1.0000          .0000       10.000    
     3 'Normalizat'    .52211       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0216       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=   2284.394     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      272 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10201E-03    176.38        .18142E-02** at limit **
   2  Index         2.1363        7.0321        .50000        .90486E-05
   3  Normalizat    .52210        .14548E-01    .28187E-03   -.35816E-04
   4  Prefactor     1.0217        .16123E-01    .22685E-03   -.67481E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102011
  Index      = 2.13631
  Normalizat = 0.522101
  Prefactor  = 1.02165
 **********
 **   18 **HESSE 
 **********

 FCN=   2284.394     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      301 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10201E-03    753.46        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1363        8.3177        .50000       -.60984    
   3  Normalizat    .52210        .31034E-01    .11275E-04   -1.1140    
   4  Prefactor     1.0217        .34393E-01    .45370E-04   -.92011    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.15294e-08
Minuit parameter uncertainties:
  1  0.0788731
  2  637.818
  3  0.031035
  4  0.0343933
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/171990': 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) = 2284.39392967
delta logL = -3.9152428144e-07

Extracting fit parameters...

4FGL J1404.8+6554
   Spectrum: PowerLaw
366    Prefactor:  1.020e-04  7.887e-02  1.000e-04  1.000e+04 ( 1.000e-14)
367        Index:  2.136e+00  6.378e+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.022e+00  3.439e-02  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:  5.221e-01  3.104e-02  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/171990/cmap_HighResolution_428803201_429062401_4FGL_J1404.8+6554_daily_bin731.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.92e-03', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-09-09 00:21:07.599044', job_id='171990', GAL2='1.02', fit_tolerance='1e-08', EG2='0.52', EG='0.52', time_epoch_completed='1631172067.6', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='-3.92e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='731' AND source_name='4FGL J1404.8+6554' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 00:21:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 171990: <4FGL_J1404.8+6554_daily_bin731> in cluster <slac> Done

Job <4FGL_J1404.8+6554_daily_bin731> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep  9 00:10:30 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 00:10:31 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:31 2021
Terminated at Thu Sep  9 00:21:08 2021
Results reported at Thu Sep  9 00:21:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1404.8+6554_daily_bin731 211.216 65.9048 428803201 429062401 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 :                                   618.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             312.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   636 sec.
    Turnaround time :                            638 sec.

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

