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


Performing analysis on: 4FGL_J0115.1+2622_daily_bin1606
RA = 18.7784, Dec = 26.3733
tmin = 655603201, tmax = 655862401
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='138068', job_status='RUN', time_executed='2021-12-07 12:04:30.317290', time_epoch_executed='1638907470.32' WHERE source_name='4FGL J0115.1+2622' and cadence='daily' and bin_id='1606'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/138068

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/138068/ft1_4FGL_J0115.1+2622_daily_bin1606.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/138068/ft2_4FGL_J0115.1+2622_daily_bin1606.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/138068/ft1_4FGL_J0115.1+2622_daily_bin1606.fits outfile=/scratch/kocevski/138068/ft1_filteredMKT_4FGL_J0115.1+2622_daily_bin1606.fits ra=18.7784 dec=26.3733 rad=12.0 tmin=655603201.0 tmax=655862401.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 4.43
user 4.18
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/138068/ft2_4FGL_J0115.1+2622_daily_bin1606.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/138068/ft1_filteredMKT_4FGL_J0115.1+2622_daily_bin1606.fits evtable="EVENTS" outfile="/scratch/kocevski/138068/ft1_filtered_4FGL_J0115.1+2622_daily_bin1606.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.36
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/138068/ft1_filtered_4FGL_J0115.1+2622_daily_bin1606.fits" evtable="EVENTS" scfile=/scratch/kocevski/138068/ft2_4FGL_J0115.1+2622_daily_bin1606.fits sctable="SC_DATA" outfile=/scratch/kocevski/138068/ltcube_655603201_655862401_4FGL_J0115.1+2622_daily_bin1606.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/138068/ft2_4FGL_J0115.1+2622_daily_bin1606.fits
.....................!
real 21.17
user 20.63
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/138068/ft1_filtered_4FGL_J0115.1+2622_daily_bin1606.fits evtable="EVENTS" scfile=/scratch/kocevski/138068/ft2_4FGL_J0115.1+2622_daily_bin1606.fits sctable="SC_DATA" expcube=/scratch/kocevski/138068/ltcube_655603201_655862401_4FGL_J0115.1+2622_daily_bin1606.fits outfile=/scratch/kocevski/138068/expmap_655603201_655862401_4FGL_J0115.1+2622_daily_bin1606.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/138068/ltcube_655603201_655862401_4FGL_J0115.1+2622_daily_bin1606.fits
.....................!
real 197.01
user 190.76
sys 5.52

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/138068/ft1_filtered_4FGL_J0115.1+2622_daily_bin1606.fits scfile=/scratch/kocevski/138068/ft2_4FGL_J0115.1+2622_daily_bin1606.fits outfile=/scratch/kocevski/138068/cmap_655603201_655862401_4FGL_J0115.1+2622_daily_bin1606.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 0.60
user 0.41
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/138068/ft1_filtered_4FGL_J0115.1+2622_daily_bin1606.fits scfile=/scratch/kocevski/138068/ft2_4FGL_J0115.1+2622_daily_bin1606.fits outfile=/scratch/kocevski/138068/cmap_HighResolution_655603201_655862401_4FGL_J0115.1+2622_daily_bin1606.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 0.58
user 0.41
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/138068/ft1_filtered_4FGL_J0115.1+2622_daily_bin1606.fits', '/scratch/kocevski/138068/ft2_4FGL_J0115.1+2622_daily_bin1606.fits', expMap='/scratch/kocevski/138068/expmap_655603201_655862401_4FGL_J0115.1+2622_daily_bin1606.fits', expCube='/scratch/kocevski/138068/ltcube_655603201_655862401_4FGL_J0115.1+2622_daily_bin1606.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/138068/Model_4FGL_J0115.1+2622_daily_bin1606.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/138068/ft1_filtered_4FGL_J0115.1+2622_daily_bin1606.fits
Spacecraft file(s): /scratch/kocevski/138068/ft2_4FGL_J0115.1+2622_daily_bin1606.fits
Exposure map: /scratch/kocevski/138068/expmap_655603201_655862401_4FGL_J0115.1+2622_daily_bin1606.fits
Exposure cube: /scratch/kocevski/138068/ltcube_655603201_655862401_4FGL_J0115.1+2622_daily_bin1606.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/138068/Model_4FGL_J0115.1+2622_daily_bin1606.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) = 4160.73795262

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    34.078       1.0000         .10000E-03   10000.    
     3 'norm      '    1.0748       1.0000         .10000E-03   10000.    
     4 'norm      '    17.234       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.3599       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10559E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .64208       1.0000         .10000E-03   10000.    
     9 'norm      '    1.6329       1.0000         .10000E-03   10000.    
    10 'Prefactor '    49.322       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.4977       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.5733       1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.153       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    28.497       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.2755       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .92720E-02   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .48751       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1069       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=   4160.725     FROM MIGRAD    STATUS=CONVERGED    479 CALLS     2360 TOTAL
                     EDM=   .47E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.430        .72928E-05** at limit **
   2  Prefactor     34.080        32.491       -.23092E-05   -.21477E-05
   3  norm          1.0775        1.8134        .54752E-07   -.98925E-04
   4  norm          17.235        10.390        .84683E-06    .20505E-04
   5  Prefactor     .10000E-03    12.569        .12054E-06** at limit **
   6  Prefactor     6.3648        13.309        .23770E-05   -.64570E-04
   7  Prefactor     .10000E-03    14.263        .11128E-06** at limit **
   8  norm          .64226        .50471       -.34066E-08    .13677E-03
   9  norm          1.6331        1.4932        .42572E-07   -.22122E-03
  10  Prefactor     49.290        52.633        .60701E-05    .41462E-05
  11  Prefactor     9.5055        8.7125        .14919E-06   -.63345E-04
  12  Prefactor     8.5773        8.0149       -.32539E-06   -.11734E-03
  13  Prefactor     18.150        15.989       -.64770E-06   -.77731E-05
  14  Prefactor     .10000E-03    26.596       -.19353E-05** at limit **
  15  Prefactor     .10000E-03    40.121       -.10346E-04** at limit **
  16  norm          .10000E-03    .19833       -.32024E-07** at limit **
  17  Prefactor     28.466        15.815        .85615E-05    .22426E-04
  18  Prefactor     .10000E-03    10.641       -.12387E-06** at limit **
  19  norm          3.2768        5.2140        .28099E-07   -.20842E-03
  20  Prefactor     .10000E-03    672.49       -.28003E-04** at limit **
  21  Normalizat    .48732        .24519       -.47600E-05   -.47518E-04
  22  Prefactor     1.1068        .16099        .14425E-07    .24118E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 34.0798
  norm       = 1.07753
  norm       = 17.2348
  Prefactor  = 0.0001
  Prefactor  = 6.36479
  Prefactor  = 0.0001
  norm       = 0.642263
  norm       = 1.63307
  Prefactor  = 49.2903
  Prefactor  = 9.50545
  Prefactor  = 8.57728
  Prefactor  = 18.1498
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 28.4658
  Prefactor  = 0.0001
  norm       = 3.27676
  Prefactor  = 0.000100001
  Normalizat = 0.487322
  Prefactor  = 1.10678
 **********
 **   18 **HESSE 
 **********

 FCN=   4160.725     FROM HESSE     STATUS=OK           350 CALLS     2710 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     34.080        32.481        .68645E-04   -1.4540    
   3  norm          1.0775        1.5554        .10937E-02   -1.5500    
   4  norm          17.235        10.392        .96478E-04   -1.4877    
   5  Prefactor     .10000E-03    12.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.3648        13.234        .15916E-03   -1.5203    
   7  Prefactor     .10000E-03    14.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .64226        .50686        .39283E-04   -1.5548    
   9  norm          1.6331        1.4759        .70109E-04   -1.5452    
  10  Prefactor     49.290        52.640        .57100E-04   -1.4303    
  11  Prefactor     9.5055        8.7023        .13004E-03   -1.5091    
  12  Prefactor     8.5773        7.9872        .13690E-03   -1.5122    
  13  Prefactor     18.150        15.954        .94003E-04   -1.4856    
  14  Prefactor     .10000E-03    26.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    40.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .19835        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     28.466        15.802        .75049E-04   -1.4640    
  18  Prefactor     .10000E-03    10.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.2768        5.1995        .17942E-03   -1.5346    
  20  Prefactor     .10000E-03    674.28        .18214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .48732        .26882        .36754E-03   -1.1301    
  22  Prefactor     1.1068        .17923        .17187E-03   -.89250    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.93143e-11
