/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 119 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 = 7475
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0115.1+2622_daily_bin51
RA = 18.7784, Dec = 26.3733
tmin = 252547201, tmax = 252806401
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='476045', job_status='RUN', time_executed='2021-08-13 19:29:52.747869', time_epoch_executed='1628908192.75' WHERE source_name='4FGL J0115.1+2622' and cadence='daily' and bin_id='51'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/476045

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/476045/ft1_4FGL_J0115.1+2622_daily_bin51.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/476045/ft2_4FGL_J0115.1+2622_daily_bin51.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/476045/ft1_4FGL_J0115.1+2622_daily_bin51.fits outfile=/scratch/kocevski/476045/ft1_filteredMKT_4FGL_J0115.1+2622_daily_bin51.fits ra=18.7784 dec=26.3733 rad=12.0 tmin=252547201.0 tmax=252806401.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 2.18
user 1.20
sys 0.96

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/476045/ft2_4FGL_J0115.1+2622_daily_bin51.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/476045/ft2_4FGL_J0115.1+2622_daily_bin51.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/476045/ft1_filteredMKT_4FGL_J0115.1+2622_daily_bin51.fits evtable="EVENTS" outfile="/scratch/kocevski/476045/ft1_filtered_4FGL_J0115.1+2622_daily_bin51.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.28
user 0.31
sys 0.95

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/476045/ft1_filtered_4FGL_J0115.1+2622_daily_bin51.fits" evtable="EVENTS" scfile=/scratch/kocevski/476045/ft2_4FGL_J0115.1+2622_daily_bin51.fits sctable="SC_DATA" outfile=/scratch/kocevski/476045/ltcube_252547201_252806401_4FGL_J0115.1+2622_daily_bin51.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/476045/ft2_4FGL_J0115.1+2622_daily_bin51.fits
.....................!
real 14.09
user 12.86
sys 1.19

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/476045/ft1_filtered_4FGL_J0115.1+2622_daily_bin51.fits evtable="EVENTS" scfile=/scratch/kocevski/476045/ft2_4FGL_J0115.1+2622_daily_bin51.fits sctable="SC_DATA" expcube=/scratch/kocevski/476045/ltcube_252547201_252806401_4FGL_J0115.1+2622_daily_bin51.fits outfile=/scratch/kocevski/476045/expmap_252547201_252806401_4FGL_J0115.1+2622_daily_bin51.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/476045/ltcube_252547201_252806401_4FGL_J0115.1+2622_daily_bin51.fits
.....................!
real 192.97
user 187.11
sys 5.50

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

Setting source of interest to:
4FGL J0115.1+2622 @ 18.7784 26.3733

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/476045/ft1_filtered_4FGL_J0115.1+2622_daily_bin51.fits scfile=/scratch/kocevski/476045/ft2_4FGL_J0115.1+2622_daily_bin51.fits outfile=/scratch/kocevski/476045/cmap_252547201_252806401_4FGL_J0115.1+2622_daily_bin51.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=18.7784 yref=26.3733 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.22
user 0.39
sys 0.82

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/476045/ft1_filtered_4FGL_J0115.1+2622_daily_bin51.fits scfile=/scratch/kocevski/476045/ft2_4FGL_J0115.1+2622_daily_bin51.fits outfile=/scratch/kocevski/476045/cmap_HighResolution_252547201_252806401_4FGL_J0115.1+2622_daily_bin51.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=18.7784 yref=26.3733 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.24
user 0.39
sys 0.83

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/476045/ft1_filtered_4FGL_J0115.1+2622_daily_bin51.fits evtable="EVENTS" scfile=/scratch/kocevski/476045/ft2_4FGL_J0115.1+2622_daily_bin51.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/476045/Model_4FGL_J0115.1+2622_daily_bin51.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/476045/ft1_filtered_4FGL_J0115.1+2622_daily_bin51.fits.....................!
real 89.91
user 87.59
sys 2.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/476045/ft1_filtered_4FGL_J0115.1+2622_daily_bin51.fits', '/scratch/kocevski/476045/ft2_4FGL_J0115.1+2622_daily_bin51.fits', expMap='/scratch/kocevski/476045/expmap_252547201_252806401_4FGL_J0115.1+2622_daily_bin51.fits', expCube='/scratch/kocevski/476045/ltcube_252547201_252806401_4FGL_J0115.1+2622_daily_bin51.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/476045/Model_4FGL_J0115.1+2622_daily_bin51.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0115.1+2622'

