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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin1105
RA = 339.125, Dec = -23.1552
tmin = 525744001, tmax = 526003201
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='407824', job_status='RUN', time_executed='2021-09-28 17:10:48.002236', time_epoch_executed='1632874248.0' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1105'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/407824

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/407824/ft1_4FGL_J2236.4-2309_daily_bin1105.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/407824/ft2_4FGL_J2236.4-2309_daily_bin1105.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/407824/ft1_4FGL_J2236.4-2309_daily_bin1105.fits outfile=/scratch/kocevski/407824/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1105.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=525744001.0 tmax=526003201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.29
user 4.06
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/407824/ft2_4FGL_J2236.4-2309_daily_bin1105.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/407824/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1105.fits evtable="EVENTS" outfile="/scratch/kocevski/407824/ft1_filtered_4FGL_J2236.4-2309_daily_bin1105.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/407824/ft1_filtered_4FGL_J2236.4-2309_daily_bin1105.fits" evtable="EVENTS" scfile=/scratch/kocevski/407824/ft2_4FGL_J2236.4-2309_daily_bin1105.fits sctable="SC_DATA" outfile=/scratch/kocevski/407824/ltcube_525744001_526003201_4FGL_J2236.4-2309_daily_bin1105.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/407824/ft2_4FGL_J2236.4-2309_daily_bin1105.fits
.....................!
real 12.34
user 11.85
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/407824/ft1_filtered_4FGL_J2236.4-2309_daily_bin1105.fits evtable="EVENTS" scfile=/scratch/kocevski/407824/ft2_4FGL_J2236.4-2309_daily_bin1105.fits sctable="SC_DATA" expcube=/scratch/kocevski/407824/ltcube_525744001_526003201_4FGL_J2236.4-2309_daily_bin1105.fits outfile=/scratch/kocevski/407824/expmap_525744001_526003201_4FGL_J2236.4-2309_daily_bin1105.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/407824/ltcube_525744001_526003201_4FGL_J2236.4-2309_daily_bin1105.fits
.....................!
real 191.22
user 185.12
sys 5.74

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/407824/ft1_filtered_4FGL_J2236.4-2309_daily_bin1105.fits scfile=/scratch/kocevski/407824/ft2_4FGL_J2236.4-2309_daily_bin1105.fits outfile=/scratch/kocevski/407824/cmap_525744001_526003201_4FGL_J2236.4-2309_daily_bin1105.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/407824/ft1_filtered_4FGL_J2236.4-2309_daily_bin1105.fits scfile=/scratch/kocevski/407824/ft2_4FGL_J2236.4-2309_daily_bin1105.fits outfile=/scratch/kocevski/407824/cmap_HighResolution_525744001_526003201_4FGL_J2236.4-2309_daily_bin1105.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.54
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/407824/ft1_filtered_4FGL_J2236.4-2309_daily_bin1105.fits evtable="EVENTS" scfile=/scratch/kocevski/407824/ft2_4FGL_J2236.4-2309_daily_bin1105.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/407824/Model_4FGL_J2236.4-2309_daily_bin1105.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/407824/ft1_filtered_4FGL_J2236.4-2309_daily_bin1105.fits.....................!
real 55.57
user 54.14
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/407824/ft1_filtered_4FGL_J2236.4-2309_daily_bin1105.fits', '/scratch/kocevski/407824/ft2_4FGL_J2236.4-2309_daily_bin1105.fits', expMap='/scratch/kocevski/407824/expmap_525744001_526003201_4FGL_J2236.4-2309_daily_bin1105.fits', expCube='/scratch/kocevski/407824/ltcube_525744001_526003201_4FGL_J2236.4-2309_daily_bin1105.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/407824/Model_4FGL_J2236.4-2309_daily_bin1105.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/407824/ft1_filtered_4FGL_J2236.4-2309_daily_bin1105.fits
Spacecraft file(s): /scratch/kocevski/407824/ft2_4FGL_J2236.4-2309_daily_bin1105.fits
Exposure map: /scratch/kocevski/407824/expmap_525744001_526003201_4FGL_J2236.4-2309_daily_bin1105.fits
Exposure cube: /scratch/kocevski/407824/ltcube_525744001_526003201_4FGL_J2236.4-2309_daily_bin1105.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/407824/Model_4FGL_J2236.4-2309_daily_bin1105.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) = 7269.38951341

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .78541       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.5860       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.8450       1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.592       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.7822       1.0000         .10000E-03   10000.    
    10 'norm      '    .52254       1.0000         .10000E-03   10000.    
    11 'norm      '    1.0777       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.171       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.8613       1.0000         .10000E-03   10000.    
    16 'norm      '    9.6896       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.8068       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.668       1.0000         .10000E-03   10000.    
    20 'norm      '    1.8394       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .54877E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .63671       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .59598       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1683       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.

 FCN=   7269.387     FROM MIGRAD    STATUS=CONVERGED    532 CALLS     3112 TOTAL
                     EDM=   .71E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.8240       -.72180E-07** at limit **
   2  Prefactor     .10000E-03    15.023        .78965E-07** at limit **
   3  norm          .78540        .28723       -.53918E-09    .37118E-04
   4  Prefactor     6.5859        7.0467       -.16378E-06    .67341E-04
   5  Prefactor     .10000E-03    7.7868        .55393E-07** at limit **
   6  Prefactor     9.8448        10.215        .28940E-07    .16780E-05
   7  Prefactor     28.598        40.191        .55882E-06   -.15536E-04
   8  norm          .10000E-03    5.6864        .15838E-06** at limit **
   9  Prefactor     5.7836        9.2366        .30806E-06    .47949E-04
  10  norm          .52259        .54099       -.16592E-08   -.28793E-04
  11  norm          1.0799        2.6844        .53654E-06    .32922E-03
  12  Prefactor     11.132        50.951       -.53839E-05    .22053E-04
  13  Prefactor     .10000E-03    3.6012        .44261E-07** at limit **
  14  Prefactor     .10000E-03    15.237       -.15981E-06** at limit **
  15  norm          4.8611        1.4130       -.39635E-07    .29786E-03
  16  norm          9.6896        4.6607        .94613E-07   -.57725E-04
  17  Prefactor     8.8155        29.124        .12337E-05   -.93264E-05
  18  Prefactor     .10000E-03    6.9003       -.16504E-06** at limit **
  19  Prefactor     17.663        11.928       -.84165E-06   -.97474E-04
  20  norm          1.8394        .79964       -.48845E-07   -.31496E-03
  21  Prefactor     .10000E-03    6.0943       -.35480E-07** at limit **
  22  Prefactor     .64829        70.060        .54513E-05   -.20092E-04
  23  Normalizat    .59594        .17231       -.25080E-06    .26525E-05
  24  Prefactor     1.1684        .15194        .82392E-07   -.62269E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.785398
  Prefactor  = 6.58594
  Prefactor  = 0.0001
  Prefactor  = 9.84478
  Prefactor  = 28.5981
  norm       = 0.0001
  Prefactor  = 5.78363
  norm       = 0.52259
  norm       = 1.07987
  Prefactor  = 11.1316
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.8611
  norm       = 9.68955
  Prefactor  = 8.81554
  Prefactor  = 0.0001
  Prefactor  = 17.6632
  norm       = 1.83935
  Prefactor  = 0.000100003
  Prefactor  = 0.648286
  Normalizat = 0.595936
  Prefactor  = 1.16838
 **********
 **   18 **HESSE 
 **********

 FCN=   7269.387     FROM HESSE     STATUS=OK           407 CALLS     3519 TOTAL
                     EDM=   .84E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.8292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .78540        .28609        .26846E-04   -1.5531    
   4  Prefactor     6.5859        7.0103        .78186E-03   -1.5195    
   5  Prefactor     .10000E-03    7.8609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.8448        10.212        .12771E-03   -1.5080    
   7  Prefactor     28.598        40.121        .74925E-04   -1.4638    
   8  norm          .10000E-03    5.6916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.7836        9.2763        .83513E-03   -1.5227    
  10  norm          .52259        .52689        .61376E-04   -1.5563    
  11  norm          1.0799        2.6497        .15866E-03   -1.5500    
  12  Prefactor     11.132        51.139        .11987E-03   -1.5041    
  13  Prefactor     .10000E-03    3.6173        .15802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.8611        1.4225        .46222E-04   -1.5267    
  16  norm          9.6896        4.6671        .58089E-03   -1.5085    
  17  Prefactor     8.8155        29.275        .13507E-03   -1.5114    
  18  Prefactor     .10000E-03    6.9200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     17.663        12.857        .95285E-04   -1.4867    
  20  norm          1.8394        .81569        .39968E-04   -1.5437    
  21  Prefactor     .10000E-03    19.121        .39460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .64829        86.493        .45870E-02   -1.5547    
  23  Normalizat    .59594        .19919        .30731E-03   -1.0816    
  24  Prefactor     1.1684        .17643        .20623E-03   -.87310    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.39534e-08
