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


Performing analysis on: 4FGL_J2236.5-1433_daily_bin1419
RA = 339.144, Dec = -14.5557
tmin = 607132801, tmax = 607392001
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='415387', job_status='RUN', time_executed='2021-09-28 17:36:55.989158', time_epoch_executed='1632875815.99' WHERE source_name='4FGL J2236.5-1433' and cadence='daily' and bin_id='1419'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/415387

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/415387/ft1_4FGL_J2236.5-1433_daily_bin1419.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/415387/ft2_4FGL_J2236.5-1433_daily_bin1419.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/415387/ft1_4FGL_J2236.5-1433_daily_bin1419.fits outfile=/scratch/kocevski/415387/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1419.fits ra=339.144 dec=-14.5557 rad=12.0 tmin=607132801.0 tmax=607392001.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.32
user 5.03
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/415387/ft2_4FGL_J2236.5-1433_daily_bin1419.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/415387/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1419.fits evtable="EVENTS" outfile="/scratch/kocevski/415387/ft1_filtered_4FGL_J2236.5-1433_daily_bin1419.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/415387/ft1_filtered_4FGL_J2236.5-1433_daily_bin1419.fits" evtable="EVENTS" scfile=/scratch/kocevski/415387/ft2_4FGL_J2236.5-1433_daily_bin1419.fits sctable="SC_DATA" outfile=/scratch/kocevski/415387/ltcube_607132801_607392001_4FGL_J2236.5-1433_daily_bin1419.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/415387/ft2_4FGL_J2236.5-1433_daily_bin1419.fits
.....................!
real 11.55
user 11.15
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/415387/ft1_filtered_4FGL_J2236.5-1433_daily_bin1419.fits evtable="EVENTS" scfile=/scratch/kocevski/415387/ft2_4FGL_J2236.5-1433_daily_bin1419.fits sctable="SC_DATA" expcube=/scratch/kocevski/415387/ltcube_607132801_607392001_4FGL_J2236.5-1433_daily_bin1419.fits outfile=/scratch/kocevski/415387/expmap_607132801_607392001_4FGL_J2236.5-1433_daily_bin1419.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/415387/ltcube_607132801_607392001_4FGL_J2236.5-1433_daily_bin1419.fits
.....................!
real 191.49
user 185.47
sys 5.64

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/415387/ft1_filtered_4FGL_J2236.5-1433_daily_bin1419.fits scfile=/scratch/kocevski/415387/ft2_4FGL_J2236.5-1433_daily_bin1419.fits outfile=/scratch/kocevski/415387/cmap_607132801_607392001_4FGL_J2236.5-1433_daily_bin1419.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/415387/ft1_filtered_4FGL_J2236.5-1433_daily_bin1419.fits scfile=/scratch/kocevski/415387/ft2_4FGL_J2236.5-1433_daily_bin1419.fits outfile=/scratch/kocevski/415387/cmap_HighResolution_607132801_607392001_4FGL_J2236.5-1433_daily_bin1419.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/415387/ft1_filtered_4FGL_J2236.5-1433_daily_bin1419.fits evtable="EVENTS" scfile=/scratch/kocevski/415387/ft2_4FGL_J2236.5-1433_daily_bin1419.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/415387/Model_4FGL_J2236.5-1433_daily_bin1419.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/415387/ft1_filtered_4FGL_J2236.5-1433_daily_bin1419.fits.....................!
real 65.62
user 64.22
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6681       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.612       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.470       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.939       1.0000         .10000E-03   10000.    
     5 'Prefactor '    35.772       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.089       1.0000         .10000E-03   10000.    
     8 'norm      '    7.8218       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.1538       1.0000         .10000E-03   10000.    
    12 'norm      '    .24705E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.443       1.0000         .10000E-03   10000.    
    14 'Prefactor '    88.149       1.0000         .10000E-03   10000.    
    15 'norm      '    4.9799       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.0150       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .82591       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0843       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=   7759.853     FROM MIGRAD    STATUS=CONVERGED    466 CALLS     2288 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6671        5.6395        .12070E-04   -.13950E-03
   2  Prefactor     11.611        11.432       -.53037E-06   -.84562E-05
   3  Prefactor     11.473        11.739       -.12069E-05   -.11513E-03
   4  Prefactor     20.939        14.894       -.14247E-06   -.21622E-03
   5  Prefactor     35.702        77.549        .69199E-05   -.21459E-04
   6  Prefactor     .10000E-03    4.0293        .26683E-06** at limit **
   7  Prefactor     16.045        51.460        .46388E-05   -.91062E-05
   8  norm          7.8219        4.2327       -.20945E-06   -.48349E-03
   9  Prefactor     .10000E-03    37.412        .68654E-06** at limit **
  10  Prefactor     .10000E-03    21.279       -.21359E-06** at limit **
  11  norm          1.1540        .80933       -.19242E-06   -.22947E-02
  12  norm          .10000E-03    1.5280       -.65339E-06** at limit **
  13  Prefactor     14.557        35.869        .30859E-05    .25106E-03
  14  Prefactor     88.167        38.501        .10843E-05    .45111E-03
  15  norm          4.9786        3.2027       -.26550E-06   -.18799E-03
  16  Prefactor     .10000E-03    30.986        .76679E-06** at limit **
  17  Prefactor     .10000E-03    4.1490       -.22094E-07** at limit **
  18  Prefactor     .10000E-03    2.6434        .12987E-06** at limit **
  19  Prefactor     2.9920        29.458       -.16709E-05    .14511E-04
  20  Normalizat    .82559        .19089       -.10681E-05    .16925E-03
  21  Prefactor     1.0846        .14451       -.79180E-06    .14644E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.66707
  Prefactor  = 11.6114
  Prefactor  = 11.4733
  Prefactor  = 20.9392
  Prefactor  = 35.702
  Prefactor  = 0.0001
  Prefactor  = 16.0455
  norm       = 7.82188
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.15397
  norm       = 0.0001
  Prefactor  = 14.5569
  Prefactor  = 88.1675
  norm       = 4.97856
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.99203
  Normalizat = 0.825594
  Prefactor  = 1.08461
 **********
 **   18 **HESSE 
 **********

 FCN=   7759.853     FROM HESSE     STATUS=OK           317 CALLS     2605 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6671        5.6394        .16323E-02   -1.5450    
   2  Prefactor     11.611        11.434        .11756E-03   -1.5026    
   3  Prefactor     11.473        11.785        .11829E-03   -1.5030    
   4  Prefactor     20.939        14.844        .87530E-04   -1.4792    
   5  Prefactor     35.702        77.556        .67005E-04   -1.4512    
   6  Prefactor     .10000E-03    4.1661        .34364E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.045        51.487        .99853E-04   -1.4907    
   8  norm          7.8219        4.2315        .12276E-03   -1.5149    
   9  Prefactor     .10000E-03    37.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    21.981        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.1540        .80337        .63054E-04   -1.5493    
  12  norm          .10000E-03    3.6229        .18998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.557        32.523        .10539E-03   -1.4945    
  14  Prefactor     88.167        40.064        .42794E-04   -1.3827    
  15  norm          4.9786        3.3244        .63839E-04   -1.5262    
  16  Prefactor     .10000E-03    31.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.1607        .17522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.6484        .13987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.9920        29.393        .23373E-03   -1.5362    
  20  Normalizat    .82559        .22541        .30905E-03   -.99126    
  21  Prefactor     1.0846        .17091        .21607E-03   -.89960    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5165e-09
