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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin837
RA = 339.096, Dec = 28.4832
tmin = 456278401, tmax = 456537601
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='399542', job_status='RUN', time_executed='2021-09-28 16:45:36.693822', time_epoch_executed='1632872736.69' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='837'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/399542

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/399542/ft1_4FGL_J2236.3+2828_daily_bin837.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/399542/ft2_4FGL_J2236.3+2828_daily_bin837.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/399542/ft1_4FGL_J2236.3+2828_daily_bin837.fits outfile=/scratch/kocevski/399542/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin837.fits ra=339.096 dec=28.4832 rad=12.0 tmin=456278401.0 tmax=456537601.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 5.00
user 4.77
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/399542/ft2_4FGL_J2236.3+2828_daily_bin837.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/399542/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin837.fits evtable="EVENTS" outfile="/scratch/kocevski/399542/ft1_filtered_4FGL_J2236.3+2828_daily_bin837.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.51
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/399542/ft1_filtered_4FGL_J2236.3+2828_daily_bin837.fits" evtable="EVENTS" scfile=/scratch/kocevski/399542/ft2_4FGL_J2236.3+2828_daily_bin837.fits sctable="SC_DATA" outfile=/scratch/kocevski/399542/ltcube_456278401_456537601_4FGL_J2236.3+2828_daily_bin837.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/399542/ft2_4FGL_J2236.3+2828_daily_bin837.fits
.....................!
real 11.84
user 11.51
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/399542/ft1_filtered_4FGL_J2236.3+2828_daily_bin837.fits evtable="EVENTS" scfile=/scratch/kocevski/399542/ft2_4FGL_J2236.3+2828_daily_bin837.fits sctable="SC_DATA" expcube=/scratch/kocevski/399542/ltcube_456278401_456537601_4FGL_J2236.3+2828_daily_bin837.fits outfile=/scratch/kocevski/399542/expmap_456278401_456537601_4FGL_J2236.3+2828_daily_bin837.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/399542/ltcube_456278401_456537601_4FGL_J2236.3+2828_daily_bin837.fits
.....................!
real 190.57
user 185.40
sys 4.81

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/399542/ft1_filtered_4FGL_J2236.3+2828_daily_bin837.fits scfile=/scratch/kocevski/399542/ft2_4FGL_J2236.3+2828_daily_bin837.fits outfile=/scratch/kocevski/399542/cmap_456278401_456537601_4FGL_J2236.3+2828_daily_bin837.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/399542/ft1_filtered_4FGL_J2236.3+2828_daily_bin837.fits scfile=/scratch/kocevski/399542/ft2_4FGL_J2236.3+2828_daily_bin837.fits outfile=/scratch/kocevski/399542/cmap_HighResolution_456278401_456537601_4FGL_J2236.3+2828_daily_bin837.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.54
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/399542/ft1_filtered_4FGL_J2236.3+2828_daily_bin837.fits', '/scratch/kocevski/399542/ft2_4FGL_J2236.3+2828_daily_bin837.fits', expMap='/scratch/kocevski/399542/expmap_456278401_456537601_4FGL_J2236.3+2828_daily_bin837.fits', expCube='/scratch/kocevski/399542/ltcube_456278401_456537601_4FGL_J2236.3+2828_daily_bin837.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/399542/Model_4FGL_J2236.3+2828_daily_bin837.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/399542/ft1_filtered_4FGL_J2236.3+2828_daily_bin837.fits
Spacecraft file(s): /scratch/kocevski/399542/ft2_4FGL_J2236.3+2828_daily_bin837.fits
Exposure map: /scratch/kocevski/399542/expmap_456278401_456537601_4FGL_J2236.3+2828_daily_bin837.fits
Exposure cube: /scratch/kocevski/399542/ltcube_456278401_456537601_4FGL_J2236.3+2828_daily_bin837.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/399542/Model_4FGL_J2236.3+2828_daily_bin837.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) = 8673.70068908

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.861       1.0000         .10000E-03   10000.    
     2 'norm      '    .10115E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.454       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.820       1.0000         .10000E-03   10000.    
     5 'norm      '    2.9121       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.9659       1.0000         .10000E-03   10000.    
     8 'norm      '    2.3581       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.197       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.1941       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.840       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    30.854       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .74504       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0565       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=   8673.689     FROM MIGRAD    STATUS=CONVERGED    479 CALLS     2365 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.859        10.751        .41626E-07   -.19300E-04
   2  norm          .10000E-03    .46141        .53644E-07** at limit **
   3  Prefactor     14.447        43.104       -.31620E-06   -.31430E-04
   4  Prefactor     12.819        12.712       -.21340E-06   -.64444E-05
   5  norm          2.9120        3.9195        .56190E-07   -.42332E-04
   6  Prefactor     .10000E-03    64.761       -.13370E-05** at limit **
   7  Prefactor     6.9665        12.630        .37113E-05   -.14525E-03
   8  norm          2.3584        1.5881        .10060E-06   -.61274E-04
   9  Prefactor     .10000E-03    31.992       -.48011E-06** at limit **
  10  Prefactor     .10000E-03    15.600        .21640E-07** at limit **
  11  norm          .10000E-03    .72059       -.48884E-08** at limit **
  12  Prefactor     .10000E-03    6.4017       -.67889E-08** at limit **
  13  Prefactor     .10000E-03    5.5480        .10716E-07** at limit **
  14  Prefactor     20.198        12.398        .31834E-07   -.16030E-05
  15  Prefactor     .10000E-03    45.504        .27998E-05** at limit **
  16  norm          1.1942        1.3728        .25031E-06   -.46442E-04
  17  Prefactor     13.839        24.867        .25125E-06   -.95127E-05
  18  Prefactor     .10000E-03    10.086        .13366E-07** at limit **
  19  norm          .10000E-03    2.1779        .36296E-07** at limit **
  20  Prefactor     30.858        22.092        .13735E-06    .88175E-05
  21  Normalizat    .74497        .25140       -.16670E-05   -.29167E-04
  22  Prefactor     1.0565        .10671        .20971E-06   -.12295E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.8595
  norm       = 0.0001
  Prefactor  = 14.4469
  Prefactor  = 12.8188
  norm       = 2.91199
  Prefactor  = 0.000100004
  Prefactor  = 6.96654
  norm       = 2.35836
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.1976
  Prefactor  = 0.000100005
  norm       = 1.19419
  Prefactor  = 13.8388
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 30.8578
  Normalizat = 0.74497
  Prefactor  = 1.05647
 **********
 **   18 **HESSE 
 **********

 FCN=   8673.689     FROM HESSE     STATUS=OK           342 CALLS     2707 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.859        10.707        .10390E-03   -1.4937    
   2  norm          .10000E-03    .74354        .12134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.447        43.133        .10535E-03   -1.4948    
   4  Prefactor     12.819        12.713        .11187E-03   -1.4992    
   5  norm          2.9120        3.9059        .20773E-03   -1.5367    
   6  Prefactor     .10000E-03    65.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.9665        12.647        .76002E-03   -1.5180    
   8  norm          2.3584        1.5774        .89781E-04   -1.5401    
   9  Prefactor     .10000E-03    32.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .72828        .77191E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.4288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.5505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     20.198        12.392        .89122E-04   -1.4809    
  15  Prefactor     .10000E-03    47.056        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.1942        1.3456        .11155E-03   -1.5489    
  17  Prefactor     13.839        24.845        .10767E-03   -1.4964    
  18  Prefactor     .10000E-03    10.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.1843        .13402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     30.858        22.048        .72133E-04   -1.4596    
  21  Normalizat    .74497        .27743        .45380E-03   -1.0214    
  22  Prefactor     1.0565        .11979        .17356E-03   -.90870    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.4766e-10
