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


Performing analysis on: 4FGL_J1421.1+3859_daily_bin1040
RA = 215.292, Dec = 38.9966
tmin = 508896001, tmax = 509155201
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='367188', job_status='RUN', time_executed='2021-09-09 10:46:52.056686', time_epoch_executed='1631209612.06' WHERE source_name='4FGL J1421.1+3859' and cadence='daily' and bin_id='1040'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/367188

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/367188/ft1_4FGL_J1421.1+3859_daily_bin1040.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/367188/ft2_4FGL_J1421.1+3859_daily_bin1040.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/367188/ft1_4FGL_J1421.1+3859_daily_bin1040.fits outfile=/scratch/kocevski/367188/ft1_filteredMKT_4FGL_J1421.1+3859_daily_bin1040.fits ra=215.292 dec=38.9966 rad=12.0 tmin=508896001.0 tmax=509155201.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.69
user 3.45
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/367188/ft1_filtered_4FGL_J1421.1+3859_daily_bin1040.fits" evtable="EVENTS" scfile=/scratch/kocevski/367188/ft2_4FGL_J1421.1+3859_daily_bin1040.fits sctable="SC_DATA" outfile=/scratch/kocevski/367188/ltcube_508896001_509155201_4FGL_J1421.1+3859_daily_bin1040.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/367188/ft2_4FGL_J1421.1+3859_daily_bin1040.fits
.....................!
real 11.89
user 11.58
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/367188/ft1_filtered_4FGL_J1421.1+3859_daily_bin1040.fits evtable="EVENTS" scfile=/scratch/kocevski/367188/ft2_4FGL_J1421.1+3859_daily_bin1040.fits sctable="SC_DATA" expcube=/scratch/kocevski/367188/ltcube_508896001_509155201_4FGL_J1421.1+3859_daily_bin1040.fits outfile=/scratch/kocevski/367188/expmap_508896001_509155201_4FGL_J1421.1+3859_daily_bin1040.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/367188/ltcube_508896001_509155201_4FGL_J1421.1+3859_daily_bin1040.fits
.....................!
real 189.56
user 185.20
sys 4.02

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/367188/ft1_filtered_4FGL_J1421.1+3859_daily_bin1040.fits scfile=/scratch/kocevski/367188/ft2_4FGL_J1421.1+3859_daily_bin1040.fits outfile=/scratch/kocevski/367188/cmap_508896001_509155201_4FGL_J1421.1+3859_daily_bin1040.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/367188/ft1_filtered_4FGL_J1421.1+3859_daily_bin1040.fits scfile=/scratch/kocevski/367188/ft2_4FGL_J1421.1+3859_daily_bin1040.fits outfile=/scratch/kocevski/367188/cmap_HighResolution_508896001_509155201_4FGL_J1421.1+3859_daily_bin1040.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15646E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    122.91       1.0000         .10000E-03   10000.    
     3 'norm      '    5.3811       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.7361       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .47385       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10657E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.2609       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.6318       1.0000         .10000E-03   10000.    
    14 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.9409       1.0000         .10000E-03   10000.    
    16 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.916       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .14148E-01   1.0000         .10000E-03   10000.    
    20 'norm      '    6.7963       1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.212       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.3951       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .29748E-02   1.0000         .10000E-03   10000.    
    25 'norm      '    .39941       1.0000         .10000E-03   10000.    
    26 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.3710       1.0000         .10000E-03   10000.    
    28 'Prefactor '    96.443       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0995       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0528       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=   6088.786     FROM MIGRAD    STATUS=CONVERGED    859 CALLS     4209 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    46.185       -.58512E-06** at limit **
   2  Prefactor     122.93        77.866        .16721E-06    .42689E-05
   3  norm          5.3808        1.9322        .42161E-07   -.32670E-04
   4  Prefactor     .10000E-03    2.5553        .31782E-08** at limit **
   5  norm          .10000E-03    5.7918        .29873E-07** at limit **
   6  Prefactor     9.7368        9.8658       -.24202E-06   -.37620E-04
   7  Prefactor     .10000E-03    17.370       -.41900E-06** at limit **
   8  Prefactor     .47586        4.4490        .23047E-05   -.36914E-03
   9  Prefactor     .10000E-03    7.5226       -.26880E-06** at limit **
  10  norm          .10000E-03    2.3380        .37085E-07** at limit **
  11  Prefactor     .10000E-03    18.497        .85813E-06** at limit **
  12  Prefactor     3.2532        14.438        .55140E-05    .22823E-03
  13  Prefactor     4.6333        4.4225        .14181E-06   -.75490E-05
  14  norm          .10000E-03    7.5006        .33769E-06** at limit **
  15  Prefactor     9.9713        24.156        .33063E-06   -.32205E-04
  16  norm          .10000E-03    3.6571        .20057E-07** at limit **
  17  Prefactor     .10000E-03    15.826        .21028E-06** at limit **
  18  Prefactor     11.898        16.273        .38653E-06   -.10760E-04
  19  Prefactor     .10002E-03    56.187        .11490E-05** at limit **
  20  norm          6.7967        6.6979       -.14214E-06    .50248E-04
  21  Prefactor     16.220        16.401        .17447E-06    .15259E-04
  22  Prefactor     3.3891        18.770       -.21971E-06    .45790E-04
  23  Prefactor     .10000E-03    2.8121        .27253E-07** at limit **
  24  Prefactor     .10026E-03    8.1681       -.26935E-05** at limit **
  25  norm          .40008        1.5135        .16776E-06   -.41400E-04
  26  norm          .10000E-03    2.1137       -.99057E-06** at limit **
  27  Prefactor     1.3583        8.9766        .25694E-05    .64320E-04
  28  Prefactor     96.372        79.004        .12086E-05   -.24931E-04
  29  Prefactor     .10000E-03    10.721       -.36167E-06** at limit **
  30  Normalizat    1.0996        .18940       -.94796E-06   -.53302E-04
  31  Prefactor     1.0528        .20393       -.12488E-06   -.49932E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 122.932
  norm       = 5.38079
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.73683
  Prefactor  = 0.0001
  Prefactor  = 0.475861
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.25316
  Prefactor  = 4.63334
  norm       = 0.0001
  Prefactor  = 9.97127
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.8982
  Prefactor  = 0.000100022
  norm       = 6.79671
  Prefactor  = 16.2205
  Prefactor  = 3.38913
  Prefactor  = 0.0001
  Prefactor  = 0.000100264
  norm       = 0.400076
  norm       = 0.000100001
  Prefactor  = 1.35834
  Prefactor  = 96.3717
  Prefactor  = 0.0001
  Normalizat = 1.09959
  Prefactor  = 1.05277
 **********
 **   18 **HESSE 
 **********

 FCN=   6088.786     FROM HESSE     STATUS=OK           644 CALLS     4853 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    46.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     122.93        78.157        .36304E-04   -1.3486    
   3  norm          5.3808        1.9341        .61984E-04   -1.5244    
   4  Prefactor     .10000E-03    2.5783        .12177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.8063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.7368        9.8706        .12843E-03   -1.5084    
   7  Prefactor     .10000E-03    17.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .47586        11.178        .25085E-02   -1.5570    
   9  Prefactor     .10000E-03    7.5437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    6.3938        .23078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    18.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.2532        15.854        .11213E-02   -1.5347    
  13  Prefactor     4.6333        4.4073        .15107E-03   -1.5277    
  14  norm          .10000E-03    7.5315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.9713        24.182        .12709E-03   -1.5076    
  16  norm          .10000E-03    3.6966        .14568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.898        16.249        .11605E-03   -1.5018    
  19  Prefactor     .10002E-03    48.603        .13961       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.7967        6.6979        .15391E-03   -1.5186    
  21  Prefactor     16.220        16.354        .99471E-04   -1.4902    
  22  Prefactor     3.3891        18.661        .21957E-03   -1.5340    
  23  Prefactor     .10000E-03    2.8151        .12766E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10026E-03    5.6974        .58844E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .40008        1.5149        .17196E-03   -1.5581    
  26  norm          .10000E-03    2.2644        .22630E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.3583        9.3204        .37232E-03   -1.5475    
  28  Prefactor     96.372        78.520        .20465E-03   -1.3741    
  29  Prefactor     .10000E-03    10.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0996        .22453        .23982E-03   -.89765    
  31  Prefactor     1.0528        .24311        .27813E-03   -.90991    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54171e-09
