/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 239 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 = 7413
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2301.0-0158_daily_bin265
RA = 345.263, Dec = -1.9758
tmin = 308016001, tmax = 308275201
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='641131', job_status='RUN', time_executed='2021-09-29 05:39:37.621327', time_epoch_executed='1632919177.62' WHERE source_name='4FGL J2301.0-0158' and cadence='daily' and bin_id='265'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/641131

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/641131/ft1_4FGL_J2301.0-0158_daily_bin265.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/641131/ft2_4FGL_J2301.0-0158_daily_bin265.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/641131/ft1_4FGL_J2301.0-0158_daily_bin265.fits outfile=/scratch/kocevski/641131/ft1_filteredMKT_4FGL_J2301.0-0158_daily_bin265.fits ra=345.263 dec=-1.9758 rad=12.0 tmin=308016001.0 tmax=308275201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.38
user 3.19
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/641131/ft2_4FGL_J2301.0-0158_daily_bin265.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/641131/ft1_filteredMKT_4FGL_J2301.0-0158_daily_bin265.fits evtable="EVENTS" outfile="/scratch/kocevski/641131/ft1_filtered_4FGL_J2301.0-0158_daily_bin265.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.49
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/641131/ft1_filtered_4FGL_J2301.0-0158_daily_bin265.fits" evtable="EVENTS" scfile=/scratch/kocevski/641131/ft2_4FGL_J2301.0-0158_daily_bin265.fits sctable="SC_DATA" outfile=/scratch/kocevski/641131/ltcube_308016001_308275201_4FGL_J2301.0-0158_daily_bin265.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/641131/ft2_4FGL_J2301.0-0158_daily_bin265.fits
.....................!
real 11.75
user 11.36
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/641131/ft1_filtered_4FGL_J2301.0-0158_daily_bin265.fits evtable="EVENTS" scfile=/scratch/kocevski/641131/ft2_4FGL_J2301.0-0158_daily_bin265.fits sctable="SC_DATA" expcube=/scratch/kocevski/641131/ltcube_308016001_308275201_4FGL_J2301.0-0158_daily_bin265.fits outfile=/scratch/kocevski/641131/expmap_308016001_308275201_4FGL_J2301.0-0158_daily_bin265.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/641131/ltcube_308016001_308275201_4FGL_J2301.0-0158_daily_bin265.fits
.....................!
real 192.10
user 186.59
sys 5.19

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/641131/ft1_filtered_4FGL_J2301.0-0158_daily_bin265.fits scfile=/scratch/kocevski/641131/ft2_4FGL_J2301.0-0158_daily_bin265.fits outfile=/scratch/kocevski/641131/cmap_308016001_308275201_4FGL_J2301.0-0158_daily_bin265.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/641131/ft1_filtered_4FGL_J2301.0-0158_daily_bin265.fits scfile=/scratch/kocevski/641131/ft2_4FGL_J2301.0-0158_daily_bin265.fits outfile=/scratch/kocevski/641131/cmap_HighResolution_308016001_308275201_4FGL_J2301.0-0158_daily_bin265.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.56
user 0.37
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/641131/ft1_filtered_4FGL_J2301.0-0158_daily_bin265.fits evtable="EVENTS" scfile=/scratch/kocevski/641131/ft2_4FGL_J2301.0-0158_daily_bin265.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/641131/Model_4FGL_J2301.0-0158_daily_bin265.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/641131/ft1_filtered_4FGL_J2301.0-0158_daily_bin265.fits....................!
real 53.35
user 52.08
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/641131/ft1_filtered_4FGL_J2301.0-0158_daily_bin265.fits', '/scratch/kocevski/641131/ft2_4FGL_J2301.0-0158_daily_bin265.fits', expMap='/scratch/kocevski/641131/expmap_308016001_308275201_4FGL_J2301.0-0158_daily_bin265.fits', expCube='/scratch/kocevski/641131/ltcube_308016001_308275201_4FGL_J2301.0-0158_daily_bin265.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/641131/Model_4FGL_J2301.0-0158_daily_bin265.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/641131/ft1_filtered_4FGL_J2301.0-0158_daily_bin265.fits
Spacecraft file(s): /scratch/kocevski/641131/ft2_4FGL_J2301.0-0158_daily_bin265.fits
Exposure map: /scratch/kocevski/641131/expmap_308016001_308275201_4FGL_J2301.0-0158_daily_bin265.fits
Exposure cube: /scratch/kocevski/641131/ltcube_308016001_308275201_4FGL_J2301.0-0158_daily_bin265.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/641131/Model_4FGL_J2301.0-0158_daily_bin265.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) = 5262.53328382

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10973E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.2489       1.0000         .10000E-03   10000.    
     4 'Prefactor '    174.13       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.768       1.0000         .10000E-03   10000.    
     9 'norm      '    11.968       1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.617       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.1187       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10682E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.978       1.0000         .10000E-03   10000.    
    17 'Prefactor '    26.339       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.4582       1.0000         .10000E-03   10000.    
    23 'Prefactor '    20.808       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .94599       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .75590       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=   5262.526     FROM MIGRAD    STATUS=CONVERGED    575 CALLS     2918 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.0352       -.43346E-07** at limit **
   2  Prefactor     .10000E-03    4.2278       -.22466E-05** at limit **
   3  norm          1.2541        4.2002        .20699E-06    .21113E-03
   4  Prefactor     173.93        109.82       -.79220E-05   -.32714E-03
   5  Prefactor     .10000E-03    6.4938        .16982E-06** at limit **
   6  norm          .10000E-03    .36825        .81774E-07** at limit **
   7  Prefactor     .10000E-03    16.520        .26890E-06** at limit **
   8  Prefactor     13.769        11.332        .20740E-06   -.11139E-05
   9  norm          11.970        11.262       -.39571E-06   -.58268E-04
  10  Prefactor     24.624        36.195       -.16437E-05   -.26180E-04
  11  Prefactor     2.1252        55.018        .31540E-04   -.48655E-04
  12  Prefactor     .10000E-03    84.193       -.44587E-06** at limit **
  13  Prefactor     .10000E-03    6.0064        .28491E-06** at limit **
  14  norm          .10000E-03    .21605        .43638E-07** at limit **
  15  norm          .10000E-03    4.9554        .27381E-06** at limit **
  16  Prefactor     12.979        10.170       -.12887E-06   -.25768E-04
  17  Prefactor     26.341        29.347       -.54622E-06   -.15720E-04
  18  Prefactor     .10000E-03    49.850       -.13011E-05** at limit **
  19  Prefactor     .10000E-03    4.1146        .74431E-07** at limit **
  20  norm          .10000E-03    10.525        .32134E-07** at limit **
  21  Prefactor     .10000E-03    63.813        .35119E-05** at limit **
  22  Prefactor     6.4598        4.2550       -.72103E-07   -.85816E-04
  23  Prefactor     20.816        36.091        .41028E-06    .13755E-04
  24  Normalizat    .94566        .20453        .82832E-06   -.18098E-03
  25  Prefactor     .75603        .12613       -.14096E-05   -.70718E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.25407
  Prefactor  = 173.932
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.7695
  norm       = 11.9698
  Prefactor  = 24.6238
  Prefactor  = 2.12517
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 12.9794
  Prefactor  = 26.3412
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 6.45977
  Prefactor  = 20.8155
  Normalizat = 0.945664
  Prefactor  = 0.756026
 **********
 **   18 **HESSE 
 **********

 FCN=   5262.526     FROM HESSE     STATUS=OK           423 CALLS     3341 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.0644        .15896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.3431        .28871E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.2541        4.1556        .24156E-03   -1.5484    
   4  Prefactor     173.93        113.59        .15290E-03   -1.3063    
   5  Prefactor     .10000E-03    6.5197        .18053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .37717        .85918E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.769        11.330        .10795E-03   -1.4966    
   9  norm          11.970        11.266        .11580E-03   -1.5016    
  10  Prefactor     24.624        36.223        .80735E-04   -1.4715    
  11  Prefactor     2.1252        56.877        .14168E-02   -1.5416    
  12  Prefactor     .10000E-03    84.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.0489        .17357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .21982        .32903E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.1661        .31522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.979        10.170        .11119E-03   -1.4987    
  17  Prefactor     26.341        29.348        .78057E-04   -1.4681    
  18  Prefactor     .10000E-03    49.870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.1219        .14364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    10.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    64.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.4598        4.2595        .11619E-03   -1.5200    
  23  Prefactor     20.816        36.111        .87805E-04   -1.4795    
  24  Normalizat    .94566        .23639        .26985E-03   -.94874    
  25  Prefactor     .75603        .14615        .19332E-03   -1.0137    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23422e-09
