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


Performing analysis on: 4FGL_J1421.1+3859_daily_bin457
RA = 215.292, Dec = 38.9966
tmin = 357782401, tmax = 358041601
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='365244', job_status='RUN', time_executed='2021-09-09 10:41:41.258461', time_epoch_executed='1631209301.26' WHERE source_name='4FGL J1421.1+3859' and cadence='daily' and bin_id='457'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/365244

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/365244/ft1_4FGL_J1421.1+3859_daily_bin457.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/365244/ft2_4FGL_J1421.1+3859_daily_bin457.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/365244/ft1_4FGL_J1421.1+3859_daily_bin457.fits outfile=/scratch/kocevski/365244/ft1_filteredMKT_4FGL_J1421.1+3859_daily_bin457.fits ra=215.292 dec=38.9966 rad=12.0 tmin=357782401.0 tmax=358041601.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.52
user 3.28
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/365244/ft2_4FGL_J1421.1+3859_daily_bin457.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/365244/ft1_filteredMKT_4FGL_J1421.1+3859_daily_bin457.fits evtable="EVENTS" outfile="/scratch/kocevski/365244/ft1_filtered_4FGL_J1421.1+3859_daily_bin457.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.33
sys 0.12

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/365244/ft1_filtered_4FGL_J1421.1+3859_daily_bin457.fits" evtable="EVENTS" scfile=/scratch/kocevski/365244/ft2_4FGL_J1421.1+3859_daily_bin457.fits sctable="SC_DATA" outfile=/scratch/kocevski/365244/ltcube_357782401_358041601_4FGL_J1421.1+3859_daily_bin457.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/365244/ft2_4FGL_J1421.1+3859_daily_bin457.fits
.....................!
real 11.87
user 11.50
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/365244/ft1_filtered_4FGL_J1421.1+3859_daily_bin457.fits evtable="EVENTS" scfile=/scratch/kocevski/365244/ft2_4FGL_J1421.1+3859_daily_bin457.fits sctable="SC_DATA" expcube=/scratch/kocevski/365244/ltcube_357782401_358041601_4FGL_J1421.1+3859_daily_bin457.fits outfile=/scratch/kocevski/365244/expmap_357782401_358041601_4FGL_J1421.1+3859_daily_bin457.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/365244/ltcube_357782401_358041601_4FGL_J1421.1+3859_daily_bin457.fits
.....................!
real 191.16
user 185.01
sys 5.73

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/365244/ft1_filtered_4FGL_J1421.1+3859_daily_bin457.fits scfile=/scratch/kocevski/365244/ft2_4FGL_J1421.1+3859_daily_bin457.fits outfile=/scratch/kocevski/365244/cmap_357782401_358041601_4FGL_J1421.1+3859_daily_bin457.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/365244/ft1_filtered_4FGL_J1421.1+3859_daily_bin457.fits scfile=/scratch/kocevski/365244/ft2_4FGL_J1421.1+3859_daily_bin457.fits outfile=/scratch/kocevski/365244/cmap_HighResolution_357782401_358041601_4FGL_J1421.1+3859_daily_bin457.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.6980       1.0000         .10000E-03   10000.    
     3 'norm      '    8.9030       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    50.469       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11532E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10556E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    6.4725       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.818       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10298E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.008       1.0000         .10000E-03   10000.    
    16 'norm      '    5.6271       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.2690       1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.967       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.4658       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.9165       1.0000         .10000E-03   10000.    
    25 'norm      '    .21933E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .27859E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2712       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .83122       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=   6318.405     FROM MIGRAD    STATUS=CONVERGED    806 CALLS     4136 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.368       -.16227E-04** at limit **
   2  Prefactor     3.6565        495.92       -.18262E-03    .37859E-05
   3  norm          8.9033        2.3430        .14187E-07   -.18478E-03
   4  Prefactor     .10000E-03    1.4900       -.43733E-07** at limit **
   5  norm          50.471        24.380        .20787E-05    .89142E-04
   6  Prefactor     .10000E-03    8.0013        .45355E-05** at limit **
   7  Prefactor     .10000E-03    124.17       -.41226E-04** at limit **
   8  Prefactor     .10000E-03    1.5148       -.12874E-06** at limit **
   9  Prefactor     .10001E-03    59.604        .54440E-04** at limit **
  10  norm          6.4717        4.7197        .78721E-06   -.30174E-04
  11  Prefactor     16.809        16.305       -.54364E-06   -.12835E-03
  12  Prefactor     .10000E-03    20.180        .91968E-05** at limit **
  13  Prefactor     .10000E-03    2.6830       -.33523E-06** at limit **
  14  norm          .10000E-03    8.2462       -.51151E-05** at limit **
  15  Prefactor     15.014        24.239       -.13259E-05   -.47564E-04
  16  norm          5.6267        5.3960       -.11647E-05    .54384E-04
  17  Prefactor     .10000E-03    17.743       -.13742E-04** at limit **
  18  Prefactor     .10000E-03    26.407        .72144E-05** at limit **
  19  Prefactor     .10000E-03    10.991        .21804E-05** at limit **
  20  norm          3.2666        9.6031       -.80390E-06   -.16187E-03
  21  Prefactor     16.965        18.931       -.87201E-06    .46608E-04
  22  Prefactor     7.4618        20.289       -.97776E-06   -.74830E-04
  23  Prefactor     .10000E-03    4.2948        .65714E-07** at limit **
  24  Prefactor     6.9171        5.8659       -.12807E-06    .21870E-04
  25  norm          .10000E-03    .70821       -.10424E-06** at limit **
  26  norm          .10000E-03    1.8809       -.27132E-06** at limit **
  27  Prefactor     .10002E-03    6.9442       -.65977E-06** at limit **
  28  Prefactor     .10000E-03    19.605        .46590E-05** at limit **
  29  Prefactor     .10000E-03    38.872       -.22675E-04** at limit **
  30  Normalizat    1.2714        .19231        .47043E-05   -.33530E-03
  31  Prefactor     .83121        .20171       -.25669E-05    .23521E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.65652
  norm       = 8.90329
  Prefactor  = 0.0001
  norm       = 50.4712
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  norm       = 6.47168
  Prefactor  = 16.8087
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.0142
  norm       = 5.62669
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.26657
  Prefactor  = 16.9649
  Prefactor  = 7.46184
  Prefactor  = 0.0001
  Prefactor  = 6.91711
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100017
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.27135
  Prefactor  = 0.831212
 **********
 **   18 **HESSE 
 **********

 FCN=   6318.405     FROM HESSE     STATUS=OK           618 CALLS     4754 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.6565        508.16        .21001E-03   -1.5326    
   3  norm          8.9033        2.3460        .59389E-04   -1.5111    
   4  Prefactor     .10000E-03    1.4995        .94740E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          50.471        24.391        .56451E-04   -1.4286    
   6  Prefactor     .10000E-03    8.0068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    127.39        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.5176        .95535E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    60.150        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          6.4717        4.7145        .14034E-03   -1.5199    
  11  Prefactor     16.809        16.304        .97664E-04   -1.4888    
  12  Prefactor     .10000E-03    20.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.7236        .12703E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    8.2566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.014        24.255        .10339E-03   -1.4933    
  16  norm          5.6267        5.3902        .16935E-03   -1.5234    
  17  Prefactor     .10000E-03    17.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    26.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.2666        9.5637        .22397E-03   -1.5346    
  21  Prefactor     16.965        18.789        .97232E-04   -1.4884    
  22  Prefactor     7.4618        20.267        .14678E-03   -1.5162    
  23  Prefactor     .10000E-03    4.3094        .16073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     6.9171        5.8594        .15255E-03   -1.5182    
  25  norm          .10000E-03    6.2144        .12746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    1.8983        .10621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10002E-03    47.759        .40191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    19.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    39.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.2714        .23509        .22982E-03   -.84426    
  31  Prefactor     .83121        .24608        .31143E-03   -.98588    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.72682e-09
