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


Performing analysis on: 4FGL_J1421.1+3859_daily_bin178
RA = 215.292, Dec = 38.9966
tmin = 285465601, tmax = 285724801
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='363841', job_status='RUN', time_executed='2021-09-09 10:36:56.346722', time_epoch_executed='1631209016.35' WHERE source_name='4FGL J1421.1+3859' and cadence='daily' and bin_id='178'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/363841

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/363841/ft1_4FGL_J1421.1+3859_daily_bin178.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/363841/ft2_4FGL_J1421.1+3859_daily_bin178.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/363841/ft1_4FGL_J1421.1+3859_daily_bin178.fits outfile=/scratch/kocevski/363841/ft1_filteredMKT_4FGL_J1421.1+3859_daily_bin178.fits ra=215.292 dec=38.9966 rad=12.0 tmin=285465601.0 tmax=285724801.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.48
user 3.24
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/363841/ft2_4FGL_J1421.1+3859_daily_bin178.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/363841/ft2_4FGL_J1421.1+3859_daily_bin178.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/363841/ft1_filteredMKT_4FGL_J1421.1+3859_daily_bin178.fits evtable="EVENTS" outfile="/scratch/kocevski/363841/ft1_filtered_4FGL_J1421.1+3859_daily_bin178.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.53
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/363841/ft1_filtered_4FGL_J1421.1+3859_daily_bin178.fits" evtable="EVENTS" scfile=/scratch/kocevski/363841/ft2_4FGL_J1421.1+3859_daily_bin178.fits sctable="SC_DATA" outfile=/scratch/kocevski/363841/ltcube_285465601_285724801_4FGL_J1421.1+3859_daily_bin178.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/363841/ft2_4FGL_J1421.1+3859_daily_bin178.fits
.....................!
real 12.12
user 11.71
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/363841/ft1_filtered_4FGL_J1421.1+3859_daily_bin178.fits evtable="EVENTS" scfile=/scratch/kocevski/363841/ft2_4FGL_J1421.1+3859_daily_bin178.fits sctable="SC_DATA" expcube=/scratch/kocevski/363841/ltcube_285465601_285724801_4FGL_J1421.1+3859_daily_bin178.fits outfile=/scratch/kocevski/363841/expmap_285465601_285724801_4FGL_J1421.1+3859_daily_bin178.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/363841/ltcube_285465601_285724801_4FGL_J1421.1+3859_daily_bin178.fits
.....................!
real 189.90
user 184.78
sys 4.04

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

