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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin1130
RA = 339.125, Dec = -23.1552
tmin = 532224001, tmax = 532483201
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='407860', job_status='RUN', time_executed='2021-09-28 17:12:20.904614', time_epoch_executed='1632874340.9' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1130'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/407860

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/407860/ft1_4FGL_J2236.4-2309_daily_bin1130.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/407860/ft2_4FGL_J2236.4-2309_daily_bin1130.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/407860/ft1_4FGL_J2236.4-2309_daily_bin1130.fits outfile=/scratch/kocevski/407860/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1130.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=532224001.0 tmax=532483201.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.48
user 3.26
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/407860/ft1_filtered_4FGL_J2236.4-2309_daily_bin1130.fits" evtable="EVENTS" scfile=/scratch/kocevski/407860/ft2_4FGL_J2236.4-2309_daily_bin1130.fits sctable="SC_DATA" outfile=/scratch/kocevski/407860/ltcube_532224001_532483201_4FGL_J2236.4-2309_daily_bin1130.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/407860/ft2_4FGL_J2236.4-2309_daily_bin1130.fits
.....................!
real 12.37
user 11.94
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/407860/ft1_filtered_4FGL_J2236.4-2309_daily_bin1130.fits evtable="EVENTS" scfile=/scratch/kocevski/407860/ft2_4FGL_J2236.4-2309_daily_bin1130.fits sctable="SC_DATA" expcube=/scratch/kocevski/407860/ltcube_532224001_532483201_4FGL_J2236.4-2309_daily_bin1130.fits outfile=/scratch/kocevski/407860/expmap_532224001_532483201_4FGL_J2236.4-2309_daily_bin1130.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/407860/ltcube_532224001_532483201_4FGL_J2236.4-2309_daily_bin1130.fits
.....................!
real 191.38
user 186.24
sys 4.64

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/407860/ft1_filtered_4FGL_J2236.4-2309_daily_bin1130.fits scfile=/scratch/kocevski/407860/ft2_4FGL_J2236.4-2309_daily_bin1130.fits outfile=/scratch/kocevski/407860/cmap_532224001_532483201_4FGL_J2236.4-2309_daily_bin1130.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/407860/ft1_filtered_4FGL_J2236.4-2309_daily_bin1130.fits scfile=/scratch/kocevski/407860/ft2_4FGL_J2236.4-2309_daily_bin1130.fits outfile=/scratch/kocevski/407860/cmap_HighResolution_532224001_532483201_4FGL_J2236.4-2309_daily_bin1130.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.55
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/407860/ft1_filtered_4FGL_J2236.4-2309_daily_bin1130.fits evtable="EVENTS" scfile=/scratch/kocevski/407860/ft2_4FGL_J2236.4-2309_daily_bin1130.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/407860/Model_4FGL_J2236.4-2309_daily_bin1130.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/407860/ft1_filtered_4FGL_J2236.4-2309_daily_bin1130.fits.....................!
real 49.50
user 48.18
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    4.9260       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    51.066       1.0000         .10000E-03   10000.    
     8 'norm      '    8.1923       1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.760       1.0000         .10000E-03   10000.    
    10 'norm      '    .12023E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.5549       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.274       1.0000         .10000E-03   10000.    
    14 'Prefactor '    58.734       1.0000         .10000E-03   10000.    
    15 'norm      '    24.812       1.0000         .10000E-03   10000.    
    16 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .19884E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.825       1.0000         .10000E-03   10000.    
    20 'norm      '    5.8824       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    30.755       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2177       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .65542       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=   5437.261     FROM MIGRAD    STATUS=CONVERGED    550 CALLS     2708 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.9937       -.26640E-06** at limit **
   2  Prefactor     .10000E-03    34.664       -.10143E-05** at limit **
   3  norm          4.9261        .91136        .28918E-07   -.18134E-03
   4  Prefactor     .10000E-03    3.9571       -.44562E-07** at limit **
   5  Prefactor     .10000E-03    18.063       -.94407E-06** at limit **
   6  Prefactor     .10000E-03    26.319        .15476E-05** at limit **
   7  Prefactor     51.037        70.083       -.66213E-06   -.10760E-03
   8  norm          8.1897        20.701        .21855E-06    .82647E-06
   9  Prefactor     28.765        17.987        .44626E-06   -.76329E-04
  10  norm          .10001E-03    .66698        .53070E-06** at limit **
  11  norm          2.5545        2.4789       -.44565E-07   -.24545E-04
  12  Prefactor     .10000E-03    14.320       -.52324E-06** at limit **
  13  Prefactor     11.279        12.658        .62332E-06   -.23788E-04
  14  Prefactor     58.947        82.609        .11082E-05   -.46392E-03
  15  norm          24.780        7.4120       -.95663E-06   -.38392E-02
  16  norm          .10000E-03    3.0050        .27851E-06** at limit **
  17  Prefactor     .10001E-03    64.923        .55100E-05** at limit **
  18  Prefactor     .10000E-03    12.930        .13442E-05** at limit **
  19  Prefactor     14.865        22.878        .40783E-06   -.13410E-03
  20  norm          5.8803        1.9083       -.83240E-07   -.54799E-03
  21  Prefactor     .10000E-03    6.2268        .61940E-06** at limit **
  22  Prefactor     30.758        20.874        .87221E-06   -.10791E-04
  23  Normalizat    1.2164        .30110       -.10664E-04   -.11018E-03
  24  Prefactor     .65644        .23548        .10058E-04   -.44777E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.92613
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 51.0366
  norm       = 8.18967
  Prefactor  = 28.7646
  norm       = 0.000100006
  norm       = 2.55447
  Prefactor  = 0.0001
  Prefactor  = 11.2786
  Prefactor  = 58.9471
  norm       = 24.7796
  norm       = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 14.8651
  norm       = 5.8803
  Prefactor  = 0.0001
  Prefactor  = 30.7579
  Normalizat = 1.21643
  Prefactor  = 0.656443
 **********
 **   18 **HESSE 
 **********

 FCN=   5437.261     FROM HESSE     STATUS=OK           393 CALLS     3101 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.9964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    34.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.9261        .91209        .29250E-04   -1.5264    
   4  Prefactor     .10000E-03    3.9600        .14325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    26.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     51.037        69.295        .56121E-04   -1.4278    
   8  norm          8.1897        20.683        .14007E-03   -1.5136    
   9  Prefactor     28.765        18.000        .74707E-04   -1.4635    
  10  norm          .10001E-03    6.4973        .11180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.5545        2.4780        .11032E-03   -1.5388    
  12  Prefactor     .10000E-03    14.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.279        12.661        .11932E-03   -1.5036    
  14  Prefactor     58.947        82.420        .52349E-04   -1.4171    
  15  norm          24.780        7.4637        .50546E-04   -1.4712    
  16  norm          .10000E-03    3.0150        .12475E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    65.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.865        23.463        .10402E-03   -1.4937    
  20  norm          5.8803        1.9618        .41349E-04   -1.5223    
  21  Prefactor     .10000E-03    6.2458        .17987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     30.758        20.864        .72249E-04   -1.4598    
  23  Normalizat    1.2164        .32035        .30743E-03   -.86097    
  24  Prefactor     .65644        .24929        .32794E-03   -1.0526    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.09819e-09