Minuit parameter uncertainties:
  1  5.64124
  2  11.4366
  3  11.7873
  4  14.847
  5  77.7758
  6  2.20111e-05
  7  51.6305
  8  4.23163
  9  6.34713e-05
  10  8.12815e-05
  11  0.803374
  12  5.06056e-05
  13  32.5627
  14  40.0765
  15  3.32457
  16  0.000398451
  17  1.41933e-05
  18  1.36879e-05
  19  18.7676
  20  0.225666
  21  0.171001
Done.

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

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  1.154e+00  8.034e-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:  1.085e+00  1.710e-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:  8.256e-01  2.257e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.95
Ra Dec: 339.144 -14.556
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 4.48e-08 +/- 3.12e-08
Energy Flux (Fixed Index): 2.19e-05 +/- 1.52e-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) = 7759.85247534
delta logL = 0.000577416160922

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7759.85225471
delta logL = 0.000798049898549

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1358       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0324       1.0000          .0000       5.0000    
     3 'Normalizat'    .82732       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0841       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=   7759.852     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      200 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1358        25.412        .10930E-01    .39531E-03
   2  alpha         2.0324        2.6238        .42100       -.33963E-04
   3  Normalizat    .82732        .14639        .69785E-01    .26571E-04
   4  Prefactor     1.0841        .95422E-01    .38225E-01    .42502E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.13575
  alpha      = 2.03235
  Normalizat = 0.827317
  Prefactor  = 1.08409
 **********
 **   18 **HESSE 
 **********

 FCN=   7759.852     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1358        .90157        .63241E-04   -1.5495    
   2  alpha         2.0324        .77398        .17859E-01   -.18817    
   3  Normalizat    .82732        .21379        .30878E-03   -.99063    
   4  Prefactor     1.0841        .16750        .21613E-03   -.89977    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89946e-09
Minuit parameter uncertainties:
  1  0.901578
  2  0.787399
  3  0.214005
  4  0.167579
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/415387': 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) = 7759.8522547
delta logL = 0.000798056041276

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  1.136e+00  9.016e-01  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  2.032e+00  7.874e-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:  1.084e+00  1.676e-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:  8.273e-01  2.140e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.96
Ra Dec: 339.144 -14.556
Photon Index (Free Index): 2.03 +/- 0.79
Photon Flux (Free Index): 4.28e-08 +/- 5.48e-08
Energy Flux (Free Index): 2.21e-05 +/- 1.63e-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/415387/cmap_HighResolution_607132801_607392001_4FGL_J2236.5-1433_daily_bin1419.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.48e-08', energy_flux2='2.21e-05', photon_flux_error='3.12e-08', dlogl='7.98e-04', energy_flux='2.19e-05', photon_flux2='4.28e-08', job_status='DONE', time_completed='2021-09-28 17:47:03.470838', photon_index_error2='0.79', photon_index2='2.03', ts='4.95', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='1.63e-05', EG='0.83', time_epoch_completed='1632876423.47', return_code='0', job_id='415387', GAL2='1.08', EG2='0.83', return_code2='0', energy_flux_error='1.52e-05', photon_flux_error2='5.48e-08', ts2='4.96', photon_index='2.06' WHERE bin_id='1419' AND source_name='4FGL J2236.5-1433' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:47:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 415387: <4FGL_J2236.5-1433_daily_bin1419> in cluster <slac> Done

Job <4FGL_J2236.5-1433_daily_bin1419> 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) <bullet0213>, 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:47:04 2021
Results reported at Tue Sep 28 17:47:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.5-1433_daily_bin1419 339.144 -14.5557 607132801 607392001 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 :                                   602.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   692 sec.
    Turnaround time :                            695 sec.

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