Minuit parameter uncertainties:
  1  0.000114888
  2  78.2225
  3  1.93414
  4  2.53108e-06
  5  1.52412e-06
  6  9.87225
  7  3.58307e-05
  8  4.61319
  9  1.31016e-05
  10  2.15378e-05
  11  9.65138e-07
  12  14.3689
  13  4.4076
  14  1.4253e-05
  15  24.2053
  16  2.49705e-06
  17  3.35185e-05
  18  16.2547
  19  0.00205954
  20  6.69862
  21  16.3588
  22  15.9128
  23  2.08749e-06
  24  0.00245262
  25  1.515
  26  8.49465e-05
  27  7.11758
  28  78.6048
  29  5.74529e-05
  30  0.224724
  31  0.243367
Done.

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

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  3.253e+00  1.437e+01  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.053e+00  2.434e-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.100e+00  2.247e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/367188/likelihoodResults_508896001_509155201_4FGL_J1421.1+3859_daily_bin1040.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) = 6088.74018991
delta logL = 0.0457260502353

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6088.43537042
delta logL = 0.350545542103

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    8.6587       1.0000          .0000       10.000    
     3 'Normalizat'    1.0660       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0826       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=   6088.814     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      375 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    66.224        .12157    ** at limit **
   2  Index         2.0249        5.1565        .50000       -.10479E-04
   3  Normalizat    1.1076        .78478E-02    .39595E-01   -.99878E-04
   4  Prefactor     1.0494        .89679E-02    .62970E-01   -.35101E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.02492
  Normalizat = 1.1076
  Prefactor  = 1.04935
 **********
 **   18 **HESSE 
 **********

 FCN=   6088.814     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      412 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9028.9        .69787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0249        6.5495        .50000       -.63729    
   3  Normalizat    1.1076        .42725E-01    .23905E-03   -.89508    
   4  Prefactor     1.0494        .48768E-01    .27853E-03   -.91102    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.26162e-08
