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


Performing analysis on: 4FGL_J1421.1+3859_daily_bin95
RA = 215.292, Dec = 38.9966
tmin = 263952001, tmax = 264211201
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='363724', job_status='RUN', time_executed='2021-09-09 10:37:19.707024', time_epoch_executed='1631209039.71' WHERE source_name='4FGL J1421.1+3859' and cadence='daily' and bin_id='95'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/363724

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/363724/ft1_4FGL_J1421.1+3859_daily_bin95.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/363724/ft2_4FGL_J1421.1+3859_daily_bin95.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/363724/ft1_4FGL_J1421.1+3859_daily_bin95.fits outfile=/scratch/kocevski/363724/ft1_filteredMKT_4FGL_J1421.1+3859_daily_bin95.fits ra=215.292 dec=38.9966 rad=12.0 tmin=263952001.0 tmax=264211201.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.93
user 1.55
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/363724/ft1_filtered_4FGL_J1421.1+3859_daily_bin95.fits evtable="EVENTS" scfile=/scratch/kocevski/363724/ft2_4FGL_J1421.1+3859_daily_bin95.fits sctable="SC_DATA" expcube=/scratch/kocevski/363724/ltcube_263952001_264211201_4FGL_J1421.1+3859_daily_bin95.fits outfile=/scratch/kocevski/363724/expmap_263952001_264211201_4FGL_J1421.1+3859_daily_bin95.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/363724/ltcube_263952001_264211201_4FGL_J1421.1+3859_daily_bin95.fits
.....................!
real 190.97
user 186.72
sys 3.83

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/363724/ft1_filtered_4FGL_J1421.1+3859_daily_bin95.fits scfile=/scratch/kocevski/363724/ft2_4FGL_J1421.1+3859_daily_bin95.fits outfile=/scratch/kocevski/363724/cmap_263952001_264211201_4FGL_J1421.1+3859_daily_bin95.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.36
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .33701       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.9296       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.250       1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11418E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.8541       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.2692       1.0000         .10000E-03   10000.    
    14 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.955       1.0000         .10000E-03   10000.    
    16 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.4303       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    6.5907       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.4040       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .52411       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .65669E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.8077       1.0000         .10000E-03   10000.    
    26 'norm      '    3.6195       1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.2903       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    12.850       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2552       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .63191       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6125.686     FROM MIGRAD    STATUS=CONVERGED     79 CALLS     4226 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    5.0183        .73305E-05** at limit **
   2  Prefactor     .10003E-03    5.7005        .61860E-05** at limit **
   3  norm          .33695        1.1854       -.77394E-06   -.48613E-04
   4  Prefactor     5.9295        2.3419       -.16093E-06   -.48804E-02
   5  norm          .10001E-03    5.6880        .10659E-04** at limit **
   6  Prefactor     .10000E-03    2.4199       -.23255E-05** at limit **
   7  Prefactor     .10000E-03    10.272       -.48860E-05** at limit **
   8  Prefactor     .10000E-03    1.2397       -.12850E-05** at limit **
   9  Prefactor     24.251        1.0018       -.62498E-09   -.41712E-04
  10  norm          .10000E-03    2.0767       -.23239E-06** at limit **
  11  Prefactor     .10001E-03    5.9884        .95871E-05** at limit **
  12  Prefactor     3.8478        1.0208        .18635E-06   -.39651E-04
  13  Prefactor     3.2696        3.1989        .34492E-05    .22521E-02
  14  norm          .10000E-03    5.5911        .62027E-05** at limit **
  15  Prefactor     25.957        1.0656        .19447E-06   -.64381E-03
  16  norm          .10000E-03    3.3319       -.46678E-05** at limit **
  17  Prefactor     .10006E-03    16.557       -.10953E-04** at limit **
  18  Prefactor     7.4304        1.0030       -.95305E-10   -.89372E-05
  19  Prefactor     .10000E-03    15.129       -.11234E-04** at limit **
  20  norm          6.5917        1.0377        .16622E-06    .29112E-03
  21  Prefactor     .10000E-03    4.8764        .22891E-05** at limit **
  22  Prefactor     1.4034        1.0850        .26485E-07   -.37403E-05
  23  Prefactor     .52589        .83724       -.10501E-06    .16961E-04
  24  Prefactor     .10001E-03    1.4144       -.32323E-05** at limit **
  25  norm          3.8075        1.7194        .27659E-06    .21351E-03
  26  norm          3.6193        3.0739        .11224E-05    .42351E-03
  27  Prefactor     1.2914        1.3345        .74071E-06    .15907E-03
  28  Prefactor     .10003E-03    5.1579        .88317E-05** at limit **
  29  Prefactor     12.850        1.0026       -.17627E-07    .85868E-04
  30  Normalizat    1.2552        .18965       -.30054E-05   -.13961E-04
  31  Prefactor     .63188        .21211        .37105E-05   -.21767E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010004
  Prefactor  = 0.000100034
  norm       = 0.336953
  Prefactor  = 5.92953
  norm       = 0.000100009
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.2508
  norm       = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 3.84778
  Prefactor  = 3.26959
  norm       = 0.000100001
  Prefactor  = 25.9566
  norm       = 0.0001
  Prefactor  = 0.000100062
  Prefactor  = 7.43045
  Prefactor  = 0.000100003
  norm       = 6.5917
  Prefactor  = 0.0001
  Prefactor  = 1.40339
  Prefactor  = 0.525886
  Prefactor  = 0.000100008
  norm       = 3.80752
  norm       = 3.61929
  Prefactor  = 1.29138
  Prefactor  = 0.000100031
  Prefactor  = 12.8501
  Normalizat = 1.25518
  Prefactor  = 0.631876
 **********
 **   18 **HESSE 
 **********

 FCN=   6125.686     FROM HESSE     STATUS=OK           690 CALLS     4916 TOTAL
                     EDM=   .48E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    25.669        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10003E-03    19.850        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .33695        1.1818        .10586E-01   -1.5592    
   4  Prefactor     5.9295        3.9011        .41227E-02   -1.5221    
   5  norm          .10001E-03    22.869        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.6068        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    29.517        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.2363        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     24.251        18.387        .20336E-02   -1.4723    
  10  norm          .10000E-03    2.0578        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    21.121        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.8478        16.595        .51390E-02   -1.5316    
  13  Prefactor     3.2696        3.5682        .55992E-02   -1.5346    
  14  norm          .10000E-03    5.9089        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     25.957        20.723        .19658E-02   -1.4689    
  16  norm          .10000E-03    5.4360        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10006E-03    31.172        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.4304        10.046        .36783E-02   -1.5163    
  19  Prefactor     .10000E-03    16.929        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.5917        7.4637        .39079E-02   -1.5194    
  21  Prefactor     .10000E-03    4.8880        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.4034        22.834        .91497E-02   -1.5471    
  23  Prefactor     .52589        9.1816        .11369E-01   -1.5563    
  24  Prefactor     .10001E-03    4.6106        .53526E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.8075        1.8771        .51713E-02   -1.5318    
  26  norm          3.6193        3.5423        .53092E-02   -1.5327    
  27  Prefactor     1.2914        12.725        .97472E-02   -1.5481    
  28  Prefactor     .10003E-03    24.953        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     12.850        13.578        .27936E-02   -1.4991    
  30  Normalizat    1.2552        .17237        .33659E-01   -.84914    
  31  Prefactor     .63188        .18615        .70110E-01   -1.0626    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.75699e-07
