/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 52 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_bin250
RA = 339.125, Dec = -23.1552
tmin = 304128001, tmax = 304387201
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='404325', job_status='RUN', time_executed='2021-09-28 17:01:14.567504', time_epoch_executed='1632873674.57' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='250'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/404325

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/404325/ft1_4FGL_J2236.4-2309_daily_bin250.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/404325/ft2_4FGL_J2236.4-2309_daily_bin250.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/404325/ft1_4FGL_J2236.4-2309_daily_bin250.fits outfile=/scratch/kocevski/404325/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin250.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=304128001.0 tmax=304387201.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.43
user 3.19
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/404325/ft1_filtered_4FGL_J2236.4-2309_daily_bin250.fits" evtable="EVENTS" scfile=/scratch/kocevski/404325/ft2_4FGL_J2236.4-2309_daily_bin250.fits sctable="SC_DATA" outfile=/scratch/kocevski/404325/ltcube_304128001_304387201_4FGL_J2236.4-2309_daily_bin250.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/404325/ft2_4FGL_J2236.4-2309_daily_bin250.fits
.....................!
real 12.24
user 11.86
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/404325/ft1_filtered_4FGL_J2236.4-2309_daily_bin250.fits evtable="EVENTS" scfile=/scratch/kocevski/404325/ft2_4FGL_J2236.4-2309_daily_bin250.fits sctable="SC_DATA" expcube=/scratch/kocevski/404325/ltcube_304128001_304387201_4FGL_J2236.4-2309_daily_bin250.fits outfile=/scratch/kocevski/404325/expmap_304128001_304387201_4FGL_J2236.4-2309_daily_bin250.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/404325/ltcube_304128001_304387201_4FGL_J2236.4-2309_daily_bin250.fits
.....................!
real 190.94
user 185.46
sys 5.13

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/404325/ft1_filtered_4FGL_J2236.4-2309_daily_bin250.fits scfile=/scratch/kocevski/404325/ft2_4FGL_J2236.4-2309_daily_bin250.fits outfile=/scratch/kocevski/404325/cmap_304128001_304387201_4FGL_J2236.4-2309_daily_bin250.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/404325/ft1_filtered_4FGL_J2236.4-2309_daily_bin250.fits scfile=/scratch/kocevski/404325/ft2_4FGL_J2236.4-2309_daily_bin250.fits outfile=/scratch/kocevski/404325/cmap_HighResolution_304128001_304387201_4FGL_J2236.4-2309_daily_bin250.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.53
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/404325/ft1_filtered_4FGL_J2236.4-2309_daily_bin250.fits evtable="EVENTS" scfile=/scratch/kocevski/404325/ft2_4FGL_J2236.4-2309_daily_bin250.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/404325/Model_4FGL_J2236.4-2309_daily_bin250.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/404325/ft1_filtered_4FGL_J2236.4-2309_daily_bin250.fits.....................!
real 52.10
user 50.64
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16860E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    41.040       1.0000         .10000E-03   10000.    
     3 'norm      '    1.4331       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.0666       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .19138E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .50969E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.5901       1.0000         .10000E-03   10000.    
     8 'norm      '    23.303       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.2980       1.0000         .10000E-03   10000.    
    10 'norm      '    1.8748       1.0000         .10000E-03   10000.    
    11 'norm      '    1.7654       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.703       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.6333       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.9721       1.0000         .10000E-03   10000.    
    15 'norm      '    .43927E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10539E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.3834       1.0000         .10000E-03   10000.    
    20 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10953E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0853       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .80703       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=   6277.329     FROM MIGRAD    STATUS=CONVERGED    604 CALLS     2866 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.650        .49743E-05** at limit **
   2  Prefactor     40.918        40.776       -.11517E-05   -.51169E-04
   3  norm          1.4331        .38712        .24640E-07   -.23341E-03
   4  Prefactor     7.0761        5.7961        .10241E-06   -.12363E-04
   5  Prefactor     .10000E-03    19.443        .34133E-06** at limit **
   6  Prefactor     .10000E-03    13.829        .27176E-06** at limit **
   7  Prefactor     4.4681        85.443       -.50888E-05    .12566E-04
   8  norm          23.226        20.256       -.94187E-06    .12308E-03
   9  Prefactor     9.2413        10.787       -.45582E-06    .59784E-04
  10  norm          1.8764        .93248       -.11521E-07    .20487E-03
  11  norm          1.7640        2.9877       -.19729E-05   -.44786E-03
  12  Prefactor     16.801        45.609        .10537E-04    .38435E-04
  13  Prefactor     5.6121        10.135       -.33675E-06   -.14890E-04
  14  Prefactor     9.6347        23.940        .56427E-05    .15304E-03
  15  norm          .65224E-01    10.485       -.64862E-05   -.13483E-03
  16  norm          .10000E-03    1.1308        .49479E-07** at limit **
  17  Prefactor     .10067E-03    39.806       -.10183E-04** at limit **
  18  Prefactor     .10000E-03    4.3474       -.22337E-07** at limit **
  19  Prefactor     9.3713        7.2950       -.50550E-06   -.45539E-03
  20  norm          .10000E-03    .32291        .11169E-06** at limit **
  21  Prefactor     .10000E-03    2.5385       -.22067E-07** at limit **
  22  Prefactor     .10000E-03    15.156       -.65999E-06** at limit **
  23  Normalizat    1.0858        .19271        .58927E-06   -.15787E-03
  24  Prefactor     .80689        .16240       -.68477E-06    .15993E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 40.9178
  norm       = 1.43309
  Prefactor  = 7.07607
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.46813
  norm       = 23.226
  Prefactor  = 9.24128
  norm       = 1.87644
  norm       = 1.76398
  Prefactor  = 16.8006
  Prefactor  = 5.61209
  Prefactor  = 9.63466
  norm       = 0.0652242
  norm       = 0.0001
  Prefactor  = 0.000100672
  Prefactor  = 0.0001
  Prefactor  = 9.37132
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.08581
  Prefactor  = 0.80689
 **********
 **   18 **HESSE 
 **********

 FCN=   6277.329     FROM HESSE     STATUS=OK           409 CALLS     3275 TOTAL
                     EDM=   .68E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     40.918        40.693        .62572E-04   -1.4428    
   3  norm          1.4331        .38821        .24861E-04   -1.5469    
   4  Prefactor     7.0761        5.7991        .15091E-03   -1.5176    
   5  Prefactor     .10000E-03    19.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.937        .21148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.4681        85.686        .18788E-03   -1.5285    
   8  norm          23.226        20.071        .82978E-04   -1.4744    
   9  Prefactor     9.2413        10.811        .13143E-03   -1.5100    
  10  norm          1.8764        1.0494        .51013E-04   -1.5434    
  11  norm          1.7640        2.9967        .13906E-03   -1.5442    
  12  Prefactor     16.801        46.286        .97998E-04   -1.4888    
  13  Prefactor     5.6121        10.288        .16925E-03   -1.5234    
  14  Prefactor     9.6347        472.45        .12689E-03   -1.5087    
  15  norm          .65224E-01    337.84        .12417E-02   -1.5657    
  16  norm          .10000E-03    1.1371        .82191E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10067E-03    136.67        .63202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.3502        .16120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.3713        6.3339        .13083E-03   -1.5096    
  20  norm          .10000E-03    3.7017        .73260E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.5402        .12328E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    15.584        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0858        .27266        .23657E-03   -.90209    
  24  Prefactor     .80689        .21277        .23769E-03   -.99475    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.79455e-06