Minuit parameter uncertainties:
  1  2.00236e-05
  2  8.21756e-05
  3  4.15654
  4  113.729
  5  5.19092e-06
  6  4.91276e-07
  7  9.20563e-06
  8  11.3314
  9  11.2679
  10  36.2554
  11  22.0112
  12  0.00026038
  13  7.32227e-07
  14  4.62975e-07
  15  2.48594e-06
  16  10.1713
  17  29.3641
  18  0.00020709
  19  2.61326e-06
  20  5.59566e-07
  21  0.000518103
  22  4.25968
  23  36.149
  24  0.236648
  25  0.146229
Done.

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

Extracting fit parameters...

4FGL J2301.0-0158
   Spectrum: LogParabola
333         norm:  1.197e+01  1.127e+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:  7.560e-01  1.462e-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.457e-01  2.366e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.36
Ra Dec: 345.263 -1.976
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 3.64e-08 +/- 3.43e-08
Energy Flux (Fixed Index): 1.19e-05 +/- 1.12e-05

TS (Fixed Index): 2.36
Ra Dec: 345.263 -1.976
Photon Flux Upper Limit: 1.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.91e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/641131/likelihoodResults_308016001_308275201_4FGL_J2301.0-0158_daily_bin265.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) = 5262.48691893
delta logL = 0.0388631670839

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5262.48599927
delta logL = 0.0397828276709

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.603       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0825       1.0000          .0000       5.0000    
     3 'Normalizat'    .95410       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75314       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5262.486     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      257 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.600        11.483        .11760E-03    .39054E-04
   2  alpha         2.0822        .80383        .19414E-01    .16619E-04
   3  Normalizat    .95381        .22549        .26879E-03    .52599E-03
   4  Prefactor     .75321        .14595        .19364E-03    .74873E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 11.5997
  alpha      = 2.08222
  Normalizat = 0.953813
  Prefactor  = 0.753208
 **********
 **   18 **HESSE 
 **********

 FCN=   5262.486     FROM HESSE     STATUS=OK            25 CALLS      282 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.600        11.591        .47042E-05   -1.5027    
   2  alpha         2.0822        .81105        .77657E-03   -.16790    
   3  Normalizat    .95381        .22566        .53759E-04   -.94594    
   4  Prefactor     .75321        .14605        .38728E-04   -1.0148    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.57641e-10