Minuit parameter uncertainties:
  1  10.7087
  2  1.45205e-06
  3  43.2261
  4  12.7152
  5  3.90623
  6  0.00105329
  7  12.6522
  8  1.57745
  9  0.000277816
  10  1.19921e-05
  11  2.73352e-07
  12  7.82874e-07
  13  5.37403e-07
  14  12.3938
  15  0.000939587
  16  1.34565
  17  24.8638
  18  1.62858e-06
  19  1.09951e-06
  20  22.0542
  21  0.277953
  22  0.119825
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  2.358e+00  1.577e+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

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  1.056e+00  1.198e-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:  7.450e-01  2.780e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.96
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 7.57e-08 +/- 5.06e-08
Energy Flux (Fixed Index): 3.07e-05 +/- 2.05e-05

TS (Fixed Index): 2.96
Ra Dec: 339.096 28.483
Photon Flux Upper Limit: 1.72e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.96e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/399542/likelihoodResults_456278401_456537601_4FGL_J2236.3+2828_daily_bin837.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) = 8673.37636242
delta logL = 0.312633962807

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8673.36893387
delta logL = 0.320062515824

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8074       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7583       1.0000          .0000       5.0000    
     3 'Normalizat'    .68945       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0751       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.

 FCN=   8673.369     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      257 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8074        19.571        .77707E-03    .14699E-02
   2  alpha         2.7583        3.8347        .41433        .64250E-04
   3  Normalizat    .68949        .88555E-01    .10613        .29563E-03
   4  Prefactor     1.0751        .39588E-01    .38620E-01    .72989E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.80736
  alpha      = 2.75828
  Normalizat = 0.689495
  Prefactor  = 1.07511
 **********
 **   18 **HESSE 
 **********

 FCN=   8673.369     FROM HESSE     STATUS=OK            31 CALLS      288 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8074        1.8320        .31083E-04   -1.5439    
   2  alpha         2.7583        .88078        .15402E-01    .10350    
   3  Normalizat    .68949        .27397        .47048E-03   -1.0431    
   4  Prefactor     1.0751        .12118        .17224E-03   -.90266    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.49596e-09
