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


Performing analysis on: 4FGL_J1421.1+3859_daily_bin1314
RA = 215.292, Dec = 38.9966
tmin = 579916801, tmax = 580176001
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='369800', job_status='RUN', time_executed='2021-09-09 10:56:39.769339', time_epoch_executed='1631210199.77' WHERE source_name='4FGL J1421.1+3859' and cadence='daily' and bin_id='1314'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/369800

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/369800/ft1_4FGL_J1421.1+3859_daily_bin1314.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/369800/ft2_4FGL_J1421.1+3859_daily_bin1314.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/369800/ft1_4FGL_J1421.1+3859_daily_bin1314.fits outfile=/scratch/kocevski/369800/ft1_filteredMKT_4FGL_J1421.1+3859_daily_bin1314.fits ra=215.292 dec=38.9966 rad=12.0 tmin=579916801.0 tmax=580176001.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.46
user 3.21
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/369800/ft2_4FGL_J1421.1+3859_daily_bin1314.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/369800/ft1_filteredMKT_4FGL_J1421.1+3859_daily_bin1314.fits evtable="EVENTS" outfile="/scratch/kocevski/369800/ft1_filtered_4FGL_J1421.1+3859_daily_bin1314.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.51
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/369800/ft1_filtered_4FGL_J1421.1+3859_daily_bin1314.fits" evtable="EVENTS" scfile=/scratch/kocevski/369800/ft2_4FGL_J1421.1+3859_daily_bin1314.fits sctable="SC_DATA" outfile=/scratch/kocevski/369800/ltcube_579916801_580176001_4FGL_J1421.1+3859_daily_bin1314.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/369800/ft2_4FGL_J1421.1+3859_daily_bin1314.fits
.....................!
real 12.03
user 11.68
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/369800/ft1_filtered_4FGL_J1421.1+3859_daily_bin1314.fits evtable="EVENTS" scfile=/scratch/kocevski/369800/ft2_4FGL_J1421.1+3859_daily_bin1314.fits sctable="SC_DATA" expcube=/scratch/kocevski/369800/ltcube_579916801_580176001_4FGL_J1421.1+3859_daily_bin1314.fits outfile=/scratch/kocevski/369800/expmap_579916801_580176001_4FGL_J1421.1+3859_daily_bin1314.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/369800/ltcube_579916801_580176001_4FGL_J1421.1+3859_daily_bin1314.fits
.....................!
real 193.43
user 188.61
sys 4.44

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/369800/ft1_filtered_4FGL_J1421.1+3859_daily_bin1314.fits scfile=/scratch/kocevski/369800/ft2_4FGL_J1421.1+3859_daily_bin1314.fits outfile=/scratch/kocevski/369800/cmap_579916801_580176001_4FGL_J1421.1+3859_daily_bin1314.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/369800/ft1_filtered_4FGL_J1421.1+3859_daily_bin1314.fits scfile=/scratch/kocevski/369800/ft2_4FGL_J1421.1+3859_daily_bin1314.fits outfile=/scratch/kocevski/369800/cmap_HighResolution_579916801_580176001_4FGL_J1421.1+3859_daily_bin1314.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.57
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/369800/ft1_filtered_4FGL_J1421.1+3859_daily_bin1314.fits evtable="EVENTS" scfile=/scratch/kocevski/369800/ft2_4FGL_J1421.1+3859_daily_bin1314.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/369800/Model_4FGL_J1421.1+3859_daily_bin1314.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/369800/ft1_filtered_4FGL_J1421.1+3859_daily_bin1314.fits.....................!
real 45.78
user 44.47
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/369800/ft1_filtered_4FGL_J1421.1+3859_daily_bin1314.fits', '/scratch/kocevski/369800/ft2_4FGL_J1421.1+3859_daily_bin1314.fits', expMap='/scratch/kocevski/369800/expmap_579916801_580176001_4FGL_J1421.1+3859_daily_bin1314.fits', expCube='/scratch/kocevski/369800/ltcube_579916801_580176001_4FGL_J1421.1+3859_daily_bin1314.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/369800/Model_4FGL_J1421.1+3859_daily_bin1314.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/369800/ft1_filtered_4FGL_J1421.1+3859_daily_bin1314.fits
Spacecraft file(s): /scratch/kocevski/369800/ft2_4FGL_J1421.1+3859_daily_bin1314.fits
Exposure map: /scratch/kocevski/369800/expmap_579916801_580176001_4FGL_J1421.1+3859_daily_bin1314.fits
Exposure cube: /scratch/kocevski/369800/ltcube_579916801_580176001_4FGL_J1421.1+3859_daily_bin1314.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/369800/Model_4FGL_J1421.1+3859_daily_bin1314.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) = 5648.18073417

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    12.902       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.6496       1.0000         .10000E-03   10000.    
     5 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .84011       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.9830       1.0000         .10000E-03   10000.    
    14 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.8621       1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.784       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    32.004       1.0000         .10000E-03   10000.    
    20 'norm      '    10.677       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10546E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .97861       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .84164       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.

 FCN=   5648.178     FROM MIGRAD    STATUS=CONVERGED    807 CALLS     4082 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.245        .12556E-06** at limit **
   2  Prefactor     .10000E-03    29.989        .25251E-06** at limit **
   3  norm          12.902        2.2886        .23805E-07   -.12961E-04
   4  Prefactor     1.6498        3.0647        .18069E-06    .53941E-04
   5  norm          .10000E-03    4.3368       -.34824E-07** at limit **
   6  Prefactor     .10000E-03    4.7500        .71757E-08** at limit **
   7  Prefactor     .10000E-03    47.847        .15804E-06** at limit **
   8  Prefactor     .84039        2.7945        .34796E-06   -.70283E-04
   9  Prefactor     .10010E-03    18.928        .76976E-05** at limit **
  10  norm          .10000E-03    1.4672        .88040E-07** at limit **
  11  Prefactor     .10000E-03    8.4612       -.48847E-06** at limit **
  12  Prefactor     .10000E-03    15.441       -.15510E-06** at limit **
  13  Prefactor     9.9829        4.5318       -.11665E-06    .48100E-03
  14  norm          .10000E-03    16.005        .24551E-06** at limit **
  15  Prefactor     .10000E-03    31.551        .57321E-06** at limit **
  16  norm          3.8621        5.2663        .33655E-05    .72436E-03
  17  Prefactor     17.786        24.290       -.48793E-06   -.95940E-05
  18  Prefactor     .10000E-03    27.699       -.21780E-06** at limit **
  19  Prefactor     32.006        30.467       -.43297E-07    .83405E-05
  20  norm          10.677        9.2355       -.33882E-06   -.33679E-04
  21  Prefactor     .10000E-03    6.9495        .18137E-06** at limit **
  22  Prefactor     .10000E-03    21.718       -.72224E-06** at limit **
  23  Prefactor     .10000E-03    2.2244       -.32265E-07** at limit **
  24  Prefactor     .10000E-03    6.7155       -.83526E-07** at limit **
  25  norm          .10000E-03    .63273       -.74309E-07** at limit **
  26  norm          .10000E-03    .99002       -.16112E-07** at limit **
  27  Prefactor     .10000E-03    2.4803       -.32208E-07** at limit **
  28  Prefactor     .10000E-03    128.79        .64264E-06** at limit **
  29  Prefactor     .10000E-03    8.3528        .43885E-06** at limit **
  30  Normalizat    .97854        .16164       -.11114E-05   -.51154E-04
  31  Prefactor     .84172        .18621        .10199E-05    .35756E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.9016
  Prefactor  = 1.64985
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.840394
  Prefactor  = 0.0001001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.98293
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 3.8621
  Prefactor  = 17.7865
  Prefactor  = 0.0001
  Prefactor  = 32.0057
  norm       = 10.6769
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Normalizat = 0.978542
  Prefactor  = 0.841722
 **********
 **   18 **HESSE 
 **********

 FCN=   5648.178     FROM HESSE     STATUS=OK           614 CALLS     4696 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    30.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          12.902        2.2908        .46178E-04   -1.4989    
   4  Prefactor     1.6498        3.0354        .17271E-03   -1.5451    
   5  norm          .10000E-03    4.3433        .15285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.7520        .15997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    48.124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .84039        2.9202        .22025E-02   -1.5525    
   9  Prefactor     .10010E-03    52.835        .45125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.4759        .88893E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.5482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.9829        4.5516        .10245E-03   -1.5076    
  14  norm          .10000E-03    16.441        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    31.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.8621        5.6577        .10267E-02   -1.5315    
  17  Prefactor     17.786        24.300        .94975E-04   -1.4864    
  18  Prefactor     .10000E-03    28.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     32.006        30.459        .70828E-04   -1.4576    
  20  norm          10.677        9.2360        .61308E-03   -1.5054    
  21  Prefactor     .10000E-03    6.9819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    21.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.2331        .10945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    6.9330        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .66180        .11666E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .99169        .73028E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    2.4855        .11559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    129.51        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    8.3988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .97854        .19093        .21448E-03   -.93753    
  31  Prefactor     .84172        .22092        .26968E-03   -.98208    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47319e-08
