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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin387
RA = 339.125, Dec = -23.1552
tmin = 339638401, tmax = 339897601
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='404531', job_status='RUN', time_executed='2021-09-28 17:04:13.078646', time_epoch_executed='1632873853.08' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='387'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/404531

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/404531/ft1_4FGL_J2236.4-2309_daily_bin387.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/404531/ft2_4FGL_J2236.4-2309_daily_bin387.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/404531/ft1_4FGL_J2236.4-2309_daily_bin387.fits outfile=/scratch/kocevski/404531/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin387.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=339638401.0 tmax=339897601.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.39
user 3.12
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/404531/ft2_4FGL_J2236.4-2309_daily_bin387.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/404531/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin387.fits evtable="EVENTS" outfile="/scratch/kocevski/404531/ft1_filtered_4FGL_J2236.4-2309_daily_bin387.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/404531/ft1_filtered_4FGL_J2236.4-2309_daily_bin387.fits" evtable="EVENTS" scfile=/scratch/kocevski/404531/ft2_4FGL_J2236.4-2309_daily_bin387.fits sctable="SC_DATA" outfile=/scratch/kocevski/404531/ltcube_339638401_339897601_4FGL_J2236.4-2309_daily_bin387.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/404531/ft2_4FGL_J2236.4-2309_daily_bin387.fits
.....................!
real 12.01
user 11.64
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/404531/ft1_filtered_4FGL_J2236.4-2309_daily_bin387.fits evtable="EVENTS" scfile=/scratch/kocevski/404531/ft2_4FGL_J2236.4-2309_daily_bin387.fits sctable="SC_DATA" expcube=/scratch/kocevski/404531/ltcube_339638401_339897601_4FGL_J2236.4-2309_daily_bin387.fits outfile=/scratch/kocevski/404531/expmap_339638401_339897601_4FGL_J2236.4-2309_daily_bin387.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/404531/ltcube_339638401_339897601_4FGL_J2236.4-2309_daily_bin387.fits
.....................!
real 191.54
user 186.20
sys 4.81

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/404531/ft1_filtered_4FGL_J2236.4-2309_daily_bin387.fits scfile=/scratch/kocevski/404531/ft2_4FGL_J2236.4-2309_daily_bin387.fits outfile=/scratch/kocevski/404531/cmap_339638401_339897601_4FGL_J2236.4-2309_daily_bin387.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=339.125 yref=-23.1552 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/404531/ft1_filtered_4FGL_J2236.4-2309_daily_bin387.fits scfile=/scratch/kocevski/404531/ft2_4FGL_J2236.4-2309_daily_bin387.fits outfile=/scratch/kocevski/404531/cmap_HighResolution_339638401_339897601_4FGL_J2236.4-2309_daily_bin387.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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/404531/ft1_filtered_4FGL_J2236.4-2309_daily_bin387.fits evtable="EVENTS" scfile=/scratch/kocevski/404531/ft2_4FGL_J2236.4-2309_daily_bin387.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/404531/Model_4FGL_J2236.4-2309_daily_bin387.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/404531/ft1_filtered_4FGL_J2236.4-2309_daily_bin387.fits.....................!
real 41.52
user 40.23
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.2352       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.921       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.2218       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14332E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.1345       1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10626E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.0753       1.0000         .10000E-03   10000.    
    11 'norm      '    6.8950       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.623       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.3273       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.250       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .33831E-02   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1563       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .96794       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=   4406.024     FROM MIGRAD    STATUS=CONVERGED    549 CALLS     2781 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.749        .11668E-05** at limit **
   2  Prefactor     .10000E-03    43.852        .19010E-06** at limit **
   3  norm          1.2353        .51943        .40920E-08   -.66464E-04
   4  Prefactor     13.913        18.712        .16035E-06   -.55657E-04
   5  Prefactor     3.2186        10.360        .89110E-05   -.71161E-03
   6  Prefactor     .10000E-03    54.226        .33122E-05** at limit **
   7  Prefactor     8.0979        65.807       -.19841E-04   -.26296E-03
   8  norm          .10001E-03    36.580       -.34778E-05** at limit **
   9  Prefactor     .10000E-03    52.089        .35571E-05** at limit **
  10  norm          4.0755        1.4172        .75380E-07   -.22836E-05
  11  norm          6.8934        3.8415       -.42109E-07   -.55579E-04
  12  Prefactor     .10001E-03    68.593       -.41873E-05** at limit **
  13  Prefactor     .10000E-03    10.739       -.10986E-05** at limit **
  14  Prefactor     20.625        13.745       -.14064E-07   -.24086E-04
  15  norm          .10000E-03    .59508        .28676E-07** at limit **
  16  norm          1.3265        3.9730        .58151E-06   -.15252E-03
  17  Prefactor     .10000E-03    14.497        .50373E-07** at limit **
  18  Prefactor     .10000E-03    28.257        .55035E-06** at limit **
  19  Prefactor     .10000E-03    6.4422        .28667E-09** at limit **
  20  norm          .10000E-03    .33152       -.43650E-07** at limit **
  21  Prefactor     10.251        10.518       -.50913E-07   -.41509E-04
  22  Prefactor     .10002E-03    10.467        .68081E-06** at limit **
  23  Normalizat    1.1560        .23784       -.12712E-05   -.60035E-04
  24  Prefactor     .96804        .20351        .67639E-06   -.13940E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.23528
  Prefactor  = 13.9132
  Prefactor  = 3.21858
  Prefactor  = 0.000100004
  Prefactor  = 8.09792
  norm       = 0.000100005
  Prefactor  = 0.000100004
  norm       = 4.07546
  norm       = 6.89339
  Prefactor  = 0.000100007
  Prefactor  = 0.000100001
  Prefactor  = 20.6251
  norm       = 0.0001
  norm       = 1.32651
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.251
  Prefactor  = 0.000100017
  Normalizat = 1.15599
  Prefactor  = 0.968039
 **********
 **   18 **HESSE 
 **********

 FCN=   4406.024     FROM HESSE     STATUS=OK           395 CALLS     3176 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    43.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.2353        .52076        .30092E-04   -1.5486    
   4  Prefactor     13.913        18.705        .10735E-03   -1.4962    
   5  Prefactor     3.2186        11.105        .11285E-02   -1.5349    
   6  Prefactor     .10000E-03    54.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.0979        76.411        .14057E-03   -1.5139    
   8  norm          .10001E-03    37.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    53.567        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.0755        1.4180        .44574E-04   -1.5304    
  11  norm          6.8934        3.8329        .92826E-04   -1.5183    
  12  Prefactor     .10001E-03    69.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     20.625        12.849        .88199E-04   -1.4799    
  15  norm          .10000E-03    .71547        .93234E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.3265        3.8099        .21296E-03   -1.5478    
  17  Prefactor     .10000E-03    14.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    28.431        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.4628        .16425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .47214        .71013E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.251        10.519        .12516E-03   -1.5068    
  22  Prefactor     .10002E-03    53.563        .39355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1560        .28096        .27047E-03   -.87974    
  24  Prefactor     .96804        .24337        .24785E-03   -.93803    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.82426e-09
