aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 189 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 = 7483
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0001.5+2113_daily_bin1683
RA = 0.3815, Dec = 21.2183
tmin = 675561601, tmax = 675820801
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='27752', job_status='RUN', time_executed='2022-06-02 00:09:09.515680', time_epoch_executed='1654153749.52' WHERE source_name='4FGL J0001.5+2113' and cadence='daily' and bin_id='1683'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/27752

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/27752/ft1_4FGL_J0001.5+2113_daily_bin1683.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/27752/ft2_4FGL_J0001.5+2113_daily_bin1683.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/27752/ft1_4FGL_J0001.5+2113_daily_bin1683.fits outfile=/scratch/kocevski/27752/ft1_filteredMKT_4FGL_J0001.5+2113_daily_bin1683.fits ra=0.3815 dec=21.2183 rad=12.0 tmin=675561601.0 tmax=675820801.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.51
user 3.23
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/27752/ft2_4FGL_J0001.5+2113_daily_bin1683.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/27752/ft1_filteredMKT_4FGL_J0001.5+2113_daily_bin1683.fits evtable="EVENTS" outfile="/scratch/kocevski/27752/ft1_filtered_4FGL_J0001.5+2113_daily_bin1683.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.53
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 737

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/27752/ft1_filtered_4FGL_J0001.5+2113_daily_bin1683.fits" evtable="EVENTS" scfile=/scratch/kocevski/27752/ft2_4FGL_J0001.5+2113_daily_bin1683.fits sctable="SC_DATA" outfile=/scratch/kocevski/27752/ltcube_675561601_675820801_4FGL_J0001.5+2113_daily_bin1683.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/27752/ft2_4FGL_J0001.5+2113_daily_bin1683.fits
.....................!
real 15.30
user 14.87
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/27752/ft1_filtered_4FGL_J0001.5+2113_daily_bin1683.fits evtable="EVENTS" scfile=/scratch/kocevski/27752/ft2_4FGL_J0001.5+2113_daily_bin1683.fits sctable="SC_DATA" expcube=/scratch/kocevski/27752/ltcube_675561601_675820801_4FGL_J0001.5+2113_daily_bin1683.fits outfile=/scratch/kocevski/27752/expmap_675561601_675820801_4FGL_J0001.5+2113_daily_bin1683.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/27752/ltcube_675561601_675820801_4FGL_J0001.5+2113_daily_bin1683.fits
.....................!
real 191.62
user 186.01
sys 5.13

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/27752/ft1_filtered_4FGL_J0001.5+2113_daily_bin1683.fits scfile=/scratch/kocevski/27752/ft2_4FGL_J0001.5+2113_daily_bin1683.fits outfile=/scratch/kocevski/27752/cmap_675561601_675820801_4FGL_J0001.5+2113_daily_bin1683.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.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/27752/ft1_filtered_4FGL_J0001.5+2113_daily_bin1683.fits scfile=/scratch/kocevski/27752/ft2_4FGL_J0001.5+2113_daily_bin1683.fits outfile=/scratch/kocevski/27752/cmap_HighResolution_675561601_675820801_4FGL_J0001.5+2113_daily_bin1683.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.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.077       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.539       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.3004       1.0000         .10000E-03   10000.    
     7 'norm      '    23.093       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .17540E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10072E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.099       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.588       1.0000         .10000E-03   10000.    
    12 'Prefactor '    45.939       1.0000         .10000E-03   10000.    
    13 'norm      '    6.0534       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.1196       1.0000         .10000E-03   10000.    
    15 'Prefactor '    48.652       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .65480       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.1289       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=   8211.782     FROM MIGRAD    STATUS=CONVERGED    330 CALLS     1612 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.0523       -.58403E-06** at limit **
   2  Prefactor     10.080        9.6419        .66009E-05   -.27085E-03
   3  Prefactor     .10000E-03    2.5043       -.10795E-06** at limit **
   4  Prefactor     19.542        9.8735        .21165E-05   -.27522E-03
   5  Prefactor     .10000E-03    28.682        .16297E-05** at limit **
   6  Prefactor     3.2967        3.1848       -.80774E-07   -.45808E-03
   7  norm          23.090        12.041       -.24310E-06    .45288E-04
   8  Prefactor     .10000E-03    72.498       -.20971E-05** at limit **
   9  norm          .10000E-03    7.8495        .55478E-06** at limit **
  10  Prefactor     15.104        13.233       -.26767E-05    .99873E-04
  11  Prefactor     12.590        7.0935        .20944E-05   -.45649E-03
  12  Prefactor     45.951        22.328        .29955E-05   -.20022E-03
  13  norm          6.0561        11.021        .10235E-05   -.95115E-04
  14  Prefactor     1.1261        3.9060       -.22643E-05   -.12960E-02
  15  Prefactor     48.661        35.469        .69649E-05   -.15380E-03
  16  Normalizat    .65461        .18726       -.34577E-05    .79262E-04
  17  Prefactor     1.1289        .12029       -.23042E-06    .15254E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  Prefactor  = 10.0795
  Prefactor  = 0.0001
  Prefactor  = 19.5425
  Prefactor  = 0.0001
  Prefactor  = 3.29666
  norm       = 23.0898
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 15.104
  Prefactor  = 12.5899
  Prefactor  = 45.9514
  norm       = 6.05605
  Prefactor  = 1.12605
  Prefactor  = 48.6608
  Normalizat = 0.65461
  Prefactor  = 1.12888
 **********
 **   18 **HESSE 
 **********

 FCN=   8211.782     FROM HESSE     STATUS=OK           225 CALLS     1837 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.7965        .17831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.080        9.5013        .12623E-03   -1.5073    
   3  Prefactor     .10000E-03    2.5095        .14003E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     19.542        9.8283        .90609E-04   -1.4824    
   5  Prefactor     .10000E-03    28.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.2967        3.1755        .15153E-03   -1.5345    
   7  norm          23.090        12.046        .83354E-04   -1.4747    
   8  Prefactor     .10000E-03    75.293        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    8.0467        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.104        13.224        .10307E-03   -1.4930    
  11  Prefactor     12.590        7.0543        .11290E-03   -1.4998    
  12  Prefactor     45.951        22.282        .59155E-04   -1.4351    
  13  norm          6.0561        11.008        .16319E-03   -1.5216    
  14  Prefactor     1.1261        4.0237        .33412E-03   -1.5496    
  15  Prefactor     48.661        35.199        .57490E-04   -1.4312    
  16  Normalizat    .65461        .21040        .35463E-03   -1.0571    
  17  Prefactor     1.1289        .13708        .18358E-03   -.88549    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.37231e-09