Minuit parameter uncertainties:
  1  0.00203387
  2  0.00164367
  3  1.1819
  4  3.9013
  5  0.000900267
  6  0.00015907
  7  5.15688e-05
  8  2.60271e-06
  9  18.3914
  10  7.07173e-06
  11  0.00104835
  12  15.989
  13  3.56845
  14  0.000182567
  15  20.7289
  16  6.73158e-05
  17  0.00278333
  18  10.0486
  19  0.000471313
  20  7.46471
  21  4.77023e-05
  22  11.3263
  23  4.39512
  24  0.000389298
  25  1.87714
  26  3.54246
  27  8.10936
  28  0.00176197
  29  13.5816
  30  0.172445
  31  0.186331
Done.

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

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  3.848e+00  1.599e+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:  6.319e-01  1.863e-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.255e+00  1.724e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/363724/likelihoodResults_263952001_264211201_4FGL_J1421.1+3859_daily_bin95.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) = 6125.12899427
delta logL = 0.557209285018

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6125.09252786
delta logL = 0.59367569264

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0016       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3727       1.0000          .0000       10.000    
     3 'Normalizat'    1.1962       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67616       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=   6125.093     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      263 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .99802        16.307        .13765E-01    .77206E-03
   2  Index         4.3743        3.0390        .11439        .13934E-03
   3  Normalizat    1.1964        .35772E-01    .34985E-01   -.10636E-03
   4  Prefactor     .67596        .40819E-01    .67988E-01    .47774E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.998022
  Index      = 4.37426
  Normalizat = 1.19644
  Prefactor  = 0.675958
 **********
 **   18 **HESSE 
 **********

 FCN=   6125.093     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      294 TOTAL
                     EDM=   .75E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .99802        45.319        .73212E-04   -1.5508    
   2  Index         4.3743        7.1804        .59752E-02   -.12548    
   3  Normalizat    1.1964        .16610        .20472E-03   -.86713    
   4  Prefactor     .67596        .18476        .30086E-03   -1.0448    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.46595e-07
