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


Performing analysis on: 4FGL_J1421.1+3859_daily_bin482
RA = 215.292, Dec = 38.9966
tmin = 364262401, tmax = 364521601
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='365282', job_status='RUN', time_executed='2021-09-09 10:41:40.197138', time_epoch_executed='1631209300.2' WHERE source_name='4FGL J1421.1+3859' and cadence='daily' and bin_id='482'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/365282

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/365282/ft1_4FGL_J1421.1+3859_daily_bin482.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/365282/ft2_4FGL_J1421.1+3859_daily_bin482.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/365282/ft1_4FGL_J1421.1+3859_daily_bin482.fits outfile=/scratch/kocevski/365282/ft1_filteredMKT_4FGL_J1421.1+3859_daily_bin482.fits ra=215.292 dec=38.9966 rad=12.0 tmin=364262401.0 tmax=364521601.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.26
user 3.06
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/365282/ft2_4FGL_J1421.1+3859_daily_bin482.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/365282/ft1_filteredMKT_4FGL_J1421.1+3859_daily_bin482.fits evtable="EVENTS" outfile="/scratch/kocevski/365282/ft1_filtered_4FGL_J1421.1+3859_daily_bin482.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.55
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/365282/ft1_filtered_4FGL_J1421.1+3859_daily_bin482.fits" evtable="EVENTS" scfile=/scratch/kocevski/365282/ft2_4FGL_J1421.1+3859_daily_bin482.fits sctable="SC_DATA" outfile=/scratch/kocevski/365282/ltcube_364262401_364521601_4FGL_J1421.1+3859_daily_bin482.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/365282/ft2_4FGL_J1421.1+3859_daily_bin482.fits
.....................!
real 12.24
user 11.88
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/365282/ft1_filtered_4FGL_J1421.1+3859_daily_bin482.fits evtable="EVENTS" scfile=/scratch/kocevski/365282/ft2_4FGL_J1421.1+3859_daily_bin482.fits sctable="SC_DATA" expcube=/scratch/kocevski/365282/ltcube_364262401_364521601_4FGL_J1421.1+3859_daily_bin482.fits outfile=/scratch/kocevski/365282/expmap_364262401_364521601_4FGL_J1421.1+3859_daily_bin482.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/365282/ltcube_364262401_364521601_4FGL_J1421.1+3859_daily_bin482.fits
.....................!
real 190.81
user 185.35
sys 4.93

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/365282/ft1_filtered_4FGL_J1421.1+3859_daily_bin482.fits scfile=/scratch/kocevski/365282/ft2_4FGL_J1421.1+3859_daily_bin482.fits outfile=/scratch/kocevski/365282/cmap_364262401_364521601_4FGL_J1421.1+3859_daily_bin482.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/365282/ft1_filtered_4FGL_J1421.1+3859_daily_bin482.fits scfile=/scratch/kocevski/365282/ft2_4FGL_J1421.1+3859_daily_bin482.fits outfile=/scratch/kocevski/365282/cmap_HighResolution_364262401_364521601_4FGL_J1421.1+3859_daily_bin482.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    191.44       1.0000         .10000E-03   10000.    
     3 'norm      '    16.423       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .47724       1.0000         .10000E-03   10000.    
     5 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    38.489       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.1200       1.0000         .10000E-03   10000.    
    10 'norm      '    20.431       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.9959       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.988       1.0000         .10000E-03   10000.    
    16 'norm      '    20.414       1.0000         .10000E-03   10000.    
    17 'Prefactor '    43.904       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.6700       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    7.0327       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.5109       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    21.001       1.0000         .10000E-03   10000.    
    28 'Prefactor '    36.762       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .48802       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.2557       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=   5924.334     FROM MIGRAD    STATUS=CONVERGED    800 CALLS     4116 TOTAL
                     EDM=   .95E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.773        .29347E-06** at limit **
   2  Prefactor     191.46        86.443        .49739E-06    .89259E-04
   3  norm          16.423        2.7297       -.42009E-08    .11228E-04
   4  Prefactor     .48007        2.4393        .15515E-06   -.66626E-05
   5  norm          .10000E-03    25.405       -.93252E-06** at limit **
   6  Prefactor     .10000E-03    5.6545        .21260E-07** at limit **
   7  Prefactor     38.489        37.477       -.32605E-06   -.66266E-05
   8  Prefactor     .10000E-03    2.2723       -.99765E-07** at limit **
   9  Prefactor     7.1200        15.287        .39987E-05   -.44591E-04
  10  norm          20.431        5.7689        .19896E-07   -.16144E-04
  11  Prefactor     4.9962        6.9646       -.20736E-07    .27483E-04
  12  Prefactor     .10000E-03    7.9831       -.23130E-06** at limit **
  13  Prefactor     .10000E-03    2.3266        .11540E-07** at limit **
  14  norm          .10000E-03    7.8792       -.79847E-08** at limit **
  15  Prefactor     10.991        24.422       -.60091E-07   -.12922E-05
  16  norm          20.414        7.3503        .34075E-07    .16334E-04
  17  Prefactor     43.903        38.200        .47363E-07   -.51191E-05
  18  Prefactor     1.6694        30.177        .13082E-05   -.66097E-05
  19  Prefactor     .10000E-03    7.7275        .28765E-06** at limit **
  20  norm          7.0323        6.7955        .29904E-06   -.13233E-04
  21  Prefactor     .10000E-03    2.8529        .21076E-09** at limit **
  22  Prefactor     .10000E-03    103.58       -.12018E-05** at limit **
  23  Prefactor     .10000E-03    6.0067       -.61892E-07** at limit **
  24  Prefactor     .10000E-03    3.5035       -.32603E-07** at limit **
  25  norm          4.5107        1.6744        .25714E-07    .68358E-05
  26  norm          .10000E-03    1.2939       -.44001E-08** at limit **
  27  Prefactor     20.999        10.162        .23993E-06   -.69470E-05
  28  Prefactor     36.760        42.129        .53593E-07   -.99977E-05
  29  Prefactor     .10000E-03    32.518        .80218E-06** at limit **
  30  Normalizat    .48782        .18275       -.18634E-05   -.46565E-05
  31  Prefactor     1.2559        .20240        .40411E-06   -.69901E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 191.461
  norm       = 16.4228
  Prefactor  = 0.480065
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 38.4887
  Prefactor  = 0.0001
  Prefactor  = 7.11998
  norm       = 20.4311
  Prefactor  = 4.99621
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.991
  norm       = 20.414
  Prefactor  = 43.9035
  Prefactor  = 1.66941
  Prefactor  = 0.0001
  norm       = 7.03227
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.51068
  norm       = 0.0001
  Prefactor  = 20.9989
  Prefactor  = 36.7603
  Prefactor  = 0.000100001
  Normalizat = 0.487818
  Prefactor  = 1.25591
 **********
 **   18 **HESSE 
 **********

 FCN=   5924.334     FROM HESSE     STATUS=OK           618 CALLS     4734 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     191.46        86.743        .14595E-03   -1.2932    
   3  norm          16.423        2.7298        .49531E-04   -1.4897    
   4  Prefactor     .48007        8.6286        .22320E-02   -1.5569    
   5  norm          .10000E-03    25.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.6569        .17876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     38.489        37.450        .64605E-04   -1.4466    
   8  Prefactor     .10000E-03    2.2956        .11330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.1200        15.308        .75167E-03   -1.5174    
  10  norm          20.431        5.7687        .88612E-04   -1.4804    
  11  Prefactor     4.9962        6.9538        .17992E-03   -1.5261    
  12  Prefactor     .10000E-03    8.0130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.3887        .22897E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    7.9097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.991        24.463        .12086E-03   -1.5045    
  16  norm          20.414        7.3494        .88649E-04   -1.4804    
  17  Prefactor     43.903        38.190        .60505E-04   -1.4382    
  18  Prefactor     1.6694        30.164        .32623E-03   -1.5450    
  19  Prefactor     .10000E-03    7.7443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.0323        6.7989        .75636E-03   -1.5178    
  21  Prefactor     .10000E-03    2.8548        .12696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    106.62        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.0726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.5205        .14067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.5107        1.6706        .58067E-04   -1.5283    
  26  norm          .10000E-03    1.2995        .85418E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     20.999        10.139        .87401E-04   -1.4791    
  28  Prefactor     36.760        42.134        .66100E-04   -1.4495    
  29  Prefactor     .10000E-03    32.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .48782        .21147        .30988E-03   -1.1298    
  31  Prefactor     1.2559        .23852        .24338E-03   -.84628    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60698e-08
