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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin402
RA = 339.125, Dec = -23.1552
tmin = 343526401, tmax = 343785601
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='404553', job_status='RUN', time_executed='2021-09-28 17:01:52.413383', time_epoch_executed='1632873712.41' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='402'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/404553

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/404553/ft1_4FGL_J2236.4-2309_daily_bin402.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/404553/ft2_4FGL_J2236.4-2309_daily_bin402.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/404553/ft1_4FGL_J2236.4-2309_daily_bin402.fits outfile=/scratch/kocevski/404553/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin402.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=343526401.0 tmax=343785601.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.42
user 3.21
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/404553/ft2_4FGL_J2236.4-2309_daily_bin402.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/404553/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin402.fits evtable="EVENTS" outfile="/scratch/kocevski/404553/ft1_filtered_4FGL_J2236.4-2309_daily_bin402.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.52
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/404553/ft1_filtered_4FGL_J2236.4-2309_daily_bin402.fits" evtable="EVENTS" scfile=/scratch/kocevski/404553/ft2_4FGL_J2236.4-2309_daily_bin402.fits sctable="SC_DATA" outfile=/scratch/kocevski/404553/ltcube_343526401_343785601_4FGL_J2236.4-2309_daily_bin402.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/404553/ft2_4FGL_J2236.4-2309_daily_bin402.fits
.....................!
real 12.42
user 12.05
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/404553/ft1_filtered_4FGL_J2236.4-2309_daily_bin402.fits evtable="EVENTS" scfile=/scratch/kocevski/404553/ft2_4FGL_J2236.4-2309_daily_bin402.fits sctable="SC_DATA" expcube=/scratch/kocevski/404553/ltcube_343526401_343785601_4FGL_J2236.4-2309_daily_bin402.fits outfile=/scratch/kocevski/404553/expmap_343526401_343785601_4FGL_J2236.4-2309_daily_bin402.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/404553/ltcube_343526401_343785601_4FGL_J2236.4-2309_daily_bin402.fits
.....................!
real 190.10
user 184.71
sys 4.95

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/404553/ft1_filtered_4FGL_J2236.4-2309_daily_bin402.fits scfile=/scratch/kocevski/404553/ft2_4FGL_J2236.4-2309_daily_bin402.fits outfile=/scratch/kocevski/404553/cmap_343526401_343785601_4FGL_J2236.4-2309_daily_bin402.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.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/404553/ft1_filtered_4FGL_J2236.4-2309_daily_bin402.fits evtable="EVENTS" scfile=/scratch/kocevski/404553/ft2_4FGL_J2236.4-2309_daily_bin402.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/404553/Model_4FGL_J2236.4-2309_daily_bin402.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/404553/ft1_filtered_4FGL_J2236.4-2309_daily_bin402.fits.....................!
real 47.39
user 46.03
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    131.31       1.0000         .10000E-03   10000.    
     3 'norm      '    .59664       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11403E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.7581       1.0000         .10000E-03   10000.    
     8 'norm      '    10.702       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.785       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    115.40       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .41413E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    .73193E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    25.643       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .22212E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.0453       1.0000         .10000E-03   10000.    
    20 'norm      '    .72392       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.2861       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2358       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1367       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=   5250.655     FROM MIGRAD    STATUS=CONVERGED    593 CALLS     3432 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.422       -.31719E-07** at limit **
   2  Prefactor     131.32        86.215        .21868E-06   -.11847E-04
   3  norm          .59662        .39213        .90030E-08    .89713E-04
   4  Prefactor     .10000E-03    6.1160        .11555E-07** at limit **
   5  Prefactor     .10000E-03    39.319       -.73118E-06** at limit **
   6  Prefactor     .10000E-03    48.548        .77990E-06** at limit **
   7  Prefactor     2.7910        277.14       -.28768E-04   -.48666E-04
   8  norm          10.701        37.940        .21264E-05    .29920E-04
   9  Prefactor     14.788        24.099        .24899E-06   -.23862E-04
  10  norm          .10000E-03    .29392       -.89493E-07** at limit **
  11  norm          .10000E-03    2.4394        .42706E-07** at limit **
  12  Prefactor     115.37        95.362        .12445E-05    .87813E-06
  13  Prefactor     .10000E-03    19.224        .82316E-06** at limit **
  14  Prefactor     .10005E-03    17.543        .17088E-05** at limit **
  15  norm          .70131E-01    1.0325        .29980E-06   -.22569E-04
  16  norm          25.644        9.6835       -.86561E-07    .11857E-03
  17  Prefactor     .20392E-03    54.465       -.62644E-05** at limit **
  18  Prefactor     .10000E-03    23.108        .35938E-06** at limit **
  19  Prefactor     4.0570        25.857       -.34439E-05    .70809E-04
  20  norm          .72293        1.2178        .12841E-05    .67359E-03
  21  Prefactor     7.2898        13.889        .26438E-05   -.38021E-04
  22  Prefactor     .10000E-03    7.5225        .61224E-06** at limit **
  23  Normalizat    1.2357        .27256       -.43531E-05    .16015E-03
  24  Prefactor     1.1369        .21518        .29724E-05   -.14649E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 131.325
  norm       = 0.596622
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.79097
  norm       = 10.7012
  Prefactor  = 14.7883
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 115.368
  Prefactor  = 0.0001
  Prefactor  = 0.00010005
  norm       = 0.0701305
  norm       = 25.6436
  Prefactor  = 0.000203917
  Prefactor  = 0.000100001
  Prefactor  = 4.05702
  norm       = 0.722928
  Prefactor  = 7.28976
  Prefactor  = 0.0001
  Normalizat = 1.23566
  Prefactor  = 1.13692
 **********
 **   18 **HESSE 
 **********

 FCN=   5250.655     FROM HESSE     STATUS=OK           409 CALLS     3841 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     131.32        86.044        .35138E-04   -1.3411    
   3  norm          .59662        .38241        .35547E-04   -1.5553    
   4  Prefactor     .10000E-03    6.1368        .17500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    40.448        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    49.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.7910        292.59        .24510E-03   -1.5374    
   8  norm          10.701        37.892        .12247E-03   -1.5054    
   9  Prefactor     14.788        24.101        .10417E-03   -1.4939    
  10  norm          .10000E-03    .29867        .38301E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.4716        .21910E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     115.37        94.173        .37453E-04   -1.3556    
  13  Prefactor     .10000E-03    19.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10005E-03    180.01        .46089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .70131E-01    7.5989        .11234E-02   -1.5655    
  16  norm          25.644        9.6206        .79107E-04   -1.4695    
  17  Prefactor     .20392E-03    77.261        .11573       -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    23.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.0570        25.709        .20048E-03   -1.5305    
  20  norm          .72293        1.2206        .73494E-03   -1.5538    
  21  Prefactor     7.2898        13.892        .74297E-03   -1.5168    
  22  Prefactor     .10000E-03    7.5213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2357        .32966        .29588E-03   -.85508    
  24  Prefactor     1.1369        .26289        .25700E-03   -.88295    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77872e-08
