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


Performing analysis on: 4FGL_J2236.5-1433_daily_bin1413
RA = 339.144, Dec = -14.5557
tmin = 605577601, tmax = 605836801
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='415379', job_status='RUN', time_executed='2021-09-28 17:37:00.779572', time_epoch_executed='1632875820.78' WHERE source_name='4FGL J2236.5-1433' and cadence='daily' and bin_id='1413'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/415379

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/415379/ft1_4FGL_J2236.5-1433_daily_bin1413.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/415379/ft2_4FGL_J2236.5-1433_daily_bin1413.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/415379/ft1_4FGL_J2236.5-1433_daily_bin1413.fits outfile=/scratch/kocevski/415379/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1413.fits ra=339.144 dec=-14.5557 rad=12.0 tmin=605577601.0 tmax=605836801.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 5.05
user 4.80
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/415379/ft1_filtered_4FGL_J2236.5-1433_daily_bin1413.fits" evtable="EVENTS" scfile=/scratch/kocevski/415379/ft2_4FGL_J2236.5-1433_daily_bin1413.fits sctable="SC_DATA" outfile=/scratch/kocevski/415379/ltcube_605577601_605836801_4FGL_J2236.5-1433_daily_bin1413.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/415379/ft2_4FGL_J2236.5-1433_daily_bin1413.fits
.....................!
real 11.69
user 11.33
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/415379/ft1_filtered_4FGL_J2236.5-1433_daily_bin1413.fits evtable="EVENTS" scfile=/scratch/kocevski/415379/ft2_4FGL_J2236.5-1433_daily_bin1413.fits sctable="SC_DATA" expcube=/scratch/kocevski/415379/ltcube_605577601_605836801_4FGL_J2236.5-1433_daily_bin1413.fits outfile=/scratch/kocevski/415379/expmap_605577601_605836801_4FGL_J2236.5-1433_daily_bin1413.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/415379/ltcube_605577601_605836801_4FGL_J2236.5-1433_daily_bin1413.fits
.....................!
real 192.09
user 186.75
sys 4.92

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/415379/ft1_filtered_4FGL_J2236.5-1433_daily_bin1413.fits scfile=/scratch/kocevski/415379/ft2_4FGL_J2236.5-1433_daily_bin1413.fits outfile=/scratch/kocevski/415379/cmap_605577601_605836801_4FGL_J2236.5-1433_daily_bin1413.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/415379/ft1_filtered_4FGL_J2236.5-1433_daily_bin1413.fits scfile=/scratch/kocevski/415379/ft2_4FGL_J2236.5-1433_daily_bin1413.fits outfile=/scratch/kocevski/415379/cmap_HighResolution_605577601_605836801_4FGL_J2236.5-1433_daily_bin1413.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.55
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/415379/ft1_filtered_4FGL_J2236.5-1433_daily_bin1413.fits evtable="EVENTS" scfile=/scratch/kocevski/415379/ft2_4FGL_J2236.5-1433_daily_bin1413.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/415379/Model_4FGL_J2236.5-1433_daily_bin1413.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/415379/ft1_filtered_4FGL_J2236.5-1433_daily_bin1413.fits.....................!
real 44.18
user 42.79
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.7520       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.113       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    35.576       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .68672       1.0000         .10000E-03   10000.    
     7 'Prefactor '    46.786       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .22391       1.0000         .10000E-03   10000.    
    11 'norm      '    .43121       1.0000         .10000E-03   10000.    
    12 'norm      '    .11181E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    76.632       1.0000         .10000E-03   10000.    
    14 'Prefactor '    98.460       1.0000         .10000E-03   10000.    
    15 'norm      '    3.2066       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.978       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0571       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1353       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=   4417.694     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2365 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7534        10.340       -.12467E-06   -.59026E-04
   2  Prefactor     .10000E-03    21.103       -.25654E-07** at limit **
   3  Prefactor     22.143        20.046        .18544E-06   -.23779E-04
   4  Prefactor     .10000E-03    6.7107       -.66255E-07** at limit **
   5  Prefactor     35.624        82.260       -.19711E-05   -.22253E-04
   6  Prefactor     .68887        4.6332        .88953E-06   -.21638E-03
   7  Prefactor     46.998        122.79        .11415E-05    .12584E-05
   8  norm          .10000E-03    2.1821       -.14312E-06** at limit **
   9  Prefactor     .10000E-03    36.157        .10856E-05** at limit **
  10  Prefactor     .65439        22.252       -.25876E-06    .13296E-03
  11  norm          .43260        1.2575        .12869E-05   -.65620E-04
  12  norm          .10000E-03    2.9334        .33591E-06** at limit **
  13  Prefactor     76.138        91.222       -.13016E-05    .19677E-04
  14  Prefactor     98.475        107.15       -.17304E-05   -.10470E-03
  15  norm          3.2057        8.8158        .51882E-06   -.86395E-04
  16  Prefactor     .10000E-03    36.107       -.14067E-05** at limit **
  17  Prefactor     23.971        21.007        .14791E-06   -.26614E-04
  18  Prefactor     .10000E-03    11.289       -.12075E-06** at limit **
  19  Prefactor     .10000E-03    18.442        .10467E-07** at limit **
  20  Normalizat    1.0563        .29119       -.73604E-06   -.83542E-04
  21  Prefactor     1.1356        .20636       -.63084E-06   -.10554E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.75339
  Prefactor  = 0.0001
  Prefactor  = 22.1433
  Prefactor  = 0.0001
  Prefactor  = 35.6245
  Prefactor  = 0.688871
  Prefactor  = 46.9979
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.654395
  norm       = 0.432595
  norm       = 0.0001
  Prefactor  = 76.1377
  Prefactor  = 98.4755
  norm       = 3.20572
  Prefactor  = 0.0001
  Prefactor  = 23.971
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.05625
  Prefactor  = 1.1356
 **********
 **   18 **HESSE 
 **********

 FCN=   4417.694     FROM HESSE     STATUS=OK           315 CALLS     2680 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7534        10.353        .15442E-03   -1.5188    
   2  Prefactor     .10000E-03    21.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.143        20.071        .85178E-04   -1.4766    
   4  Prefactor     .10000E-03    6.7251        .16810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     35.624        82.585        .67189E-04   -1.4514    
   6  Prefactor     .68887        8.3529        .26512E-02   -1.5542    
   7  Prefactor     46.998        122.66        .58620E-04   -1.4336    
   8  norm          .10000E-03    2.1936        .95765E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    36.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .65439        165.26        .53263E-02   -1.5546    
  11  norm          .43260        1.2517        .11778E-03   -1.5576    
  12  norm          .10000E-03    2.9913        .22135E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     76.138        93.044        .45871E-04   -1.3961    
  14  Prefactor     98.475        100.58        .40512E-04   -1.3720    
  15  norm          3.2057        8.2012        .91151E-04   -1.5350    
  16  Prefactor     .10000E-03    36.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     23.971        20.968        .81802E-04   -1.4728    
  18  Prefactor     .10000E-03    11.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    18.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0563        .35787        .32719E-03   -.91169    
  21  Prefactor     1.1356        .25233        .23389E-03   -.88337    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78198e-09
