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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin1017
RA = 339.125, Dec = -23.1552
tmin = 502934401, tmax = 503193601
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='407695', job_status='RUN', time_executed='2021-09-28 17:11:27.291773', time_epoch_executed='1632874287.29' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1017'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/407695

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/407695/ft1_4FGL_J2236.4-2309_daily_bin1017.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/407695/ft2_4FGL_J2236.4-2309_daily_bin1017.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/407695/ft1_4FGL_J2236.4-2309_daily_bin1017.fits outfile=/scratch/kocevski/407695/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1017.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=502934401.0 tmax=503193601.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.60
user 3.36
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/407695/ft2_4FGL_J2236.4-2309_daily_bin1017.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/407695/ft2_4FGL_J2236.4-2309_daily_bin1017.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/407695/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1017.fits evtable="EVENTS" outfile="/scratch/kocevski/407695/ft1_filtered_4FGL_J2236.4-2309_daily_bin1017.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.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/407695/ft1_filtered_4FGL_J2236.4-2309_daily_bin1017.fits" evtable="EVENTS" scfile=/scratch/kocevski/407695/ft2_4FGL_J2236.4-2309_daily_bin1017.fits sctable="SC_DATA" outfile=/scratch/kocevski/407695/ltcube_502934401_503193601_4FGL_J2236.4-2309_daily_bin1017.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/407695/ft2_4FGL_J2236.4-2309_daily_bin1017.fits
.....................!
real 11.80
user 11.45
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/407695/ft1_filtered_4FGL_J2236.4-2309_daily_bin1017.fits evtable="EVENTS" scfile=/scratch/kocevski/407695/ft2_4FGL_J2236.4-2309_daily_bin1017.fits sctable="SC_DATA" expcube=/scratch/kocevski/407695/ltcube_502934401_503193601_4FGL_J2236.4-2309_daily_bin1017.fits outfile=/scratch/kocevski/407695/expmap_502934401_503193601_4FGL_J2236.4-2309_daily_bin1017.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/407695/ltcube_502934401_503193601_4FGL_J2236.4-2309_daily_bin1017.fits
.....................!
real 190.56
user 185.17
sys 4.95

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

