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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin1382
RA = 339.125, Dec = -23.1552
tmin = 597542401, tmax = 597801601
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='409190', job_status='RUN', time_executed='2021-09-28 17:15:53.911804', time_epoch_executed='1632874553.91' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1382'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/409190

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/409190/ft1_4FGL_J2236.4-2309_daily_bin1382.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/409190/ft2_4FGL_J2236.4-2309_daily_bin1382.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/409190/ft1_4FGL_J2236.4-2309_daily_bin1382.fits outfile=/scratch/kocevski/409190/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1382.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=597542401.0 tmax=597801601.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.52
user 3.30
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/409190/ft1_filtered_4FGL_J2236.4-2309_daily_bin1382.fits" evtable="EVENTS" scfile=/scratch/kocevski/409190/ft2_4FGL_J2236.4-2309_daily_bin1382.fits sctable="SC_DATA" outfile=/scratch/kocevski/409190/ltcube_597542401_597801601_4FGL_J2236.4-2309_daily_bin1382.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/409190/ft2_4FGL_J2236.4-2309_daily_bin1382.fits
.....................!
real 11.99
user 11.65
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/409190/ft1_filtered_4FGL_J2236.4-2309_daily_bin1382.fits evtable="EVENTS" scfile=/scratch/kocevski/409190/ft2_4FGL_J2236.4-2309_daily_bin1382.fits sctable="SC_DATA" expcube=/scratch/kocevski/409190/ltcube_597542401_597801601_4FGL_J2236.4-2309_daily_bin1382.fits outfile=/scratch/kocevski/409190/expmap_597542401_597801601_4FGL_J2236.4-2309_daily_bin1382.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/409190/ltcube_597542401_597801601_4FGL_J2236.4-2309_daily_bin1382.fits
.....................!
real 191.43
user 185.78
sys 5.30

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/409190/ft1_filtered_4FGL_J2236.4-2309_daily_bin1382.fits scfile=/scratch/kocevski/409190/ft2_4FGL_J2236.4-2309_daily_bin1382.fits outfile=/scratch/kocevski/409190/cmap_597542401_597801601_4FGL_J2236.4-2309_daily_bin1382.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/409190/ft1_filtered_4FGL_J2236.4-2309_daily_bin1382.fits scfile=/scratch/kocevski/409190/ft2_4FGL_J2236.4-2309_daily_bin1382.fits outfile=/scratch/kocevski/409190/cmap_HighResolution_597542401_597801601_4FGL_J2236.4-2309_daily_bin1382.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/409190/ft1_filtered_4FGL_J2236.4-2309_daily_bin1382.fits evtable="EVENTS" scfile=/scratch/kocevski/409190/ft2_4FGL_J2236.4-2309_daily_bin1382.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/409190/Model_4FGL_J2236.4-2309_daily_bin1382.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/409190/ft1_filtered_4FGL_J2236.4-2309_daily_bin1382.fits.....................!
real 55.11
user 53.80
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.8409       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.6171       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.1781       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .17128E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    29.081       1.0000         .10000E-03   10000.    
     8 'norm      '    10.809       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.2055       1.0000         .10000E-03   10000.    
    11 'norm      '    .10876E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    81.354       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.7652       1.0000         .10000E-03   10000.    
    14 'Prefactor '    56.087       1.0000         .10000E-03   10000.    
    15 'norm      '    3.7640       1.0000         .10000E-03   10000.    
    16 'norm      '    .92984       1.0000         .10000E-03   10000.    
    17 'Prefactor '    28.143       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10498E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.481       1.0000         .10000E-03   10000.    
    20 'norm      '    .16380       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.6142       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .99476       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .84594       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=   6850.346     FROM MIGRAD    STATUS=CONVERGED    567 CALLS     2870 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.8395        17.444        .69697E-07    .27710E-04
   2  Prefactor     .10000E-03    67.261       -.82469E-06** at limit **
   3  norm          1.6171        .43468       -.11582E-08    .20576E-03
   4  Prefactor     .10000E-03    5.0182       -.92702E-07** at limit **
   5  Prefactor     4.1758        10.509       -.11489E-05    .12367E-03
   6  Prefactor     .10007E-03    13.390        .70420E-06** at limit **
   7  Prefactor     29.052        51.652        .17389E-05   -.49035E-04
   8  norm          10.811        13.098        .42845E-06   -.63426E-04
   9  Prefactor     .10000E-03    2.2584       -.34939E-07** at limit **
  10  norm          2.2056        .98356       -.35728E-07    .18754E-04
  11  norm          .10000E-03    2.9128        .23707E-05** at limit **
  12  Prefactor     81.417        43.303        .16150E-05   -.58446E-04
  13  Prefactor     6.7644        8.4142        .34337E-06   -.88150E-05
  14  Prefactor     56.077        34.467        .11035E-06   -.10757E-04
  15  norm          3.7646        2.5123        .62172E-09    .12174E-03
  16  norm          .93012        3.7115        .54884E-06    .62455E-03
  17  Prefactor     28.146        49.966       -.51046E-06    .11476E-04
  18  Prefactor     .10001E-03    13.499       -.35476E-05** at limit **
  19  Prefactor     14.478        9.8334        .49350E-06    .14951E-02
  20  norm          .16388        .48694       -.19950E-06    .57495E-03
  21  Prefactor     .10000E-03    3.6356       -.28687E-07** at limit **
  22  Prefactor     1.6139        5.3856        .13462E-06    .30951E-03
  23  Normalizat    .99484        .18139       -.87751E-07    .23375E-03
  24  Prefactor     .84589        .15321        .75581E-06    .22964E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.83946
  Prefactor  = 0.0001
  norm       = 1.61706
  Prefactor  = 0.0001
  Prefactor  = 4.17579
  Prefactor  = 0.000100073
  Prefactor  = 29.0521
  norm       = 10.8112
  Prefactor  = 0.0001
  norm       = 2.2056
  norm       = 0.0001
  Prefactor  = 81.4173
  Prefactor  = 6.76442
  Prefactor  = 56.0767
  norm       = 3.76461
  norm       = 0.930122
  Prefactor  = 28.1462
  Prefactor  = 0.000100011
  Prefactor  = 14.4778
  norm       = 0.163878
  Prefactor  = 0.0001
  Prefactor  = 1.6139
  Normalizat = 0.994842
  Prefactor  = 0.845891
 **********
 **   18 **HESSE 
 **********

 FCN=   6850.346     FROM HESSE     STATUS=OK           413 CALLS     3283 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.8395        17.422        .13480E-03   -1.5113    
   2  Prefactor     .10000E-03    67.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.6171        .43521        .27311E-04   -1.5454    
   4  Prefactor     .10000E-03    5.0612        .18103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.1758        10.405        .19717E-03   -1.5299    
   6  Prefactor     .10007E-03    117.21        .56667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     29.052        51.242        .74294E-04   -1.4629    
   8  norm          10.811        13.063        .12186E-03   -1.5050    
   9  Prefactor     .10000E-03    2.2606        .12149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.2056        .98024        .51928E-04   -1.5411    
  11  norm          .10000E-03    2.8578        .19289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     81.417        42.681        .22265E-03   -1.3901    
  13  Prefactor     6.7644        8.4050        .15426E-03   -1.5188    
  14  Prefactor     56.077        35.290        .53563E-04   -1.4209    
  15  norm          3.7646        2.5828        .64379E-04   -1.5320    
  16  norm          .93012        3.5025        .26691E-03   -1.5515    
  17  Prefactor     28.146        49.735        .75519E-04   -1.4646    
  18  Prefactor     .10001E-03    47.505        .47027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.478        8.7148        .10525E-03   -1.4947    
  20  norm          .16388        .42690        .74637E-04   -1.5627    
  21  Prefactor     .10000E-03    3.6525        .15412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.6139        5.2706        .32374E-03   -1.5454    
  23  Normalizat    .99484        .21213        .25740E-03   -.93203    
  24  Prefactor     .84589        .18056        .24343E-03   -.98058    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92529e-09
