/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 82 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/matp
WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 6797
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0001.5+2113_daily_bin1662
RA = 0.3815, Dec = 21.2183
tmin = 670118401, tmax = 670377601
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='113145', job_status='RUN', time_executed='2022-03-31 00:08:05.856507', time_epoch_executed='1648710485.86' WHERE source_name='4FGL J0001.5+2113' and cadence='daily' and bin_id='1662'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/113145

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/113145/ft1_4FGL_J0001.5+2113_daily_bin1662.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/113145/ft2_4FGL_J0001.5+2113_daily_bin1662.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/113145/ft1_4FGL_J0001.5+2113_daily_bin1662.fits outfile=/scratch/kocevski/113145/ft1_filteredMKT_4FGL_J0001.5+2113_daily_bin1662.fits ra=0.3815 dec=21.2183 rad=12.0 tmin=670118401.0 tmax=670377601.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.68
user 3.09
sys 0.20

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

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

Number of photons that the gtmktime cut: 561

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/113145/ft1_filtered_4FGL_J0001.5+2113_daily_bin1662.fits" evtable="EVENTS" scfile=/scratch/kocevski/113145/ft2_4FGL_J0001.5+2113_daily_bin1662.fits sctable="SC_DATA" outfile=/scratch/kocevski/113145/ltcube_670118401_670377601_4FGL_J0001.5+2113_daily_bin1662.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/113145/ft2_4FGL_J0001.5+2113_daily_bin1662.fits
.....................!
real 16.68
user 15.47
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/113145/ft1_filtered_4FGL_J0001.5+2113_daily_bin1662.fits evtable="EVENTS" scfile=/scratch/kocevski/113145/ft2_4FGL_J0001.5+2113_daily_bin1662.fits sctable="SC_DATA" expcube=/scratch/kocevski/113145/ltcube_670118401_670377601_4FGL_J0001.5+2113_daily_bin1662.fits outfile=/scratch/kocevski/113145/expmap_670118401_670377601_4FGL_J0001.5+2113_daily_bin1662.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/113145/ltcube_670118401_670377601_4FGL_J0001.5+2113_daily_bin1662.fits
.....................!
real 191.04
user 185.61
sys 5.04

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/113145/ft1_filtered_4FGL_J0001.5+2113_daily_bin1662.fits scfile=/scratch/kocevski/113145/ft2_4FGL_J0001.5+2113_daily_bin1662.fits outfile=/scratch/kocevski/113145/cmap_670118401_670377601_4FGL_J0001.5+2113_daily_bin1662.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/113145/ft1_filtered_4FGL_J0001.5+2113_daily_bin1662.fits scfile=/scratch/kocevski/113145/ft2_4FGL_J0001.5+2113_daily_bin1662.fits outfile=/scratch/kocevski/113145/cmap_HighResolution_670118401_670377601_4FGL_J0001.5+2113_daily_bin1662.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.60
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .15894E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.640       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.9834       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.924       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.0502       1.0000         .10000E-03   10000.    
    13 'norm      '    .10933E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.9250       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .86226       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0962       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=   6289.963     FROM MIGRAD    STATUS=CONVERGED    322 CALLS     1357 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.8102       -.24581E-06** at limit **
   2  Prefactor     13.643        13.255        .93774E-06    .24950E-04
   3  Prefactor     .10000E-03    3.7540        .32021E-06** at limit **
   4  Prefactor     4.9828        7.7756       -.39196E-06   -.19707E-03
   5  Prefactor     .10000E-03    17.475        .67669E-05** at limit **
   6  Prefactor     .10000E-03    1.8538        .49525E-07** at limit **
   7  norm          .10000E-03    6.8488       -.14276E-05** at limit **
   8  Prefactor     .10000E-03    17.654        .70821E-05** at limit **
   9  norm          .10000E-03    8.4390        .38134E-05** at limit **
  10  Prefactor     24.910        15.191       -.49246E-05   -.12940E-03
  11  Prefactor     .10000E-03    3.5672       -.17787E-06** at limit **
  12  Prefactor     4.0524        13.556        .54070E-06   -.76458E-04
  13  norm          .10000E-03    22.163       -.78202E-05** at limit **
  14  Prefactor     2.9251        6.1397       -.70843E-06   -.39050E-03
  15  Prefactor     .10000E-03    12.776       -.95445E-05** at limit **
  16  Normalizat    .86233        .20779        .68484E-06    .32549E-04
  17  Prefactor     1.0962        .13320        .20187E-06    .98801E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 13.643
  Prefactor  = 0.0001
  Prefactor  = 4.98281
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 24.9102
  Prefactor  = 0.0001
  Prefactor  = 4.05238
  norm       = 0.0001
  Prefactor  = 2.92513
  Prefactor  = 0.0001
  Normalizat = 0.86233
  Prefactor  = 1.09615
 **********
 **   18 **HESSE 
 **********

 FCN=   6289.963     FROM HESSE     STATUS=OK           219 CALLS     1576 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.9870        .19898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.643        12.898        .10845E-03   -1.4969    
   3  Prefactor     .10000E-03    3.7595        .15000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.9828        7.7869        .18015E-03   -1.5261    
   5  Prefactor     .10000E-03    17.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.8816        .10539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    6.8741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    17.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    8.6265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     24.910        15.296        .80239E-04   -1.4709    
  11  Prefactor     .10000E-03    3.6303        .14622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.0524        13.533        .20036E-03   -1.5305    
  13  norm          .10000E-03    22.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.9251        6.1488        .23753E-03   -1.5366    
  15  Prefactor     .10000E-03    12.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .86233        .24335        .31371E-03   -.97797    
  17  Prefactor     1.0962        .15698        .18502E-03   -.89590    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.07076e-10