Minuit parameter uncertainties:
  1  0.000117578
  2  86.8015
  3  2.72984
  4  4.07079
  5  0.00034335
  6  7.38892e-06
  7  37.4727
  8  5.77743e-06
  9  15.316
  10  5.76888
  11  6.95496
  12  5.93428e-05
  13  7.36526e-06
  14  5.6836e-06
  15  24.4858
  16  7.34974
  17  38.2116
  18  14.2002
  19  8.09531e-05
  20  6.79966
  21  1.08812e-06
  22  0.000364542
  23  7.88888e-06
  24  1.46778e-06
  25  1.67058
  26  5.6606e-07
  27  10.1402
  28  42.1682
  29  0.000374782
  30  0.211817
  31  0.238729
Done.

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

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  5.934e-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:  1.256e+00  2.387e-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:  4.878e-01  2.118e-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: 6.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/365282/likelihoodResults_364262401_364521601_4FGL_J1421.1+3859_daily_bin482.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) = 5924.33465728
delta logL = -0.000593987344473

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5924.33406348
delta logL = -1.93965206563e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10249E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6640       1.0000          .0000       10.000    
     3 'Normalizat'    .48777       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2560       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=   5924.334     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      212 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.9886        .90712E-02** at limit **
   2  Index         2.6581        6.3205        .50000        .66224E-05
   3  Normalizat    .48782        .16300        .69998E-01    .51902E-04
   4  Prefactor     1.2559        .19912        .55048E-01    .52485E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.6581
  Normalizat = 0.487817
  Prefactor  = 1.25592
 **********
 **   18 **HESSE 
 **********

 FCN=   5924.334     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      245 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1303.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6581        5.8892        .50000       -.48746    
   3  Normalizat    .48782        .70706E-01    .30988E-03   -1.1298    
   4  Prefactor     1.2559        .86474E-01    .24338E-03   -.84628    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.49465e-09
