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


Performing analysis on: 4FGL_J1404.8+6554_daily_bin1202
RA = 211.216, Dec = 65.9048
tmin = 550886401, tmax = 551145601
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='175016', job_status='RUN', time_executed='2021-09-09 00:20:52.806146', time_epoch_executed='1631172052.81' WHERE source_name='4FGL J1404.8+6554' and cadence='daily' and bin_id='1202'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/175016

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/175016/ft1_4FGL_J1404.8+6554_daily_bin1202.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/175016/ft2_4FGL_J1404.8+6554_daily_bin1202.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/175016/ft1_4FGL_J1404.8+6554_daily_bin1202.fits outfile=/scratch/kocevski/175016/ft1_filteredMKT_4FGL_J1404.8+6554_daily_bin1202.fits ra=211.216 dec=65.9048 rad=12.0 tmin=550886401.0 tmax=551145601.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.82
user 3.50
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/175016/ft2_4FGL_J1404.8+6554_daily_bin1202.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/175016/ft1_filteredMKT_4FGL_J1404.8+6554_daily_bin1202.fits evtable="EVENTS" outfile="/scratch/kocevski/175016/ft1_filtered_4FGL_J1404.8+6554_daily_bin1202.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/175016/ft1_filtered_4FGL_J1404.8+6554_daily_bin1202.fits" evtable="EVENTS" scfile=/scratch/kocevski/175016/ft2_4FGL_J1404.8+6554_daily_bin1202.fits sctable="SC_DATA" outfile=/scratch/kocevski/175016/ltcube_550886401_551145601_4FGL_J1404.8+6554_daily_bin1202.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/175016/ft2_4FGL_J1404.8+6554_daily_bin1202.fits
.....................!
real 11.89
user 11.52
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/175016/ft1_filtered_4FGL_J1404.8+6554_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/175016/ft2_4FGL_J1404.8+6554_daily_bin1202.fits sctable="SC_DATA" expcube=/scratch/kocevski/175016/ltcube_550886401_551145601_4FGL_J1404.8+6554_daily_bin1202.fits outfile=/scratch/kocevski/175016/expmap_550886401_551145601_4FGL_J1404.8+6554_daily_bin1202.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/175016/ltcube_550886401_551145601_4FGL_J1404.8+6554_daily_bin1202.fits
.....................!
real 190.13
user 185.11
sys 4.63

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/175016/ft1_filtered_4FGL_J1404.8+6554_daily_bin1202.fits scfile=/scratch/kocevski/175016/ft2_4FGL_J1404.8+6554_daily_bin1202.fits outfile=/scratch/kocevski/175016/cmap_550886401_551145601_4FGL_J1404.8+6554_daily_bin1202.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.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11159E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    15.081       1.0000         .10000E-03   10000.    
     3 'norm      '    6.3786       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.084       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    75.775       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.575       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.6411       1.0000         .10000E-03   10000.    
    14 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.366       1.0000         .10000E-03   10000.    
    16 'norm      '    13.719       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .83759E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10381E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-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 '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    31.756       1.0000         .10000E-03   10000.    
    26 'Prefactor '    9.8411       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    11.267       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .67658       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.3265       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=   1944.121     FROM MIGRAD    STATUS=CONVERGED    763 CALLS     4010 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    125.78       -.27482E-05** at limit **
   2  norm          15.082        10.817       -.22247E-07    .11764E-04
   3  norm          6.3794        5.6870        .15669E-06    .18874E-04
   4  Prefactor     .10000E-03    94.090       -.33809E-06** at limit **
   5  Prefactor     .10000E-03    24.272        .11881E-05** at limit **
   6  Prefactor     .10000E-03    49.558       -.18093E-06** at limit **
   7  Prefactor     .10000E-03    44.626       -.25203E-06** at limit **
   8  Prefactor     16.248        527.58       -.15246E-05   -.42042E-05
   9  Prefactor     .10000E-03    3.0231       -.10689E-06** at limit **
  10  Prefactor     .10000E-03    73.795       -.75989E-06** at limit **
  11  Prefactor     75.773        102.18        .22874E-05    .19599E-04
  12  Prefactor     13.575        13.722        .39690E-06    .78846E-04
  13  Prefactor     1.6422        37.279        .60972E-05    .10504E-03
  14  norm          .10000E-03    132.17       -.82865E-06** at limit **
  15  Prefactor     12.366        32.657       -.72860E-06    .12169E-04
  16  norm          13.719        10.486        .13758E-06   -.75401E-04
  17  Prefactor     .10000E-03    54.428       -.14604E-06** at limit **
  18  Prefactor     .10001E-03    1326.7       -.18161E-05** at limit **
  19  Prefactor     .10001E-03    8.5906        .25099E-05** at limit **
  20  Prefactor     .10000E-03    16.590       -.66945E-07** at limit **
  21  Prefactor     .10000E-03    89.034        .94871E-08** at limit **
  22  Prefactor     .10000E-03    24.021       -.62154E-08** at limit **
  23  Prefactor     .10000E-03    10.780       -.42487E-07** at limit **
  24  Prefactor     .10000E-03    15.169       -.81327E-07** at limit **
  25  Prefactor     31.762        23.153        .24902E-06   -.39007E-05
  26  Prefactor     9.8417        13.701        .66614E-08    .98983E-05
  27  Prefactor     .10000E-03    18.454       -.25832E-07** at limit **
  28  norm          11.268        7.4128        .45729E-07    .89510E-05
  29  Prefactor     .10000E-03    104.38       -.14066E-06** at limit **
  30  Normalizat    .67607        .32934       -.70951E-05    .41596E-04
  31  Prefactor     1.3269        .35656        .60299E-05    .23089E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  norm       = 15.0815
  norm       = 6.3794
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.2475
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 75.7728
  Prefactor  = 13.5751
  Prefactor  = 1.64223
  norm       = 0.000100001
  Prefactor  = 12.3664
  norm       = 13.7189
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.7621
  Prefactor  = 9.8417
  Prefactor  = 0.0001
  norm       = 11.2682
  Prefactor  = 0.0001
  Normalizat = 0.676069
  Prefactor  = 1.3269
 **********
 **   18 **HESSE 
 **********

 FCN=   1944.121     FROM HESSE     STATUS=OK           612 CALLS     4622 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    127.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          15.082        10.817        .10314E-03   -1.4931    
   3  norm          6.3794        5.6900        .96059E-04   -1.5203    
   4  Prefactor     .10000E-03    94.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    24.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    49.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    44.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.248        522.77        .99867E-04   -1.4902    
   9  Prefactor     .10000E-03    3.0336        .74875E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    74.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     75.773        102.25        .46127E-04   -1.3965    
  12  Prefactor     13.575        13.739        .10871E-03   -1.4971    
  13  Prefactor     1.6422        38.962        .32982E-03   -1.5452    
  14  norm          .10000E-03    132.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.366        32.648        .11391E-03   -1.5005    
  16  norm          13.719        10.440        .10814E-03   -1.4967    
  17  Prefactor     .10000E-03    54.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    1328.0        .20874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    14.854        .21533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    16.595        .17546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    89.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    24.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    10.780        .14142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    15.171        .16777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     31.762        23.164        .71104E-04   -1.4580    
  26  Prefactor     9.8417        13.699        .12774E-03   -1.5080    
  27  Prefactor     .10000E-03    18.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          11.268        7.4133        .94768E-04   -1.5036    
  29  Prefactor     .10000E-03    104.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .67607        .35435        .27315E-03   -1.0485    
  31  Prefactor     1.3269        .38092        .23270E-03   -.82511    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.38984e-10
