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


Performing analysis on: 4FGL_J2236.5-1433_daily_bin1052
RA = 339.144, Dec = -14.5557
tmin = 512006401, tmax = 512265601
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='413874', job_status='RUN', time_executed='2021-09-28 17:31:43.430658', time_epoch_executed='1632875503.43' WHERE source_name='4FGL J2236.5-1433' and cadence='daily' and bin_id='1052'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/413874

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/413874/ft1_4FGL_J2236.5-1433_daily_bin1052.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/413874/ft2_4FGL_J2236.5-1433_daily_bin1052.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/413874/ft1_4FGL_J2236.5-1433_daily_bin1052.fits outfile=/scratch/kocevski/413874/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1052.fits ra=339.144 dec=-14.5557 rad=12.0 tmin=512006401.0 tmax=512265601.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.49
user 3.28
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/413874/ft2_4FGL_J2236.5-1433_daily_bin1052.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/413874/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1052.fits evtable="EVENTS" outfile="/scratch/kocevski/413874/ft1_filtered_4FGL_J2236.5-1433_daily_bin1052.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/413874/ft1_filtered_4FGL_J2236.5-1433_daily_bin1052.fits" evtable="EVENTS" scfile=/scratch/kocevski/413874/ft2_4FGL_J2236.5-1433_daily_bin1052.fits sctable="SC_DATA" outfile=/scratch/kocevski/413874/ltcube_512006401_512265601_4FGL_J2236.5-1433_daily_bin1052.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/413874/ft2_4FGL_J2236.5-1433_daily_bin1052.fits
.....................!
real 11.82
user 11.47
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/413874/ft1_filtered_4FGL_J2236.5-1433_daily_bin1052.fits evtable="EVENTS" scfile=/scratch/kocevski/413874/ft2_4FGL_J2236.5-1433_daily_bin1052.fits sctable="SC_DATA" expcube=/scratch/kocevski/413874/ltcube_512006401_512265601_4FGL_J2236.5-1433_daily_bin1052.fits outfile=/scratch/kocevski/413874/expmap_512006401_512265601_4FGL_J2236.5-1433_daily_bin1052.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/413874/ltcube_512006401_512265601_4FGL_J2236.5-1433_daily_bin1052.fits
.....................!
real 191.67
user 187.02
sys 4.31

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/413874/ft1_filtered_4FGL_J2236.5-1433_daily_bin1052.fits scfile=/scratch/kocevski/413874/ft2_4FGL_J2236.5-1433_daily_bin1052.fits outfile=/scratch/kocevski/413874/cmap_512006401_512265601_4FGL_J2236.5-1433_daily_bin1052.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/413874/ft1_filtered_4FGL_J2236.5-1433_daily_bin1052.fits scfile=/scratch/kocevski/413874/ft2_4FGL_J2236.5-1433_daily_bin1052.fits outfile=/scratch/kocevski/413874/cmap_HighResolution_512006401_512265601_4FGL_J2236.5-1433_daily_bin1052.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/413874/ft1_filtered_4FGL_J2236.5-1433_daily_bin1052.fits evtable="EVENTS" scfile=/scratch/kocevski/413874/ft2_4FGL_J2236.5-1433_daily_bin1052.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/413874/Model_4FGL_J2236.5-1433_daily_bin1052.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/413874/ft1_filtered_4FGL_J2236.5-1433_daily_bin1052.fits.....................!
real 74.86
user 73.40
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4490       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10338E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.124       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.6542       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.474       1.0000         .10000E-03   10000.    
     8 'norm      '    14.644       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .60714       1.0000         .10000E-03   10000.    
    12 'norm      '    .61077       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    38.510       1.0000         .10000E-03   10000.    
    15 'norm      '    19.753       1.0000         .10000E-03   10000.    
    16 'Prefactor '    49.536       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0722       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .91412       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=   8817.167     FROM MIGRAD    STATUS=CONVERGED    446 CALLS     2245 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4490        5.7864        .43260E-06    .70714E-04
   2  Prefactor     .10000E-03    53.351        .22103E-05** at limit **
   3  Prefactor     13.124        10.759        .22565E-06   -.80393E-05
   4  Prefactor     6.6501        12.160        .42608E-05   -.17898E-03
   5  Prefactor     .10000E-03    72.836       -.69220E-06** at limit **
   6  Prefactor     .10000E-03    2.2711       -.35114E-06** at limit **
   7  Prefactor     18.472        26.309        .73622E-07   -.12585E-04
   8  norm          14.644        4.9082       -.68522E-07    .24735E-04
   9  Prefactor     .10000E-03    32.298        .21417E-06** at limit **
  10  Prefactor     .10000E-03    5.1005       -.44763E-07** at limit **
  11  norm          .60709        .61537       -.76561E-08    .47625E-04
  12  norm          .61076        1.3997        .51675E-06    .24071E-03
  13  Prefactor     .10000E-03    36.557       -.99836E-06** at limit **
  14  Prefactor     38.486        42.143       -.10760E-05   -.14603E-03
  15  norm          19.755        4.1589        .13650E-06   -.14003E-03
  16  Prefactor     49.560        52.534        .42082E-06    .13286E-03
  17  Prefactor     .10000E-03    4.6003        .16045E-06** at limit **
  18  Prefactor     .10000E-03    2.6750        .28293E-08** at limit **
  19  Prefactor     .10000E-03    5.9169       -.51091E-08** at limit **
  20  Normalizat    1.0720        .18233       -.55708E-06   -.25798E-04
  21  Prefactor     .91431        .13571       -.81208E-07   -.54628E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.44901
  Prefactor  = 0.000100001
  Prefactor  = 13.1238
  Prefactor  = 6.65008
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 18.4724
  norm       = 14.6438
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.607088
  norm       = 0.610757
  Prefactor  = 0.000100001
  Prefactor  = 38.4859
  norm       = 19.7551
  Prefactor  = 49.56
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.07196
  Prefactor  = 0.914307
 **********
 **   18 **HESSE 
 **********

 FCN=   8817.167     FROM HESSE     STATUS=OK           319 CALLS     2564 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4490        5.7723        .17214E-03   -1.5241    
   2  Prefactor     .10000E-03    55.477        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.124        10.780        .11057E-03   -1.4983    
   4  Prefactor     6.6501        12.113        .77779E-03   -1.5192    
   5  Prefactor     .10000E-03    73.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.3924        .27758E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.472        26.306        .93184E-04   -1.4848    
   8  norm          14.644        4.9066        .10466E-03   -1.4942    
   9  Prefactor     .10000E-03    32.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.1497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .60709        .59758        .71208E-04   -1.5552    
  12  norm          .61076        1.2863        .16629E-02   -1.5552    
  13  Prefactor     .10000E-03    36.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     38.486        43.458        .64588E-04   -1.4466    
  15  norm          19.755        4.3140        .46854E-04   -1.4819    
  16  Prefactor     49.560        53.211        .56977E-04   -1.4299    
  17  Prefactor     .10000E-03    4.6095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.6789        .14998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.9183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0720        .21648        .29586E-03   -.90657    
  21  Prefactor     .91431        .16110        .24432E-03   -.95643    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.7563e-10
