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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin365
RA = 339.125, Dec = -23.1552
tmin = 333936001, tmax = 334195201
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='404500', job_status='RUN', time_executed='2021-09-28 17:04:18.077978', time_epoch_executed='1632873858.08' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='365'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/404500

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/404500/ft1_4FGL_J2236.4-2309_daily_bin365.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/404500/ft2_4FGL_J2236.4-2309_daily_bin365.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/404500/ft1_4FGL_J2236.4-2309_daily_bin365.fits outfile=/scratch/kocevski/404500/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin365.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=333936001.0 tmax=334195201.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.61
user 3.36
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/404500/ft1_filtered_4FGL_J2236.4-2309_daily_bin365.fits" evtable="EVENTS" scfile=/scratch/kocevski/404500/ft2_4FGL_J2236.4-2309_daily_bin365.fits sctable="SC_DATA" outfile=/scratch/kocevski/404500/ltcube_333936001_334195201_4FGL_J2236.4-2309_daily_bin365.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/404500/ft2_4FGL_J2236.4-2309_daily_bin365.fits
.....................!
real 11.97
user 11.61
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/404500/ft1_filtered_4FGL_J2236.4-2309_daily_bin365.fits evtable="EVENTS" scfile=/scratch/kocevski/404500/ft2_4FGL_J2236.4-2309_daily_bin365.fits sctable="SC_DATA" expcube=/scratch/kocevski/404500/ltcube_333936001_334195201_4FGL_J2236.4-2309_daily_bin365.fits outfile=/scratch/kocevski/404500/expmap_333936001_334195201_4FGL_J2236.4-2309_daily_bin365.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/404500/ltcube_333936001_334195201_4FGL_J2236.4-2309_daily_bin365.fits
.....................!
real 190.31
user 185.42
sys 4.58

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/404500/ft1_filtered_4FGL_J2236.4-2309_daily_bin365.fits scfile=/scratch/kocevski/404500/ft2_4FGL_J2236.4-2309_daily_bin365.fits outfile=/scratch/kocevski/404500/cmap_333936001_334195201_4FGL_J2236.4-2309_daily_bin365.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/404500/ft1_filtered_4FGL_J2236.4-2309_daily_bin365.fits scfile=/scratch/kocevski/404500/ft2_4FGL_J2236.4-2309_daily_bin365.fits outfile=/scratch/kocevski/404500/cmap_HighResolution_333936001_334195201_4FGL_J2236.4-2309_daily_bin365.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/404500/ft1_filtered_4FGL_J2236.4-2309_daily_bin365.fits evtable="EVENTS" scfile=/scratch/kocevski/404500/ft2_4FGL_J2236.4-2309_daily_bin365.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/404500/Model_4FGL_J2236.4-2309_daily_bin365.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/404500/ft1_filtered_4FGL_J2236.4-2309_daily_bin365.fits.....................!
real 48.95
user 47.62
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.5707       1.0000         .10000E-03   10000.    
     2 'Prefactor '    32.413       1.0000         .10000E-03   10000.    
     3 'norm      '    1.1267       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10281E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.6256       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .32700E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    21.429       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.358       1.0000         .10000E-03   10000.    
    10 'norm      '    2.0412       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11128E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.8732       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    27.897       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10307E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.348       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5080       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .62600       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=   5538.558     FROM MIGRAD    STATUS=CONVERGED    534 CALLS     3343 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.5150        97.582       -.45033E-05   -.36693E-04
   2  Prefactor     32.346        132.95        .33680E-05   -.40634E-04
   3  norm          1.1266        .37456       -.30140E-08    .17500E-04
   4  Prefactor     .10000E-03    4.0988       -.11859E-06** at limit **
   5  Prefactor     .10000E-03    13.930        .13259E-06** at limit **
   6  Prefactor     7.6264        16.269        .28184E-05   -.24261E-04
   7  Prefactor     .10001E-03    392.07       -.14970E-04** at limit **
   8  norm          21.430        20.664       -.10723E-06   -.11024E-04
   9  Prefactor     10.364        16.318       -.55092E-06   -.41536E-04
  10  norm          2.0416        1.1085       -.45966E-07    .69925E-03
  11  norm          .10000E-03    .92883       -.43243E-07** at limit **
  12  Prefactor     .10000E-03    97.836        .11778E-06** at limit **
  13  Prefactor     .10000E-03    8.2348        .65900E-07** at limit **
  14  Prefactor     8.8756        10.512        .12479E-05    .48672E-03
  15  norm          .10000E-03    .58909       -.67383E-06** at limit **
  16  norm          27.897        7.3427        .10965E-07    .35056E-06
  17  Prefactor     .10000E-03    11.548       -.46312E-06** at limit **
  18  Prefactor     14.350        10.455       -.12552E-06   -.38638E-04
  19  Prefactor     .10000E-03    2.1721       -.52257E-08** at limit **
  20  norm          .10000E-03    .20904        .23200E-07** at limit **
  21  Prefactor     .10000E-03    10.864        .49891E-06** at limit **
  22  Prefactor     .10000E-03    5.1941        .27225E-07** at limit **
  23  Normalizat    1.5081        .21113        .56399E-06    .13103E-03
  24  Prefactor     .62601        .17220       -.94366E-06    .18106E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.51499
  Prefactor  = 32.3462
  norm       = 1.12664
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.62635
  Prefactor  = 0.000100013
  norm       = 21.4297
  Prefactor  = 10.3637
  norm       = 2.04162
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.87564
  norm       = 0.0001
  norm       = 27.897
  Prefactor  = 0.0001
  Prefactor  = 14.35
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.50806
  Prefactor  = 0.626013
 **********
 **   18 **HESSE 
 **********

 FCN=   5538.558     FROM HESSE     STATUS=OK           395 CALLS     3738 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.5150        87.129        .14575E-03   -1.5160    
   2  Prefactor     32.346        123.99        .70382E-04   -1.4570    
   3  norm          1.1266        .37572        .25500E-04   -1.5496    
   4  Prefactor     .10000E-03    4.1322        .14715E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.6264        16.080        .72611E-03   -1.5156    
   7  Prefactor     .10001E-03    404.67        .42706E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          21.430        20.666        .86526E-04   -1.4782    
   9  Prefactor     10.364        16.410        .12450E-03   -1.5064    
  10  norm          2.0416        1.1035        .54940E-04   -1.5422    
  11  norm          .10000E-03    .93316        .70002E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    98.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.2787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.8756        10.539        .13456E-03   -1.5112    
  15  norm          .10000E-03    .88858        .10014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          27.897        7.3268        .75850E-04   -1.4651    
  17  Prefactor     .10000E-03    11.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.350        10.441        .10574E-03   -1.4950    
  19  Prefactor     .10000E-03    2.1743        .10709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .26373        .65922E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.2137        .16559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.5081        .25132        .23708E-03   -.77552    
  24  Prefactor     .62601        .20219        .28835E-03   -1.0650    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.0179e-10
