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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin816
RA = 339.125, Dec = -23.1552
tmin = 450835201, tmax = 451094401
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='406402', job_status='RUN', time_executed='2021-09-28 17:08:21.901556', time_epoch_executed='1632874101.9' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='816'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/406402

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/406402/ft1_4FGL_J2236.4-2309_daily_bin816.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/406402/ft2_4FGL_J2236.4-2309_daily_bin816.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/406402/ft1_4FGL_J2236.4-2309_daily_bin816.fits outfile=/scratch/kocevski/406402/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin816.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=450835201.0 tmax=451094401.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.40
user 3.21
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/406402/ft2_4FGL_J2236.4-2309_daily_bin816.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/406402/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin816.fits evtable="EVENTS" outfile="/scratch/kocevski/406402/ft1_filtered_4FGL_J2236.4-2309_daily_bin816.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/406402/ft1_filtered_4FGL_J2236.4-2309_daily_bin816.fits" evtable="EVENTS" scfile=/scratch/kocevski/406402/ft2_4FGL_J2236.4-2309_daily_bin816.fits sctable="SC_DATA" outfile=/scratch/kocevski/406402/ltcube_450835201_451094401_4FGL_J2236.4-2309_daily_bin816.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/406402/ft2_4FGL_J2236.4-2309_daily_bin816.fits
.....................!
real 11.94
user 11.63
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/406402/ft1_filtered_4FGL_J2236.4-2309_daily_bin816.fits evtable="EVENTS" scfile=/scratch/kocevski/406402/ft2_4FGL_J2236.4-2309_daily_bin816.fits sctable="SC_DATA" expcube=/scratch/kocevski/406402/ltcube_450835201_451094401_4FGL_J2236.4-2309_daily_bin816.fits outfile=/scratch/kocevski/406402/expmap_450835201_451094401_4FGL_J2236.4-2309_daily_bin816.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/406402/ltcube_450835201_451094401_4FGL_J2236.4-2309_daily_bin816.fits
.....................!
real 190.14
user 186.07
sys 3.73

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/406402/ft1_filtered_4FGL_J2236.4-2309_daily_bin816.fits scfile=/scratch/kocevski/406402/ft2_4FGL_J2236.4-2309_daily_bin816.fits outfile=/scratch/kocevski/406402/cmap_450835201_451094401_4FGL_J2236.4-2309_daily_bin816.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/406402/ft1_filtered_4FGL_J2236.4-2309_daily_bin816.fits scfile=/scratch/kocevski/406402/ft2_4FGL_J2236.4-2309_daily_bin816.fits outfile=/scratch/kocevski/406402/cmap_HighResolution_450835201_451094401_4FGL_J2236.4-2309_daily_bin816.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/406402/ft1_filtered_4FGL_J2236.4-2309_daily_bin816.fits evtable="EVENTS" scfile=/scratch/kocevski/406402/ft2_4FGL_J2236.4-2309_daily_bin816.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/406402/Model_4FGL_J2236.4-2309_daily_bin816.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/406402/ft1_filtered_4FGL_J2236.4-2309_daily_bin816.fits.....................!
real 49.76
user 48.35
sys 1.08

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10077E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .78301       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.5704       1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.170       1.0000         .10000E-03   10000.    
     6 'Prefactor '    26.956       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.8708       1.0000         .10000E-03   10000.    
     8 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.333       1.0000         .10000E-03   10000.    
    10 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.4877       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .43173E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.0262       1.0000         .10000E-03   10000.    
    15 'norm      '    .12891E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.3061       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .11706       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2249       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .84935       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=   5803.572     FROM MIGRAD    STATUS=CONVERGED    594 CALLS     2868 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.5503       -.32297E-07** at limit **
   2  Prefactor     .10000E-03    20.131       -.35361E-07** at limit **
   3  norm          .78302        .36310       -.32884E-07    .17046E-03
   4  Prefactor     7.5708        7.1125       -.32669E-05    .64096E-03
   5  Prefactor     26.175        19.234        .31496E-06   -.44857E-04
   6  Prefactor     26.959        19.645       -.10542E-05    .15144E-03
   7  Prefactor     4.8427        417.29       -.10569E-03   -.60187E-06
   8  norm          .10000E-03    52.678       -.24022E-05** at limit **
   9  Prefactor     13.336        14.510       -.11910E-05    .47585E-03
  10  norm          .10000E-03    .58028        .12165E-05** at limit **
  11  norm          2.4867        2.5645        .33669E-06    .23527E-02
  12  Prefactor     .10525E-03    50.046       -.69458E-05** at limit **
  13  Prefactor     .10000E-03    8.9400       -.40437E-07** at limit **
  14  Prefactor     5.1632        14.241       -.12737E-04   -.40757E-03
  15  norm          .10126E-03    .60148       -.33454E-06** at limit **
  16  norm          .10000E-03    2.3811        .12257E-07** at limit **
  17  Prefactor     2.3997        59.676        .43399E-04   -.68569E-04
  18  Prefactor     .10000E-03    4.3197        .10199E-07** at limit **
  19  Prefactor     .10000E-03    2.4978       -.48894E-07** at limit **
  20  norm          .11708        .31317       -.32516E-06   -.27880E-02
  21  Prefactor     .10000E-03    2.6688        .22793E-07** at limit **
  22  Prefactor     .10000E-03    2.7178       -.96498E-08** at limit **
  23  Normalizat    1.2247        .19327        .29374E-05   -.36200E-04
  24  Prefactor     .84953        .16309        .99873E-06   -.46995E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.783019
  Prefactor  = 7.57083
  Prefactor  = 26.1748
  Prefactor  = 26.9593
  Prefactor  = 4.84267
  norm       = 0.0001
  Prefactor  = 13.3365
  norm       = 0.000100004
  norm       = 2.48669
  Prefactor  = 0.000105247
  Prefactor  = 0.0001
  Prefactor  = 5.16316
  norm       = 0.000101261
  norm       = 0.0001
  Prefactor  = 2.39972
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.117079
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.22465
  Prefactor  = 0.849527
 **********
 **   18 **HESSE 
 **********

 FCN=   5803.572     FROM HESSE     STATUS=OK           411 CALLS     3279 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.5535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    20.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .78302        .36354        .30344E-04   -1.5531    
   4  Prefactor     7.5708        7.0677        .14575E-03   -1.5158    
   5  Prefactor     26.175        19.251        .78308E-04   -1.4684    
   6  Prefactor     26.959        19.645        .77160E-04   -1.4669    
   7  Prefactor     4.8427        402.29        .18226E-03   -1.5268    
   8  norm          .10000E-03    54.086        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.336        14.308        .10970E-03   -1.4977    
  10  norm          .10000E-03    2.1206        .10639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.4867        2.2199        .10191E-03   -1.5393    
  12  Prefactor     .10525E-03    326.78        .85886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.0196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.1632        16.067        .17936E-03   -1.5253    
  15  norm          .10126E-03    2.7788        .17081E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.4911        .22934E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.3997        61.769        .27021E-03   -1.5398    
  18  Prefactor     .10000E-03    4.3267        .15456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.5140        .11730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .11708        .29938        .67085E-03   -1.5640    
  21  Prefactor     .10000E-03    2.6723        .12154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.7252        .12261E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2247        .22885        .24060E-03   -.85844    
  24  Prefactor     .84953        .19257        .24282E-03   -.97928    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82769e-08