Setting source of interest to:
4FGL J2236.4-2309 @ 339.125 -23.1552

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/407695/ft1_filtered_4FGL_J2236.4-2309_daily_bin1017.fits scfile=/scratch/kocevski/407695/ft2_4FGL_J2236.4-2309_daily_bin1017.fits outfile=/scratch/kocevski/407695/cmap_502934401_503193601_4FGL_J2236.4-2309_daily_bin1017.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=339.125 yref=-23.1552 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.53
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/407695/ft1_filtered_4FGL_J2236.4-2309_daily_bin1017.fits scfile=/scratch/kocevski/407695/ft2_4FGL_J2236.4-2309_daily_bin1017.fits outfile=/scratch/kocevski/407695/cmap_HighResolution_502934401_503193601_4FGL_J2236.4-2309_daily_bin1017.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=339.125 yref=-23.1552 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.55
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/407695/ft1_filtered_4FGL_J2236.4-2309_daily_bin1017.fits evtable="EVENTS" scfile=/scratch/kocevski/407695/ft2_4FGL_J2236.4-2309_daily_bin1017.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/407695/Model_4FGL_J2236.4-2309_daily_bin1017.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/407695/ft1_filtered_4FGL_J2236.4-2309_daily_bin1017.fits.....................!
real 58.55
user 57.12
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/407695/ft1_filtered_4FGL_J2236.4-2309_daily_bin1017.fits', '/scratch/kocevski/407695/ft2_4FGL_J2236.4-2309_daily_bin1017.fits', expMap='/scratch/kocevski/407695/expmap_502934401_503193601_4FGL_J2236.4-2309_daily_bin1017.fits', expCube='/scratch/kocevski/407695/ltcube_502934401_503193601_4FGL_J2236.4-2309_daily_bin1017.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/407695/Model_4FGL_J2236.4-2309_daily_bin1017.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2236.4-2309'

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  4.382e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.743e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
249        Scale:  4.484e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/407695/ft1_filtered_4FGL_J2236.4-2309_daily_bin1017.fits
Spacecraft file(s): /scratch/kocevski/407695/ft2_4FGL_J2236.4-2309_daily_bin1017.fits
Exposure map: /scratch/kocevski/407695/expmap_502934401_503193601_4FGL_J2236.4-2309_daily_bin1017.fits
Exposure cube: /scratch/kocevski/407695/ltcube_502934401_503193601_4FGL_J2236.4-2309_daily_bin1017.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/407695/Model_4FGL_J2236.4-2309_daily_bin1017.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) = 7637.99875801

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.3366       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    36.562       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    19.078       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.5652       1.0000         .10000E-03   10000.    
    10 'norm      '    .34044       1.0000         .10000E-03   10000.    
    11 'norm      '    .93633       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10315E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    38.713       1.0000         .10000E-03   10000.    
    15 'norm      '    .87798       1.0000         .10000E-03   10000.    
    16 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    79.690       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.893       1.0000         .10000E-03   10000.    
    20 'norm      '    .40176       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.7898       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .92304       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .91430       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+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=   7637.915     FROM MIGRAD    STATUS=CONVERGED    930 CALLS     3763 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.423        .18142E-02** at limit **
   2  Prefactor     .10000E-03    25.109        .18142E-02** at limit **
   3  norm          1.3366        .33902        .24858E-04    .35993E-03
   4  Prefactor     .10000E-03    2.0234        .12112E-02** at limit **
   5  Prefactor     .10000E-03    3.6126        .16201E-02** at limit **
   6  Prefactor     36.563        15.604        .66280E-04   -.80617E-05
   7  Prefactor     .10000E-03    49.137        .18142E-02** at limit **
   8  norm          19.076        15.441        .91697E-04   -.76124E-04
   9  Prefactor     8.5619        9.0703        .13697E-03   -.30304E-03
  10  norm          .34047        .63776        .42404E-04    .40216E-05
  11  norm          .93656        1.2000        .12872E-02   -.14469E-02
  12  Prefactor     .10000E-03    36.225        .18142E-02** at limit **
  13  Prefactor     .10000E-03    3.8760        .16737E-02** at limit **
  14  Prefactor     38.719        40.865        .64419E-04    .64063E-04
  15  norm          .87835        3.2340        .11748E-03    .49065E-04
  16  norm          .10000E-03    1.4415        .10200E-02** at limit **
  17  Prefactor     79.667        42.747        .44989E-04    .29010E-03
  18  Prefactor     .10000E-03    5.8008        .18142E-02** at limit **
  19  Prefactor     16.887        8.0837        .97446E-04   -.40518E-03
  20  norm          .40217        .48382        .58203E-03   -.17924E-02
  21  Prefactor     3.7887        7.8075        .20736E-03   -.15269E-03
  22  Prefactor     .10000E-03    1.8561        .11620E-02** at limit **
  23  Normalizat    .92302        .18662        .25570E-03   -.60511E-04
  24  Prefactor     .91428        .16247        .22843E-03    .86497E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.33663
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.5634
  Prefactor  = 0.000100001
  norm       = 19.0758
  Prefactor  = 8.56188
  norm       = 0.340468
  norm       = 0.936562
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 38.7188
  norm       = 0.878347
  norm       = 0.0001
  Prefactor  = 79.667
  Prefactor  = 0.0001
  Prefactor  = 16.8875
  norm       = 0.402169
  Prefactor  = 3.7887
  Prefactor  = 0.0001
  Normalizat = 0.923023
  Prefactor  = 0.914281
 **********
 **   18 **HESSE 
 **********

 FCN=   7637.915     FROM HESSE     STATUS=OK           375 CALLS     4138 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.432        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    25.112        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.3366        .33902        .99432E-06   -1.5477    
   4  Prefactor     .10000E-03    2.0235        .24224E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.6129        .32402E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     36.563        15.605        .26512E-05   -1.4498    
   7  Prefactor     .10000E-03    49.146        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          19.076        15.440        .18339E-04   -1.4834    
   9  Prefactor     8.5619        9.0696        .54788E-05   -1.5123    
  10  norm          .34047        .63772        .16962E-05   -1.5591    
  11  norm          .93656        1.1993        .51488E-04   -1.5514    
  12  Prefactor     .10000E-03    36.232        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.8769        .33474E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     38.719        40.653        .25768E-05   -1.4463    
  15  norm          .87835        3.2138        .46990E-05   -1.5521    
  16  norm          .10000E-03    1.4416        .20400E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     79.667        42.739        .89978E-05   -1.3920    
  18  Prefactor     .10000E-03    5.8016        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.887        8.0673        .38978E-05   -1.4886    
  20  norm          .40217        .48267        .23281E-04   -1.5581    
  21  Prefactor     3.7887        7.8073        .82943E-05   -1.5319    
  22  Prefactor     .10000E-03    1.8561        .23240E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .92302        .18681        .10228E-04   -.95656    
  24  Prefactor     .91428        .16264        .91374E-05   -.95644    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.33921e-10
