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


Performing analysis on: 4FGL_J2236.5-1433_daily_bin1639
RA = 339.144, Dec = -14.5557
tmin = 664156801, tmax = 664416001
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='201018', job_status='RUN', time_executed='2022-01-21 00:36:08.362580', time_epoch_executed='1642754168.36' WHERE source_name='4FGL J2236.5-1433' and cadence='daily' and bin_id='1639'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/201018

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/201018/ft1_4FGL_J2236.5-1433_daily_bin1639.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/201018/ft2_4FGL_J2236.5-1433_daily_bin1639.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/201018/ft1_4FGL_J2236.5-1433_daily_bin1639.fits outfile=/scratch/kocevski/201018/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1639.fits ra=339.144 dec=-14.5557 rad=12.0 tmin=664156801.0 tmax=664416001.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.12
user 3.86
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/201018/ft1_filtered_4FGL_J2236.5-1433_daily_bin1639.fits" evtable="EVENTS" scfile=/scratch/kocevski/201018/ft2_4FGL_J2236.5-1433_daily_bin1639.fits sctable="SC_DATA" outfile=/scratch/kocevski/201018/ltcube_664156801_664416001_4FGL_J2236.5-1433_daily_bin1639.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/201018/ft2_4FGL_J2236.5-1433_daily_bin1639.fits
.....................!
real 12.39
user 11.72
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/201018/ft1_filtered_4FGL_J2236.5-1433_daily_bin1639.fits evtable="EVENTS" scfile=/scratch/kocevski/201018/ft2_4FGL_J2236.5-1433_daily_bin1639.fits sctable="SC_DATA" expcube=/scratch/kocevski/201018/ltcube_664156801_664416001_4FGL_J2236.5-1433_daily_bin1639.fits outfile=/scratch/kocevski/201018/expmap_664156801_664416001_4FGL_J2236.5-1433_daily_bin1639.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/201018/ltcube_664156801_664416001_4FGL_J2236.5-1433_daily_bin1639.fits
.....................!
real 191.53
user 186.04
sys 5.15

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/201018/ft1_filtered_4FGL_J2236.5-1433_daily_bin1639.fits scfile=/scratch/kocevski/201018/ft2_4FGL_J2236.5-1433_daily_bin1639.fits outfile=/scratch/kocevski/201018/cmap_664156801_664416001_4FGL_J2236.5-1433_daily_bin1639.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/201018/ft1_filtered_4FGL_J2236.5-1433_daily_bin1639.fits scfile=/scratch/kocevski/201018/ft2_4FGL_J2236.5-1433_daily_bin1639.fits outfile=/scratch/kocevski/201018/cmap_HighResolution_664156801_664416001_4FGL_J2236.5-1433_daily_bin1639.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.0477       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.691       1.0000         .10000E-03   10000.    
     4 'Prefactor '    53.458       1.0000         .10000E-03   10000.    
     5 'Prefactor '    108.77       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.973       1.0000         .10000E-03   10000.    
     8 'norm      '    8.6299       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.0064       1.0000         .10000E-03   10000.    
    12 'norm      '    3.9451       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .89018       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .28245E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.1683       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.5511       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .60202       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4666.735     FROM MIGRAD    STATUS=CONVERGED    778 CALLS     2826 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.9174        .14723E-02** at limit **
   2  Prefactor     9.0475        10.360        .66623E-03    .26995E-04
   3  Prefactor     11.693        18.978        .11716E-03   -.81508E-05
   4  Prefactor     53.459        21.229        .54858E-04    .57778E-04
   5  Prefactor     108.77        91.721        .38564E-04    .28301E-05
   6  Prefactor     .10000E-03    3.1694        .11772E-02** at limit **
   7  Prefactor     24.963        74.397        .80159E-04   -.25358E-04
   8  norm          8.6299        5.4349        .59084E-03   -.55466E-03
   9  Prefactor     .10000E-03    57.056        .18142E-02** at limit **
  10  Prefactor     .10000E-03    5.1259        .15097E-02** at limit **
  11  norm          1.0057        1.0710        .71734E-03    .14250E-02
  12  norm          3.9471        4.1755        .10471E-03   -.32831E-03
  13  Prefactor     .64092        137.24        .15162        .64465E-04
  14  Prefactor     .10065E-03    72.211        .40937E-02** at limit **
  15  norm          1.1665        1.1006        .67745E-04    .35392E-02
  16  Prefactor     .10000E-03    20.291        .18142E-02** at limit **
  17  Prefactor     .10000E-03    4.8406        .14669E-02** at limit **
  18  Prefactor     .10000E-03    4.7694        .14563E-02** at limit **
  19  Prefactor     .10000E-03    12.240        .18142E-02** at limit **
  20  Normalizat    1.5509        .29692        .24670E-03    .10502E-03
  21  Prefactor     .60215        .20356        .26827E-03    .19108E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 9.04745
  Prefactor  = 11.693
  Prefactor  = 53.4589
  Prefactor  = 108.767
  Prefactor  = 0.0001
  Prefactor  = 24.9628
  norm       = 8.62995
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 1.00572
  norm       = 3.94714
  Prefactor  = 0.640919
  Prefactor  = 0.000100648
  norm       = 1.16654
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.55086
  Prefactor  = 0.602153
 **********
 **   18 **HESSE 
 **********

 FCN=   4666.735     FROM HESSE     STATUS=OK           307 CALLS     3133 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.9185        .29447E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.0475        10.360        .26649E-04   -1.5106    
   3  Prefactor     11.693        18.978        .46865E-05   -1.5024    
   4  Prefactor     53.459        21.228        .10972E-04   -1.4244    
   5  Prefactor     108.77        91.719        .77128E-05   -1.3618    
   6  Prefactor     .10000E-03    3.1702        .23543E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     24.963        74.382        .16032E-04   -1.4708    
   8  norm          8.6299        5.4341        .23634E-04   -1.5120    
   9  Prefactor     .10000E-03    57.057        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.1259        .30195E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.0057        1.0703        .28693E-04   -1.5507    
  12  norm          3.9471        4.1345        .41886E-05   -1.5311    
  13  Prefactor     .64092        128.59        .15614       -1.5548    
  14  Prefactor     .10065E-03    72.265        .81874E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.1665        1.0941        .27098E-05   -1.5492    
  16  Prefactor     .10000E-03    20.292        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.8407        .29339E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.7695        .29125E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.240        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.5509        .29694        .49339E-04   -.76359    
  21  Prefactor     .60215        .20369        .10731E-04   -1.0750    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08327e-08
