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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin1048
RA = 339.125, Dec = -23.1552
tmin = 510969601, tmax = 511228801
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='407741', job_status='RUN', time_executed='2021-09-28 17:13:10.569284', time_epoch_executed='1632874390.57' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1048'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/407741

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/407741/ft1_4FGL_J2236.4-2309_daily_bin1048.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/407741/ft2_4FGL_J2236.4-2309_daily_bin1048.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/407741/ft1_4FGL_J2236.4-2309_daily_bin1048.fits outfile=/scratch/kocevski/407741/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1048.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=510969601.0 tmax=511228801.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.47
user 3.23
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/407741/ft2_4FGL_J2236.4-2309_daily_bin1048.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/407741/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1048.fits evtable="EVENTS" outfile="/scratch/kocevski/407741/ft1_filtered_4FGL_J2236.4-2309_daily_bin1048.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/407741/ft1_filtered_4FGL_J2236.4-2309_daily_bin1048.fits" evtable="EVENTS" scfile=/scratch/kocevski/407741/ft2_4FGL_J2236.4-2309_daily_bin1048.fits sctable="SC_DATA" outfile=/scratch/kocevski/407741/ltcube_510969601_511228801_4FGL_J2236.4-2309_daily_bin1048.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/407741/ft2_4FGL_J2236.4-2309_daily_bin1048.fits
.....................!
real 11.89
user 11.42
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/407741/ft1_filtered_4FGL_J2236.4-2309_daily_bin1048.fits evtable="EVENTS" scfile=/scratch/kocevski/407741/ft2_4FGL_J2236.4-2309_daily_bin1048.fits sctable="SC_DATA" expcube=/scratch/kocevski/407741/ltcube_510969601_511228801_4FGL_J2236.4-2309_daily_bin1048.fits outfile=/scratch/kocevski/407741/expmap_510969601_511228801_4FGL_J2236.4-2309_daily_bin1048.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/407741/ltcube_510969601_511228801_4FGL_J2236.4-2309_daily_bin1048.fits
.....................!
real 191.24
user 185.22
sys 5.62

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/407741/ft1_filtered_4FGL_J2236.4-2309_daily_bin1048.fits scfile=/scratch/kocevski/407741/ft2_4FGL_J2236.4-2309_daily_bin1048.fits outfile=/scratch/kocevski/407741/cmap_510969601_511228801_4FGL_J2236.4-2309_daily_bin1048.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/407741/ft1_filtered_4FGL_J2236.4-2309_daily_bin1048.fits scfile=/scratch/kocevski/407741/ft2_4FGL_J2236.4-2309_daily_bin1048.fits outfile=/scratch/kocevski/407741/cmap_HighResolution_510969601_511228801_4FGL_J2236.4-2309_daily_bin1048.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.65
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/407741/ft1_filtered_4FGL_J2236.4-2309_daily_bin1048.fits evtable="EVENTS" scfile=/scratch/kocevski/407741/ft2_4FGL_J2236.4-2309_daily_bin1048.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/407741/Model_4FGL_J2236.4-2309_daily_bin1048.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/407741/ft1_filtered_4FGL_J2236.4-2309_daily_bin1048.fits.....................!
real 57.84
user 56.08
sys 1.47

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    36.786       1.0000         .10000E-03   10000.    
     3 'norm      '    2.6905       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.2880       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.8103       1.0000         .10000E-03   10000.    
     6 'Prefactor '    27.720       1.0000         .10000E-03   10000.    
     7 'Prefactor '    48.194       1.0000         .10000E-03   10000.    
     8 'norm      '    18.422       1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.876       1.0000         .10000E-03   10000.    
    10 'norm      '    1.1381       1.0000         .10000E-03   10000.    
    11 'norm      '    1.0768       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.4655       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.2014       1.0000         .10000E-03   10000.    
    15 'norm      '    2.6120       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.349       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.273       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.8023       1.0000         .10000E-03   10000.    
    20 'norm      '    .38360       1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.380       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.7870       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1393       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .66195       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=   7501.055     FROM MIGRAD    STATUS=CONVERGED    523 CALLS     2711 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.490        .45355E-06** at limit **
   2  Prefactor     36.778        54.964       -.10024E-05    .49505E-04
   3  norm          2.6905        .49080        .95317E-08   -.53553E-04
   4  Prefactor     2.2883        3.8751       -.37011E-07    .49145E-04
   5  Prefactor     5.8104        6.4497        .14949E-07   -.12272E-04
   6  Prefactor     27.719        16.759       -.68311E-08    .37679E-04
   7  Prefactor     48.197        50.568        .35058E-06   -.35511E-04
   8  norm          18.421        16.471        .20166E-07    .68226E-05
   9  Prefactor     22.871        12.282       -.57945E-08    .17830E-04
  10  norm          1.1381        .79634        .64062E-07    .65955E-04
  11  norm          1.0771        1.7327        .17386E-06    .36929E-03
  12  Prefactor     .10000E-03    27.429        .26327E-06** at limit **
  13  Prefactor     3.4621        9.5355        .73210E-06   -.82541E-05
  14  Prefactor     6.1729        31.743        .39707E-05    .58968E-04
  15  norm          2.6145        2.2931       -.78266E-06    .50824E-03
  16  norm          .10000E-03    1.3157        .17234E-06** at limit **
  17  Prefactor     10.341        26.182        .16738E-05    .45438E-04
  18  Prefactor     10.273        11.887        .59125E-06   -.61896E-04
  19  Prefactor     4.7995        12.741       -.12266E-05   -.19652E-03
  20  norm          .38348        .55656       -.35563E-06   -.96890E-03
  21  Prefactor     12.380        8.8229        .63331E-07   -.17011E-04
  22  Prefactor     1.7912        16.038        .58750E-05   -.64672E-04
  23  Normalizat    1.1396        .17266       -.74635E-06    .96899E-04
  24  Prefactor     .66172        .14103        .64842E-06   -.44380E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 36.7777
  norm       = 2.69046
  Prefactor  = 2.28832
  Prefactor  = 5.8104
  Prefactor  = 27.719
  Prefactor  = 48.1972
  norm       = 18.4214
  Prefactor  = 22.8705
  norm       = 1.13811
  norm       = 1.07708
  Prefactor  = 0.0001
  Prefactor  = 3.46207
  Prefactor  = 6.17295
  norm       = 2.61446
  norm       = 0.0001
  Prefactor  = 10.3406
  Prefactor  = 10.2734
  Prefactor  = 4.79952
  norm       = 0.383484
  Prefactor  = 12.3795
  Prefactor  = 1.79124
  Normalizat = 1.13958
  Prefactor  = 0.661724
 **********
 **   18 **HESSE 
 **********

 FCN=   7501.055     FROM HESSE     STATUS=OK           415 CALLS     3126 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     36.778        54.932        .66078E-04   -1.4494    
   3  norm          2.6905        .49154        .24838E-04   -1.5380    
   4  Prefactor     2.2883        3.8522        .21535E-03   -1.5405    
   5  Prefactor     5.8104        6.4487        .16662E-03   -1.5226    
   6  Prefactor     27.719        16.772        .76091E-04   -1.4655    
   7  Prefactor     48.197        50.450        .57761E-04   -1.4318    
   8  norm          18.421        16.448        .93315E-04   -1.4849    
   9  Prefactor     22.871        12.313        .83748E-04   -1.4751    
  10  norm          1.1381        .78851        .60694E-04   -1.5495    
  11  norm          1.0771        1.4884        .13823E-02   -1.5500    
  12  Prefactor     .10000E-03    27.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.4621        9.6024        .21723E-03   -1.5336    
  14  Prefactor     6.1729        31.614        .16120E-03   -1.5211    
  15  norm          2.6145        2.2891        .56726E-04   -1.5385    
  16  norm          .10000E-03    1.3307        .96961E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.341        25.791        .12455E-03   -1.5065    
  18  Prefactor     10.273        11.826        .12501E-03   -1.5067    
  19  Prefactor     4.7995        11.894        .91793E-03   -1.5270    
  20  norm          .38348        .50671        .57190E-03   -1.5584    
  21  Prefactor     12.380        8.8231        .11385E-03   -1.5004    
  22  Prefactor     1.7912        15.903        .15648E-02   -1.5440    
  23  Normalizat    1.1396        .20467        .23608E-03   -.88491    
  24  Prefactor     .66172        .16475        .26264E-03   -1.0505    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.45766e-10