Minuit parameter uncertainties:
  1  11.5929
  2  0.82645
  3  0.225888
  4  0.146123
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/641131': 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) = 5262.4859972
delta logL = 0.039784896021

Extracting fit parameters...

4FGL J2301.0-0158
   Spectrum: LogParabola
333         norm:  1.160e+01  1.159e+01  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  2.082e+00  8.264e-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:  7.532e-01  1.461e-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.538e-01  2.259e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.44
Ra Dec: 345.263 -1.976
Photon Index (Free Index): 2.08 +/- 0.83
Photon Flux (Free Index): 2.92e-08 +/- 3.81e-08
Energy Flux (Free Index): 1.25e-05 +/- 1.23e-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/641131/cmap_HighResolution_308016001_308275201_4FGL_J2301.0-0158_daily_bin265.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.91e-05', comment='SUCCESS', photon_flux='3.64e-08', energy_flux2='1.25e-05', photon_flux_error='3.43e-08', dlogl='3.98e-02', energy_flux='1.19e-05', photon_flux2='2.92e-08', job_status='DONE', time_completed='2021-09-29 05:49:50.040003', photon_index_error2='0.83', photon_index2='2.08', ts='2.36', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='1.20e-07', energy_flux_error2='1.23e-05', EG='0.95', time_epoch_completed='1632919790.04', return_code='0', job_id='641131', GAL2='0.75', EG2='0.95', return_code2='0', energy_flux_error='1.12e-05', photon_flux_error2='3.81e-08', ts2='2.44', photon_index='2.32' WHERE bin_id='265' AND source_name='4FGL J2301.0-0158' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 05:49:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 641131: <4FGL_J2301.0-0158_daily_bin265> in cluster <slac> Done

Job <4FGL_J2301.0-0158_daily_bin265> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 05:35:27 2021
Job was executed on host(s) <bullet0114>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 05:35:28 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:35:28 2021
Terminated at Wed Sep 29 05:49:50 2021
Results reported at Wed Sep 29 05:49:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2301.0-0158_daily_bin265 345.263 -1.9758 308016001 308275201 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 :                                   608.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             234.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            863 sec.

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

