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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin209
RA = 339.096, Dec = 28.4832
tmin = 293500801, tmax = 293760001
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='395423', job_status='RUN', time_executed='2021-09-28 16:31:39.095722', time_epoch_executed='1632871899.1' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='209'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/395423

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/395423/ft1_4FGL_J2236.3+2828_daily_bin209.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/395423/ft2_4FGL_J2236.3+2828_daily_bin209.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/395423/ft1_4FGL_J2236.3+2828_daily_bin209.fits outfile=/scratch/kocevski/395423/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin209.fits ra=339.096 dec=28.4832 rad=12.0 tmin=293500801.0 tmax=293760001.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.59
user 3.36
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/395423/ft2_4FGL_J2236.3+2828_daily_bin209.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/395423/ft2_4FGL_J2236.3+2828_daily_bin209.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/395423/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin209.fits evtable="EVENTS" outfile="/scratch/kocevski/395423/ft1_filtered_4FGL_J2236.3+2828_daily_bin209.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/395423/ft1_filtered_4FGL_J2236.3+2828_daily_bin209.fits" evtable="EVENTS" scfile=/scratch/kocevski/395423/ft2_4FGL_J2236.3+2828_daily_bin209.fits sctable="SC_DATA" outfile=/scratch/kocevski/395423/ltcube_293500801_293760001_4FGL_J2236.3+2828_daily_bin209.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/395423/ft2_4FGL_J2236.3+2828_daily_bin209.fits
.....................!
real 11.79
user 11.42
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/395423/ft1_filtered_4FGL_J2236.3+2828_daily_bin209.fits evtable="EVENTS" scfile=/scratch/kocevski/395423/ft2_4FGL_J2236.3+2828_daily_bin209.fits sctable="SC_DATA" expcube=/scratch/kocevski/395423/ltcube_293500801_293760001_4FGL_J2236.3+2828_daily_bin209.fits outfile=/scratch/kocevski/395423/expmap_293500801_293760001_4FGL_J2236.3+2828_daily_bin209.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/395423/ltcube_293500801_293760001_4FGL_J2236.3+2828_daily_bin209.fits
.....................!
real 190.23
user 184.52
sys 5.29

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 155 point sources and 0 extended sources

Setting source of interest to:
4FGL J2236.3+2828 @ 339.096 28.4832

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/395423/ft1_filtered_4FGL_J2236.3+2828_daily_bin209.fits scfile=/scratch/kocevski/395423/ft2_4FGL_J2236.3+2828_daily_bin209.fits outfile=/scratch/kocevski/395423/cmap_293500801_293760001_4FGL_J2236.3+2828_daily_bin209.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.096 yref=28.4832 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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/395423/ft1_filtered_4FGL_J2236.3+2828_daily_bin209.fits scfile=/scratch/kocevski/395423/ft2_4FGL_J2236.3+2828_daily_bin209.fits outfile=/scratch/kocevski/395423/cmap_HighResolution_293500801_293760001_4FGL_J2236.3+2828_daily_bin209.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.096 yref=28.4832 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.58
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/395423/ft1_filtered_4FGL_J2236.3+2828_daily_bin209.fits evtable="EVENTS" scfile=/scratch/kocevski/395423/ft2_4FGL_J2236.3+2828_daily_bin209.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/395423/Model_4FGL_J2236.3+2828_daily_bin209.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/395423/ft1_filtered_4FGL_J2236.3+2828_daily_bin209.fits.....................!
real 118.90
user 117.38
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/395423/ft1_filtered_4FGL_J2236.3+2828_daily_bin209.fits', '/scratch/kocevski/395423/ft2_4FGL_J2236.3+2828_daily_bin209.fits', expMap='/scratch/kocevski/395423/expmap_293500801_293760001_4FGL_J2236.3+2828_daily_bin209.fits', expCube='/scratch/kocevski/395423/ltcube_293500801_293760001_4FGL_J2236.3+2828_daily_bin209.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/395423/Model_4FGL_J2236.3+2828_daily_bin209.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2236.3+2828'

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  2.238e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  2.146e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
288         beta:  1.046e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
289           Eb:  5.754e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/395423/ft1_filtered_4FGL_J2236.3+2828_daily_bin209.fits
Spacecraft file(s): /scratch/kocevski/395423/ft2_4FGL_J2236.3+2828_daily_bin209.fits
Exposure map: /scratch/kocevski/395423/expmap_293500801_293760001_4FGL_J2236.3+2828_daily_bin209.fits
Exposure cube: /scratch/kocevski/395423/ltcube_293500801_293760001_4FGL_J2236.3+2828_daily_bin209.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/395423/Model_4FGL_J2236.3+2828_daily_bin209.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) = 10400.5345009

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.5620       1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.022       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.8650       1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.900       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.683       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.4172       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.6752       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .78709       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.6352       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .81935       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10400.53     FROM MIGRAD    STATUS=CONVERGED    479 CALLS     2341 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.8800       -.12290E-07** at limit **
   2  norm          1.5621        .78763        .14410E-07   -.85530E-04
   3  Prefactor     22.021        22.799       -.11119E-06   -.17785E-04
   4  Prefactor     .10000E-03    4.3662        .21796E-07** at limit **
   5  norm          .10000E-03    2.4284        .14965E-07** at limit **
   6  Prefactor     .10000E-03    34.666       -.11209E-05** at limit **
   7  Prefactor     .10000E-03    7.0992        .72164E-06** at limit **
   8  norm          .10000E-03    .45315        .30073E-09** at limit **
   9  Prefactor     .10000E-03    20.215        .28766E-05** at limit **
  10  Prefactor     .10000E-03    7.4712       -.95586E-06** at limit **
  11  norm          1.8643        1.9630        .12585E-06   -.64940E-04
  12  Prefactor     19.893        19.367       -.85976E-06   -.18019E-03
  13  Prefactor     .10000E-03    15.379       -.15122E-05** at limit **
  14  Prefactor     13.681        11.202        .13677E-06    .15791E-04
  15  Prefactor     .10000E-03    11.285        .97099E-06** at limit **
  16  norm          8.4168        1.9963       -.46732E-07   -.20882E-03
  17  Prefactor     5.6748        7.6578        .67848E-08   -.41858E-05
  18  Prefactor     .10000E-03    16.116       -.13911E-05** at limit **
  19  norm          .78799        3.2365        .20944E-05   -.45426E-03
  20  Prefactor     .10000E-03    12.277       -.14570E-06** at limit **
  21  Normalizat    1.6356        .22189        .24235E-06   -.55166E-04
  22  Prefactor     .81917        .95725E-01   -.26494E-06    .39597E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.56211
  Prefactor  = 22.0212
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 1.86434
  Prefactor  = 19.8934
  Prefactor  = 0.000100001
  Prefactor  = 13.6808
  Prefactor  = 0.0001
  norm       = 8.41682
  Prefactor  = 5.67485
  Prefactor  = 0.000100001
  norm       = 0.787993
  Prefactor  = 0.0001
  Normalizat = 1.63559
  Prefactor  = 0.819173
 **********
 **   18 **HESSE 
 **********

 FCN=   10400.53     FROM HESSE     STATUS=OK           342 CALLS     2683 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.8833        .13656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.5621        .78318        .62021E-04   -1.5458    
   3  Prefactor     22.021        22.805        .85355E-04   -1.4769    
   4  Prefactor     .10000E-03    4.3786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.4570        .15519E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    34.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.2334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.0138        .13315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    21.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.6296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.8643        1.9444        .13834E-03   -1.5435    
  12  Prefactor     19.893        19.670        .89786E-04   -1.4816    
  13  Prefactor     .10000E-03    15.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.681        11.214        .10828E-03   -1.4968    
  15  Prefactor     .10000E-03    11.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.4168        1.9981        .67141E-04   -1.5128    
  17  Prefactor     5.6748        7.6540        .16862E-03   -1.5231    
  18  Prefactor     .10000E-03    16.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .78799        3.8349        .38813E-03   -1.5530    
  20  Prefactor     .10000E-03    12.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.6356        .26068        .34477E-03   -.74036    
  22  Prefactor     .81917        .11251        .20619E-03   -.99025    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.86371e-10
