/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 65 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 = 7471
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1421.1+3859_daily_bin86
RA = 215.292, Dec = 38.9966
tmin = 261619201, tmax = 261878401
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='363710', job_status='RUN', time_executed='2021-09-09 10:37:49.711171', time_epoch_executed='1631209069.71' WHERE source_name='4FGL J1421.1+3859' and cadence='daily' and bin_id='86'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/363710

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/363710/ft1_4FGL_J1421.1+3859_daily_bin86.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/363710/ft2_4FGL_J1421.1+3859_daily_bin86.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/363710/ft1_4FGL_J1421.1+3859_daily_bin86.fits outfile=/scratch/kocevski/363710/ft1_filteredMKT_4FGL_J1421.1+3859_daily_bin86.fits ra=215.292 dec=38.9966 rad=12.0 tmin=261619201.0 tmax=261878401.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.49
user 1.23
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/363710/ft1_filtered_4FGL_J1421.1+3859_daily_bin86.fits" evtable="EVENTS" scfile=/scratch/kocevski/363710/ft2_4FGL_J1421.1+3859_daily_bin86.fits sctable="SC_DATA" outfile=/scratch/kocevski/363710/ltcube_261619201_261878401_4FGL_J1421.1+3859_daily_bin86.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/363710/ft2_4FGL_J1421.1+3859_daily_bin86.fits
.....................!
real 14.65
user 14.29
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/363710/ft1_filtered_4FGL_J1421.1+3859_daily_bin86.fits evtable="EVENTS" scfile=/scratch/kocevski/363710/ft2_4FGL_J1421.1+3859_daily_bin86.fits sctable="SC_DATA" expcube=/scratch/kocevski/363710/ltcube_261619201_261878401_4FGL_J1421.1+3859_daily_bin86.fits outfile=/scratch/kocevski/363710/expmap_261619201_261878401_4FGL_J1421.1+3859_daily_bin86.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/363710/ltcube_261619201_261878401_4FGL_J1421.1+3859_daily_bin86.fits
.....................!
real 195.06
user 189.37
sys 5.13

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/363710/ft1_filtered_4FGL_J1421.1+3859_daily_bin86.fits scfile=/scratch/kocevski/363710/ft2_4FGL_J1421.1+3859_daily_bin86.fits outfile=/scratch/kocevski/363710/cmap_261619201_261878401_4FGL_J1421.1+3859_daily_bin86.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/363710/ft1_filtered_4FGL_J1421.1+3859_daily_bin86.fits scfile=/scratch/kocevski/363710/ft2_4FGL_J1421.1+3859_daily_bin86.fits outfile=/scratch/kocevski/363710/cmap_HighResolution_261619201_261878401_4FGL_J1421.1+3859_daily_bin86.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.57
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.440       1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.787       1.0000         .10000E-03   10000.    
     3 'norm      '    .31688       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .15491E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    21.605       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    36.502       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8893       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.5961       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13088       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.0933       1.0000         .10000E-03   10000.    
    14 'norm      '    13.715       1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.084       1.0000         .10000E-03   10000.    
    16 'norm      '    6.9450       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    7.1545       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.4907       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    51.433       1.0000         .10000E-03   10000.    
    29 'Prefactor '    10.581       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1938       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .65513       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=   5655.345     FROM MIGRAD    STATUS=CONVERGED    815 CALLS     4137 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.432        46.470       -.79183E-05    .34274E-05
   2  Prefactor     15.778        35.843       -.72485E-05    .23808E-05
   3  norm          .31643        1.0226       -.59952E-06   -.17978E-02
   4  Prefactor     .10010E-03    1.7434       -.32230E-06** at limit **
   5  norm          21.604        13.674        .63453E-06    .53191E-04
   6  Prefactor     .10000E-03    5.2517       -.72938E-07** at limit **
   7  Prefactor     36.497        31.048       -.18064E-05   -.14905E-05
   8  Prefactor     1.8891        2.2454        .44728E-07    .96417E-04
   9  Prefactor     .10000E-03    30.989       -.10335E-06** at limit **
  10  norm          2.5975        3.4330        .32800E-06   -.59457E-04
  11  Prefactor     .48068E-01    9.0723       -.21080E-06    .54568E-03
  12  Prefactor     .10000E-03    14.189       -.13431E-04** at limit **
  13  Prefactor     3.0917        4.5316       -.55583E-06   -.49634E-03
  14  norm          13.734        13.733       -.24749E-05    .16168E-03
  15  Prefactor     23.083        20.758        .26951E-05    .18254E-04
  16  norm          6.9454        6.1825       -.20471E-05   -.66822E-04
  17  Prefactor     .10000E-03    21.092        .11245E-04** at limit **
  18  Prefactor     .10000E-03    10.674       -.37581E-06** at limit **
  19  Prefactor     .10000E-03    26.406       -.68609E-05** at limit **
  20  norm          7.1547        6.8809        .17431E-06    .17615E-04
  21  Prefactor     3.4888        17.344        .19491E-05   -.54010E-04
  22  Prefactor     .10000E-03    13.371        .11325E-04** at limit **
  23  Prefactor     .10000E-03    3.4379       -.52741E-07** at limit **
  24  Prefactor     .10000E-03    3.7538       -.88614E-07** at limit **
  25  norm          .10000E-03    .43843        .18679E-06** at limit **
  26  norm          .10000E-03    .89657       -.79484E-07** at limit **
  27  Prefactor     .10000E-03    2.4364       -.63658E-06** at limit **
  28  Prefactor     51.362        71.010       -.61848E-04   -.13249E-04
  29  Prefactor     10.541        24.935        .59500E-04    .57022E-05
  30  Normalizat    1.1941        .17225       -.11312E-05    .31420E-03
  31  Prefactor     .65502        .18548        .12905E-05    .28189E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.4316
  Prefactor  = 15.7778
  norm       = 0.316432
  Prefactor  = 0.0001001
  norm       = 21.6044
  Prefactor  = 0.0001
  Prefactor  = 36.4966
  Prefactor  = 1.88907
  Prefactor  = 0.0001
  norm       = 2.59747
  Prefactor  = 0.0480678
  Prefactor  = 0.0001
  Prefactor  = 3.09172
  norm       = 13.7341
  Prefactor  = 23.0828
  norm       = 6.94537
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.15473
  Prefactor  = 3.48878
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 51.3624
  Prefactor  = 10.5406
  Normalizat = 1.19411
  Prefactor  = 0.655016
 **********
 **   18 **HESSE 
 **********

 FCN=   5655.345     FROM HESSE     STATUS=OK           628 CALLS     4765 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.432        46.486        .63824E-04   -1.4451    
   2  Prefactor     15.778        35.892        .10080E-03   -1.4913    
   3  norm          .31643        1.0123        .12985E-03   -1.5595    
   4  Prefactor     .10010E-03    21.992        .19058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          21.604        13.681        .86172E-04   -1.4778    
   6  Prefactor     .10000E-03    5.2535        .16830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     36.497        31.039        .66334E-04   -1.4499    
   8  Prefactor     1.8891        2.2420        .11972E-03   -1.5433    
   9  Prefactor     .10000E-03    31.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.5975        3.4121        .15171E-03   -1.5386    
  11  Prefactor     .48068E-01    16.795        .65058E-01   -1.5664    
  12  Prefactor     .10000E-03    14.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.0917        4.5145        .17875E-03   -1.5356    
  14  norm          13.734        13.845        .10815E-03   -1.4967    
  15  Prefactor     23.083        20.779        .83370E-04   -1.4747    
  16  norm          6.9454        6.1754        .15223E-03   -1.5181    
  17  Prefactor     .10000E-03    21.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    26.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.1547        6.8731        .14997E-03   -1.5173    
  21  Prefactor     3.4888        17.218        .21641E-03   -1.5334    
  22  Prefactor     .10000E-03    13.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.4584        .13611E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.7701        .14228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .44185        .48579E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .89694        .69542E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    2.4395        .11466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     51.362        71.037        .55921E-04   -1.4273    
  29  Prefactor     10.541        24.848        .12317E-03   -1.5059    
  30  Normalizat    1.1941        .20008        .19926E-03   -.86785    
  31  Prefactor     .65502        .21508        .29832E-03   -1.0532    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.30889e-09
