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


Performing analysis on: 4FGL_J2236.5-1433_daily_bin1603
RA = 339.144, Dec = -14.5557
tmin = 654825601, tmax = 655084801
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='917441', job_status='RUN', time_executed='2021-10-05 00:17:02.033607', time_epoch_executed='1633418222.03' WHERE source_name='4FGL J2236.5-1433' and cadence='daily' and bin_id='1603'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/917441

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/917441/ft1_4FGL_J2236.5-1433_daily_bin1603.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/917441/ft2_4FGL_J2236.5-1433_daily_bin1603.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/917441/ft1_4FGL_J2236.5-1433_daily_bin1603.fits outfile=/scratch/kocevski/917441/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1603.fits ra=339.144 dec=-14.5557 rad=12.0 tmin=654825601.0 tmax=655084801.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 2.99
user 2.79
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/917441/ft1_filtered_4FGL_J2236.5-1433_daily_bin1603.fits" evtable="EVENTS" scfile=/scratch/kocevski/917441/ft2_4FGL_J2236.5-1433_daily_bin1603.fits sctable="SC_DATA" outfile=/scratch/kocevski/917441/ltcube_654825601_655084801_4FGL_J2236.5-1433_daily_bin1603.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/917441/ft2_4FGL_J2236.5-1433_daily_bin1603.fits
.....................!
real 12.66
user 12.30
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/917441/ft1_filtered_4FGL_J2236.5-1433_daily_bin1603.fits evtable="EVENTS" scfile=/scratch/kocevski/917441/ft2_4FGL_J2236.5-1433_daily_bin1603.fits sctable="SC_DATA" expcube=/scratch/kocevski/917441/ltcube_654825601_655084801_4FGL_J2236.5-1433_daily_bin1603.fits outfile=/scratch/kocevski/917441/expmap_654825601_655084801_4FGL_J2236.5-1433_daily_bin1603.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/917441/ltcube_654825601_655084801_4FGL_J2236.5-1433_daily_bin1603.fits
.....................!
real 191.61
user 186.39
sys 4.89

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/917441/ft1_filtered_4FGL_J2236.5-1433_daily_bin1603.fits scfile=/scratch/kocevski/917441/ft2_4FGL_J2236.5-1433_daily_bin1603.fits outfile=/scratch/kocevski/917441/cmap_654825601_655084801_4FGL_J2236.5-1433_daily_bin1603.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/917441/ft1_filtered_4FGL_J2236.5-1433_daily_bin1603.fits scfile=/scratch/kocevski/917441/ft2_4FGL_J2236.5-1433_daily_bin1603.fits outfile=/scratch/kocevski/917441/cmap_HighResolution_654825601_655084801_4FGL_J2236.5-1433_daily_bin1603.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/917441/ft1_filtered_4FGL_J2236.5-1433_daily_bin1603.fits evtable="EVENTS" scfile=/scratch/kocevski/917441/ft2_4FGL_J2236.5-1433_daily_bin1603.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/917441/Model_4FGL_J2236.5-1433_daily_bin1603.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/917441/ft1_filtered_4FGL_J2236.5-1433_daily_bin1603.fits.....................!
real 45.25
user 43.99
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.918       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.3971       1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.528       1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.220       1.0000         .10000E-03   10000.    
    11 'norm      '    1.9447       1.0000         .10000E-03   10000.    
    12 'norm      '    2.1483       1.0000         .10000E-03   10000.    
    13 'Prefactor '    74.886       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11166E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10420E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    71.132       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.1221       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.8605       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2414       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .75544       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=   4768.528     FROM MIGRAD    STATUS=CONVERGED    431 CALLS     2180 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.920        7.9609        .15033E-06    .19373E-06
   2  Prefactor     .10000E-03    9.9207       -.20155E-06** at limit **
   3  Prefactor     .10000E-03    6.8313       -.18012E-06** at limit **
   4  Prefactor     .10000E-03    9.8401        .33771E-06** at limit **
   5  Prefactor     .10000E-03    49.378        .19812E-06** at limit **
   6  Prefactor     .10000E-03    3.4329        .78193E-06** at limit **
   7  Prefactor     .10000E-03    52.603       -.60024E-06** at limit **
   8  norm          6.3963        4.6834        .80173E-07   -.39030E-04
   9  Prefactor     28.698        119.40        .47823E-05    .10217E-03
  10  Prefactor     29.230        17.007        .62682E-07    .17573E-04
  11  norm          1.9450        1.1575        .74009E-07   -.61403E-04
  12  norm          2.1484        2.3222        .90929E-08    .31486E-06
  13  Prefactor     74.897        61.952        .18098E-06    .31001E-04
  14  Prefactor     .10000E-03    8.6876        .45308E-07** at limit **
  15  norm          .10000E-03    .48264        .94002E-08** at limit **
  16  Prefactor     71.132        46.603       -.26845E-05   -.52918E-04
  17  Prefactor     3.1205        18.753        .15599E-04   -.10020E-03
  18  Prefactor     3.8724        23.761        .14051E-05    .10271E-04
  19  Prefactor     .10000E-03    20.311       -.80509E-07** at limit **
  20  Normalizat    1.2405        .24100        .99114E-06   -.10676E-03
  21  Prefactor     .75597        .16911       -.18081E-05    .10733E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.9195
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.39634
  Prefactor  = 28.6982
  Prefactor  = 29.2303
  norm       = 1.945
  norm       = 2.14842
  Prefactor  = 74.8969
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 71.1325
  Prefactor  = 3.12049
  Prefactor  = 3.87244
  Prefactor  = 0.0001
  Normalizat = 1.24053
  Prefactor  = 0.755973
 **********
 **   18 **HESSE 
 **********

 FCN=   4768.528     FROM HESSE     STATUS=OK           313 CALLS     2493 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.920        7.9665        .11145E-03   -1.4989    
   2  Prefactor     .10000E-03    9.9502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.8575        .17622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.8610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    49.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.4561        .12488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    52.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.3963        4.6790        .12057E-03   -1.5202    
   9  Prefactor     28.698        118.56        .37505E-03   -1.4636    
  10  Prefactor     29.230        17.139        .74117E-04   -1.4626    
  11  norm          1.9450        1.1504        .54728E-04   -1.5429    
  12  norm          2.1484        2.3194        .97784E-04   -1.5415    
  13  Prefactor     74.897        61.987        .46398E-04   -1.3975    
  14  Prefactor     .10000E-03    8.6931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .48437        .46638E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     71.132        46.587        .47598E-04   -1.4019    
  17  Prefactor     3.1205        18.814        .11473E-02   -1.5355    
  18  Prefactor     3.8724        23.613        .20538E-03   -1.5314    
  19  Prefactor     .10000E-03    20.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2405        .28978        .26598E-03   -.85360    
  21  Prefactor     .75597        .20142        .24020E-03   -1.0137    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.77608e-10