Minuit parameter uncertainties:
  1  6.67474e-05
  2  9.5027
  3  1.93609e-05
  4  9.82913
  5  2.87766e-05
  6  3.17569
  7  12.0471
  8  0.000824672
  9  0.000109709
  10  13.227
  11  7.05476
  12  22.2859
  13  11.0115
  14  4.02464
  15  35.2142
  16  0.210655
  17  0.137119
Done.

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

Extracting fit parameters...

4FGL J0001.5+2113
   Spectrum: LogParabola
3           norm:  1.000e-04  6.675e-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.129e+00  1.371e-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:  6.546e-01  2.107e-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: 6.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.60e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/27752/likelihoodResults_675561601_675820801_4FGL_J0001.5+2113_daily_bin1683.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) = 8211.78507412
delta logL = -0.00265262574794

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8211.78242186
delta logL = -3.69078406948e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5452       1.0000          .0000       5.0000    
     3 'Normalizat'    .65461       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1289       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=   8211.782     FROM MIGRAD    STATUS=FAILED        89 CALLS      249 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10007E-03    308.66        .17838E-02** at limit **
   2  alpha         2.5106        2.5578        .16464        .31754E-05
   3  Normalizat    .65461        .80548E-01    .35464E-03   -.12060E-03
   4  Prefactor     1.1289        .53846E-01    .18358E-03   -.18365E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8211.782     FROM SIMPLEX   STATUS=UNCHANGED    170 CALLS      419 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10007E-03    308.66        .24128E-03** at limit **
   2  alpha         2.5106        2.5578        .46964E-05    .31754E-05
   3  Normalizat    .65461        .80548E-01    .14744E-06   -.12060E-03
   4  Prefactor     1.1289        .53846E-01    .70468E-07   -.18365E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8211.782     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      453 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.8077        .35675E-03** at limit **
   2  alpha         2.4879        2.6580        .65856E-02    .11739E-07
   3  Normalizat    .65461        .20278        .14185E-04    .28852E-05
   4  Prefactor     1.1289        .13579        .36717E-04    .28362E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.48792
  Normalizat = 0.654609
  Prefactor  = 1.12888
 **********
 **   18 **HESSE 
 **********

 FCN=   8211.782     FROM HESSE     STATUS=OK            23 CALLS      476 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.8075        .71351E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4879        2.6496        .13171E-02   -.48332E-02
   3  Normalizat    .65461        .20257        .28371E-05   -1.0571    
   4  Prefactor     1.1289        .13569        .73433E-05   -.88549    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55478e-12
Minuit parameter uncertainties:
  1  4.51249e-07
  2  133.192
  3  0.202803
  4  0.135729
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/27752': 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) = 8211.78242139
delta logL = 1.01290424936e-07

Extracting fit parameters...

4FGL J0001.5+2113
   Spectrum: LogParabola
3           norm:  1.000e-04  4.512e-07  1.000e-04  1.000e+04 ( 1.000e-11)
4          alpha:  2.488e+00  1.332e+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.129e+00  1.357e-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:  6.546e-01  2.028e-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/27752/cmap_HighResolution_675561601_675820801_4FGL_J0001.5+2113_daily_bin1683.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.60e-05', job_status='DONE', photon_flux_upper_limit='6.46e-08', time_completed='2022-06-02 00:19:46.960884', job_id='27752', GAL2='1.13', fit_tolerance='1e-08', EG2='0.65', EG='0.65', time_epoch_completed='1654154386.96', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='1.01e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='1683' AND source_name='4FGL J0001.5+2113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jun  2 00:19:46 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 27711: <4FGL_J0001.5+2113_daily_bin1683> in cluster <slac> Done

Job <4FGL_J0001.5+2113_daily_bin1683> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Jun  2 00:05:13 2022
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun  2 00:05:14 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jun  2 00:05:14 2022
Terminated at Thu Jun  2 00:18:34 2022
Results reported at Thu Jun  2 00:18:34 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0001.5+2113_daily_bin1683 0.3815 21.2183 675561601 675820801 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 :                                   627.55 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            801 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0153>
Subject: Job 27752: <4FGL_J0001.5+2113_daily_bin1683> in cluster <slac> Done

Job <4FGL_J0001.5+2113_daily_bin1683> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Jun  2 00:05:15 2022
Job was executed on host(s) <bullet0153>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun  2 00:05:44 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jun  2 00:05:44 2022
Terminated at Thu Jun  2 00:19:47 2022
Results reported at Thu Jun  2 00:19:47 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0001.5+2113_daily_bin1683 0.3815 21.2183 675561601 675820801 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 :                                   632.60 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             273.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   844 sec.
    Turnaround time :                            872 sec.

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