Minuit parameter uncertainties:
  1  1.83205
  2  0.900322
  3  0.274511
  4  0.121207
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/399542': 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) = 8673.36893385
delta logL = 0.320062535582

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  1.807e+00  1.832e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  2.758e+00  9.003e-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:  1.075e+00  1.212e-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:  6.895e-01  2.745e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.71
Ra Dec: 339.096 28.483
Photon Index (Free Index): 2.76 +/- 0.90
Photon Flux (Free Index): 1.08e-07 +/- 6.92e-08
Energy Flux (Free Index): 2.53e-05 +/- 1.75e-05

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/399542/cmap_HighResolution_456278401_456537601_4FGL_J2236.3+2828_daily_bin837.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.96e-05', comment='SUCCESS', photon_flux='7.57e-08', energy_flux2='2.53e-05', photon_flux_error='5.06e-08', dlogl='3.20e-01', energy_flux='3.07e-05', photon_flux2='1.08e-07', job_status='DONE', time_completed='2021-09-28 16:57:54.529067', photon_index_error2='0.90', photon_index2='2.76', ts='2.96', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='1.72e-07', energy_flux_error2='1.75e-05', EG='0.74', time_epoch_completed='1632873474.53', return_code='0', job_id='399542', GAL2='1.08', EG2='0.69', return_code2='0', energy_flux_error='2.05e-05', photon_flux_error2='6.92e-08', ts2='3.71', photon_index='2.15' WHERE bin_id='837' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:57:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 399542: <4FGL_J2236.3+2828_daily_bin837> in cluster <slac> Done

Job <4FGL_J2236.3+2828_daily_bin837> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 16:45:22 2021
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:45:25 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:45:25 2021
Terminated at Tue Sep 28 16:57:55 2021
Results reported at Tue Sep 28 16:57:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin837 339.096 28.4832 456278401 456537601 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 :                                   735.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             385.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   749 sec.
    Turnaround time :                            753 sec.

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

