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


Performing analysis on: 4FGL_J1421.1+3859_daily_bin1110
RA = 215.292, Dec = 38.9966
tmin = 527040001, tmax = 527299201
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='369507', job_status='RUN', time_executed='2021-09-09 11:00:13.690945', time_epoch_executed='1631210413.69' WHERE source_name='4FGL J1421.1+3859' and cadence='daily' and bin_id='1110'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/369507

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/369507/ft1_4FGL_J1421.1+3859_daily_bin1110.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/369507/ft2_4FGL_J1421.1+3859_daily_bin1110.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/369507/ft1_4FGL_J1421.1+3859_daily_bin1110.fits outfile=/scratch/kocevski/369507/ft1_filteredMKT_4FGL_J1421.1+3859_daily_bin1110.fits ra=215.292 dec=38.9966 rad=12.0 tmin=527040001.0 tmax=527299201.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 6.18
user 5.92
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/369507/ft1_filtered_4FGL_J1421.1+3859_daily_bin1110.fits" evtable="EVENTS" scfile=/scratch/kocevski/369507/ft2_4FGL_J1421.1+3859_daily_bin1110.fits sctable="SC_DATA" outfile=/scratch/kocevski/369507/ltcube_527040001_527299201_4FGL_J1421.1+3859_daily_bin1110.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/369507/ft2_4FGL_J1421.1+3859_daily_bin1110.fits
.....................!
real 18.48
user 18.02
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/369507/ft1_filtered_4FGL_J1421.1+3859_daily_bin1110.fits evtable="EVENTS" scfile=/scratch/kocevski/369507/ft2_4FGL_J1421.1+3859_daily_bin1110.fits sctable="SC_DATA" expcube=/scratch/kocevski/369507/ltcube_527040001_527299201_4FGL_J1421.1+3859_daily_bin1110.fits outfile=/scratch/kocevski/369507/expmap_527040001_527299201_4FGL_J1421.1+3859_daily_bin1110.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/369507/ltcube_527040001_527299201_4FGL_J1421.1+3859_daily_bin1110.fits
.....................!
real 190.88
user 185.52
sys 4.93

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/369507/ft1_filtered_4FGL_J1421.1+3859_daily_bin1110.fits scfile=/scratch/kocevski/369507/ft2_4FGL_J1421.1+3859_daily_bin1110.fits outfile=/scratch/kocevski/369507/cmap_527040001_527299201_4FGL_J1421.1+3859_daily_bin1110.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/369507/ft1_filtered_4FGL_J1421.1+3859_daily_bin1110.fits scfile=/scratch/kocevski/369507/ft2_4FGL_J1421.1+3859_daily_bin1110.fits outfile=/scratch/kocevski/369507/cmap_HighResolution_527040001_527299201_4FGL_J1421.1+3859_daily_bin1110.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.56
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10292E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.5746       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.3575       1.0000         .10000E-03   10000.    
     5 'norm      '    .10114E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10395E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.3620       1.0000         .10000E-03   10000.    
    10 'norm      '    2.5623       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.8786       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .58898E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    148.72       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.7357       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    21.181       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.2572       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    21.742       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.3242       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .55827       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=   3930.003     FROM MIGRAD    STATUS=CONVERGED    801 CALLS     4104 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    36.513       -.21615E-06** at limit **
   2  Prefactor     .10000E-03    140.26        .66651E-06** at limit **
   3  norm          2.5739        2.2343        .19164E-07   -.73873E-04
   4  Prefactor     3.3538        7.8529        .77651E-07    .73163E-05
   5  norm          .10000E-03    61.140        .44017E-06** at limit **
   6  Prefactor     .10000E-03    55.882        .24932E-05** at limit **
   7  Prefactor     .10000E-03    20.436       -.21923E-06** at limit **
   8  Prefactor     .10000E-03    4.6642       -.38153E-06** at limit **
   9  Prefactor     9.2815        32.035        .52771E-05    .32425E-04
  10  norm          2.5617        5.0219        .28625E-05    .71248E-03
  11  Prefactor     .10000E-03    12.620       -.17181E-06** at limit **
  12  Prefactor     .10000E-03    27.398       -.61672E-06** at limit **
  13  Prefactor     5.8761        5.9617        .14292E-06    .46193E-04
  14  norm          .10000E-03    6.4048        .34575E-06** at limit **
  15  Prefactor     .10131E-03    29.655        .70170E-05** at limit **
  16  norm          .10000E-03    3.4534       -.18073E-06** at limit **
  17  Prefactor     148.67        74.316        .48576E-05    .93611E-04
  18  Prefactor     .10000E-03    12.623        .22915E-06** at limit **
  19  Prefactor     .10000E-03    25.236        .95908E-06** at limit **
  20  norm          4.7368        8.4731        .32292E-06    .76226E-05
  21  Prefactor     .10000E-03    5.1537        .21188E-07** at limit **
  22  Prefactor     21.179        26.757       -.10971E-06   -.16825E-04
  23  Prefactor     6.2566        5.9979       -.10674E-06   -.46382E-04
  24  Prefactor     .10000E-03    6.3929       -.22021E-06** at limit **
  25  norm          .10000E-03    .48340       -.59507E-08** at limit **
  26  norm          .10000E-03    1.4210       -.20036E-07** at limit **
  27  Prefactor     .10000E-03    5.2444       -.18482E-06** at limit **
  28  Prefactor     .10000E-03    35.633       -.58646E-06** at limit **
  29  Prefactor     21.725        31.679        .11964E-05    .17343E-04
  30  Normalizat    1.3249        .22331        .12729E-05   -.13430E-04
  31  Prefactor     .55763        .22529       -.40496E-05   -.12449E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.57388
  Prefactor  = 3.35378
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.28147
  norm       = 2.56168
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.87611
  norm       = 0.0001
  Prefactor  = 0.000101311
  norm       = 0.0001
  Prefactor  = 148.665
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.7368
  Prefactor  = 0.0001
  Prefactor  = 21.1789
  Prefactor  = 6.25664
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.7253
  Normalizat = 1.32487
  Prefactor  = 0.55763
 **********
 **   18 **HESSE 
 **********

 FCN=   3930.003     FROM HESSE     STATUS=OK           612 CALLS     4716 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    36.514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    140.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.5739        2.2278        .83378E-04   -1.5387    
   4  Prefactor     3.3538        7.8800        .22086E-03   -1.5342    
   5  norm          .10000E-03    62.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    56.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    20.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.7052        .13222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.2815        32.383        .13098E-03   -1.5099    
  10  norm          2.5617        5.2147        .97555E-03   -1.5388    
  11  Prefactor     .10000E-03    12.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    27.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.8761        5.9587        .14385E-03   -1.5223    
  14  norm          .10000E-03    6.4077        .15495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10131E-03    118.60        .51103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.4700        .11377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     148.67        74.413        .16524E-03   -1.3263    
  18  Prefactor     .10000E-03    12.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    25.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.7368        8.4666        .18490E-03   -1.5273    
  21  Prefactor     .10000E-03    5.1593        .13898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     21.179        26.746        .87030E-04   -1.4787    
  23  Prefactor     6.2566        5.9948        .14551E-03   -1.5208    
  24  Prefactor     .10000E-03    6.4384        .15474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .48859        .42531E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    1.4234        .72971E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    5.2537        .14009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    35.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     21.725        31.822        .85902E-04   -1.4775    
  30  Normalizat    1.3249        .26401        .20792E-03   -.82827    
  31  Prefactor     .55763        .26135        .32542E-03   -1.0940    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15589e-08