Minuit parameter uncertainties:
  1  9.34e-05
  2  57.6389
  3  0.0707194
  4  0.0864842
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/365282': 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) = 5924.33406327
delta logL = 1.79061316885e-08

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  9.340e-05  1.000e-04  1.000e+04 ( 1.000e-13)
292        Index:  2.658e+00  5.764e+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:  1.256e+00  8.648e-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:  4.878e-01  7.072e-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/365282/cmap_HighResolution_364262401_364521601_4FGL_J1421.1+3859_daily_bin482.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.96e-03', job_status='DONE', photon_flux_upper_limit='6.32e-08', time_completed='2021-09-09 10:55:56.953139', job_id='365282', GAL2='1.26', fit_tolerance='1e-08', EG2='0.49', EG='0.49', time_epoch_completed='1631210156.95', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.26', dlogl='1.79e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='482' AND source_name='4FGL J1421.1+3859' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 10:55:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 365282: <4FGL_J1421.1+3859_daily_bin482> in cluster <slac> Done

Job <4FGL_J1421.1+3859_daily_bin482> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  9 10:41:26 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 10:41:27 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:41:27 2021
Terminated at Thu Sep  9 10:55:57 2021
Results reported at Thu Sep  9 10:55:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1421.1+3859_daily_bin482 215.292 38.9966 364262401 364521601 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 :                                   851.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             328.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            871 sec.

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

