/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 95 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 provieDone.


Performing analysis on: 4FGL_J0001.5+2113_daily_bin1660
RA = 0.3815, Dec = 21.2183
tmin = 669600001, tmax = 669859201
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 souDone.


Performing analysis on: 4FGL_J0001.5+2113_daily_bin1660
RA = 0.3815, Dec = 21.2183
tmin = 669600001, tmax = 669859201
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='984193', job_status='RUN', time_executed='2022-03-25 00:07:57.701155', time_epoch_executed='1648192077.7' WHERE source_name='4FGL J0001.5+2113' and cadence='daily' and bin_id='1660'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/984193

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/984193/ft1_4FGL_J0001.5+2113_daily_bin1660.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/984193/ft2_4FGL_J0001.5+2113_daily_bin1660.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/984193/ft1_4FGL_J0001.5+2113_daily_bin1660.fits outfile=/scratch/kocevski/984193/ft1_filteredMKT_4FGL_J0001.5+2113_daily_bin1660.fits ra=0.3815 dec=21.2183 rad=12.0 tmin=669600001.0 tmax=669859201.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.09
user 4.34
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/984193/ft2_4FGL_J0001.5+2113_daily_bin1660.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/984193/ft2_4FGL_J0001.5+2113_daily_bin1660.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/984193/ft1_filteredMKT_4FGL_J0001.5+2113_daily_bin1660.fits evtable="EVENTS" outfile="/scratch/kocevski/984193/ft1_filtered_4FGL_J0001.5+2113_daily_bin1660.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 1.09
user 0.32
sys 0.15

Number of photons that the gtmktime cut: 654

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/984193/ft1_filtered_4FGL_J0001.5+2113_daily_bin1660.fits" evtable="EVENTS" scfile=/scratch/kocevski/984193/ft2_4FGL_J0001.5+2113_daily_bin1660.fits sctable="SC_DATA" outfile=/scratch/kocevski/984193/ltcube_669600001_669859201_4FGL_J0001.5+2113_daily_bin1660.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/984193/ft2_4FGL_J0001.5+2113_daily_bin1660.fits
.....................!
real 13.42
user 11.66
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/984193/ft1_filtered_4FGL_J0001.5+2113_daily_bin1660.fits evtable="EVENTS" scfile=/scratch/kocevski/984193/ft2_4FGL_J0001.5+2113_daily_bin1660.fits sctable="SC_DATA" expcube=/scratch/kocevski/984193/ltcube_669600001_669859201_4FGL_J0001.5+2113_daily_bin1660.fits outfile=/scratch/kocevski/984193/expmap_669600001_669859201_4FGL_J0001.5+2113_daily_bin1660.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/984193/ltcube_669600001_669859201_4FGL_J0001.5+2113_daily_bin1660.fits
.....................!
real 191.36
user 185.50
sys 5.36

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 160 point sources and 0 extended sources

Setting source of interest to:
4FGL J0001.5+2113 @ 0.3815 21.2183

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/984193/ft1_filtered_4FGL_J0001.5+2113_daily_bin1660.fits scfile=/scratch/kocevski/984193/ft2_4FGL_J0001.5+2113_daily_bin1660.fits outfile=/scratch/kocevski/984193/cmap_669600001_669859201_4FGL_J0001.5+2113_daily_bin1660.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=0.3815 yref=21.2183 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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/984193/ft1_filtered_4FGL_J0001.5+2113_daily_bin1660.fits scfile=/scratch/kocevski/984193/ft2_4FGL_J0001.5+2113_daily_bin1660.fits outfile=/scratch/kocevski/984193/cmap_HighResolution_669600001_669859201_4FGL_J0001.5+2113_daily_bin1660.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=0.3815 yref=21.2183 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.61
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/984193/ft1_filtered_4FGL_J0001.5+2113_daily_bin1660.fits evtable="EVENTS" scfile=/scratch/kocevski/984193/ft2_4FGL_J0001.5+2113_daily_bin1660.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/984193/Model_4FGL_J0001.5+2113_daily_bin1660.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/984193/ft1_filtered_4FGL_J0001.5+2113_daily_bin1660.fits.....................!
real 78.72
user 76.92
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/984193/ft1_filtered_4FGL_J0001.5+2113_daily_bin1660.fits', '/scratch/kocevski/984193/ft2_4FGL_J0001.5+2113_daily_bin1660.fits', expMap='/scratch/kocevski/984193/expmap_669600001_669859201_4FGL_J0001.5+2113_daily_bin1660.fits', expCube='/scratch/kocevski/984193/ltcube_669600001_669859201_4FGL_J0001.5+2113_daily_bin1660.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/984193/Model_4FGL_J0001.5+2113_daily_bin1660.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0001.5+2113'

