/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 139 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 = 7469
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1421.1+3859_daily_bin21
RA = 215.292, Dec = 38.9966
tmin = 244771201, tmax = 245030401
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='363617', job_status='RUN', time_executed='2021-09-09 10:38:52.839367', time_epoch_executed='1631209132.84' WHERE source_name='4FGL J1421.1+3859' and cadence='daily' and bin_id='21'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/363617

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/363617/ft1_4FGL_J1421.1+3859_daily_bin21.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/363617/ft2_4FGL_J1421.1+3859_daily_bin21.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/363617/ft1_4FGL_J1421.1+3859_daily_bin21.fits outfile=/scratch/kocevski/363617/ft1_filteredMKT_4FGL_J1421.1+3859_daily_bin21.fits ra=215.292 dec=38.9966 rad=12.0 tmin=244771201.0 tmax=245030401.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 1.15
user 0.92
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/363617/ft1_filtered_4FGL_J1421.1+3859_daily_bin21.fits" evtable="EVENTS" scfile=/scratch/kocevski/363617/ft2_4FGL_J1421.1+3859_daily_bin21.fits sctable="SC_DATA" outfile=/scratch/kocevski/363617/ltcube_244771201_245030401_4FGL_J1421.1+3859_daily_bin21.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/363617/ft2_4FGL_J1421.1+3859_daily_bin21.fits
.....................!
real 9.37
user 9.06
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/363617/ft1_filtered_4FGL_J1421.1+3859_daily_bin21.fits evtable="EVENTS" scfile=/scratch/kocevski/363617/ft2_4FGL_J1421.1+3859_daily_bin21.fits sctable="SC_DATA" expcube=/scratch/kocevski/363617/ltcube_244771201_245030401_4FGL_J1421.1+3859_daily_bin21.fits outfile=/scratch/kocevski/363617/expmap_244771201_245030401_4FGL_J1421.1+3859_daily_bin21.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/363617/ltcube_244771201_245030401_4FGL_J1421.1+3859_daily_bin21.fits
.....................!
real 140.97
user 136.92
sys 3.80

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/363617/ft1_filtered_4FGL_J1421.1+3859_daily_bin21.fits scfile=/scratch/kocevski/363617/ft2_4FGL_J1421.1+3859_daily_bin21.fits outfile=/scratch/kocevski/363617/cmap_244771201_245030401_4FGL_J1421.1+3859_daily_bin21.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.43
user 0.29
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/363617/ft1_filtered_4FGL_J1421.1+3859_daily_bin21.fits scfile=/scratch/kocevski/363617/ft2_4FGL_J1421.1+3859_daily_bin21.fits outfile=/scratch/kocevski/363617/cmap_HighResolution_244771201_245030401_4FGL_J1421.1+3859_daily_bin21.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.44
user 0.29
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    66.822       1.0000         .10000E-03   10000.    
     3 'norm      '    .12771       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1256       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.847       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    54.314       1.0000         .10000E-03   10000.    
    10 'norm      '    4.2100       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12099E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.175       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .14181E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.2576       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.9433       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.873       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10257E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.1268       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.7852       1.0000         .10000E-03   10000.    
    26 'norm      '    1.1211       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    34.119       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .68023       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1994       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=   5007.735     FROM MIGRAD    STATUS=CONVERGED    815 CALLS     4206 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    64.939        .20240E-05** at limit **
   2  Prefactor     66.827        55.552        .34640E-06    .30515E-04
   3  norm          .12612        1.1807        .46514E-06   -.29452E-03
   4  Prefactor     1.1249        2.1272        .35023E-06    .66823E-03
   5  norm          .10000E-03    8.5925        .73968E-07** at limit **
   6  Prefactor     .10000E-03    8.0345        .19737E-06** at limit **
   7  Prefactor     15.838        45.475       -.82396E-06   -.59021E-04
   8  Prefactor     .10000E-03    6.7316       -.51073E-06** at limit **
   9  Prefactor     54.317        27.976       -.32606E-07   -.68857E-04
  10  norm          4.2114        4.5773        .22238E-06    .39055E-03
  11  Prefactor     .10000E-03    9.9817        .12570E-06** at limit **
  12  Prefactor     12.174        16.614        .27355E-06    .58215E-04
  13  Prefactor     .10222E-03    2.8962       -.15169E-05** at limit **
  14  norm          .10000E-03    5.3894       -.57050E-07** at limit **
  15  Prefactor     .10000E-03    5.8310        .22049E-07** at limit **
  16  norm          .10000E-03    3.7178       -.47112E-06** at limit **
  17  Prefactor     .10000E-03    9.4452       -.96249E-07** at limit **
  18  Prefactor     1.2604        69.080        .59039E-05    .35390E-04
  19  Prefactor     .10000E-03    19.325        .13207E-06** at limit **
  20  norm          4.9435        5.8161       -.13051E-05   -.39778E-03
  21  Prefactor     10.875        13.839        .55883E-07    .25075E-04
  22  Prefactor     .10000E-03    58.361        .19935E-05** at limit **
  23  Prefactor     3.1257        12.010        .15559E-05    .84589E-04
  24  Prefactor     .10000E-03    5.4222        .88507E-07** at limit **
  25  norm          2.7859        2.5097       -.16164E-06   -.86897E-04
  26  norm          1.1206        2.5319        .90585E-06    .99247E-03
  27  Prefactor     .10000E-03    3.3904       -.20444E-07** at limit **
  28  Prefactor     .10001E-03    100.60       -.20071E-05** at limit **
  29  Prefactor     34.120        23.911       -.56714E-07   -.40306E-04
  30  Normalizat    .67976        .18531       -.91459E-06    .10107E-03
  31  Prefactor     1.2000        .20256       -.14141E-06    .86423E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100009
  Prefactor  = 66.8271
  norm       = 0.126115
  Prefactor  = 1.1249
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.8376
  Prefactor  = 0.0001
  Prefactor  = 54.3167
  norm       = 4.21142
  Prefactor  = 0.0001
  Prefactor  = 12.1744
  Prefactor  = 0.000102221
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 1.26041
  Prefactor  = 0.0001
  norm       = 4.94346
  Prefactor  = 10.8749
  Prefactor  = 0.000100003
  Prefactor  = 3.12567
  Prefactor  = 0.0001
  norm       = 2.78594
  norm       = 1.1206
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 34.1202
  Normalizat = 0.679764
  Prefactor  = 1.19995
 **********
 **   18 **HESSE 
 **********

 FCN=   5007.735     FROM HESSE     STATUS=OK           628 CALLS     4834 TOTAL
                     EDM=   .70E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    66.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     66.827        55.624        .49099E-04   -1.4071    
   3  norm          .12612        2.4057        .14264E-02   -1.5637    
   4  Prefactor     1.1249        1.7597        .14100E-02   -1.5496    
   5  norm          .10000E-03    8.6223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.0495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.838        45.378        .10061E-03   -1.4912    
   8  Prefactor     .10000E-03    6.9257        .35701E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     54.317        28.102        .54426E-04   -1.4233    
  10  norm          4.2114        4.5405        .14829E-03   -1.5298    
  11  Prefactor     .10000E-03    9.9962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.174        16.588        .11481E-03   -1.5010    
  13  Prefactor     .10222E-03    48.918        .19293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    5.3930        .16045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.8325        .16690E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    8.9865        .26093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.4480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.2604        68.877        .39805E-03   -1.5483    
  19  Prefactor     .10000E-03    19.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.9435        5.7060        .88373E-03   -1.5263    
  21  Prefactor     10.875        13.767        .12150E-03   -1.5048    
  22  Prefactor     .10000E-03    60.282        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.1257        11.656        .22928E-03   -1.5354    
  24  Prefactor     .10000E-03    5.4674        .16089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.7859        2.4361        .80021E-04   -1.5374    
  26  norm          1.1206        2.2411        .17940E-02   -1.5496    
  27  Prefactor     .10000E-03    3.3962        .12721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10001E-03    101.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     34.120        23.845        .68604E-04   -1.4539    
  30  Normalizat    .67976        .21820        .25404E-03   -1.0470    
  31  Prefactor     1.2000        .24341        .23367E-03   -.86333    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.01718e-08