Minuit parameter uncertainties:
  1  13.4607
  2  6.80628
  3  0.166177
  4  0.184923
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/363724': 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) = 6125.09252678
delta logL = 0.593676769333

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  9.980e-01  1.346e+01  1.000e-04  1.000e+04 ( 1.000e-13)
292        Index:  4.374e+00  6.806e+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.760e-01  1.849e-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.196e+00  1.662e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.34
Ra Dec: 215.292 38.997
Photon Index (Free Index): 4.37 +/- 6.81
Photon Flux (Free Index): 5.04e-08 +/- 5.09e-08
Energy Flux (Free Index): 7.14e-06 +/- 1.08e-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/363724/cmap_HighResolution_263952001_264211201_4FGL_J1421.1+3859_daily_bin95.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.28e-03', comment='SUCCESS', energy_flux2='7.14e-06', dlogl='5.94e-01', photon_flux2='5.04e-08', job_status='DONE', time_completed='2021-09-09 10:52:03.011396', photon_index_error2='6.81', photon_index2='4.37', ts='0.07', fit_tolerance='1e-08', GAL='0.63', photon_index_error='0.00', photon_flux_upper_limit='9.26e-08', energy_flux_error2='1.08e-05', EG='1.26', time_epoch_completed='1631209923.01', return_code='0', job_id='363724', GAL2='0.68', EG2='1.20', return_code2='102', photon_flux_error2='5.09e-08', ts2='1.34', photon_index='2.67' WHERE bin_id='95' AND source_name='4FGL J1421.1+3859' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 10:52:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0138>
Subject: Job 363724: <4FGL_J1421.1+3859_daily_bin95> in cluster <slac> Done

Job <4FGL_J1421.1+3859_daily_bin95> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Thu Sep  9 10:36:25 2021
Job was executed on host(s) <bullet0138>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 10:36:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 10:36:27 2021
Terminated at Thu Sep  9 10:52:03 2021
Results reported at Thu Sep  9 10:52:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1421.1+3859_daily_bin95 215.292 38.9966 263952001 264211201 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 :                                   880.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             316.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            938 sec.

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

