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


Performing analysis on: 4FGL_J1421.1+3859_daily_bin35
RA = 215.292, Dec = 38.9966
tmin = 248400001, tmax = 248659201
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='363637', job_status='RUN', time_executed='2021-09-09 10:40:20.383736', time_epoch_executed='1631209220.38' WHERE source_name='4FGL J1421.1+3859' and cadence='daily' and bin_id='35'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/363637

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/363637/ft1_4FGL_J1421.1+3859_daily_bin35.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/363637/ft2_4FGL_J1421.1+3859_daily_bin35.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/363637/ft1_4FGL_J1421.1+3859_daily_bin35.fits outfile=/scratch/kocevski/363637/ft1_filteredMKT_4FGL_J1421.1+3859_daily_bin35.fits ra=215.292 dec=38.9966 rad=12.0 tmin=248400001.0 tmax=248659201.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.41
user 1.25
sys 0.15

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/363637/ft1_filtered_4FGL_J1421.1+3859_daily_bin35.fits evtable="EVENTS" scfile=/scratch/kocevski/363637/ft2_4FGL_J1421.1+3859_daily_bin35.fits sctable="SC_DATA" expcube=/scratch/kocevski/363637/ltcube_248400001_248659201_4FGL_J1421.1+3859_daily_bin35.fits outfile=/scratch/kocevski/363637/expmap_248400001_248659201_4FGL_J1421.1+3859_daily_bin35.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/363637/ltcube_248400001_248659201_4FGL_J1421.1+3859_daily_bin35.fits
.....................!
real 190.40
user 184.93
sys 5.11

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/363637/ft1_filtered_4FGL_J1421.1+3859_daily_bin35.fits scfile=/scratch/kocevski/363637/ft2_4FGL_J1421.1+3859_daily_bin35.fits outfile=/scratch/kocevski/363637/cmap_248400001_248659201_4FGL_J1421.1+3859_daily_bin35.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/363637/ft1_filtered_4FGL_J1421.1+3859_daily_bin35.fits scfile=/scratch/kocevski/363637/ft2_4FGL_J1421.1+3859_daily_bin35.fits outfile=/scratch/kocevski/363637/cmap_HighResolution_248400001_248659201_4FGL_J1421.1+3859_daily_bin35.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    17.179       1.0000         .10000E-03   10000.    
     3 'norm      '    1.2177       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.1663       1.0000         .10000E-03   10000.    
     5 'norm      '    7.8704       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.1033       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.1043       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.519       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .27627E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    30.755       1.0000         .10000E-03   10000.    
    20 'norm      '    14.096       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.0796       1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    135.12       1.0000         .10000E-03   10000.    
    29 'Prefactor '    40.700       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .92398       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .92888       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=   4778.932     FROM MIGRAD    STATUS=CONVERGED    789 CALLS     4103 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    36.375        .27538E-06** at limit **
   2  Prefactor     17.255        63.583        .15856E-05    .29208E-04
   3  norm          1.2178        1.3121        .12401E-06    .16211E-03
   4  Prefactor     6.1669        3.9394        .68096E-07    .20688E-04
   5  norm          7.8712        13.258        .34382E-06    .25766E-04
   6  Prefactor     9.1040        15.547        .23192E-05    .14442E-03
   7  Prefactor     .10000E-03    55.133       -.44359E-06** at limit **
   8  Prefactor     .10000E-03    1.5579       -.60618E-07** at limit **
   9  Prefactor     .10000E-03    4.8627       -.76420E-07** at limit **
  10  norm          4.1040        3.3634        .39682E-07    .77329E-04
  11  Prefactor     .10000E-03    4.9009       -.14997E-06** at limit **
  12  Prefactor     .10000E-03    5.5637       -.12836E-06** at limit **
  13  Prefactor     10.519        4.6803        .11336E-06    .85438E-04
  14  norm          .10000E-03    4.5130       -.43449E-07** at limit **
  15  Prefactor     .10000E-03    6.6739       -.69116E-07** at limit **
  16  norm          .10001E-03    4.7644       -.77849E-06** at limit **
  17  Prefactor     .10000E-03    23.348       -.17638E-06** at limit **
  18  Prefactor     .10000E-03    4.6684       -.47310E-07** at limit **
  19  Prefactor     30.746        31.399        .23950E-06    .40599E-05
  20  norm          14.093        10.327        .11256E-06    .90852E-04
  21  Prefactor     .10000E-03    12.595       -.41410E-06** at limit **
  22  Prefactor     .10000E-03    18.241       -.14754E-06** at limit **
  23  Prefactor     .10000E-03    5.3568       -.22233E-06** at limit **
  24  Prefactor     .10000E-03    5.8761       -.21349E-06** at limit **
  25  norm          1.0797        2.2106        .63444E-06    .36821E-03
  26  norm          .10000E-03    2.1353       -.50561E-07** at limit **
  27  Prefactor     .10000E-03    8.3750        .21426E-07** at limit **
  28  Prefactor     135.13        110.61       -.87317E-06   -.29130E-05
  29  Prefactor     40.704        31.883        .63024E-07    .62842E-05
  30  Normalizat    .92371        .20389       -.31149E-05    .22470E-03
  31  Prefactor     .92910        .22774        .34205E-05    .59195E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 17.2551
  norm       = 1.2178
  Prefactor  = 6.16693
  norm       = 7.8712
  Prefactor  = 9.10401
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.10402
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.5191
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.7461
  norm       = 14.0934
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.07966
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 135.13
  Prefactor  = 40.7038
  Normalizat = 0.923712
  Prefactor  = 0.929104
 **********
 **   18 **HESSE 
 **********

 FCN=   4778.932     FROM HESSE     STATUS=OK           616 CALLS     4719 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    36.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.255        63.613        .96632E-04   -1.4877    
   3  norm          1.2178        1.2946        .78394E-04   -1.5487    
   4  Prefactor     6.1669        3.9374        .10600E-03   -1.5211    
   5  norm          7.8712        13.240        .14293E-03   -1.5147    
   6  Prefactor     9.1040        15.892        .66418E-03   -1.5104    
   7  Prefactor     .10000E-03    55.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.5613        .84268E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.8664        .14888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.1040        3.3608        .11112E-03   -1.5303    
  11  Prefactor     .10000E-03    4.9164        .14953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.5750        .15928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.519        4.6799        .95030E-04   -1.5059    
  14  norm          .10000E-03    4.5148        .14344E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.6765        .17443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10001E-03    16.706        .27583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    23.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.6704        .14588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     30.746        31.404        .72248E-04   -1.4598    
  20  norm          14.093        10.298        .10668E-03   -1.4957    
  21  Prefactor     .10000E-03    12.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    18.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.3953        .15617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.9478        .16369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.0797        2.1732        .12762E-03   -1.5500    
  26  norm          .10000E-03    2.1527        .98624E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    8.4428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     135.13        108.84        .34646E-04   -1.3378    
  29  Prefactor     40.704        31.809        .62832E-04   -1.4431    
  30  Normalizat    .92371        .21335        .22326E-03   -.95632    
  31  Prefactor     .92910        .24063        .26192E-03   -.95131    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.1046e-10