Minuit parameter uncertainties:
  1  2.62256e-06
  2  8.24141e-05
  3  0.339025
  4  1.10219e-06
  5  1.01102e-06
  6  15.6063
  7  0.000403702
  8  15.4432
  9  9.07106
  10  0.637736
  11  1.19938
  12  0.00040736
  13  4.24745e-06
  14  40.6826
  15  3.21441
  16  4.23857e-07
  17  42.7556
  18  1.13027e-06
  19  8.06782
  20  0.482672
  21  7.80938
  22  3.30108e-07
  23  0.186939
  24  0.162729
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  8.562e+00  9.071e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.743e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
249        Scale:  4.484e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  9.143e-01  1.627e-01  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  9.230e-01  1.869e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.22
Ra Dec: 339.125 -23.155
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 3.01e-08 +/- 3.19e-08
Energy Flux (Fixed Index): 7.02e-06 +/- 7.44e-06

TS (Fixed Index): 1.22
Ra Dec: 339.125 -23.155
Photon Flux Upper Limit: 1.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/407695/likelihoodResults_502934401_503193601_4FGL_J2236.4-2309_daily_bin1017.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) = 7636.95713351
delta logL = 0.957425193775

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7636.93999005
delta logL = 0.974568653285

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7636.940     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      212 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.312        8.8248        .31202E-02    .69644E-03
   2  Index         1.8545        .37647        .22643       -.75296E-04
   3  Normalizat    .94506        .15250        .45475E-01    .43796E-05
   4  Prefactor     .89776        .13627        .44976E-01   -.21624E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.3119
  Index      = 1.85452
  Normalizat = 0.94506
  Prefactor  = 0.897764
 **********
 **   18 **HESSE 
 **********

 FCN=   7636.940     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .45E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.312        10.023        .62404E-03   -1.5066    
   2  Index         1.8545        .52162        .82068E-02   -.68039    
   3  Normalizat    .94506        .17751        .25294E-03   -.94894    
   4  Prefactor     .89776        .15845        .23008E-03   -.96219    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.45831e-12
Minuit parameter uncertainties:
  1  10.0242
  2  0.523202
  3  0.177625
  4  0.158532
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/407695': 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) = 7636.9399899
delta logL = 0.974568808037

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.031e+01  1.002e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  1.855e+00  5.232e-01  0.000e+00  1.000e+01 (-1.000e+00)
249        Scale:  4.484e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  8.978e-01  1.585e-01  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  9.451e-01  1.776e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.17
Ra Dec: 339.125 -23.155
Photon Index (Free Index): 1.85 +/- 0.52
Photon Flux (Free Index): 1.95e-08 +/- 2.09e-08
Energy Flux (Free Index): 1.98e-05 +/- 2.38e-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/407695/cmap_HighResolution_502934401_503193601_4FGL_J2236.4-2309_daily_bin1017.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.91e-03', comment='SUCCESS', photon_flux='3.01e-08', energy_flux2='1.98e-05', photon_flux_error='3.19e-08', dlogl='9.75e-01', energy_flux='7.02e-06', photon_flux2='1.95e-08', job_status='DONE', time_completed='2021-09-28 17:24:50.351237', photon_index_error2='0.52', photon_index2='1.85', ts='1.22', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.00e-07', energy_flux_error2='2.38e-05', EG='0.92', time_epoch_completed='1632875090.35', return_code='0', job_id='407695', GAL2='0.90', EG2='0.95', return_code2='0', energy_flux_error='7.44e-06', photon_flux_error2='2.09e-08', ts2='3.17', photon_index='2.74' WHERE bin_id='1017' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:24:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 407695: <4FGL_J2236.4-2309_daily_bin1017> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin1017> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 17:10:28 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:10:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 17:10:29 2021
Terminated at Tue Sep 28 17:24:51 2021
Results reported at Tue Sep 28 17:24:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1017 339.125 -23.1552 502934401 503193601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2236.4-2309 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   801.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             336.07 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.

