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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin826
RA = 339.125, Dec = -23.1552
tmin = 453427201, tmax = 453686401
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='406417', job_status='RUN', time_executed='2021-09-28 17:09:53.800246', time_epoch_executed='1632874193.8' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='826'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/406417

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/406417/ft1_4FGL_J2236.4-2309_daily_bin826.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/406417/ft2_4FGL_J2236.4-2309_daily_bin826.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/406417/ft1_4FGL_J2236.4-2309_daily_bin826.fits outfile=/scratch/kocevski/406417/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin826.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=453427201.0 tmax=453686401.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.71
user 3.45
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/406417/ft1_filtered_4FGL_J2236.4-2309_daily_bin826.fits" evtable="EVENTS" scfile=/scratch/kocevski/406417/ft2_4FGL_J2236.4-2309_daily_bin826.fits sctable="SC_DATA" outfile=/scratch/kocevski/406417/ltcube_453427201_453686401_4FGL_J2236.4-2309_daily_bin826.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/406417/ft2_4FGL_J2236.4-2309_daily_bin826.fits
.....................!
real 11.92
user 11.55
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/406417/ft1_filtered_4FGL_J2236.4-2309_daily_bin826.fits evtable="EVENTS" scfile=/scratch/kocevski/406417/ft2_4FGL_J2236.4-2309_daily_bin826.fits sctable="SC_DATA" expcube=/scratch/kocevski/406417/ltcube_453427201_453686401_4FGL_J2236.4-2309_daily_bin826.fits outfile=/scratch/kocevski/406417/expmap_453427201_453686401_4FGL_J2236.4-2309_daily_bin826.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/406417/ltcube_453427201_453686401_4FGL_J2236.4-2309_daily_bin826.fits
.....................!
real 191.23
user 185.88
sys 4.92

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/406417/ft1_filtered_4FGL_J2236.4-2309_daily_bin826.fits scfile=/scratch/kocevski/406417/ft2_4FGL_J2236.4-2309_daily_bin826.fits outfile=/scratch/kocevski/406417/cmap_453427201_453686401_4FGL_J2236.4-2309_daily_bin826.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/406417/ft1_filtered_4FGL_J2236.4-2309_daily_bin826.fits scfile=/scratch/kocevski/406417/ft2_4FGL_J2236.4-2309_daily_bin826.fits outfile=/scratch/kocevski/406417/cmap_HighResolution_453427201_453686401_4FGL_J2236.4-2309_daily_bin826.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/406417/ft1_filtered_4FGL_J2236.4-2309_daily_bin826.fits evtable="EVENTS" scfile=/scratch/kocevski/406417/ft2_4FGL_J2236.4-2309_daily_bin826.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/406417/Model_4FGL_J2236.4-2309_daily_bin826.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/406417/ft1_filtered_4FGL_J2236.4-2309_daily_bin826.fits.....................!
real 54.96
user 53.56
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10931E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    52.302       1.0000         .10000E-03   10000.    
     3 'norm      '    1.4442       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.1783       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.9240       1.0000         .10000E-03   10000.    
    10 'norm      '    4.4214       1.0000         .10000E-03   10000.    
    11 'norm      '    2.0816       1.0000         .10000E-03   10000.    
    12 'Prefactor '    52.007       1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.747       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.5104       1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.127       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.9470       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3544       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .67540       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=   6357.296     FROM MIGRAD    STATUS=CONVERGED    524 CALLS     2687 TOTAL
                     EDM=   .88E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.7309       -.28370E-06** at limit **
   2  Prefactor     52.301        47.186        .88202E-08    .12864E-05
   3  norm          1.4443        .43640        .46295E-08   -.39296E-04
   4  Prefactor     3.1768        7.0729        .19928E-05    .11061E-04
   5  Prefactor     .10000E-03    12.761        .26220E-06** at limit **
   6  Prefactor     .10000E-03    21.609        .19504E-06** at limit **
   7  Prefactor     .10000E-03    21.412       -.16494E-06** at limit **
   8  norm          .10000E-03    7.5298        .14403E-06** at limit **
   9  Prefactor     4.9318        9.8150       -.14552E-06   -.19338E-04
  10  norm          4.4214        1.2667        .14114E-07   -.29751E-03
  11  norm          2.0833        2.0076       -.37442E-06   -.12208E-03
  12  Prefactor     51.939        59.777        .61444E-05   -.39038E-04
  13  Prefactor     16.752        13.786       -.86535E-07    .75413E-05
  14  Prefactor     8.5112        10.911       -.49852E-06   -.28808E-03
  15  norm          .10000E-03    .45648        .23113E-06** at limit **
  16  norm          .10000E-03    1.1662       -.35250E-07** at limit **
  17  Prefactor     .10000E-03    15.561       -.62794E-08** at limit **
  18  Prefactor     .10000E-03    11.547       -.32787E-07** at limit **
  19  Prefactor     27.135        10.234       -.32755E-06    .22926E-04
  20  norm          .10000E-03    .15244        .10691E-07** at limit **
  21  Prefactor     5.9457        14.561        .72008E-07   -.29407E-04
  22  Prefactor     .10000E-03    5.6621       -.47401E-07** at limit **
  23  Normalizat    1.3537        .20222        .70586E-06   -.90725E-04
  24  Prefactor     .67596        .16203       -.16514E-05   -.41078E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 52.3008
  norm       = 1.44427
  Prefactor  = 3.17678
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.93176
  norm       = 4.42136
  norm       = 2.08329
  Prefactor  = 51.9391
  Prefactor  = 16.7523
  Prefactor  = 8.5112
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.1355
  norm       = 0.0001
  Prefactor  = 5.94574
  Prefactor  = 0.0001
  Normalizat = 1.35371
  Prefactor  = 0.675962
 **********
 **   18 **HESSE 
 **********

 FCN=   6357.296     FROM HESSE     STATUS=OK           395 CALLS     3082 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.7303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     52.301        47.184        .55457E-04   -1.4260    
   3  norm          1.4443        .43630        .27964E-04   -1.5468    
   4  Prefactor     3.1768        7.1098        .11366E-02   -1.5351    
   5  Prefactor     .10000E-03    13.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    21.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    7.5341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.9318        9.8085        .90627E-03   -1.5264    
  10  norm          4.4214        1.2665        .45653E-04   -1.5287    
  11  norm          2.0833        2.0135        .10283E-03   -1.5419    
  12  Prefactor     51.939        59.169        .55613E-04   -1.4265    
  13  Prefactor     16.752        13.852        .97870E-04   -1.4889    
  14  Prefactor     8.5112        10.194        .68706E-03   -1.5124    
  15  norm          .10000E-03    .61966        .96506E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.1679        .84046E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     27.135        10.192        .76918E-04   -1.4666    
  20  norm          .10000E-03    .15309        .30208E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.9457        14.577        .16466E-03   -1.5220    
  22  Prefactor     .10000E-03    5.6800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3537        .24306        .24611E-03   -.81977    
  24  Prefactor     .67596        .19038        .27736E-03   -1.0448    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26807e-10