Minuit parameter uncertainties:
  1  9.74991e-06
  2  6.69937e-05
  3  0.912093
  4  1.50679e-06
  5  6.03765e-06
  6  0.000143429
  7  69.4049
  8  20.7009
  9  18.0037
  10  0.000400723
  11  2.47814
  12  2.0376e-05
  13  12.6636
  14  82.5798
  15  7.46403
  16  9.13255e-06
  17  0.0012734
  18  6.80428e-05
  19  23.4777
  20  1.96178
  21  4.18862e-05
  22  20.8692
  23  0.320874
  24  0.249712
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  2.876e+01  1.800e+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:  6.564e-01  2.497e-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.216e+00  3.209e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.99
Ra Dec: 339.125 -23.155
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 1.01e-07 +/- 6.33e-08
Energy Flux (Fixed Index): 2.36e-05 +/- 1.48e-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) = 5437.19634104
delta logL = 0.064243373602

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5437.19544916
delta logL = 0.0651352540272

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.002       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5293       1.0000          .0000       10.000    
     3 'Normalizat'    1.2276       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64797       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=   5437.195     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      297 TOTAL
                     EDM=   .13E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.985        21.131        .70830E-04    .80253E-06
   2  Index         2.5287        .56880        .78334E-02    .25122E-05
   3  Normalizat    1.2278        .30222        .30620E-03    .27474E-05
   4  Prefactor     .64788        .24297        .32987E-03    .55143E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.9854
  Index      = 2.52868
  Normalizat = 1.22778
  Prefactor  = 0.647875
 **********
 **   18 **HESSE 
 **********

 FCN=   5437.195     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .45E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.985        20.933        .28332E-05   -1.4576    
   2  Index         2.5287        .56348        .31334E-03   -.51699    
   3  Normalizat    1.2278        .30257        .12248E-04   -.85749    
   4  Prefactor     .64788        .24320        .13195E-04   -1.0561    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.45702e-14
Minuit parameter uncertainties:
  1  20.9381
  2  0.565066
  3  0.303002
  4  0.243602
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/407860': 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) = 5437.19544779
delta logL = 0.0651366229558

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  3.199e+01  2.094e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.529e+00  5.651e-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:  6.479e-01  2.436e-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.228e+00  3.030e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.99
Ra Dec: 339.125 -23.155
Photon Index (Free Index): 2.53 +/- 0.57
Photon Flux (Free Index): 9.31e-08 +/- 6.33e-08
Energy Flux (Free Index): 2.62e-05 +/- 1.83e-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/407860/cmap_HighResolution_532224001_532483201_4FGL_J2236.4-2309_daily_bin1130.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.01e-07', energy_flux2='2.62e-05', photon_flux_error='6.33e-08', dlogl='6.51e-02', energy_flux='2.36e-05', photon_flux2='9.31e-08', job_status='DONE', time_completed='2021-09-28 17:21:30.472182', photon_index_error2='0.57', photon_index2='2.53', ts='4.99', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', energy_flux_error2='1.83e-05', EG='1.22', time_epoch_completed='1632874890.47', return_code='0', job_id='407860', GAL2='0.65', EG2='1.23', return_code2='0', energy_flux_error='1.48e-05', photon_flux_error2='6.33e-08', ts2='4.99', photon_index='2.74' WHERE bin_id='1130' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:21:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 407860: <4FGL_J2236.4-2309_daily_bin1130> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1130 339.125 -23.1552 532224001 532483201 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 :                                   547.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             267.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   648 sec.
    Turnaround time :                            650 sec.

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

