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


Performing analysis on: 4FGL_J2236.5-1433_daily_bin1265
RA = 339.144, Dec = -14.5557
tmin = 567216001, tmax = 567475201
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='415163', job_status='RUN', time_executed='2021-09-28 17:36:25.157038', time_epoch_executed='1632875785.16' WHERE source_name='4FGL J2236.5-1433' and cadence='daily' and bin_id='1265'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/415163

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/415163/ft1_4FGL_J2236.5-1433_daily_bin1265.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/415163/ft2_4FGL_J2236.5-1433_daily_bin1265.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/415163/ft1_4FGL_J2236.5-1433_daily_bin1265.fits outfile=/scratch/kocevski/415163/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1265.fits ra=339.144 dec=-14.5557 rad=12.0 tmin=567216001.0 tmax=567475201.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.85
user 2.65
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/415163/ft2_4FGL_J2236.5-1433_daily_bin1265.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/415163/ft2_4FGL_J2236.5-1433_daily_bin1265.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/415163/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1265.fits evtable="EVENTS" outfile="/scratch/kocevski/415163/ft1_filtered_4FGL_J2236.5-1433_daily_bin1265.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/415163/ft1_filtered_4FGL_J2236.5-1433_daily_bin1265.fits" evtable="EVENTS" scfile=/scratch/kocevski/415163/ft2_4FGL_J2236.5-1433_daily_bin1265.fits sctable="SC_DATA" outfile=/scratch/kocevski/415163/ltcube_567216001_567475201_4FGL_J2236.5-1433_daily_bin1265.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/415163/ft2_4FGL_J2236.5-1433_daily_bin1265.fits
.....................!
real 12.38
user 12.02
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/415163/ft1_filtered_4FGL_J2236.5-1433_daily_bin1265.fits evtable="EVENTS" scfile=/scratch/kocevski/415163/ft2_4FGL_J2236.5-1433_daily_bin1265.fits sctable="SC_DATA" expcube=/scratch/kocevski/415163/ltcube_567216001_567475201_4FGL_J2236.5-1433_daily_bin1265.fits outfile=/scratch/kocevski/415163/expmap_567216001_567475201_4FGL_J2236.5-1433_daily_bin1265.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/415163/ltcube_567216001_567475201_4FGL_J2236.5-1433_daily_bin1265.fits
.....................!
real 190.86
user 185.93
sys 4.46

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 154 point sources and 0 extended sources

