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


Performing analysis on: 4FGL_J2236.5-1433_daily_bin1149
RA = 339.144, Dec = -14.5557
tmin = 537148801, tmax = 537408001
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='414032', job_status='RUN', time_executed='2021-09-28 17:31:40.024849', time_epoch_executed='1632875500.02' WHERE source_name='4FGL J2236.5-1433' and cadence='daily' and bin_id='1149'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/414032

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/414032/ft1_4FGL_J2236.5-1433_daily_bin1149.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/414032/ft2_4FGL_J2236.5-1433_daily_bin1149.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/414032/ft1_4FGL_J2236.5-1433_daily_bin1149.fits outfile=/scratch/kocevski/414032/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1149.fits ra=339.144 dec=-14.5557 rad=12.0 tmin=537148801.0 tmax=537408001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.54
user 3.33
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/414032/ft2_4FGL_J2236.5-1433_daily_bin1149.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/414032/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1149.fits evtable="EVENTS" outfile="/scratch/kocevski/414032/ft1_filtered_4FGL_J2236.5-1433_daily_bin1149.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/414032/ft1_filtered_4FGL_J2236.5-1433_daily_bin1149.fits" evtable="EVENTS" scfile=/scratch/kocevski/414032/ft2_4FGL_J2236.5-1433_daily_bin1149.fits sctable="SC_DATA" outfile=/scratch/kocevski/414032/ltcube_537148801_537408001_4FGL_J2236.5-1433_daily_bin1149.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/414032/ft2_4FGL_J2236.5-1433_daily_bin1149.fits
.....................!
real 12.05
user 11.71
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/414032/ft1_filtered_4FGL_J2236.5-1433_daily_bin1149.fits evtable="EVENTS" scfile=/scratch/kocevski/414032/ft2_4FGL_J2236.5-1433_daily_bin1149.fits sctable="SC_DATA" expcube=/scratch/kocevski/414032/ltcube_537148801_537408001_4FGL_J2236.5-1433_daily_bin1149.fits outfile=/scratch/kocevski/414032/expmap_537148801_537408001_4FGL_J2236.5-1433_daily_bin1149.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/414032/ltcube_537148801_537408001_4FGL_J2236.5-1433_daily_bin1149.fits
.....................!
real 191.96
user 186.51
sys 5.06

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/414032/ft1_filtered_4FGL_J2236.5-1433_daily_bin1149.fits scfile=/scratch/kocevski/414032/ft2_4FGL_J2236.5-1433_daily_bin1149.fits outfile=/scratch/kocevski/414032/cmap_537148801_537408001_4FGL_J2236.5-1433_daily_bin1149.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.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/414032/ft1_filtered_4FGL_J2236.5-1433_daily_bin1149.fits evtable="EVENTS" scfile=/scratch/kocevski/414032/ft2_4FGL_J2236.5-1433_daily_bin1149.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/414032/Model_4FGL_J2236.5-1433_daily_bin1149.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/414032/ft1_filtered_4FGL_J2236.5-1433_daily_bin1149.fits.....................!
real 53.20
user 51.82
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1256       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.376       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10670E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .59367       1.0000         .10000E-03   10000.    
     8 'norm      '    3.6660       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10296E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.9050       1.0000         .10000E-03   10000.    
    11 'norm      '    .10686E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.0277       1.0000         .10000E-03   10000.    
    13 'Prefactor '    62.011       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.0640       1.0000         .10000E-03   10000.    
    15 'norm      '    37.845       1.0000         .10000E-03   10000.    
    16 'Prefactor '    36.860       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.2630       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3591       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .64850       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=   5463.726     FROM MIGRAD    STATUS=CONVERGED    818 CALLS     2652 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.2549        .10833E-02** at limit **
   2  Prefactor     .10000E-03    12.035        .18142E-02** at limit **
   3  Prefactor     1.1020        65.026        .46168E-02   -.63979E-04
   4  Prefactor     10.378        13.955        .12439E-03   -.38570E-04
   5  Prefactor     .10000E-03    45.691        .18142E-02** at limit **
   6  Prefactor     .10000E-03    1.4154        .85796E-03** at limit **
   7  Prefactor     .39257        49.395        .17073        .80565E-04
   8  norm          3.6664        5.5201        .19853E-03   -.91793E-04
   9  Prefactor     .10000E-03    31.963        .18142E-02** at limit **
  10  Prefactor     5.9128        22.477        .16526E-03   -.42653E-04
  11  norm          .10000E-03    .80107        .10528E-02** at limit **
  12  norm          4.0292        3.7436        .11761E-03   -.17207E-04
  13  Prefactor     61.882        92.177        .50955E-04   -.22847E-04
  14  Prefactor     7.6759        387.00        .14119E-03   -.26652E-04
  15  norm          37.870        8.9186        .43098E-04   -.83009E-03
  16  Prefactor     37.084        116.51        .66012E-04   -.20667E-04
  17  Prefactor     .10000E-03    9.0516        .18142E-02** at limit **
  18  Prefactor     2.2631        7.6501        .27305E-03    .25397E-05
  19  Prefactor     .10000E-03    13.427        .18142E-02** at limit **
  20  Normalizat    1.3593        .31860        .29206E-03   -.55971E-03
  21  Prefactor     .64842        .20356        .28571E-03   -.30245E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.10196
  Prefactor  = 10.3782
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.392572
  norm       = 3.66636
  Prefactor  = 0.0001
  Prefactor  = 5.91277
  norm       = 0.0001
  norm       = 4.02923
  Prefactor  = 61.8824
  Prefactor  = 7.6759
  norm       = 37.8702
  Prefactor  = 37.0841
  Prefactor  = 0.0001
  Prefactor  = 2.26311
  Prefactor  = 0.0001
  Normalizat = 1.35931
  Prefactor  = 0.648416
 **********
 **   18 **HESSE 
 **********

 FCN=   5463.726     FROM HESSE     STATUS=OK           307 CALLS     2959 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.2549        .21666E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.036        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.1020        63.782        .18467E-03   -1.5498    
   4  Prefactor     10.378        13.954        .49755E-05   -1.5064    
   5  Prefactor     .10000E-03    45.691        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.4154        .17159E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .39257        49.068        .17174       -1.5583    
   8  norm          3.6664        5.5191        .79413E-05   -1.5325    
   9  Prefactor     .10000E-03    31.963        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.9128        22.450        .66102E-05   -1.5222    
  11  norm          .10000E-03    .80167        .21057E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.0292        3.7444        .47043E-05   -1.5306    
  13  Prefactor     61.882        92.152        .10191E-04   -1.4133    
  14  Prefactor     7.6759        379.79        .56476E-05   -1.5154    
  15  norm          37.870        8.8689        .86196E-05   -1.4476    
  16  Prefactor     37.084        116.02        .26405E-05   -1.4489    
  17  Prefactor     .10000E-03    9.0528        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.2631        7.6495        .10922E-04   -1.5407    
  19  Prefactor     .10000E-03    13.427        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.3593        .31627        .58412E-04   -.81813    
  21  Prefactor     .64842        .20348        .11428E-04   -1.0558    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15017e-09
