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


Performing analysis on: 4FGL_J2236.5-1433_daily_bin1597
RA = 339.144, Dec = -14.5557
tmin = 653270401, tmax = 653529601
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='415656', job_status='RUN', time_executed='2021-09-28 17:36:41.627713', time_epoch_executed='1632875801.63' WHERE source_name='4FGL J2236.5-1433' and cadence='daily' and bin_id='1597'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/415656

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/415656/ft1_4FGL_J2236.5-1433_daily_bin1597.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/415656/ft2_4FGL_J2236.5-1433_daily_bin1597.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/415656/ft1_4FGL_J2236.5-1433_daily_bin1597.fits outfile=/scratch/kocevski/415656/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1597.fits ra=339.144 dec=-14.5557 rad=12.0 tmin=653270401.0 tmax=653529601.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.29
user 3.09
sys 0.19

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/415656/ft1_filtered_4FGL_J2236.5-1433_daily_bin1597.fits" evtable="EVENTS" scfile=/scratch/kocevski/415656/ft2_4FGL_J2236.5-1433_daily_bin1597.fits sctable="SC_DATA" outfile=/scratch/kocevski/415656/ltcube_653270401_653529601_4FGL_J2236.5-1433_daily_bin1597.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/415656/ft2_4FGL_J2236.5-1433_daily_bin1597.fits
.....................!
real 12.18
user 11.81
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/415656/ft1_filtered_4FGL_J2236.5-1433_daily_bin1597.fits evtable="EVENTS" scfile=/scratch/kocevski/415656/ft2_4FGL_J2236.5-1433_daily_bin1597.fits sctable="SC_DATA" expcube=/scratch/kocevski/415656/ltcube_653270401_653529601_4FGL_J2236.5-1433_daily_bin1597.fits outfile=/scratch/kocevski/415656/expmap_653270401_653529601_4FGL_J2236.5-1433_daily_bin1597.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/415656/ltcube_653270401_653529601_4FGL_J2236.5-1433_daily_bin1597.fits
.....................!
real 191.89
user 186.15
sys 5.36

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/415656/ft1_filtered_4FGL_J2236.5-1433_daily_bin1597.fits scfile=/scratch/kocevski/415656/ft2_4FGL_J2236.5-1433_daily_bin1597.fits outfile=/scratch/kocevski/415656/cmap_653270401_653529601_4FGL_J2236.5-1433_daily_bin1597.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/415656/ft1_filtered_4FGL_J2236.5-1433_daily_bin1597.fits scfile=/scratch/kocevski/415656/ft2_4FGL_J2236.5-1433_daily_bin1597.fits outfile=/scratch/kocevski/415656/cmap_HighResolution_653270401_653529601_4FGL_J2236.5-1433_daily_bin1597.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/415656/ft1_filtered_4FGL_J2236.5-1433_daily_bin1597.fits evtable="EVENTS" scfile=/scratch/kocevski/415656/ft2_4FGL_J2236.5-1433_daily_bin1597.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/415656/Model_4FGL_J2236.5-1433_daily_bin1597.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/415656/ft1_filtered_4FGL_J2236.5-1433_daily_bin1597.fits.......................!
real 18.65
user 17.38
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    46.144       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.5460       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    149.31       1.0000         .10000E-03   10000.    
     8 'norm      '    1.6377       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.2930       1.0000         .10000E-03   10000.    
    12 'norm      '    .10232E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    102.26       1.0000         .10000E-03   10000.    
    14 'Prefactor '    71.261       1.0000         .10000E-03   10000.    
    15 'norm      '    .10324E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10471E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.5950       1.0000         .10000E-03   10000.    
    18 'Prefactor '    33.039       1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.653       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .58148       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .46857       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=   766.2145     FROM MIGRAD    STATUS=CONVERGED    429 CALLS     2199 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.1611       -.11421E-06** at limit **
   2  Prefactor     46.147        36.636        .12815E-05    .43122E-05
   3  Prefactor     .10000E-03    9.9637       -.27853E-06** at limit **
   4  Prefactor     7.5470        26.770       -.69415E-06   -.52188E-05
   5  Prefactor     .10000E-03    58.135       -.75187E-05** at limit **
   6  Prefactor     .10000E-03    11.684        .38952E-06** at limit **
   7  Prefactor     149.30        156.27       -.60862E-05   -.22674E-05
   8  norm          1.6389        6.0133       -.67977E-05   -.15771E-03
   9  Prefactor     .10000E-03    87.975        .76171E-05** at limit **
  10  Prefactor     .10000E-03    13.888        .33010E-06** at limit **
  11  norm          1.2924        2.3081        .99905E-06    .26275E-03
  12  norm          .10000E-03    4.1616        .13137E-05** at limit **
  13  Prefactor     102.17        118.23       -.80521E-04   -.10866E-04
  14  Prefactor     71.243        44.644       -.92948E-05   -.17392E-03
  15  norm          .10000E-03    3.6521        .15955E-05** at limit **
  16  Prefactor     .10000E-03    60.080        .65409E-05** at limit **
  17  Prefactor     2.5886        84.200       -.13332E-05   -.36865E-04
  18  Prefactor     33.016        39.272       -.19189E-04   -.32007E-04
  19  Prefactor     17.722        95.821        .14135E-03    .11374E-04
  20  Normalizat    .58212        .36117        .17871E-04   -.63982E-04
  21  Prefactor     .46808        .25487       -.48674E-05    .12152E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 46.1473
  Prefactor  = 0.0001
  Prefactor  = 7.54702
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 149.298
  norm       = 1.63888
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.29244
  norm       = 0.000100004
  Prefactor  = 102.17
  Prefactor  = 71.2426
  norm       = 0.000100005
  Prefactor  = 0.000100001
  Prefactor  = 2.58856
  Prefactor  = 33.0157
  Prefactor  = 17.7223
  Normalizat = 0.582123
  Prefactor  = 0.468081
 **********
 **   18 **HESSE 
 **********

 FCN=   766.2145     FROM HESSE     STATUS=OK           313 CALLS     2512 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.1695        .61426E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     46.147        36.642        .59024E-04   -1.4348    
   3  Prefactor     .10000E-03    9.9803        .85362E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.5470        26.653        .14599E-03   -1.5158    
   5  Prefactor     .10000E-03    58.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.763        .91970E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     149.30        156.12        .16492E-03   -1.3258    
   8  norm          1.6389        5.9811        .12318E-03   -1.5452    
   9  Prefactor     .10000E-03    87.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.901        .10079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.2924        2.2549        .52321E-04   -1.5481    
  12  norm          .10000E-03    4.1739        .55177E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     102.17        118.43        .19880E-03   -1.3683    
  14  Prefactor     71.243        43.948        .23778E-03   -1.4018    
  15  norm          .10000E-03    3.6799        .10180E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    60.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.5886        83.739        .25328E-03   -1.5386    
  18  Prefactor     33.016        39.409        .69714E-04   -1.4558    
  19  Prefactor     17.722        95.765        .95326E-04   -1.4866    
  20  Normalizat    .58212        .41125        .22896E-03   -1.0875    
  21  Prefactor     .46808        .29097        .18619E-03   -1.1346    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.31681e-09