Minuit parameter uncertainties:
  1  0.000123957
  2  86.9739
  3  2.34605
  4  2.35319e-06
  5  24.3957
  6  8.35446e-06
  7  0.000450916
  8  5.84128e-06
  9  0.00148248
  10  4.71476
  11  16.3085
  12  4.58439e-05
  13  1.81085e-05
  14  5.76935e-06
  15  24.2709
  16  5.39067
  17  2.3329e-06
  18  0.000142732
  19  9.06948e-06
  20  9.56812
  21  18.7957
  22  20.286
  23  3.13198e-06
  24  5.85992
  25  0.000143138
  26  8.16582e-08
  27  0.00181415
  28  5.12544e-06
  29  0.000179611
  30  0.235283
  31  0.246404
Done.

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

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  4.584e-05  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.312e-01  2.464e-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.271e+00  2.353e-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: 9.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/365244/likelihoodResults_357782401_358041601_4FGL_J1421.1+3859_daily_bin457.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6318.40522464
delta logL = -0.000235588142459

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6318.40498931
delta logL = -2.56782186625e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5733       1.0000          .0000       10.000    
     3 'Normalizat'    1.2714       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83122       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=   6318.405     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      243 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1583.9        .90712E-02** at limit **
   2  Index         2.5919        7.5268        .50000       -.93271E-05
   3  Normalizat    1.2714        .46866E-01    .51979E-01    .31221E-04
   4  Prefactor     .83120        .52702E-01    .70385E-01    .32574E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.59186
  Normalizat = 1.27136
  Prefactor  = 0.831203
 **********
 **   18 **HESSE 
 **********

 FCN=   6318.405     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      276 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6554.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5919        6.2953        .50000       -.50251    
   3  Normalizat    1.2714        .88916E-01    .22982E-03   -.84425    
   4  Prefactor     .83120        .10002        .31143E-03   -.98588    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.07739e-08
Minuit parameter uncertainties:
  1  0.000894395
  2  59.8397
  3  0.088927
  4  0.100037
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/365244': 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) = 6318.40498923
delta logL = -1.74118213181e-07

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  8.944e-04  1.000e-04  1.000e+04 ( 1.000e-13)
292        Index:  2.592e+00  5.984e+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.312e-01  1.000e-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.271e+00  8.893e-02  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/365244/cmap_HighResolution_357782401_358041601_4FGL_J1421.1+3859_daily_bin457.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.36e-03', job_status='DONE', photon_flux_upper_limit='9.37e-08', time_completed='2021-09-09 10:56:39.698399', job_id='365244', GAL2='0.83', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1631210199.7', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='-1.74e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='457' AND source_name='4FGL J1421.1+3859' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 10:56:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 365244: <4FGL_J1421.1+3859_daily_bin457> in cluster <slac> Done

Job <4FGL_J1421.1+3859_daily_bin457> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  9 10:41:23 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 10:41:25 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:41:25 2021
Terminated at Thu Sep  9 10:56:40 2021
Results reported at Thu Sep  9 10:56:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1421.1+3859_daily_bin457 215.292 38.9966 357782401 358041601 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 :                                   892.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             326.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            917 sec.

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

