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


Performing analysis on: 4FGL_J1421.1+3859_daily_bin1423
RA = 215.292, Dec = 38.9966
tmin = 608169601, tmax = 608428801
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='371018', job_status='RUN', time_executed='2021-09-09 11:01:20.279551', time_epoch_executed='1631210480.28' WHERE source_name='4FGL J1421.1+3859' and cadence='daily' and bin_id='1423'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/371018

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/371018/ft1_4FGL_J1421.1+3859_daily_bin1423.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/371018/ft2_4FGL_J1421.1+3859_daily_bin1423.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/371018/ft1_4FGL_J1421.1+3859_daily_bin1423.fits outfile=/scratch/kocevski/371018/ft1_filteredMKT_4FGL_J1421.1+3859_daily_bin1423.fits ra=215.292 dec=38.9966 rad=12.0 tmin=608169601.0 tmax=608428801.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.68
user 3.44
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/371018/ft1_filtered_4FGL_J1421.1+3859_daily_bin1423.fits evtable="EVENTS" scfile=/scratch/kocevski/371018/ft2_4FGL_J1421.1+3859_daily_bin1423.fits sctable="SC_DATA" expcube=/scratch/kocevski/371018/ltcube_608169601_608428801_4FGL_J1421.1+3859_daily_bin1423.fits outfile=/scratch/kocevski/371018/expmap_608169601_608428801_4FGL_J1421.1+3859_daily_bin1423.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/371018/ltcube_608169601_608428801_4FGL_J1421.1+3859_daily_bin1423.fits
.....................!
real 191.38
user 185.99
sys 4.98

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/371018/ft1_filtered_4FGL_J1421.1+3859_daily_bin1423.fits scfile=/scratch/kocevski/371018/ft2_4FGL_J1421.1+3859_daily_bin1423.fits outfile=/scratch/kocevski/371018/cmap_608169601_608428801_4FGL_J1421.1+3859_daily_bin1423.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/371018/ft1_filtered_4FGL_J1421.1+3859_daily_bin1423.fits scfile=/scratch/kocevski/371018/ft2_4FGL_J1421.1+3859_daily_bin1423.fits outfile=/scratch/kocevski/371018/cmap_HighResolution_608169601_608428801_4FGL_J1421.1+3859_daily_bin1423.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.55
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    34.421       1.0000         .10000E-03   10000.    
     3 'norm      '    .98827       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.1198       1.0000         .10000E-03   10000.    
     5 'norm      '    .31309       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.191       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.4530       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.105       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .34310E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.411       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.176       1.0000         .10000E-03   10000.    
    14 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.921       1.0000         .10000E-03   10000.    
    16 'norm      '    8.5047       1.0000         .10000E-03   10000.    
    17 'Prefactor '    82.420       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.3442       1.0000         .10000E-03   10000.    
    19 'Prefactor '    64.535       1.0000         .10000E-03   10000.    
    20 'norm      '    7.7629       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12646E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.212       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.6400       1.0000         .10000E-03   10000.    
    25 'norm      '    2.1075       1.0000         .10000E-03   10000.    
    26 'norm      '    2.9770       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .30088E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    85.951       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .89538       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .85600       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=   5712.323     FROM MIGRAD    STATUS=CONVERGED    794 CALLS     4150 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    69.928       -.98222E-06** at limit **
   2  Prefactor     34.432        43.354        .11570E-04    .10890E-04
   3  norm          .98826        .71325        .38730E-07    .22151E-03
   4  Prefactor     5.1201        4.7511        .26628E-06   -.29405E-03
   5  norm          .34552        7.5996       -.10081E-05    .13449E-03
   6  Prefactor     .10000E-03    6.4575        .39210E-07** at limit **
   7  Prefactor     22.186        42.630       -.45614E-05   -.90813E-05
   8  Prefactor     5.4531        5.0001        .86017E-06   -.16591E-03
   9  Prefactor     11.105        13.934        .17843E-06   -.26369E-04
  10  norm          .10000E-03    1.1662        .12574E-08** at limit **
  11  Prefactor     .10004E-03    10.652       -.83325E-06** at limit **
  12  Prefactor     17.452        18.523       -.36367E-06    .21226E-03
  13  Prefactor     11.177        4.6460        .31122E-06   -.75039E-04
  14  norm          .10000E-03    9.0721        .34481E-06** at limit **
  15  Prefactor     18.917        22.895       -.94139E-06   -.89822E-05
  16  norm          8.5053        7.7412       -.40479E-06   -.11432E-03
  17  Prefactor     82.424        49.722        .28814E-05    .81089E-05
  18  Prefactor     7.3464        16.123        .44641E-06   -.47533E-04
  19  Prefactor     64.544        41.667        .81703E-05   -.49283E-07
  20  norm          7.7626        8.4578        .31931E-07   -.11456E-04
  21  Prefactor     .10000E-03    44.117       -.71094E-06** at limit **
  22  Prefactor     16.208        25.194       -.10875E-05   -.48036E-04
  23  Prefactor     .10000E-03    7.4769       -.46953E-07** at limit **
  24  Prefactor     3.6402        6.6119       -.64969E-07   -.36823E-03
  25  norm          2.1074        1.7710       -.27275E-06   -.70318E-03
  26  norm          2.9801        3.8097       -.31932E-06   -.13005E-02
  27  Prefactor     .10003E-03    7.2773        .25276E-05** at limit **
  28  Prefactor     85.959        71.380        .74779E-05   -.98595E-05
  29  Prefactor     .10000E-03    10.726       -.51276E-06** at limit **
  30  Normalizat    .89538        .17923       -.10594E-05   -.40933E-04
  31  Prefactor     .85599        .19713       -.11368E-05   -.74940E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 34.432
  norm       = 0.988262
  Prefactor  = 5.12013
  norm       = 0.345522
  Prefactor  = 0.0001
  Prefactor  = 22.186
  Prefactor  = 5.45308
  Prefactor  = 11.1053
  norm       = 0.0001
  Prefactor  = 0.000100036
  Prefactor  = 17.4524
  Prefactor  = 11.1765
  norm       = 0.0001
  Prefactor  = 18.9168
  norm       = 8.50528
  Prefactor  = 82.4236
  Prefactor  = 7.34636
  Prefactor  = 64.5438
  norm       = 7.76264
  Prefactor  = 0.0001
  Prefactor  = 16.2075
  Prefactor  = 0.0001
  Prefactor  = 3.64024
  norm       = 2.10741
  norm       = 2.98006
  Prefactor  = 0.000100035
  Prefactor  = 85.959
  Prefactor  = 0.0001
  Normalizat = 0.895379
  Prefactor  = 0.855989
 **********
 **   18 **HESSE 
 **********

 FCN=   5712.323     FROM HESSE     STATUS=OK           636 CALLS     4786 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    70.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     34.432        43.269        .68304E-04   -1.4534    
   3  norm          .98826        .72784        .52714E-04   -1.5509    
   4  Prefactor     5.1201        4.7468        .15086E-03   -1.5255    
   5  norm          .34552        80.781        .39620E-02   -1.5590    
   6  Prefactor     .10000E-03    6.4604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     22.186        42.670        .85029E-04   -1.4766    
   8  Prefactor     5.4531        4.9789        .15043E-03   -1.5241    
   9  Prefactor     11.105        13.951        .12022E-03   -1.5041    
  10  norm          .10000E-03    1.1747        .79692E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10004E-03    26.596        .41026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.452        16.102        .95986E-04   -1.4872    
  13  Prefactor     11.177        4.6515        .99916E-04   -1.5039    
  14  norm          .10000E-03    9.1514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.917        22.910        .92077E-04   -1.4838    
  16  norm          8.5053        7.7388        .13746E-03   -1.5125    
  17  Prefactor     82.424        49.715        .44244E-04   -1.3890    
  18  Prefactor     7.3464        16.058        .14800E-03   -1.5166    
  19  Prefactor     64.544        41.564        .49955E-04   -1.4099    
  20  norm          7.7626        8.4533        .14392E-03   -1.5151    
  21  Prefactor     .10000E-03    45.871        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     16.208        25.092        .99472E-04   -1.4903    
  23  Prefactor     .10000E-03    7.5556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.6402        6.5880        .21175E-03   -1.5326    
  25  norm          2.1074        1.7628        .85417E-04   -1.5418    
  26  norm          2.9801        3.5560        .15039E-03   -1.5363    
  27  Prefactor     .10003E-03    19.957        .36284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     85.959        71.391        .43333E-04   -1.3851    
  29  Prefactor     .10000E-03    10.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .89538        .21159        .23211E-03   -.96623    
  31  Prefactor     .85599        .23179        .27406E-03   -.97696    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.74458e-09
