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


Performing analysis on: 4FGL_J2236.5-1433_daily_bin1084
RA = 339.144, Dec = -14.5557
tmin = 520300801, tmax = 520560001
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='413924', job_status='RUN', time_executed='2021-09-28 17:33:53.824431', time_epoch_executed='1632875633.82' WHERE source_name='4FGL J2236.5-1433' and cadence='daily' and bin_id='1084'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/413924

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/413924/ft1_4FGL_J2236.5-1433_daily_bin1084.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/413924/ft2_4FGL_J2236.5-1433_daily_bin1084.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/413924/ft1_4FGL_J2236.5-1433_daily_bin1084.fits outfile=/scratch/kocevski/413924/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1084.fits ra=339.144 dec=-14.5557 rad=12.0 tmin=520300801.0 tmax=520560001.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 6.12
user 5.87
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/413924/ft2_4FGL_J2236.5-1433_daily_bin1084.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/413924/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1084.fits evtable="EVENTS" outfile="/scratch/kocevski/413924/ft1_filtered_4FGL_J2236.5-1433_daily_bin1084.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/413924/ft1_filtered_4FGL_J2236.5-1433_daily_bin1084.fits" evtable="EVENTS" scfile=/scratch/kocevski/413924/ft2_4FGL_J2236.5-1433_daily_bin1084.fits sctable="SC_DATA" outfile=/scratch/kocevski/413924/ltcube_520300801_520560001_4FGL_J2236.5-1433_daily_bin1084.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/413924/ft2_4FGL_J2236.5-1433_daily_bin1084.fits
.....................!
real 12.80
user 12.42
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/413924/ft1_filtered_4FGL_J2236.5-1433_daily_bin1084.fits evtable="EVENTS" scfile=/scratch/kocevski/413924/ft2_4FGL_J2236.5-1433_daily_bin1084.fits sctable="SC_DATA" expcube=/scratch/kocevski/413924/ltcube_520300801_520560001_4FGL_J2236.5-1433_daily_bin1084.fits outfile=/scratch/kocevski/413924/expmap_520300801_520560001_4FGL_J2236.5-1433_daily_bin1084.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/413924/ltcube_520300801_520560001_4FGL_J2236.5-1433_daily_bin1084.fits
.....................!
real 189.33
user 185.16
sys 3.86

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/413924/ft1_filtered_4FGL_J2236.5-1433_daily_bin1084.fits scfile=/scratch/kocevski/413924/ft2_4FGL_J2236.5-1433_daily_bin1084.fits outfile=/scratch/kocevski/413924/cmap_520300801_520560001_4FGL_J2236.5-1433_daily_bin1084.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/413924/ft1_filtered_4FGL_J2236.5-1433_daily_bin1084.fits scfile=/scratch/kocevski/413924/ft2_4FGL_J2236.5-1433_daily_bin1084.fits outfile=/scratch/kocevski/413924/cmap_HighResolution_520300801_520560001_4FGL_J2236.5-1433_daily_bin1084.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/413924/ft1_filtered_4FGL_J2236.5-1433_daily_bin1084.fits evtable="EVENTS" scfile=/scratch/kocevski/413924/ft2_4FGL_J2236.5-1433_daily_bin1084.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/413924/Model_4FGL_J2236.5-1433_daily_bin1084.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/413924/ft1_filtered_4FGL_J2236.5-1433_daily_bin1084.fits.....................!
real 70.26
user 68.96
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/413924/ft1_filtered_4FGL_J2236.5-1433_daily_bin1084.fits', '/scratch/kocevski/413924/ft2_4FGL_J2236.5-1433_daily_bin1084.fits', expMap='/scratch/kocevski/413924/expmap_520300801_520560001_4FGL_J2236.5-1433_daily_bin1084.fits', expCube='/scratch/kocevski/413924/ltcube_520300801_520560001_4FGL_J2236.5-1433_daily_bin1084.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/413924/Model_4FGL_J2236.5-1433_daily_bin1084.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/413924/ft1_filtered_4FGL_J2236.5-1433_daily_bin1084.fits
Spacecraft file(s): /scratch/kocevski/413924/ft2_4FGL_J2236.5-1433_daily_bin1084.fits
Exposure map: /scratch/kocevski/413924/expmap_520300801_520560001_4FGL_J2236.5-1433_daily_bin1084.fits
Exposure cube: /scratch/kocevski/413924/ltcube_520300801_520560001_4FGL_J2236.5-1433_daily_bin1084.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/413924/Model_4FGL_J2236.5-1433_daily_bin1084.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) = 8176.34408337

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3854       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10274E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.182       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.651       1.0000         .10000E-03   10000.    
     5 'Prefactor '    78.986       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12549E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    4.2506       1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.961       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .39598E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.9875       1.0000         .10000E-03   10000.    
    12 'norm      '    2.1064       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .41345E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .24424E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    .74357E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.065       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.1036       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.2743       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .93094       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .90878       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=   8176.210     FROM MIGRAD    STATUS=CONVERGED    499 CALLS     1716 TOTAL
                     EDM=   .30E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2752        5.7517        .18425E-05    .12988E-04
   2  Prefactor     .10000E-03    10.749        .49930E-07** at limit **
   3  Prefactor     10.256        11.414       -.17834E-06    .82732E-05
   4  Prefactor     12.627        11.321        .17360E-06   -.23030E-06
   5  Prefactor     80.326        62.310       -.31762E-05   -.63828E-06
   6  Prefactor     .10000E-03    3.2844        .21282E-06** at limit **
   7  Prefactor     .10000E-03    34.519       -.18052E-06** at limit **
   8  norm          4.2410        3.1912        .35926E-06    .72936E-04
   9  Prefactor     21.245        57.897       -.93751E-05   -.40785E-05
  10  Prefactor     .10000E-03    8.6673       -.27988E-06** at limit **
  11  norm          5.9847        1.1990        .27292E-07    .70136E-04
  12  norm          2.1064        1.5639        .63556E-08    .20197E-04
  13  Prefactor     .10000E-03    27.948       -.38397E-06** at limit **
  14  Prefactor     .10000E-03    6.9033       -.47540E-06** at limit **
  15  norm          .66972E-01    .95081        .31774E-06   -.37274E-03
  16  Prefactor     16.471        22.239       -.11526E-06   -.29645E-05
  17  Prefactor     8.2587        9.8730        .43696E-06   -.18432E-05
  18  Prefactor     7.2898        6.1535       -.21799E-06    .18936E-05
  19  Prefactor     .10000E-03    7.6708       -.12156E-07** at limit **
  20  Normalizat    .93084        .17263       -.14752E-07    .24357E-04
  21  Prefactor     .90869        .12672       -.40727E-07   -.18429E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.27517
  Prefactor  = 0.0001
  Prefactor  = 10.2565
  Prefactor  = 12.6272
  Prefactor  = 80.3264
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.24104
  Prefactor  = 21.2451
  Prefactor  = 0.0001
  norm       = 5.98471
  norm       = 2.10644
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0669725
  Prefactor  = 16.471
  Prefactor  = 8.25868
  Prefactor  = 7.28979
  Prefactor  = 0.0001
  Normalizat = 0.930844
  Prefactor  = 0.90869
 **********
 **   18 **HESSE 
 **********

 FCN=   8176.210     FROM HESSE     STATUS=OK           327 CALLS     2043 TOTAL
                     EDM=   .75E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2752        5.7734        .96162E-03   -1.5294    
   2  Prefactor     .10000E-03    10.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.256        11.410        .12557E-03   -1.5067    
   4  Prefactor     12.627        11.293        .11262E-03   -1.4997    
   5  Prefactor     80.326        62.278        .22594E-03   -1.3913    
   6  Prefactor     .10000E-03    3.4207        .31907E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    34.591        .18171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.2410        3.1846        .13092E-03   -1.5296    
   9  Prefactor     21.245        57.952        .85472E-04   -1.4786    
  10  Prefactor     .10000E-03    8.7726        .21268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.9847        1.1962        .42028E-04   -1.5219    
  12  norm          2.1064        1.5655        .94841E-04   -1.5418    
  13  Prefactor     .10000E-03    28.052        .19453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    34.577        .38642E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .66972E-01    2.0928        .12750E-02   -1.5656    
  16  Prefactor     16.471        22.181        .99927E-04   -1.4896    
  17  Prefactor     8.2587        9.8630        .70421E-03   -1.5133    
  18  Prefactor     7.2898        6.1516        .14872E-03   -1.5168    
  19  Prefactor     .10000E-03    7.6729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .93084        .20209        .28178E-03   -.95385    
  21  Prefactor     .90869        .14882        .21354E-03   -.95838    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.4833e-08
