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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin375
RA = 339.125, Dec = -23.1552
tmin = 336528001, tmax = 336787201
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='404514', job_status='RUN', time_executed='2021-09-28 17:03:34.311050', time_epoch_executed='1632873814.31' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='375'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/404514

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/404514/ft1_4FGL_J2236.4-2309_daily_bin375.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/404514/ft2_4FGL_J2236.4-2309_daily_bin375.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/404514/ft1_4FGL_J2236.4-2309_daily_bin375.fits outfile=/scratch/kocevski/404514/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin375.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=336528001.0 tmax=336787201.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.83
user 5.58
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/404514/ft2_4FGL_J2236.4-2309_daily_bin375.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/404514/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin375.fits evtable="EVENTS" outfile="/scratch/kocevski/404514/ft1_filtered_4FGL_J2236.4-2309_daily_bin375.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.48
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/404514/ft1_filtered_4FGL_J2236.4-2309_daily_bin375.fits" evtable="EVENTS" scfile=/scratch/kocevski/404514/ft2_4FGL_J2236.4-2309_daily_bin375.fits sctable="SC_DATA" outfile=/scratch/kocevski/404514/ltcube_336528001_336787201_4FGL_J2236.4-2309_daily_bin375.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/404514/ft2_4FGL_J2236.4-2309_daily_bin375.fits
.....................!
real 11.66
user 11.30
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/404514/ft1_filtered_4FGL_J2236.4-2309_daily_bin375.fits evtable="EVENTS" scfile=/scratch/kocevski/404514/ft2_4FGL_J2236.4-2309_daily_bin375.fits sctable="SC_DATA" expcube=/scratch/kocevski/404514/ltcube_336528001_336787201_4FGL_J2236.4-2309_daily_bin375.fits outfile=/scratch/kocevski/404514/expmap_336528001_336787201_4FGL_J2236.4-2309_daily_bin375.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/404514/ltcube_336528001_336787201_4FGL_J2236.4-2309_daily_bin375.fits
.....................!
real 191.09
user 185.75
sys 5.00

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/404514/ft1_filtered_4FGL_J2236.4-2309_daily_bin375.fits scfile=/scratch/kocevski/404514/ft2_4FGL_J2236.4-2309_daily_bin375.fits outfile=/scratch/kocevski/404514/cmap_336528001_336787201_4FGL_J2236.4-2309_daily_bin375.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/404514/ft1_filtered_4FGL_J2236.4-2309_daily_bin375.fits scfile=/scratch/kocevski/404514/ft2_4FGL_J2236.4-2309_daily_bin375.fits outfile=/scratch/kocevski/404514/cmap_HighResolution_336528001_336787201_4FGL_J2236.4-2309_daily_bin375.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.50
user 0.36
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/404514/ft1_filtered_4FGL_J2236.4-2309_daily_bin375.fits evtable="EVENTS" scfile=/scratch/kocevski/404514/ft2_4FGL_J2236.4-2309_daily_bin375.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/404514/Model_4FGL_J2236.4-2309_daily_bin375.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/404514/ft1_filtered_4FGL_J2236.4-2309_daily_bin375.fits.....................!
real 47.83
user 46.58
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/404514/ft1_filtered_4FGL_J2236.4-2309_daily_bin375.fits', '/scratch/kocevski/404514/ft2_4FGL_J2236.4-2309_daily_bin375.fits', expMap='/scratch/kocevski/404514/expmap_336528001_336787201_4FGL_J2236.4-2309_daily_bin375.fits', expCube='/scratch/kocevski/404514/ltcube_336528001_336787201_4FGL_J2236.4-2309_daily_bin375.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/404514/Model_4FGL_J2236.4-2309_daily_bin375.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/404514/ft1_filtered_4FGL_J2236.4-2309_daily_bin375.fits
Spacecraft file(s): /scratch/kocevski/404514/ft2_4FGL_J2236.4-2309_daily_bin375.fits
Exposure map: /scratch/kocevski/404514/expmap_336528001_336787201_4FGL_J2236.4-2309_daily_bin375.fits
Exposure cube: /scratch/kocevski/404514/ltcube_336528001_336787201_4FGL_J2236.4-2309_daily_bin375.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/404514/Model_4FGL_J2236.4-2309_daily_bin375.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5463.15242925

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .59406       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.5587       1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.621       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.5079       1.0000         .10000E-03   10000.    
     8 'norm      '    24.254       1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.343       1.0000         .10000E-03   10000.    
    10 'norm      '    2.4975       1.0000         .10000E-03   10000.    
    11 'norm      '    .10841E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12670E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.100       1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.885       1.0000         .10000E-03   10000.    
    15 'norm      '    .10098E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    20.245       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12290E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .63519       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .77355       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0266       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=   5462.694     FROM MIGRAD    STATUS=CONVERGED    551 CALLS     3673 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.7842       -.63350E-06** at limit **
   2  Prefactor     .10000E-03    13.264       -.33700E-06** at limit **
   3  norm          .59400        .26799        .18605E-08    .31622E-03
   4  Prefactor     8.5542        8.4077       -.16352E-06    .34996E-04
   5  Prefactor     22.619        15.890        .35612E-06    .41097E-04
   6  Prefactor     .10000E-03    8.5449       -.78574E-06** at limit **
   7  Prefactor     6.3087        295.68        .16643E-04    .18159E-04
   8  norm          24.187        25.161        .43703E-07    .74172E-04
   9  Prefactor     27.338        14.643        .24937E-06    .13523E-03
  10  norm          2.4976        1.3782        .55418E-06    .26902E-03
  11  norm          .10000E-03    1.6242       -.48935E-06** at limit **
  12  Prefactor     .10000E-03    41.948       -.98910E-06** at limit **
  13  Prefactor     10.089        11.691       -.19678E-06    .40675E-04
  14  Prefactor     22.895        16.555        .23340E-06   -.97417E-03
  15  norm          .10001E-03    .99931       -.78112E-06** at limit **
  16  norm          20.244        6.1536        .66022E-07    .31914E-03
  17  Prefactor     .10000E-03    121.43        .20727E-06** at limit **
  18  Prefactor     .10000E-03    3.7253       -.17385E-06** at limit **
  19  Prefactor     .10000E-03    4.0989       -.76695E-06** at limit **
  20  norm          .10000E-03    .21038       -.43062E-07** at limit **
  21  Prefactor     .55030        129.31        .24953E-04   -.12083E-03
  22  Prefactor     .10000E-03    2.6656       -.37945E-06** at limit **
  23  Normalizat    .77380        .19690       -.25194E-06    .35910E-03
  24  Prefactor     1.0266        .16715        .15294E-05    .32613E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.593997
  Prefactor  = 8.55423
  Prefactor  = 22.6186
  Prefactor  = 0.0001
  Prefactor  = 6.30869
  norm       = 24.1868
  Prefactor  = 27.3381
  norm       = 2.49756
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.0894
  Prefactor  = 22.8947
  norm       = 0.000100009
  norm       = 20.2436
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.550302
  Prefactor  = 0.0001
  Normalizat = 0.773803
  Prefactor  = 1.02664
 **********
 **   18 **HESSE 
 **********

 FCN=   5462.694     FROM HESSE     STATUS=OK           393 CALLS     4066 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.9144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .59400        .26763        .24980E-04   -1.5554    
   4  Prefactor     8.5542        8.4121        .13702E-03   -1.5123    
   5  Prefactor     22.619        15.882        .84217E-04   -1.4756    
   6  Prefactor     .10000E-03    8.5812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.3087        299.65        .15732E-03   -1.5206    
   8  norm          24.187        25.151        .81338E-04   -1.4724    
   9  Prefactor     27.338        14.666        .76613E-04   -1.4662    
  10  norm          2.4976        1.3749        .58765E-04   -1.5392    
  11  norm          .10000E-03    1.6860        .18405E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    42.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.089        11.721        .12608E-03   -1.5073    
  14  Prefactor     22.895        17.407        .83732E-04   -1.4751    
  15  norm          .10001E-03    1.7632        .13224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          20.244        6.1561        .89018E-04   -1.4808    
  17  Prefactor     .10000E-03    123.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.7271        .13932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.1338        .14619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .21062        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .55030        138.22        .46488E-02   -1.5560    
  22  Prefactor     .10000E-03    2.6716        .11789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .77380        .23162        .28220E-03   -1.0105    
  24  Prefactor     1.0266        .19651        .21888E-03   -.91847    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.77265e-09
