/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 85 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 = 7450
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2236.4-2309_daily_bin345
RA = 339.125, Dec = -23.1552
tmin = 328752001, tmax = 329011201
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='404471', job_status='RUN', time_executed='2021-09-28 17:01:58.841936', time_epoch_executed='1632873718.84' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='345'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/404471

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/404471/ft1_4FGL_J2236.4-2309_daily_bin345.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/404471/ft2_4FGL_J2236.4-2309_daily_bin345.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/404471/ft1_4FGL_J2236.4-2309_daily_bin345.fits outfile=/scratch/kocevski/404471/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin345.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=328752001.0 tmax=329011201.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.44
user 3.22
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/404471/ft1_filtered_4FGL_J2236.4-2309_daily_bin345.fits" evtable="EVENTS" scfile=/scratch/kocevski/404471/ft2_4FGL_J2236.4-2309_daily_bin345.fits sctable="SC_DATA" outfile=/scratch/kocevski/404471/ltcube_328752001_329011201_4FGL_J2236.4-2309_daily_bin345.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/404471/ft2_4FGL_J2236.4-2309_daily_bin345.fits
.....................!
real 12.08
user 11.75
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/404471/ft1_filtered_4FGL_J2236.4-2309_daily_bin345.fits evtable="EVENTS" scfile=/scratch/kocevski/404471/ft2_4FGL_J2236.4-2309_daily_bin345.fits sctable="SC_DATA" expcube=/scratch/kocevski/404471/ltcube_328752001_329011201_4FGL_J2236.4-2309_daily_bin345.fits outfile=/scratch/kocevski/404471/expmap_328752001_329011201_4FGL_J2236.4-2309_daily_bin345.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/404471/ltcube_328752001_329011201_4FGL_J2236.4-2309_daily_bin345.fits
.....................!
real 191.86
user 186.26
sys 5.24

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/404471/ft1_filtered_4FGL_J2236.4-2309_daily_bin345.fits scfile=/scratch/kocevski/404471/ft2_4FGL_J2236.4-2309_daily_bin345.fits outfile=/scratch/kocevski/404471/cmap_328752001_329011201_4FGL_J2236.4-2309_daily_bin345.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/404471/ft1_filtered_4FGL_J2236.4-2309_daily_bin345.fits scfile=/scratch/kocevski/404471/ft2_4FGL_J2236.4-2309_daily_bin345.fits outfile=/scratch/kocevski/404471/cmap_HighResolution_328752001_329011201_4FGL_J2236.4-2309_daily_bin345.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.56
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2513       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10444E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .88689       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.3859       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .19033E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.8895       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.864       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .52663       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .18425E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.860       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    15.553       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.5127       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .55056       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .83152       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .83013       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .97058       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=   6984.809     FROM MIGRAD    STATUS=CONVERGED    554 CALLS     2791 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2379        9.8347       -.35230E-05   -.29316E-03
   2  Prefactor     .10000E-03    60.605        .27110E-04** at limit **
   3  norm          .88686        .27037        .33315E-08   -.26720E-03
   4  Prefactor     1.3831        1.7872        .84550E-07   -.86235E-03
   5  Prefactor     .10004E-03    6.1101        .41279E-06** at limit **
   6  Prefactor     4.8880        11.704       -.39034E-06   -.13286E-04
   7  Prefactor     .10000E-03    41.800       -.58873E-05** at limit **
   8  norm          .10000E-03    8.1690        .64682E-07** at limit **
   9  Prefactor     17.868        11.022        .48446E-06    .15047E-03
  10  norm          .10000E-03    .25125        .13661E-08** at limit **
  11  norm          .52866        1.3618        .21348E-06    .58855E-03
  12  Prefactor     .10000E-03    74.055       -.24638E-04** at limit **
  13  Prefactor     10.859        9.7075       -.35014E-06    .17889E-06
  14  Prefactor     .10000E-03    10.557       -.32822E-07** at limit **
  15  norm          .10000E-03    .28450       -.90349E-08** at limit **
  16  norm          15.553        5.4794       -.88434E-06    .28847E-04
  17  Prefactor     .10000E-03    16.575        .51311E-06** at limit **
  18  Prefactor     1.5153        17.968        .76000E-06    .83465E-05
  19  Prefactor     .10000E-03    6.6439        .92435E-07** at limit **
  20  norm          .55061        .44692        .44239E-07    .40580E-04
  21  Prefactor     .10000E-03    3.2052       -.33889E-07** at limit **
  22  Prefactor     .83084        8.4126        .92410E-06   -.65642E-04
  23  Normalizat    .83014        .15680        .20620E-06   -.30323E-04
  24  Prefactor     .97066        .13476        .28604E-07   -.23402E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.23789
  Prefactor  = 0.000100001
  norm       = 0.88686
  Prefactor  = 1.38307
  Prefactor  = 0.000100042
  Prefactor  = 4.88802
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.8678
  norm       = 0.0001
  norm       = 0.52866
  Prefactor  = 0.0001
  Prefactor  = 10.8592
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 15.5527
  Prefactor  = 0.0001
  Prefactor  = 1.51528
  Prefactor  = 0.0001
  norm       = 0.550615
  Prefactor  = 0.0001
  Prefactor  = 0.830837
  Normalizat = 0.830136
  Prefactor  = 0.970659
 **********
 **   18 **HESSE 
 **********

 FCN=   6984.809     FROM HESSE     STATUS=OK           407 CALLS     3198 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2379        9.9496        .19542E-03   -1.5296    
   2  Prefactor     .10000E-03    61.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .88686        .27114        .23374E-04   -1.5520    
   4  Prefactor     1.3831        11.821        .18471E-02   -1.5473    
   5  Prefactor     .10004E-03    54.431        .39526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.8880        11.768        .18191E-03   -1.5266    
   7  Prefactor     .10000E-03    41.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    8.1879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.868        11.033        .94762E-04   -1.4862    
  10  norm          .10000E-03    .32119        .81136E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .52866        1.1950        .15021E-02   -1.5563    
  12  Prefactor     .10000E-03    73.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.859        9.7271        .12157E-03   -1.5049    
  14  Prefactor     .10000E-03    10.808        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .45150        .86343E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          15.553        5.3727        .99546E-04   -1.4919    
  17  Prefactor     .10000E-03    16.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.5153        16.907        .34769E-03   -1.5462    
  19  Prefactor     .10000E-03    6.7493        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .55061        .43688        .43847E-04   -1.5560    
  21  Prefactor     .10000E-03    3.2169        .14612E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .83084        8.2341        .43415E-03   -1.5526    
  23  Normalizat    .83014        .18483        .25207E-03   -.98960    
  24  Prefactor     .97066        .15951        .20863E-03   -.93714    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.40926e-09