Minuit parameter uncertainties:
  1  2.15745e-05
  2  32.4977
  3  1.5555
  4  10.3927
  5  4.4973e-05
  6  13.2396
  7  3.07769e-06
  8  0.506863
  9  1.47595
  10  52.6893
  11  8.70348
  12  7.98822
  13  15.9575
  14  7.91402e-05
  15  2.87653e-05
  16  5.05095e-08
  17  15.8043
  18  4.84905e-06
  19  5.20017
  20  0.00186164
  21  0.269538
  22  0.179324
Done.

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

Extracting fit parameters...

4FGL J0115.1+2622
   Spectrum: PowerLaw
240    Prefactor:  4.929e+01  5.269e+01  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.107e+00  1.793e-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:  4.873e-01  2.695e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.52
Ra Dec: 18.778 26.373
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 4.82e-08 +/- 5.15e-08
Energy Flux (Fixed Index): 2.12e-05 +/- 2.27e-05

TS (Fixed Index): 1.52
Ra Dec: 18.778 26.373
Photon Flux Upper Limit: 1.53e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.16e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/138068/likelihoodResults_655603201_655862401_4FGL_J0115.1+2622_daily_bin1606.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) = 4160.72405986
delta logL = 0.000682223948388

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4160.72209621
delta logL = 0.00264587440142

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    43.727       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2720       1.0000          .0000       10.000    
     3 'Normalizat'    .48619       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1073       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=   4160.722     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      271 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     43.803        109.89        .60627E-04    .12432E-03
   2  Index         2.2723        1.0847        .51318E-02    .48970E-04
   3  Normalizat    .48555        .25990        .36818E-03   -.23931E-03
   4  Prefactor     1.1077        .17920        .17181E-03    .34409E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 43.8027
  Index      = 2.27228
  Normalizat = 0.485545
  Prefactor  = 1.1077
 **********
 **   18 **HESSE 
 **********

 FCN=   4160.722     FROM HESSE     STATUS=OK            25 CALLS      296 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     43.803        85.307        .12125E-04   -1.4383    
   2  Index         2.2723        .84409        .20527E-03   -.57704    
   3  Normalizat    .48555        .25930        .14727E-04   -1.1309    
   4  Prefactor     1.1077        .17885        .68723E-05   -.89221    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.71667e-10