Minuit parameter uncertainties:
  1  7.9672
  2  9.73384e-06
  3  6.03007e-06
  4  1.34235e-06
  5  0.00022921
  6  6.72039e-06
  7  0.000179318
  8  4.6793
  9  117.062
  10  17.1414
  11  1.15046
  12  2.31948
  13  62.0409
  14  8.23222e-07
  15  2.51796e-07
  16  46.6114
  17  15.3312
  18  19.1358
  19  4.15348e-06
  20  0.290163
  21  0.201611
Done.

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

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  1.945e+00  1.150e+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:  7.560e-01  2.016e-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.241e+00  2.902e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.22
Ra Dec: 339.144 -14.556
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 7.55e-08 +/- 4.46e-08
Energy Flux (Fixed Index): 3.69e-05 +/- 2.18e-05

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) = 4768.0683365
delta logL = 0.459916546566

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4768.06219315
delta logL = 0.466059899396

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8205       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5718       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1980       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77260       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=   4768.062     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      236 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8200        19.181        .77371E-02    .26820E-03
   2  alpha         2.5719        3.6114        .27981        .27193E-04
   3  Normalizat    1.1983        .11771        .60963E-01    .68254E-05
   4  Prefactor     .77238        .80040E-01    .43360E-01    .95738E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.82002
  alpha      = 2.57187
  Normalizat = 1.19831
  Prefactor  = 0.772382
 **********
 **   18 **HESSE 
 **********

 FCN=   4768.062     FROM HESSE     STATUS=OK            33 CALLS      269 TOTAL
                     EDM=   .94E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8200        1.1125        .46510E-04   -1.5438    
   2  alpha         2.5719        .55190        .11304E-01    .28753E-01
   3  Normalizat    1.1983        .27494        .26963E-03   -.86655    
   4  Prefactor     .77238        .19768        .23769E-03   -1.0075    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.43554e-13
Minuit parameter uncertainties:
  1  1.11247
  2  0.556489
  3  0.275275
  4  0.197863
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/917441': 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) = 4768.0621924
delta logL = 0.466060650905

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  1.820e+00  1.112e+00  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  2.572e+00  5.565e-01  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:  7.724e-01  1.979e-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.198e+00  2.753e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.12
Ra Dec: 339.144 -14.556
Photon Index (Free Index): 2.57 +/- 0.56
Photon Flux (Free Index): 1.21e-07 +/- 7.52e-08
Energy Flux (Free Index): 3.26e-05 +/- 1.73e-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/917441/cmap_HighResolution_654825601_655084801_4FGL_J2236.5-1433_daily_bin1603.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.55e-08', energy_flux2='3.26e-05', photon_flux_error='4.46e-08', dlogl='4.66e-01', energy_flux='3.69e-05', photon_flux2='1.21e-07', job_status='DONE', time_completed='2021-10-05 00:24:49.133934', photon_index_error2='0.56', photon_index2='2.57', ts='5.22', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', energy_flux_error2='1.73e-05', EG='1.24', time_epoch_completed='1633418689.13', return_code='0', job_id='917441', GAL2='0.77', EG2='1.20', return_code2='0', energy_flux_error='2.18e-05', photon_flux_error2='7.52e-08', ts2='6.12', photon_index='2.06' WHERE bin_id='1603' AND source_name='4FGL J2236.5-1433' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Oct  5 00:24:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 917441: <4FGL_J2236.5-1433_daily_bin1603> in cluster <slac> Done

Job <4FGL_J2236.5-1433_daily_bin1603> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Oct  5 00:15:33 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct  5 00:15:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct  5 00:15:34 2021
Terminated at Tue Oct  5 00:24:49 2021
Results reported at Tue Oct  5 00:24:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.5-1433_daily_bin1603 339.144 -14.5557 654825601 655084801 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 :                                   471.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             352.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   555 sec.
    Turnaround time :                            556 sec.

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