Setting source of interest to:
4FGL J1421.1+3859 @ 215.292 38.9966

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/363841/ft1_filtered_4FGL_J1421.1+3859_daily_bin178.fits scfile=/scratch/kocevski/363841/ft2_4FGL_J1421.1+3859_daily_bin178.fits outfile=/scratch/kocevski/363841/cmap_285465601_285724801_4FGL_J1421.1+3859_daily_bin178.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=215.292 yref=38.9966 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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/363841/ft1_filtered_4FGL_J1421.1+3859_daily_bin178.fits scfile=/scratch/kocevski/363841/ft2_4FGL_J1421.1+3859_daily_bin178.fits outfile=/scratch/kocevski/363841/cmap_HighResolution_285465601_285724801_4FGL_J1421.1+3859_daily_bin178.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=215.292 yref=38.9966 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/363841/ft1_filtered_4FGL_J1421.1+3859_daily_bin178.fits evtable="EVENTS" scfile=/scratch/kocevski/363841/ft2_4FGL_J1421.1+3859_daily_bin178.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/363841/Model_4FGL_J1421.1+3859_daily_bin178.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/363841/ft1_filtered_4FGL_J1421.1+3859_daily_bin178.fits.....................!
real 43.74
user 42.37
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/363841/ft1_filtered_4FGL_J1421.1+3859_daily_bin178.fits', '/scratch/kocevski/363841/ft2_4FGL_J1421.1+3859_daily_bin178.fits', expMap='/scratch/kocevski/363841/expmap_285465601_285724801_4FGL_J1421.1+3859_daily_bin178.fits', expCube='/scratch/kocevski/363841/ltcube_285465601_285724801_4FGL_J1421.1+3859_daily_bin178.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/363841/Model_4FGL_J1421.1+3859_daily_bin178.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1421.1+3859'

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  1.965e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
292        Index:  2.670e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
293        Scale:  9.266e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/363841/ft1_filtered_4FGL_J1421.1+3859_daily_bin178.fits
Spacecraft file(s): /scratch/kocevski/363841/ft2_4FGL_J1421.1+3859_daily_bin178.fits
Exposure map: /scratch/kocevski/363841/expmap_285465601_285724801_4FGL_J1421.1+3859_daily_bin178.fits
Exposure cube: /scratch/kocevski/363841/ltcube_285465601_285724801_4FGL_J1421.1+3859_daily_bin178.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/363841/Model_4FGL_J1421.1+3859_daily_bin178.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) = 5308.44801124

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.846       1.0000         .10000E-03   10000.    
     3 'norm      '    1.3773       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .29872E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    27.288       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.378       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.236       1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .34217E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10429E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7556       1.0000         .10000E-03   10000.    
    14 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13802E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.0855       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11246E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.1605       1.0000         .10000E-03   10000.    
    20 'norm      '    5.4977       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .24492E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.223       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.641       1.0000         .10000E-03   10000.    
    25 'norm      '    .96421       1.0000         .10000E-03   10000.    
    26 'norm      '    1.8856       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    37.948       1.0000         .10000E-03   10000.    
    29 'Prefactor '    20.310       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0033       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .79733       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5840E+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=   5308.389     FROM MIGRAD    STATUS=CONVERGED   1460 CALLS     4881 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.035        .18142E-02** at limit **
   2  Prefactor     20.944        61.524        .87725E-04    .97196E-05
   3  norm          1.3771        1.2651        .75817E-04   -.25042E-04
   4  Prefactor     .10000E-03    1.9244        .98063E-03** at limit **
   5  norm          .10000E-03    18.558        .70262E-01** at limit **
   6  Prefactor     27.324        22.598        .76691E-04   -.95022E-04
   7  Prefactor     14.375        32.694        .10563E-03    .11839E-05
   8  Prefactor     .10000E-03    1.8572        .96682E-03** at limit **
   9  Prefactor     10.236        17.965        .12524E-03   -.21695E-04
  10  norm          .10000E-03    1.1090        .74638E-03** at limit **
  11  Prefactor     .10000E-03    35.108        .42667E-03** at limit **
  12  Prefactor     .10000E-03    38.716        .36285E-03** at limit **
  13  Prefactor     2.7558        2.4548        .10399E-03   -.57396E-04
  14  norm          .10000E-03    21.276        .36285E-03** at limit **
  15  Prefactor     .10000E-03    97.851        .36285E-03** at limit **
  16  norm          2.0883        3.8332        .18791E-03    .11798E-04
  17  Prefactor     .10000E-03    129.18        .18142E-02** at limit **
  18  Prefactor     .10000E-03    11.802        .18142E-02** at limit **
  19  Prefactor     3.1837        63.169        .22799E-03    .50364E-05
  20  norm          5.4997        5.6339        .17064E-03    .22986E-04
  21  Prefactor     .10000E-03    44.289        .40996E-02** at limit **
  22  Prefactor     11.214        22.736        .11958E-03   -.59893E-05
  23  Prefactor     .10000E-03    2.1933        .10522E-02** at limit **
  24  Prefactor     16.639        10.146        .98183E-04   -.21306E-04
  25  norm          .96463        .97137        .71592E-03    .17981E-03
  26  norm          1.8858        2.9653        .15345E-03    .11928E-04
  27  Prefactor     .10000E-03    5.4392        .16504E-02** at limit **
  28  Prefactor     37.943        47.271        .65063E-04    .10484E-05
  29  Prefactor     20.309        22.525        .88875E-04    .61401E-05
  30  Normalizat    1.0032        .19904        .20360E-03    .75662E-04
  31  Prefactor     .79754        .21890        .26625E-03    .56064E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 20.9444
  norm       = 1.37712
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 27.3241
  Prefactor  = 14.3753
  Prefactor  = 0.0001
  Prefactor  = 10.2355
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.75583
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 2.08833
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.1837
  norm       = 5.49966
  Prefactor  = 0.0001
  Prefactor  = 11.214
  Prefactor  = 0.0001
  Prefactor  = 16.639
  norm       = 0.964626
  norm       = 1.88583
  Prefactor  = 0.0001
  Prefactor  = 37.9433
  Prefactor  = 20.3085
  Normalizat = 1.00324
  Prefactor  = 0.797539
 **********
 **   18 **HESSE 
 **********

 FCN=   5308.389     FROM HESSE     STATUS=OK           602 CALLS     5483 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.035        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     20.944        61.512        .35090E-05   -1.4792    
   3  norm          1.3771        1.2651        .30327E-05   -1.5473    
   4  Prefactor     .10000E-03    1.9247        .19613E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    15.608        .78555E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     27.324        22.602        .30676E-05   -1.4662    
   7  Prefactor     14.375        32.693        .42252E-05   -1.4949    
   8  Prefactor     .10000E-03    1.8573        .19336E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.236        17.963        .50095E-05   -1.5068    
  10  norm          .10000E-03    1.1090        .14928E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    35.110        .85334E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    38.717        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.7558        2.4548        .41596E-05   -1.5376    
  14  norm          .10000E-03    21.277        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    97.856        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.0883        3.8330        .75164E-05   -1.5419    
  17  Prefactor     .10000E-03    129.27        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.804        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.1837        63.124        .91195E-05   -1.5351    
  20  norm          5.4997        5.6338        .68255E-05   -1.5239    
  21  Prefactor     .10000E-03    44.759        .81991E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.214        22.735        .47834E-05   -1.5038    
  23  Prefactor     .10000E-03    2.1933        .21043E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     16.639        10.146        .39273E-05   -1.4892    
  25  norm          .96463        .97121        .28637E-04   -1.5512    
  26  norm          1.8858        2.9652        .61378E-05   -1.5433    
  27  Prefactor     .10000E-03    5.4407        .33009E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     37.943        47.271        .13013E-04   -1.4475    
  29  Prefactor     20.309        22.527        .35550E-05   -1.4806    
  30  Normalizat    1.0032        .19924        .81439E-05   -.92922    
  31  Prefactor     .79754        .21917        .10650E-04   -.99819    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.9182e-11
