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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin1044
RA = 339.125, Dec = -23.1552
tmin = 509932801, tmax = 510192001
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='407735', job_status='RUN', time_executed='2021-09-28 17:11:46.509886', time_epoch_executed='1632874306.51' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1044'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/407735

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/407735/ft1_4FGL_J2236.4-2309_daily_bin1044.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/407735/ft2_4FGL_J2236.4-2309_daily_bin1044.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/407735/ft1_4FGL_J2236.4-2309_daily_bin1044.fits outfile=/scratch/kocevski/407735/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1044.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=509932801.0 tmax=510192001.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.52
user 3.30
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/407735/ft2_4FGL_J2236.4-2309_daily_bin1044.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/407735/ft2_4FGL_J2236.4-2309_daily_bin1044.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/407735/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1044.fits evtable="EVENTS" outfile="/scratch/kocevski/407735/ft1_filtered_4FGL_J2236.4-2309_daily_bin1044.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/407735/ft1_filtered_4FGL_J2236.4-2309_daily_bin1044.fits" evtable="EVENTS" scfile=/scratch/kocevski/407735/ft2_4FGL_J2236.4-2309_daily_bin1044.fits sctable="SC_DATA" outfile=/scratch/kocevski/407735/ltcube_509932801_510192001_4FGL_J2236.4-2309_daily_bin1044.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/407735/ft2_4FGL_J2236.4-2309_daily_bin1044.fits
.....................!
real 11.91
user 11.55
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/407735/ft1_filtered_4FGL_J2236.4-2309_daily_bin1044.fits evtable="EVENTS" scfile=/scratch/kocevski/407735/ft2_4FGL_J2236.4-2309_daily_bin1044.fits sctable="SC_DATA" expcube=/scratch/kocevski/407735/ltcube_509932801_510192001_4FGL_J2236.4-2309_daily_bin1044.fits outfile=/scratch/kocevski/407735/expmap_509932801_510192001_4FGL_J2236.4-2309_daily_bin1044.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/407735/ltcube_509932801_510192001_4FGL_J2236.4-2309_daily_bin1044.fits
.....................!
real 190.91
user 185.68
sys 4.91

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 159 point sources and 0 extended sources

