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


Performing analysis on: 4FGL_J2236.5-1433_daily_bin1248
RA = 339.144, Dec = -14.5557
tmin = 562809601, tmax = 563068801
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='414169', job_status='RUN', time_executed='2021-09-28 17:31:32.271942', time_epoch_executed='1632875492.27' WHERE source_name='4FGL J2236.5-1433' and cadence='daily' and bin_id='1248'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/414169

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/414169/ft1_4FGL_J2236.5-1433_daily_bin1248.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/414169/ft2_4FGL_J2236.5-1433_daily_bin1248.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/414169/ft1_4FGL_J2236.5-1433_daily_bin1248.fits outfile=/scratch/kocevski/414169/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1248.fits ra=339.144 dec=-14.5557 rad=12.0 tmin=562809601.0 tmax=563068801.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.43
user 3.19
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/414169/ft1_filtered_4FGL_J2236.5-1433_daily_bin1248.fits" evtable="EVENTS" scfile=/scratch/kocevski/414169/ft2_4FGL_J2236.5-1433_daily_bin1248.fits sctable="SC_DATA" outfile=/scratch/kocevski/414169/ltcube_562809601_563068801_4FGL_J2236.5-1433_daily_bin1248.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/414169/ft2_4FGL_J2236.5-1433_daily_bin1248.fits
.....................!
real 12.17
user 11.82
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/414169/ft1_filtered_4FGL_J2236.5-1433_daily_bin1248.fits evtable="EVENTS" scfile=/scratch/kocevski/414169/ft2_4FGL_J2236.5-1433_daily_bin1248.fits sctable="SC_DATA" expcube=/scratch/kocevski/414169/ltcube_562809601_563068801_4FGL_J2236.5-1433_daily_bin1248.fits outfile=/scratch/kocevski/414169/expmap_562809601_563068801_4FGL_J2236.5-1433_daily_bin1248.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/414169/ltcube_562809601_563068801_4FGL_J2236.5-1433_daily_bin1248.fits
.....................!
real 190.71
user 184.98
sys 5.41

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/414169/ft1_filtered_4FGL_J2236.5-1433_daily_bin1248.fits scfile=/scratch/kocevski/414169/ft2_4FGL_J2236.5-1433_daily_bin1248.fits outfile=/scratch/kocevski/414169/cmap_562809601_563068801_4FGL_J2236.5-1433_daily_bin1248.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=339.144 yref=-14.5557 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/414169/ft1_filtered_4FGL_J2236.5-1433_daily_bin1248.fits scfile=/scratch/kocevski/414169/ft2_4FGL_J2236.5-1433_daily_bin1248.fits outfile=/scratch/kocevski/414169/cmap_HighResolution_562809601_563068801_4FGL_J2236.5-1433_daily_bin1248.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/414169/ft1_filtered_4FGL_J2236.5-1433_daily_bin1248.fits evtable="EVENTS" scfile=/scratch/kocevski/414169/ft2_4FGL_J2236.5-1433_daily_bin1248.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/414169/Model_4FGL_J2236.5-1433_daily_bin1248.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/414169/ft1_filtered_4FGL_J2236.5-1433_daily_bin1248.fits.....................!
real 74.16
user 72.84
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .56916E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.2508       1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.963       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.2156       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10706E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    47.227       1.0000         .10000E-03   10000.    
     8 'norm      '    .90627       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.7088       1.0000         .10000E-03   10000.    
    11 'norm      '    1.9769       1.0000         .10000E-03   10000.    
    12 'norm      '    3.1925       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    47.715       1.0000         .10000E-03   10000.    
    15 'norm      '    2.4723       1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.839       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.7713       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.8007       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .97303       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .80473       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=   9175.640     FROM MIGRAD    STATUS=CONVERGED    452 CALLS     2261 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .80386        .79042E-08** at limit **
   2  Prefactor     .10007E-03    6.0869        .37474E-05** at limit **
   3  Prefactor     7.2514        7.7817        .40582E-07   -.12099E-03
   4  Prefactor     27.966        12.490        .87389E-06    .19103E-03
   5  Prefactor     4.0468        170.50        .66199E-05    .15697E-04
   6  Prefactor     .10000E-03    2.4344       -.10038E-05** at limit **
   7  Prefactor     47.224        34.126       -.45583E-06    .11469E-05
   8  norm          .90321        2.0837       -.29612E-06   -.59438E-03
   9  Prefactor     .10000E-03    21.019       -.13651E-06** at limit **
  10  Prefactor     2.7058        5.7521        .47801E-05    .17358E-03
  11  norm          1.9768        .72472       -.45316E-09    .19160E-04
  12  norm          3.1924        1.7607       -.78801E-07   -.87083E-04
  13  Prefactor     .10000E-03    20.228        .40628E-06** at limit **
  14  Prefactor     47.724        28.183        .20827E-06   -.16408E-03
  15  norm          2.4712        2.2376        .14828E-06    .10513E-02
  16  Prefactor     19.832        29.847       -.11103E-05    .33148E-04
  17  Prefactor     5.7709        5.2257        .82848E-07    .50631E-04
  18  Prefactor     6.7981        8.8127        .13267E-06    .67642E-04
  19  Prefactor     .10000E-03    12.566        .48559E-07** at limit **
  20  Normalizat    .97316        .15445       -.47291E-07    .12397E-03
  21  Prefactor     .80471        .11424       -.43699E-06   -.35741E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100069
  Prefactor  = 7.25145
  Prefactor  = 27.9657
  Prefactor  = 4.04683
  Prefactor  = 0.000100001
  Prefactor  = 47.2239
  norm       = 0.903212
  Prefactor  = 0.0001
  Prefactor  = 2.70584
  norm       = 1.97681
  norm       = 3.19238
  Prefactor  = 0.0001
  Prefactor  = 47.7243
  norm       = 2.4712
  Prefactor  = 19.8324
  Prefactor  = 5.77085
  Prefactor  = 6.79807
  Prefactor  = 0.0001
  Normalizat = 0.973161
  Prefactor  = 0.804712
 **********
 **   18 **HESSE 
 **********

 FCN=   9175.640     FROM HESSE     STATUS=OK           327 CALLS     2588 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .80573        .83864E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10007E-03    24.871        .37932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.2514        7.7634        .14896E-03   -1.5169    
   4  Prefactor     27.966        12.560        .75761E-04   -1.4650    
   5  Prefactor     4.0468        168.67        .19627E-03   -1.5306    
   6  Prefactor     .10000E-03    2.5492        .29427E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     47.224        34.143        .29174E-03   -1.4332    
   8  norm          .90321        2.0445        .19735E-03   -1.5518    
   9  Prefactor     .10000E-03    21.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.7058        5.9490        .12374E-02   -1.5379    
  11  norm          1.9768        .72306        .47131E-04   -1.5427    
  12  norm          3.1924        1.7604        .91585E-04   -1.5351    
  13  Prefactor     .10000E-03    20.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     47.724        28.711        .58049E-04   -1.4325    
  15  norm          2.4712        2.2762        .68491E-04   -1.5394    
  16  Prefactor     19.832        29.657        .89922E-04   -1.4817    
  17  Prefactor     5.7709        5.2242        .16719E-03   -1.5227    
  18  Prefactor     6.7981        8.8056        .15386E-03   -1.5186    
  19  Prefactor     .10000E-03    12.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .97316        .18375        .25954E-03   -.93935    
  21  Prefactor     .80471        .13536        .21650E-03   -.99555    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.867e-09
