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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin1126
RA = 339.125, Dec = -23.1552
tmin = 531187201, tmax = 531446401
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='407855', job_status='RUN', time_executed='2021-09-28 17:13:08.106439', time_epoch_executed='1632874388.11' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1126'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/407855

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/407855/ft1_4FGL_J2236.4-2309_daily_bin1126.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/407855/ft2_4FGL_J2236.4-2309_daily_bin1126.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/407855/ft1_4FGL_J2236.4-2309_daily_bin1126.fits outfile=/scratch/kocevski/407855/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1126.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=531187201.0 tmax=531446401.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.99
user 3.75
sys 0.23

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/407855/ft1_filtered_4FGL_J2236.4-2309_daily_bin1126.fits" evtable="EVENTS" scfile=/scratch/kocevski/407855/ft2_4FGL_J2236.4-2309_daily_bin1126.fits sctable="SC_DATA" outfile=/scratch/kocevski/407855/ltcube_531187201_531446401_4FGL_J2236.4-2309_daily_bin1126.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/407855/ft2_4FGL_J2236.4-2309_daily_bin1126.fits
.....................!
real 11.69
user 11.30
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/407855/ft1_filtered_4FGL_J2236.4-2309_daily_bin1126.fits evtable="EVENTS" scfile=/scratch/kocevski/407855/ft2_4FGL_J2236.4-2309_daily_bin1126.fits sctable="SC_DATA" expcube=/scratch/kocevski/407855/ltcube_531187201_531446401_4FGL_J2236.4-2309_daily_bin1126.fits outfile=/scratch/kocevski/407855/expmap_531187201_531446401_4FGL_J2236.4-2309_daily_bin1126.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/407855/ltcube_531187201_531446401_4FGL_J2236.4-2309_daily_bin1126.fits
.....................!
real 190.98
user 185.37
sys 5.26

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/407855/ft1_filtered_4FGL_J2236.4-2309_daily_bin1126.fits scfile=/scratch/kocevski/407855/ft2_4FGL_J2236.4-2309_daily_bin1126.fits outfile=/scratch/kocevski/407855/cmap_531187201_531446401_4FGL_J2236.4-2309_daily_bin1126.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/407855/ft1_filtered_4FGL_J2236.4-2309_daily_bin1126.fits scfile=/scratch/kocevski/407855/ft2_4FGL_J2236.4-2309_daily_bin1126.fits outfile=/scratch/kocevski/407855/cmap_HighResolution_531187201_531446401_4FGL_J2236.4-2309_daily_bin1126.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/407855/ft1_filtered_4FGL_J2236.4-2309_daily_bin1126.fits evtable="EVENTS" scfile=/scratch/kocevski/407855/ft2_4FGL_J2236.4-2309_daily_bin1126.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/407855/Model_4FGL_J2236.4-2309_daily_bin1126.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/407855/ft1_filtered_4FGL_J2236.4-2309_daily_bin1126.fits.....................!
real 52.43
user 50.87
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10443E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.3533       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .45895E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .41726       1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.320       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10524E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    68.392       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.072       1.0000         .10000E-03   10000.    
    10 'norm      '    .88116E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.5888       1.0000         .10000E-03   10000.    
    12 'Prefactor '    73.811       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    57.668       1.0000         .10000E-03   10000.    
    15 'norm      '    6.7311       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    42.492       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.7110       1.0000         .10000E-03   10000.    
    21 'Prefactor '    21.740       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2817       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .78933       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=   5981.450     FROM MIGRAD    STATUS=CONVERGED    970 CALLS     3199 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.6657        .18142E-02** at limit **
   2  Prefactor     .10000E-03    23.911        .18142E-02** at limit **
   3  norm          2.3532        .56310        .27467E-04    .63162E-03
   4  Prefactor     .10000E-03    46.462        .37085E-02** at limit **
   5  Prefactor     .37128        200.76        .53269E-02    .56323E-04
   6  Prefactor     23.303        26.887        .82948E-04    .22299E-03
   7  Prefactor     .10000E-03    27.386        .18142E-02** at limit **
   8  norm          68.357        37.593        .48536E-04    .65913E-04
   9  Prefactor     13.077        15.231        .11079E-03    .56130E-04
  10  norm          .10006E-03    1.3569        .18955E-01** at limit **
  11  norm          3.5884        3.0964        .11077E-03    .16195E-03
  12  Prefactor     73.834        66.123        .46732E-04    .25884E-04
  13  Prefactor     .10000E-03    10.276        .18142E-02** at limit **
  14  Prefactor     57.610        63.309        .52828E-04   -.36098E-03
  15  norm          6.7276        5.1222        .67051E-04   -.68804E-03
  16  norm          .10000E-03    1.7261        .98995E-03** at limit **
  17  Prefactor     42.717        81.796        .61498E-04    .31427E-05
  18  Prefactor     .10000E-03    6.0166        .18142E-02** at limit **
  19  Prefactor     .10000E-03    5.1712        .17140E-02** at limit **
  20  norm          5.7111        1.1793        .36288E-04    .52501E-03
  21  Prefactor     21.738        15.459        .85905E-04   -.45128E-04
  22  Prefactor     .10000E-03    7.2606        .18142E-02** at limit **
  23  Normalizat    1.2809        .28008        .28594E-03    .33163E-03
  24  Prefactor     .79016        .22156        .29217E-03    .56354E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.35324
  Prefactor  = 0.000100001
  Prefactor  = 0.371283
  Prefactor  = 23.3025
  Prefactor  = 0.0001
  norm       = 68.3567
  Prefactor  = 13.0765
  norm       = 0.000100062
  norm       = 3.58836
  Prefactor  = 73.8343
  Prefactor  = 0.0001
  Prefactor  = 57.6098
  norm       = 6.7276
  norm       = 0.0001
  Prefactor  = 42.7168
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.71112
  Prefactor  = 21.7377
  Prefactor  = 0.0001
  Normalizat = 1.28089
  Prefactor  = 0.790162
 **********
 **   18 **HESSE 
 **********

 FCN=   5981.450     FROM HESSE     STATUS=OK           385 CALLS     3584 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.6660        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    23.911        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.3532        .56299        .10987E-05   -1.5401    
   4  Prefactor     .10000E-03    47.059        .74169E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .37128        203.37        .21308E-03   -1.5586    
   6  Prefactor     23.303        26.861        .16590E-04   -1.4742    
   7  Prefactor     .10000E-03    27.387        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          68.357        37.584        .97071E-05   -1.4053    
   9  Prefactor     13.077        15.227        .44316E-05   -1.4985    
  10  norm          .10006E-03    1.0374        .22759E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.5884        3.0966        .44308E-05   -1.5329    
  12  Prefactor     73.834        66.117        .93465E-05   -1.3987    
  13  Prefactor     .10000E-03    10.279        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     57.610        63.393        .10566E-04   -1.4188    
  15  norm          6.7276        5.1317        .26821E-05   -1.5189    
  16  norm          .10000E-03    1.7262        .19799E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     42.717        81.774        .24599E-05   -1.4400    
  18  Prefactor     .10000E-03    6.0168        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.1716        .34281E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.7111        1.1787        .72576E-05   -1.5230    
  21  Prefactor     21.738        15.456        .34362E-05   -1.4775    
  22  Prefactor     .10000E-03    7.2614        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2809        .28004        .57188E-04   -.84139    
  24  Prefactor     .79016        .22132        .58435E-04   -1.0009    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50356e-09
