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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin780
RA = 339.125, Dec = -23.1552
tmin = 441504001, tmax = 441763201
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='406348', job_status='RUN', time_executed='2021-09-28 17:09:46.436894', time_epoch_executed='1632874186.44' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='780'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/406348

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/406348/ft1_4FGL_J2236.4-2309_daily_bin780.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/406348/ft2_4FGL_J2236.4-2309_daily_bin780.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/406348/ft1_4FGL_J2236.4-2309_daily_bin780.fits outfile=/scratch/kocevski/406348/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin780.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=441504001.0 tmax=441763201.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.38
user 3.17
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/406348/ft1_filtered_4FGL_J2236.4-2309_daily_bin780.fits" evtable="EVENTS" scfile=/scratch/kocevski/406348/ft2_4FGL_J2236.4-2309_daily_bin780.fits sctable="SC_DATA" outfile=/scratch/kocevski/406348/ltcube_441504001_441763201_4FGL_J2236.4-2309_daily_bin780.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/406348/ft2_4FGL_J2236.4-2309_daily_bin780.fits
.....................!
real 11.81
user 11.51
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/406348/ft1_filtered_4FGL_J2236.4-2309_daily_bin780.fits evtable="EVENTS" scfile=/scratch/kocevski/406348/ft2_4FGL_J2236.4-2309_daily_bin780.fits sctable="SC_DATA" expcube=/scratch/kocevski/406348/ltcube_441504001_441763201_4FGL_J2236.4-2309_daily_bin780.fits outfile=/scratch/kocevski/406348/expmap_441504001_441763201_4FGL_J2236.4-2309_daily_bin780.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/406348/ltcube_441504001_441763201_4FGL_J2236.4-2309_daily_bin780.fits
.....................!
real 191.39
user 186.60
sys 4.47

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/406348/ft1_filtered_4FGL_J2236.4-2309_daily_bin780.fits scfile=/scratch/kocevski/406348/ft2_4FGL_J2236.4-2309_daily_bin780.fits outfile=/scratch/kocevski/406348/cmap_441504001_441763201_4FGL_J2236.4-2309_daily_bin780.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.52
user 0.38
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/406348/ft1_filtered_4FGL_J2236.4-2309_daily_bin780.fits evtable="EVENTS" scfile=/scratch/kocevski/406348/ft2_4FGL_J2236.4-2309_daily_bin780.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/406348/Model_4FGL_J2236.4-2309_daily_bin780.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/406348/ft1_filtered_4FGL_J2236.4-2309_daily_bin780.fits.....................!
real 42.32
user 41.04
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10773E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .36594E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    .87683       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.895       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    145.72       1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .29320       1.0000         .10000E-03   10000.    
    11 'norm      '    3.4540       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.3180       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .55851E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.9855       1.0000         .10000E-03   10000.    
    20 'norm      '    .97861E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1833       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .74629       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4713.454     FROM MIGRAD    STATUS=FAILED       955 CALLS     3565 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.218        .18142E-02** at limit **
   2  Prefactor     .10000E-03    85.996        .17314    ** at limit **
   3  norm          .87660        .41256        .29095E-04   -.95193E-03
   4  Prefactor     16.885        13.881        .97442E-04   -.15436E-03
   5  Prefactor     .10000E-03    38.957        .36285E-02** at limit **
   6  Prefactor     .10000E-03    11.966        .18142E-02** at limit **
   7  Prefactor     145.78        83.254        .16690E-03    .86235E-04
   8  norm          .10000E-03    11.039        .18142E-02** at limit **
   9  Prefactor     .10000E-03    7.0471        .17757E-02** at limit **
  10  norm          .29319        1.0010        .97500E-03    .83112E-03
  11  norm          3.4539        2.3236        .82994E-04   -.19479E-03
  12  Prefactor     .10000E-03    25.246        .18142E-02** at limit **
  13  Prefactor     5.3147        13.671        .17428E-03   -.70255E-04
  14  Prefactor     .10000E-03    18.570        .18142E-02** at limit **
  15  norm          .55590E-01    1.7875        .10921E-02    .63475E-02
  16  norm          .10000E-03    1.7513        .88465E-03** at limit **
  17  Prefactor     .10000E-03    22.148        .18142E-02** at limit **
  18  Prefactor     .10000E-03    6.6885        .17325E-02** at limit **
  19  Prefactor     9.9756        8.5938        .12681E-03   -.20486E-03
  20  norm          .98347E-01    .43350        .78892E-04   -.92083E-04
  21  Prefactor     .10000E-03    10.324        .18142E-02** at limit **
  22  Prefactor     .10000E-03    6.6959        .17299E-02** at limit **
  23  Normalizat    1.1832        .25195        .23620E-03   -.39950E-05
  24  Prefactor     .74631        .21084        .24529E-03    .73925E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4713.454     FROM SIMPLEX   STATUS=UNCHANGED   1232 CALLS     4797 TOTAL
                     EDM=   .20E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.218        .95886E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    85.996        .73251E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .87660        .41256        .11524E-05   -1.5521    
   4  Prefactor     16.885        13.881        .11041E-05   -1.4886    
   5  Prefactor     .10000E-03    38.957        .71186E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.966        .42141E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     145.78        83.254        .98501E-06   -1.3287    
   8  norm          .10000E-03    11.039        .39371E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.0471        .30916E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .29319        1.0010        .11586E-05   -1.5600    
  11  norm          3.4539        2.3236        .11396E-05   -1.5336    
  12  Prefactor     .10000E-03    25.246        .88463E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.3147        13.671        .11321E-05   -1.5247    
  14  Prefactor     .10000E-03    18.570        .14233E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .55590E-01    1.7875        .11633E-05   -1.5661    
  16  norm          .10000E-03    1.7513        .44143E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    22.148        .26140E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.6885        .19200E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.9756        8.5938        .11192E-05   -1.5076    
  20  norm          .98347E-01    .43350        .11613E-05   -1.5645    
  21  Prefactor     .10000E-03    10.324        .11905E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.6959        .15155E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1832        .25195        .64699E-06   -.87124    
  24  Prefactor     .74631        .21084        .75540E-06   -1.0174    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4713.454     FROM MIGRAD    STATUS=CONVERGED    390 CALLS     5187 TOTAL
                     EDM=   .69E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.220        .36285E-03** at limit **
   2  Prefactor     .10000E-03    92.905        .16479    ** at limit **
   3  norm          .87660        .41258        .58190E-05    .48452E-04
   4  Prefactor     16.885        13.878        .38977E-05    .70003E-05
   5  Prefactor     .10000E-03    39.267        .72569E-03** at limit **
   6  Prefactor     .10000E-03    11.968        .36285E-03** at limit **
   7  Prefactor     145.78        83.190        .33380E-04    .12261E-05
   8  norm          .10000E-03    11.040        .36285E-03** at limit **
   9  Prefactor     .10000E-03    7.0483        .35513E-03** at limit **
  10  norm          .29318        .99800        .39000E-04    .58301E-06
  11  norm          3.4539        2.3235        .33198E-05    .13698E-05
  12  Prefactor     .10000E-03    25.247        .36285E-03** at limit **
  13  Prefactor     5.3147        13.668        .69713E-05    .32616E-06
  14  Prefactor     .10000E-03    18.569        .36285E-03** at limit **
  15  norm          .55595E-01    1.7861        .21843E-03    .26440E-04
  16  norm          .10000E-03    1.7514        .17693E-03** at limit **
  17  Prefactor     .10000E-03    22.148        .36285E-03** at limit **
  18  Prefactor     .10000E-03    6.6887        .34650E-03** at limit **
  19  Prefactor     9.9756        8.5887        .50722E-05    .13448E-05
  20  norm          .98346E-01    .43297        .31557E-05    .14411E-05
  21  Prefactor     .10000E-03    10.328        .36285E-03** at limit **
  22  Prefactor     .10000E-03    6.6969        .34597E-03** at limit **
  23  Normalizat    1.1832        .25213        .94478E-05    .10108E-04
  24  Prefactor     .74631        .21081        .98116E-05    .88061E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.876599
  Prefactor  = 16.8853
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 145.782
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.293183
  norm       = 3.45386
  Prefactor  = 0.0001
  Prefactor  = 5.31473
  Prefactor  = 0.0001
  norm       = 0.0555951
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.97559
  norm       = 0.0983462
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.1832
  Prefactor  = 0.746311
 **********
 **   18 **HESSE 
 **********

 FCN=   4713.454     FROM HESSE     STATUS=OK           385 CALLS     5572 TOTAL
                     EDM=   .39E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.220        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    90.371        .16770       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .87660        .41256        .11638E-05   -1.5521    
   4  Prefactor     16.885        13.870        .77953E-06   -1.4886    
   5  Prefactor     .10000E-03    39.279        .14514E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.968        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     145.78        83.183        .66760E-05   -1.3287    
   8  norm          .10000E-03    11.040        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.0483        .71026E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .29318        .99767        .15600E-05   -1.5600    
  11  norm          3.4539        2.3232        .66396E-06   -1.5336    
  12  Prefactor     .10000E-03    25.247        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.3147        13.668        .69713E-05   -1.5247    
  14  Prefactor     .10000E-03    18.569        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .55595E-01    1.7843        .87372E-05   -1.5661    
  16  norm          .10000E-03    1.7514        .35386E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    22.148        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.6887        .69299E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.9756        8.5909        .10144E-05   -1.5076    
  20  norm          .98346E-01    .43277        .63113E-06   -1.5645    
  21  Prefactor     .10000E-03    10.328        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.6969        .69194E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1832        .25194        .18896E-05   -.87124    
  24  Prefactor     .74631        .21054        .19623E-05   -1.0174    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.88346e-13