Minuit parameter uncertainties:
  1  4.79809e-05
  2  0.000150908
  3  2.29082
  4  3.0357
  5  2.92886e-06
  6  1.03762e-06
  7  0.000244961
  8  2.92074
  9  0.00460923
  10  6.33038e-06
  11  9.42636e-05
  12  4.17037e-05
  13  4.55171
  14  0.000168387
  15  0.000454083
  16  5.65845
  17  24.3132
  18  7.96561e-05
  19  30.4743
  20  9.23727
  21  5.12401e-05
  22  0.000255992
  23  3.49762e-06
  24  6.91299e-05
  25  3.25522e-06
  26  1.0247e-06
  27  3.53779e-06
  28  0.00102795
  29  0.000108975
  30  0.191067
  31  0.221152
Done.

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

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  4.170e-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:  8.417e-01  2.212e-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:  9.785e-01  1.911e-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: 7.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/369800/likelihoodResults_579916801_580176001_4FGL_J1421.1+3859_daily_bin1314.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) = 5648.17823112
delta logL = -0.000305569562443

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5648.17792596
delta logL = -4.04549609812e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11964E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7093       1.0000          .0000       10.000    
     3 'Normalizat'    .97860       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84167       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=   5648.178     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      237 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    1444.6        .18142E-02** at limit **
   2  Index         2.7589        6.2619        .50000       -.31473E-04
   3  Normalizat    .97854        .38572E-01    .21448E-03   -.41194E-03
   4  Prefactor     .84172        .45523E-01    .26968E-03   -.16732E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100019
  Index      = 2.75889
  Normalizat = 0.97854
  Prefactor  = 0.841723
 **********
 **   18 **HESSE 
 **********

 FCN=   5648.178     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      266 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    6934.5        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7589        6.8027        .50000       -.46478    
   3  Normalizat    .97854        .14464        .42896E-04   -.93753    
   4  Prefactor     .84172        .17068        .10787E-04   -.98208    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.09411e-09