Minuit parameter uncertainties:
  1  4.21824e-06
  2  2.18047e-05
  3  16.7853
  4  13.9587
  5  7.33832e-05
  6  4.15652e-06
  7  8.78413
  8  5.51983
  9  1.09568e-05
  10  22.4822
  11  7.18787e-06
  12  3.74462
  13  92.3653
  14  108.723
  15  8.86924
  16  116.733
  17  2.44373e-05
  18  7.65282
  19  1.15e-05
  20  0.316726
  21  0.203717
Done.

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

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  1.000e-04  7.188e-06  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.484e-01  2.037e-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.359e+00  3.167e-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.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.83e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/414032/likelihoodResults_537148801_537408001_4FGL_J2236.5-1433_daily_bin1149.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) = 5463.72621914
delta logL = 4.77736020912e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5463.72621749
delta logL = 4.94241003253e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .31418E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0976       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3601       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64803       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5463.713     FROM MIGRAD    STATUS=FAILED       134 CALLS      346 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .32526E-01    .44959        .48518E-03   -.11020E-01
   2  alpha         4.1755        4.5790        .12431E-01   -.16974E-05
   3  Normalizat    1.3447        .28994        .29321E-03   -.21286E-04
   4  Prefactor     .65386        .19749        .28453E-03    .12015E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5463.713     FROM SIMPLEX   STATUS=UNCHANGED     74 CALLS      420 TOTAL
                     EDM=   .85E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .32526E-01    .44959        .71961E-04   -1.5744    
   2  alpha         4.1755        4.5790        .10746E-01    .73450    
   3  Normalizat    1.3447        .28994        .21737E-03   -.82241    
   4  Prefactor     .65386        .19749        .23099E-03   -1.0536    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5463.713     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      448 TOTAL
                     EDM=   .15E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .32526E-01    .67467        .97036E-04   -.35031E-04
   2  alpha         4.1755        4.5134        .49723E-03    .16462E-06
   3  Normalizat    1.3447        .28986        .11728E-04    .58160E-06
   4  Prefactor     .65386        .19751        .11381E-04    .79911E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0325263
  alpha      = 4.17555
  Normalizat = 1.34472
  Prefactor  = 0.653855
 **********
 **   18 **HESSE 
 **********

 FCN=   5463.713     FROM HESSE     STATUS=OK            25 CALLS      473 TOTAL
                     EDM=   .92E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .32526E-01    .82268        .38814E-05   -1.5744    
   2  alpha         4.1755        4.3566        .99446E-04    .73450    
   3  Normalizat    1.3447        .28933        .23457E-05   -.82241    
   4  Prefactor     .65386        .19711        .22763E-05   -1.0536    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.22987e-14
Minuit parameter uncertainties:
  1  0.326663
  2  5.42386
  3  0.28968
  4  0.197322
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/414032': 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) = 5463.71290377
delta logL = 0.0133631426588

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  3.253e-02  3.267e-01  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  4.176e+00  5.424e+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:  6.539e-01  1.973e-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.345e+00  2.897e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 339.144 -14.556

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/414032/cmap_HighResolution_537148801_537408001_4FGL_J2236.5-1433_daily_bin1149.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.83e-05', job_status='DONE', photon_flux_upper_limit='9.89e-08', time_completed='2021-09-28 17:41:25.339677', job_id='414032', GAL2='0.65', fit_tolerance='1e-08', EG2='1.34', EG='1.36', time_epoch_completed='1632876085.34', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='1.34e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1149' AND source_name='4FGL J2236.5-1433' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:41:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 414032: <4FGL_J2236.5-1433_daily_bin1149> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.5-1433_daily_bin1149 339.144 -14.5557 537148801 537408001 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 :                                   584.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             283.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   634 sec.
    Turnaround time :                            637 sec.

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

