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


Performing analysis on: 4FGL_J2236.5-1433_daily_bin1061
RA = 339.144, Dec = -14.5557
tmin = 514339201, tmax = 514598401
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='413889', job_status='RUN', time_executed='2021-09-28 17:32:40.776191', time_epoch_executed='1632875560.78' WHERE source_name='4FGL J2236.5-1433' and cadence='daily' and bin_id='1061'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/413889

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/413889/ft1_4FGL_J2236.5-1433_daily_bin1061.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/413889/ft2_4FGL_J2236.5-1433_daily_bin1061.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/413889/ft1_4FGL_J2236.5-1433_daily_bin1061.fits outfile=/scratch/kocevski/413889/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1061.fits ra=339.144 dec=-14.5557 rad=12.0 tmin=514339201.0 tmax=514598401.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 4.22
user 3.98
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/413889/ft1_filtered_4FGL_J2236.5-1433_daily_bin1061.fits evtable="EVENTS" scfile=/scratch/kocevski/413889/ft2_4FGL_J2236.5-1433_daily_bin1061.fits sctable="SC_DATA" expcube=/scratch/kocevski/413889/ltcube_514339201_514598401_4FGL_J2236.5-1433_daily_bin1061.fits outfile=/scratch/kocevski/413889/expmap_514339201_514598401_4FGL_J2236.5-1433_daily_bin1061.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/413889/ltcube_514339201_514598401_4FGL_J2236.5-1433_daily_bin1061.fits
.....................!
real 190.06
user 185.16
sys 4.56

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/413889/ft1_filtered_4FGL_J2236.5-1433_daily_bin1061.fits scfile=/scratch/kocevski/413889/ft2_4FGL_J2236.5-1433_daily_bin1061.fits outfile=/scratch/kocevski/413889/cmap_514339201_514598401_4FGL_J2236.5-1433_daily_bin1061.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/413889/ft1_filtered_4FGL_J2236.5-1433_daily_bin1061.fits scfile=/scratch/kocevski/413889/ft2_4FGL_J2236.5-1433_daily_bin1061.fits outfile=/scratch/kocevski/413889/cmap_HighResolution_514339201_514598401_4FGL_J2236.5-1433_daily_bin1061.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/413889/ft1_filtered_4FGL_J2236.5-1433_daily_bin1061.fits evtable="EVENTS" scfile=/scratch/kocevski/413889/ft2_4FGL_J2236.5-1433_daily_bin1061.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/413889/Model_4FGL_J2236.5-1433_daily_bin1061.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/413889/ft1_filtered_4FGL_J2236.5-1433_daily_bin1061.fits.....................!
real 54.46
user 53.07
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3197       1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.968       1.0000         .10000E-03   10000.    
     3 'Prefactor '    32.579       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.6321       1.0000         .10000E-03   10000.    
     5 'Prefactor '    115.73       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .65916E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    19.926       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.4949       1.0000         .10000E-03   10000.    
    11 'norm      '    .23369E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.9845       1.0000         .10000E-03   10000.    
    15 'norm      '    5.7782       1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.768       1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.017       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.8032       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0066       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0541       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=   5740.737     FROM MIGRAD    STATUS=CONVERGED    455 CALLS     2218 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3219        8.0304        .32240E-06    .78805E-04
   2  Prefactor     22.970        18.002       -.13270E-06    .46593E-05
   3  Prefactor     32.573        18.155        .74188E-06    .18029E-03
   4  Prefactor     6.6449        18.085       -.11579E-05   -.41093E-04
   5  Prefactor     115.73        111.78        .17539E-06    .31370E-04
   6  Prefactor     .10000E-03    5.2359       -.10683E-05** at limit **
   7  Prefactor     .10001E-03    164.93        .77451E-05** at limit **
   8  norm          19.929        6.4709        .32539E-07    .19475E-03
   9  Prefactor     .10000E-03    29.415       -.28177E-06** at limit **
  10  Prefactor     7.4962        13.450        .70798E-06    .11873E-04
  11  norm          .10000E-03    .49147       -.28829E-06** at limit **
  12  norm          .10000E-03    1.2622       -.75880E-07** at limit **
  13  Prefactor     .10000E-03    23.363        .65297E-07** at limit **
  14  Prefactor     5.9666        75.426        .20779E-04    .77056E-04
  15  norm          5.7761        3.5918       -.17069E-05    .84446E-03
  16  Prefactor     21.863        51.331        .22323E-05    .47199E-04
  17  Prefactor     17.018        11.308       -.14273E-06   -.27933E-04
  18  Prefactor     3.8044        7.4481       -.68857E-07   -.25590E-04
  19  Prefactor     .10000E-03    7.2242        .96413E-08** at limit **
  20  Normalizat    1.0064        .24781       -.43007E-05    .17998E-03
  21  Prefactor     1.0540        .17987        .27999E-05    .15967E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.32185
  Prefactor  = 22.9704
  Prefactor  = 32.5734
  Prefactor  = 6.64486
  Prefactor  = 115.73
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  norm       = 19.9286
  Prefactor  = 0.0001
  Prefactor  = 7.49624
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.96665
  norm       = 5.77609
  Prefactor  = 21.8626
  Prefactor  = 17.0176
  Prefactor  = 3.80441
  Prefactor  = 0.0001
  Normalizat = 1.00639
  Prefactor  = 1.05405
 **********
 **   18 **HESSE 
 **********

 FCN=   5740.737     FROM HESSE     STATUS=OK           325 CALLS     2543 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3219        8.0200        .15967E-03   -1.5205    
   2  Prefactor     22.970        18.005        .83579E-04   -1.4749    
   3  Prefactor     32.573        18.185        .70202E-04   -1.4566    
   4  Prefactor     6.6449        18.021        .15582E-03   -1.5192    
   5  Prefactor     115.73        111.64        .37400E-04   -1.3552    
   6  Prefactor     .10000E-03    5.3187        .33691E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    167.64        .21013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          19.929        6.4682        .89727E-04   -1.4815    
   9  Prefactor     .10000E-03    29.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.4962        13.497        .14649E-03   -1.5160    
  11  norm          .10000E-03    8.5925        .10029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.9607        .16571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    23.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.9666        76.547        .16414E-03   -1.5219    
  15  norm          5.7761        3.6231        .51567E-04   -1.5227    
  16  Prefactor     21.863        51.425        .85849E-04   -1.4772    
  17  Prefactor     17.018        11.307        .97090E-04   -1.4883    
  18  Prefactor     3.8044        7.4356        .20698E-03   -1.5318    
  19  Prefactor     .10000E-03    7.2246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0064        .27905        .31212E-03   -.92817    
  21  Prefactor     1.0540        .20413        .23156E-03   -.90949    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.82048e-10