Minuit parameter uncertainties:
  1  9.95352
  2  0.000514661
  3  0.271138
  4  8.08888
  5  0.00301071
  6  11.7739
  7  1.46018e-05
  8  2.73423e-06
  9  11.0338
  10  7.71402e-07
  11  1.19509
  12  0.000156454
  13  9.72855
  14  5.34831e-06
  15  6.97008e-07
  16  5.37284
  17  4.72363e-06
  18  10.1262
  19  3.44156e-05
  20  0.436886
  21  7.3267e-07
  22  5.23176
  23  0.184968
  24  0.159588
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  9.707e-01  1.596e-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:  8.301e-01  1.850e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.34
Ra Dec: 339.125 -23.155
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 6.29e-08 +/- 3.88e-08
Energy Flux (Fixed Index): 1.47e-05 +/- 9.05e-06

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) = 6984.47371632
delta logL = 0.335419913055

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6984.46827017
delta logL = 0.340866056676

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.244       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4087       1.0000          .0000       10.000    
     3 'Normalizat'    .79658       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99191       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=   6984.468     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      291 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.243        13.988        .11448E-03   -.17737E-03
   2  Index         3.4089        1.0876        .70503E-02   -.31639E-04
   3  Normalizat    .79656        .18623        .25675E-03   -.23234E-03
   4  Prefactor     .99200        .16213        .20666E-03   -.31602E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.2435
  Index      = 3.40894
  Normalizat = 0.796564
  Prefactor  = 0.991997
 **********
 **   18 **HESSE 
 **********

 FCN=   6984.468     FROM HESSE     STATUS=OK            25 CALLS      316 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.243        12.114        .45791E-05   -1.5008    
   2  Index         3.4089        .94266        .28201E-03   -.32384    
   3  Normalizat    .79656        .18594        .10270E-04   -1.0020    
   4  Prefactor     .99200        .16182        .41332E-04   -.92997    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.36942e-11
Minuit parameter uncertainties:
  1  12.1167
  2  0.948983
  3  0.186086
  4  0.161899
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/404471': 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) = 6984.46826955
delta logL = 0.340866676552

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.224e+01  1.212e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  3.409e+00  9.490e-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:  9.920e-01  1.619e-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:  7.966e-01  1.861e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.14
Ra Dec: 339.125 -23.155
Photon Index (Free Index): 3.41 +/- 0.95
Photon Flux (Free Index): 8.48e-08 +/- 5.01e-08
Energy Flux (Free Index): 1.45e-05 +/- 8.07e-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/404471/cmap_HighResolution_328752001_329011201_4FGL_J2236.4-2309_daily_bin345.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.29e-08', energy_flux2='1.45e-05', photon_flux_error='3.88e-08', dlogl='3.41e-01', energy_flux='1.47e-05', photon_flux2='8.48e-08', job_status='DONE', time_completed='2021-09-28 17:12:08.656055', photon_index_error2='0.95', photon_index2='3.41', ts='4.34', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='8.07e-06', EG='0.83', time_epoch_completed='1632874328.66', return_code='0', job_id='404471', GAL2='0.99', EG2='0.80', return_code2='0', energy_flux_error='9.05e-06', photon_flux_error2='5.01e-08', ts2='5.14', photon_index='2.74' WHERE bin_id='345' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:12:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 404471: <4FGL_J2236.4-2309_daily_bin345> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin345> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 17:00:23 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:00:25 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:00:25 2021
Terminated at Tue Sep 28 17:12:09 2021
Results reported at Tue Sep 28 17:12:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin345 339.125 -23.1552 328752001 329011201 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 :                                   610.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   703 sec.
    Turnaround time :                            706 sec.

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