4FGL J0001.5+2113
   Spectrum: LogParabola
3           norm:  4.533e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
4          alpha:  2.548e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
5           beta:  1.588e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
6             Eb:  3.558e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/984193/ft1_filtered_4FGL_J0001.5+2113_daily_bin1660.fits
Spacecraft file(s): /scratch/kocevski/984193/ft2_4FGL_J0001.5+2113_daily_bin1660.fits
Exposure map: /scratch/kocevski/984193/expmap_669600001_669859201_4FGL_J0001.5+2113_daily_bin1660.fits
Exposure cube: /scratch/kocevski/984193/ltcube_669600001_669859201_4FGL_J0001.5+2113_daily_bin1660.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/984193/Model_4FGL_J0001.5+2113_daily_bin1660.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) = 7091.8560326

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11445E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11088E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.951       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.2752       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13704E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.5550       1.0000         .10000E-03   10000.    
     7 'norm      '    11.101       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.7295       1.0000         .10000E-03   10000.    
     9 'norm      '    .14962E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.683       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11731E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.3689       1.0000         .10000E-03   10000.    
    13 'norm      '    6.5005       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .37942E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    30.086       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0723       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0574       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7091.856     FROM MIGRAD    STATUS=CONVERGED    352 CALLS     1618 TOTAL
                     EDM=   .93E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.4801        .54499E-06** at limit **
   2  Prefactor     .10000E-03    4.2968        .81575E-07** at limit **
   3  Prefactor     15.020        11.591       -.35318E-06   -.12188E-03
   4  Prefactor     1.2777        12.064        .19410E-05   -.25095E-04
   5  Prefactor     .10000E-03    12.700        .54311E-07** at limit **
   6  Prefactor     1.5489        4.3477        .10167E-05   -.39943E-04
   7  norm          11.166        10.184        .69648E-07   -.16427E-05
   8  Prefactor     5.8456        29.638       -.11311E-05   -.35157E-04
   9  norm          .10000E-03    3.2083       -.11193E-06** at limit **
  10  Prefactor     10.673        14.797        .19479E-05   -.29567E-04
  11  Prefactor     .10000E-03    4.0797        .33457E-06** at limit **
  12  Prefactor     6.3794        9.7691        .18302E-06   -.10957E-04
  13  norm          6.4972        10.110        .14131E-06   -.20094E-05
  14  Prefactor     .10000E-03    6.3898        .61671E-06** at limit **
  15  Prefactor     29.995        38.388       -.91106E-06   -.97822E-04
  16  Normalizat    1.0721        .19995        .51343E-06   -.24377E-03
  17  Prefactor     1.0575        .12769       -.12375E-05   -.15441E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.0202
  Prefactor  = 1.27766
  Prefactor  = 0.0001
  Prefactor  = 1.54894
  norm       = 11.1656
  Prefactor  = 5.84555
  norm       = 0.0001
  Prefactor  = 10.6727
  Prefactor  = 0.0001
  Prefactor  = 6.37939
  norm       = 6.49717
  Prefactor  = 0.0001
  Prefactor  = 29.995
  Normalizat = 1.07209
  Prefactor  = 1.05752
 **********
 **   18 **HESSE 
 **********

 FCN=   7091.856     FROM HESSE     STATUS=OK           225 CALLS     1843 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.5529        .19245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.3056        .17041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.020        11.576        .10358E-03   -1.4933    
   4  Prefactor     1.2777        12.390        .39357E-03   -1.5482    
   5  Prefactor     .10000E-03    12.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.5489        4.3171        .26222E-03   -1.5459    
   7  norm          11.166        10.184        .12025E-03   -1.5040    
   8  Prefactor     5.8456        29.080        .16780E-03   -1.5224    
   9  norm          .10000E-03    3.2187        .14737E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.673        14.938        .61290E-03   -1.5054    
  11  Prefactor     .10000E-03    4.1952        .33235E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.3794        9.7606        .15905E-03   -1.5203    
  13  norm          6.4972        10.107        .15741E-03   -1.5198    
  14  Prefactor     .10000E-03    6.7008        .41600E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     29.995        38.455        .73046E-04   -1.4612    
  16  Normalizat    1.0721        .22909        .29271E-03   -.90653    
  17  Prefactor     1.0575        .14442        .19622E-03   -.90836    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.66566e-10
