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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin1644
RA = 339.125, Dec = -23.1552
tmin = 665452801, tmax = 665712001
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='574887', job_status='RUN', time_executed='2022-02-05 00:53:20.760134', time_epoch_executed='1644051200.76' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1644'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/574887

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/574887/ft1_4FGL_J2236.4-2309_daily_bin1644.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/574887/ft2_4FGL_J2236.4-2309_daily_bin1644.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/574887/ft1_4FGL_J2236.4-2309_daily_bin1644.fits outfile=/scratch/kocevski/574887/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1644.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=665452801.0 tmax=665712001.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.69
user 3.44
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/574887/ft2_4FGL_J2236.4-2309_daily_bin1644.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/574887/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1644.fits evtable="EVENTS" outfile="/scratch/kocevski/574887/ft1_filtered_4FGL_J2236.4-2309_daily_bin1644.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.52
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/574887/ft1_filtered_4FGL_J2236.4-2309_daily_bin1644.fits" evtable="EVENTS" scfile=/scratch/kocevski/574887/ft2_4FGL_J2236.4-2309_daily_bin1644.fits sctable="SC_DATA" outfile=/scratch/kocevski/574887/ltcube_665452801_665712001_4FGL_J2236.4-2309_daily_bin1644.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/574887/ft2_4FGL_J2236.4-2309_daily_bin1644.fits
.....................!
real 17.18
user 16.80
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/574887/ft1_filtered_4FGL_J2236.4-2309_daily_bin1644.fits evtable="EVENTS" scfile=/scratch/kocevski/574887/ft2_4FGL_J2236.4-2309_daily_bin1644.fits sctable="SC_DATA" expcube=/scratch/kocevski/574887/ltcube_665452801_665712001_4FGL_J2236.4-2309_daily_bin1644.fits outfile=/scratch/kocevski/574887/expmap_665452801_665712001_4FGL_J2236.4-2309_daily_bin1644.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/574887/ltcube_665452801_665712001_4FGL_J2236.4-2309_daily_bin1644.fits
.....................!
real 191.69
user 186.60
sys 4.42

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/574887/ft1_filtered_4FGL_J2236.4-2309_daily_bin1644.fits scfile=/scratch/kocevski/574887/ft2_4FGL_J2236.4-2309_daily_bin1644.fits outfile=/scratch/kocevski/574887/cmap_665452801_665712001_4FGL_J2236.4-2309_daily_bin1644.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.62
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/574887/ft1_filtered_4FGL_J2236.4-2309_daily_bin1644.fits scfile=/scratch/kocevski/574887/ft2_4FGL_J2236.4-2309_daily_bin1644.fits outfile=/scratch/kocevski/574887/cmap_HighResolution_665452801_665712001_4FGL_J2236.4-2309_daily_bin1644.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.61
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/574887/ft1_filtered_4FGL_J2236.4-2309_daily_bin1644.fits evtable="EVENTS" scfile=/scratch/kocevski/574887/ft2_4FGL_J2236.4-2309_daily_bin1644.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/574887/Model_4FGL_J2236.4-2309_daily_bin1644.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/574887/ft1_filtered_4FGL_J2236.4-2309_daily_bin1644.fits.....................!
real 47.50
user 46.28
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/574887/ft1_filtered_4FGL_J2236.4-2309_daily_bin1644.fits', '/scratch/kocevski/574887/ft2_4FGL_J2236.4-2309_daily_bin1644.fits', expMap='/scratch/kocevski/574887/expmap_665452801_665712001_4FGL_J2236.4-2309_daily_bin1644.fits', expCube='/scratch/kocevski/574887/ltcube_665452801_665712001_4FGL_J2236.4-2309_daily_bin1644.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/574887/Model_4FGL_J2236.4-2309_daily_bin1644.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/574887/ft1_filtered_4FGL_J2236.4-2309_daily_bin1644.fits
Spacecraft file(s): /scratch/kocevski/574887/ft2_4FGL_J2236.4-2309_daily_bin1644.fits
Exposure map: /scratch/kocevski/574887/expmap_665452801_665712001_4FGL_J2236.4-2309_daily_bin1644.fits
Exposure cube: /scratch/kocevski/574887/ltcube_665452801_665712001_4FGL_J2236.4-2309_daily_bin1644.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/574887/Model_4FGL_J2236.4-2309_daily_bin1644.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5293.02286919

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .68055       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.605       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .42504E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .15107E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.778       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.3131       1.0000         .10000E-03   10000.    
    15 'norm      '    .50802       1.0000         .10000E-03   10000.    
    16 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    83.335       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.3336       1.0000         .10000E-03   10000.    
    20 'norm      '    .97800       1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.670       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0909       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0203       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=   5292.991     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     3175 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.308       -.25430E-06** at limit **
   2  Prefactor     .10000E-03    20.194        .11322E-05** at limit **
   3  norm          .68057        .38637        .61171E-08   -.27241E-04
   4  Prefactor     .10000E-03    4.1295        .30551E-08** at limit **
   5  Prefactor     20.610        20.408       -.22881E-06   -.88895E-04
   6  Prefactor     .10000E-03    13.026       -.30020E-06** at limit **
   7  Prefactor     .10000E-03    19.364       -.88914E-06** at limit **
   8  norm          .10000E-03    7.7893       -.12841E-08** at limit **
   9  Prefactor     .10000E-03    12.011        .15764E-06** at limit **
  10  norm          .10000E-03    .35107        .18507E-07** at limit **
  11  norm          .10000E-03    2.0063       -.72342E-08** at limit **
  12  Prefactor     .10000E-03    271.25       -.42695E-05** at limit **
  13  Prefactor     13.778        11.729        .10551E-06   -.79619E-05
  14  Prefactor     4.2323        123.19       -.27259E-04   -.14736E-04
  15  norm          .51147        2.3838        .45536E-05   -.25659E-03
  16  norm          .10000E-03    2.2526       -.46079E-08** at limit **
  17  Prefactor     83.342        62.663        .54174E-05    .40961E-04
  18  Prefactor     .10000E-03    13.194        .32225E-06** at limit **
  19  Prefactor     9.3240        9.7354        .76731E-07   -.34657E-04
  20  norm          .97820        .76161        .88459E-08   -.77349E-04
  21  Prefactor     11.672        13.767       -.98341E-06   -.31327E-03
  22  Prefactor     .10000E-03    4.8202       -.34160E-08** at limit **
  23  Normalizat    1.0909        .22200       -.68763E-06   -.27100E-03
  24  Prefactor     1.0203        .18409        .17470E-06   -.32887E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.680573
  Prefactor  = 0.0001
  Prefactor  = 20.6098
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 13.7778
  Prefactor  = 4.23232
  norm       = 0.511469
  norm       = 0.0001
  Prefactor  = 83.3425
  Prefactor  = 0.0001
  Prefactor  = 9.32396
  norm       = 0.978195
  Prefactor  = 11.672
  Prefactor  = 0.0001
  Normalizat = 1.0909
  Prefactor  = 1.02025
 **********
 **   18 **HESSE 
 **********

 FCN=   5292.991     FROM HESSE     STATUS=OK           393 CALLS     3568 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    20.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .68057        .38369        .33049E-04   -1.5543    
   4  Prefactor     .10000E-03    4.1408        .14438E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     20.610        20.416        .88237E-04   -1.4800    
   6  Prefactor     .10000E-03    13.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    19.384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    7.7932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    74.342        .47258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .35964        .84017E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.0532        .20099E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    275.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.778        11.748        .10791E-03   -1.4965    
  14  Prefactor     4.2323        125.39        .19397E-03   -1.5296    
  15  norm          .51147        2.4447        .11100E-02   -1.5565    
  16  norm          .10000E-03    2.2753        .10650E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     83.342        63.043        .44002E-04   -1.3880    
  18  Prefactor     .10000E-03    13.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.3240        10.206        .13118E-03   -1.5097    
  20  norm          .97820        .77621        .45300E-04   -1.5510    
  21  Prefactor     11.672        13.900        .11727E-03   -1.5025    
  22  Prefactor     .10000E-03    4.8333        .15590E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0909        .26659        .26864E-03   -.90044    
  24  Prefactor     1.0203        .22309        .23723E-03   -.92057    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01758e-08