Minuit parameter uncertainties:
  1  9.2967e-06
  2  43.3087
  3  0.727847
  4  4.74711
  5  10.5792
  6  8.43578e-06
  7  42.7284
  8  4.97931
  9  13.9548
  10  1.22536e-06
  11  0.00195809
  12  16.1058
  13  4.65162
  14  1.68962e-05
  15  22.9207
  16  7.73971
  17  49.7397
  18  16.0676
  19  41.5826
  20  8.45463
  21  0.000164083
  22  25.1087
  23  1.64697e-05
  24  6.58932
  25  1.76283
  26  3.5562
  27  0.00167083
  28  71.4619
  29  6.62253e-06
  30  0.211791
  31  0.232052
Done.

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

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  1.745e+01  1.611e+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:  8.560e-01  2.321e-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:  8.954e-01  2.118e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.66
Ra Dec: 215.292 38.997
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 3.99e-08 +/- 3.68e-08
Energy Flux (Fixed Index): 9.84e-06 +/- 9.08e-06

TS (Fixed Index): 1.66
Ra Dec: 215.292 38.997
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/371018/likelihoodResults_608169601_608428801_4FGL_J1421.1+3859_daily_bin1423.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): 0
logL (Free Index) = 5712.28938417
delta logL = 0.0331961795773

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5712.28692927
delta logL = 0.0356510832644

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.835       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4799       1.0000          .0000       10.000    
     3 'Normalizat'    .90086       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85053       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=   5712.287     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      302 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.835        25.966        .85718E-04   -.20955E-04
   2  Index         2.4800        .72094        .76530E-02    .32700E-03
   3  Normalizat    .90072        .19912        .23148E-03   -.27994E-05
   4  Prefactor     .85068        .22914        .27478E-03   -.22962E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.8352
  Index      = 2.47998
  Normalizat = 0.900722
  Prefactor  = 0.850679
 **********
 **   18 **HESSE 
 **********

 FCN=   5712.287     FROM HESSE     STATUS=OK            25 CALLS      327 TOTAL
                     EDM=   .68E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.835        24.833        .34287E-05   -1.4773    
   2  Index         2.4800        .68947        .15306E-02   -.52823    
   3  Normalizat    .90072        .19927        .92592E-05   -.96435    
   4  Prefactor     .85068        .22928        .10991E-04   -.97886    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.79952e-12
