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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin1568
RA = 339.125, Dec = -23.1552
tmin = 645753601, tmax = 646012801
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='409464', job_status='RUN', time_executed='2021-09-28 17:19:42.320340', time_epoch_executed='1632874782.32' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1568'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/409464

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/409464/ft1_4FGL_J2236.4-2309_daily_bin1568.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/409464/ft2_4FGL_J2236.4-2309_daily_bin1568.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/409464/ft1_4FGL_J2236.4-2309_daily_bin1568.fits outfile=/scratch/kocevski/409464/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1568.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=645753601.0 tmax=646012801.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 2.28
user 2.10
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/409464/ft1_filtered_4FGL_J2236.4-2309_daily_bin1568.fits" evtable="EVENTS" scfile=/scratch/kocevski/409464/ft2_4FGL_J2236.4-2309_daily_bin1568.fits sctable="SC_DATA" outfile=/scratch/kocevski/409464/ltcube_645753601_646012801_4FGL_J2236.4-2309_daily_bin1568.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/409464/ft2_4FGL_J2236.4-2309_daily_bin1568.fits
.....................!
real 12.26
user 11.92
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/409464/ft1_filtered_4FGL_J2236.4-2309_daily_bin1568.fits evtable="EVENTS" scfile=/scratch/kocevski/409464/ft2_4FGL_J2236.4-2309_daily_bin1568.fits sctable="SC_DATA" expcube=/scratch/kocevski/409464/ltcube_645753601_646012801_4FGL_J2236.4-2309_daily_bin1568.fits outfile=/scratch/kocevski/409464/expmap_645753601_646012801_4FGL_J2236.4-2309_daily_bin1568.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/409464/ltcube_645753601_646012801_4FGL_J2236.4-2309_daily_bin1568.fits
.....................!
real 191.65
user 186.36
sys 4.97

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/409464/ft1_filtered_4FGL_J2236.4-2309_daily_bin1568.fits scfile=/scratch/kocevski/409464/ft2_4FGL_J2236.4-2309_daily_bin1568.fits outfile=/scratch/kocevski/409464/cmap_645753601_646012801_4FGL_J2236.4-2309_daily_bin1568.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.38
sys 0.13

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/409464/ft1_filtered_4FGL_J2236.4-2309_daily_bin1568.fits evtable="EVENTS" scfile=/scratch/kocevski/409464/ft2_4FGL_J2236.4-2309_daily_bin1568.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/409464/Model_4FGL_J2236.4-2309_daily_bin1568.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/409464/ft1_filtered_4FGL_J2236.4-2309_daily_bin1568.fits.....................!
real 43.27
user 42.04
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22243E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    129.64       1.0000         .10000E-03   10000.    
     3 'norm      '    1.0474       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .26959       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.3406       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.959       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11489E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    13.899       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.1331       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11151E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12476E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .24190E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.5220       1.0000         .10000E-03   10000.    
    16 'norm      '    .13612E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10262E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11128E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.596       1.0000         .10000E-03   10000.    
    20 'norm      '    .50884E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.1656       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0738       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .96205       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=   5127.138     FROM MIGRAD    STATUS=CONVERGED    587 CALLS     3948 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10013E-03    44.559       -.34744E-05** at limit **
   2  Prefactor     129.54        97.002       -.67650E-04    .12018E-04
   3  norm          1.0470        .55282        .56843E-06    .13151E-02
   4  Prefactor     .28682        7.0609        .57823E-07    .19983E-03
   5  Prefactor     2.3444        13.807       -.30891E-05   -.19173E-03
   6  Prefactor     12.954        28.856        .61207E-05    .64367E-05
   7  Prefactor     .10000E-03    23.207       -.32073E-05** at limit **
   8  norm          13.904        25.676       -.27802E-05    .39420E-05
   9  Prefactor     .10000E-03    4.3360       -.50218E-07** at limit **
  10  norm          .10000E-03    .38587       -.13410E-06** at limit **
  11  norm          2.1345        2.0966       -.49694E-07    .16303E-03
  12  Prefactor     .10000E-03    41.292        .54648E-05** at limit **
  13  Prefactor     .10000E-03    20.739        .22575E-05** at limit **
  14  Prefactor     .10009E-03    11.103       -.35893E-06** at limit **
  15  norm          1.5214        1.0432       -.28992E-07    .60829E-03
  16  norm          .10000E-03    7.3979       -.43460E-08** at limit **
  17  Prefactor     .10000E-03    17.362       -.24293E-06** at limit **
  18  Prefactor     .10000E-03    10.479       -.14235E-07** at limit **
  19  Prefactor     19.415        14.403        .55738E-07    .61979E-03
  20  norm          .20013E-01    .65254       -.46742E-06    .44008E-03
  21  Prefactor     .10000E-03    2.3021       -.46002E-07** at limit **
  22  Prefactor     5.1111        14.531        .13731E-05    .15853E-03
  23  Normalizat    1.0747        .21256        .21257E-05    .19756E-03
  24  Prefactor     .96141        .17814        .15576E-05    .27110E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100128
  Prefactor  = 129.541
  norm       = 1.04704
  Prefactor  = 0.28682
  Prefactor  = 2.34436
  Prefactor  = 12.9545
  Prefactor  = 0.0001
  norm       = 13.9035
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.1345
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100089
  norm       = 1.52145
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.4154
  norm       = 0.0200127
  Prefactor  = 0.0001
  Prefactor  = 5.11113
  Normalizat = 1.07474
  Prefactor  = 0.961414
 **********
 **   18 **HESSE 
 **********

 FCN=   5127.138     FROM HESSE     STATUS=OK           409 CALLS     4357 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10013E-03    44.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     129.54        96.945        .17681E-03   -1.3427    
   3  norm          1.0470        .54904        .37226E-04   -1.5503    
   4  Prefactor     .28682        36.237        .36307E-02   -1.5601    
   5  Prefactor     2.3444        13.844        .26799E-03   -1.5402    
   6  Prefactor     12.954        28.660        .11127E-03   -1.4988    
   7  Prefactor     .10000E-03    23.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          13.904        25.673        .10744E-03   -1.4962    
   9  Prefactor     .10000E-03    4.3422        .14561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .68120        .86001E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.1345        2.1025        .99243E-04   -1.5416    
  12  Prefactor     .10000E-03    41.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    21.047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10009E-03    33.343        .58915E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.5214        1.3051        .48421E-04   -1.5461    
  16  norm          .10000E-03    7.5865        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     19.415        20.461        .90478E-04   -1.4826    
  20  norm          .20013E-01    18.014        .85002E-03   -1.5680    
  21  Prefactor     .10000E-03    2.3031        .10610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.1111        14.414        .17688E-03   -1.5256    
  23  Normalizat    1.0747        .26736        .26321E-03   -.90567    
  24  Prefactor     .96141        .22095        .23398E-03   -.94027    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.0765e-09