Minuit parameter uncertainties:
  1  2.09299e-05
  2  0.000113576
  3  0.383687
  4  1.79007e-06
  5  20.4232
  6  1.61911e-05
  7  8.31799e-05
  8  1.60908e-06
  9  0.00101432
  10  1.09191e-06
  11  2.96503e-06
  12  0.00100209
  13  11.7495
  14  46.1802
  15  2.23633
  16  7.53052e-07
  17  63.0932
  18  2.66419e-05
  19  10.2075
  20  0.776219
  21  13.904
  22  1.4623e-06
  23  0.266921
  24  0.223293
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  1.014e-03  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.020e+00  2.233e-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.091e+00  2.669e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 339.125 -23.155
Photon Flux Upper Limit: 1.29e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.02e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/574887/likelihoodResults_665452801_665712001_4FGL_J2236.4-2309_daily_bin1644.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): 102
logL (Free Index) = 5292.99081457
delta logL = -6.31284692645e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5292.99081456
delta logL = -6.31149678156e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96337E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7427       1.0000          .0000       10.000    
     3 'Normalizat'    1.0909       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0203       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=   5292.991     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      215 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.9466        .90715E-01** at limit **
   2  Index         2.7743        6.3060        .50000       -.33198E-05
   3  Normalizat    1.0909        .21254E-02    .60740E-01   -.79079E-04
   4  Prefactor     1.0203        .18307E-02    .42114E-01   -.84055E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.77431
  Normalizat = 1.0909
  Prefactor  = 1.02026
 **********
 **   18 **HESSE 
 **********

 FCN=   5292.991     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      250 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    493.11        .48921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7743        8.4863        .50000       -.46133    
   3  Normalizat    1.0909        .13441E-01    .26864E-03   -.90044    
   4  Prefactor     1.0203        .11585E-01    .23723E-03   -.92057    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.68788e-07
Minuit parameter uncertainties:
  1  0.000104768
  2  554.968
  3  0.0134406
  4  0.0115846
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/574887': 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): 102
logL (Free Index) = 5292.99075142
delta logL = 2.55668055615e-08

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  1.048e-04  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.774e+00  5.550e+02  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.020e+00  1.158e-02  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.091e+00  1.344e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 339.125 -23.155

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/574887/cmap_HighResolution_665452801_665712001_4FGL_J2236.4-2309_daily_bin1644.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', job_status='DONE', photon_flux_upper_limit='1.29e-07', time_completed='2022-02-05 01:03:32.811936', job_id='574887', GAL2='1.02', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1644051812.81', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='2.56e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1644' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Feb  5 01:03:32 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0154>
Subject: Job 574887: <4FGL_J2236.4-2309_daily_bin1644> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin1644> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Sat Feb  5 00:51:43 2022
Job was executed on host(s) <bullet0154>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Feb  5 00:53:07 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Feb  5 00:53:07 2022
Terminated at Sat Feb  5 01:03:33 2022
Results reported at Sat Feb  5 01:03:33 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1644 339.125 -23.1552 665452801 665712001 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 :                                   612.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             383.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   626 sec.
    Turnaround time :                            710 sec.

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

