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


Performing analysis on: 4FGL_J1421.1+3859_daily_bin1272
RA = 215.292, Dec = 38.9966
tmin = 569030401, tmax = 569289601
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='369739', job_status='RUN', time_executed='2021-09-09 10:56:37.183501', time_epoch_executed='1631210197.18' WHERE source_name='4FGL J1421.1+3859' and cadence='daily' and bin_id='1272'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/369739

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/369739/ft1_4FGL_J1421.1+3859_daily_bin1272.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/369739/ft2_4FGL_J1421.1+3859_daily_bin1272.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/369739/ft1_4FGL_J1421.1+3859_daily_bin1272.fits outfile=/scratch/kocevski/369739/ft1_filteredMKT_4FGL_J1421.1+3859_daily_bin1272.fits ra=215.292 dec=38.9966 rad=12.0 tmin=569030401.0 tmax=569289601.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.57
user 3.37
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/369739/ft2_4FGL_J1421.1+3859_daily_bin1272.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/369739/ft1_filteredMKT_4FGL_J1421.1+3859_daily_bin1272.fits evtable="EVENTS" outfile="/scratch/kocevski/369739/ft1_filtered_4FGL_J1421.1+3859_daily_bin1272.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/369739/ft1_filtered_4FGL_J1421.1+3859_daily_bin1272.fits" evtable="EVENTS" scfile=/scratch/kocevski/369739/ft2_4FGL_J1421.1+3859_daily_bin1272.fits sctable="SC_DATA" outfile=/scratch/kocevski/369739/ltcube_569030401_569289601_4FGL_J1421.1+3859_daily_bin1272.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/369739/ft2_4FGL_J1421.1+3859_daily_bin1272.fits
.....................!
real 11.95
user 11.59
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/369739/ft1_filtered_4FGL_J1421.1+3859_daily_bin1272.fits evtable="EVENTS" scfile=/scratch/kocevski/369739/ft2_4FGL_J1421.1+3859_daily_bin1272.fits sctable="SC_DATA" expcube=/scratch/kocevski/369739/ltcube_569030401_569289601_4FGL_J1421.1+3859_daily_bin1272.fits outfile=/scratch/kocevski/369739/expmap_569030401_569289601_4FGL_J1421.1+3859_daily_bin1272.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/369739/ltcube_569030401_569289601_4FGL_J1421.1+3859_daily_bin1272.fits
.....................!
real 189.96
user 184.77
sys 4.66

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/369739/ft1_filtered_4FGL_J1421.1+3859_daily_bin1272.fits scfile=/scratch/kocevski/369739/ft2_4FGL_J1421.1+3859_daily_bin1272.fits outfile=/scratch/kocevski/369739/cmap_569030401_569289601_4FGL_J1421.1+3859_daily_bin1272.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/369739/ft1_filtered_4FGL_J1421.1+3859_daily_bin1272.fits scfile=/scratch/kocevski/369739/ft2_4FGL_J1421.1+3859_daily_bin1272.fits outfile=/scratch/kocevski/369739/cmap_HighResolution_569030401_569289601_4FGL_J1421.1+3859_daily_bin1272.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    114.82       1.0000         .10000E-03   10000.    
     2 'Prefactor '    44.158       1.0000         .10000E-03   10000.    
     3 'norm      '    28.881       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.5951       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.4036       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.5477       1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    26.654       1.0000         .10000E-03   10000.    
    16 'norm      '    10.877       1.0000         .10000E-03   10000.    
    17 'Prefactor '    24.180       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.441       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.506       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11741       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.8254       1.0000         .10000E-03   10000.    
    25 'norm      '    .10339E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    94.970       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.3741       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .31039       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=   7008.039     FROM MIGRAD    STATUS=CONVERGED    795 CALLS     4087 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     114.83        75.537        .67384E-05   -.80257E-04
   2  Prefactor     44.159        66.785       -.26410E-05    .20091E-05
   3  norm          28.881        3.1910        .14501E-06   -.33665E-03
   4  Prefactor     7.5961        5.3887       -.51666E-06   -.24763E-03
   5  norm          .10000E-03    9.1231       -.33893E-05** at limit **
   6  Prefactor     .10000E-03    14.324       -.31722E-05** at limit **
   7  Prefactor     .10000E-03    12.042        .31860E-05** at limit **
   8  Prefactor     .10000E-03    1.0881       -.17683E-07** at limit **
   9  Prefactor     .10000E-03    6.1963        .66391E-06** at limit **
  10  norm          4.4031        3.3129        .14002E-05   -.48248E-03
  11  Prefactor     .10000E-03    11.855        .30873E-05** at limit **
  12  Prefactor     .10000E-03    20.027        .48911E-05** at limit **
  13  Prefactor     6.5479        3.7935       -.30839E-06   -.23527E-03
  14  norm          .10000E-03    5.0528       -.73649E-06** at limit **
  15  Prefactor     26.658        28.124       -.28758E-05   -.24232E-04
  16  norm          10.880        6.7323       -.86951E-06   -.19607E-02
  17  Prefactor     24.181        25.169        .11709E-05   -.43545E-04
  18  Prefactor     10.438        16.922       -.37819E-05    .12236E-04
  19  Prefactor     .10000E-03    15.982       -.71312E-05** at limit **
  20  norm          .10000E-03    3.8008       -.89181E-06** at limit **
  21  Prefactor     14.515        10.253       -.44523E-06   -.10628E-03
  22  Prefactor     .10000E-03    12.781        .20089E-05** at limit **
  23  Prefactor     .53623E-01    4.9706        .61611E-07   -.76517E-04
  24  Prefactor     4.8243        6.7869       -.38115E-06   -.23863E-03
  25  norm          .10000E-03    .75495        .10306E-05** at limit **
  26  norm          .10000E-03    .94494       -.10750E-07** at limit **
  27  Prefactor     .10000E-03    3.8726        .11730E-05** at limit **
  28  Prefactor     94.936        71.877       -.26823E-04    .86232E-04
  29  Prefactor     .10000E-03    6.0541        .52752E-06** at limit **
  30  Normalizat    1.3737        .18567        .91968E-06   -.49153E-03
  31  Prefactor     .31094        .19228        .20848E-05   -.12958E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 114.83
  Prefactor  = 44.1586
  norm       = 28.8813
  Prefactor  = 7.59614
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.40309
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.54792
  norm       = 0.0001
  Prefactor  = 26.658
  norm       = 10.8797
  Prefactor  = 24.1814
  Prefactor  = 10.4378
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.5146
  Prefactor  = 0.0001
  Prefactor  = 0.0536234
  Prefactor  = 4.82433
  norm       = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 94.9361
  Prefactor  = 0.0001
  Normalizat = 1.37366
  Prefactor  = 0.310937
 **********
 **   18 **HESSE 
 **********

 FCN=   7008.039     FROM HESSE     STATUS=OK           624 CALLS     4711 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     114.83        75.605        .18773E-03   -1.3561    
   2  Prefactor     44.159        67.193        .60332E-04   -1.4378    
   3  norm          28.881        3.2028        .47544E-04   -1.4633    
   4  Prefactor     7.5961        5.4209        .14552E-03   -1.5157    
   5  norm          .10000E-03    9.1758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.0910        .85277E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.2077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.4031        3.3061        .12728E-03   -1.5288    
  11  Prefactor     .10000E-03    11.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    20.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.5479        3.8019        .11806E-03   -1.5196    
  14  norm          .10000E-03    5.0579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     26.658        28.383        .77596E-04   -1.4675    
  16  norm          10.880        6.8330        .60740E-03   -1.5048    
  17  Prefactor     24.181        25.175        .81461E-04   -1.4724    
  18  Prefactor     10.438        16.893        .12400E-03   -1.5062    
  19  Prefactor     .10000E-03    15.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.8172        .15934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     14.515        10.258        .10516E-03   -1.4946    
  22  Prefactor     .10000E-03    12.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .53623E-01    5.4074        .54975E-01   -1.5662    
  24  Prefactor     4.8243        6.7748        .18314E-03   -1.5269    
  25  norm          .10000E-03    1.5008        .13742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .94706        .79466E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    3.9090        .16083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     94.936        71.897        .20621E-03   -1.3756    
  29  Prefactor     .10000E-03    6.0579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.3737        .20394        .20910E-03   -.81393    
  31  Prefactor     .31094        .20139        .44808E-03   -1.2163    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.91564e-09