Setting source of interest to:
4FGL J2236.4-2309 @ 339.125 -23.1552

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/407735/ft1_filtered_4FGL_J2236.4-2309_daily_bin1044.fits scfile=/scratch/kocevski/407735/ft2_4FGL_J2236.4-2309_daily_bin1044.fits outfile=/scratch/kocevski/407735/cmap_509932801_510192001_4FGL_J2236.4-2309_daily_bin1044.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.125 yref=-23.1552 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.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/407735/ft1_filtered_4FGL_J2236.4-2309_daily_bin1044.fits scfile=/scratch/kocevski/407735/ft2_4FGL_J2236.4-2309_daily_bin1044.fits outfile=/scratch/kocevski/407735/cmap_HighResolution_509932801_510192001_4FGL_J2236.4-2309_daily_bin1044.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.125 yref=-23.1552 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/407735/ft1_filtered_4FGL_J2236.4-2309_daily_bin1044.fits evtable="EVENTS" scfile=/scratch/kocevski/407735/ft2_4FGL_J2236.4-2309_daily_bin1044.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/407735/Model_4FGL_J2236.4-2309_daily_bin1044.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/407735/ft1_filtered_4FGL_J2236.4-2309_daily_bin1044.fits.....................!
real 49.05
user 47.71
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/407735/ft1_filtered_4FGL_J2236.4-2309_daily_bin1044.fits', '/scratch/kocevski/407735/ft2_4FGL_J2236.4-2309_daily_bin1044.fits', expMap='/scratch/kocevski/407735/expmap_509932801_510192001_4FGL_J2236.4-2309_daily_bin1044.fits', expCube='/scratch/kocevski/407735/ltcube_509932801_510192001_4FGL_J2236.4-2309_daily_bin1044.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/407735/Model_4FGL_J2236.4-2309_daily_bin1044.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2236.4-2309'

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  4.382e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.743e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
249        Scale:  4.484e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/407735/ft1_filtered_4FGL_J2236.4-2309_daily_bin1044.fits
Spacecraft file(s): /scratch/kocevski/407735/ft2_4FGL_J2236.4-2309_daily_bin1044.fits
Exposure map: /scratch/kocevski/407735/expmap_509932801_510192001_4FGL_J2236.4-2309_daily_bin1044.fits
Exposure cube: /scratch/kocevski/407735/ltcube_509932801_510192001_4FGL_J2236.4-2309_daily_bin1044.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/407735/Model_4FGL_J2236.4-2309_daily_bin1044.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) = 5572.28262683

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.9977       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11054E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.424       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .23724E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    56.375       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10452E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.0145       1.0000         .10000E-03   10000.    
    11 'norm      '    1.5330       1.0000         .10000E-03   10000.    
    12 'Prefactor '    75.696       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.0325       1.0000         .10000E-03   10000.    
    14 'Prefactor '    136.05       1.0000         .10000E-03   10000.    
    15 'norm      '    3.5792       1.0000         .10000E-03   10000.    
    16 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10538E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.5189       1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.119       1.0000         .10000E-03   10000.    
    20 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .98133       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1132       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5571.741     FROM MIGRAD    STATUS=CONVERGED    548 CALLS     2850 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.8435        .47488E-07** at limit **
   2  Prefactor     .10000E-03    27.191        .71718E-07** at limit **
   3  norm          1.9976        .57143        .17590E-08   -.53847E-03
   4  Prefactor     .10000E-03    21.261        .11783E-05** at limit **
   5  Prefactor     11.410        23.785        .22213E-06   -.20026E-05
   6  Prefactor     .10130E-03    17.101        .50459E-05** at limit **
   7  Prefactor     .10000E-03    27.271       -.14959E-06** at limit **
   8  norm          56.381        34.189       -.78650E-06   -.74301E-04
   9  Prefactor     .10000E-03    23.946        .48040E-05** at limit **
  10  norm          3.0146        1.2427        .19762E-07    .83974E-04
  11  norm          1.5293        3.3290        .26610E-05    .48961E-03
  12  Prefactor     75.769        78.280       -.64016E-05   -.59343E-04
  13  Prefactor     6.0294        13.667        .53400E-05    .18304E-03
  14  Prefactor     135.88        61.026        .33130E-05    .18126E-04
  15  norm          3.5795        4.5440       -.14890E-05   -.88518E-05
  16  norm          .10000E-03    2.8660       -.47148E-06** at limit **
  17  Prefactor     .10000E-03    88.444       -.11619E-04** at limit **
  18  Prefactor     4.5190        16.273        .87741E-06    .13647E-03
  19  Prefactor     16.113        14.146        .14834E-06    .41477E-03
  20  norm          .10000E-03    .31172       -.30921E-06** at limit **
  21  Prefactor     .10000E-03    5.5737       -.71694E-06** at limit **
  22  Prefactor     .10000E-03    12.327        .28781E-06** at limit **
  23  Normalizat    .98146        .24828        .27191E-05   -.18017E-03
  24  Prefactor     1.1131        .19912       -.26024E-05   -.52768E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.99765
  Prefactor  = 0.0001
  Prefactor  = 11.4097
  Prefactor  = 0.000101303
  Prefactor  = 0.0001
  norm       = 56.3812
  Prefactor  = 0.000100001
  norm       = 3.01461
  norm       = 1.52928
  Prefactor  = 75.7693
  Prefactor  = 6.02944
  Prefactor  = 135.882
  norm       = 3.57952
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 4.51896
  Prefactor  = 16.1132
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.981465
  Prefactor  = 1.11313
 **********
 **   18 **HESSE 
 **********

 FCN=   5571.741     FROM HESSE     STATUS=OK           407 CALLS     3257 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.8467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    27.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.9976        .57247        .29298E-04   -1.5425    
   4  Prefactor     .10000E-03    22.124        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.410        23.842        .11853E-03   -1.5032    
   6  Prefactor     .10130E-03    83.141        .54124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    27.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          56.381        34.160        .53427E-04   -1.4205    
   9  Prefactor     .10000E-03    24.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.0146        1.2425        .51237E-04   -1.5361    
  11  norm          1.5293        3.2836        .17077E-03   -1.5461    
  12  Prefactor     75.769        78.096        .23076E-03   -1.3965    
  13  Prefactor     6.0294        13.719        .81738E-03   -1.5217    
  14  Prefactor     135.88        60.216        .17265E-03   -1.3371    
  15  norm          3.5795        4.4639        .88596E-04   -1.5330    
  16  norm          .10000E-03    5.0534        .23408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    88.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.5190        16.009        .18939E-03   -1.5283    
  19  Prefactor     16.113        13.446        .99757E-04   -1.4905    
  20  norm          .10000E-03    .33972        .76637E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.5798        .17210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .98146        .30128        .31767E-03   -.93654    
  24  Prefactor     1.1131        .24048        .25643E-03   -.89048    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56051e-08
