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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin536
RA = 339.125, Dec = -23.1552
tmin = 378259201, tmax = 378518401
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='405980', job_status='RUN', time_executed='2021-09-28 17:07:53.581712', time_epoch_executed='1632874073.58' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='536'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/405980

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/405980/ft1_4FGL_J2236.4-2309_daily_bin536.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/405980/ft2_4FGL_J2236.4-2309_daily_bin536.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/405980/ft1_4FGL_J2236.4-2309_daily_bin536.fits outfile=/scratch/kocevski/405980/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin536.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=378259201.0 tmax=378518401.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 5.01
user 4.20
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/405980/ft2_4FGL_J2236.4-2309_daily_bin536.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/405980/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin536.fits evtable="EVENTS" outfile="/scratch/kocevski/405980/ft1_filtered_4FGL_J2236.4-2309_daily_bin536.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.54
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/405980/ft1_filtered_4FGL_J2236.4-2309_daily_bin536.fits" evtable="EVENTS" scfile=/scratch/kocevski/405980/ft2_4FGL_J2236.4-2309_daily_bin536.fits sctable="SC_DATA" outfile=/scratch/kocevski/405980/ltcube_378259201_378518401_4FGL_J2236.4-2309_daily_bin536.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/405980/ft2_4FGL_J2236.4-2309_daily_bin536.fits
.....................!
real 14.11
user 13.74
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/405980/ft1_filtered_4FGL_J2236.4-2309_daily_bin536.fits evtable="EVENTS" scfile=/scratch/kocevski/405980/ft2_4FGL_J2236.4-2309_daily_bin536.fits sctable="SC_DATA" expcube=/scratch/kocevski/405980/ltcube_378259201_378518401_4FGL_J2236.4-2309_daily_bin536.fits outfile=/scratch/kocevski/405980/expmap_378259201_378518401_4FGL_J2236.4-2309_daily_bin536.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/405980/ltcube_378259201_378518401_4FGL_J2236.4-2309_daily_bin536.fits
.....................!
real 193.06
user 187.59
sys 5.10

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/405980/ft1_filtered_4FGL_J2236.4-2309_daily_bin536.fits scfile=/scratch/kocevski/405980/ft2_4FGL_J2236.4-2309_daily_bin536.fits outfile=/scratch/kocevski/405980/cmap_378259201_378518401_4FGL_J2236.4-2309_daily_bin536.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.59
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/405980/ft1_filtered_4FGL_J2236.4-2309_daily_bin536.fits scfile=/scratch/kocevski/405980/ft2_4FGL_J2236.4-2309_daily_bin536.fits outfile=/scratch/kocevski/405980/cmap_HighResolution_378259201_378518401_4FGL_J2236.4-2309_daily_bin536.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/405980/ft1_filtered_4FGL_J2236.4-2309_daily_bin536.fits evtable="EVENTS" scfile=/scratch/kocevski/405980/ft2_4FGL_J2236.4-2309_daily_bin536.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/405980/Model_4FGL_J2236.4-2309_daily_bin536.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/405980/ft1_filtered_4FGL_J2236.4-2309_daily_bin536.fits.....................!
real 55.34
user 53.92
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .30971E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    .90076       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.3144       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.1624       1.0000         .10000E-03   10000.    
     7 'Prefactor '    29.321       1.0000         .10000E-03   10000.    
     8 'norm      '    20.183       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.0032       1.0000         .10000E-03   10000.    
    10 'norm      '    2.1975       1.0000         .10000E-03   10000.    
    11 'norm      '    1.0898       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.0863       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.8282       1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.668       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.0765       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .73265       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0445       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .84320       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=   7108.674     FROM MIGRAD    STATUS=CONVERGED    581 CALLS     2427 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.146        .90712E-02** at limit **
   2  Prefactor     .10000E-03    57.073        .14284    ** at limit **
   3  norm          .90078        .36119        .69134E-02   -.14952E-03
   4  Prefactor     7.3115        7.2234        .37076E-02   -.18492E-03
   5  Prefactor     .10000E-03    8.3138        .90712E-02** at limit **
   6  Prefactor     2.1940        24.399        .70026E-02    .14974E-03
   7  Prefactor     29.325        31.637        .18497E-02    .10693E-02
   8  norm          20.187        15.502        .22289E-02   -.16090E-02
   9  Prefactor     3.0022        6.3880        .58555E-02   -.14102E-02
  10  norm          2.1976        .79285        .69394E-02    .14093E-03
  11  norm          1.0899        1.1245        .11461E-01    .42371E-04
  12  Prefactor     .10000E-03    14.341        .90712E-02** at limit **
  13  Prefactor     2.0866        7.7438        .71463E-02    .45941E-03
  14  Prefactor     .10000E-03    5.1822        .90712E-02** at limit **
  15  norm          .10000E-03    .36543        .19580E-01** at limit **
  16  norm          1.8283        2.3037        .77175E-02    .43340E-03
  17  Prefactor     17.673        20.354        .23821E-02    .50546E-03
  18  Prefactor     .10000E-03    3.5649        .90712E-02** at limit **
  19  Prefactor     .10000E-03    3.5120        .90712E-02** at limit **
  20  norm          1.0765        .55329        .87099E-02    .70412E-03
  21  Prefactor     .10000E-03    4.6985        .90712E-02** at limit **
  22  Prefactor     .73794        4.5802        .89327E-01    .89207E-04
  23  Normalizat    1.0445        .16416        .40937E-01    .18506E-04
  24  Prefactor     .84321        .14220        .44277E-01    .19473E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.900776
  Prefactor  = 7.31149
  Prefactor  = 0.0001
  Prefactor  = 2.19397
  Prefactor  = 29.3245
  norm       = 20.1866
  Prefactor  = 3.00216
  norm       = 2.19756
  norm       = 1.08986
  Prefactor  = 0.0001
  Prefactor  = 2.08664
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.82827
  Prefactor  = 17.6734
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.07645
  Prefactor  = 0.0001
  Prefactor  = 0.737942
  Normalizat = 1.0445
  Prefactor  = 0.843215
 **********
 **   18 **HESSE 
 **********

 FCN=   7108.674     FROM HESSE     STATUS=OK           411 CALLS     2838 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    47.956        .16001       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .90078        .35905        .30708E-04   -1.5518    
   4  Prefactor     7.3115        7.2079        .14830E-03   -1.5167    
   5  Prefactor     .10000E-03    8.5098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.1940        24.352        .28011E-03   -1.5412    
   7  Prefactor     29.325        31.640        .73990E-04   -1.4624    
   8  norm          20.187        15.501        .89154E-04   -1.4809    
   9  Prefactor     3.0022        6.3706        .23422E-03   -1.5361    
  10  norm          2.1976        .79182        .43418E-04   -1.5411    
  11  norm          1.0899        1.1029        .88221E-04   -1.5499    
  12  Prefactor     .10000E-03    14.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.0866        7.7557        .28585E-03   -1.5419    
  14  Prefactor     .10000E-03    5.2081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .58890        .93758E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.8283        2.2807        .13666E-03   -1.5438    
  17  Prefactor     17.673        19.239        .95285E-04   -1.4867    
  18  Prefactor     .10000E-03    3.5674        .15540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.5343        .15370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.0765        .55556        .38982E-04   -1.5500    
  21  Prefactor     .10000E-03    4.7223        .17845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .73794        21.241        .31153E-02   -1.5536    
  23  Normalizat    1.0445        .19200        .23306E-03   -.91554    
  24  Prefactor     .84321        .16730        .23033E-03   -.98155    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22659e-08