Minuit parameter uncertainties:
  1  2.82264e-06
  2  5.08561e-06
  3  0.286088
  4  7.01113
  5  4.52487e-06
  6  10.2143
  7  40.1593
  8  4.94781e-06
  9  9.27856
  10  0.526894
  11  2.64996
  12  47.7857
  13  2.63859e-07
  14  1.51846e-06
  15  1.42255
  16  4.66732
  17  29.3229
  18  1.24824e-05
  19  12.8593
  20  0.815697
  21  0.000455065
  22  14.9972
  23  0.19943
  24  0.17652
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  5.784e+00  9.279e+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:  1.168e+00  1.765e-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:  5.959e-01  1.994e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.53
Ra Dec: 339.125 -23.155
Photon Flux Upper Limit: 8.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/407824/likelihoodResults_525744001_526003201_4FGL_J2236.4-2309_daily_bin1105.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) = 7269.10109529
delta logL = 0.28602065133

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7269.09479787
delta logL = 0.292318068024

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6245       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7284       1.0000          .0000       10.000    
     3 'Normalizat'    .57299       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1819       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=   7269.095     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      263 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6229        101.81        .53054E-02    .85583E-03
   2  Index         3.7297        6.8602        .20863        .10576E-03
   3  Normalizat    .57291        .47619E-01    .70714E-01   -.36654E-04
   4  Prefactor     1.1821        .43729E-01    .35074E-01   -.50048E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.62293
  Index      = 3.72969
  Normalizat = 0.572905
  Prefactor  = 1.18206
 **********
 **   18 **HESSE 
 **********

 FCN=   7269.095     FROM HESSE     STATUS=OK            31 CALLS      294 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6229        9.3117        .16142E-03   -1.5327    
   2  Index         3.7297        1.9671        .10975E-01   -.25688    
   3  Normalizat    .57291        .19153        .31302E-03   -1.0915    
   4  Prefactor     1.1821        .17320        .20516E-03   -.86885    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.89227e-10