Setting source of interest to:
4FGL J2236.5-1433 @ 339.144 -14.5557

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/415163/ft1_filtered_4FGL_J2236.5-1433_daily_bin1265.fits scfile=/scratch/kocevski/415163/ft2_4FGL_J2236.5-1433_daily_bin1265.fits outfile=/scratch/kocevski/415163/cmap_567216001_567475201_4FGL_J2236.5-1433_daily_bin1265.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.144 yref=-14.5557 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.55
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/415163/ft1_filtered_4FGL_J2236.5-1433_daily_bin1265.fits scfile=/scratch/kocevski/415163/ft2_4FGL_J2236.5-1433_daily_bin1265.fits outfile=/scratch/kocevski/415163/cmap_HighResolution_567216001_567475201_4FGL_J2236.5-1433_daily_bin1265.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.144 yref=-14.5557 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/415163/ft1_filtered_4FGL_J2236.5-1433_daily_bin1265.fits evtable="EVENTS" scfile=/scratch/kocevski/415163/ft2_4FGL_J2236.5-1433_daily_bin1265.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/415163/Model_4FGL_J2236.5-1433_daily_bin1265.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/415163/ft1_filtered_4FGL_J2236.5-1433_daily_bin1265.fits.....................!
real 64.49
user 63.16
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/415163/ft1_filtered_4FGL_J2236.5-1433_daily_bin1265.fits', '/scratch/kocevski/415163/ft2_4FGL_J2236.5-1433_daily_bin1265.fits', expMap='/scratch/kocevski/415163/expmap_567216001_567475201_4FGL_J2236.5-1433_daily_bin1265.fits', expCube='/scratch/kocevski/415163/ltcube_567216001_567475201_4FGL_J2236.5-1433_daily_bin1265.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/415163/Model_4FGL_J2236.5-1433_daily_bin1265.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2236.5-1433'

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  1.854e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  2.065e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
259         beta:  7.101e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
260           Eb:  6.415e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/415163/ft1_filtered_4FGL_J2236.5-1433_daily_bin1265.fits
Spacecraft file(s): /scratch/kocevski/415163/ft2_4FGL_J2236.5-1433_daily_bin1265.fits
Exposure map: /scratch/kocevski/415163/expmap_567216001_567475201_4FGL_J2236.5-1433_daily_bin1265.fits
Exposure cube: /scratch/kocevski/415163/ltcube_567216001_567475201_4FGL_J2236.5-1433_daily_bin1265.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/415163/Model_4FGL_J2236.5-1433_daily_bin1265.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) = 7761.94446732

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2171       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.9502       1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.403       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.5447       1.0000         .10000E-03   10000.    
     5 'Prefactor '    28.252       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.4966       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .16158E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11507E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.9255       1.0000         .10000E-03   10000.    
    11 'norm      '    .37967       1.0000         .10000E-03   10000.    
    12 'norm      '    1.6182       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10240E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.9184       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.3735       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10317E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.651       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1771       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .76374       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7761.893     FROM MIGRAD    STATUS=CONVERGED    444 CALLS     2206 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2154        5.9707        .35460E-05    .30020E-03
   2  Prefactor     1.9487        25.591       -.80966E-06   -.10198E-04
   3  Prefactor     16.399        10.877       -.52877E-06    .25823E-03
   4  Prefactor     7.5454        9.0222        .19859E-06    .40160E-03
   5  Prefactor     28.143        59.216        .56259E-05    .21960E-03
   6  Prefactor     8.4921        4.2051        .71269E-06    .22599E-02
   7  Prefactor     .10000E-03    11.622        .11358E-06** at limit **
   8  norm          .10001E-03    2.5367       -.45933E-05** at limit **
   9  Prefactor     .10000E-03    58.120        .52538E-06** at limit **
  10  Prefactor     5.9266        7.5821       -.29306E-06    .24101E-04
  11  norm          .37972        .66591        .13976E-07    .60789E-03
  12  norm          1.6181        2.1581        .18699E-06    .17642E-03
  13  Prefactor     .10000E-03    44.154       -.16003E-07** at limit **
  14  Prefactor     .10000E-03    14.141       -.16516E-06** at limit **
  15  norm          3.9178        1.0398       -.48996E-07    .99089E-03
  16  Prefactor     .10000E-03    11.243       -.14343E-06** at limit **
  17  Prefactor     6.3715        6.2122       -.80277E-07    .16004E-05
  18  Prefactor     .10000E-03    5.6365        .26354E-06** at limit **
  19  Prefactor     11.674        17.727       -.21030E-06    .70986E-05
  20  Normalizat    1.1769        .16503        .28732E-05    .13113E-02
  21  Prefactor     .76381        .12507       -.14473E-05    .14258E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.21537
  Prefactor  = 1.94867
  Prefactor  = 16.3994
  Prefactor  = 7.54542
  Prefactor  = 28.1425
  Prefactor  = 8.49212
  Prefactor  = 0.0001
  norm       = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 5.9266
  norm       = 0.379723
  norm       = 1.61811
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.91779
  Prefactor  = 0.0001
  Prefactor  = 6.37146
  Prefactor  = 0.0001
  Prefactor  = 11.6735
  Normalizat = 1.17695
  Prefactor  = 0.76381
 **********
 **   18 **HESSE 
 **********

 FCN=   7761.893     FROM HESSE     STATUS=OK           317 CALLS     2523 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2154        5.8720        .40022E-03   -1.5487    
   2  Prefactor     1.9487        25.304        .29717E-03   -1.5429    
   3  Prefactor     16.399        10.871        .98890E-04   -1.4898    
   4  Prefactor     7.5454        9.0071        .14600E-03   -1.5159    
   5  Prefactor     28.143        59.843        .75374E-04   -1.4646    
   6  Prefactor     8.4921        4.2597        .11943E-03   -1.5125    
   7  Prefactor     .10000E-03    11.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10001E-03    3.1175        .22109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    58.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.9266        7.5874        .16497E-03   -1.5221    
  11  norm          .37972        .66505        .43077E-04   -1.5585    
  12  norm          1.6181        2.1342        .14391E-03   -1.5454    
  13  Prefactor     .10000E-03    44.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.9178        1.0327        .20381E-04   -1.5312    
  16  Prefactor     .10000E-03    11.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.3715        6.2121        .15899E-03   -1.5203    
  18  Prefactor     .10000E-03    5.7053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.674        17.727        .11736E-03   -1.5025    
  20  Normalizat    1.1769        .19442        .24332E-03   -.87318    
  21  Prefactor     .76381        .14577        .22526E-03   -1.0108    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.2617e-09
