/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 161 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 = 7665
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2236.4-2309_daily_bin300
RA = 339.125, Dec = -23.1552
tmin = 317088001, tmax = 317347201
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='404399', job_status='RUN', time_executed='2021-09-28 17:03:10.532412', time_epoch_executed='1632873790.53' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='300'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/404399

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/404399/ft1_4FGL_J2236.4-2309_daily_bin300.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/404399/ft2_4FGL_J2236.4-2309_daily_bin300.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/404399/ft1_4FGL_J2236.4-2309_daily_bin300.fits outfile=/scratch/kocevski/404399/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin300.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=317088001.0 tmax=317347201.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.89
user 3.65
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/404399/ft2_4FGL_J2236.4-2309_daily_bin300.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/404399/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin300.fits evtable="EVENTS" outfile="/scratch/kocevski/404399/ft1_filtered_4FGL_J2236.4-2309_daily_bin300.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.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/404399/ft1_filtered_4FGL_J2236.4-2309_daily_bin300.fits" evtable="EVENTS" scfile=/scratch/kocevski/404399/ft2_4FGL_J2236.4-2309_daily_bin300.fits sctable="SC_DATA" outfile=/scratch/kocevski/404399/ltcube_317088001_317347201_4FGL_J2236.4-2309_daily_bin300.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/404399/ft2_4FGL_J2236.4-2309_daily_bin300.fits
.....................!
real 11.86
user 11.51
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/404399/ft1_filtered_4FGL_J2236.4-2309_daily_bin300.fits evtable="EVENTS" scfile=/scratch/kocevski/404399/ft2_4FGL_J2236.4-2309_daily_bin300.fits sctable="SC_DATA" expcube=/scratch/kocevski/404399/ltcube_317088001_317347201_4FGL_J2236.4-2309_daily_bin300.fits outfile=/scratch/kocevski/404399/expmap_317088001_317347201_4FGL_J2236.4-2309_daily_bin300.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/404399/ltcube_317088001_317347201_4FGL_J2236.4-2309_daily_bin300.fits
.....................!
real 191.51
user 185.96
sys 5.23

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/404399/ft1_filtered_4FGL_J2236.4-2309_daily_bin300.fits scfile=/scratch/kocevski/404399/ft2_4FGL_J2236.4-2309_daily_bin300.fits outfile=/scratch/kocevski/404399/cmap_317088001_317347201_4FGL_J2236.4-2309_daily_bin300.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/404399/ft1_filtered_4FGL_J2236.4-2309_daily_bin300.fits scfile=/scratch/kocevski/404399/ft2_4FGL_J2236.4-2309_daily_bin300.fits outfile=/scratch/kocevski/404399/cmap_HighResolution_317088001_317347201_4FGL_J2236.4-2309_daily_bin300.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.54
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/404399/ft1_filtered_4FGL_J2236.4-2309_daily_bin300.fits evtable="EVENTS" scfile=/scratch/kocevski/404399/ft2_4FGL_J2236.4-2309_daily_bin300.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/404399/Model_4FGL_J2236.4-2309_daily_bin300.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/404399/ft1_filtered_4FGL_J2236.4-2309_daily_bin300.fits.....................!
real 44.15
user 42.81
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/404399/ft1_filtered_4FGL_J2236.4-2309_daily_bin300.fits', '/scratch/kocevski/404399/ft2_4FGL_J2236.4-2309_daily_bin300.fits', expMap='/scratch/kocevski/404399/expmap_317088001_317347201_4FGL_J2236.4-2309_daily_bin300.fits', expCube='/scratch/kocevski/404399/ltcube_317088001_317347201_4FGL_J2236.4-2309_daily_bin300.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/404399/Model_4FGL_J2236.4-2309_daily_bin300.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/404399/ft1_filtered_4FGL_J2236.4-2309_daily_bin300.fits
Spacecraft file(s): /scratch/kocevski/404399/ft2_4FGL_J2236.4-2309_daily_bin300.fits
Exposure map: /scratch/kocevski/404399/expmap_317088001_317347201_4FGL_J2236.4-2309_daily_bin300.fits
Exposure cube: /scratch/kocevski/404399/ltcube_317088001_317347201_4FGL_J2236.4-2309_daily_bin300.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/404399/Model_4FGL_J2236.4-2309_daily_bin300.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) = 4896.08385147

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11076E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.293       1.0000         .10000E-03   10000.    
     3 'norm      '    1.1712       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.037       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10352E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    200.50       1.0000         .10000E-03   10000.    
     8 'norm      '    13.787       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.6612       1.0000         .10000E-03   10000.    
    10 'norm      '    .51171E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    .10841E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    45.095       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.9865       1.0000         .10000E-03   10000.    
    15 'norm      '    .21798E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10855E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.960       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .53044       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.263       1.0000         .10000E-03   10000.    
    20 'norm      '    .10746E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1177       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .88994       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=   4896.069     FROM MIGRAD    STATUS=CONVERGED    988 CALLS     3228 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.089        .18142E-02** at limit **
   2  Prefactor     16.490        107.22        .99225E-04   -.12603E-05
   3  norm          1.1711        .48285        .29826E-04   -.10044E-02
   4  Prefactor     .10000E-03    4.5732        .14596E-02** at limit **
   5  Prefactor     14.039        17.363        .10691E-03    .14463E-04
   6  Prefactor     .10000E-03    71.184        .18142E-02** at limit **
   7  Prefactor     200.51        94.639        .28536E-04    .59281E-04
   8  norm          13.786        36.083        .10787E-03   -.72929E-04
   9  Prefactor     9.6600        17.429        .12893E-03   -.85005E-04
  10  norm          .51398E-01    1.9252        .11001E-02    .15180E-02
  11  norm          .10000E-03    2.4128        .10488E-02** at limit **
  12  Prefactor     45.121        59.982        .59704E-04   -.13108E-03
  13  Prefactor     .10000E-03    5.9273        .16609E-02** at limit **
  14  Prefactor     1.9954        12.621        .29401E-03    .52987E-03
  15  norm          .10000E-03    3.7532        .96615E-03** at limit **
  16  norm          .10000E-03    5.2601        .30745E-03** at limit **
  17  Prefactor     25.958        29.513        .78623E-04    .31300E-03
  18  Prefactor     .42893        421.21        .46373E-02   -.59183E-04
  19  Prefactor     13.285        16.503        .10999E-03   -.43981E-03
  20  norm          .10000E-03    1.1754        .97238E-03** at limit **
  21  Prefactor     .10000E-03    5.3144        .15736E-02** at limit **
  22  Prefactor     .10000E-03    8.3821        .18142E-02** at limit **
  23  Normalizat    1.1170        .28205        .26280E-03   -.61126E-04
  24  Prefactor     .89050        .23007        .24412E-03   -.13305E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 16.4904
  norm       = 1.17109
  Prefactor  = 0.0001
  Prefactor  = 14.0386
  Prefactor  = 0.0001
  Prefactor  = 200.507
  norm       = 13.786
  Prefactor  = 9.65997
  norm       = 0.0513977
  norm       = 0.0001
  Prefactor  = 45.1213
  Prefactor  = 0.0001
  Prefactor  = 1.99541
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 25.958
  Prefactor  = 0.428928
  Prefactor  = 13.2845
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.11701
  Prefactor  = 0.890503
 **********
 **   18 **HESSE 
 **********

 FCN=   4896.069     FROM HESSE     STATUS=OK           377 CALLS     3605 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.089        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.490        107.38        .39690E-05   -1.4896    
   3  norm          1.1711        .48284        .11930E-05   -1.5492    
   4  Prefactor     .10000E-03    4.5735        .29192E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.039        17.363        .42762E-05   -1.4958    
   6  Prefactor     .10000E-03    71.240        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     200.51        94.533        .57073E-05   -1.2866    
   8  norm          13.786        36.092        .43149E-05   -1.4965    
   9  Prefactor     9.6600        17.428        .51570E-05   -1.5086    
  10  norm          .51398E-01    1.9240        .44003E-04   -1.5663    
  11  norm          .10000E-03    2.4130        .20976E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     45.121        59.962        .11941E-04   -1.4364    
  13  Prefactor     .10000E-03    5.9280        .33218E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.9954        12.437        .11760E-04   -1.5425    
  15  norm          .10000E-03    3.7541        .19323E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.2602        .61491E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     25.958        29.492        .15725E-04   -1.4689    
  18  Prefactor     .42893        289.80        .18549E-03   -1.5577    
  19  Prefactor     13.285        13.582        .43995E-05   -1.4979    
  20  norm          .10000E-03    1.1769        .19448E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.3147        .31473E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.3833        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1170        .27897        .10512E-04   -.89207    
  24  Prefactor     .89050        .22695        .97648E-05   -.96474    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.76453e-09
