/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: Dan/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 96 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_grnumber of points = 7472
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0001.5+2113_daily_bin1655
RA = 0.3815, Dec = 21.2183
tmin = 668304001, tmax = 668563201
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_bin1655
RA = 0.3815, Dec = 21.2183
tmin = 668304001, tmax = 668563201
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='187139', job_status='RUN', time_executed='2022-03-10 00:08:06.531009', time_epoch_executed='1646899686.53' WHERE source_name='4FGL J0001.5+2113' and cadence='daily' and bin_id='1655'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/187139

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/187139/ft1_4FGL_J0001.5+2113_daily_bin1655.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/187139/ft2_4FGL_J0001.5+2113_daily_bin1655.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/187139/ft1_4FGL_J0001.5+2113_daily_bin1655.fits outfile=/scratch/kocevski/187139/ft1_filteredMKT_4FGL_J0001.5+2113_daily_bin1655.fits ra=0.3815 dec=21.2183 rad=12.0 tmin=668304001.0 tmax=668563201.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.84
user 3.43
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/187139/ft2_4FGL_J0001.5+2113_daily_bin1655.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/187139/ft1_filteredMKT_4FGL_J0001.5+2113_daily_bin1655.fits evtable="EVENTS" outfile="/scratch/kocevski/187139/ft1_filtered_4FGL_J0001.5+2113_daily_bin1655.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.65
user 0.34
sys 0.13
Number of photons that survived the gtmktime cut: 615

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/187139/ft1_filtered_4FGL_J0001.5+2113_daily_bin1655.fits" evtable="EVENTS" scfile=/scratch/kocevski/187139/ft2_4FGL_J0001.5+2113_daily_bin1655.fits sctable="SC_DATA" outfile=/scratch/kocevski/187139/ltcube_668304001_668563201_4FGL_J0001.5+2113_daily_bin1655.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/187139/ft2_4FGL_J0001.5+2113_daily_bin1655.fits
.....................!
real 12.54
user 12.03
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/187139/ft1_filtered_4FGL_J0001.5+2113_daily_bin1655.fits evtable="EVENTS" scfile=/scratch/kocevski/187139/ft2_4FGL_J0001.5+2113_daily_bin1655.fits sctable="SC_DATA" expcube=/scratch/kocevski/187139/ltcube_668304001_668563201_4FGL_J0001.5+2113_daily_bin1655.fits outfile=/scratch/kocevski/187139/expmap_668304001_668563201_4FGL_J0001.5+2113_daily_bin1655.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/187139/ltcube_668304001_668563201_4FGL_J0001.5+2113_daily_bin1655.fits
.....................!
real 193.06
user 185.93
sys 4.12

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/187139/ft1_filtered_4FGL_J0001.5+2113_daily_bin1655.fits scfile=/scratch/kocevski/187139/ft2_4FGL_J0001.5+2113_daily_bin1655.fits outfile=/scratch/kocevski/187139/cmap_668304001_668563201_4FGL_J0001.5+2113_daily_bin1655.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 1.10
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/187139/ft1_filtered_4FGL_J0001.5+2113_daily_bin1655.fits scfile=/scratch/kocevski/187139/ft2_4FGL_J0001.5+2113_daily_bin1655.fits outfile=/scratch/kocevski/187139/cmap_HighResolution_668304001_668563201_4FGL_J0001.5+2113_daily_bin1655.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 1.08
user 0.40
sys 0.13

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/187139/ft1_filtered_4FGL_J0001.5+2113_daily_bin1655.fits', '/scratch/kocevski/187139/ft2_4FGL_J0001.5+2113_daily_bin1655.fits', expMap='/scratch/kocevski/187139/expmap_668304001_668563201_4FGL_J0001.5+2113_daily_bin1655.fits', expCube='/scratch/kocevski/187139/ltcube_668304001_668563201_4FGL_J0001.5+2113_daily_bin1655.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/187139/Model_4FGL_J0001.5+2113_daily_bin1655.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/187139/ft1_filtered_4FGL_J0001.5+2113_daily_bin1655.fits
Spacecraft file(s): /scratch/kocevski/187139/ft2_4FGL_J0001.5+2113_daily_bin1655.fits
Exposure map: /scratch/kocevski/187139/expmap_668304001_668563201_4FGL_J0001.5+2113_daily_bin1655.fits
Exposure cube: /scratch/kocevski/187139/ltcube_668304001_668563201_4FGL_J0001.5+2113_daily_bin1655.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/187139/Model_4FGL_J0001.5+2113_daily_bin1655.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) = 6594.32636413

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.955       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10320E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.1357       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .46770E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    15.831       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.0355       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.126       1.0000         .10000E-03   10000.    
    13 'norm      '    6.9390       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0818       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0393       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=   6593.508     FROM MIGRAD    STATUS=CONVERGED    361 CALLS     1401 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.5355        .72334E-07** at limit **
   2  Prefactor     10.949        10.827       -.31219E-05    .20437E-03
   3  Prefactor     .10000E-03    4.8639        .16398E-06** at limit **
   4  Prefactor     .10000E-03    1.7918        .23628E-07** at limit **
   5  Prefactor     .10000E-03    68.920        .53352E-06** at limit **
   6  Prefactor     8.1331        4.3034       -.52897E-06    .83713E-04
   7  norm          .10000E-03    3.3356        .47074E-07** at limit **
   8  Prefactor     .10077E-03    20.035        .11868E-06** at limit **
   9  norm          15.845        9.1889       -.10297E-05    .15939E-03
  10  Prefactor     .10000E-03    3.5250        .11058E-06** at limit **
  11  Prefactor     4.0373        6.9829       -.60712E-05   -.47714E-04
  12  Prefactor     10.118        19.278        .59608E-05   -.94733E-05
  13  norm          6.9410        8.3874        .36933E-05   -.28951E-03
  14  Prefactor     .10000E-03    4.3102        .68560E-07** at limit **
  15  Prefactor     .10000E-03    9.2204        .13470E-06** at limit **
  16  Normalizat    1.0817        .20297        .14180E-05   -.23136E-04
  17  Prefactor     1.0394        .13246       -.36048E-06    .11565E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 10.9489
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.13311
  norm       = 0.0001
  Prefactor  = 0.000100767
  norm       = 15.8447
  Prefactor  = 0.0001
  Prefactor  = 4.03727
  Prefactor  = 10.1183
  norm       = 6.94096
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.08168
  Prefactor  = 1.03939
 **********
 **   18 **HESSE 
 **********

 FCN=   6593.508     FROM HESSE     STATUS=OK           225 CALLS     1626 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.5619        .98113E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.949        10.805        .12104E-03   -1.5046    
   3  Prefactor     .10000E-03    4.8881        .17484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.7942        .10615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    69.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.1331        4.3130        .11522E-03   -1.5138    
   7  norm          .10000E-03    3.3384        .14484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10077E-03    24.809        .10211       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          15.845        9.1827        .10066E-03   -1.4912    
  10  Prefactor     .10000E-03    3.5297        .14889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.0373        7.1310        .20073E-03   -1.5306    
  12  Prefactor     10.118        19.301        .12592E-03   -1.5072    
  13  norm          6.9410        8.3434        .15230E-03   -1.5181    
  14  Prefactor     .10000E-03    4.3628        .16460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.2254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.0817        .23943        .29170E-03   -.90342    
  17  Prefactor     1.0394        .15649        .19812E-03   -.91428    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.87564e-10
