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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin1109
RA = 339.096, Dec = 28.4832
tmin = 526780801, tmax = 527040001
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='400980', job_status='RUN', time_executed='2021-09-28 16:52:58.693537', time_epoch_executed='1632873178.69' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='1109'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/400980

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/400980/ft1_4FGL_J2236.3+2828_daily_bin1109.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/400980/ft2_4FGL_J2236.3+2828_daily_bin1109.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/400980/ft1_4FGL_J2236.3+2828_daily_bin1109.fits outfile=/scratch/kocevski/400980/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1109.fits ra=339.096 dec=28.4832 rad=12.0 tmin=526780801.0 tmax=527040001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.34
user 4.09
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/400980/ft1_filtered_4FGL_J2236.3+2828_daily_bin1109.fits" evtable="EVENTS" scfile=/scratch/kocevski/400980/ft2_4FGL_J2236.3+2828_daily_bin1109.fits sctable="SC_DATA" outfile=/scratch/kocevski/400980/ltcube_526780801_527040001_4FGL_J2236.3+2828_daily_bin1109.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/400980/ft2_4FGL_J2236.3+2828_daily_bin1109.fits
.....................!
real 11.85
user 11.50
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/400980/ft1_filtered_4FGL_J2236.3+2828_daily_bin1109.fits evtable="EVENTS" scfile=/scratch/kocevski/400980/ft2_4FGL_J2236.3+2828_daily_bin1109.fits sctable="SC_DATA" expcube=/scratch/kocevski/400980/ltcube_526780801_527040001_4FGL_J2236.3+2828_daily_bin1109.fits outfile=/scratch/kocevski/400980/expmap_526780801_527040001_4FGL_J2236.3+2828_daily_bin1109.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/400980/ltcube_526780801_527040001_4FGL_J2236.3+2828_daily_bin1109.fits
.....................!
real 190.89
user 185.35
sys 5.20

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/400980/ft1_filtered_4FGL_J2236.3+2828_daily_bin1109.fits scfile=/scratch/kocevski/400980/ft2_4FGL_J2236.3+2828_daily_bin1109.fits outfile=/scratch/kocevski/400980/cmap_526780801_527040001_4FGL_J2236.3+2828_daily_bin1109.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/400980/ft1_filtered_4FGL_J2236.3+2828_daily_bin1109.fits scfile=/scratch/kocevski/400980/ft2_4FGL_J2236.3+2828_daily_bin1109.fits outfile=/scratch/kocevski/400980/cmap_HighResolution_526780801_527040001_4FGL_J2236.3+2828_daily_bin1109.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .36666       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.737       1.0000         .10000E-03   10000.    
     5 'norm      '    .48953       1.0000         .10000E-03   10000.    
     6 'Prefactor '    126.73       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.3219       1.0000         .10000E-03   10000.    
     8 'norm      '    7.6232       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.5941       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.729       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10479E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10809E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.382       1.0000         .10000E-03   10000.    
    19 'norm      '    4.7622       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10477E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0340       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .95125       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=   8743.666     FROM MIGRAD    STATUS=CONVERGED    465 CALLS     2349 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.2826        .17072E-07** at limit **
   2  norm          .36658        .67599        .83567E-07   -.22286E-04
   3  Prefactor     .10000E-03    11.614        .23393E-06** at limit **
   4  Prefactor     22.738        14.316       -.29633E-08   -.20532E-04
   5  norm          .48927        5.9251        .52918E-05   -.12720E-03
   6  Prefactor     126.71        123.52       -.45432E-06   -.53809E-04
   7  Prefactor     4.3221        10.277       -.20068E-06   -.67139E-04
   8  norm          7.6233        1.8420       -.42470E-07   -.58526E-04
   9  Prefactor     .10000E-03    27.008       -.50149E-06** at limit **
  10  Prefactor     7.5931        17.021        .29009E-05   -.68911E-05
  11  norm          .10000E-03    .47551        .40913E-08** at limit **
  12  Prefactor     .10000E-03    4.1611        .17288E-07** at limit **
  13  Prefactor     24.728        19.523       -.68056E-07    .24089E-05
  14  Prefactor     .10000E-03    11.384       -.23219E-06** at limit **
  15  Prefactor     .10001E-03    89.600       -.48175E-05** at limit **
  16  norm          .10000E-03    .46146        .12517E-07** at limit **
  17  Prefactor     .10001E-03    68.367        .38593E-05** at limit **
  18  Prefactor     17.384        19.502        .49894E-06   -.70765E-05
  19  norm          4.7647        4.2840        .16355E-06   -.12443E-05
  20  Prefactor     .10000E-03    24.246        .66012E-06** at limit **
  21  Normalizat    1.0339        .22368        .32216E-06   -.11413E-03
  22  Prefactor     .95133        .98085E-01   -.52277E-06   -.68923E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.366575
  Prefactor  = 0.0001
  Prefactor  = 22.7378
  norm       = 0.489272
  Prefactor  = 126.708
  Prefactor  = 4.32209
  norm       = 7.62334
  Prefactor  = 0.000100001
  Prefactor  = 7.59307
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.7282
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  norm       = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 17.3841
  norm       = 4.7647
  Prefactor  = 0.0001
  Normalizat = 1.03392
  Prefactor  = 0.951331
 **********
 **   18 **HESSE 
 **********

 FCN=   8743.666     FROM HESSE     STATUS=OK           338 CALLS     2687 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.2939        .16544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .36658        .67633        .42855E-04   -1.5587    
   3  Prefactor     .10000E-03    11.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     22.738        14.316        .84002E-04   -1.4754    
   5  norm          .48927        5.9603        .43588E-03   -1.5568    
   6  Prefactor     126.71        123.76        .35759E-04   -1.3452    
   7  Prefactor     4.3221        10.280        .19377E-03   -1.5292    
   8  norm          7.6233        1.8438        .57903E-04   -1.5156    
   9  Prefactor     .10000E-03    27.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.5931        17.053        .72762E-03   -1.5157    
  11  norm          .10000E-03    .47815        .62967E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.1868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     24.728        19.532        .80554E-04   -1.4713    
  14  Prefactor     .10000E-03    11.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    92.508        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .47783        .12397E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    69.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     17.384        19.497        .96064E-04   -1.4874    
  19  norm          4.7647        4.2805        .17794E-03   -1.5271    
  20  Prefactor     .10000E-03    24.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0339        .26184        .37731E-03   -.91902    
  22  Prefactor     .95133        .11523        .17644E-03   -.94370    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.71417e-10