Minuit parameter uncertainties:
  1  2.46427e-09
  2  0.000474527
  3  0.412566
  4  13.8722
  5  6.7049e-06
  6  3.18858e-07
  7  83.25
  8  1.50717e-07
  9  6.77664e-08
  10  0.99773
  11  2.32324
  12  8.45345e-07
  13  13.6758
  14  5.26134e-06
  15  0.62936
  16  6.77871e-08
  17  1.91392e-06
  18  3.80383e-07
  19  8.59195
  20  0.412403
  21  2.60741e-07
  22  5.39674e-07
  23  0.252201
  24  0.210766
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  6.777e-08  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.463e-01  2.108e-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.183e+00  2.522e-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.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/406348/likelihoodResults_441504001_441763201_4FGL_J2236.4-2309_daily_bin780.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) = 4713.45506402
delta logL = -0.00067564510573

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4713.45438951
delta logL = -1.13455553219e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11448E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7145       1.0000          .0000       10.000    
     3 'Normalizat'    1.1830       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74649       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=   4713.426     FROM MIGRAD    STATUS=CONVERGED    163 CALLS      315 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1545        6.3816        .18142E-01    .79119E-03
   2  Index         1.4993        .81720        .27697       -.50728E-04
   3  Normalizat    1.1873        .24239        .23620E-03    .28879E-05
   4  Prefactor     .74070        .20651        .24529E-03   -.19003E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.15446
  Index      = 1.49932
  Normalizat = 1.1873
  Prefactor  = 0.740702
 **********
 **   18 **HESSE 
 **********

 FCN=   4713.426     FROM HESSE     STATUS=OK            29 CALLS      344 TOTAL
                     EDM=   .88E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1545        6.5252        .33020E-03   -1.5493    
   2  Index         1.4993        1.2514        .15209E-01   -.77559    
   3  Normalizat    1.1873        .24264        .94479E-05   -.86996    
   4  Prefactor     .74070        .20654        .98116E-05   -1.0195    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.80295e-12
Minuit parameter uncertainties:
  1  5.48997
  2  1.27859
  3  0.242873
  4  0.206758
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/406348': 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) = 4713.42602927
delta logL = 0.0283591061907

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  7.407e-01  2.068e-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.187e+00  2.429e-01  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/406348/cmap_HighResolution_441504001_441763201_4FGL_J2236.4-2309_daily_bin780.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.97e-03', job_status='DONE', photon_flux_upper_limit='8.83e-08', time_completed='2021-09-28 17:20:58.215467', job_id='406348', GAL2='0.74', fit_tolerance='1e-08', EG2='1.19', EG='1.18', time_epoch_completed='1632874858.22', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='2.84e-02', ts2='0.06', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='780' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:20:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 406348: <4FGL_J2236.4-2309_daily_bin780> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin780> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 17:05:42 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:05:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 17:05:43 2021
Terminated at Tue Sep 28 17:20:58 2021
Results reported at Tue Sep 28 17:20:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin780 339.125 -23.1552 441504001 441763201 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 :                                   672.29 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             271.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            916 sec.

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