Minuit parameter uncertainties:
  1  2.26833e-07
  2  0.00262979
  3  7.76451
  4  12.5615
  5  52.4108
  6  9.23017e-05
  7  34.1573
  8  2.0447
  9  1.33313e-05
  10  5.9503
  11  0.723064
  12  1.76039
  13  7.21692e-06
  14  28.7197
  15  2.27629
  16  29.6785
  17  5.22459
  18  8.80732
  19  9.58104e-06
  20  0.183868
  21  0.135413
Done.

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

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  1.977e+00  7.231e-01  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:  8.047e-01  1.354e-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.732e-01  1.839e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 22.50
Ra Dec: 339.144 -14.556
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 7.67e-08 +/- 2.80e-08
Energy Flux (Fixed Index): 3.75e-05 +/- 1.37e-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) = 9175.58128887
delta logL = 0.0586912481231

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9175.5785017
delta logL = 0.0614784229074

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9431       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9430       1.0000          .0000       5.0000    
     3 'Normalizat'    .98198       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80119       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=   9175.579     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      194 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9431        .85707        .74450E-02   -.16406E-02
   2  alpha         1.9430        .36305        .28767       -.24719E-04
   3  Normalizat    .98199        .14919        .45941E-01    .61035E-04
   4  Prefactor     .80118        .11394        .43733E-01   -.16561E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.94311
  alpha      = 1.94296
  Normalizat = 0.981994
  Prefactor  = 0.801181
 **********
 **   18 **HESSE 
 **********

 FCN=   9175.579     FROM HESSE     STATUS=OK            31 CALLS      225 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9431        .73104        .47648E-04   -1.5429    
   2  alpha         1.9430        .34139        .11487E-01   -.22470    
   3  Normalizat    .98199        .17527        .25859E-03   -.93636    
   4  Prefactor     .80118        .13395        .21698E-03   -.99685    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.83737e-10
Minuit parameter uncertainties:
  1  0.731042
  2  0.342517
  3  0.175377
  4  0.134002
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/414169': 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) = 9175.5785017
delta logL = 0.0614784257959

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  1.943e+00  7.310e-01  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  1.943e+00  3.425e-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:  8.012e-01  1.340e-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.820e-01  1.754e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 22.67
Ra Dec: 339.144 -14.556
Photon Index (Free Index): 1.94 +/- 0.34
Photon Flux (Free Index): 6.79e-08 +/- 3.46e-08
Energy Flux (Free Index): 4.10e-05 +/- 1.93e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/414169/cmap_HighResolution_562809601_563068801_4FGL_J2236.5-1433_daily_bin1248.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.67e-08', energy_flux2='4.10e-05', photon_flux_error='2.80e-08', dlogl='6.15e-02', energy_flux='3.75e-05', photon_flux2='6.79e-08', job_status='DONE', time_completed='2021-09-28 17:42:07.607313', photon_index_error2='0.34', photon_index2='1.94', ts='22.50', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='1.93e-05', EG='0.97', time_epoch_completed='1632876127.61', return_code='0', job_id='414169', GAL2='0.80', EG2='0.98', return_code2='0', energy_flux_error='1.37e-05', photon_flux_error2='3.46e-08', ts2='22.67', photon_index='2.06' WHERE bin_id='1248' AND source_name='4FGL J2236.5-1433' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:42:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 414169: <4FGL_J2236.5-1433_daily_bin1248> in cluster <slac> Done

Job <4FGL_J2236.5-1433_daily_bin1248> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 17:30:59 2021
Job was executed on host(s) <bullet0253>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:31:01 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:31:01 2021
Terminated at Tue Sep 28 17:42:08 2021
Results reported at Tue Sep 28 17:42:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.5-1433_daily_bin1248 339.144 -14.5557 562809601 563068801 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 :                                   634.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             354.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   666 sec.
    Turnaround time :                            669 sec.

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