Minuit parameter uncertainties:
  1  0.00714793
  2  35.4127
  3  0.0427262
  4  0.0487696
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/367188': 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) = 6088.81430088
delta logL = -0.0283849155048

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  7.148e-03  1.000e-04  1.000e+04 ( 1.000e-13)
292        Index:  2.025e+00  3.541e+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.049e+00  4.877e-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.108e+00  4.273e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
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/367188/cmap_HighResolution_508896001_509155201_4FGL_J1421.1+3859_daily_bin1040.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.12e-03', job_status='DONE', photon_flux_upper_limit='9.06e-08', time_completed='2021-09-09 11:01:18.971886', job_id='367188', GAL2='1.05', fit_tolerance='1e-08', EG2='1.11', EG='1.10', time_epoch_completed='1631210478.97', return_code2='102', ts='0.06', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='-2.84e-02', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='1040' AND source_name='4FGL J1421.1+3859' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:01:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 367188: <4FGL_J1421.1+3859_daily_bin1040> in cluster <slac> Done

Job <4FGL_J1421.1+3859_daily_bin1040> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 10:46:32 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 10:46:32 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:46:32 2021
Terminated at Thu Sep  9 11:01:19 2021
Results reported at Thu Sep  9 11:01:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1421.1+3859_daily_bin1040 215.292 38.9966 508896001 509155201 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 :                                   862.30 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             338.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            887 sec.

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