Minuit parameter uncertainties:
  1  5.34353
  2  14.051
  3  10.872
  4  9.0087
  5  59.9707
  6  4.25981
  7  4.57435e-05
  8  0.000267493
  9  0.000243032
  10  7.58864
  11  0.665067
  12  2.13434
  13  0.000126808
  14  1.7051e-05
  15  1.03271
  16  4.78656e-05
  17  6.21275
  18  1.54964e-06
  19  17.7346
  20  0.194543
  21  0.145842
Done.

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

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  3.797e-01  6.651e-01  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  2.065e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
259         beta:  7.101e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
260           Eb:  6.415e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  7.638e-01  1.458e-01  0.000e+00  1.000e+01 ( 1.000e+00)
493        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
494        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
491   Normalization:  1.177e+00  1.945e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.39
Ra Dec: 339.144 -14.556
Photon Flux Upper Limit: 7.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.65e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/415163/likelihoodResults_567216001_567475201_4FGL_J2236.5-1433_daily_bin1265.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): 0
logL (Free Index) = 7761.31243388
delta logL = 0.580140491647

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7761.30474476
delta logL = 0.58782960634

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .31194       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2963       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1328       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78224       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7761.305     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      219 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .31169        3.5512        .92111E-02    .22962E-02
   2  alpha         3.2967        4.1152        .44162        .59761E-04
   3  Normalizat    1.1327        .33786E-01    .55891E-01    .72017E-05
   4  Prefactor     .78226        .25961E-01    .43486E-01    .14240E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.311689
  alpha      = 3.29667
  Normalizat = 1.13275
  Prefactor  = 0.782262
 **********
 **   18 **HESSE 
 **********

 FCN=   7761.305     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      254 TOTAL
                     EDM=   .77E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .31169        11.302        .41920E-03   -1.5596    
   2  alpha         3.2967        2.5195        .18510E-01    .32432    
   3  Normalizat    1.1327        .23044        .24715E-03   -.88707    
   4  Prefactor     .78226        .18516        .22267E-03   -1.0039    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.73127e-07
Minuit parameter uncertainties:
  1  3.75393
  2  8.94262
  3  0.230647
  4  0.18531
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/415163': 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) = 7761.30474461
delta logL = 0.587829758078

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  3.117e-01  3.754e+00  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  3.297e+00  8.943e+00  0.000e+00  5.000e+00 ( 1.000e+00)
259         beta:  7.101e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
260           Eb:  6.415e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  7.823e-01  1.853e-01  0.000e+00  1.000e+01 ( 1.000e+00)
493        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
494        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
491   Normalization:  1.133e+00  2.306e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.60
Ra Dec: 339.144 -14.556
Photon Index (Free Index): 3.30 +/- 8.94
Photon Flux (Free Index): 5.33e-08 +/- 5.28e-08
Energy Flux (Free Index): 9.75e-06 +/- 2.64e-05

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/415163/cmap_HighResolution_567216001_567475201_4FGL_J2236.5-1433_daily_bin1265.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.65e-05', comment='SUCCESS', energy_flux2='9.75e-06', dlogl='5.88e-01', photon_flux2='5.33e-08', job_status='DONE', time_completed='2021-09-28 17:47:10.806769', photon_index_error2='8.94', photon_index2='3.30', ts='0.39', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='7.46e-08', energy_flux_error2='2.64e-05', EG='1.18', time_epoch_completed='1632876430.81', return_code='0', job_id='415163', GAL2='0.78', EG2='1.13', return_code2='102', photon_flux_error2='5.28e-08', ts2='1.60', photon_index='2.06' WHERE bin_id='1265' AND source_name='4FGL J2236.5-1433' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:47:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 415163: <4FGL_J2236.5-1433_daily_bin1265> in cluster <slac> Done

Job <4FGL_J2236.5-1433_daily_bin1265> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 17:35:13 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:35:14 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:35:14 2021
Terminated at Tue Sep 28 17:47:11 2021
Results reported at Tue Sep 28 17:47:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.5-1433_daily_bin1265 339.144 -14.5557 567216001 567475201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2236.5-1433 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   642.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             282.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   717 sec.
    Turnaround time :                            718 sec.

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