Minuit parameter uncertainties:
  1  0.00478812
  2  97.0645
  3  0.549042
  4  6.4507
  5  11.3978
  6  28.6903
  7  2.05717e-05
  8  25.6938
  9  5.86786e-06
  10  9.004e-06
  11  2.10255
  12  5.70672e-05
  13  8.46461e-05
  14  0.0034469
  15  1.3051
  16  1.17855e-05
  17  2.61889e-05
  18  1.06416e-05
  19  20.4686
  20  1.19819
  21  2.72712e-06
  22  14.4235
  23  0.267701
  24  0.221155
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  5.868e-06  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.614e-01  2.212e-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.075e+00  2.677e-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: 7.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/409464/likelihoodResults_645753601_646012801_4FGL_J2236.4-2309_daily_bin1568.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) = 5127.13950557
delta logL = -0.00109381784569

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5127.13841167
delta logL = 8.22383299237e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7258       1.0000          .0000       10.000    
     3 'Normalizat'    1.0747       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96143       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=   5127.138     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      252 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    79.291        .14732E-01** at limit **
   2  Index         2.0442        6.9296        .50000       -.17724E-06
   3  Normalizat    1.0747        .19249E-01    .26321E-03   -.10984E-03
   4  Prefactor     .96141        .16371E-01    .23398E-03   -.11078E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 2.04425
  Normalizat = 1.07474
  Prefactor  = 0.961413
 **********
 **   18 **HESSE 
 **********

 FCN=   5127.138     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      281 TOTAL
                     EDM=   .96E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    573.01        .17010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0442        6.0221        .50000       -.63248    
   3  Normalizat    1.0747        .58503E-01    .10528E-04   -.90567    
   4  Prefactor     .96141        .49757E-01    .93592E-05   -.94027    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.64311e-08
Minuit parameter uncertainties:
  1  0.00317195
  2  1017.36
  3  0.0585061
  4  0.0497593
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/409464': 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) = 5127.13840862
delta logL = 3.13194323098e-06

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  3.172e-03  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.044e+00  1.017e+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:  9.614e-01  4.976e-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.075e+00  5.851e-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/409464/cmap_HighResolution_645753601_646012801_4FGL_J2236.4-2309_daily_bin1568.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.91e-03', job_status='DONE', photon_flux_upper_limit='7.50e-08', time_completed='2021-09-28 17:30:00.907868', job_id='409464', GAL2='0.96', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1632875400.91', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='3.13e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1568' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:30:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 409464: <4FGL_J2236.4-2309_daily_bin1568> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin1568> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 17:15:36 2021
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:15:38 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:15:38 2021
Terminated at Tue Sep 28 17:30:01 2021
Results reported at Tue Sep 28 17:30:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1568 339.125 -23.1552 645753601 646012801 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 :                                   618.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             299.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            865 sec.

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