Minuit parameter uncertainties:
  1  3.60231e-05
  2  55.0081
  3  0.491539
  4  3.85261
  5  6.44947
  6  16.7744
  7  50.4949
  8  16.4519
  9  12.3142
  10  0.788517
  11  1.48847
  12  2.47641e-05
  13  9.60663
  14  27.9624
  15  2.28916
  16  5.04736e-06
  17  25.8188
  18  11.829
  19  11.8998
  20  0.506714
  21  8.824
  22  10.678
  23  0.204811
  24  0.164873
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  2.287e+01  1.231e+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:  6.617e-01  1.649e-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.140e+00  2.048e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.33
Ra Dec: 339.125 -23.155
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 8.05e-08 +/- 4.33e-08
Energy Flux (Fixed Index): 1.88e-05 +/- 1.01e-05

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) = 7501.04979458
delta logL = 0.00497914825701

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7501.04810702
delta logL = 0.00666671100316

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.205       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8097       1.0000          .0000       10.000    
     3 'Normalizat'    1.1355       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66435       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=   7501.048     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      232 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.203        13.720        .85001E-04    .21188E-02
   2  Index         2.8100        .60360        .76520E-02    .53419E-03
   3  Normalizat    1.1354        .18658        .23645E-03   -.57456E-03
   4  Prefactor     .66435        .15896        .26218E-03   -.58844E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.203
  Index      = 2.81001
  Normalizat = 1.13542
  Prefactor  = 0.66435
 **********
 **   18 **HESSE 
 **********

 FCN=   7501.048     FROM HESSE     STATUS=OK            23 CALLS      255 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.203        13.401        .17000E-04   -1.4765    
   2  Index         2.8100        .58897        .30608E-03   -.45337    
   3  Normalizat    1.1354        .18669        .47290E-04   -.88623    
   4  Prefactor     .66435        .15901        .52436E-04   -1.0494    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.30989e-09
