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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin1642
RA = 339.125, Dec = -23.1552
tmin = 664934401, tmax = 665193601
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='445080', job_status='RUN', time_executed='2022-01-30 00:39:08.354693', time_epoch_executed='1643531948.35' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1642'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/445080

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/445080/ft1_4FGL_J2236.4-2309_daily_bin1642.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/445080/ft2_4FGL_J2236.4-2309_daily_bin1642.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/445080/ft1_4FGL_J2236.4-2309_daily_bin1642.fits outfile=/scratch/kocevski/445080/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1642.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=664934401.0 tmax=665193601.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.63
user 3.40
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/445080/ft2_4FGL_J2236.4-2309_daily_bin1642.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/445080/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1642.fits evtable="EVENTS" outfile="/scratch/kocevski/445080/ft1_filtered_4FGL_J2236.4-2309_daily_bin1642.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/445080/ft1_filtered_4FGL_J2236.4-2309_daily_bin1642.fits" evtable="EVENTS" scfile=/scratch/kocevski/445080/ft2_4FGL_J2236.4-2309_daily_bin1642.fits sctable="SC_DATA" outfile=/scratch/kocevski/445080/ltcube_664934401_665193601_4FGL_J2236.4-2309_daily_bin1642.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/445080/ft2_4FGL_J2236.4-2309_daily_bin1642.fits
.....................!
real 12.05
user 11.69
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/445080/ft1_filtered_4FGL_J2236.4-2309_daily_bin1642.fits evtable="EVENTS" scfile=/scratch/kocevski/445080/ft2_4FGL_J2236.4-2309_daily_bin1642.fits sctable="SC_DATA" expcube=/scratch/kocevski/445080/ltcube_664934401_665193601_4FGL_J2236.4-2309_daily_bin1642.fits outfile=/scratch/kocevski/445080/expmap_664934401_665193601_4FGL_J2236.4-2309_daily_bin1642.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/445080/ltcube_664934401_665193601_4FGL_J2236.4-2309_daily_bin1642.fits
.....................!
real 190.41
user 185.40
sys 4.64

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/445080/ft1_filtered_4FGL_J2236.4-2309_daily_bin1642.fits scfile=/scratch/kocevski/445080/ft2_4FGL_J2236.4-2309_daily_bin1642.fits outfile=/scratch/kocevski/445080/cmap_664934401_665193601_4FGL_J2236.4-2309_daily_bin1642.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.36
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/445080/ft1_filtered_4FGL_J2236.4-2309_daily_bin1642.fits evtable="EVENTS" scfile=/scratch/kocevski/445080/ft2_4FGL_J2236.4-2309_daily_bin1642.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/445080/Model_4FGL_J2236.4-2309_daily_bin1642.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/445080/ft1_filtered_4FGL_J2236.4-2309_daily_bin1642.fits.....................!
real 39.54
user 38.24
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .70394E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    .97234E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.276       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10411E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    37.456       1.0000         .10000E-03   10000.    
     8 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.304       1.0000         .10000E-03   10000.    
    10 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    8.7964       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.2387       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.5055       1.0000         .10000E-03   10000.    
    15 'norm      '    .99372       1.0000         .10000E-03   10000.    
    16 'norm      '    .10115E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.3256       1.0000         .10000E-03   10000.    
    20 'norm      '    .75451       1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.090       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1280       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .88462       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=   4273.858     FROM MIGRAD    STATUS=CONVERGED   1013 CALLS     3622 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.184        .18142E-02** at limit **
   2  Prefactor     .10000E-03    108.31        .18735    ** at limit **
   3  norm          .96358E-01    .28376        .60574E-03   -.40724E-03
   4  Prefactor     16.276        13.113        .99276E-04    .16712E-03
   5  Prefactor     .10000E-03    6.0681        .15718E-02** at limit **
   6  Prefactor     .10000E-03    56.797        .18142E-02** at limit **
   7  Prefactor     37.396        55.134        .32743E-03    .18770E-03
   8  norm          .10000E-03    30.962        .18142E-02** at limit **
   9  Prefactor     24.306        19.214        .81254E-04    .84089E-04
  10  norm          .10000E-03    .85527        .84061E-03** at limit **
  11  norm          8.7968        4.2292        .88484E-04    .31530E-03
  12  Prefactor     .10000E-03    60.338        .18142E-02** at limit **
  13  Prefactor     6.2358        19.566        .16072E-03    .67979E-04
  14  Prefactor     5.5548        34.404        .17124E-03   -.55902E-04
  15  norm          .99053        2.0568        .69547E-03    .74737E-04
  16  norm          .10000E-03    8.8535        .24498E-02** at limit **
  17  Prefactor     .10000E-03    12.681        .18142E-02** at limit **
  18  Prefactor     .10000E-03    10.882        .18142E-02** at limit **
  19  Prefactor     2.3296        20.119        .26895E-03    .76849E-04
  20  norm          .75390        .91036        .48270E-03    .12322E-02
  21  Prefactor     13.087        13.368        .11071E-03   -.22180E-04
  22  Prefactor     .10000E-03    8.2008        .18142E-02** at limit **
  23  Normalizat    1.1275        .29738        .26012E-03    .17869E-03
  24  Prefactor     .88489        .23657        .24270E-03    .19623E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0963576
  Prefactor  = 16.2761
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 37.3964
  norm       = 0.0001
  Prefactor  = 24.3056
  norm       = 0.0001
  norm       = 8.79679
  Prefactor  = 0.0001
  Prefactor  = 6.23577
  Prefactor  = 5.55479
  norm       = 0.990534
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.32961
  norm       = 0.753896
  Prefactor  = 13.0869
  Prefactor  = 0.0001
  Normalizat = 1.12754
  Prefactor  = 0.884891
 **********
 **   18 **HESSE 
 **********

 FCN=   4273.858     FROM HESSE     STATUS=OK           387 CALLS     4009 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.185        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    122.37        .17357       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .96358E-01    .28337        .24229E-04   -1.5646    
   4  Prefactor     16.276        13.113        .19855E-04   -1.4901    
   5  Prefactor     .10000E-03    6.0683        .31437E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    56.819        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     37.396        55.133        .13097E-04   -1.4484    
   8  norm          .10000E-03    30.966        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     24.306        19.213        .32502E-05   -1.4722    
  10  norm          .10000E-03    .85664        .16812E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.7968        4.2290        .35394E-05   -1.5115    
  12  Prefactor     .10000E-03    60.341        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.2358        19.567        .64287E-05   -1.5208    
  14  Prefactor     5.5548        36.029        .68495E-05   -1.5237    
  15  norm          .99053        2.1046        .27819E-04   -1.5509    
  16  norm          .10000E-03    8.9049        .48996E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.681        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.882        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.3296        20.475        .10758E-04   -1.5403    
  20  norm          .75390        .91835        .19308E-04   -1.5534    
  21  Prefactor     13.087        13.368        .44285E-05   -1.4984    
  22  Prefactor     .10000E-03    8.2025        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1275        .29782        .52024E-04   -.88873    
  24  Prefactor     .88489        .23688        .48540E-04   -.96671    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.74989e-10