Minuit parameter uncertainties:
  1  5.77415
  2  1.65437e-05
  3  11.4129
  4  11.2945
  5  62.3286
  6  1.35504e-05
  7  1.47959e-05
  8  3.18468
  9  58.106
  10  1.59498e-05
  11  1.19623
  12  1.56551
  13  1.63953e-05
  14  0.000191793
  15  0.748222
  16  22.1921
  17  9.86493
  18  6.15214
  19  1.00971e-06
  20  0.202257
  21  0.148887
Done.

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

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  5.985e+00  1.196e+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

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  9.087e-01  1.489e-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:  9.308e-01  2.023e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 84.96
Ra Dec: 339.144 -14.556
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 2.32e-07 +/- 4.64e-08
Energy Flux (Fixed Index): 1.13e-04 +/- 2.27e-05

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) = 8176.14063828
delta logL = 0.0689750065003

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8176.13620105
delta logL = 0.0734122322383

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.0042       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9929       1.0000          .0000       5.0000    
     3 'Normalizat'    .94414       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90328       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=   8176.136     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      193 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.0042        1.3052        .40966E-02    .38921E-02
   2  alpha         1.9929        .19606        .14836       -.35758E-05
   3  Normalizat    .94416        .16892        .45463E-01    .14623E-04
   4  Prefactor     .90327        .12582        .45047E-01    .14529E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.00425
  alpha      = 1.99293
  Normalizat = 0.944158
  Prefactor  = 0.903269
 **********
 **   18 **HESSE 
 **********

 FCN=   8176.136     FROM HESSE     STATUS=OK            31 CALLS      224 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.0042        1.2098        .42721E-04   -1.5218    
   2  alpha         1.9929        .18639        .63892E-02   -.20425    
   3  Normalizat    .94416        .19887        .28019E-03   -.94925    
   4  Prefactor     .90327        .14789        .21419E-03   -.96027    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.64787e-10