Minuit parameter uncertainties:
  1  0.000152878
  2  4.35547e-05
  3  0.520762
  4  18.7128
  5  11.1126
  6  0.000937937
  7  49.8339
  8  0.000869267
  9  0.000978284
  10  1.41804
  11  3.83304
  12  0.00142304
  13  0.000148882
  14  12.8506
  15  1.67612e-07
  16  3.8106
  17  6.67156e-06
  18  7.1174e-05
  19  6.40151e-06
  20  4.39026e-06
  21  10.5204
  22  0.00190094
  23  0.281326
  24  0.243649
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  9.680e-01  2.436e-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.156e+00  2.813e-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: 1.60e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.26e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/404531/likelihoodResults_339638401_339897601_4FGL_J2236.4-2309_daily_bin387.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) = 4406.02405104
delta logL = -8.89471548362e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4406.02396248
delta logL = -3.90044988308e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6821       1.0000          .0000       10.000    
     3 'Normalizat'    1.1560       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96806       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=   4406.024     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      288 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10007E-03    86.198        .36285E-03** at limit **
   2  Index         2.7931        6.3927        .50000       -.27487E-04
   3  Normalizat    1.1560        .27791        .27047E-03    .98357E-05
   4  Prefactor     .96804        .23673        .24785E-03   -.18439E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100066
  Index      = 2.79309
  Normalizat = 1.15599
  Prefactor  = 0.96804
 **********
 **   18 **HESSE 
 **********

 FCN=   4406.024     FROM HESSE     STATUS=OK            29 CALLS      317 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10007E-03    77.400        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7931        6.3812        .50000       -.45714    
   3  Normalizat    1.1560        .27823        .10819E-04   -.87974    
   4  Prefactor     .96804        .23700        .99140E-05   -.93803    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46331e-09
Minuit parameter uncertainties:
  1  0.00454236
  2  4.4985
  3  0.278584
  4  0.237254
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/404531': 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) = 4406.02396179
delta logL = 3.03612068819e-07

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.001e-04  4.542e-03  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.793e+00  4.499e+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:  9.680e-01  2.373e-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.156e+00  2.786e-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/404531/cmap_HighResolution_339638401_339897601_4FGL_J2236.4-2309_daily_bin387.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.26e-02', job_status='DONE', photon_flux_upper_limit='1.60e-07', time_completed='2021-09-28 17:13:13.735301', job_id='404531', GAL2='0.97', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1632874393.74', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='3.04e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='387' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:13:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 404531: <4FGL_J2236.4-2309_daily_bin387> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin387> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 17:00:28 2021
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:00:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 17:00:30 2021
Terminated at Tue Sep 28 17:13:14 2021
Results reported at Tue Sep 28 17:13:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin387 339.125 -23.1552 339638401 339897601 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 :                                   540.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             301.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   764 sec.
    Turnaround time :                            766 sec.

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