Minuit parameter uncertainties:
  1  1.06479e-06
  2  1.29301e-05
  3  0.572467
  4  4.52829e-05
  5  23.8618
  6  0.0208448
  7  2.10088e-05
  8  34.1715
  9  0.000257626
  10  1.24249
  11  3.28394
  12  78.2021
  13  13.7262
  14  60.2427
  15  4.46432
  16  1.54434e-05
  17  0.00109118
  18  16.024
  19  13.4485
  20  1.93053e-06
  21  1.83153e-05
  22  7.28421e-06
  23  0.301803
  24  0.240715
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  2.576e-04  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.743e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
249        Scale:  4.484e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  1.113e+00  2.407e-01  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  9.815e-01  3.018e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 339.125 -23.155
Photon Flux Upper Limit: 1.28e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.01e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/407735/likelihoodResults_509932801_510192001_4FGL_J2236.4-2309_daily_bin1044.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): 102
logL (Free Index) = 5571.74149812
delta logL = -0.000195992245608

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5571.74130281
delta logL = -6.88868567522e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10255E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.2723       1.0000          .0000       10.000    
     3 'Normalizat'    .98147       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1131       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+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=   5571.741     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      307 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1918.8        .36285E-02** at limit **
   2  Index         2.5992        6.7552        .50000       -.39381E-07
   3  Normalizat    .98147        .58341E-01    .31766E-03   -.10597E-03
   4  Prefactor     1.1131        .50083E-01    .25644E-03   -.13312E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.5992
  Normalizat = 0.981468
  Prefactor  = 1.11312
 **********
 **   18 **HESSE 
 **********

 FCN=   5571.741     FROM HESSE     STATUS=OK            29 CALLS      336 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    150.55        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5992        8.6289        .50000       -.50084    
   3  Normalizat    .98147        .27010        .12707E-04   -.93654    
   4  Prefactor     1.1131        .23202        .51287E-04   -.89048    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71102e-10
Minuit parameter uncertainties:
  1  0.000374925
  2  541.012
  3  0.27048
  4  0.232234
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/407735': 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) = 5571.74130208
delta logL = 3.93520167563e-08

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  3.749e-04  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.599e+00  5.410e+02  0.000e+00  1.000e+01 (-1.000e+00)
249        Scale:  4.484e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  1.113e+00  2.322e-01  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  9.815e-01  2.705e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 339.125 -23.155

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/407735/cmap_HighResolution_509932801_510192001_4FGL_J2236.4-2309_daily_bin1044.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', job_status='DONE', photon_flux_upper_limit='1.28e-07', time_completed='2021-09-28 17:21:52.666613', job_id='407735', GAL2='1.11', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1632874912.67', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='3.94e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1044' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:21:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 407735: <4FGL_J2236.4-2309_daily_bin1044> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin1044> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 17:10:31 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:10:32 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:10:32 2021
Terminated at Tue Sep 28 17:21:53 2021
Results reported at Tue Sep 28 17:21:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1044 339.125 -23.1552 509932801 510192001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2236.4-2309 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   604.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             276.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   680 sec.
    Turnaround time :                            682 sec.

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

