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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin1168
RA = 339.096, Dec = 28.4832
tmin = 542073601, tmax = 542332801
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='401065', job_status='RUN', time_executed='2021-09-28 16:54:09.252394', time_epoch_executed='1632873249.25' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='1168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/401065

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/401065/ft1_4FGL_J2236.3+2828_daily_bin1168.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/401065/ft2_4FGL_J2236.3+2828_daily_bin1168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/401065/ft1_4FGL_J2236.3+2828_daily_bin1168.fits outfile=/scratch/kocevski/401065/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1168.fits ra=339.096 dec=28.4832 rad=12.0 tmin=542073601.0 tmax=542332801.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.55
user 3.34
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/401065/ft1_filtered_4FGL_J2236.3+2828_daily_bin1168.fits" evtable="EVENTS" scfile=/scratch/kocevski/401065/ft2_4FGL_J2236.3+2828_daily_bin1168.fits sctable="SC_DATA" outfile=/scratch/kocevski/401065/ltcube_542073601_542332801_4FGL_J2236.3+2828_daily_bin1168.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/401065/ft2_4FGL_J2236.3+2828_daily_bin1168.fits
.....................!
real 11.96
user 11.56
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/401065/ft1_filtered_4FGL_J2236.3+2828_daily_bin1168.fits evtable="EVENTS" scfile=/scratch/kocevski/401065/ft2_4FGL_J2236.3+2828_daily_bin1168.fits sctable="SC_DATA" expcube=/scratch/kocevski/401065/ltcube_542073601_542332801_4FGL_J2236.3+2828_daily_bin1168.fits outfile=/scratch/kocevski/401065/expmap_542073601_542332801_4FGL_J2236.3+2828_daily_bin1168.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/401065/ltcube_542073601_542332801_4FGL_J2236.3+2828_daily_bin1168.fits
.....................!
real 191.58
user 187.40
sys 3.85

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/401065/ft1_filtered_4FGL_J2236.3+2828_daily_bin1168.fits scfile=/scratch/kocevski/401065/ft2_4FGL_J2236.3+2828_daily_bin1168.fits outfile=/scratch/kocevski/401065/cmap_542073601_542332801_4FGL_J2236.3+2828_daily_bin1168.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/401065/ft1_filtered_4FGL_J2236.3+2828_daily_bin1168.fits scfile=/scratch/kocevski/401065/ft2_4FGL_J2236.3+2828_daily_bin1168.fits outfile=/scratch/kocevski/401065/cmap_HighResolution_542073601_542332801_4FGL_J2236.3+2828_daily_bin1168.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.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39698E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    41.743       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .21122E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    118.61       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.5309       1.0000         .10000E-03   10000.    
     8 'norm      '    4.6634       1.0000         .10000E-03   10000.    
     9 'Prefactor '    37.575       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.958       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.044       1.0000         .10000E-03   10000.    
    16 'norm      '    4.5607       1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.176       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    7.2859       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .67625       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1094       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=   9259.459     FROM MIGRAD    STATUS=CONVERGED    479 CALLS     2378 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    4.8398        .16937E-07** at limit **
   2  norm          .10000E-03    .24034       -.18293E-07** at limit **
   3  Prefactor     41.710        52.192       -.26359E-04    .72628E-05
   4  Prefactor     .10000E-03    5.3138       -.27565E-07** at limit **
   5  norm          .10001E-03    2.6660       -.78427E-07** at limit **
   6  Prefactor     118.74        113.01        .10786E-03    .95396E-05
   7  Prefactor     7.5333        12.518       -.22363E-05   -.79879E-04
   8  norm          4.6635        1.3786       -.88824E-06   -.16105E-03
   9  Prefactor     37.551        61.442       -.24618E-04    .85535E-05
  10  Prefactor     .10000E-03    5.7710       -.22742E-06** at limit **
  11  norm          .10000E-03    .50762       -.83716E-07** at limit **
  12  Prefactor     12.957        11.988        .77451E-06   -.16162E-04
  13  Prefactor     .10000E-03    8.7125        .75888E-06** at limit **
  14  Prefactor     .10000E-03    7.5723        .18597E-05** at limit **
  15  Prefactor     19.981        32.194        .11265E-04    .15701E-04
  16  norm          4.5608        1.6735        .50702E-07   -.11212E-03
  17  Prefactor     15.176        17.440       -.11033E-06   -.10816E-04
  18  Prefactor     .10000E-03    8.6500        .14017E-06** at limit **
  19  norm          7.2853        4.5965        .12359E-06   -.52979E-04
  20  Prefactor     .10000E-03    10.007       -.34170E-06** at limit **
  21  Normalizat    .67570        .23090       -.12744E-04   -.36725E-04
  22  Prefactor     1.1097        .10324        .16310E-05   -.29977E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100021
  norm       = 0.0001
  Prefactor  = 41.7104
  Prefactor  = 0.0001
  norm       = 0.000100009
  Prefactor  = 118.741
  Prefactor  = 7.53326
  norm       = 4.66354
  Prefactor  = 37.5513
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.9575
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.9813
  norm       = 4.56083
  Prefactor  = 15.1762
  Prefactor  = 0.0001
  norm       = 7.28534
  Prefactor  = 0.0001
  Normalizat = 0.675702
  Prefactor  = 1.10967
 **********
 **   18 **HESSE 
 **********

 FCN=   9259.459     FROM HESSE     STATUS=OK           344 CALLS     2722 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    36.924        .40949E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .24956        .91997E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     41.710        52.175        .62045E-04   -1.4415    
   4  Prefactor     .10000E-03    5.3218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10001E-03    7.8051        .30497E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     118.74        112.99        .18474E-03   -1.3524    
   7  Prefactor     7.5333        12.490        .14614E-03   -1.5159    
   8  norm          4.6635        1.3778        .58231E-04   -1.5276    
   9  Prefactor     37.551        61.506        .65384E-04   -1.4482    
  10  Prefactor     .10000E-03    5.7759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .51000        .66912E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.957        11.968        .11128E-03   -1.4988    
  13  Prefactor     .10000E-03    8.7270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.6214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     19.981        32.224        .89462E-04   -1.4814    
  16  norm          4.5608        1.6700        .71375E-04   -1.5281    
  17  Prefactor     15.176        17.428        .10281E-03   -1.4929    
  18  Prefactor     .10000E-03    8.6670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          7.2853        4.5904        .14860E-03   -1.5168    
  20  Prefactor     .10000E-03    10.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .67570        .25041        .44751E-03   -1.0486    
  22  Prefactor     1.1097        .11362        .16754E-03   -.89158    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86331e-09
