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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin321
RA = 339.125, Dec = -23.1552
tmin = 322531201, tmax = 322790401
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='404437', job_status='RUN', time_executed='2021-09-28 17:03:00.579232', time_epoch_executed='1632873780.58' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='321'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/404437

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/404437/ft1_4FGL_J2236.4-2309_daily_bin321.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/404437/ft2_4FGL_J2236.4-2309_daily_bin321.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/404437/ft1_4FGL_J2236.4-2309_daily_bin321.fits outfile=/scratch/kocevski/404437/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin321.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=322531201.0 tmax=322790401.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 8.32
user 8.02
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/404437/ft1_filtered_4FGL_J2236.4-2309_daily_bin321.fits" evtable="EVENTS" scfile=/scratch/kocevski/404437/ft2_4FGL_J2236.4-2309_daily_bin321.fits sctable="SC_DATA" outfile=/scratch/kocevski/404437/ltcube_322531201_322790401_4FGL_J2236.4-2309_daily_bin321.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/404437/ft2_4FGL_J2236.4-2309_daily_bin321.fits
.....................!
real 11.55
user 11.19
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/404437/ft1_filtered_4FGL_J2236.4-2309_daily_bin321.fits evtable="EVENTS" scfile=/scratch/kocevski/404437/ft2_4FGL_J2236.4-2309_daily_bin321.fits sctable="SC_DATA" expcube=/scratch/kocevski/404437/ltcube_322531201_322790401_4FGL_J2236.4-2309_daily_bin321.fits outfile=/scratch/kocevski/404437/expmap_322531201_322790401_4FGL_J2236.4-2309_daily_bin321.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/404437/ltcube_322531201_322790401_4FGL_J2236.4-2309_daily_bin321.fits
.....................!
real 190.79
user 185.58
sys 4.80

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/404437/ft1_filtered_4FGL_J2236.4-2309_daily_bin321.fits scfile=/scratch/kocevski/404437/ft2_4FGL_J2236.4-2309_daily_bin321.fits outfile=/scratch/kocevski/404437/cmap_322531201_322790401_4FGL_J2236.4-2309_daily_bin321.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/404437/ft1_filtered_4FGL_J2236.4-2309_daily_bin321.fits scfile=/scratch/kocevski/404437/ft2_4FGL_J2236.4-2309_daily_bin321.fits outfile=/scratch/kocevski/404437/cmap_HighResolution_322531201_322790401_4FGL_J2236.4-2309_daily_bin321.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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/404437/ft1_filtered_4FGL_J2236.4-2309_daily_bin321.fits evtable="EVENTS" scfile=/scratch/kocevski/404437/ft2_4FGL_J2236.4-2309_daily_bin321.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/404437/Model_4FGL_J2236.4-2309_daily_bin321.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/404437/ft1_filtered_4FGL_J2236.4-2309_daily_bin321.fits.....................!
real 54.20
user 52.80
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.1717       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10178E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.2482       1.0000         .10000E-03   10000.    
    10 'norm      '    .14959       1.0000         .10000E-03   10000.    
    11 'norm      '    1.3174       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10446E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.372       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.135       1.0000         .10000E-03   10000.    
    15 'norm      '    .15853E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .86690       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .70416E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .85103       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0524       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .99214       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=   6423.819     FROM MIGRAD    STATUS=CONVERGED    572 CALLS     2450 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.8531        .78326E-06** at limit **
   2  Prefactor     .10000E-03    28.871       -.33407E-05** at limit **
   3  norm          2.1717        .51962       -.35480E-08    .88739E-04
   4  Prefactor     .10000E-03    7.9596       -.36072E-07** at limit **
   5  Prefactor     .10000E-03    7.6828       -.11576E-05** at limit **
   6  Prefactor     .10000E-03    6.3998       -.85460E-06** at limit **
   7  Prefactor     .10000E-03    27.646       -.13942E-05** at limit **
   8  norm          .10000E-03    13.271       -.11551E-05** at limit **
   9  Prefactor     9.2501        15.316       -.55756E-06    .27971E-04
  10  norm          .14948        .43644       -.13841E-06   -.10462E-02
  11  norm          1.3173        1.3415        .37323E-07    .22477E-03
  12  Prefactor     .10001E-03    37.125        .43184E-05** at limit **
  13  Prefactor     13.369        13.566       -.45036E-07   -.17206E-04
  14  Prefactor     12.167        10.634       -.29135E-05   -.22127E-03
  15  norm          .10000E-03    .55306        .83189E-06** at limit **
  16  norm          .10000E-03    1.6521        .27846E-08** at limit **
  17  Prefactor     .78773        20.037       -.85489E-06    .20632E-03
  18  Prefactor     .10000E-03    6.5515        .11926E-05** at limit **
  19  Prefactor     .10000E-03    8.1194        .69939E-06** at limit **
  20  norm          .10020E-03    .29807        .17023E-06** at limit **
  21  Prefactor     .10000E-03    4.7468        .26262E-07** at limit **
  22  Prefactor     .83164        8.4474       -.21999E-05   -.87036E-05
  23  Normalizat    1.0525        .18635        .41815E-06   -.47556E-04
  24  Prefactor     .99211        .15184        .28589E-06   -.13516E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 2.17169
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100001
  Prefactor  = 9.25013
  norm       = 0.149476
  norm       = 1.3173
  Prefactor  = 0.000100007
  Prefactor  = 13.3688
  Prefactor  = 12.1671
  norm       = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.787731
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.000100199
  Prefactor  = 0.0001
  Prefactor  = 0.831644
  Normalizat = 1.0525
  Prefactor  = 0.992108
 **********
 **   18 **HESSE 
 **********

 FCN=   6423.819     FROM HESSE     STATUS=OK           411 CALLS     2861 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.8374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    28.470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.1717        .52031        .27460E-04   -1.5413    
   4  Prefactor     .10000E-03    8.0702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.8053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.3828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    27.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    13.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.2501        15.476        .13179E-03   -1.5100    
  10  norm          .14948        .55317        .85938E-03   -1.5631    
  11  norm          1.3173        1.3592        .90819E-04   -1.5478    
  12  Prefactor     .10001E-03    36.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.369        13.631        .10954E-03   -1.4977    
  14  Prefactor     12.167        12.654        .11499E-03   -1.5010    
  15  norm          .10000E-03    3.7301        .98455E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.6803        .10052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .78773        205.76        .58132E-02   -1.5530    
  18  Prefactor     .10000E-03    6.5193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.2663        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10020E-03    .56754        .14067E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.7705        .17051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .83164        23.630        .42027E-02   -1.5526    
  23  Normalizat    1.0525        .22785        .25690E-03   -.91292    
  24  Prefactor     .99211        .18575        .22293E-03   -.92993    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.38504e-08