Minuit parameter uncertainties:
  1  2.74688e-06
  2  86.1266
  3  0.382409
  4  4.15038e-06
  5  0.000116728
  6  0.000163944
  7  57.4428
  8  37.9772
  9  24.1168
  10  1.65458e-06
  11  1.60575e-05
  12  94.2956
  13  1.26382e-05
  14  0.00602355
  15  1.45917
  16  9.62123
  17  0.179438
  18  0.000234083
  19  20.4383
  20  1.22065
  21  13.8978
  22  2.54158e-05
  23  0.330219
  24  0.26319
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.479e+01  2.412e+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.137e+00  2.632e-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.236e+00  3.302e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/404553/likelihoodResults_343526401_343785601_4FGL_J2236.4-2309_daily_bin402.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) = 5250.31198932
delta logL = 0.342746194818

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5250.31159733
delta logL = 0.343138176618

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.0634       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0220       1.0000          .0000       10.000    
     3 'Normalizat'    1.1613       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1823       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5250.312     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      294 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.0753        66.099        .70597E-03   -.27505E-03
   2  Index         4.0209        4.0697        .84033E-02   -.42503E-04
   3  Normalizat    1.1613        .31752        .30363E-03    .16100E-05
   4  Prefactor     1.1823        .26099        .25266E-03   -.91793E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.0753
  Index      = 4.02088
  Normalizat = 1.16127
  Prefactor  = 1.18232
 **********
 **   18 **HESSE 
 **********

 FCN=   5250.312     FROM HESSE     STATUS=OK            25 CALLS      319 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.0753        17.395        .28239E-04   -1.5140    
   2  Index         4.0209        1.7617        .33613E-03   -.19710    
   3  Normalizat    1.1613        .31765        .12145E-04   -.87808    
   4  Prefactor     1.1823        .25791        .10106E-04   -.86877    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.91066e-11
Minuit parameter uncertainties:
  1  17.4054
  2  1.80202
  3  0.318179
  4  0.258184
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/404553': 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) = 5250.31159709
delta logL = 0.343138420885

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  8.075e+00  1.741e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  4.021e+00  1.802e+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:  1.182e+00  2.582e-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.161e+00  3.182e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.36
Ra Dec: 339.125 -23.155
Photon Index (Free Index): 4.02 +/- 1.80
Photon Flux (Free Index): 1.12e-07 +/- 1.12e-07
Energy Flux (Free Index): 1.67e-05 +/- 1.65e-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/404553/cmap_HighResolution_343526401_343785601_4FGL_J2236.4-2309_daily_bin402.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.69e-02', comment='SUCCESS', energy_flux2='1.67e-05', dlogl='3.43e-01', photon_flux2='1.12e-07', job_status='DONE', time_completed='2021-09-28 17:12:13.915409', photon_index_error2='1.80', photon_index2='4.02', ts='0.55', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='2.15e-07', energy_flux_error2='1.65e-05', EG='1.24', time_epoch_completed='1632874333.92', return_code='0', job_id='404553', GAL2='1.18', EG2='1.16', return_code2='0', photon_flux_error2='1.12e-07', ts2='1.36', photon_index='2.74' WHERE bin_id='402' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:12:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 404553: <4FGL_J2236.4-2309_daily_bin402> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin402 339.125 -23.1552 343526401 343785601 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 :                                   621.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   702 sec.
    Turnaround time :                            704 sec.

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