Minuit parameter uncertainties:
  1  5.30009e-05
  2  2.16934e-06
  3  11.5781
  4  7.95919
  5  1.20555e-06
  6  4.31798
  7  10.1856
  8  26.0958
  9  7.86452e-06
  10  14.9428
  11  3.93601e-06
  12  9.76307
  13  10.1093
  14  4.0647e-06
  15  38.4865
  16  0.229303
  17  0.144468
Done.

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

Extracting fit parameters...

4FGL J0001.5+2113
   Spectrum: LogParabola
3           norm:  1.000e-04  5.300e-05  1.000e-04  1.000e+04 ( 1.000e-11)
4          alpha:  2.548e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
5           beta:  1.588e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
6             Eb:  3.558e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  1.058e+00  1.445e-01  0.000e+00  1.000e+01 ( 1.000e+00)
512        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
513        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
510   Normalization:  1.072e+00  2.293e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 0.382 21.218
Photon Flux Upper Limit: 7.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.95e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/984193/likelihoodResults_669600001_669859201_4FGL_J0001.5+2113_daily_bin1660.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) = 7091.85760277
delta logL = -0.00186659049632

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7091.85573622
delta logL = -4.25334292231e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5681       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0720       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0576       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5140E+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=   7091.856     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      264 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    637.65        .19358E-02** at limit **
   2  alpha         3.3004        3.9305        .16468       -.98511E-07
   3  Normalizat    1.0721        .96034E-01    .29270E-03   -.17668E-02
   4  Prefactor     1.0575        .63291E-01    .19622E-03   -.27181E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 3.30039
  Normalizat = 1.07209
  Prefactor  = 1.05751
 **********
 **   18 **HESSE 
 **********

 FCN=   7091.856     FROM HESSE     STATUS=OK            23 CALLS      287 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.6303        .38717E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.3004        2.7345        .65874E-02    .32589    
   3  Normalizat    1.0721        .21361        .58540E-04   -.90653    
   4  Prefactor     1.0575        .14323        .39244E-04   -.90836    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.54866e-09
Minuit parameter uncertainties:
  1  6.49439e-05
  2  217.81
  3  0.213781
  4  0.143283
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/984193': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7091.85573042
delta logL = 5.75627291255e-06

Extracting fit parameters...

4FGL J0001.5+2113
   Spectrum: LogParabola
3           norm:  1.000e-04  6.494e-05  1.000e-04  1.000e+04 ( 1.000e-11)
4          alpha:  3.300e+00  2.178e+02  0.000e+00  5.000e+00 ( 1.000e+00)
5           beta:  1.588e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
6             Eb:  3.558e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  1.058e+00  1.433e-01  0.000e+00  1.000e+01 ( 1.000e+00)
512        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
513        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
510   Normalization:  1.072e+00  2.138e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 0.382 21.218

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/984193/cmap_HighResolution_669600001_669859201_4FGL_J0001.5+2113_daily_bin1660.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.95e-05', job_status='DONE', photon_flux_upper_limit='7.86e-08', time_completed='2022-03-25 00:17:35.839923', job_id='984193', GAL2='1.06', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1648192655.84', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='5.76e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='1660' AND source_name='4FGL J0001.5+2113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Mar 25 00:17:35 PDT 2022

er <slac> at Fri Mar 25 00:05:19 2022
Job was executed on host(s) <bullet0039>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Mar 25 00:05:20 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Mar 25 00:05:20 2022
Terminated at Fri Mar 25 00:16:16 2022
Results reported at Fri Mar 25 00:16:16 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0001.5+2113_daily_bin1660 0.3815 21.2183 669600001 669859201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0001.5+2113 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   577.91 sec.
    Max Memory :                                 630 MB
    Average Memory :                             305.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2863 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   656 sec.
    Turnaround time :                            657 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 984193: <4FGL_J0001.5+2113_daily_bin1660> in cluster <slac> Done

Job <4FGL_J0001.5+2113_daily_bin1660> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Mar 25 00:05:19 2022
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Mar 25 00:05:20 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Mar 25 00:05:20 2022
Terminated at Fri Mar 25 00:17:36 2022
Results reported at Fri Mar 25 00:17:36 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0001.5+2113_daily_bin1660 0.3815 21.2183 669600001 669859201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0001.5+2113 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   575.33 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             329.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   736 sec.
    Turnaround time :                            737 sec.

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