Minuit parameter uncertainties:
  1  3.57512e-06
  2  47.2178
  3  0.436298
  4  7.11172
  5  2.78398e-06
  6  8.82947e-06
  7  7.58955e-06
  8  1.19187e-05
  9  9.81167
  10  1.26653
  11  2.01356
  12  59.2356
  13  13.8551
  14  10.1965
  15  3.40562e-06
  16  8.30234e-07
  17  1.29548e-05
  18  1.17003e-05
  19  10.1928
  20  1.79042e-07
  21  14.5861
  22  7.85237e-07
  23  0.243267
  24  0.190564
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  4.932e+00  9.812e+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:  6.760e-01  1.906e-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.354e+00  2.433e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/406417/likelihoodResults_453427201_453686401_4FGL_J2236.4-2309_daily_bin826.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) = 6357.2912133
delta logL = 0.00451838464778

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6357.29088355
delta logL = 0.00484813644835

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1505       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5822       1.0000          .0000       10.000    
     3 'Normalizat'    1.3563       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67426       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=   6357.291     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      287 TOTAL
                     EDM=   .93E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1501        9.9628        .17714E-03    .73162E-05
   2  Index         2.5823        1.5290        .12264E-01    .22114E-04
   3  Normalizat    1.3562        .22582        .24592E-03   -.15525E-03
   4  Prefactor     .67438        .18593        .27766E-03   -.12537E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.15012
  Index      = 2.58227
  Normalizat = 1.35617
  Prefactor  = 0.674377
 **********
 **   18 **HESSE 
 **********

 FCN=   6357.291     FROM HESSE     STATUS=OK            23 CALLS      310 TOTAL
                     EDM=   .98E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1501        9.9077        .70858E-05   -1.5254    
   2  Index         2.5823        1.5209        .49056E-03   -.50470    
   3  Normalizat    1.3562        .22600        .49183E-04   -.81905    
   4  Prefactor     .67438        .18606        .11106E-04   -1.0454    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.84092e-11
Minuit parameter uncertainties:
  1  9.91087
  2  1.55332
  3  0.22617
  4  0.186231
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/406417': 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) = 6357.29088334
delta logL = 0.00484834210874

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  5.150e+00  9.911e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.582e+00  1.553e+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:  6.744e-01  1.862e-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.356e+00  2.262e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.36
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/406417/cmap_HighResolution_453427201_453686401_4FGL_J2236.4-2309_daily_bin826.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.43e-03', job_status='DONE', photon_flux_upper_limit='1.07e-07', time_completed='2021-09-28 17:20:28.204818', job_id='406417', GAL2='0.67', fit_tolerance='1e-08', EG2='1.36', EG='1.35', time_epoch_completed='1632874828.2', return_code2='0', ts='0.36', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='4.85e-03', ts2='0.37', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='826' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:20:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 406417: <4FGL_J2236.4-2309_daily_bin826> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin826 339.125 -23.1552 453427201 453686401 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 :                                   634.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             232.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            881 sec.

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