Minuit parameter uncertainties:
  1  51.2707
  2  125.002
  3  0.375719
  4  3.41998e-06
  5  3.71705e-06
  6  16.0893
  7  0.00462043
  8  20.6726
  9  16.4172
  10  1.10353
  11  6.45657e-07
  12  0.000261866
  13  4.14221e-06
  14  10.5411
  15  2.51466e-05
  16  7.32703
  17  3.15279e-05
  18  10.442
  19  7.07628e-08
  20  1.22593e-07
  21  3.63857e-05
  22  6.74599e-07
  23  0.251524
  24  0.202422
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.036e+01  1.642e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.743e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
249        Scale:  4.484e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  6.260e-01  2.024e-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.508e+00  2.515e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/404500/likelihoodResults_333936001_334195201_4FGL_J2236.4-2309_daily_bin365.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) = 5538.51789935
delta logL = 0.0399819698796

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5538.51533718
delta logL = 0.0425441433554

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.203       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3631       1.0000          .0000       10.000    
     3 'Normalizat'    1.5217       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61685       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=   5538.515     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      225 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.185        29.528        .29923E-02    .29141E-04
   2  Index         2.3615        1.5063        .24048       -.23459E-04
   3  Normalizat    1.5217        .20887        .53422E-01   -.46132E-05
   4  Prefactor     .61687        .17361        .65596E-01    .11437E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.1846
  Index      = 2.36153
  Normalizat = 1.52172
  Prefactor  = 0.616874
 **********
 **   18 **HESSE 
 **********

 FCN=   5538.515     FROM HESSE     STATUS=OK            33 CALLS      258 TOTAL
                     EDM=   .94E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.185        16.905        .11969E-03   -1.5039    
   2  Index         2.3615        1.1289        .14685E-01   -.55588    
   3  Normalizat    1.5217        .24784        .23619E-03   -.77170    
   4  Prefactor     .61687        .20158        .29026E-03   -1.0688    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.43048e-12
Minuit parameter uncertainties:
  1  16.9124
  2  1.14261
  3  0.248038
  4  0.20182
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/404500': 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) = 5538.51533579
delta logL = 0.0425455351915

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.118e+01  1.691e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.362e+00  1.143e+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:  6.169e-01  2.018e-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.522e+00  2.480e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.48
Ra Dec: 339.125 -23.155

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/404500/cmap_HighResolution_333936001_334195201_4FGL_J2236.4-2309_daily_bin365.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.26e-02', job_status='DONE', photon_flux_upper_limit='1.60e-07', time_completed='2021-09-28 17:14:43.636698', job_id='404500', GAL2='0.62', fit_tolerance='1e-08', EG2='1.52', EG='1.51', time_epoch_completed='1632874483.64', return_code2='0', ts='0.48', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='4.25e-02', ts2='0.56', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='365' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:14:43 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin365 339.125 -23.1552 333936001 334195201 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 :                                   626.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             276.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   855 sec.
    Turnaround time :                            858 sec.

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