Minuit parameter uncertainties:
  1  75.6684
  2  67.3081
  3  3.20278
  4  5.42129
  5  3.60117e-05
  6  1.84826e-05
  7  6.18991e-05
  8  8.70832e-07
  9  1.20208e-05
  10  3.3062
  11  0.000121292
  12  0.000200384
  13  3.802
  14  3.86191e-07
  15  28.3976
  16  6.83349
  17  25.1858
  18  16.9003
  19  0.000142989
  20  1.28333e-05
  21  10.2588
  22  6.8233e-07
  23  1.07606
  24  6.77583
  25  0.000129612
  26  3.95123e-07
  27  1.54039e-05
  28  71.9631
  29  1.96442e-06
  30  0.204061
  31  0.201846
Done.

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

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  2.004e-04  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:  3.109e-01  2.018e-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.374e+00  2.041e-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.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/369739/likelihoodResults_569030401_569289601_4FGL_J1421.1+3859_daily_bin1272.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) = 7008.03899557
delta logL = -0.000235492066167

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7008.03876069
delta logL = -6.07940819464e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5732       1.0000          .0000       10.000    
     3 'Normalizat'    1.3737       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .31095       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=   7008.039     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      285 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1815.4        .18142E-02** at limit **
   2  Index         2.6168        8.6895        .50000       -.26312E-04
   3  Normalizat    1.3737        .47811E-01    .20910E-03    .54912E-05
   4  Prefactor     .31093        .51585E-01    .44808E-03   -.46178E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100012
  Index      = 2.61682
  Normalizat = 1.37367
  Prefactor  = 0.310935
 **********
 **   18 **HESSE 
 **********

 FCN=   7008.039     FROM HESSE     STATUS=OK            29 CALLS      314 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    38.440        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6168        6.1113        .50000       -.49682    
   3  Normalizat    1.3737        .18229        .83642E-05   -.81393    
   4  Prefactor     .31093        .19645        .17923E-04   -1.2163    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.9745e-10
Minuit parameter uncertainties:
  1  0.00138167
  2  6.47774
  3  0.182373
  4  0.196868
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/369739': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7008.03876041
delta logL = -3.33256139129e-07

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  1.382e-03  1.000e-04  1.000e+04 ( 1.000e-13)
292        Index:  2.617e+00  6.478e+00  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:  3.109e-01  1.969e-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.374e+00  1.824e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/369739/cmap_HighResolution_569030401_569289601_4FGL_J1421.1+3859_daily_bin1272.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.22e-03', job_status='DONE', photon_flux_upper_limit='7.91e-08', time_completed='2021-09-09 11:12:52.983978', job_id='369739', GAL2='0.31', fit_tolerance='1e-08', EG2='1.37', EG='1.37', time_epoch_completed='1631211172.98', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.31', dlogl='-3.33e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='1272' AND source_name='4FGL J1421.1+3859' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:12:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 369739: <4FGL_J1421.1+3859_daily_bin1272> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1421.1+3859_daily_bin1272 215.292 38.9966 569030401 569289601 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 :                                   968.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             329.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            989 sec.

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