Minuit parameter uncertainties:
  1  3.95161e-07
  2  0.676343
  3  7.86523e-05
  4  14.3182
  5  3.41546
  6  124.012
  7  10.2846
  8  1.84379
  9  0.000266026
  10  17.0644
  11  3.01124e-08
  12  7.06617e-07
  13  19.537
  14  7.39923e-05
  15  0.00223127
  16  1.96339e-07
  17  0.00177436
  18  19.5045
  19  4.28079
  20  0.000158739
  21  0.262165
  22  0.115257
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  7.623e+00  1.844e+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:  9.513e-01  1.153e-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.034e+00  2.622e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 61.70
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 2.45e-07 +/- 5.91e-08
Energy Flux (Fixed Index): 9.91e-05 +/- 2.40e-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) = 8743.35754758
delta logL = 0.308493792591

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8743.34811905
delta logL = 0.317922325343

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.3521       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3451       1.0000          .0000       5.0000    
     3 'Normalizat'    .98574       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96474       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=   8743.348     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      209 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.3514        4.4724        .36980E-02    .47508E-04
   2  alpha         2.3449        .60862        .18631        .46761E-04
   3  Normalizat    .98584        .22885        .86938E-01    .29605E-04
   4  Prefactor     .96468        .99968E-01    .45825E-01   -.57075E-07
                               ERR DEF=  .500    
Final values: 
  norm       = 7.35136
  alpha      = 2.34494
  Normalizat = 0.985841
  Prefactor  = 0.964676
 **********
 **   18 **HESSE 
 **********

 FCN=   8743.348     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .61E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.3514        1.7765        .54426E-04   -1.5166    
   2  alpha         2.3449        .25255        .79248E-02   -.62063E-01
   3  Normalizat    .98584        .26044        .38493E-03   -.93506    
   4  Prefactor     .96468        .11514        .17529E-03   -.93916    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.12674e-13
Minuit parameter uncertainties:
  1  1.77649
  2  0.252981
  3  0.260773
  4  0.115168
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/400980': 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) = 8743.34811848
delta logL = 0.317922893741

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  7.351e+00  1.776e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  2.345e+00  2.530e-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:  9.647e-01  1.152e-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:  9.858e-01  2.608e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 62.59
Ra Dec: 339.096 28.483
Photon Index (Free Index): 2.34 +/- 0.25
Photon Flux (Free Index): 2.83e-07 +/- 7.84e-08
Energy Flux (Free Index): 9.17e-05 +/- 2.23e-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/400980/cmap_HighResolution_526780801_527040001_4FGL_J2236.3+2828_daily_bin1109.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.45e-07', energy_flux2='9.17e-05', photon_flux_error='5.91e-08', dlogl='3.18e-01', energy_flux='9.91e-05', photon_flux2='2.83e-07', job_status='DONE', time_completed='2021-09-28 17:04:09.621212', photon_index_error2='0.25', photon_index2='2.34', ts='61.70', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='2.23e-05', EG='1.03', time_epoch_completed='1632873849.62', return_code='0', job_id='400980', GAL2='0.96', EG2='0.99', return_code2='0', energy_flux_error='2.40e-05', photon_flux_error2='7.84e-08', ts2='62.59', photon_index='2.15' WHERE bin_id='1109' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:04:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 400980: <4FGL_J2236.3+2828_daily_bin1109> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin1109 339.096 28.4832 526780801 527040001 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 :                                   667.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   834 sec.
    Turnaround time :                            837 sec.

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