Minuit parameter uncertainties:
  1  7.06893e-07
  2  0.783189
  3  22.8144
  4  1.24994e-06
  5  4.44891e-07
  6  0.000242641
  7  7.01122e-05
  8  6.1908e-06
  9  0.000485866
  10  9.48748e-05
  11  1.94444
  12  19.6761
  13  0.000196418
  14  11.2153
  15  0.000119415
  16  1.9981
  17  7.6553
  18  0.0002023
  19  3.47683
  20  2.03174e-05
  21  0.260897
  22  0.112543
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  1.000e-04  6.191e-06  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  2.146e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
288         beta:  1.046e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
289           Eb:  5.754e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  8.192e-01  1.125e-01  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  1.636e+00  2.609e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 339.096 28.483
Photon Flux Upper Limit: 5.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.26e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/395423/likelihoodResults_293500801_293760001_4FGL_J2236.3+2828_daily_bin209.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) = 10400.5332775
delta logL = -0.00242517144579

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10400.530858
delta logL = -5.71967757423e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12603E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1863       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6359       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81911       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5170E+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=   10400.53     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      265 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    303.54        .13356E-02** at limit **
   2  alpha         2.3891        3.7994        .16627       -.46918E-06
   3  Normalizat    1.6356        .74167E-01    .34477E-03   -.38954E-02
   4  Prefactor     .81917        .32904E-01    .20619E-03   -.65114E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 2.38912
  Normalizat = 1.63558
  Prefactor  = 0.819169
 **********
 **   18 **HESSE 
 **********

 FCN=   10400.53     FROM HESSE     STATUS=OK            23 CALLS      288 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.6831        .53424E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3891        3.5312        .66510E-02   -.44367E-01
   3  Normalizat    1.6356        .24901        .68955E-04   -.74037    
   4  Prefactor     .81917        .11090        .41238E-04   -.99026    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99796e-08
Minuit parameter uncertainties:
  1  9.11438e-05
  2  72.7424
  3  0.249205
  4  0.110932
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/395423': 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) = 10400.5308467
delta logL = 5.64984475204e-06

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  1.000e-04  9.114e-05  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  2.389e+00  7.274e+01  0.000e+00  5.000e+00 ( 1.000e+00)
288         beta:  1.046e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
289           Eb:  5.754e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  8.192e-01  1.109e-01  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  1.636e+00  2.492e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 339.096 28.483

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/395423/cmap_HighResolution_293500801_293760001_4FGL_J2236.3+2828_daily_bin209.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.26e-05', job_status='DONE', photon_flux_upper_limit='5.59e-08', time_completed='2021-09-28 16:45:54.868501', job_id='395423', GAL2='0.82', fit_tolerance='1e-08', EG2='1.64', EG='1.64', time_epoch_completed='1632872754.87', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='5.65e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='209' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:45:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 395423: <4FGL_J2236.3+2828_daily_bin209> in cluster <slac> Done

Job <4FGL_J2236.3+2828_daily_bin209> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 28 16:31:20 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:31:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 16:31:21 2021
Terminated at Tue Sep 28 16:45:55 2021
Results reported at Tue Sep 28 16:45:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin209 339.096 28.4832 293500801 293760001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2236.3+2828 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   853.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             326.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   874 sec.
    Turnaround time :                            875 sec.

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