Minuit parameter uncertainties:
  1  2.06481e-05
  2  10.3619
  3  18.9874
  4  21.231
  5  91.8387
  6  1.36114e-05
  7  74.6606
  8  5.43441
  9  0.000600643
  10  1.46504e-05
  11  1.07028
  12  4.13479
  13  18.195
  14  0.0137062
  15  1.09407
  16  3.89823e-05
  17  1.99741e-05
  18  2.45029e-05
  19  2.02403e-05
  20  0.297272
  21  0.203942
Done.

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

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  1.006e+00  1.070e+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:  6.022e-01  2.039e-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.551e+00  2.973e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.39
Ra Dec: 339.144 -14.556
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 3.90e-08 +/- 4.15e-08
Energy Flux (Fixed Index): 1.91e-05 +/- 2.03e-05

TS (Fixed Index): 1.39
Ra Dec: 339.144 -14.556
Photon Flux Upper Limit: 1.37e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.67e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/201018/likelihoodResults_664156801_664416001_4FGL_J2236.5-1433_daily_bin1639.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) = 4666.7344523
delta logL = 0.000606255131061

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4666.72190466
delta logL = 0.013153893563

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .53089       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4529       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5716       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59858       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=   4666.722     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      232 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .53067        .79249        .11396E-01    .21583E-03
   2  alpha         1.4526        .67285        .34774       -.49253E-04
   3  Normalizat    1.5717        .23590        .55514E-01   -.20417E-05
   4  Prefactor     .59855        .16914        .60846E-01    .18367E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.53067
  alpha      = 1.45258
  Normalizat = 1.57172
  Prefactor  = 0.59855
 **********
 **   18 **HESSE 
 **********

 FCN=   4666.722     FROM HESSE     STATUS=OK            35 CALLS      267 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .53067        1.7596        .61763E-03   -1.5562    
   2  alpha         1.4526        1.7044        .17186E-01   -.43231    
   3  Normalizat    1.5717        .28237        .24545E-03   -.75783    
   4  Prefactor     .59855        .20150        .26918E-03   -1.0765    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54505e-10
Minuit parameter uncertainties:
  1  1.75981
  2  1.92793
  3  0.282653
  4  0.201743
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/201018': 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) = 4666.72190458
delta logL = 0.0131539797812

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  5.307e-01  1.760e+00  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  1.453e+00  1.928e+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:  5.986e-01  2.017e-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.572e+00  2.827e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.41
Ra Dec: 339.144 -14.556
Photon Index (Free Index): 1.45 +/- 1.93
Photon Flux (Free Index): 1.43e-08 +/- 5.20e-08
Energy Flux (Free Index): 2.75e-05 +/- 6.05e-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/201018/cmap_HighResolution_664156801_664416001_4FGL_J2236.5-1433_daily_bin1639.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.67e-05', comment='SUCCESS', photon_flux='3.90e-08', energy_flux2='2.75e-05', photon_flux_error='4.15e-08', dlogl='1.32e-02', energy_flux='1.91e-05', photon_flux2='1.43e-08', job_status='DONE', time_completed='2022-01-21 00:45:12.066700', photon_index_error2='1.93', photon_index2='1.45', ts='1.39', fit_tolerance='1e-08', GAL='0.60', photon_index_error='0.00', photon_flux_upper_limit='1.37e-07', energy_flux_error2='6.05e-05', EG='1.55', time_epoch_completed='1642754712.07', return_code='0', job_id='201018', GAL2='0.60', EG2='1.57', return_code2='0', energy_flux_error='2.03e-05', photon_flux_error2='5.20e-08', ts2='1.41', photon_index='2.06' WHERE bin_id='1639' AND source_name='4FGL J2236.5-1433' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jan 21 00:45:12 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 201018: <4FGL_J2236.5-1433_daily_bin1639> in cluster <slac> Done

Job <4FGL_J2236.5-1433_daily_bin1639> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Jan 21 00:35:52 2022
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jan 21 00:35:55 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jan 21 00:35:55 2022
Terminated at Fri Jan 21 00:45:12 2022
Results reported at Fri Jan 21 00:45:12 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.5-1433_daily_bin1639 339.144 -14.5557 664156801 664416001 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 :                                   537.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             381.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   557 sec.
    Turnaround time :                            560 sec.

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