Minuit parameter unDone.

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

Extracting fit parameters...

4FGL J0001.5+2113
   Spectrum: LogParabola
3           norm:  1.000e-04  1.288e-05  1.000e-04  1.000e+04 ( 1.000e-11)
4          alpha:  2.548e+00  0.000e+00  0.000e+00  Done.

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

Extracting fit parameters...

4FGL J0001.5+2113
   Spectrum: LogParabola
3           norm:  1.000e-04  1.288e-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.039e+00  1.566e-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.082e+00  2.397e-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: 8.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.01e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/187139/likelihoodResults_668304001_668563201_4FGL_J0001.5+2113_daily_bin1655.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) = 6593.51130574
delta logL = -0.00304782537478

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6593.50823244
delta logL = 2.54777369264e-05

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     '    3.7552       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0817       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0394       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6593.508     FROM MIGRAD    STATUS=FAILED        97 CALLS      301 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10203E-03    15.438        .11171E-02** at limit **
   2  alpha         3.8677        3.7125        .50000       -.66846E-04
   3  Normalizat    1.0817        .23175        .29170E-03    .14389E-02
   4  Prefactor     1.0394        .15555        .19812E-03    .21510E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6593.508     FROM SIMPLEX   STATUS=UNCHANGED    109 CALLS      410 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10203E-03    15.438        .42191E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.8677        3.7125        .14635E-02    .57888    
   3  Normalizat    1.0817        .23175        .12422E-03   -.90342    
   4  Prefactor     1.0394        .15555        .10988E-03   -.91428    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6593.477     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      514 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .95582E-01    .42685        .44684E-03    .16026E-03
   2  alpha         5.0000        4.9862        .50000    ** at limit **
   3  Normalizat    1.0651        .24342        .58340E-04   -.19682E-04
   4  Prefactor     1.0464        .15921        .39624E-04   -.17731E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0955823
  alpha      = 5
  Normalizat = 1.06506
  Prefactor  = 1.04636
 **********
 **   18 **HESSE 
 **********

 FCN=   6593.477     FROM HESSE     STATUS=OK            25 CALLS      539 TOTAL
                     EDM=   .43E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .95582E-01    .41834        .17874E-04   -1.5646    
   2  alpha         5.0000        4.9860        .10000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0651        .24211        .11668E-04   -.90882    
   4  Prefactor     1.0464        .15885        .79248E-05   -.91200    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.26603e-12