Minuit parameter uncertainties:
  1  1.20979
  2  0.186568
  3  0.199021
  4  0.147952
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/413924': 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) = 8176.13620104
delta logL = 0.0734122415197

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  6.004e+00  1.210e+00  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  1.993e+00  1.866e-01  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:  9.033e-01  1.480e-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:  9.442e-01  1.990e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 84.95
Ra Dec: 339.144 -14.556
Photon Index (Free Index): 1.99 +/- 0.19
Photon Flux (Free Index): 2.19e-07 +/- 5.61e-08
Energy Flux (Free Index): 1.21e-04 +/- 3.19e-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/413924/cmap_HighResolution_520300801_520560001_4FGL_J2236.5-1433_daily_bin1084.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.32e-07', energy_flux2='1.21e-04', photon_flux_error='4.64e-08', dlogl='7.34e-02', energy_flux='1.13e-04', photon_flux2='2.19e-07', job_status='DONE', time_completed='2021-09-28 17:43:25.814242', photon_index_error2='0.19', photon_index2='1.99', ts='84.96', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='3.19e-05', EG='0.93', time_epoch_completed='1632876205.81', return_code='0', job_id='413924', GAL2='0.90', EG2='0.94', return_code2='0', energy_flux_error='2.27e-05', photon_flux_error2='5.61e-08', ts2='84.95', photon_index='2.06' WHERE bin_id='1084' AND source_name='4FGL J2236.5-1433' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:43:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 413924: <4FGL_J2236.5-1433_daily_bin1084> in cluster <slac> Done

Job <4FGL_J2236.5-1433_daily_bin1084> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 17:30:42 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:30:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 17:30:43 2021
Terminated at Tue Sep 28 17:43:26 2021
Results reported at Tue Sep 28 17:43:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.5-1433_daily_bin1084 339.144 -14.5557 520300801 520560001 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 :                                   569.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             293.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   763 sec.
    Turnaround time :                            764 sec.

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