Minuit parameter uncertainties:
  1  0.00152655
  2  55.6672
  3  1.10123
  4  1.75981
  5  1.07381e-05
  6  5.15192e-05
  7  45.4774
  8  3.89563e-05
  9  28.1092
  10  4.54083
  11  3.22157e-05
  12  16.5941
  13  0.0208643
  14  1.42948e-05
  15  4.06282e-06
  16  0.000198126
  17  2.87874e-05
  18  18.6567
  19  5.60797e-05
  20  5.70665
  21  13.7712
  22  0.000906775
  23  11.6648
  24  1.28839e-05
  25  2.4362
  26  2.24124
  27  2.84585e-06
  28  0.00196372
  29  23.8514
  30  0.218476
  31  0.243642
Done.

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

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  1.217e+01  1.659e+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.200e+00  2.436e-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:  6.798e-01  2.185e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/363617/likelihoodResults_244771201_245030401_4FGL_J1421.1+3859_daily_bin21.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) = 5007.73178016
delta logL = 0.00341894831035

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5007.72965787
delta logL = 0.00554123225356

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.984       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7709       1.0000          .0000       10.000    
     3 'Normalizat'    .67721       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2020       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=   5007.730     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      208 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.984        538.27        .30221E-02    .19792E-03
   2  Index         2.7709        6.2818        .16010        .79834E-04
   3  Normalizat    .67722        .59610E-01    .41985E-01    .19086E-04
   4  Prefactor     1.2020        .66382E-01    .52814E-01    .27577E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.984
  Index      = 2.77085
  Normalizat = 0.67722
  Prefactor  = 1.20197
 **********
 **   18 **HESSE 
 **********

 FCN=   5007.730     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.984        20.871        .12088E-03   -1.5045    
   2  Index         2.7709        1.0577        .87248E-02   -.46210    
   3  Normalizat    .67722        .20491        .25448E-03   -1.0480    
   4  Prefactor     1.2020        .24074        .23350E-03   -.86271    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.83348e-09
Minuit parameter uncertainties:
  1  20.8849
  2  1.06776
  3  0.205146
  4  0.24096
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/363617': 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) = 5007.72965787
delta logL = 0.00554123909569

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  1.098e+01  2.088e+01  1.000e-04  1.000e+04 ( 1.000e-13)
292        Index:  2.771e+00  1.068e+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:  1.202e+00  2.410e-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:  6.772e-01  2.051e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.70
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/363617/cmap_HighResolution_244771201_245030401_4FGL_J1421.1+3859_daily_bin21.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.68e-03', job_status='DONE', photon_flux_upper_limit='1.10e-07', time_completed='2021-09-09 10:48:12.070547', job_id='363617', GAL2='1.20', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1631209692.07', return_code2='0', ts='0.70', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='5.54e-03', ts2='0.71', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='21' AND source_name='4FGL J1421.1+3859' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 10:48:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 363617: <4FGL_J1421.1+3859_daily_bin21> in cluster <slac> Done

Job <4FGL_J1421.1+3859_daily_bin21> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Thu Sep  9 10:36:19 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 10:36:19 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:36:19 2021
Terminated at Thu Sep  9 10:48:12 2021
Results reported at Thu Sep  9 10:48:12 2021

Your job looked like:

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

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