Minuit parameter uncertainties:
  1  4.29695e-05
  2  63.8648
  3  1.29464
  4  3.9376
  5  13.2445
  6  15.8996
  7  7.37428e-06
  8  1.28676e-06
  9  6.74365e-07
  10  3.36096
  11  1.18756e-05
  12  7.24215e-06
  13  4.68003
  14  2.36845e-06
  15  6.38912e-08
  16  0.000727361
  17  3.02954e-05
  18  3.19521e-06
  19  31.4206
  20  10.2997
  21  2.77163e-05
  22  6.2798e-06
  23  2.04342e-05
  24  1.24158e-05
  25  2.17339
  26  1.23445e-06
  27  8.54964e-07
  28  108.997
  29  31.8218
  30  0.213541
  31  0.240902
Done.

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

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  7.242e-06  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:  9.291e-01  2.409e-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:  9.237e-01  2.135e-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: 5.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/363637/likelihoodResults_248400001_248659201_4FGL_J1421.1+3859_daily_bin35.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) = 4778.93305226
delta logL = -0.000853361910231

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4778.9321991
delta logL = -1.988682925e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10422E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6447       1.0000          .0000       10.000    
     3 'Normalizat'    .92365       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92919       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4778.932     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      247 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.265        .16355E-01** at limit **
   2  Index         1.8624        7.9816        .50000       -.32960E-06
   3  Normalizat    .92371        .74146E-02    .22326E-03   -.77265E-03
   4  Prefactor     .92910        .87691E-02    .26192E-03   -.65222E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.8624
  Normalizat = 0.923708
  Prefactor  = 0.929104
 **********
 **   18 **HESSE 
 **********

 FCN=   4778.932     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      274 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    227.14        .20289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8624        5.4172        .50000       -.67836    
   3  Normalizat    .92371        .21979E-01    .44653E-04   -.95632    
   4  Prefactor     .92910        .25994E-01    .52384E-04   -.95131    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.31821e-09
Minuit parameter uncertainties:
  1  6.56076e-05
  2  813.21
  3  0.0219792
  4  0.0259944
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/363637': 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) = 4778.93219546
delta logL = 3.43738520314e-06

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  6.561e-05  1.000e-04  1.000e+04 ( 1.000e-13)
292        Index:  1.862e+00  8.132e+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:  9.291e-01  2.599e-02  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:  9.237e-01  2.198e-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/363637/cmap_HighResolution_248400001_248659201_4FGL_J1421.1+3859_daily_bin35.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.67e-03', job_status='DONE', photon_flux_upper_limit='5.94e-08', time_completed='2021-09-09 10:52:32.438565', job_id='363637', GAL2='0.93', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1631209952.44', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='3.44e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='35' AND source_name='4FGL J1421.1+3859' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 10:52:32 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1421.1+3859_daily_bin35 215.292 38.9966 248400001 248659201 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 :                                   731.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   971 sec.
    Turnaround time :                            972 sec.

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