Minuit parameter uncertainties:
  1  8.02135
  2  18.0092
  3  18.1882
  4  18.0359
  5  111.847
  6  1.97462e-05
  7  0.00254549
  8  6.46847
  9  3.8933e-05
  10  13.5026
  11  0.000111436
  12  2.47948e-06
  13  1.56123e-05
  14  42.8096
  15  3.62323
  16  51.5297
  17  11.3086
  18  7.43738
  19  7.11774e-07
  20  0.279453
  21  0.204277
Done.

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

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  1.000e-04  1.114e-04  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:  1.054e+00  2.043e-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.006e+00  2.795e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/413889/likelihoodResults_514339201_514598401_4FGL_J2236.5-1433_daily_bin1061.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) = 5740.73795273
delta logL = -0.000588281480304

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5740.07412388
delta logL = 0.663240563932

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .28386       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5440       1.0000          .0000       5.0000    
     3 'Normalizat'    .95014       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0702       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=   5740.074     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      259 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .28404        4.9790        .87070E-02    .15548E-02
   2  alpha         3.5440        4.2619        .46981        .42282E-04
   3  Normalizat    .95017        .50267E-01    .72193E-01    .17219E-04
   4  Prefactor     1.0701        .38449E-01    .38848E-01    .31370E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.284036
  alpha      = 3.54401
  Normalizat = 0.950174
  Prefactor  = 1.07013
 **********
 **   18 **HESSE 
 **********

 FCN=   5740.074     FROM HESSE     STATUS=OK            35 CALLS      294 TOTAL
                     EDM=   .72E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .28404        .90779        .40239E-03   -1.5601    
   2  alpha         3.5440        1.8197        .19196E-01    .43081    
   3  Normalizat    .95017        .26391        .31943E-03   -.94719    
   4  Prefactor     1.0701        .19906        .22962E-03   -.90427    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.21679e-12
Minuit parameter uncertainties:
  1  0.907831
  2  2.11046
  3  0.264268
  4  0.199199
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/413889': 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) = 5740.07412354
delta logL = 0.663240909033

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  2.840e-01  9.078e-01  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  3.544e+00  2.110e+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:  1.070e+00  1.992e-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.502e-01  2.643e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.36
Ra Dec: 339.144 -14.556
Photon Index (Free Index): 3.54 +/- 2.11
Photon Flux (Free Index): 6.91e-08 +/- 6.96e-08
Energy Flux (Free Index): 1.17e-05 +/- 1.35e-05

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/413889/cmap_HighResolution_514339201_514598401_4FGL_J2236.5-1433_daily_bin1061.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.62e-05', comment='SUCCESS', energy_flux2='1.17e-05', dlogl='6.63e-01', photon_flux2='6.91e-08', job_status='DONE', time_completed='2021-09-28 17:42:06.436375', photon_index_error2='2.11', photon_index2='3.54', ts='-0.00', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='9.46e-08', energy_flux_error2='1.35e-05', EG='1.01', time_epoch_completed='1632876126.44', return_code='0', job_id='413889', GAL2='1.07', EG2='0.95', return_code2='0', photon_flux_error2='6.96e-08', ts2='1.36', photon_index='2.06' WHERE bin_id='1061' AND source_name='4FGL J2236.5-1433' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:42:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 413889: <4FGL_J2236.5-1433_daily_bin1061> in cluster <slac> Done

Job <4FGL_J2236.5-1433_daily_bin1061> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 17:30:40 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:30:41 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:41 2021
Terminated at Tue Sep 28 17:42:07 2021
Results reported at Tue Sep 28 17:42:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.5-1433_daily_bin1061 339.144 -14.5557 514339201 514598401 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 :                                   564.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   685 sec.
    Turnaround time :                            687 sec.

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

