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


Performing analysis on: 4FGL_J0001.5+2113_daily_bin1599
RA = 0.3815, Dec = 21.2183
tmin = 653788801, tmax = 654048001
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='946366', job_status='RUN', time_executed='2021-09-23 00:01:55.438776', time_epoch_executed='1632380515.44' WHERE source_name='4FGL J0001.5+2113' and cadence='daily' and bin_id='1599'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/946366

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/946366/ft1_4FGL_J0001.5+2113_daily_bin1599.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/946366/ft2_4FGL_J0001.5+2113_daily_bin1599.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/946366/ft1_4FGL_J0001.5+2113_daily_bin1599.fits outfile=/scratch/kocevski/946366/ft1_filteredMKT_4FGL_J0001.5+2113_daily_bin1599.fits ra=0.3815 dec=21.2183 rad=12.0 tmin=653788801.0 tmax=654048001.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.91
user 3.69
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/946366/ft2_4FGL_J0001.5+2113_daily_bin1599.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/946366/ft1_filteredMKT_4FGL_J0001.5+2113_daily_bin1599.fits evtable="EVENTS" outfile="/scratch/kocevski/946366/ft1_filtered_4FGL_J0001.5+2113_daily_bin1599.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.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/946366/ft1_filtered_4FGL_J0001.5+2113_daily_bin1599.fits" evtable="EVENTS" scfile=/scratch/kocevski/946366/ft2_4FGL_J0001.5+2113_daily_bin1599.fits sctable="SC_DATA" outfile=/scratch/kocevski/946366/ltcube_653788801_654048001_4FGL_J0001.5+2113_daily_bin1599.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/946366/ft2_4FGL_J0001.5+2113_daily_bin1599.fits
.....................!
real 15.82
user 15.39
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/946366/ft1_filtered_4FGL_J0001.5+2113_daily_bin1599.fits evtable="EVENTS" scfile=/scratch/kocevski/946366/ft2_4FGL_J0001.5+2113_daily_bin1599.fits sctable="SC_DATA" expcube=/scratch/kocevski/946366/ltcube_653788801_654048001_4FGL_J0001.5+2113_daily_bin1599.fits outfile=/scratch/kocevski/946366/expmap_653788801_654048001_4FGL_J0001.5+2113_daily_bin1599.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/946366/ltcube_653788801_654048001_4FGL_J0001.5+2113_daily_bin1599.fits
.....................!
real 192.26
user 186.57
sys 5.21

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/946366/ft1_filtered_4FGL_J0001.5+2113_daily_bin1599.fits scfile=/scratch/kocevski/946366/ft2_4FGL_J0001.5+2113_daily_bin1599.fits outfile=/scratch/kocevski/946366/cmap_653788801_654048001_4FGL_J0001.5+2113_daily_bin1599.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/946366/ft1_filtered_4FGL_J0001.5+2113_daily_bin1599.fits scfile=/scratch/kocevski/946366/ft2_4FGL_J0001.5+2113_daily_bin1599.fits outfile=/scratch/kocevski/946366/cmap_HighResolution_653788801_654048001_4FGL_J0001.5+2113_daily_bin1599.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.55
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.6506       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.1878       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.7094       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.6565       1.0000         .10000E-03   10000.    
     7 'norm      '    14.927       1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.227       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .44141E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.823       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.6216       1.0000         .10000E-03   10000.    
    13 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .49091E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.227       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .99534       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .97589       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=   6665.232     FROM MIGRAD    STATUS=CONVERGED    328 CALLS     1594 TOTAL
                     EDM=   .26E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.6504        3.4518        .19155E-07    .21424E-04
   2  Prefactor     .10000E-03    5.0276       -.27816E-07** at limit **
   3  Prefactor     8.1841        12.177       -.24779E-06   -.25464E-05
   4  Prefactor     .10000E-03    2.6005       -.87013E-07** at limit **
   5  Prefactor     1.6863        103.58        .82048E-05   -.10343E-04
   6  Prefactor     5.6569        3.7905       -.26725E-07   -.46775E-04
   7  norm          14.926        12.177       -.47999E-07    .33033E-05
   8  Prefactor     15.226        20.229        .93873E-08    .22324E-06
   9  norm          .10000E-03    2.6176        .13100E-07** at limit **
  10  Prefactor     .10000E-03    20.302       -.64749E-05** at limit **
  11  Prefactor     13.817        10.063        .94266E-06    .13970E-04
  12  Prefactor     1.6011        75.158       -.34975E-05   -.15782E-04
  13  norm          .10000E-03    15.850       -.40314E-06** at limit **
  14  Prefactor     .10001E-03    5.8410        .79637E-06** at limit **
  15  Prefactor     25.221        40.573        .84485E-06    .21078E-05
  16  Normalizat    .99536        .20513        .28326E-07    .30299E-04
  17  Prefactor     .97596        .12790        .28491E-06   -.24753E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.65044
  Prefactor  = 0.0001
  Prefactor  = 8.18405
  Prefactor  = 0.0001
  Prefactor  = 1.68631
  Prefactor  = 5.65688
  norm       = 14.9262
  Prefactor  = 15.2258
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.8168
  Prefactor  = 1.60112
  norm       = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 25.221
  Normalizat = 0.995359
  Prefactor  = 0.975957
 **********
 **   18 **HESSE 
 **********

 FCN=   6665.232     FROM HESSE     STATUS=OK           233 CALLS     1827 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.6504        3.4444        .11172E-03   -1.5233    
   2  Prefactor     .10000E-03    5.0424        .17863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.1841        12.161        .14011E-03   -1.5136    
   4  Prefactor     .10000E-03    2.6074        .12859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.6863        104.70        .32154E-03   -1.5448    
   6  Prefactor     5.6569        3.7878        .12257E-03   -1.5232    
   7  norm          14.926        12.179        .10367E-03   -1.4935    
   8  Prefactor     15.226        20.218        .10264E-03   -1.4927    
   9  norm          .10000E-03    2.6189        .12899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    20.266        .36504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.817        10.059        .10773E-03   -1.4964    
  12  Prefactor     1.6011        77.834        .33232E-03   -1.5455    
  13  norm          .10000E-03    16.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    48.051        .36672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     25.221        40.594        .79755E-04   -1.4703    
  16  Normalizat    .99536        .24276        .30468E-03   -.93186    
  17  Prefactor     .97596        .15212        .19690E-03   -.93535    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9495e-10