4FGL J0115.1+2622
   Spectrum: PowerLaw
240    Prefactor:  2.667e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
241        Index:  2.211e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
242        Scale:  2.453e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/476045/ft1_filtered_4FGL_J0115.1+2622_daily_bin51.fits
Spacecraft file(s): /scratch/kocevski/476045/ft2_4FGL_J0115.1+2622_daily_bin51.fits
Exposure map: /scratch/kocevski/476045/expmap_252547201_252806401_4FGL_J0115.1+2622_daily_bin51.fits
Exposure cube: /scratch/kocevski/476045/ltcube_252547201_252806401_4FGL_J0115.1+2622_daily_bin51.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/476045/Model_4FGL_J0115.1+2622_daily_bin51.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) = 9236.09971745

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.6909       1.0000         .10000E-03   10000.    
     3 'norm      '    3.5176       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.752       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.5432       1.0000         .10000E-03   10000.    
     9 'norm      '    6.5557       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.9459       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.675       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .56572       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .77837       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.2139       1.0000         .10000E-03   10000.    
    19 'norm      '    2.4520       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .90901       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0286       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9236.044     FROM MIGRAD    STATUS=CONVERGED    484 CALLS     2060 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.8008       -.10020E-06** at limit **
   2  Prefactor     6.6899        14.460        .24018E-05   -.11101E-03
   3  norm          3.5174        2.4520        .59684E-07   -.33495E-04
   4  norm          .10000E-03    1.5498       -.11785E-08** at limit **
   5  Prefactor     .10000E-03    4.7394        .14297E-07** at limit **
   6  Prefactor     16.752        10.895        .59620E-07   -.84284E-05
   7  Prefactor     .10001E-03    40.834        .37742E-05** at limit **
   8  norm          1.5435        .65309        .54811E-07   -.49536E-03
   9  norm          6.5565        1.6626        .18795E-07   -.62972E-04
  10  Prefactor     .10000E-03    11.668        .12980E-06** at limit **
  11  Prefactor     .10000E-03    1.6129       -.51267E-09** at limit **
  12  Prefactor     .10000E-03    7.8566        .65523E-07** at limit **
  13  Prefactor     3.9433        11.091        .47711E-06   -.47017E-04
  14  Prefactor     13.670        19.776       -.31444E-06   -.51644E-04
  15  Prefactor     .10000E-03    28.823       -.80556E-06** at limit **
  16  norm          .56564        .42744        .79989E-08   -.12322E-03
  17  Prefactor     .77497        5.9126        .42700E-06   -.14940E-03
  18  Prefactor     7.2095        14.970        .23854E-05   -.11470E-03
  19  norm          2.4515        3.6473        .34511E-06   -.11601E-03
  20  Prefactor     .10001E-03    50.947       -.32756E-05** at limit **
  21  Normalizat    .90898        .16326       -.33713E-06   -.77315E-04
  22  Prefactor     1.0286        .10638       -.19892E-06   -.95594E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.68988
  norm       = 3.51737
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.7516
  Prefactor  = 0.000100006
  norm       = 1.54346
  norm       = 6.55654
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.94329
  Prefactor  = 13.67
  Prefactor  = 0.0001
  norm       = 0.565635
  Prefactor  = 0.774968
  Prefactor  = 7.20948
  norm       = 2.45147
  Prefactor  = 0.000100006
  Normalizat = 0.908982
  Prefactor  = 1.02863
 **********
 **   18 **HESSE 
 **********

 FCN=   9236.044     FROM HESSE     STATUS=OK           348 CALLS     2408 TOTAL
                     EDM=   .53E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.8041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.6899        14.618        .77564E-03   -1.5191    
   3  norm          3.5174        2.4514        .12102E-03   -1.5333    
   4  norm          .10000E-03    1.5502        .11684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.7929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.752        10.889        .97856E-04   -1.4889    
   7  Prefactor     .10001E-03    44.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.5435        .64336        .47602E-04   -1.5459    
   9  norm          6.5565        1.6616        .59251E-04   -1.5196    
  10  Prefactor     .10000E-03    11.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.6218        .11914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.0558        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.9433        11.043        .20307E-03   -1.5311    
  14  Prefactor     13.670        19.786        .10831E-03   -1.4968    
  15  Prefactor     .10000E-03    28.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .56564        .40559        .52650E-03   -1.5558    
  17  Prefactor     .77497        20.961        .43616E-02   -1.5532    
  18  Prefactor     7.2095        15.119        .74672E-03   -1.5171    
  19  norm          2.4515        3.6394        .21614E-03   -1.5395    
  20  Prefactor     .10001E-03    53.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .90898        .18738        .30665E-03   -.96145    
  22  Prefactor     1.0286        .12293        .19203E-03   -.91781    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.30757e-08