Minuit parameter uncertainties:
  1  17.432
  2  8.50142e-05
  3  0.435215
  4  1.07004e-05
  5  10.4095
  6  0.0058771
  7  51.3193
  8  13.0664
  9  1.41122e-06
  10  0.980243
  11  2.69921e-05
  12  42.6968
  13  8.40644
  14  35.3029
  15  2.5829
  16  3.50332
  17  49.8082
  18  0.00145335
  19  8.71559
  20  0.426906
  21  5.42571e-06
  22  5.27208
  23  0.212314
  24  0.180691
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  1.411e-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:  8.459e-01  1.807e-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:  9.948e-01  2.123e-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: 4.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/409190/likelihoodResults_597542401_597801601_4FGL_J2236.4-2309_daily_bin1382.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) = 6850.34844917
delta logL = -0.00208670408938

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6850.34636241
delta logL = 6.04468368692e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7339       1.0000          .0000       10.000    
     3 'Normalizat'    .99484       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84589       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=   6850.346     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      244 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.681        .12187E-01** at limit **
   2  Index         2.2541        8.1886        .50000        .26769E-06
   3  Normalizat    .99484        .17836E-01    .25740E-03    .59979E-04
   4  Prefactor     .84589        .15762E-01    .24343E-03    .74630E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.25411
  Normalizat = 0.994842
  Prefactor  = 0.845891
 **********
 **   18 **HESSE 
 **********

 FCN=   6850.346     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    326.35        .12773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2541        5.9235        .50000       -.58138    
   3  Normalizat    .99484        .59726E-01    .10296E-04   -.93203    
   4  Prefactor     .84589        .52782E-01    .97371E-05   -.98058    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.95686e-09
Minuit parameter uncertainties:
  1  0.000100992
  2  1296.41
  3  0.0597301
  4  0.0527847
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/409190': 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) = 6850.34636036
delta logL = 2.10753296415e-06

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  1.010e-04  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.254e+00  1.296e+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:  8.459e-01  5.278e-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:  9.948e-01  5.973e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/409190/cmap_HighResolution_597542401_597801601_4FGL_J2236.4-2309_daily_bin1382.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.50e-03', job_status='DONE', photon_flux_upper_limit='4.43e-08', time_completed='2021-09-28 17:27:22.611218', job_id='409190', GAL2='0.85', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1632875242.61', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='2.11e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1382' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:27:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 409190: <4FGL_J2236.4-2309_daily_bin1382> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1382 339.125 -23.1552 597542401 597801601 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 :                                   686.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             330.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   725 sec.
    Turnaround time :                            727 sec.

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

