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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin820
RA = 339.125, Dec = -23.1552
tmin = 451872001, tmax = 452131201
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='406408', job_status='RUN', time_executed='2021-09-28 17:08:01.257357', time_epoch_executed='1632874081.26' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='820'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/406408

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/406408/ft1_4FGL_J2236.4-2309_daily_bin820.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/406408/ft2_4FGL_J2236.4-2309_daily_bin820.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/406408/ft1_4FGL_J2236.4-2309_daily_bin820.fits outfile=/scratch/kocevski/406408/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin820.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=451872001.0 tmax=452131201.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.35
user 3.14
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/406408/ft1_filtered_4FGL_J2236.4-2309_daily_bin820.fits" evtable="EVENTS" scfile=/scratch/kocevski/406408/ft2_4FGL_J2236.4-2309_daily_bin820.fits sctable="SC_DATA" outfile=/scratch/kocevski/406408/ltcube_451872001_452131201_4FGL_J2236.4-2309_daily_bin820.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/406408/ft2_4FGL_J2236.4-2309_daily_bin820.fits
.....................!
real 11.91
user 11.57
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/406408/ft1_filtered_4FGL_J2236.4-2309_daily_bin820.fits evtable="EVENTS" scfile=/scratch/kocevski/406408/ft2_4FGL_J2236.4-2309_daily_bin820.fits sctable="SC_DATA" expcube=/scratch/kocevski/406408/ltcube_451872001_452131201_4FGL_J2236.4-2309_daily_bin820.fits outfile=/scratch/kocevski/406408/expmap_451872001_452131201_4FGL_J2236.4-2309_daily_bin820.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/406408/ltcube_451872001_452131201_4FGL_J2236.4-2309_daily_bin820.fits
.....................!
real 192.97
user 187.80
sys 4.81

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/406408/ft1_filtered_4FGL_J2236.4-2309_daily_bin820.fits scfile=/scratch/kocevski/406408/ft2_4FGL_J2236.4-2309_daily_bin820.fits outfile=/scratch/kocevski/406408/cmap_451872001_452131201_4FGL_J2236.4-2309_daily_bin820.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/406408/ft1_filtered_4FGL_J2236.4-2309_daily_bin820.fits scfile=/scratch/kocevski/406408/ft2_4FGL_J2236.4-2309_daily_bin820.fits outfile=/scratch/kocevski/406408/cmap_HighResolution_451872001_452131201_4FGL_J2236.4-2309_daily_bin820.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/406408/ft1_filtered_4FGL_J2236.4-2309_daily_bin820.fits evtable="EVENTS" scfile=/scratch/kocevski/406408/ft2_4FGL_J2236.4-2309_daily_bin820.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/406408/Model_4FGL_J2236.4-2309_daily_bin820.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/406408/ft1_filtered_4FGL_J2236.4-2309_daily_bin820.fits.....................!
real 56.76
user 55.47
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .67307       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .67206       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.413       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.4715       1.0000         .10000E-03   10000.    
     7 'Prefactor '    32.171       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.5752       1.0000         .10000E-03   10000.    
    10 'norm      '    1.0332       1.0000         .10000E-03   10000.    
    11 'norm      '    2.0861       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    27.560       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .84730E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.0132       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.2122       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .89572       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .79832       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=   7168.228     FROM MIGRAD    STATUS=CONVERGED    548 CALLS     2743 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .71184        7.0527        .11958        .55249E-03
   2  Prefactor     .10000E-03    80.596        .90712E-02** at limit **
   3  norm          .67200        .28048        .63397E-02    .88071E-04
   4  Prefactor     .10000E-03    7.4379        .90712E-02** at limit **
   5  Prefactor     15.414        9.7061        .25505E-02    .41267E-03
   6  Prefactor     5.4725        7.8254        .42944E-02    .15861E-03
   7  Prefactor     32.172        45.749        .17661E-02   -.90042E-03
   8  norm          .10000E-03    5.9405        .90712E-02** at limit **
   9  Prefactor     7.5760        7.0728        .36427E-02    .16752E-03
  10  norm          1.0330        .66093        .11547E-01    .24112E-03
  11  norm          2.0858        1.5612        .71466E-02    .52641E-04
  12  Prefactor     .10000E-03    20.127        .90712E-02** at limit **
  13  Prefactor     27.562        11.840        .19078E-02    .12759E-02
  14  Prefactor     .10000E-03    5.6065        .66931E-01** at limit **
  15  norm          .10000E-03    .27824        .21978E-01** at limit **
  16  norm          1.0140        1.9499        .30025E-01    .68626E-03
  17  Prefactor     .10000E-03    4.9289        .90712E-02** at limit **
  18  Prefactor     .10000E-03    2.2039        .90712E-02** at limit **
  19  Prefactor     .10000E-03    2.7785        .90712E-02** at limit **
  20  norm          .10000E-03    .10406        .90712E-02** at limit **
  21  Prefactor     6.2111        8.6250        .40266E-02    .38039E-03
  22  Prefactor     .10000E-03    2.0072        .90712E-02** at limit **
  23  Normalizat    .89558        .14576        .44847E-01   -.30017E-04
  24  Prefactor     .79837        .12628        .43695E-01   -.14679E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.711838
  Prefactor  = 0.0001
  norm       = 0.672002
  Prefactor  = 0.0001
  Prefactor  = 15.4141
  Prefactor  = 5.47247
  Prefactor  = 32.1719
  norm       = 0.0001
  Prefactor  = 7.57598
  norm       = 1.03303
  norm       = 2.08585
  Prefactor  = 0.0001
  Prefactor  = 27.562
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.01404
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.21106
  Prefactor  = 0.0001
  Normalizat = 0.895582
  Prefactor  = 0.798369
 **********
 **   18 **HESSE 
 **********

 FCN=   7168.228     FROM HESSE     STATUS=OK           407 CALLS     3150 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .71184        34.335        .43388E-02   -1.5539    
   2  Prefactor     .10000E-03    81.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .67200        .27999        .28027E-04   -1.5544    
   4  Prefactor     .10000E-03    7.6093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.414        9.7049        .10202E-03   -1.4923    
   6  Prefactor     5.4725        7.8176        .17178E-03   -1.5240    
   7  Prefactor     32.172        45.690        .70645E-04   -1.4573    
   8  norm          .10000E-03    5.9468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.5760        7.0800        .14571E-03   -1.5157    
  10  norm          1.0330        .63945        .52396E-03   -1.5505    
  11  norm          2.0858        1.5538        .88304E-04   -1.5419    
  12  Prefactor     .10000E-03    20.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     27.562        11.922        .76312E-04   -1.4657    
  14  Prefactor     .10000E-03    17.200        .37029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .38439        .83250E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.0140        1.5505        .15769E-02   -1.5507    
  17  Prefactor     .10000E-03    4.9308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.2052        .12274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.8304        .13757E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .10848        .53145E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.2111        8.5938        .16106E-03   -1.5209    
  22  Prefactor     .10000E-03    2.0148        .11711E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .89558        .17192        .22966E-03   -.96616    
  24  Prefactor     .79837        .14938        .21400E-03   -.99788    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.85169e-09
