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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin1115
RA = 339.125, Dec = -23.1552
tmin = 528336001, tmax = 528595201
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='407839', job_status='RUN', time_executed='2021-09-28 17:11:46.639532', time_epoch_executed='1632874306.64' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1115'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/407839

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/407839/ft1_4FGL_J2236.4-2309_daily_bin1115.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/407839/ft2_4FGL_J2236.4-2309_daily_bin1115.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/407839/ft1_4FGL_J2236.4-2309_daily_bin1115.fits outfile=/scratch/kocevski/407839/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1115.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=528336001.0 tmax=528595201.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.21
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/407839/ft1_filtered_4FGL_J2236.4-2309_daily_bin1115.fits" evtable="EVENTS" scfile=/scratch/kocevski/407839/ft2_4FGL_J2236.4-2309_daily_bin1115.fits sctable="SC_DATA" outfile=/scratch/kocevski/407839/ltcube_528336001_528595201_4FGL_J2236.4-2309_daily_bin1115.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/407839/ft2_4FGL_J2236.4-2309_daily_bin1115.fits
.....................!
real 12.24
user 11.81
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/407839/ft1_filtered_4FGL_J2236.4-2309_daily_bin1115.fits evtable="EVENTS" scfile=/scratch/kocevski/407839/ft2_4FGL_J2236.4-2309_daily_bin1115.fits sctable="SC_DATA" expcube=/scratch/kocevski/407839/ltcube_528336001_528595201_4FGL_J2236.4-2309_daily_bin1115.fits outfile=/scratch/kocevski/407839/expmap_528336001_528595201_4FGL_J2236.4-2309_daily_bin1115.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/407839/ltcube_528336001_528595201_4FGL_J2236.4-2309_daily_bin1115.fits
.....................!
real 190.71
user 185.40
sys 4.80

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/407839/ft1_filtered_4FGL_J2236.4-2309_daily_bin1115.fits scfile=/scratch/kocevski/407839/ft2_4FGL_J2236.4-2309_daily_bin1115.fits outfile=/scratch/kocevski/407839/cmap_528336001_528595201_4FGL_J2236.4-2309_daily_bin1115.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/407839/ft1_filtered_4FGL_J2236.4-2309_daily_bin1115.fits scfile=/scratch/kocevski/407839/ft2_4FGL_J2236.4-2309_daily_bin1115.fits outfile=/scratch/kocevski/407839/cmap_HighResolution_528336001_528595201_4FGL_J2236.4-2309_daily_bin1115.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/407839/ft1_filtered_4FGL_J2236.4-2309_daily_bin1115.fits evtable="EVENTS" scfile=/scratch/kocevski/407839/ft2_4FGL_J2236.4-2309_daily_bin1115.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/407839/Model_4FGL_J2236.4-2309_daily_bin1115.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/407839/ft1_filtered_4FGL_J2236.4-2309_daily_bin1115.fits.....................!
real 47.26
user 45.83
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.3566       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.807       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.9994       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.4769       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .55626E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    17.272       1.0000         .10000E-03   10000.    
    16 'norm      '    1.2821       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10572E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.746       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.3694       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.003       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.6218       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .43585       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=   5206.889     FROM MIGRAD    STATUS=CONVERGED    597 CALLS     2839 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.4171       -.16495E-06** at limit **
   2  Prefactor     .10000E-03    27.964       -.60361E-07** at limit **
   3  norm          1.3567        .46681       -.43913E-08    .17389E-03
   4  Prefactor     .10000E-03    5.2563        .43978E-07** at limit **
   5  Prefactor     .10000E-03    5.0932       -.44087E-07** at limit **
   6  Prefactor     10.813        16.794       -.33941E-05   -.24925E-04
   7  Prefactor     .10000E-03    16.644       -.53167E-07** at limit **
   8  norm          .10000E-03    8.7542        .23388E-06** at limit **
   9  Prefactor     .10000E-03    5.3179       -.35160E-07** at limit **
  10  norm          .10000E-03    .37622       -.68938E-08** at limit **
  11  norm          4.9997        3.4001       -.17399E-05    .26396E-03
  12  Prefactor     8.4912        79.146        .39100E-04   -.10878E-04
  13  Prefactor     .16613        9.0869       -.67891E-06   -.29954E-04
  14  Prefactor     .10000E-03    152.95        .50715E-05** at limit **
  15  norm          17.273        2.7261        .20107E-06   -.20693E-03
  16  norm          1.2820        4.0612       -.12515E-05   -.82533E-03
  17  Prefactor     .10000E-03    85.374       -.12540E-05** at limit **
  18  Prefactor     .10000E-03    6.0648       -.99641E-07** at limit **
  19  Prefactor     23.738        16.957       -.73792E-06    .32352E-04
  20  norm          .10000E-03    .29739       -.20673E-07** at limit **
  21  Prefactor     3.3722        8.7164       -.20535E-04   -.20741E-03
  22  Prefactor     11.014        18.873        .19207E-05   -.20375E-04
  23  Normalizat    1.6213        .23891       -.33958E-06    .10798E-03
  24  Prefactor     .43598        .18661        .16294E-05   -.17638E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.35666
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.8128
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.99971
  Prefactor  = 8.49121
  Prefactor  = 0.166129
  Prefactor  = 0.0001
  norm       = 17.2727
  norm       = 1.28196
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.7383
  norm       = 0.0001
  Prefactor  = 3.37217
  Prefactor  = 11.0136
  Normalizat = 1.62126
  Prefactor  = 0.435983
 **********
 **   18 **HESSE 
 **********

 FCN=   5206.889     FROM HESSE     STATUS=OK           405 CALLS     3244 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.4221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    27.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.3567        .46900        .28115E-04   -1.5475    
   4  Prefactor     .10000E-03    5.2791        .16156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.0996        .15905E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.813        16.805        .12188E-03   -1.5050    
   7  Prefactor     .10000E-03    16.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    8.7596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.3324        .16250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .46939        .85814E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.9997        3.4168        .92036E-04   -1.5261    
  12  Prefactor     8.4912        79.349        .13768E-03   -1.5125    
  13  Prefactor     .16613        14.209        .68922E-01   -1.5626    
  14  Prefactor     .10000E-03    154.33        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          17.273        2.6837        .44751E-04   -1.4877    
  16  norm          1.2820        3.9772        .23249E-03   -1.5482    
  17  Prefactor     .10000E-03    85.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.0658        .17350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     23.738        16.706        .82201E-04   -1.4733    
  20  norm          .10000E-03    .30127        .75719E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.3722        8.7835        .22045E-03   -1.5341    
  22  Prefactor     11.014        18.723        .12078E-03   -1.5044    
  23  Normalizat    1.6213        .28449        .23856E-03   -.74426    
  24  Prefactor     .43598        .21747        .34656E-03   -1.1501    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24934e-09