Minuit parameter uncertainties:
  1  1.44877e-05
  2  14.6254
  3  2.45147
  4  1.06105e-07
  5  6.44632e-07
  6  10.8903
  7  0.0010471
  8  0.643364
  9  1.66159
  10  1.85888e-05
  11  8.11816e-07
  12  7.45747e-06
  13  11.0483
  14  19.7953
  15  0.0001935
  16  0.405591
  17  8.06334
  18  15.1271
  19  3.63968
  20  0.00109797
  21  0.187512
  22  0.122962
Done.

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

Extracting fit parameters...

4FGL J0115.1+2622
   Spectrum: PowerLaw
240    Prefactor:  1.000e-04  1.859e-05  1.000e-04  1.000e+04 ( 1.000e-14)
241        Index:  2.211e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
242        Scale:  2.453e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  1.029e+00  1.230e-01  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  9.090e-01  1.875e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 18.778 26.373
Photon Flux Upper Limit: 5.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/476045/likelihoodResults_252547201_252806401_4FGL_J0115.1+2622_daily_bin51.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) = 9236.04448545
delta logL = -0.000407872506912

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9236.0440774
delta logL = 1.76920366357e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1778       1.0000          .0000       10.000    
     3 'Normalizat'    .90898       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0286       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9236.044     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      244 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10167E-03    74.466        .18142E-02** at limit **
   2  Index         2.1162        6.5328        .50000        .19470E-04
   3  Normalizat    .90898        .99494E-02    .30665E-03   -.14882E-03
   4  Prefactor     1.0286        .66301E-02    .19203E-03   -.48731E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101672
  Index      = 2.11616
  Normalizat = 0.908983
  Prefactor  = 1.02863
 **********
 **   18 **HESSE 
 **********

 FCN=   9236.044     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10167E-03    331.56        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1162        8.8325        .50000       -.61477    
   3  Normalizat    .90898        .21540E-01    .12266E-04   -.96145    
   4  Prefactor     1.0286        .14353E-01    .38406E-04   -.91781    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.46945e-08
Minuit parameter uncertainties:
  1  0.0473607
  2  402.909
  3  0.0215402
  4  0.0143534
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/476045': 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): 102
logL (Free Index) = 9236.04407714
delta logL = 4.38345523435e-07

Extracting fit parameters...

4FGL J0115.1+2622
   Spectrum: PowerLaw
240    Prefactor:  1.017e-04  4.736e-02  1.000e-04  1.000e+04 ( 1.000e-14)
241        Index:  2.116e+00  4.029e+02  0.000e+00  1.000e+01 (-1.000e+00)
242        Scale:  2.453e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  1.029e+00  1.435e-02  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  9.090e-01  2.154e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 18.778 26.373

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/476045/cmap_HighResolution_252547201_252806401_4FGL_J0115.1+2622_daily_bin51.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.83e-03', job_status='DONE', photon_flux_upper_limit='5.02e-08', time_completed='2021-08-13 19:42:32.819976', job_id='476045', GAL2='1.03', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1628908952.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='4.38e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='51' AND source_name='4FGL J0115.1+2622' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 19:42:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 476045: <4FGL_J0115.1+2622_daily_bin51> in cluster <slac> Done

Job <4FGL_J0115.1+2622_daily_bin51> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Fri Aug 13 19:25:56 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 19:27:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 13 19:27:33 2021
Terminated at Fri Aug 13 19:42:33 2021
Results reported at Fri Aug 13 19:42:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0115.1+2622_daily_bin51 18.7784 26.3733 252547201 252806401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0115.1+2622 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   771.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             299.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            997 sec.

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