Minuit parameter uncertainties:
  1  0.00013674
  2  40.7205
  3  0.388215
  4  5.79954
  5  4.03201e-05
  6  1.69892e-05
  7  39.1979
  8  20.0764
  9  10.8137
  10  1.04945
  11  2.99693
  12  46.385
  13  10.2911
  14  136.088
  15  9.43482
  16  3.92873e-06
  17  0.0192079
  18  8.88207e-06
  19  6.33436
  20  1.83338e-05
  21  5.21584e-07
  22  1.56538e-05
  23  0.273017
  24  0.212989
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  9.241e+00  1.081e+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.069e-01  2.130e-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.086e+00  2.730e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.06
Ra Dec: 339.125 -23.155
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 3.25e-08 +/- 3.80e-08
Energy Flux (Fixed Index): 7.58e-06 +/- 8.87e-06

TS (Fixed Index): 1.06
Ra Dec: 339.125 -23.155
Photon Flux Upper Limit: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.05e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/404325/likelihoodResults_304128001_304387201_4FGL_J2236.4-2309_daily_bin250.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) = 6277.31182501
delta logL = 0.0173565851082

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6277.30802458
delta logL = 0.0211570188976

Fit tolerance = 1e-08

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

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

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3319        11.463        .13888E-03    .91111E-03
   2  Index         2.9411        1.0492        .11929E-01    .17363E-03
   3  Normalizat    1.0814        .20876        .23700E-03   -.32064E-03
   4  Prefactor     .80980        .18178        .23730E-03   -.28864E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.33186
  Index      = 2.9411
  Normalizat = 1.08138
  Prefactor  = 0.809804
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.3319        10.922        .55551E-05   -1.5131    
   2  Index         2.9411       1.00000        .47715E-03   -.42441    
   3  Normalizat    1.0814        .20901        .47400E-04   -.90352    
   4  Prefactor     .80980        .18193        .47461E-04   -.99368    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47114e-09
Minuit parameter uncertainties:
  1  10.925
  2  1.0082
  3  0.20917
  4  0.182061
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/404325': 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) = 6277.30802448
delta logL = 0.0211571170403

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  8.332e+00  1.093e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.941e+00  1.008e+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:  8.098e-01  1.821e-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.081e+00  2.092e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.11
Ra Dec: 339.125 -23.155
Photon Index (Free Index): 2.94 +/- 1.01
Photon Flux (Free Index): 3.55e-08 +/- 4.09e-08
Energy Flux (Free Index): 7.30e-06 +/- 8.32e-06

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/404325/cmap_HighResolution_304128001_304387201_4FGL_J2236.4-2309_daily_bin250.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.05e-03', comment='SUCCESS', photon_flux='3.25e-08', energy_flux2='7.30e-06', photon_flux_error='3.80e-08', dlogl='2.12e-02', energy_flux='7.58e-06', photon_flux2='3.55e-08', job_status='DONE', time_completed='2021-09-28 17:12:09.258349', photon_index_error2='1.01', photon_index2='2.94', ts='1.06', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='8.32e-06', EG='1.09', time_epoch_completed='1632874329.26', return_code='0', job_id='404325', GAL2='0.81', EG2='1.08', return_code2='0', energy_flux_error='8.87e-06', photon_flux_error2='4.09e-08', ts2='1.11', photon_index='2.74' WHERE bin_id='250' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:12:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 404325: <4FGL_J2236.4-2309_daily_bin250> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin250 339.125 -23.1552 304128001 304387201 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 :                                   654.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             362.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   716 sec.
    Turnaround time :                            718 sec.

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