Minuit parameter uncertainties:
  1  0.00101441
  2  10.8182
  3  5.69046
  4  2.57995e-05
  5  0.000190069
  6  6.11531e-05
  7  0.000127232
  8  186.124
  9  6.101e-06
  10  0.000136202
  11  102.492
  12  13.7417
  13  16.0092
  14  0.00058827
  15  32.6947
  16  10.4412
  17  2.40478e-05
  18  0.00560306
  19  0.000615038
  20  2.55845e-05
  21  9.06922e-05
  22  6.38289e-06
  23  3.87668e-06
  24  1.19639e-05
  25  23.1708
  26  13.7033
  27  9.51661e-07
  28  7.41387
  29  1.0329e-05
  30  0.355552
  31  0.381726
Done.

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

Extracting fit parameters...

4FGL J1404.8+6554
   Spectrum: PowerLaw
366    Prefactor:  1.000e-04  2.405e-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.327e+00  3.817e-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.761e-01  3.556e-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.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/175016/likelihoodResults_550886401_551145601_4FGL_J1404.8+6554_daily_bin1202.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) = 1944.12095465
delta logL = -8.72841380897e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1944.12086765
delta logL = -2.84697989628e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1172       1.0000          .0000       10.000    
     3 'Normalizat'    .67607       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3269       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=   1944.121     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      277 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10149E-03    205.33        .18142E-02** at limit **
   2  Index         2.0555        8.9499        .50000        .67214E-05
   3  Normalizat    .67607        .15008E-01    .27317E-03   -.75454E-04
   4  Prefactor     1.3269        .17426E-01    .23270E-03   -.84831E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010149
  Index      = 2.05552
  Normalizat = 0.676067
  Prefactor  = 1.3269
 **********
 **   18 **HESSE 
 **********

 FCN=   1944.121     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      306 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10149E-03    894.99        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0555        5.6110        .50000       -.62969    
   3  Normalizat    .67607        .32238E-01    .10927E-04   -1.0485    
   4  Prefactor     1.3269        .37431E-01    .46540E-04   -.82511    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.34151e-09
Minuit parameter uncertainties:
  1  0.0741776
  2  516.542
  3  0.0322389
  4  0.0374322
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/175016': 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) = 1944.12086755
delta logL = -1.85513272299e-07

Extracting fit parameters...

4FGL J1404.8+6554
   Spectrum: PowerLaw
366    Prefactor:  1.015e-04  7.418e-02  1.000e-04  1.000e+04 ( 1.000e-14)
367        Index:  2.056e+00  5.165e+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.327e+00  3.743e-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:  6.761e-01  3.224e-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/175016/cmap_HighResolution_550886401_551145601_4FGL_J1404.8+6554_daily_bin1202.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.79e-03', job_status='DONE', photon_flux_upper_limit='1.04e-07', time_completed='2021-09-09 00:30:24.119985', job_id='175016', GAL2='1.33', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1631172624.12', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.33', dlogl='-1.86e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='1202' AND source_name='4FGL J1404.8+6554' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 00:30:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0016>
Subject: Job 175016: <4FGL_J1404.8+6554_daily_bin1202> in cluster <slac> Done

Job <4FGL_J1404.8+6554_daily_bin1202> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 00:20:41 2021
Job was executed on host(s) <bullet0016>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 00:20:44 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:20:44 2021
Terminated at Thu Sep  9 00:30:24 2021
Results reported at Thu Sep  9 00:30:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1404.8+6554_daily_bin1202 211.216 65.9048 550886401 551145601 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 :                                   543.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             314.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   580 sec.
    Turnaround time :                            583 sec.

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

