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


Performing analysis on: 4FGL_J0115.1+2622_daily_bin25
RA = 18.7784, Dec = 26.3733
tmin = 245808001, tmax = 246067201
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='476012', job_status='RUN', time_executed='2021-08-13 19:29:56.987439', time_epoch_executed='1628908196.99' WHERE source_name='4FGL J0115.1+2622' and cadence='daily' and bin_id='25'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/476012

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/476012/ft1_4FGL_J0115.1+2622_daily_bin25.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/476012/ft2_4FGL_J0115.1+2622_daily_bin25.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/476012/ft1_4FGL_J0115.1+2622_daily_bin25.fits outfile=/scratch/kocevski/476012/ft1_filteredMKT_4FGL_J0115.1+2622_daily_bin25.fits ra=18.7784 dec=26.3733 rad=12.0 tmin=245808001.0 tmax=246067201.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.45
user 1.25
sys 0.87

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/476012/ft2_4FGL_J0115.1+2622_daily_bin25.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/476012/ft1_filteredMKT_4FGL_J0115.1+2622_daily_bin25.fits evtable="EVENTS" outfile="/scratch/kocevski/476012/ft1_filtered_4FGL_J0115.1+2622_daily_bin25.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.17
user 0.34
sys 0.82

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/476012/ft1_filtered_4FGL_J0115.1+2622_daily_bin25.fits" evtable="EVENTS" scfile=/scratch/kocevski/476012/ft2_4FGL_J0115.1+2622_daily_bin25.fits sctable="SC_DATA" outfile=/scratch/kocevski/476012/ltcube_245808001_246067201_4FGL_J0115.1+2622_daily_bin25.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/476012/ft2_4FGL_J0115.1+2622_daily_bin25.fits
.....................!
real 15.04
user 13.85
sys 1.10

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/476012/ft1_filtered_4FGL_J0115.1+2622_daily_bin25.fits evtable="EVENTS" scfile=/scratch/kocevski/476012/ft2_4FGL_J0115.1+2622_daily_bin25.fits sctable="SC_DATA" expcube=/scratch/kocevski/476012/ltcube_245808001_246067201_4FGL_J0115.1+2622_daily_bin25.fits outfile=/scratch/kocevski/476012/expmap_245808001_246067201_4FGL_J0115.1+2622_daily_bin25.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/476012/ltcube_245808001_246067201_4FGL_J0115.1+2622_daily_bin25.fits
.....................!
real 191.95
user 185.54
sys 5.87

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/476012/ft1_filtered_4FGL_J0115.1+2622_daily_bin25.fits scfile=/scratch/kocevski/476012/ft2_4FGL_J0115.1+2622_daily_bin25.fits outfile=/scratch/kocevski/476012/cmap_245808001_246067201_4FGL_J0115.1+2622_daily_bin25.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.37
sys 0.82

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/476012/ft1_filtered_4FGL_J0115.1+2622_daily_bin25.fits scfile=/scratch/kocevski/476012/ft2_4FGL_J0115.1+2622_daily_bin25.fits outfile=/scratch/kocevski/476012/cmap_HighResolution_245808001_246067201_4FGL_J0115.1+2622_daily_bin25.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.20
user 0.38
sys 0.81

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.8817       1.0000         .10000E-03   10000.    
     3 'norm      '    3.1475       1.0000         .10000E-03   10000.    
     4 'norm      '    14.377       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.717       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.529       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .85562       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.206       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.0996       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.854       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.9598       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.9583       1.0000         .10000E-03   10000.    
    16 'norm      '    .19945       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.0373       1.0000         .10000E-03   10000.    
    20 'Prefactor '    108.95       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1267       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .91620       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=   7782.586     FROM MIGRAD    STATUS=CONVERGED    467 CALLS     2377 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    41.736        .38815E-08** at limit **
   2  Prefactor     3.8816        22.078        .72706E-05   -.20843E-03
   3  norm          3.1476        2.1577       -.28287E-07   -.24454E-04
   4  norm          14.378        9.2383       -.14182E-06   -.15283E-05
   5  Prefactor     10.717        10.452       -.29309E-06    .99616E-05
   6  Prefactor     12.529        8.4839       -.12072E-06    .17896E-04
   7  Prefactor     .10000E-03    6.7662        .63434E-07** at limit **
   8  norm          .85563        .45683       -.22040E-07    .34262E-04
   9  norm          .10000E-03    .35284        .14509E-07** at limit **
  10  Prefactor     10.203        36.421       -.22617E-05   -.16402E-05
  11  Prefactor     1.1002        3.4120        .88096E-06   -.86327E-04
  12  Prefactor     .10000E-03    2.4944        .14138E-07** at limit **
  13  Prefactor     12.855        10.156        .48576E-06    .18541E-03
  14  Prefactor     9.9596        36.692        .69832E-07    .24326E-04
  15  Prefactor     6.8886        232.52       -.15309E-04   -.14235E-04
  16  norm          .19966        .41631       -.12687E-05   -.77381E-03
  17  Prefactor     .10000E-03    8.8717       -.65073E-06** at limit **
  18  Prefactor     .10000E-03    9.7106        .47679E-06** at limit **
  19  norm          4.0372        3.9832       -.41915E-06   -.19235E-03
  20  Prefactor     108.96        120.87        .15784E-05    .23815E-04
  21  Normalizat    1.1268        .17951        .18081E-05    .16452E-03
  22  Prefactor     .91614        .11693       -.31306E-06    .39239E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.88159
  norm       = 3.1476
  norm       = 14.3778
  Prefactor  = 10.7165
  Prefactor  = 12.5286
  Prefactor  = 0.0001
  norm       = 0.855628
  norm       = 0.0001
  Prefactor  = 10.2033
  Prefactor  = 1.10021
  Prefactor  = 0.0001
  Prefactor  = 12.8549
  Prefactor  = 9.95959
  Prefactor  = 6.88857
  norm       = 0.19966
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.03718
  Prefactor  = 108.96
  Normalizat = 1.1268
  Prefactor  = 0.916138
 **********
 **   18 **HESSE 
 **********

 FCN=   7782.586     FROM HESSE     STATUS=OK           352 CALLS     2729 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    41.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.8816        21.778        .10240E-02   -1.5314    
   3  norm          3.1476        2.1560        .10396E-03   -1.5353    
   4  norm          14.378        9.2359        .10563E-03   -1.4949    
   5  Prefactor     10.717        10.473        .12239E-03   -1.5053    
   6  Prefactor     12.529        8.4808        .11317E-03   -1.5000    
   7  Prefactor     .10000E-03    6.7690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .85563        .45265        .42167E-04   -1.5523    
   9  norm          .10000E-03    .62577        .10167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.203        35.697        .12542E-03   -1.5069    
  11  Prefactor     1.1002        3.2641        .25404E-03   -1.5498    
  12  Prefactor     .10000E-03    2.5173        .13601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.855        10.149        .11172E-03   -1.4991    
  14  Prefactor     9.9596        36.722        .12697E-03   -1.5077    
  15  Prefactor     6.8886        230.60        .15209E-03   -1.5183    
  16  norm          .19966        .40122        .83917E-03   -1.5619    
  17  Prefactor     .10000E-03    9.0118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.7198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.0372        3.9879        .17031E-03   -1.5306    
  20  Prefactor     108.96        120.98        .19266E-03   -1.3616    
  21  Normalizat    1.1268        .21282        .27874E-03   -.88896    
  22  Prefactor     .91614        .13922        .20049E-03   -.95579    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.47626e-10
