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


Performing analysis on: 4FGL_J2236.5-1433_daily_bin1421
RA = 339.144, Dec = -14.5557
tmin = 607651201, tmax = 607910401
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='415390', job_status='RUN', time_executed='2021-09-28 17:36:33.765476', time_epoch_executed='1632875793.77' WHERE source_name='4FGL J2236.5-1433' and cadence='daily' and bin_id='1421'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/415390

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/415390/ft1_4FGL_J2236.5-1433_daily_bin1421.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/415390/ft2_4FGL_J2236.5-1433_daily_bin1421.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/415390/ft1_4FGL_J2236.5-1433_daily_bin1421.fits outfile=/scratch/kocevski/415390/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1421.fits ra=339.144 dec=-14.5557 rad=12.0 tmin=607651201.0 tmax=607910401.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.81
user 3.59
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/415390/ft1_filtered_4FGL_J2236.5-1433_daily_bin1421.fits" evtable="EVENTS" scfile=/scratch/kocevski/415390/ft2_4FGL_J2236.5-1433_daily_bin1421.fits sctable="SC_DATA" outfile=/scratch/kocevski/415390/ltcube_607651201_607910401_4FGL_J2236.5-1433_daily_bin1421.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/415390/ft2_4FGL_J2236.5-1433_daily_bin1421.fits
.....................!
real 11.88
user 11.51
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/415390/ft1_filtered_4FGL_J2236.5-1433_daily_bin1421.fits evtable="EVENTS" scfile=/scratch/kocevski/415390/ft2_4FGL_J2236.5-1433_daily_bin1421.fits sctable="SC_DATA" expcube=/scratch/kocevski/415390/ltcube_607651201_607910401_4FGL_J2236.5-1433_daily_bin1421.fits outfile=/scratch/kocevski/415390/expmap_607651201_607910401_4FGL_J2236.5-1433_daily_bin1421.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/415390/ltcube_607651201_607910401_4FGL_J2236.5-1433_daily_bin1421.fits
.....................!
real 191.18
user 186.15
sys 4.66

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

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/415390/ft1_filtered_4FGL_J2236.5-1433_daily_bin1421.fits scfile=/scratch/kocevski/415390/ft2_4FGL_J2236.5-1433_daily_bin1421.fits outfile=/scratch/kocevski/415390/cmap_HighResolution_607651201_607910401_4FGL_J2236.5-1433_daily_bin1421.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/415390/ft1_filtered_4FGL_J2236.5-1433_daily_bin1421.fits evtable="EVENTS" scfile=/scratch/kocevski/415390/ft2_4FGL_J2236.5-1433_daily_bin1421.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/415390/Model_4FGL_J2236.5-1433_daily_bin1421.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/415390/ft1_filtered_4FGL_J2236.5-1433_daily_bin1421.fits.....................!
real 72.90
user 71.52
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4511       1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.071       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.5757       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.4378       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    11.740       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.0961       1.0000         .10000E-03   10000.    
    12 'norm      '    3.8034       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .15264E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    12.023       1.0000         .10000E-03   10000.    
    16 'Prefactor '    41.145       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.8717       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .56103       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2295       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=   8726.536     FROM MIGRAD    STATUS=CONVERGED    453 CALLS     2192 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4516        5.7433        .36731E-02   -.19136E-02
   2  Prefactor     19.074        13.442        .22928E-02   -.17276E-03
   3  Prefactor     8.5772        7.7804        .34221E-02    .92215E-03
   4  Prefactor     .10000E-03    4.6341        .90712E-02** at limit **
   5  Prefactor     .10000E-03    23.122        .90712E-02** at limit **
   6  Prefactor     1.4392        3.6367        .89976E-02    .11562E-02
   7  Prefactor     .10000E-03    13.737        .90712E-02** at limit **
   8  norm          11.740        3.9858        .29230E-02   -.30704E-03
   9  Prefactor     .10000E-03    50.688        .90712E-02** at limit **
  10  Prefactor     .10000E-03    5.6697        .90712E-02** at limit **
  11  norm          3.0963        .99033        .57619E-02    .11718E-02
  12  norm          3.7974        2.0523        .51743E-02   -.36753E-02
  13  Prefactor     .10002E-03    125.03        .90712E-02** at limit **
  14  Prefactor     .10000E-03    35.071        .90712E-02** at limit **
  15  norm          12.026        2.1185        .28882E-02    .18349E-02
  16  Prefactor     41.149        35.459        .15623E-02   -.71426E-03
  17  Prefactor     7.8722        7.4393        .35729E-02    .85949E-03
  18  Prefactor     .10000E-03    4.3415        .90712E-02** at limit **
  19  Prefactor     .10000E-03    6.7959        .90712E-02** at limit **
  20  Normalizat    .56088        .17460        .82134E-01   -.40356E-03
  21  Prefactor     1.2296        .13984        .33967E-01   -.47840E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.45157
  Prefactor  = 19.0738
  Prefactor  = 8.57716
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 1.43922
  Prefactor  = 0.0001
  norm       = 11.7404
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 3.09626
  norm       = 3.7974
  Prefactor  = 0.000100016
  Prefactor  = 0.000100005
  norm       = 12.0258
  Prefactor  = 41.1494
  Prefactor  = 7.8722
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.560877
  Prefactor  = 1.22956
 **********
 **   18 **HESSE 
 **********

 FCN=   8726.536     FROM HESSE     STATUS=OK           309 CALLS     2501 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4516        5.7364        .14693E-03   -1.5162    
   2  Prefactor     19.074        13.435        .91714E-04   -1.4834    
   3  Prefactor     8.5772        7.7727        .13688E-03   -1.5122    
   4  Prefactor     .10000E-03    4.6438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    23.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.4392        3.6032        .26553E-03   -1.5468    
   7  Prefactor     .10000E-03    13.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          11.740        3.9703        .10200E-03   -1.5023    
   9  Prefactor     .10000E-03    50.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.7595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.0963        .98887        .50208E-04   -1.5356    
  12  norm          3.7974        2.0465        .95374E-04   -1.5318    
  13  Prefactor     .10002E-03    126.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    35.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          12.026        2.1310        .45420E-04   -1.5014    
  16  Prefactor     41.149        35.807        .62493E-04   -1.4424    
  17  Prefactor     7.8722        7.4379        .14292E-03   -1.5147    
  18  Prefactor     .10000E-03    4.3660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.8025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .56088        .19167        .36380E-03   -1.0967    
  21  Prefactor     1.2296        .15551        .20627E-03   -.85426    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.67655e-09