Minuit parameter uncertainties:
  1  46.529
  2  35.9411
  3  1.01237
  4  0.00296428
  5  13.6828
  6  7.27609e-06
  7  31.0527
  8  2.24206
  9  6.22657e-06
  10  3.41237
  11  1.79562
  12  0.000148906
  13  4.51498
  14  13.8485
  15  20.7857
  16  6.17595
  17  7.95683e-06
  18  1.14378e-05
  19  5.01771e-05
  20  6.87388
  21  15.5078
  22  4.00446e-05
  23  9.36156e-06
  24  2.24236e-05
  25  1.12193e-05
  26  1.4972e-05
  27  9.20502e-05
  28  71.1544
  29  24.8727
  30  0.200203
  31  0.215347
Done.

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

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  1.489e-04  1.000e-04  1.000e+04 ( 1.000e-13)
292        Index:  2.670e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
293        Scale:  9.266e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
581    Prefactor:  6.550e-01  2.153e-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.194e+00  2.002e-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.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/363710/likelihoodResults_261619201_261878401_4FGL_J1421.1+3859_daily_bin86.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) = 5655.34576992
delta logL = -0.00033309468472

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5655.34543683
delta logL = -2.35286279349e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6818       1.0000          .0000       10.000    
     3 'Normalizat'    1.1941       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65499       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=   5655.345     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      208 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1133.8        .90712E-02** at limit **
   2  Index         2.6939        6.5959        .50000       -.78240E-05
   3  Normalizat    1.1941        .39848E-01    .35037E-01    .29558E-04
   4  Prefactor     .65502        .45550E-01    .67415E-01    .34594E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.69392
  Normalizat = 1.19411
  Prefactor  = 0.655019
 **********
 **   18 **HESSE 
 **********

 FCN=   5655.345     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6939        6.3414        .50000       -.47936    
   3  Normalizat    1.1941        .18552        .19926E-03   -.86785    
   4  Prefactor     .65502        .21219        .29832E-03   -1.0532    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.20463e-11
Minuit parameter uncertainties:
  1  4.58593e-05
  2  4.5451
  3  0.185627
  4  0.21245
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/363710': 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) = 5655.34543678
delta logL = 4.20150172431e-08

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  4.586e-05  1.000e-04  1.000e+04 ( 1.000e-13)
292        Index:  2.694e+00  4.545e+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:  6.550e-01  2.125e-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.194e+00  1.856e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 215.292 38.997

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/363710/cmap_HighResolution_261619201_261878401_4FGL_J1421.1+3859_daily_bin86.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.30e-03', job_status='DONE', photon_flux_upper_limit='6.75e-08', time_completed='2021-09-09 10:51:24.934564', job_id='363710', GAL2='0.66', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1631209884.93', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='4.20e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='86' AND source_name='4FGL J1421.1+3859' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 10:51:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 363710: <4FGL_J1421.1+3859_daily_bin86> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1421.1+3859_daily_bin86 215.292 38.9966 261619201 261878401 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.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             283.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            901 sec.

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