Minuit parameter uncertainties:
  1  0.00177571
  2  6.68079e-07
  3  52.2326
  4  8.41241e-05
  5  0.000531146
  6  113.193
  7  12.4948
  8  1.37777
  9  61.6097
  10  1.60085e-06
  11  6.55201e-07
  12  11.9701
  13  1.95719e-05
  14  2.93271e-05
  15  32.2518
  16  1.67006
  17  17.4341
  18  2.01438e-05
  19  4.59064
  20  5.0153e-05
  21  0.25083
  22  0.113646
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  4.664e+00  1.378e+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.110e+00  1.136e-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.757e-01  2.508e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 40.15
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 1.50e-07 +/- 4.42e-08
Energy Flux (Fixed Index): 6.07e-05 +/- 1.79e-05

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) = 9258.81290231
delta logL = 0.646399427374

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9258.79109117
delta logL = 0.668210568007

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3295       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7577       1.0000          .0000       5.0000    
     3 'Normalizat'    .73814       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0933       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=   9258.791     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      210 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3292        1.3796        .48399E-02    .72001E-03
   2  alpha         1.7577        .28067        .26485       -.22572E-04
   3  Normalizat    .73816        .21561        .97020E-01    .37397E-03
   4  Prefactor     1.0933        .10016        .37848E-01    .93988E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.32919
  alpha      = 1.7577
  Normalizat = 0.738161
  Prefactor  = 1.09326
 **********
 **   18 **HESSE 
 **********

 FCN=   9258.791     FROM HESSE     STATUS=OK            29 CALLS      239 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3292        1.5531        .61388E-04   -1.5292    
   2  alpha         1.7577        .33980        .10807E-01   -.30146    
   3  Normalizat    .73816        .24049        .42989E-03   -1.0241    
   4  Prefactor     1.0933        .11148        .16870E-03   -.89682    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.95439e-10
Minuit parameter uncertainties:
  1  1.55315
  2  0.34096
  3  0.24084
  4  0.111504
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/401065': 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) = 9258.79109115
delta logL = 0.668210587459

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  4.329e+00  1.553e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  1.758e+00  3.410e-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.093e+00  1.115e-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.382e-01  2.408e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 41.18
Ra Dec: 339.096 28.483
Photon Index (Free Index): 1.76 +/- 0.34
Photon Flux (Free Index): 1.05e-07 +/- 4.98e-08
Energy Flux (Free Index): 7.91e-05 +/- 3.48e-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/401065/cmap_HighResolution_542073601_542332801_4FGL_J2236.3+2828_daily_bin1168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.50e-07', energy_flux2='7.91e-05', photon_flux_error='4.42e-08', dlogl='6.68e-01', energy_flux='6.07e-05', photon_flux2='1.05e-07', job_status='DONE', time_completed='2021-09-28 17:05:37.305384', photon_index_error2='0.34', photon_index2='1.76', ts='40.15', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='3.48e-05', EG='0.68', time_epoch_completed='1632873937.31', return_code='0', job_id='401065', GAL2='1.09', EG2='0.74', return_code2='0', energy_flux_error='1.79e-05', photon_flux_error2='4.98e-08', ts2='41.18', photon_index='2.15' WHERE bin_id='1168' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:05:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 401065: <4FGL_J2236.3+2828_daily_bin1168> in cluster <slac> Done

Job <4FGL_J2236.3+2828_daily_bin1168> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep 28 16:50:19 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:50:20 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:50:20 2021
Terminated at Tue Sep 28 17:05:38 2021
Results reported at Tue Sep 28 17:05:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin1168 339.096 28.4832 542073601 542332801 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 :                                   687.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            919 sec.

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

