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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin599
RA = 339.125, Dec = -23.1552
tmin = 394588801, tmax = 394848001
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='406074', job_status='RUN', time_executed='2021-09-28 17:09:26.607168', time_epoch_executed='1632874166.61' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='599'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/406074

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/406074/ft1_4FGL_J2236.4-2309_daily_bin599.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/406074/ft2_4FGL_J2236.4-2309_daily_bin599.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/406074/ft1_4FGL_J2236.4-2309_daily_bin599.fits outfile=/scratch/kocevski/406074/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin599.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=394588801.0 tmax=394848001.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 4.54
user 4.32
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/406074/ft2_4FGL_J2236.4-2309_daily_bin599.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/406074/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin599.fits evtable="EVENTS" outfile="/scratch/kocevski/406074/ft1_filtered_4FGL_J2236.4-2309_daily_bin599.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 1.30
user 0.31
sys 0.98

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/406074/ft1_filtered_4FGL_J2236.4-2309_daily_bin599.fits" evtable="EVENTS" scfile=/scratch/kocevski/406074/ft2_4FGL_J2236.4-2309_daily_bin599.fits sctable="SC_DATA" outfile=/scratch/kocevski/406074/ltcube_394588801_394848001_4FGL_J2236.4-2309_daily_bin599.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/406074/ft2_4FGL_J2236.4-2309_daily_bin599.fits
.....................!
real 11.63
user 11.31
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/406074/ft1_filtered_4FGL_J2236.4-2309_daily_bin599.fits evtable="EVENTS" scfile=/scratch/kocevski/406074/ft2_4FGL_J2236.4-2309_daily_bin599.fits sctable="SC_DATA" expcube=/scratch/kocevski/406074/ltcube_394588801_394848001_4FGL_J2236.4-2309_daily_bin599.fits outfile=/scratch/kocevski/406074/expmap_394588801_394848001_4FGL_J2236.4-2309_daily_bin599.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/406074/ltcube_394588801_394848001_4FGL_J2236.4-2309_daily_bin599.fits
.....................!
real 193.01
user 188.53
sys 4.16

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/406074/ft1_filtered_4FGL_J2236.4-2309_daily_bin599.fits scfile=/scratch/kocevski/406074/ft2_4FGL_J2236.4-2309_daily_bin599.fits outfile=/scratch/kocevski/406074/cmap_394588801_394848001_4FGL_J2236.4-2309_daily_bin599.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/406074/ft1_filtered_4FGL_J2236.4-2309_daily_bin599.fits scfile=/scratch/kocevski/406074/ft2_4FGL_J2236.4-2309_daily_bin599.fits outfile=/scratch/kocevski/406074/cmap_HighResolution_394588801_394848001_4FGL_J2236.4-2309_daily_bin599.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/406074/ft1_filtered_4FGL_J2236.4-2309_daily_bin599.fits evtable="EVENTS" scfile=/scratch/kocevski/406074/ft2_4FGL_J2236.4-2309_daily_bin599.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/406074/Model_4FGL_J2236.4-2309_daily_bin599.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/406074/ft1_filtered_4FGL_J2236.4-2309_daily_bin599.fits....................!
real 39.41
user 38.10
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.6089       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.7864       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    66.498       1.0000         .10000E-03   10000.    
     9 'Prefactor '    29.649       1.0000         .10000E-03   10000.    
    10 'norm      '    .48354       1.0000         .10000E-03   10000.    
    11 'norm      '    .13970E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.4820       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.5703       1.0000         .10000E-03   10000.    
    15 'norm      '    .12762E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    42.527       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .44557E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    29.914       1.0000         .10000E-03   10000.    
    20 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.669       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .85139       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0784       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=   4322.655     FROM MIGRAD    STATUS=CONVERGED    595 CALLS     2894 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.153        .27369E-06** at limit **
   2  Prefactor     .10000E-03    50.558       -.12055E-06** at limit **
   3  norm          1.6090        .56452       -.69540E-08    .20037E-04
   4  Prefactor     .10000E-03    4.6901        .42252E-07** at limit **
   5  Prefactor     .10000E-03    9.3131        .13921E-06** at limit **
   6  Prefactor     2.7863        64.176        .59019E-07    .16865E-04
   7  Prefactor     .10000E-03    23.741        .44538E-08** at limit **
   8  norm          66.511        37.613        .33905E-06    .30142E-03
   9  Prefactor     29.656        21.878       -.33850E-07    .39540E-03
  10  norm          .48322        .74300        .56250E-07    .37783E-03
  11  norm          .10000E-03    3.6101       -.25947E-05** at limit **
  12  Prefactor     7.4178        149.20        .44338E-05    .10629E-03
  13  Prefactor     .10000E-03    6.7695        .18466E-07** at limit **
  14  Prefactor     7.5755        24.568       -.73669E-08    .13502E-03
  15  norm          .10003E-03    1.2281       -.33851E-06** at limit **
  16  norm          .10000E-03    4.5200       -.20899E-06** at limit **
  17  Prefactor     42.511        48.190       -.16437E-06    .11915E-03
  18  Prefactor     .10423E-03    27.131       -.36640E-06** at limit **
  19  Prefactor     29.939        14.994       -.93306E-06    .23774E-03
  20  norm          .10000E-03    .66711       -.79883E-08** at limit **
  21  Prefactor     .10000E-03    15.787        .14825E-06** at limit **
  22  Prefactor     12.671        16.016        .64284E-06    .44841E-03
  23  Normalizat    .85109        .26087        .20725E-05    .32159E-03
  24  Prefactor     1.0787        .21030       -.14261E-05    .39637E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.60897
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.78631
  Prefactor  = 0.0001
  norm       = 66.5114
  Prefactor  = 29.6561
  norm       = 0.483218
  norm       = 0.0001
  Prefactor  = 7.41775
  Prefactor  = 0.0001
  Prefactor  = 7.5755
  norm       = 0.000100028
  norm       = 0.0001
  Prefactor  = 42.5114
  Prefactor  = 0.000104233
  Prefactor  = 29.9387
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 12.6706
  Normalizat = 0.851087
  Prefactor  = 1.07867
 **********
 **   18 **HESSE 
 **********

 FCN=   4322.655     FROM HESSE     STATUS=OK           403 CALLS     3297 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    50.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.6090        .56685        .28340E-04   -1.5454    
   4  Prefactor     .10000E-03    4.6951        .13904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.3427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.7863        64.094        .24376E-03   -1.5374    
   7  Prefactor     .10000E-03    23.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          66.511        37.726        .49217E-04   -1.4075    
   9  Prefactor     29.656        21.953        .73580E-04   -1.4618    
  10  norm          .48322        .68911        .67366E-03   -1.5569    
  11  norm          .10000E-03    3.8977        .18470E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.4178        157.80        .14662E-03   -1.5163    
  13  Prefactor     .10000E-03    6.7823        .16707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.5755        22.043        .14576E-03   -1.5157    
  15  norm          .10003E-03    10.706        .10507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.5583        .13583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     42.511        46.887        .61473E-04   -1.4403    
  18  Prefactor     .10423E-03    43.667        .81405E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     29.939        18.383        .73255E-04   -1.4613    
  20  norm          .10000E-03    2.2216        .91231E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.211        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     12.671        16.254        .11254E-03   -1.4996    
  23  Normalizat    .85109        .30733        .29850E-03   -.98201    
  24  Prefactor     1.0787        .24762        .22666E-03   -.90151    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.44433e-09