Minuit parameter uncertainties:
  1  0.000192085
  2  84.3811
  3  0.48284
  4  7.28348e-06
  5  17.3691
  6  0.000209717
  7  94.6052
  8  36.1488
  9  17.4369
  10  0.628345
  11  1.26736e-05
  12  60.0424
  13  7.34913e-06
  14  9.96599
  15  3.82701e-05
  16  1.11418e-06
  17  29.5083
  18  22.4053
  19  13.5849
  20  7.10765e-05
  21  1.05354e-05
  22  2.44991e-05
  23  0.279342
  24  0.227191
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  9.660e+00  1.744e+01  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:  8.905e-01  2.272e-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:  1.117e+00  2.793e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/404399/likelihoodResults_317088001_317347201_4FGL_J2236.4-2309_daily_bin300.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) = 4895.98748209
delta logL = 0.0813746464273

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4895.98550956
delta logL = 0.083347169234

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.7278       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3805       1.0000          .0000       10.000    
     3 'Normalizat'    1.1012       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90130       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4895.986     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      277 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7486        18.773        .77349E-03   -.20693E-03
   2  Index         3.3788        2.1000        .12864E-01   -.30102E-04
   3  Normalizat    1.1010        .26613        .26443E-03   -.11109E-03
   4  Prefactor     .90139        .22037        .24278E-03   -.11707E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.74857
  Index      = 3.37882
  Normalizat = 1.10103
  Prefactor  = 0.901389
 **********
 **   18 **HESSE 
 **********

 FCN=   4895.986     FROM HESSE     STATUS=OK            25 CALLS      302 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7486        14.819        .30939E-04   -1.5188    
   2  Index         3.3788        1.6786        .51456E-03   -.33020    
   3  Normalizat    1.1010        .26669        .10577E-04   -.89719    
   4  Prefactor     .90139        .22057        .97111E-05   -.96093    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30347e-10
Minuit parameter uncertainties:
  1  14.8267
  2  1.71604
  3  0.267015
  4  0.220787
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/404399': 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) = 4895.98550849
delta logL = 0.08334823926

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  6.749e+00  1.483e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  3.379e+00  1.716e+00  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:  9.014e-01  2.208e-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:  1.101e+00  2.670e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.41
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/404399/cmap_HighResolution_317088001_317347201_4FGL_J2236.4-2309_daily_bin300.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.29e-02', job_status='DONE', photon_flux_upper_limit='1.64e-07', time_completed='2021-09-28 17:12:51.045806', job_id='404399', GAL2='0.90', fit_tolerance='1e-08', EG2='1.10', EG='1.12', time_epoch_completed='1632874371.05', return_code2='0', ts='0.41', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='8.33e-02', ts2='0.59', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='300' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:12:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 404399: <4FGL_J2236.4-2309_daily_bin300> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin300> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 17:00:18 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:00:20 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:00:20 2021
Terminated at Tue Sep 28 17:12:51 2021
Results reported at Tue Sep 28 17:12:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin300 339.125 -23.1552 317088001 317347201 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 :                                   581.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   751 sec.
    Turnaround time :                            753 sec.

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