Minuit parameter uncertainties:
  1  0.0184452
  2  69.3663
  3  0.1447
  4  0.170789
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/369800': 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) = 5648.177925
delta logL = 5.50179720449e-07

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  1.845e-02  1.000e-04  1.000e+04 ( 1.000e-13)
292        Index:  2.759e+00  6.937e+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:  8.417e-01  1.708e-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:  9.785e-01  1.447e-01  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/369800/cmap_HighResolution_579916801_580176001_4FGL_J1421.1+3859_daily_bin1314.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.77e-03', job_status='DONE', photon_flux_upper_limit='7.34e-08', time_completed='2021-09-09 11:10:36.464765', job_id='369800', GAL2='0.84', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1631211036.46', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='5.50e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='1314' AND source_name='4FGL J1421.1+3859' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:10:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0130>
Subject: Job 369800: <4FGL_J1421.1+3859_daily_bin1314> in cluster <slac> Done

Job <4FGL_J1421.1+3859_daily_bin1314> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  9 10:56:28 2021
Job was executed on host(s) <bullet0130>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 10:56:29 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:56:29 2021
Terminated at Thu Sep  9 11:10:37 2021
Results reported at Thu Sep  9 11:10:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1421.1+3859_daily_bin1314 215.292 38.9966 579916801 580176001 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 :                                   830.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   847 sec.
    Turnaround time :                            849 sec.

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