Minuit parameter uncertainties:
  1  85.546
  2  0.849903
  3  0.259948
  4  0.178949
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/138068': 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) = 4160.72209082
delta logL = 0.00265125732767

Extracting fit parameters...

4FGL J0115.1+2622
   Spectrum: PowerLaw
240    Prefactor:  4.380e+01  8.555e+01  1.000e-04  1.000e+04 ( 1.000e-14)
241        Index:  2.272e+00  8.499e-01  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.108e+00  1.789e-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:  4.855e-01  2.599e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.55
Ra Dec: 18.778 26.373
Photon Index (Free Index): 2.27 +/- 0.85
Photon Flux (Free Index): 4.96e-08 +/- 5.07e-08
Energy Flux (Free Index): 1.96e-05 +/- 2.79e-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/138068/cmap_HighResolution_655603201_655862401_4FGL_J0115.1+2622_daily_bin1606.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.16e-02', comment='SUCCESS', photon_flux='4.82e-08', energy_flux2='1.96e-05', photon_flux_error='5.15e-08', dlogl='2.65e-03', energy_flux='2.12e-05', photon_flux2='4.96e-08', job_status='DONE', time_completed='2021-12-07 12:13:46.524933', photon_index_error2='0.85', photon_index2='2.27', ts='1.52', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='1.53e-07', energy_flux_error2='2.79e-05', EG='0.49', time_epoch_completed='1638908026.53', return_code='0', job_id='138068', GAL2='1.11', EG2='0.49', return_code2='0', energy_flux_error='2.27e-05', photon_flux_error2='5.07e-08', ts2='1.55', photon_index='2.21' WHERE bin_id='1606' AND source_name='4FGL J0115.1+2622' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 12:13:46 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 138068: <4FGL_J0115.1+2622_daily_bin1606> in cluster <slac> Done

Job <4FGL_J0115.1+2622_daily_bin1606> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Dec  7 12:00:16 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 12:00:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 12:00:38 2021
Terminated at Tue Dec  7 12:13:47 2021
Results reported at Tue Dec  7 12:13:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0115.1+2622_daily_bin1606 18.7784 26.3733 655603201 655862401 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 :                                   556.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   788 sec.
    Turnaround time :                            811 sec.

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