Minuit parameter uncertainties:
  1  5.5694e-05
  2  18.3986
  3  2.15608
  4  9.2368
  5  10.4746
  6  8.48159
  7  5.39454e-07
  8  0.452649
  9  5.60655e-06
  10  35.7722
  11  3.2646
  12  1.01021e-06
  13  10.1503
  14  36.8054
  15  80.0487
  16  0.40123
  17  3.25442e-06
  18  2.5522e-05
  19  3.98819
  20  121.251
  21  0.212987
  22  0.139275
Done.

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

Extracting fit parameters...

4FGL J0115.1+2622
   Spectrum: PowerLaw
240    Prefactor:  1.020e+01  3.577e+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:  9.161e-01  1.393e-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:  1.127e+00  2.130e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/476012/likelihoodResults_245808001_246067201_4FGL_J0115.1+2622_daily_bin25.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) = 7782.03765804
delta logL = 0.547874996276

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7782.00657702
delta logL = 0.578956012872

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6600       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3499       1.0000          .0000       10.000    
     3 'Normalizat'    1.0839       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92937       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.

 FCN=   7782.007     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      312 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6480        59.970        .62480E-02    .46816E-03
   2  Index         3.3517        2.5852        .86623E-01    .20714E-03
   3  Normalizat    1.0839        .54077E-01    .64045E-01   -.20087E-04
   4  Prefactor     .92935        .34919E-01    .45378E-01   -.30852E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.64801
  Index      = 3.35169
  Normalizat = 1.08387
  Prefactor  = 0.929345
 **********
 **   18 **HESSE 
 **********

 FCN=   7782.007     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      345 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6480        121.81        .13284E-03   -1.5383    
   2  Index         3.3517        6.6261        .49605E-02   -.33594    
   3  Normalizat    1.0839        .18815        .28330E-03   -.90271    
   4  Prefactor     .92935        .12386        .19910E-03   -.95123    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.20651e-06