Minuit parameter uncertainties:
  1  7.48581e-05
  2  0.000107313
  3  0.566852
  4  3.3755e-06
  5  2.24182e-05
  6  26.7591
  7  1.06022e-05
  8  37.7395
  9  21.9594
  10  0.689124
  11  4.8599e-05
  12  68.6332
  13  1.18456e-06
  14  22.0662
  15  0.0010879
  16  1.6884e-06
  17  46.9272
  18  0.0272124
  19  18.3868
  20  0.000100303
  21  1.43559e-05
  22  16.2602
  23  0.307959
  24  0.24788
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  2.966e+01  2.196e+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:  1.079e+00  2.479e-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.511e-01  3.080e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.51
Ra Dec: 339.125 -23.155
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 1.04e-07 +/- 7.72e-08
Energy Flux (Fixed Index): 2.43e-05 +/- 1.80e-05

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

Saving results to:
/scratch/kocevski/406074/likelihoodResults_394588801_394848001_4FGL_J2236.4-2309_daily_bin599.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) = 4322.50954397
delta logL = 0.145638202844

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4322.5011529
delta logL = 0.154029269998

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.367       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1352       1.0000          .0000       10.000    
     3 'Normalizat'    .81659       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0997       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=   4322.501     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      258 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.420        362.43        .19884E-02   -.13782E-03
   2  Index         3.1377        6.5439        .17593       -.11978E-05
   3  Normalizat    .81590        .10773        .68741E-01   -.69957E-04
   4  Prefactor     1.0999        .92421E-01    .37598E-01   -.12880E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.4199
  Index      = 3.13766
  Normalizat = 0.815901
  Prefactor  = 1.09989
 **********
 **   18 **HESSE 
 **********

 FCN=   4322.501     FROM HESSE     STATUS=OK            31 CALLS      289 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.420        21.103        .79535E-04   -1.4699    
   2  Index         3.1377        .77228        .67578E-02   -.38167    
   3  Normalizat    .81590        .29828        .30415E-03   -.99482    
   4  Prefactor     1.0999        .24637        .22474E-03   -.89470    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.82833e-11
Minuit parameter uncertainties:
  1  21.1096
  2  0.775887
  3  0.298883
  4  0.246623
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/406074': 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) = 4322.50113006
delta logL = 0.154052107245

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  2.542e+01  2.111e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  3.138e+00  7.759e-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:  1.100e+00  2.466e-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.159e-01  2.989e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.89
Ra Dec: 339.125 -23.155
Photon Index (Free Index): 3.14 +/- 0.78
Photon Flux (Free Index): 1.32e-07 +/- 9.16e-08
Energy Flux (Free Index): 2.48e-05 +/- 1.59e-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/406074/cmap_HighResolution_394588801_394848001_4FGL_J2236.4-2309_daily_bin599.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.96e-02', comment='SUCCESS', photon_flux='1.04e-07', energy_flux2='2.48e-05', photon_flux_error='7.72e-08', dlogl='1.54e-01', energy_flux='2.43e-05', photon_flux2='1.32e-07', job_status='DONE', time_completed='2021-09-28 17:18:25.594515', photon_index_error2='0.78', photon_index2='3.14', ts='3.51', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='2.49e-07', energy_flux_error2='1.59e-05', EG='0.85', time_epoch_completed='1632874705.59', return_code='0', job_id='406074', GAL2='1.10', EG2='0.82', return_code2='0', energy_flux_error='1.80e-05', photon_flux_error2='9.16e-08', ts2='3.89', photon_index='2.74' WHERE bin_id='599' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:18:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 406074: <4FGL_J2236.4-2309_daily_bin599> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin599> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 17:05:22 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:05:23 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:23 2021
Terminated at Tue Sep 28 17:18:26 2021
Results reported at Tue Sep 28 17:18:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin599 339.125 -23.1552 394588801 394848001 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 :                                   540.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   782 sec.
    Turnaround time :                            784 sec.

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

