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


Performing analysis on: 4FGL_J2236.5-1433_daily_bin1325
RA = 339.144, Dec = -14.5557
tmin = 582768001, tmax = 583027201
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='415250', job_status='RUN', time_executed='2021-09-28 17:39:31.209086', time_epoch_executed='1632875971.21' WHERE source_name='4FGL J2236.5-1433' and cadence='daily' and bin_id='1325'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/415250

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/415250/ft1_4FGL_J2236.5-1433_daily_bin1325.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/415250/ft2_4FGL_J2236.5-1433_daily_bin1325.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/415250/ft1_4FGL_J2236.5-1433_daily_bin1325.fits outfile=/scratch/kocevski/415250/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1325.fits ra=339.144 dec=-14.5557 rad=12.0 tmin=582768001.0 tmax=583027201.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.55
user 3.34
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/415250/ft2_4FGL_J2236.5-1433_daily_bin1325.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/415250/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1325.fits evtable="EVENTS" outfile="/scratch/kocevski/415250/ft1_filtered_4FGL_J2236.5-1433_daily_bin1325.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/415250/ft1_filtered_4FGL_J2236.5-1433_daily_bin1325.fits" evtable="EVENTS" scfile=/scratch/kocevski/415250/ft2_4FGL_J2236.5-1433_daily_bin1325.fits sctable="SC_DATA" outfile=/scratch/kocevski/415250/ltcube_582768001_583027201_4FGL_J2236.5-1433_daily_bin1325.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/415250/ft2_4FGL_J2236.5-1433_daily_bin1325.fits
.....................!
real 11.87
user 11.48
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/415250/ft1_filtered_4FGL_J2236.5-1433_daily_bin1325.fits evtable="EVENTS" scfile=/scratch/kocevski/415250/ft2_4FGL_J2236.5-1433_daily_bin1325.fits sctable="SC_DATA" expcube=/scratch/kocevski/415250/ltcube_582768001_583027201_4FGL_J2236.5-1433_daily_bin1325.fits outfile=/scratch/kocevski/415250/expmap_582768001_583027201_4FGL_J2236.5-1433_daily_bin1325.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/415250/ltcube_582768001_583027201_4FGL_J2236.5-1433_daily_bin1325.fits
.....................!
real 190.86
user 185.05
sys 5.50

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/415250/ft1_filtered_4FGL_J2236.5-1433_daily_bin1325.fits scfile=/scratch/kocevski/415250/ft2_4FGL_J2236.5-1433_daily_bin1325.fits outfile=/scratch/kocevski/415250/cmap_582768001_583027201_4FGL_J2236.5-1433_daily_bin1325.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.57
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/415250/ft1_filtered_4FGL_J2236.5-1433_daily_bin1325.fits scfile=/scratch/kocevski/415250/ft2_4FGL_J2236.5-1433_daily_bin1325.fits outfile=/scratch/kocevski/415250/cmap_HighResolution_582768001_583027201_4FGL_J2236.5-1433_daily_bin1325.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.56
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/415250/ft1_filtered_4FGL_J2236.5-1433_daily_bin1325.fits evtable="EVENTS" scfile=/scratch/kocevski/415250/ft2_4FGL_J2236.5-1433_daily_bin1325.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/415250/Model_4FGL_J2236.5-1433_daily_bin1325.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/415250/ft1_filtered_4FGL_J2236.5-1433_daily_bin1325.fits.....................!
real 53.34
user 51.96
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.227       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    164.05       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10179E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.6679       1.0000         .10000E-03   10000.    
    12 'norm      '    .10088E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.1001       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14077E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    4.9694       1.0000         .10000E-03   10000.    
    16 'Prefactor '    78.557       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.9176       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4014       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .80598       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=   5777.982     FROM MIGRAD    STATUS=CONVERGED    452 CALLS     2210 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.8767        .14076E-06** at limit **
   2  Prefactor     .10000E-03    23.330        .10558E-05** at limit **
   3  Prefactor     25.216        17.259       -.64057E-06   -.65777E-04
   4  Prefactor     .10000E-03    5.8715        .76938E-07** at limit **
   5  Prefactor     163.98        99.048        .14811E-05    .75251E-04
   6  Prefactor     .10000E-03    1.3463        .42726E-07** at limit **
   7  Prefactor     .10000E-03    29.828       -.40630E-07** at limit **
   8  norm          .10000E-03    2.6113       -.31694E-06** at limit **
   9  Prefactor     .10000E-03    21.819       -.37132E-06** at limit **
  10  Prefactor     .10000E-03    8.8034        .32664E-06** at limit **
  11  norm          2.6679        1.1749       -.35750E-07    .17206E-03
  12  norm          .10000E-03    1.0241        .40358E-06** at limit **
  13  Prefactor     6.0398        23.580       -.63742E-06   -.38061E-04
  14  Prefactor     .10076E-03    31.282       -.31947E-05** at limit **
  15  norm          4.9683        2.2316        .90385E-07    .23914E-02
  16  Prefactor     78.480        58.982       -.14168E-05    .27336E-03
  17  Prefactor     4.9216        15.595        .27226E-06    .28753E-04
  18  Prefactor     .10000E-03    3.2220       -.43358E-07** at limit **
  19  Prefactor     .10000E-03    9.4399        .47815E-07** at limit **
  20  Normalizat    1.4026        .28454        .56040E-05    .89139E-04
  21  Prefactor     .80520        .20456       -.53833E-05   -.12488E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.2158
  Prefactor  = 0.0001
  Prefactor  = 163.983
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.66792
  norm       = 0.0001
  Prefactor  = 6.03976
  Prefactor  = 0.000100762
  norm       = 4.96826
  Prefactor  = 78.4798
  Prefactor  = 4.92164
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.4026
  Prefactor  = 0.8052
 **********
 **   18 **HESSE 
 **********

 FCN=   5777.982     FROM HESSE     STATUS=OK           311 CALLS     2521 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.8924        .12596E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    23.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     25.216        17.279        .79756E-04   -1.4703    
   4  Prefactor     .10000E-03    5.9009        .17990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     163.98        99.652        .15745E-03   -1.3140    
   6  Prefactor     .10000E-03    1.3565        .86132E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    29.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.7125        .23996E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    21.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.9004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.6679        1.1731        .52339E-04   -1.5381    
  12  norm          .10000E-03    1.0508        .75299E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.0398        23.421        .16256E-03   -1.5216    
  14  Prefactor     .10076E-03    164.57        .60643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.9683        2.2671        .56195E-04   -1.5262    
  16  Prefactor     78.480        59.225        .45310E-04   -1.3934    
  17  Prefactor     4.9216        15.548        .18137E-03   -1.5264    
  18  Prefactor     .10000E-03    3.2242        .13326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.4417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.4026        .28833        .26758E-03   -.80554    
  21  Prefactor     .80520        .20700        .25221E-03   -.99537    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.6874e-09