Minuit parameter uncertainties:
  1  5.7606e-06
  2  0.000199464
  3  2.22792
  4  7.88242
  5  8.06331e-05
  6  0.000198915
  7  3.02055e-05
  8  4.13973e-05
  9  32.4447
  10  5.21563
  11  3.12691e-05
  12  0.000136629
  13  5.95931
  14  5.83371e-06
  15  0.0249865
  16  2.3908e-05
  17  74.46
  18  1.18941e-07
  19  6.90717e-05
  20  8.46871
  21  1.28163e-07
  22  26.7609
  23  5.99536
  24  2.45964e-06
  25  1.73828e-07
  26  1.54796e-06
  27  2.21557e-05
  28  2.75888e-05
  29  31.8469
  30  0.264284
  31  0.261915
Done.

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

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  1.366e-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:  5.576e-01  2.619e-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.325e+00  2.643e-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: 1.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/369507/likelihoodResults_527040001_527299201_4FGL_J1421.1+3859_daily_bin1110.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) = 3930.00351613
delta logL = -0.000172549653144

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3930.00334331
delta logL = 2.72781562671e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10378E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.2299       1.0000          .0000       10.000    
     3 'Normalizat'    1.3249       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55763       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=   3930.003     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      257 TOTAL
                     EDM=   .57E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .10583        .90712E-01** at limit **
   2  Index         3.2315        7.5929        .50000       -.46484E-06
   3  Normalizat    1.3249        .65802E-03    .47034E-01   -.35057E-04
   4  Prefactor     .55763        .69974E-03    .73501E-01    .36829E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.23148
  Normalizat = 1.32487
  Prefactor  = 0.557634
 **********
 **   18 **HESSE 
 **********

 FCN=   3930.003     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      290 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    62.911        .31029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.2315        7.9674        .50000       -.36153    
   3  Normalizat    1.3249        .70368E-02    .20792E-03   -.82827    
   4  Prefactor     .55763        .74670E-02    .32542E-03   -1.0940    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.43861e-10
Minuit parameter uncertainties:
  1  1.93454e-05
  2  258.169
  3  0.00703684
  4  0.00746705
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/369507': 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) = 3930.00334325
delta logL = 3.29530394083e-07

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  1.935e-05  1.000e-04  1.000e+04 ( 1.000e-13)
292        Index:  3.231e+00  2.582e+02  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:  5.576e-01  7.467e-03  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.325e+00  7.037e-03  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/369507/cmap_HighResolution_527040001_527299201_4FGL_J1421.1+3859_daily_bin1110.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.76e-03', job_status='DONE', photon_flux_upper_limit='1.24e-07', time_completed='2021-09-09 11:11:38.885218', job_id='369507', GAL2='0.56', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1631211098.89', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.56', dlogl='3.30e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='1110' AND source_name='4FGL J1421.1+3859' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:11:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 369507: <4FGL_J1421.1+3859_daily_bin1110> in cluster <slac> Done

Job <4FGL_J1421.1+3859_daily_bin1110> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  9 10:56:08 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 10:56:09 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:56:09 2021
Terminated at Thu Sep  9 11:11:39 2021
Results reported at Thu Sep  9 11:11:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1421.1+3859_daily_bin1110 215.292 38.9966 527040001 527299201 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 :                                   678.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             250.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            931 sec.

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