Minuit parameter uncertainties:
  1  5.77285
  2  0.000482401
  3  10.7812
  4  12.1172
  5  0.000562674
  6  2.49962e-05
  7  26.3227
  8  4.90676
  9  0.000119526
  10  1.90432e-06
  11  0.59759
  12  1.2864
  13  0.000410843
  14  43.4934
  15  4.31409
  16  53.2616
  17  7.89671e-07
  18  8.95788e-07
  19  1.51694e-06
  20  0.216661
  21  0.161179
Done.

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

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  6.071e-01  5.976e-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:  9.143e-01  1.612e-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.072e+00  2.167e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.36
Ra Dec: 339.144 -14.556
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 2.36e-08 +/- 2.32e-08
Energy Flux (Fixed Index): 1.15e-05 +/- 1.13e-05

TS (Fixed Index): 2.36
Ra Dec: 339.144 -14.556
Photon Flux Upper Limit: 8.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.06e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/413874/likelihoodResults_512006401_512265601_4FGL_J2236.5-1433_daily_bin1052.txt

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) = 8817.09138498
delta logL = 0.0754774538673

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8817.08408159
delta logL = 0.0827808426839

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .53147       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7701       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0762       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91368       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=   8817.084     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      200 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .53120        .70332        .11399E-01   -.12732E-03
   2  alpha         1.7700        .65516        .43623       -.39013E-04
   3  Normalizat    1.0760        .17416        .66785E-01   -.67615E-04
   4  Prefactor     .91377        .13488        .45179E-01    .11430E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.531196
  alpha      = 1.77005
  Normalizat = 1.07604
  Prefactor  = 0.913765
 **********
 **   18 **HESSE 
 **********

 FCN=   8817.084     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .53120        .61163        .68933E-04   -1.5562    
   2  alpha         1.7700        .70866        .19892E-01   -.29630    
   3  Normalizat    1.0760        .20529        .29545E-03   -.90525    
   4  Prefactor     .91377        .15901        .24444E-03   -.95662    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40866e-10
Minuit parameter uncertainties:
  1  0.611636
  2  0.719463
  3  0.205439
  4  0.159087
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/413874': 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) = 8817.08408114
delta logL = 0.0827812977132

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  5.312e-01  6.116e-01  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  1.770e+00  7.195e-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:  9.138e-01  1.591e-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.076e+00  2.054e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.53
Ra Dec: 339.144 -14.556
Photon Index (Free Index): 1.77 +/- 0.72
Photon Flux (Free Index): 1.64e-08 +/- 2.33e-08
Energy Flux (Free Index): 1.41e-05 +/- 1.67e-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/413874/cmap_HighResolution_512006401_512265601_4FGL_J2236.5-1433_daily_bin1052.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.06e-05', comment='SUCCESS', photon_flux='2.36e-08', energy_flux2='1.41e-05', photon_flux_error='2.32e-08', dlogl='8.28e-02', energy_flux='1.15e-05', photon_flux2='1.64e-08', job_status='DONE', time_completed='2021-09-28 17:43:28.274674', photon_index_error2='0.72', photon_index2='1.77', ts='2.36', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='8.30e-08', energy_flux_error2='1.67e-05', EG='1.07', time_epoch_completed='1632876208.27', return_code='0', job_id='413874', GAL2='0.91', EG2='1.08', return_code2='0', energy_flux_error='1.13e-05', photon_flux_error2='2.33e-08', ts2='2.53', photon_index='2.06' WHERE bin_id='1052' AND source_name='4FGL J2236.5-1433' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:43:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 413874: <4FGL_J2236.5-1433_daily_bin1052> in cluster <slac> Done

Job <4FGL_J2236.5-1433_daily_bin1052> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 17:30:39 2021
Job was executed on host(s) <bullet0224>, 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:43:28 2021
Results reported at Tue Sep 28 17:43:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.5-1433_daily_bin1052 339.144 -14.5557 512006401 512265601 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 :                                   703.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             330.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   767 sec.
    Turnaround time :                            769 sec.

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

