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


Performing analysis on: 4FGL_J2236.5-1433_daily_bin1057
RA = 339.144, Dec = -14.5557
tmin = 513302401, tmax = 513561601
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='413881', job_status='RUN', time_executed='2021-09-28 17:30:56.171330', time_epoch_executed='1632875456.17' WHERE source_name='4FGL J2236.5-1433' and cadence='daily' and bin_id='1057'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/413881

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/413881/ft1_4FGL_J2236.5-1433_daily_bin1057.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/413881/ft2_4FGL_J2236.5-1433_daily_bin1057.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/413881/ft1_4FGL_J2236.5-1433_daily_bin1057.fits outfile=/scratch/kocevski/413881/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1057.fits ra=339.144 dec=-14.5557 rad=12.0 tmin=513302401.0 tmax=513561601.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.42
user 5.19
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/413881/ft1_filtered_4FGL_J2236.5-1433_daily_bin1057.fits" evtable="EVENTS" scfile=/scratch/kocevski/413881/ft2_4FGL_J2236.5-1433_daily_bin1057.fits sctable="SC_DATA" outfile=/scratch/kocevski/413881/ltcube_513302401_513561601_4FGL_J2236.5-1433_daily_bin1057.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/413881/ft2_4FGL_J2236.5-1433_daily_bin1057.fits
.....................!
real 12.20
user 11.84
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/413881/ft1_filtered_4FGL_J2236.5-1433_daily_bin1057.fits evtable="EVENTS" scfile=/scratch/kocevski/413881/ft2_4FGL_J2236.5-1433_daily_bin1057.fits sctable="SC_DATA" expcube=/scratch/kocevski/413881/ltcube_513302401_513561601_4FGL_J2236.5-1433_daily_bin1057.fits outfile=/scratch/kocevski/413881/expmap_513302401_513561601_4FGL_J2236.5-1433_daily_bin1057.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/413881/ltcube_513302401_513561601_4FGL_J2236.5-1433_daily_bin1057.fits
.....................!
real 191.10
user 185.48
sys 5.19

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/413881/ft1_filtered_4FGL_J2236.5-1433_daily_bin1057.fits scfile=/scratch/kocevski/413881/ft2_4FGL_J2236.5-1433_daily_bin1057.fits outfile=/scratch/kocevski/413881/cmap_513302401_513561601_4FGL_J2236.5-1433_daily_bin1057.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/413881/ft1_filtered_4FGL_J2236.5-1433_daily_bin1057.fits scfile=/scratch/kocevski/413881/ft2_4FGL_J2236.5-1433_daily_bin1057.fits outfile=/scratch/kocevski/413881/cmap_HighResolution_513302401_513561601_4FGL_J2236.5-1433_daily_bin1057.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/413881/ft1_filtered_4FGL_J2236.5-1433_daily_bin1057.fits evtable="EVENTS" scfile=/scratch/kocevski/413881/ft2_4FGL_J2236.5-1433_daily_bin1057.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/413881/Model_4FGL_J2236.5-1433_daily_bin1057.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/413881/ft1_filtered_4FGL_J2236.5-1433_daily_bin1057.fits....................!
real 49.13
user 47.84
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    26.932       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.155       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.1968       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10979E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .17373E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10352E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.2824       1.0000         .10000E-03   10000.    
    11 'norm      '    2.6990       1.0000         .10000E-03   10000.    
    12 'norm      '    .84534E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.5237       1.0000         .10000E-03   10000.    
    14 'Prefactor '    33.392       1.0000         .10000E-03   10000.    
    15 'norm      '    5.0399       1.0000         .10000E-03   10000.    
    16 'Prefactor '    63.207       1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.481       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.3991       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12005E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .67919       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.3387       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5391.412     FROM MIGRAD    STATUS=CONVERGED    777 CALLS     2596 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.5298        .11389E-02** at limit **
   2  Prefactor     26.920        21.953        .77195E-04    .21649E-04
   3  Prefactor     .10000E-03    8.8258        .18142E-02** at limit **
   4  Prefactor     12.157        17.611        .11490E-03    .50065E-04
   5  Prefactor     .10000E-03    31.515        .18142E-02** at limit **
   6  Prefactor     4.1962        6.0188        .18844E-03    .27656E-03
   7  Prefactor     .10000E-03    66.752        .18142E-02** at limit **
   8  norm          .10002E-03    9.3738        .21282E-02** at limit **
   9  Prefactor     .10000E-03    76.563        .18142E-02** at limit **
  10  Prefactor     8.2763        19.681        .13930E-03    .39582E-04
  11  norm          2.6987        1.3318        .56211E-04    .44758E-03
  12  norm          .79104E-01    87.351        .19443E-02    .10995E-03
  13  Prefactor     3.5930        1322.5        .21536E-03    .14940E-04
  14  Prefactor     33.423        67.367        .69345E-04    .15247E-03
  15  norm          5.0270        4.9345        .65603E-04    .36305E-03
  16  Prefactor     63.252        65.472        .50474E-04    .35317E-04
  17  Prefactor     15.481        12.595        .10179E-03    .21890E-04
  18  Prefactor     7.3967        11.389        .14745E-03    .44952E-04
  19  Prefactor     .10000E-03    70.675        .18142E-02** at limit **
  20  Normalizat    .67871        .30854        .37259E-03    .17151E-03
  21  Prefactor     1.3390        .22827        .21342E-03    .28871E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 26.9195
  Prefactor  = 0.0001
  Prefactor  = 12.1569
  Prefactor  = 0.0001
  Prefactor  = 4.19624
  Prefactor  = 0.0001
  norm       = 0.000100017
  Prefactor  = 0.0001
  Prefactor  = 8.27634
  norm       = 2.6987
  norm       = 0.0791045
  Prefactor  = 3.59301
  Prefactor  = 33.4227
  norm       = 5.02705
  Prefactor  = 63.2519
  Prefactor  = 15.481
  Prefactor  = 7.39673
  Prefactor  = 0.0001
  Normalizat = 0.678707
  Prefactor  = 1.33904
 **********
 **   18 **HESSE 
 **********

 FCN=   5391.412     FROM HESSE     STATUS=OK           297 CALLS     2893 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.5299        .22778E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     26.920        21.955        .30878E-05   -1.4670    
   3  Prefactor     .10000E-03    8.8298        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.157        17.607        .45960E-05   -1.5010    
   5  Prefactor     .10000E-03    31.515        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.1962        6.0168        .75374E-05   -1.5298    
   7  Prefactor     .10000E-03    66.762        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10002E-03    9.4184        .42563E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    76.566        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.2763        18.947        .55721E-05   -1.5133    
  11  norm          2.6987        1.3318        .22484E-05   -1.5379    
  12  norm          .79104E-01    48.977        .77770E-04   -1.5652    
  13  Prefactor     3.5930        746.58        .86142E-05   -1.5329    
  14  Prefactor     33.423        67.425        .27738E-05   -1.4551    
  15  norm          5.0270        4.9396        .26241E-05   -1.5260    
  16  Prefactor     63.252        65.466        .10095E-04   -1.4116    
  17  Prefactor     15.481        12.595        .40717E-05   -1.4921    
  18  Prefactor     7.3967        11.389        .58978E-05   -1.5164    
  19  Prefactor     .10000E-03    70.697        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .67871        .30495        .14904E-04   -1.0474    
  21  Prefactor     1.3390        .22641        .85369E-05   -.82154    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22877e-09