Minuit parameter uncertainties:
  1  5.23736e-07
  2  8.37673e-07
  3  0.468997
  4  1.46927e-06
  5  1.53041e-06
  6  16.8121
  7  2.05619e-06
  8  5.24972e-06
  9  2.72997e-05
  10  1.05504e-06
  11  3.41691
  12  52.005
  13  3.07267
  14  0.000454472
  15  2.6837
  16  3.97798
  17  0.000270706
  18  4.87297e-06
  19  16.7094
  20  7.56959e-07
  21  8.78685
  22  18.733
  23  0.284779
  24  0.217883
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  2.730e-05  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:  4.360e-01  2.179e-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.621e+00  2.848e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 339.125 -23.155
Photon Flux Upper Limit: 8.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.40e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/407839/likelihoodResults_528336001_528595201_4FGL_J2236.4-2309_daily_bin1115.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5206.88988316
delta logL = -0.000884002562088

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5206.88899913
delta logL = 3.29991962644e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7310       1.0000          .0000       10.000    
     3 'Normalizat'    1.6213       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .43598       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=   5206.889     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      256 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    36.033        .16340E-01** at limit **
   2  Index         2.3636        5.9940        .50000        .14643E-07
   3  Normalizat    1.6213        .13895E-01    .23856E-03   -.62097E-03
   4  Prefactor     .43598        .11188E-01    .34656E-03   -.40970E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.36357
  Normalizat = 1.62126
  Prefactor  = 0.435984
 **********
 **   18 **HESSE 
 **********

 FCN=   5206.889     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      285 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    324.90        .17031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3636        5.5084        .50000       -.55540    
   3  Normalizat    1.6213        .44279E-01    .47713E-04   -.74426    
   4  Prefactor     .43598        .35652E-01    .13862E-04   -1.1501    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.74967e-11
Minuit parameter uncertainties:
  1  2.47867e-05
  2  1050.64
  3  0.0442803
  4  0.0356541
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/407839': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5206.88899827
delta logL = 8.86778252607e-07

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  2.479e-05  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.364e+00  1.051e+03  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:  4.360e-01  3.565e-02  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  1.621e+00  4.428e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/407839/cmap_HighResolution_528336001_528595201_4FGL_J2236.4-2309_daily_bin1115.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.40e-03', job_status='DONE', photon_flux_upper_limit='8.11e-08', time_completed='2021-09-28 17:21:44.598472', job_id='407839', GAL2='0.44', fit_tolerance='1e-08', EG2='1.62', EG='1.62', time_epoch_completed='1632874904.6', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.44', dlogl='8.87e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1115' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:21:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 407839: <4FGL_J2236.4-2309_daily_bin1115> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1115 339.125 -23.1552 528336001 528595201 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 :                                   596.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   664 sec.
    Turnaround time :                            666 sec.

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