Minuit parameter uncertainties:
  1  1.78398e-05
  2  0.000883995
  3  0.359048
  4  7.2088
  5  6.59636e-07
  6  14.6259
  7  31.658
  8  15.5045
  9  6.37203
  10  0.791826
  11  1.10293
  12  2.84423e-05
  13  7.7594
  14  3.25058e-06
  15  4.15109e-07
  16  2.2808
  17  19.2456
  18  4.14214e-06
  19  2.16759e-06
  20  0.555563
  21  2.62591e-06
  22  7.92079
  23  0.192125
  24  0.1674
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  3.002e+00  6.372e+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:  8.432e-01  1.674e-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:  1.045e+00  1.921e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/405980/likelihoodResults_378259201_378518401_4FGL_J2236.4-2309_daily_bin536.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) = 7107.31538577
delta logL = 1.35898975307

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7107.19774682
delta logL = 1.47662870326

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4182       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5495       1.0000          .0000       10.000    
     3 'Normalizat'    1.0624       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82448       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=   7107.198     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      210 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4232        4.7987        .43158E-02    .23836E-03
   2  Index         1.5494        .34061        .20734       -.16812E-03
   3  Normalizat    1.0624        .15612        .39794E-01   -.15623E-03
   4  Prefactor     .82445        .14072        .44035E-01   -.21359E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.42318
  Index      = 1.54943
  Normalizat = 1.06242
  Prefactor  = 0.824449
 **********
 **   18 **HESSE 
 **********

 FCN=   7107.198     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4232        5.8692        .16908E-03   -1.5242    
   2  Index         1.5494        .49406        .77422E-02   -.76165    
   3  Normalizat    1.0624        .18270        .23120E-03   -.90968    
   4  Prefactor     .82445        .16461        .23229E-03   -.98833    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70659e-10
Minuit parameter uncertainties:
  1  5.86987
  2  0.495605
  3  0.182808
  4  0.164706
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/405980': 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) = 7107.19774624
delta logL = 1.47662928437

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  5.423e+00  5.870e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  1.549e+00  4.956e-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.244e-01  1.647e-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:  1.062e+00  1.828e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.24
Ra Dec: 339.125 -23.155
Photon Index (Free Index): 1.55 +/- 0.50
Photon Flux (Free Index): 9.87e-09 +/- 1.02e-08
Energy Flux (Free Index): 2.64e-05 +/- 3.76e-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/405980/cmap_HighResolution_378259201_378518401_4FGL_J2236.4-2309_daily_bin536.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.49e-03', comment='SUCCESS', energy_flux2='2.64e-05', dlogl='1.48e+00', photon_flux2='9.87e-09', job_status='DONE', time_completed='2021-09-28 17:19:09.251874', photon_index_error2='0.50', photon_index2='1.55', ts='0.27', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='6.95e-08', energy_flux_error2='3.76e-05', EG='1.04', time_epoch_completed='1632874749.25', return_code='0', job_id='405980', GAL2='0.82', EG2='1.06', return_code2='0', photon_flux_error2='1.02e-08', ts2='3.24', photon_index='2.74' WHERE bin_id='536' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:19:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 405980: <4FGL_J2236.4-2309_daily_bin536> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin536> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 17:05:15 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:05:17 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:05:17 2021
Terminated at Tue Sep 28 17:19:09 2021
Results reported at Tue Sep 28 17:19:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin536 339.125 -23.1552 378259201 378518401 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 :                                   674.26 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             276.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            834 sec.

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