Minuit parameter uncertainties:
  1  24.8444
  2  0.692428
  3  0.199431
  4  0.229543
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/371018': 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) = 5712.28692903
delta logL = 0.0356513191882

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  2.184e+01  2.484e+01  1.000e-04  1.000e+04 ( 1.000e-13)
292        Index:  2.480e+00  6.924e-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.507e-01  2.295e-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.007e-01  1.994e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.72
Ra Dec: 215.292 38.997
Photon Index (Free Index): 2.48 +/- 0.69
Photon Flux (Free Index): 3.69e-08 +/- 3.61e-08
Energy Flux (Free Index): 1.10e-05 +/- 1.09e-05

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/371018/cmap_HighResolution_608169601_608428801_4FGL_J1421.1+3859_daily_bin1423.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.18e-03', comment='SUCCESS', photon_flux='3.99e-08', energy_flux2='1.10e-05', photon_flux_error='3.68e-08', dlogl='3.57e-02', energy_flux='9.84e-06', photon_flux2='3.69e-08', job_status='DONE', time_completed='2021-09-09 11:14:58.568526', photon_index_error2='0.69', photon_index2='2.48', ts='1.66', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='1.09e-05', EG='0.90', time_epoch_completed='1631211298.57', return_code='0', job_id='371018', GAL2='0.85', EG2='0.90', return_code2='0', energy_flux_error='9.08e-06', photon_flux_error2='3.61e-08', ts2='1.72', photon_index='2.67' WHERE bin_id='1423' AND source_name='4FGL J1421.1+3859' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:14:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 371018: <4FGL_J1421.1+3859_daily_bin1423> in cluster <slac> Done

Job <4FGL_J1421.1+3859_daily_bin1423> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 11:01:10 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:01:12 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 11:01:12 2021
Terminated at Thu Sep  9 11:14:59 2021
Results reported at Thu Sep  9 11:14:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1421.1+3859_daily_bin1423 215.292 38.9966 608169601 608428801 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 :                                   813.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             365.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   826 sec.
    Turnaround time :                            829 sec.

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