Minuit parameter uncertainties:
  1  1.29499e-05
  2  6.13362e-05
  3  0.562992
  4  0.000503413
  5  17.4363
  6  26.8745
  7  1.02269e-05
  8  37.5968
  9  15.2319
  10  0.000505618
  11  3.09674
  12  66.1827
  13  6.95075e-05
  14  63.4678
  15  5.13205
  16  4.38874e-06
  17  81.9895
  18  1.186e-05
  19  4.01847e-05
  20  1.17871
  21  15.4585
  22  4.24891e-05
  23  0.280372
  24  0.22157
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.308e+01  1.523e+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:  7.902e-01  2.216e-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.281e+00  2.804e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.30
Ra Dec: 339.125 -23.155
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 4.60e-08 +/- 5.35e-08
Energy Flux (Fixed Index): 1.07e-05 +/- 1.25e-05

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

Saving results to:
/scratch/kocevski/407855/likelihoodResults_531187201_531446401_4FGL_J2236.4-2309_daily_bin1126.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) = 5981.04344614
delta logL = 0.406899306829

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5980.95902885
delta logL = 0.491316604539

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9267       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6830       1.0000          .0000       10.000    
     3 'Normalizat'    1.3230       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76835       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=   5980.959     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      229 TOTAL
                     EDM=   .76E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 15.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9219        12.020       -.77685E-05   -.87226E-04
   2  Index         1.6828        .85444       -.60033E-04    .11926E-04
   3  Normalizat    1.3230        .21867        .12100E-05    .59654E-04
   4  Prefactor     .76849        .18047       -.43855E-06    .61312E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.92193
  Index      = 1.68276
  Normalizat = 1.32297
  Prefactor  = 0.768492
 **********
 **   18 **HESSE 
 **********

 FCN=   5980.959     FROM HESSE     STATUS=OK            33 CALLS      262 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9219        11.288        .15244E-03   -1.5182    
   2  Index         1.6828        .80578        .97078E-02   -.72542    
   3  Normalizat    1.3230        .26159        .28211E-03   -.82883    
   4  Prefactor     .76849        .21591        .29575E-03   -1.0090    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.36431e-09
Minuit parameter uncertainties:
  1  11.2917
  2  0.812139
  3  0.261849
  4  0.216143
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/407855': 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) = 5980.95902818
delta logL = 0.491317271998

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  6.922e+00  1.129e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  1.683e+00  8.121e-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:  7.685e-01  2.161e-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.323e+00  2.618e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.28
Ra Dec: 339.125 -23.155
Photon Index (Free Index): 1.68 +/- 0.81
Photon Flux (Free Index): 1.26e-08 +/- 2.12e-08
Energy Flux (Free Index): 2.17e-05 +/- 3.86e-05

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/407855/cmap_HighResolution_531187201_531446401_4FGL_J2236.4-2309_daily_bin1126.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.35e-02', comment='SUCCESS', photon_flux='4.60e-08', energy_flux2='2.17e-05', photon_flux_error='5.35e-08', dlogl='4.91e-01', energy_flux='1.07e-05', photon_flux2='1.26e-08', job_status='DONE', time_completed='2021-09-28 17:24:07.193905', photon_index_error2='0.81', photon_index2='1.68', ts='1.30', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='1.72e-07', energy_flux_error2='3.86e-05', EG='1.28', time_epoch_completed='1632875047.19', return_code='0', job_id='407855', GAL2='0.77', EG2='1.32', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='2.12e-08', ts2='2.28', photon_index='2.74' WHERE bin_id='1126' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:24:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 407855: <4FGL_J2236.4-2309_daily_bin1126> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin1126> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 17:10:40 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:10:41 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:41 2021
Terminated at Tue Sep 28 17:24:07 2021
Results reported at Tue Sep 28 17:24:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1126 339.125 -23.1552 531187201 531446401 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 :                                   653.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             269.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   806 sec.
    Turnaround time :                            807 sec.

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