Minuit parameter uncertainties:
  1  1.66774e-06
  2  1.62568e-06
  3  0.36354
  4  7.06845
  5  19.2555
  6  19.6499
  7  88.9001
  8  9.17165e-05
  9  14.3115
  10  0.000182069
  11  2.21997
  12  0.0832756
  13  4.44174e-05
  14  16.0809
  15  0.0037436
  16  6.99357e-06
  17  24.3774
  18  3.35072e-06
  19  5.70268e-06
  20  0.299381
  21  4.65588e-06
  22  1.10741e-06
  23  0.229035
  24  0.192723
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.334e+01  1.431e+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.495e-01  1.927e-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.225e+00  2.290e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.13
Ra Dec: 339.125 -23.155
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 4.69e-08 +/- 5.03e-08
Energy Flux (Fixed Index): 1.09e-05 +/- 1.17e-05

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

Saving results to:
/scratch/kocevski/406402/likelihoodResults_450835201_451094401_4FGL_J2236.4-2309_daily_bin816.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) = 5803.44942882
delta logL = 0.123000707888

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5803.43949676
delta logL = 0.132932771055

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.990       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3430       1.0000          .0000       10.000    
     3 'Normalizat'    1.2371       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83840       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=   5803.439     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      235 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.990        765.63        .24292E-02   -.98295E-04
   2  Index         2.3429        5.4477        .24129       -.13996E-04
   3  Normalizat    1.2371        .12926        .54169E-01    .47712E-05
   4  Prefactor     .83842        .18118        .44215E-01    .13017E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.9901
  Index      = 2.34286
  Normalizat = 1.23711
  Prefactor  = 0.838419
 **********
 **   18 **HESSE 
 **********

 FCN=   5803.439     FROM HESSE     STATUS=OK            33 CALLS      268 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.990        16.703        .97167E-04   -1.4883    
   2  Index         2.3429        .67490        .93685E-02   -.56029    
   3  Normalizat    1.2371        .22395        .23952E-03   -.85464    
   4  Prefactor     .83842        .19153        .24416E-03   -.98327    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.19974e-11
Minuit parameter uncertainties:
  1  16.7078
  2  0.677793
  3  0.224124
  4  0.191686
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/406402': 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) = 5803.43949671
delta logL = 0.132932821855

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.699e+01  1.671e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.343e+00  6.778e-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:  8.384e-01  1.917e-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.237e+00  2.241e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.38
Ra Dec: 339.125 -23.155
Photon Index (Free Index): 2.34 +/- 0.68
Photon Flux (Free Index): 4.26e-08 +/- 4.44e-08
Energy Flux (Free Index): 1.51e-05 +/- 1.74e-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/406402/cmap_HighResolution_450835201_451094401_4FGL_J2236.4-2309_daily_bin816.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-02', comment='SUCCESS', photon_flux='4.69e-08', energy_flux2='1.51e-05', photon_flux_error='5.03e-08', dlogl='1.33e-01', energy_flux='1.09e-05', photon_flux2='4.26e-08', job_status='DONE', time_completed='2021-09-28 17:18:39.572804', photon_index_error2='0.68', photon_index2='2.34', ts='1.13', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='1.52e-07', energy_flux_error2='1.74e-05', EG='1.22', time_epoch_completed='1632874719.57', return_code='0', job_id='406402', GAL2='0.84', EG2='1.24', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='4.44e-08', ts2='1.38', photon_index='2.74' WHERE bin_id='816' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:18:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 406402: <4FGL_J2236.4-2309_daily_bin816> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin816> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 17:05:47 2021
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:05:48 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:05:48 2021
Terminated at Tue Sep 28 17:18:39 2021
Results reported at Tue Sep 28 17:18:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin816 339.125 -23.1552 450835201 451094401 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 :                                   617.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            772 sec.

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