Minuit parameter uncertainties:
  1  4.9063e-06
  2  61.699
  3  1.26508
  4  1.59714e-06
  5  0.000321358
  6  22.6088
  7  32.7341
  8  8.42039e-07
  9  17.9729
  10  6.48206e-07
  11  5.24349e-05
  12  8.12406e-05
  13  2.45486
  14  5.47649e-05
  15  0.000810882
  16  3.83342
  17  0.000323512
  18  1.02131e-05
  19  28.3866
  20  5.63437
  21  8.72926e-05
  22  22.7522
  23  2.98926e-06
  24  10.147
  25  0.971222
  26  2.96547
  27  1.37635e-05
  28  47.3173
  29  22.5367
  30  0.199384
  31  0.219408
Done.

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

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  8.124e-05  1.000e-04  1.000e+04 ( 1.000e-13)
292        Index:  2.670e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
293        Scale:  9.266e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
581    Prefactor:  7.975e-01  2.194e-01  0.000e+00  1.000e+01 ( 1.000e+00)
582        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
583        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
580   Normalization:  1.003e+00  1.994e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 215.292 38.997
Photon Flux Upper Limit: 8.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.81e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/363841/likelihoodResults_285465601_285724801_4FGL_J1421.1+3859_daily_bin178.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) = 5308.38890956
delta logL = -0.00012313237221

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5308.38878631
delta logL = 1.16834598884e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10885E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7357       1.0000          .0000       10.000    
     3 'Normalizat'    1.0033       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79749       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5308.389     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      218 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10013E-03    6.0591        .90712E-01** at limit **
   2  Index         2.8298        3.1852        .50000       -.21592E-04
   3  Normalizat    1.0032        .30029E-02    .46208E-01    .31068E-04
   4  Prefactor     .79754        .35577E-02    .43685E-01    .28252E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100129
  Index      = 2.82976
  Normalizat = 1.00324
  Prefactor  = 0.797539
 **********
 **   18 **HESSE 
 **********

 FCN=   5308.389     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      253 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10013E-03    6895.0        .44692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8298        6.3546        .50000       -.44898    
   3  Normalizat    1.0032        .31400E-01    .20360E-03   -.92922    
   4  Prefactor     .79754        .37037E-01    .26625E-03   -.99819    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.1492e-07
Minuit parameter uncertainties:
  1  0.0475789
  2  34.3467
  3  0.0314007
  4  0.0370385
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/363841': 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) = 5308.38878577
delta logL = 6.61553713144e-07

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  1.001e-04  4.758e-02  1.000e-04  1.000e+04 ( 1.000e-13)
292        Index:  2.830e+00  3.435e+01  0.000e+00  1.000e+01 (-1.000e+00)
293        Scale:  9.266e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
581    Prefactor:  7.975e-01  3.704e-02  0.000e+00  1.000e+01 ( 1.000e+00)
582        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
583        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
580   Normalization:  1.003e+00  3.140e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 215.292 38.997

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/363841/cmap_HighResolution_285465601_285724801_4FGL_J1421.1+3859_daily_bin178.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.81e-03', job_status='DONE', photon_flux_upper_limit='8.67e-08', time_completed='2021-09-09 10:51:05.578532', job_id='363841', GAL2='0.80', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1631209865.58', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='6.62e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='178' AND source_name='4FGL J1421.1+3859' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 10:51:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 363841: <4FGL_J1421.1+3859_daily_bin178> in cluster <slac> Done

Job <4FGL_J1421.1+3859_daily_bin178> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Thu Sep  9 10:36:36 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 10:36:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 10:36:37 2021
Terminated at Thu Sep  9 10:51:06 2021
Results reported at Thu Sep  9 10:51:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1421.1+3859_daily_bin178 215.292 38.9966 285465601 285724801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1421.1+3859 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   846.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             293.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            870 sec.

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