Minuit parameter uncertainties:
  1  3.86866e-06
  2  21.9613
  3  1.19601e-05
  4  17.6143
  5  1.49831e-05
  6  6.0177
  7  8.0127e-05
  8  0.000799639
  9  3.36285e-05
  10  18.9607
  11  1.33185
  12  3.93738
  13  104.938
  14  67.5797
  15  4.93999
  16  65.5404
  17  12.5977
  18  11.3924
  19  4.3047e-05
  20  0.305711
  21  0.226578
Done.

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

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  2.699e+00  1.332e+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:  1.339e+00  2.266e-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:  6.787e-01  3.057e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.05
Ra Dec: 339.144 -14.556
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 1.05e-07 +/- 5.17e-08
Energy Flux (Fixed Index): 5.12e-05 +/- 2.53e-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) = 5391.35901312
delta logL = 0.0528568250775

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5391.35734243
delta logL = 0.0545275163713

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7295       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2192       1.0000          .0000       5.0000    
     3 'Normalizat'    .66037       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3466       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=   5391.357     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      206 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7295        27.594        .61618E-02    .74460E-03
   2  alpha         2.2192        3.2474        .29518        .16113E-04
   3  Normalizat    .66035        .27390        .85152E-01    .24874E-04
   4  Prefactor     1.3466        .16900        .48146E-01   -.14316E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 2.72952
  alpha      = 2.21921
  Normalizat = 0.66035
  Prefactor  = 1.34656
 **********
 **   18 **HESSE 
 **********

 FCN=   5391.357     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7295        1.2800        .54222E-04   -1.5378    
   2  alpha         2.2192        .46852        .11405E-01   -.11255    
   3  Normalizat    .66035        .28377        .37717E-03   -1.0548    
   4  Prefactor     1.3466        .21893        .21282E-03   -.81933    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.32458e-11
Minuit parameter uncertainties:
  1  1.28002
  2  0.471339
  3  0.284398
  4  0.219084
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/413881': 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) = 5391.35734243
delta logL = 0.0545275195209

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  2.730e+00  1.280e+00  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  2.219e+00  4.713e-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.347e+00  2.191e-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:  6.604e-01  2.844e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.17
Ra Dec: 339.144 -14.556
Photon Index (Free Index): 2.22 +/- 0.47
Photon Flux (Free Index): 1.23e-07 +/- 7.82e-08
Energy Flux (Free Index): 4.79e-05 +/- 2.41e-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/413881/cmap_HighResolution_513302401_513561601_4FGL_J2236.5-1433_daily_bin1057.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.05e-07', energy_flux2='4.79e-05', photon_flux_error='5.17e-08', dlogl='5.45e-02', energy_flux='5.12e-05', photon_flux2='1.23e-07', job_status='DONE', time_completed='2021-09-28 17:39:37.851765', photon_index_error2='0.47', photon_index2='2.22', ts='12.05', fit_tolerance='1e-08', GAL='1.34', photon_index_error='0.00', energy_flux_error2='2.41e-05', EG='0.68', time_epoch_completed='1632875977.85', return_code='0', job_id='413881', GAL2='1.35', EG2='0.66', return_code2='0', energy_flux_error='2.53e-05', photon_flux_error2='7.82e-08', ts2='12.17', photon_index='2.06' WHERE bin_id='1057' AND source_name='4FGL J2236.5-1433' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:39:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 413881: <4FGL_J2236.5-1433_daily_bin1057> in cluster <slac> Done

Job <4FGL_J2236.5-1433_daily_bin1057> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 17:30:40 2021
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:30:41 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:30:41 2021
Terminated at Tue Sep 28 17:39:38 2021
Results reported at Tue Sep 28 17:39:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.5-1433_daily_bin1057 339.144 -14.5557 513302401 513561601 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 :                                   520.06 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             340.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   537 sec.
    Turnaround time :                            538 sec.

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

