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


Performing analysis on: 4FGL_J2301.0-0158_daily_bin86
RA = 345.263, Dec = -1.9758
tmin = 261619201, tmax = 261878401
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='639788', job_status='RUN', time_executed='2021-09-29 05:34:35.712755', time_epoch_executed='1632918875.71' WHERE source_name='4FGL J2301.0-0158' and cadence='daily' and bin_id='86'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/639788

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/639788/ft1_4FGL_J2301.0-0158_daily_bin86.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/639788/ft2_4FGL_J2301.0-0158_daily_bin86.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/639788/ft1_4FGL_J2301.0-0158_daily_bin86.fits outfile=/scratch/kocevski/639788/ft1_filteredMKT_4FGL_J2301.0-0158_daily_bin86.fits ra=345.263 dec=-1.9758 rad=12.0 tmin=261619201.0 tmax=261878401.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 1.41
user 1.24
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/639788/ft2_4FGL_J2301.0-0158_daily_bin86.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/639788/ft2_4FGL_J2301.0-0158_daily_bin86.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/639788/ft1_filteredMKT_4FGL_J2301.0-0158_daily_bin86.fits evtable="EVENTS" outfile="/scratch/kocevski/639788/ft1_filtered_4FGL_J2301.0-0158_daily_bin86.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.50
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/639788/ft1_filtered_4FGL_J2301.0-0158_daily_bin86.fits" evtable="EVENTS" scfile=/scratch/kocevski/639788/ft2_4FGL_J2301.0-0158_daily_bin86.fits sctable="SC_DATA" outfile=/scratch/kocevski/639788/ltcube_261619201_261878401_4FGL_J2301.0-0158_daily_bin86.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/639788/ft2_4FGL_J2301.0-0158_daily_bin86.fits
.....................!
real 12.53
user 12.17
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/639788/ft1_filtered_4FGL_J2301.0-0158_daily_bin86.fits evtable="EVENTS" scfile=/scratch/kocevski/639788/ft2_4FGL_J2301.0-0158_daily_bin86.fits sctable="SC_DATA" expcube=/scratch/kocevski/639788/ltcube_261619201_261878401_4FGL_J2301.0-0158_daily_bin86.fits outfile=/scratch/kocevski/639788/expmap_261619201_261878401_4FGL_J2301.0-0158_daily_bin86.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/639788/ltcube_261619201_261878401_4FGL_J2301.0-0158_daily_bin86.fits
.....................!
real 191.43
user 186.77
sys 4.29

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

Setting source of interest to:
4FGL J2301.0-0158 @ 345.263 -1.9758

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/639788/ft1_filtered_4FGL_J2301.0-0158_daily_bin86.fits scfile=/scratch/kocevski/639788/ft2_4FGL_J2301.0-0158_daily_bin86.fits outfile=/scratch/kocevski/639788/cmap_261619201_261878401_4FGL_J2301.0-0158_daily_bin86.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=345.263 yref=-1.9758 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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/639788/ft1_filtered_4FGL_J2301.0-0158_daily_bin86.fits scfile=/scratch/kocevski/639788/ft2_4FGL_J2301.0-0158_daily_bin86.fits outfile=/scratch/kocevski/639788/cmap_HighResolution_261619201_261878401_4FGL_J2301.0-0158_daily_bin86.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=345.263 yref=-1.9758 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/639788/ft1_filtered_4FGL_J2301.0-0158_daily_bin86.fits evtable="EVENTS" scfile=/scratch/kocevski/639788/ft2_4FGL_J2301.0-0158_daily_bin86.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/639788/Model_4FGL_J2301.0-0158_daily_bin86.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/639788/ft1_filtered_4FGL_J2301.0-0158_daily_bin86.fits.....................!
real 66.56
user 65.14
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/639788/ft1_filtered_4FGL_J2301.0-0158_daily_bin86.fits', '/scratch/kocevski/639788/ft2_4FGL_J2301.0-0158_daily_bin86.fits', expMap='/scratch/kocevski/639788/expmap_261619201_261878401_4FGL_J2301.0-0158_daily_bin86.fits', expCube='/scratch/kocevski/639788/ltcube_261619201_261878401_4FGL_J2301.0-0158_daily_bin86.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/639788/Model_4FGL_J2301.0-0158_daily_bin86.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2301.0-0158'

4FGL J2301.0-0158
   Spectrum: LogParabola