Minuit parameter uncertainties:
  1  13.4029
  2  0.590667
  3  0.1868
  4  0.159121
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/407741': 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) = 7501.04810679
delta logL = 0.00666693893982

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  2.220e+01  1.340e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.810e+00  5.907e-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:  6.643e-01  1.591e-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.135e+00  1.868e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.27
Ra Dec: 339.125 -23.155
Photon Index (Free Index): 2.81 +/- 0.59
Photon Flux (Free Index): 8.33e-08 +/- 4.97e-08
Energy Flux (Free Index): 1.85e-05 +/- 1.01e-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/407741/cmap_HighResolution_510969601_511228801_4FGL_J2236.4-2309_daily_bin1048.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.05e-08', energy_flux2='1.85e-05', photon_flux_error='4.33e-08', dlogl='6.67e-03', energy_flux='1.88e-05', photon_flux2='8.33e-08', job_status='DONE', time_completed='2021-09-28 17:23:50.371580', photon_index_error2='0.59', photon_index2='2.81', ts='5.33', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', energy_flux_error2='1.01e-05', EG='1.14', time_epoch_completed='1632875030.37', return_code='0', job_id='407741', GAL2='0.66', EG2='1.14', return_code2='0', energy_flux_error='1.01e-05', photon_flux_error2='4.97e-08', ts2='5.27', photon_index='2.74' WHERE bin_id='1048' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:23:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 407741: <4FGL_J2236.4-2309_daily_bin1048> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin1048> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 17:10:32 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:10:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 17:10:34 2021
Terminated at Tue Sep 28 17:23:51 2021
Results reported at Tue Sep 28 17:23:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1048 339.125 -23.1552 510969601 511228801 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.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            799 sec.

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