Minuit parameter uncertainties:
  1  9.89296
  2  0.000308503
  3  0.279988
  4  1.64965e-05
  5  9.70587
  6  7.81905
  7  45.7399
  8  1.42234e-05
  9  7.08078
  10  0.639453
  11  1.55384
  12  5.73668e-05
  13  11.9234
  14  7.34679e-05
  15  8.1647e-07
  16  1.55053
  17  7.51248e-06
  18  8.86024e-07
  19  2.86188e-06
  20  8.28789e-08
  21  8.59552
  22  1.76978e-07
  23  0.172026
  24  0.14946
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  7.576e+00  7.081e+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

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  7.984e-01  1.495e-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.956e-01  1.720e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.77
Ra Dec: 339.125 -23.155
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 2.67e-08 +/- 2.49e-08
Energy Flux (Fixed Index): 6.21e-06 +/- 5.81e-06

TS (Fixed Index): 1.77
Ra Dec: 339.125 -23.155
Photon Flux Upper Limit: 8.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/406408/likelihoodResults_451872001_452131201_4FGL_J2236.4-2309_daily_bin820.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) = 7168.22649492
delta logL = 0.00123433990939

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7168.22625071
delta logL = 0.00147854953138

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7325       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6950       1.0000          .0000       10.000    
     3 'Normalizat'    .89654       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79776       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=   7168.226     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      231 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7336        7.8802        .14421E-03   -.21707E-02
   2  Index         2.6954        .87487        .12387E-01   -.37741E-03
   3  Normalizat    .89650        .16660        .22955E-03    .35813E-03
   4  Prefactor     .79779        .14681        .21407E-03    .60241E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.73358
  Index      = 2.69541
  Normalizat = 0.896496
  Prefactor  = 0.797791
 **********
 **   18 **HESSE 
 **********

 FCN=   7168.226     FROM HESSE     STATUS=OK            23 CALLS      254 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.7336        7.7133        .57683E-05   -1.5152    
   2  Index         2.6954        .85639        .49549E-03   -.47903    
   3  Normalizat    .89650        .16675        .45910E-04   -.96583    
   4  Prefactor     .79779        .14691        .42814E-04   -.99810    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.44653e-09
Minuit parameter uncertainties:
  1  7.71427
  2  0.861794
  3  0.166844
  4  0.146985
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/406408': 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) = 7168.22625052
delta logL = 0.00147874291542

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  7.734e+00  7.714e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.695e+00  8.618e-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:  7.978e-01  1.470e-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.965e-01  1.668e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.76
Ra Dec: 339.125 -23.155
Photon Index (Free Index): 2.70 +/- 0.86
Photon Flux (Free Index): 2.61e-08 +/- 2.68e-08
Energy Flux (Free Index): 6.30e-06 +/- 6.08e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/406408/cmap_HighResolution_451872001_452131201_4FGL_J2236.4-2309_daily_bin820.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.60e-03', comment='SUCCESS', photon_flux='2.67e-08', energy_flux2='6.30e-06', photon_flux_error='2.49e-08', dlogl='1.48e-03', energy_flux='6.21e-06', photon_flux2='2.61e-08', job_status='DONE', time_completed='2021-09-28 17:19:21.339604', photon_index_error2='0.86', photon_index2='2.70', ts='1.77', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='8.36e-08', energy_flux_error2='6.08e-06', EG='0.90', time_epoch_completed='1632874761.34', return_code='0', job_id='406408', GAL2='0.80', EG2='0.90', return_code2='0', energy_flux_error='5.81e-06', photon_flux_error2='2.68e-08', ts2='1.76', photon_index='2.74' WHERE bin_id='820' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:19:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 406408: <4FGL_J2236.4-2309_daily_bin820> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin820> 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) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:05:49 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:49 2021
Terminated at Tue Sep 28 17:19:22 2021
Results reported at Tue Sep 28 17:19:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin820 339.125 -23.1552 451872001 452131201 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 :                                   680.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            815 sec.

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