333         norm:  6.486e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  2.316e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
335         beta:  1.074e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  5.227e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/639788/ft1_filtered_4FGL_J2301.0-0158_daily_bin86.fits
Spacecraft file(s): /scratch/kocevski/639788/ft2_4FGL_J2301.0-0158_daily_bin86.fits
Exposure map: /scratch/kocevski/639788/expmap_261619201_261878401_4FGL_J2301.0-0158_daily_bin86.fits
Exposure cube: /scratch/kocevski/639788/ltcube_261619201_261878401_4FGL_J2301.0-0158_daily_bin86.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/639788/Model_4FGL_J2301.0-0158_daily_bin86.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) = 6999.26825911

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.899       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.2357       1.0000         .10000E-03   10000.    
     3 'norm      '    15.802       1.0000         .10000E-03   10000.    
     4 'Prefactor '    65.966       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10253E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    23.069       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.2915       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.6925       1.0000         .10000E-03   10000.    
    17 'Prefactor '    55.659       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .15386E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    11.009       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.9106       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .95472       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .90195       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6999.265     FROM MIGRAD    STATUS=CONVERGED    611 CALLS     2921 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.902        13.360       -.21595E-06   -.17859E-05
   2  Prefactor     2.2362        3.3710       -.24608E-06   -.12436E-03
   3  norm          15.803        4.7013       -.21600E-06   -.56453E-05
   4  Prefactor     65.976        75.217        .77542E-05    .24223E-04
   5  Prefactor     .10000E-03    5.4246        .63394E-07** at limit **
   6  norm          .10000E-03    .40182        .39855E-07** at limit **
   7  Prefactor     .10000E-03    5.7506        .20380E-06** at limit **
   8  Prefactor     .10000E-03    2.5932        .17939E-06** at limit **
   9  norm          23.070        13.589       -.11194E-06   -.61176E-04
  10  Prefactor     .10000E-03    64.994        .15488E-04** at limit **
  11  Prefactor     .10000E-03    3.6572       -.11361E-07** at limit **
  12  Prefactor     .10000E-03    51.777       -.15244E-04** at limit **
  13  Prefactor     .10000E-03    14.790       -.73923E-06** at limit **
  14  norm          .10000E-03    .31031       -.13100E-07** at limit **
  15  norm          2.2871        2.3349        .68885E-06   -.25488E-02
  16  Prefactor     9.6934        12.529       -.33658E-08   -.47122E-04
  17  Prefactor     55.636        48.707       -.12765E-04   -.23994E-03
  18  Prefactor     .10000E-03    142.63       -.49180E-05** at limit **
  19  Prefactor     .10032E-03    6.8015        .30067E-05** at limit **
  20  norm          10.989        13.999        .17198E-06   -.65598E-03
  21  Prefactor     .10000E-03    24.164       -.12394E-05** at limit **
  22  Prefactor     1.9037        3.6273       -.28737E-06   -.11565E-02
  23  Prefactor     .10000E-03    8.3389       -.42398E-07** at limit **
  24  Normalizat    .95459        .18324        .64922E-06   -.45538E-03
  25  Prefactor     .90195        .11861        .44727E-07   -.43509E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.9017
  Prefactor  = 2.23617
  norm       = 15.8028
  Prefactor  = 65.9764
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 23.0701
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.28706
  Prefactor  = 9.69336
  Prefactor  = 55.6359
  Prefactor  = 0.0001
  Prefactor  = 0.000100319
  norm       = 10.9889
  Prefactor  = 0.0001
  Prefactor  = 1.90372
  Prefactor  = 0.0001
  Normalizat = 0.954592
  Prefactor  = 0.901952
 **********
 **   18 **HESSE 
 **********

 FCN=   6999.265     FROM HESSE     STATUS=OK           419 CALLS     3340 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.902        13.315        .80278E-04   -1.4710    
   2  Prefactor     2.2362        3.3391        .17581E-03   -1.5409    
   3  norm          15.803        4.7012        .93753E-04   -1.4913    
   4  Prefactor     65.976        75.193        .49414E-04   -1.4082    
   5  Prefactor     .10000E-03    5.4605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.3196        .10311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.7567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.5966        .13157E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          23.070        13.622        .83397E-04   -1.4747    
  10  Prefactor     .10000E-03    65.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.6588        .15625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    51.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.230        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .32049        .90738E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.2871        6.1744        .13558E-02   -1.5405    
  16  Prefactor     9.6934        12.540        .12872E-03   -1.5085    
  17  Prefactor     55.636        49.038        .53768E-04   -1.4215    
  18  Prefactor     .10000E-03    142.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10032E-03    40.421        .36231E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          10.989        13.283        .12075E-03   -1.5045    
  21  Prefactor     .10000E-03    24.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.9037        3.4619        .19558E-03   -1.5432    
  23  Prefactor     .10000E-03    8.3424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .95459        .21457        .28976E-03   -.94568    
  25  Prefactor     .90195        .13796        .20038E-03   -.96073    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83777e-08