Minuit parameter uncertainties:
  1  1.0603e-05
  2  0.000176526
  3  17.2829
  4  1.03003e-05
  5  99.7547
  6  2.66171e-06
  7  6.88675e-06
  8  1.7665e-05
  9  4.0438e-05
  10  3.78194e-05
  11  1.17306
  12  1.78933e-05
  13  23.4563
  14  0.0224513
  15  2.26714
  16  59.2694
  17  15.5612
  18  2.96184e-06
  19  4.25343e-06
  20  0.288665
  21  0.207198
Done.

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

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  2.668e+00  1.173e+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:  8.052e-01  2.072e-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.403e+00  2.887e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.01
Ra Dec: 339.144 -14.556
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 1.04e-07 +/- 4.55e-08
Energy Flux (Fixed Index): 5.06e-05 +/- 2.22e-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) = 5777.93163035
delta logL = 0.0507973811063

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5777.93037379
delta logL = 0.0520539425324

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6524       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2021       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3879       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81202       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=   5777.930     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6523        24.314        .62576E-02    .10517E-03
   2  alpha         2.2022        3.2961        .28129        .90416E-05
   3  Normalizat    1.3878        .28349        .60737E-01    .42678E-05
   4  Prefactor     .81210        .19458        .43874E-01    .13803E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.65227
  alpha      = 2.20216
  Normalizat = 1.38781
  Prefactor  = 0.812104
 **********
 **   18 **HESSE 
 **********

 FCN=   5777.930     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6523        1.1560        .51091E-04   -1.5382    
   2  alpha         2.2022        .43103        .11132E-01   -.11942    
   3  Normalizat    1.3878        .27739        .26862E-03   -.80982    
   4  Prefactor     .81210        .20388        .25120E-03   -.99284    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.00661e-11
Minuit parameter uncertainties:
  1  1.15602
  2  0.433224
  3  0.277694
  4  0.204067
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/415250': 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) = 5777.93037365
delta logL = 0.0520540807393

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  2.652e+00  1.156e+00  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  2.202e+00  4.332e-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.121e-01  2.041e-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.388e+00  2.777e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.12
Ra Dec: 339.144 -14.556
Photon Index (Free Index): 2.20 +/- 0.43
Photon Flux (Free Index): 1.17e-07 +/- 6.54e-08
Energy Flux (Free Index): 4.68e-05 +/- 2.28e-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/415250/cmap_HighResolution_582768001_583027201_4FGL_J2236.5-1433_daily_bin1325.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.04e-07', energy_flux2='4.68e-05', photon_flux_error='4.55e-08', dlogl='5.21e-02', energy_flux='5.06e-05', photon_flux2='1.17e-07', job_status='DONE', time_completed='2021-09-28 17:48:51.338715', photon_index_error2='0.43', photon_index2='2.20', ts='14.01', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='2.28e-05', EG='1.40', time_epoch_completed='1632876531.34', return_code='0', job_id='415250', GAL2='0.81', EG2='1.39', return_code2='0', energy_flux_error='2.22e-05', photon_flux_error2='6.54e-08', ts2='14.12', photon_index='2.06' WHERE bin_id='1325' AND source_name='4FGL J2236.5-1433' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:48:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 415250: <4FGL_J2236.5-1433_daily_bin1325> in cluster <slac> Done

Job <4FGL_J2236.5-1433_daily_bin1325> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 17:35:19 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:35:21 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:21 2021
Terminated at Tue Sep 28 17:48:52 2021
Results reported at Tue Sep 28 17:48:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.5-1433_daily_bin1325 339.144 -14.5557 582768001 583027201 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 :                                   515.33 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             216.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            813 sec.

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