Minuit parameter uncertainties:
  1  3.40652e-05
  2  2.24703e-05
  3  0.267631
  4  8.41329
  5  15.885
  6  4.79294e-05
  7  87.4246
  8  25.1623
  9  14.6677
  10  1.37491
  11  1.55592e-05
  12  0.000169227
  13  11.724
  14  17.4108
  15  0.00024964
  16  6.15633
  17  0.00138385
  18  7.457e-06
  19  3.13998e-05
  20  3.83863e-07
  21  17.4823
  22  1.12682e-05
  23  0.23192
  24  0.196643
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  2.734e+01  1.467e+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:  1.027e+00  1.966e-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:  7.738e-01  2.319e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.30
Ra Dec: 339.125 -23.155
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 9.62e-08 +/- 5.16e-08
Energy Flux (Fixed Index): 2.24e-05 +/- 1.20e-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) = 5461.03259378
delta logL = 1.66098037856

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5461.02166766
delta logL = 1.67190649426

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.832       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9274       1.0000          .0000       10.000    
     3 'Normalizat'    .82861       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99046       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.

 FCN=   5461.022     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      203 TOTAL
                     EDM=   .94E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.832        15.588        .18339E-02   -.33804E-02
   2  Index         1.9274        .31904        .14186       -.67939E-05
   3  Normalizat    .82859        .18783        .43983E-01    .44914E-05
   4  Prefactor     .99045        .16579        .46148E-01    .13572E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.8324
  Index      = 1.92741
  Normalizat = 0.828595
  Prefactor  = 0.990453
 **********
 **   18 **HESSE 
 **********

 FCN=   5461.022     FROM HESSE     STATUS=OK            31 CALLS      234 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.832        17.366        .73354E-04   -1.4615    
   2  Index         1.9274        .38384        .58126E-02   -.66178    
   3  Normalizat    .82859        .22013        .27327E-03   -.99017    
   4  Prefactor     .99045        .19391        .22208E-03   -.93048    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11984e-08