Minuit parameter uncertainties:
  1  9.31537
  2  2.02585
  3  0.191755
  4  0.173284
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/407824': 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) = 7269.09479596
delta logL = 0.2923199719

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  3.623e+00  9.315e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  3.730e+00  2.026e+00  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:  1.182e+00  1.733e-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:  5.729e-01  1.918e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.15
Ra Dec: 339.125 -23.155
Photon Index (Free Index): 3.73 +/- 2.03
Photon Flux (Free Index): 3.59e-08 +/- 3.80e-08
Energy Flux (Free Index): 5.65e-06 +/- 6.56e-06

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/407824/cmap_HighResolution_525744001_526003201_4FGL_J2236.4-2309_daily_bin1105.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.02e-03', comment='SUCCESS', energy_flux2='5.65e-06', dlogl='2.92e-01', photon_flux2='3.59e-08', job_status='DONE', time_completed='2021-09-28 17:23:01.724074', photon_index_error2='2.03', photon_index2='3.73', ts='0.53', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', photon_flux_upper_limit='8.90e-08', energy_flux_error2='6.56e-06', EG='0.60', time_epoch_completed='1632874981.72', return_code='0', job_id='407824', GAL2='1.18', EG2='0.57', return_code2='0', photon_flux_error2='3.80e-08', ts2='1.15', photon_index='2.74' WHERE bin_id='1105' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:23:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 407824: <4FGL_J2236.4-2309_daily_bin1105> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin1105> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 17:10:38 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:10:39 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:39 2021
Terminated at Tue Sep 28 17:23:02 2021
Results reported at Tue Sep 28 17:23:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1105 339.125 -23.1552 525744001 526003201 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 :                                   731.04 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             333.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   742 sec.
    Turnaround time :                            744 sec.

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