Minuit parameter uncertainties:
  1  0.399723
  2  4.95113e-05
  3  0.242357
  4  0.158917
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/187139': 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) = 6593.47691684
delta logL = 0.031341074412

Extracting fit parameters...

4FGL J0001.5+2113
   Spectrum: LogParabola
3           norm:  9.558e-02  3.997e-01  1.000e-04  1.000e+04 ( 1.000e-11)
4          alpha:  5.000e+00  4.951e-05  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.046e+00  1.589e-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.065e+00  2.424e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/187139/cmap_HighResolution_668304001_668563201_4FGL_J0001.5+2113_daily_bin1655.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.01e-05', job_status='DONE', photon_flux_upper_limit='8.13e-08', time_completed='2022-03-10 00:17:31.482876', job_id='187139', GAL2='1.05', fit_tolerance='1e-08', EG2='1.07', EG='1.08', time_epoch_completed='1646900251.48', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='3.13e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='1655' AND source_name='4FGL J0001.5+2113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar 10 00:17:31 PST 2022

r <slac> at Thu Mar 10 00:05:47 2022
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar 10 00:05:48 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar 10 00:05:48 2022
Terminated at Thu Mar 10 00:17:23 2022
Results reported at Thu Mar 10 00:17:23 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0001.5+2113_daily_bin1655 0.3815 21.2183 668304001 668563201 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 :                                   559.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   694 sec.
    Turnaround time :                            696 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 187139: <4FGL_J0001.5+2113_daily_bin1655> in cluster <slac> Done

Job <4FGL_J0001.5+2113_daily_bin1655> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Mar 10 00:05:47 2022
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar 10 00:05:48 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar 10 00:05:48 2022
Terminated at Thu Mar 10 00:17:32 2022
Results reported at Thu Mar 10 00:17:32 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0001.5+2113_daily_bin1655 0.3815 21.2183 668304001 668563201 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 :                                   560.00 sec.
    Max Memory :                                 857 MB
    Average Memory :                             293.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   703 sec.
    Turnaround time :                            705 sec.

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