Minuit parameter uncertainties:
  1  9.44824e-05
  2  0.000699809
  3  0.520309
  4  7.53802e-06
  5  0.000131382
  6  8.3178e-05
  7  0.000293936
  8  0.000164775
  9  15.4826
  10  0.553184
  11  1.35925
  12  0.00100638
  13  13.6342
  14  12.6566
  15  0.000164657
  16  5.56224e-07
  17  25.5498
  18  0.000116792
  19  5.79134e-05
  20  0.000671981
  21  3.5773e-06
  22  8.86945
  23  0.22806
  24  0.185871
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  9.250e+00  1.548e+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:  9.921e-01  1.859e-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.052e+00  2.281e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/404437/likelihoodResults_322531201_322790401_4FGL_J2236.4-2309_daily_bin321.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) = 6423.11359085
delta logL = 0.705035064889

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6423.1130311
delta logL = 0.705594811948

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1828       1.0000         .10000E-03   10000.    
     2 'Index     '    4.1231       1.0000          .0000       10.000    
     3 'Normalizat'    .97038       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0373       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=   6423.113     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      297 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1832        14.362        .14297E-03    .83258E-03
   2  Index         4.1226        1.8549        .74735E-02    .12113E-03
   3  Normalizat    .97014        .23126        .26615E-03    .35601E-03
   4  Prefactor     1.0376        .18804        .21850E-03    .28290E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.18319
  Index      = 4.12259
  Normalizat = 0.970138
  Prefactor  = 1.03757
 **********
 **   18 **HESSE 
 **********

 FCN=   6423.113     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1832        10.167        .57186E-05   -1.5211    
   2  Index         4.1226        1.3258        .29894E-03   -.17640    
   3  Normalizat    .97014        .23179        .53230E-04   -.94038    
   4  Prefactor     1.0376        .18813        .43701E-04   -.91488    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.92739e-10
Minuit parameter uncertainties:
  1  10.1698
  2  1.34241
  3  0.232032
  4  0.188254
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/404437': 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) = 6423.11302924
delta logL = 0.705596674116

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  6.183e+00  1.017e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  4.123e+00  1.342e+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:  1.038e+00  1.883e-01  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  9.701e-01  2.320e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.07
Ra Dec: 339.125 -23.155
Photon Index (Free Index): 4.12 +/- 1.34
Photon Flux (Free Index): 9.66e-08 +/- 7.95e-08
Energy Flux (Free Index): 1.42e-05 +/- 1.15e-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/404437/cmap_HighResolution_322531201_322790401_4FGL_J2236.4-2309_daily_bin321.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', comment='SUCCESS', energy_flux2='1.42e-05', dlogl='7.06e-01', photon_flux2='9.66e-08', job_status='DONE', time_completed='2021-09-28 17:13:51.308458', photon_index_error2='1.34', photon_index2='4.12', ts='0.44', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.44e-07', energy_flux_error2='1.15e-05', EG='1.05', time_epoch_completed='1632874431.31', return_code='0', job_id='404437', GAL2='1.04', EG2='0.97', return_code2='0', photon_flux_error2='7.95e-08', ts2='2.07', photon_index='2.74' WHERE bin_id='321' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:13:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 404437: <4FGL_J2236.4-2309_daily_bin321> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin321 339.125 -23.1552 322531201 322790401 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 :                                   649.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   809 sec.
    Turnaround time :                            811 sec.

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