Minuit parameter uncertainties:
  1  13.3165
  2  3.33937
  3  4.70134
  4  75.3016
  5  5.32844e-06
  6  1.91808e-05
  7  1.57102e-06
  8  3.37093e-07
  9  13.6241
  10  9.19101e-05
  11  3.21055e-06
  12  0.000293598
  13  1.41496e-05
  14  2.46351e-07
  15  6.17608
  16  12.5438
  17  49.0735
  18  0.000210562
  19  0.00719218
  20  13.287
  21  2.25417e-05
  22  3.4623
  23  7.88904e-06
  24  0.214766
  25  0.138013
Done.

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

Extracting fit parameters...

4FGL J2301.0-0158
   Spectrum: LogParabola
333         norm:  2.307e+01  1.362e+01  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  2.316e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
335         beta:  1.074e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  5.227e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  9.020e-01  1.380e-01  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  9.546e-01  2.148e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.20
Ra Dec: 345.263 -1.976
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 7.02e-08 +/- 4.14e-08
Energy Flux (Fixed Index): 2.29e-05 +/- 1.35e-05

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) = 6998.91397284
delta logL = 0.351473162605

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6998.91283496
delta logL = 0.352611043323

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    21.015       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8617       1.0000          .0000       5.0000    
     3 'Normalizat'    .90445       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92185       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6998.913     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      260 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.029        183.87        .21843E-02   -.45395E-04
   2  alpha         2.8627        3.8075        .37602        .31103E-04
   3  Normalizat    .90430        .10486        .67076E-01    .10331E-03
   4  Prefactor     .92174        .54990E-01    .45283E-01   -.46967E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 21.0288
  alpha      = 2.86268
  Normalizat = 0.904296
  Prefactor  = 0.921737
 **********
 **   18 **HESSE 
 **********

 FCN=   6998.913     FROM HESSE     STATUS=OK            33 CALLS      293 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.029        13.610        .87373E-04   -1.4791    
   2  alpha         2.8627        .68936        .14283E-01    .14558    
   3  Normalizat    .90430        .21472        .29673E-03   -.96309    
   4  Prefactor     .92174        .14041        .19841E-03   -.95386    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17664e-09
Minuit parameter uncertainties:
  1  13.6118
  2  0.698614
  3  0.214924
  4  0.140462
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/639788': 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) = 6998.91282873
delta logL = 0.352617274609

Extracting fit parameters...

4FGL J2301.0-0158
   Spectrum: LogParabola
333         norm:  2.103e+01  1.361e+01  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  2.863e+00  6.986e-01  0.000e+00  5.000e+00 ( 1.000e+00)
335         beta:  1.074e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  5.227e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  9.217e-01  1.405e-01  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  9.043e-01  2.149e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.97
Ra Dec: 345.263 -1.976
Photon Index (Free Index): 2.86 +/- 0.70
Photon Flux (Free Index): 1.09e-07 +/- 6.73e-08
Energy Flux (Free Index): 2.40e-05 +/- 1.22e-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/639788/cmap_HighResolution_261619201_261878401_4FGL_J2301.0-0158_daily_bin86.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.02e-08', energy_flux2='2.40e-05', photon_flux_error='4.14e-08', dlogl='3.53e-01', energy_flux='2.29e-05', photon_flux2='1.09e-07', job_status='DONE', time_completed='2021-09-29 05:45:12.100335', photon_index_error2='0.70', photon_index2='2.86', ts='6.20', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='1.22e-05', EG='0.95', time_epoch_completed='1632919512.1', return_code='0', job_id='639788', GAL2='0.92', EG2='0.90', return_code2='0', energy_flux_error='1.35e-05', photon_flux_error2='6.73e-08', ts2='6.97', photon_index='2.32' WHERE bin_id='86' AND source_name='4FGL J2301.0-0158' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 05:45:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 639788: <4FGL_J2301.0-0158_daily_bin86> in cluster <slac> Done

Job <4FGL_J2301.0-0158_daily_bin86> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 05:30:49 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 05:30:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 05:30:51 2021
Terminated at Wed Sep 29 05:45:12 2021
Results reported at Wed Sep 29 05:45:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2301.0-0158_daily_bin86 345.263 -1.9758 261619201 261878401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2301.0-0158 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   636.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             258.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   861 sec.
    Turnaround time :                            863 sec.

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