Minuit parameter uncertainties:
  1  35.9969
  2  4.88596
  3  0.188262
  4  0.123901
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/476012': 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) = 7782.00657552
delta logL = 0.578957521931

Extracting fit parameters...

4FGL J0115.1+2622
   Spectrum: PowerLaw
240    Prefactor:  2.648e+00  3.600e+01  1.000e-04  1.000e+04 ( 1.000e-14)
241        Index:  3.352e+00  4.886e+00  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:  9.293e-01  1.239e-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:  1.084e+00  1.883e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.29
Ra Dec: 18.778 26.373
Photon Index (Free Index): 3.35 +/- 4.89
Photon Flux (Free Index): 5.14e-08 +/- 4.90e-08
Energy Flux (Free Index): 8.92e-06 +/- 1.61e-05

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/476012/cmap_HighResolution_245808001_246067201_4FGL_J0115.1+2622_daily_bin25.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.78e-03', comment='SUCCESS', energy_flux2='8.92e-06', dlogl='5.79e-01', photon_flux2='5.14e-08', job_status='DONE', time_completed='2021-08-13 19:42:03.061681', photon_index_error2='4.89', photon_index2='3.35', ts='0.10', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='8.89e-08', energy_flux_error2='1.61e-05', EG='1.13', time_epoch_completed='1628908923.06', return_code='0', job_id='476012', GAL2='0.93', EG2='1.08', return_code2='102', photon_flux_error2='4.90e-08', ts2='1.29', photon_index='2.21' WHERE bin_id='25' AND source_name='4FGL J0115.1+2622' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 19:42:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0172>
Subject: Job 476012: <4FGL_J0115.1+2622_daily_bin25> in cluster <slac> Done

Job <4FGL_J0115.1+2622_daily_bin25> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Fri Aug 13 19:25:52 2021
Job was executed on host(s) <bullet0172>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 19:27:15 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:15 2021
Terminated at Fri Aug 13 19:42:03 2021
Results reported at Fri Aug 13 19:42:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0115.1+2622_daily_bin25 18.7784 26.3733 245808001 246067201 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 :                                   734.29 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             292.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            971 sec.

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