Minuit parameter uncertainties:
  1  10.3557
  2  2.41214e-05
  3  20.0772
  4  4.48884e-06
  5  82.8522
  6  4.79802
  7  123.327
  8  3.69256e-06
  9  8.66996e-05
  10  20.8553
  11  1.25178
  12  9.01477e-06
  13  93.223
  14  100.757
  15  8.20409
  16  4.8948e-05
  17  20.974
  18  1.04011e-05
  19  6.2405e-06
  20  0.358687
  21  0.252597
Done.

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

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  4.326e-01  1.252e+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:  1.136e+00  2.526e-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.056e+00  3.587e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/415379/likelihoodResults_605577601_605836801_4FGL_J2236.5-1433_daily_bin1413.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) = 4416.70480081
delta logL = 0.989376271416

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4416.68608483
delta logL = 1.00809224901

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .16725       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.4698       1.0000          .0000       5.0000    
     3 'Normalizat'    .91878       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1995       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=   4416.686     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      252 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16632        2.6718        .44158E-02   -.42981E-02
   2  alpha         4.4734        3.4857        .46518       -.38215E-04
   3  Normalizat    .91916        .87536E-01    .78273E-01   -.12691E-03
   4  Prefactor     1.1994        .65278E-01    .51562E-01   -.15191E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.166324
  alpha      = 4.47337
  Normalizat = 0.91916
  Prefactor  = 1.19938
 **********
 **   18 **HESSE 
 **********

 FCN=   4416.686     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      283 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .16632        4.6670        .19922E-04   -1.5626    
   2  alpha         4.4734        2.8901        .24715E-01    .90975    
   3  Normalizat    .91916        .30876        .34645E-03   -.95790    
   4  Prefactor     1.1994        .23119        .22795E-03   -.86350    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.07236e-10
Minuit parameter uncertainties:
  1  1.7617
  2  6.98185
  3  0.309358
  4  0.231382
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/415379': 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): 102
logL (Free Index) = 4416.6860821
delta logL = 1.00809498443

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  1.663e-01  1.762e+00  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  4.473e+00  6.982e+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.199e+00  2.314e-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.192e-01  3.094e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.31
Ra Dec: 339.144 -14.556
Photon Index (Free Index): 4.47 +/- 6.98
Photon Flux (Free Index): 1.64e-07 +/- 1.33e-07
Energy Flux (Free Index): 2.34e-05 +/- 2.25e-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/415379/cmap_HighResolution_605577601_605836801_4FGL_J2236.5-1433_daily_bin1413.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.89e-05', comment='SUCCESS', energy_flux2='2.34e-05', dlogl='1.01e+00', photon_flux2='1.64e-07', job_status='DONE', time_completed='2021-09-28 17:45:34.379601', photon_index_error2='6.98', photon_index2='4.47', ts='0.15', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='1.41e-07', energy_flux_error2='2.25e-05', EG='1.06', time_epoch_completed='1632876334.38', return_code='0', job_id='415379', GAL2='1.20', EG2='0.92', return_code2='102', photon_flux_error2='1.33e-07', ts2='2.31', photon_index='2.06' WHERE bin_id='1413' AND source_name='4FGL J2236.5-1433' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:45:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 415379: <4FGL_J2236.5-1433_daily_bin1413> in cluster <slac> Done

Job <4FGL_J2236.5-1433_daily_bin1413> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 17:35:29 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:35:31 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:31 2021
Terminated at Tue Sep 28 17:45:34 2021
Results reported at Tue Sep 28 17:45:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.5-1433_daily_bin1413 339.144 -14.5557 605577601 605836801 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 :                                   509.19 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             305.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   603 sec.
    Turnaround time :                            605 sec.

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