Minuit parameter uncertainties:
  1  3.44456
  2  2.18408e-06
  3  12.1651
  4  3.32833e-06
  5  26.6229
  6  3.78796
  7  12.1805
  8  20.2266
  9  7.54626e-07
  10  4.96519e-05
  11  10.0599
  12  22.357
  13  1.15035e-05
  14  0.00127648
  15  40.6381
  16  0.24303
  17  0.152187
Done.

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

Extracting fit parameters...

4FGL J0001.5+2113
   Spectrum: LogParabola
3           norm:  5.650e+00  3.445e+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

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  9.760e-01  1.522e-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:  9.954e-01  2.430e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.94
Ra Dec: 0.382 21.218
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 8.21e-08 +/- 5.00e-08
Energy Flux (Fixed Index): 2.03e-05 +/- 1.24e-05

TS (Fixed Index): 3.94
Ra Dec: 0.382 21.218
Photon Flux Upper Limit: 1.81e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.49e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/946366/likelihoodResults_653788801_654048001_4FGL_J0001.5+2113_daily_bin1599.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) = 6664.86528343
delta logL = 0.366486492855

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6664.8651654
delta logL = 0.366604528506

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.6499       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0425       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0234       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96188       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.

 FCN=   6664.865     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      205 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.6425        3.5151        .42250E-02    .10490E-03
   2  alpha         2.0420        .48229        .38025       -.25723E-04
   3  Normalizat    1.0235        .19830        .68028E-01    .53673E-05
   4  Prefactor     .96187        .12728        .45789E-01   -.62103E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.64246
  alpha      = 2.04205
  Normalizat = 1.02353
  Prefactor  = 0.961867
 **********
 **   18 **HESSE 
 **********

 FCN=   6664.865     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.6425        3.5798        .11097E-03   -1.5233    
   2  alpha         2.0420        .55069        .14989E-01   -.18422    
   3  Normalizat    1.0235        .23745        .30095E-03   -.92246    
   4  Prefactor     .96187        .15171        .19807E-03   -.94012    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.89049e-10
Minuit parameter uncertainties:
  1  3.57995
  2  0.555407
  3  0.237698
  4  0.151782
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/946366': 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) = 6664.86516329
delta logL = 0.366606639855

Extracting fit parameters...

4FGL J0001.5+2113
   Spectrum: LogParabola
3           norm:  5.642e+00  3.580e+00  1.000e-04  1.000e+04 ( 1.000e-11)
4          alpha:  2.042e+00  5.554e-01  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:  9.619e-01  1.518e-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.024e+00  2.377e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.65
Ra Dec: 0.382 21.218
Photon Index (Free Index): 2.04 +/- 0.56
Photon Flux (Free Index): 6.34e-08 +/- 4.66e-08
Energy Flux (Free Index): 2.35e-05 +/- 1.44e-05

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/946366/cmap_HighResolution_653788801_654048001_4FGL_J0001.5+2113_daily_bin1599.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.49e-05', comment='SUCCESS', photon_flux='8.21e-08', energy_flux2='2.35e-05', photon_flux_error='5.00e-08', dlogl='3.67e-01', energy_flux='2.03e-05', photon_flux2='6.34e-08', job_status='DONE', time_completed='2021-09-23 00:11:25.595126', photon_index_error2='0.56', photon_index2='2.04', ts='3.94', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.81e-07', energy_flux_error2='1.44e-05', EG='1.00', time_epoch_completed='1632381085.6', return_code='0', job_id='946366', GAL2='0.96', EG2='1.02', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='4.66e-08', ts2='4.65', photon_index='2.55' WHERE bin_id='1599' AND source_name='4FGL J0001.5+2113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 00:11:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 946366: <4FGL_J0001.5+2113_daily_bin1599> in cluster <slac> Done

Job <4FGL_J0001.5+2113_daily_bin1599> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Sep 23 00:01:39 2021
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 00:01:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 23 00:01:40 2021
Terminated at Thu Sep 23 00:11:26 2021
Results reported at Thu Sep 23 00:11:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0001.5+2113_daily_bin1599 0.3815 21.2183 653788801 654048001 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.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             400.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   585 sec.
    Turnaround time :                            587 sec.

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