Minuit parameter uncertainties:
  1  5.73683
  2  13.4369
  3  7.77359
  4  6.50544e-05
  5  0.000244759
  6  3.60374
  7  0.000159711
  8  3.97043
  9  0.000544921
  10  9.17228e-05
  11  0.98888
  12  2.04651
  13  0.0028176
  14  0.000821962
  15  2.13101
  16  35.8255
  17  7.43879
  18  2.03281e-05
  19  4.9016e-05
  20  0.191895
  21  0.155572
Done.

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

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  3.096e+00  9.889e-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.230e+00  1.556e-01  0.000e+00  1.000e+01 ( 1.000e+00)
493        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
494        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
491   Normalization:  5.609e-01  1.919e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 33.95
Ra Dec: 339.144 -14.556
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 1.20e-07 +/- 3.84e-08
Energy Flux (Fixed Index): 5.87e-05 +/- 1.88e-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) = 8726.50177871
delta logL = 0.0340753415385

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8726.50139025
delta logL = 0.0344638011848

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0965       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9933       1.0000          .0000       5.0000    
     3 'Normalizat'    .56638       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2278       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=   8726.501     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      197 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0974        1.2844        .57615E-02    .14754E-03
   2  alpha         1.9932        .32785        .22544        .13146E-05
   3  Normalizat    .56660        .17115        .81776E-01    .49575E-04
   4  Prefactor     1.2277        .13904        .34004E-01   -.27312E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.09735
  alpha      = 1.99316
  Normalizat = 0.566605
  Prefactor  = 1.22767
 **********
 **   18 **HESSE 
 **********

 FCN=   8726.501     FROM HESSE     STATUS=OK            33 CALLS      230 TOTAL
                     EDM=   .67E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0974        .99996        .51060E-04   -1.5356    
   2  alpha         1.9932        .27091        .93604E-02   -.20415    
   3  Normalizat    .56660        .18859        .36220E-03   -1.0942    
   4  Prefactor     1.2277        .15379        .20646E-03   -.85484    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.71992e-15
Minuit parameter uncertainties:
  1  0.999963
  2  0.271468
  3  0.188804
  4  0.153841
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/415390': 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) = 8726.50138896
delta logL = 0.0344650904372

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  3.097e+00  1.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  1.993e+00  2.715e-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.228e+00  1.538e-01  0.000e+00  1.000e+01 ( 1.000e+00)
493        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
494        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
491   Normalization:  5.666e-01  1.888e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 34.04
Ra Dec: 339.144 -14.556
Photon Index (Free Index): 1.99 +/- 0.27
Photon Flux (Free Index): 1.13e-07 +/- 4.55e-08
Energy Flux (Free Index): 6.22e-05 +/- 2.49e-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/415390/cmap_HighResolution_607651201_607910401_4FGL_J2236.5-1433_daily_bin1421.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.20e-07', energy_flux2='6.22e-05', photon_flux_error='3.84e-08', dlogl='3.45e-02', energy_flux='5.87e-05', photon_flux2='1.13e-07', job_status='DONE', time_completed='2021-09-28 17:46:57.625166', photon_index_error2='0.27', photon_index2='1.99', ts='33.95', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', energy_flux_error2='2.49e-05', EG='0.56', time_epoch_completed='1632876417.63', return_code='0', job_id='415390', GAL2='1.23', EG2='0.57', return_code2='0', energy_flux_error='1.88e-05', photon_flux_error2='4.55e-08', ts2='34.04', photon_index='2.06' WHERE bin_id='1421' AND source_name='4FGL J2236.5-1433' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:46:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 415390: <4FGL_J2236.5-1433_daily_bin1421> in cluster <slac> Done

Job <4FGL_J2236.5-1433_daily_bin1421> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 17:35:30 2021
Job was executed on host(s) <bullet0222>, 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:46:58 2021
Results reported at Tue Sep 28 17:46:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.5-1433_daily_bin1421 339.144 -14.5557 607651201 607910401 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 :                                   619.11 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             335.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   686 sec.
    Turnaround time :                            688 sec.

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