Minuit parameter uncertainties:
  1  6.60676e-06
  2  0.000865018
  3  0.283372
  4  13.1149
  5  1.04928e-06
  6  0.000342813
  7  55.2081
  8  9.58764e-05
  9  19.2177
  10  1.48971e-05
  11  4.22912
  12  0.000165523
  13  19.5867
  14  28.3183
  15  2.10473
  16  9.13086e-05
  17  2.47323e-05
  18  4.96383e-05
  19  13.8188
  20  0.918372
  21  13.3714
  22  6.57559e-05
  23  0.298266
  24  0.237159
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  2.431e+01  1.922e+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.849e-01  2.372e-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.128e+00  2.983e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.29
Ra Dec: 339.125 -23.155
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 8.56e-08 +/- 6.76e-08
Energy Flux (Fixed Index): 1.99e-05 +/- 1.58e-05

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

Saving results to:
/scratch/kocevski/445080/likelihoodResults_664934401_665193601_4FGL_J2236.4-2309_daily_bin1642.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) = 4273.0978904
delta logL = 0.759852246792

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4273.01807535
delta logL = 0.839667297607

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.126       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0791       1.0000          .0000       10.000    
     3 'Normalizat'    1.1624       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85571       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=   4273.018     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      213 TOTAL
                     EDM=   .22E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.116        21.716       -.36304E-05   -.31161E-04
   2  Index         2.0775        .44051       -.22212E-04    .97937E-05
   3  Normalizat    1.1623        .22971        .18603E-05    .93959E-04
   4  Prefactor     .85585        .19187       -.49207E-06    .14606E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.1159
  Index      = 2.07754
  Normalizat = 1.16234
  Prefactor  = 0.855847
 **********
 **   18 **HESSE 
 **********

 FCN=   4273.018     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.116        21.616        .70694E-04   -1.4574    
   2  Index         2.0775        .43810        .61619E-02   -.62425    
   3  Normalizat    1.1623        .27339        .25655E-03   -.87775    
   4  Prefactor     .85585        .22878        .24583E-03   -.97701    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26617e-10
Minuit parameter uncertainties:
  1  21.6217
  2  0.438955
  3  0.273725
  4  0.229034
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/445080': 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) = 4273.01806906
delta logL = 0.839673589084

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  8.558e-01  2.290e-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.162e+00  2.737e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.98
Ra Dec: 339.125 -23.155
Photon Index (Free Index): 2.08 +/- 0.44
Photon Flux (Free Index): 6.73e-08 +/- 5.18e-08
Energy Flux (Free Index): 3.88e-05 +/- 3.38e-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/445080/cmap_HighResolution_664934401_665193601_4FGL_J2236.4-2309_daily_bin1642.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.77e-02', comment='SUCCESS', photon_flux='8.56e-08', energy_flux2='3.88e-05', photon_flux_error='6.76e-08', dlogl='8.40e-01', energy_flux='1.99e-05', photon_flux2='6.73e-08', job_status='DONE', time_completed='2022-01-30 00:48:24.635621', photon_index_error2='0.44', photon_index2='2.08', ts='2.29', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='2.24e-07', energy_flux_error2='3.38e-05', EG='1.13', time_epoch_completed='1643532504.64', return_code='0', job_id='445080', GAL2='0.86', EG2='1.16', return_code2='0', energy_flux_error='1.58e-05', photon_flux_error2='5.18e-08', ts2='3.98', photon_index='2.74' WHERE bin_id='1642' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan 30 00:48:24 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 445080: <4FGL_J2236.4-2309_daily_bin1642> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin1642> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Jan 30 00:35:54 2022
Job was executed on host(s) <bullet0103>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan 30 00:35:56 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan 30 00:35:56 2022
Terminated at Sun Jan 30 00:48:25 2022
Results reported at Sun Jan 30 00:48:25 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1642 339.125 -23.1552 664934401 665193601 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 :                                   558.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   748 sec.
    Turnaround time :                            751 sec.

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