Minuit parameter uncertainties:
  1  17.3691
  2  0.384452
  3  0.220372
  4  0.194042
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/404514': 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) = 5461.02166765
delta logL = 1.6719065107

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  2.983e+01  1.737e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  1.927e+00  3.845e-01  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.905e-01  1.940e-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:  8.286e-01  2.204e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.62
Ra Dec: 339.125 -23.155
Photon Index (Free Index): 1.93 +/- 0.38
Photon Flux (Free Index): 5.79e-08 +/- 3.90e-08
Energy Flux (Free Index): 4.82e-05 +/- 3.85e-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/404514/cmap_HighResolution_336528001_336787201_4FGL_J2236.4-2309_daily_bin375.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.62e-08', energy_flux2='4.82e-05', photon_flux_error='5.16e-08', dlogl='1.67e+00', energy_flux='2.24e-05', photon_flux2='5.79e-08', job_status='DONE', time_completed='2021-09-28 17:13:32.209157', photon_index_error2='0.38', photon_index2='1.93', ts='7.30', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='3.85e-05', EG='0.77', time_epoch_completed='1632874412.21', return_code='0', job_id='404514', GAL2='0.99', EG2='0.83', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='3.90e-08', ts2='10.62', photon_index='2.74' WHERE bin_id='375' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:13:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 404514: <4FGL_J2236.4-2309_daily_bin375> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin375 339.125 -23.1552 336528001 336787201 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 :                                   598.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             268.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            786 sec.

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