Minuit parameter uncertainties:
  1  3.79227e-05
  2  12.9004
  3  5.85942e-06
  4  7.78845
  5  1.52532e-06
  6  1.34484e-06
  7  1.49196e-06
  8  1.43288e-05
  9  0.000113112
  10  15.2988
  11  4.32855e-06
  12  13.5437
  13  5.46304e-05
  14  6.15012
  15  1.6755e-07
  16  0.243661
  17  0.157046
Done.

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

Extracting fit parameters...

4FGL J0001.5+2113
   Spectrum: LogParabola
3           norm:  1.000e-04  3.792e-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.096e+00  1.570e-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:  8.623e-01  2.437e-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: 9.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.27e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/113145/likelihoodResults_670118401_670377601_4FGL_J0001.5+2113_daily_bin1662.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) = 6289.96469685
delta logL = -0.00159570689539

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6289.80155682
delta logL = 0.161544319879

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .26077       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .81855       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1147       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6289.802     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      342 TOTAL
                     EDM=   .72E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .26089        .54478        .70018E-04   -.23267E-03
   2  alpha         5.0000        4.9231        .50000    ** at limit **
   3  Normalizat    .81868        .24971        .32124E-03   -.26896E-05
   4  Prefactor     1.1146        .16065        .18365E-03   -.15166E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.260888
  alpha      = 5
  Normalizat = 0.818677
  Prefactor  = 1.1146
 **********
 **   18 **HESSE 
 **********

 FCN=   6289.802     FROM HESSE     STATUS=OK            29 CALLS      371 TOTAL
                     EDM=   .73E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .26089        .54174        .28007E-05   -1.5606    
   2  alpha         5.0000        4.9165        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .81868        .24998        .12850E-04   -.99380    
   4  Prefactor     1.1146        .16081        .73462E-05   -.89001    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.2774e-12
Minuit parameter uncertainties:
  1  0.541748
  2  5.06518e-06
  3  0.250331
  4  0.160885
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/113145': 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) = 6289.80155651
delta logL = 0.161544637821

Extracting fit parameters...

4FGL J0001.5+2113
   Spectrum: LogParabola
3           norm:  2.609e-01  5.417e-01  1.000e-04  1.000e+04 ( 1.000e-11)
4          alpha:  5.000e+00  5.065e-06  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.115e+00  1.609e-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:  8.187e-01  2.503e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/113145/cmap_HighResolution_670118401_670377601_4FGL_J0001.5+2113_daily_bin1662.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.27e-05', job_status='DONE', photon_flux_upper_limit='9.15e-08', time_completed='2022-03-31 00:17:33.062388', job_id='113145', GAL2='1.11', fit_tolerance='1e-08', EG2='0.82', EG='0.86', time_epoch_completed='1648711053.06', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='1.62e-01', ts2='0.36', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='1662' AND source_name='4FGL J0001.5+2113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar 31 00:17:33 PDT 2022

'SUCCESS', return_code='0', GAL='1.10', dlogl='1.62e-01', ts2='0.36', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='1662' AND source_name='4FGL J0001.5+2113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar 31 00:17:18 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 113148: <4FGL_J0001.5+2113_daily_bin1662> in cluster <slac> Done

Job <4FGL_J0001.5+2113_daily_bin1662> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Mar 31 00:05:33 2022
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar 31 00:05:35 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar 31 00:05:35 2022
Terminated at Thu Mar 31 00:17:19 2022
Results reported at Thu Mar 31 00:17:19 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0001.5+2113_daily_bin1662 0.3815 21.2183 670118401 670377601 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 :                                   532.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             316.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   703 sec.
    Turnaround time :                            706 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 113145: <4FGL_J0001.5+2113_daily_bin1662> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0001.5+2113_daily_bin1662 0.3815 21.2183 670118401 670377601 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 :                                   527.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   718 sec.
    Turnaround time :                            721 sec.

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