Minuit parameter uncertainties:
  1  1.82356e-05
  2  36.6596
  3  1.63446e-05
  4  26.6949
  5  6.28635e-05
  6  1.0191e-05
  7  156.553
  8  5.98329
  9  3.31719e-05
  10  0.000243321
  11  2.25501
  12  0.000258317
  13  118.709
  14  43.9677
  15  0.000268364
  16  0.000558872
  17  29.4903
  18  39.4405
  19  82.5995
  20  0.413433
  21  0.291898
Done.

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

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  1.292e+00  2.255e+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:  4.681e-01  2.919e-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:  5.821e-01  4.134e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.49
Ra Dec: 339.144 -14.556
Photon Flux Upper Limit: 2.99e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.46e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/415656/likelihoodResults_653270401_653529601_4FGL_J2236.5-1433_daily_bin1597.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) = 765.491904524
delta logL = 0.722597396421

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 765.477410177
delta logL = 0.737091743162

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .58696       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6835       1.0000          .0000       5.0000    
     3 'Normalizat'    .48796       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .50530       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=   765.4774     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      232 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .58660        18.094        .40689E-02    .64986E-04
   2  alpha         3.6839        3.2880        .16855        .57627E-05
   3  Normalizat    .48802        .15534        .39384E-01    .15178E-05
   4  Prefactor     .50508        .11416        .39747E-01   -.22674E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.586601
  alpha      = 3.68391
  Normalizat = 0.488017
  Prefactor  = 0.505077
 **********
 **   18 **HESSE 
 **********

 FCN=   765.4774     FROM HESSE     STATUS=OK            31 CALLS      263 TOTAL
                     EDM=   .70E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .58660        1.2348        .18093E-04   -1.5555    
   2  alpha         3.6839        1.3679        .73861E-03    .49334    
   3  Normalizat    .48802        .38590        .24557E-03   -1.1297    
   4  Prefactor     .50508        .28323        .17847E-03   -1.1174    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.03894e-14
Minuit parameter uncertainties:
  1  1.2349
  2  1.47593
  3  0.388041
  4  0.284027
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/415656': 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) = 765.477409243
delta logL = 0.737092677345

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  5.866e-01  1.235e+00  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  3.684e+00  1.476e+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.051e-01  2.840e-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:  4.880e-01  3.880e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.03
Ra Dec: 339.144 -14.556
Photon Index (Free Index): 3.68 +/- 1.48
Photon Flux (Free Index): 1.75e-07 +/- 1.63e-07
Energy Flux (Free Index): 2.86e-05 +/- 2.59e-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/415656/cmap_HighResolution_653270401_653529601_4FGL_J2236.5-1433_daily_bin1597.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.46e-04', comment='SUCCESS', energy_flux2='2.86e-05', dlogl='7.37e-01', photon_flux2='1.75e-07', job_status='DONE', time_completed='2021-09-28 17:42:28.929650', photon_index_error2='1.48', photon_index2='3.68', ts='0.49', fit_tolerance='1e-08', GAL='0.47', photon_index_error='0.00', photon_flux_upper_limit='2.99e-07', energy_flux_error2='2.59e-05', EG='0.58', time_epoch_completed='1632876148.93', return_code='0', job_id='415656', GAL2='0.51', EG2='0.49', return_code2='0', photon_flux_error2='1.63e-07', ts2='2.03', photon_index='2.06' WHERE bin_id='1597' AND source_name='4FGL J2236.5-1433' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:42:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 415656: <4FGL_J2236.5-1433_daily_bin1597> in cluster <slac> Done

Job <4FGL_J2236.5-1433_daily_bin1597> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 17:35:50 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:35:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 17:35:52 2021
Terminated at Tue Sep 28 17:42:29 2021
Results reported at Tue Sep 28 17:42:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.5-1433_daily_bin1597 339.144 -14.5557 653270401 653529601 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 :                                   346.35 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             306.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   397 sec.
    Turnaround time :                            399 sec.

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

