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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin503
RA = 339.096, Dec = 28.4832
tmin = 369705601, tmax = 369964801
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='397928', job_status='RUN', time_executed='2021-09-28 16:40:29.612795', time_epoch_executed='1632872429.61' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='503'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/397928

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/397928/ft1_4FGL_J2236.3+2828_daily_bin503.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/397928/ft2_4FGL_J2236.3+2828_daily_bin503.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/397928/ft1_4FGL_J2236.3+2828_daily_bin503.fits outfile=/scratch/kocevski/397928/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin503.fits ra=339.096 dec=28.4832 rad=12.0 tmin=369705601.0 tmax=369964801.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.85
user 3.54
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/397928/ft1_filtered_4FGL_J2236.3+2828_daily_bin503.fits" evtable="EVENTS" scfile=/scratch/kocevski/397928/ft2_4FGL_J2236.3+2828_daily_bin503.fits sctable="SC_DATA" outfile=/scratch/kocevski/397928/ltcube_369705601_369964801_4FGL_J2236.3+2828_daily_bin503.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/397928/ft2_4FGL_J2236.3+2828_daily_bin503.fits
.....................!
real 11.81
user 11.38
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/397928/ft1_filtered_4FGL_J2236.3+2828_daily_bin503.fits evtable="EVENTS" scfile=/scratch/kocevski/397928/ft2_4FGL_J2236.3+2828_daily_bin503.fits sctable="SC_DATA" expcube=/scratch/kocevski/397928/ltcube_369705601_369964801_4FGL_J2236.3+2828_daily_bin503.fits outfile=/scratch/kocevski/397928/expmap_369705601_369964801_4FGL_J2236.3+2828_daily_bin503.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/397928/ltcube_369705601_369964801_4FGL_J2236.3+2828_daily_bin503.fits
.....................!
real 189.79
user 185.17
sys 4.22

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/397928/ft1_filtered_4FGL_J2236.3+2828_daily_bin503.fits scfile=/scratch/kocevski/397928/ft2_4FGL_J2236.3+2828_daily_bin503.fits outfile=/scratch/kocevski/397928/cmap_369705601_369964801_4FGL_J2236.3+2828_daily_bin503.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.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.171       1.0000         .10000E-03   10000.    
     2 'norm      '    .63886       1.0000         .10000E-03   10000.    
     3 'Prefactor '    97.000       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10318E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.888       1.0000         .10000E-03   10000.    
     8 'norm      '    1.7891       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.0622       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.4545       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.730       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.362       1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.272       1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.262       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.2114       1.0000         .10000E-03   10000.    
    19 'norm      '    7.5117       1.0000         .10000E-03   10000.    
    20 'Prefactor '    33.230       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0532       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .82170       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=   8539.418     FROM MIGRAD    STATUS=CONVERGED    451 CALLS     2751 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.169        12.601        .75513E-06   -.37748E-04
   2  norm          .63891        .66795        .48537E-07    .80767E-04
   3  Prefactor     97.008        58.320        .73436E-05   -.38716E-04
   4  Prefactor     .10000E-03    42.906        .28022E-04** at limit **
   5  norm          .10000E-03    1.2295        .42655E-07** at limit **
   6  Prefactor     .10000E-03    46.750       -.28856E-04** at limit **
   7  Prefactor     11.889        14.047        .77907E-06   -.21151E-03
   8  norm          1.7892        1.2161        .75852E-07   -.43426E-03
   9  Prefactor     9.0562        131.79       -.18501E-04   -.10343E-05
  10  Prefactor     .10000E-03    11.513        .12256E-07** at limit **
  11  norm          2.4545        1.5030        .56993E-07    .11901E-03
  12  Prefactor     13.729        9.6575        .24851E-06   -.21420E-04
  13  Prefactor     .10000E-03    16.969        .10505E-06** at limit **
  14  Prefactor     18.363        13.062       -.24033E-06   -.42973E-04
  15  Prefactor     15.270        27.465       -.24495E-05   -.75771E-05
  16  norm          .10000E-03    .75736       -.54142E-07** at limit **
  17  Prefactor     14.266        19.358        .23679E-05   -.25429E-04
  18  Prefactor     9.2086        14.832       -.12444E-05   -.27672E-04
  19  norm          7.5088        7.0677       -.19314E-05   -.17848E-03
  20  Prefactor     33.243        25.262        .11821E-04   -.11389E-04
  21  Normalizat    1.0532        .23077       -.43869E-05   -.11039E-03
  22  Prefactor     .82169        .97322E-01    .60365E-06   -.56605E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.1687
  norm       = 0.638911
  Prefactor  = 97.0081
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.8886
  norm       = 1.78924
  Prefactor  = 9.05624
  Prefactor  = 0.0001
  norm       = 2.45446
  Prefactor  = 13.7292
  Prefactor  = 0.0001
  Prefactor  = 18.3632
  Prefactor  = 15.2698
  norm       = 0.0001
  Prefactor  = 14.2658
  Prefactor  = 9.20858
  norm       = 7.50876
  Prefactor  = 33.2433
  Normalizat = 1.0532
  Prefactor  = 0.821685
 **********
 **   18 **HESSE 
 **********

 FCN=   8539.418     FROM HESSE     STATUS=OK           346 CALLS     3097 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.169        12.584        .91474E-04   -1.4832    
   2  norm          .63891        .66227        .73722E-04   -1.5548    
   3  Prefactor     97.008        58.296        .40813E-04   -1.3735    
   4  Prefactor     .10000E-03    43.715        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.2315        .10007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    46.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.889        14.091        .11619E-03   -1.5018    
   8  norm          1.7892        1.2137        .79733E-04   -1.5440    
   9  Prefactor     9.0562        133.01        .13314E-03   -1.5106    
  10  Prefactor     .10000E-03    11.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.4545        1.5062        .86109E-04   -1.5395    
  12  Prefactor     13.729        9.6559        .10810E-03   -1.4967    
  13  Prefactor     .10000E-03    17.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.363        13.070        .93467E-04   -1.4851    
  15  Prefactor     15.270        27.465        .10249E-03   -1.4926    
  16  norm          .10000E-03    .78364        .15673E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     14.266        19.369        .10606E-03   -1.4952    
  18  Prefactor     9.2086        14.832        .13205E-03   -1.5101    
  19  norm          7.5088        7.0736        .14633E-03   -1.5160    
  20  Prefactor     33.243        25.390        .69513E-04   -1.4554    
  21  Normalizat    1.0532        .27121        .37287E-03   -.91269    
  22  Prefactor     .82169        .11539        .18170E-03   -.98934    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.98894e-10
Minuit parameter uncertainties:
  1  12.5854
  2  0.662279
  3  58.3307
  4  0.000478475
  5  1.44069e-07
  6  2.7211e-05
  7  14.0949
  8  1.21368
  9  69.6009
  10  1.31754e-05
  11  1.5062
  12  9.65699
  13  3.86508e-05
  14  13.072
  15  27.488
  16  7.09211e-07
  17  19.3774
  18  14.8379
  19  7.07442
  20  25.3978
  21  0.271568
  22  0.115427
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  1.789e+00  1.214e+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:  8.217e-01  1.154e-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.053e+00  2.716e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.43
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 5.74e-08 +/- 3.89e-08
Energy Flux (Fixed Index): 2.33e-05 +/- 1.58e-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) = 8538.4947351
delta logL = 0.922868513708

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8538.4885982
delta logL = 0.929005421915

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7016       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9729       1.0000          .0000       5.0000    
     3 'Normalizat'    .95463       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84733       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=   8538.489     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      207 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7016        12.162        .80612E-02    .28938E-02
   2  alpha         2.9729        3.9864        .35840        .53037E-04
   3  Normalizat    .95462        .85360E-01    .87960E-01   -.64699E-04
   4  Prefactor     .84734        .34844E-01    .44330E-01   -.21424E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.70164
  alpha      = 2.97292
  Normalizat = 0.954617
  Prefactor  = 0.847337
 **********
 **   18 **HESSE 
 **********

 FCN=   8538.489     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7016        1.1577        .55762E-04   -1.5447    
   2  alpha         2.9729        .62833        .14088E-01    .19031    
   3  Normalizat    .95462        .26731        .38950E-03   -.94567    
   4  Prefactor     .84734        .11371        .17915E-03   -.98006    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55698e-09
Minuit parameter uncertainties:
  1  1.15772
  2  0.635405
  3  0.267683
  4  0.113742
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/397928': 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) = 8538.48859819
delta logL = 0.929005423217

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  1.702e+00  1.158e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  2.973e+00  6.354e-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.473e-01  1.137e-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.546e-01  2.677e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.83
Ra Dec: 339.096 28.483
Photon Index (Free Index): 2.97 +/- 0.64
Photon Flux (Free Index): 1.31e-07 +/- 7.51e-08
Energy Flux (Free Index): 2.74e-05 +/- 1.35e-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/397928/cmap_HighResolution_369705601_369964801_4FGL_J2236.3+2828_daily_bin503.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.74e-08', energy_flux2='2.74e-05', photon_flux_error='3.89e-08', dlogl='9.29e-01', energy_flux='2.33e-05', photon_flux2='1.31e-07', job_status='DONE', time_completed='2021-09-28 16:51:49.929581', photon_index_error2='0.64', photon_index2='2.97', ts='5.43', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='1.35e-05', EG='1.05', time_epoch_completed='1632873109.93', return_code='0', job_id='397928', GAL2='0.85', EG2='0.95', return_code2='0', energy_flux_error='1.58e-05', photon_flux_error2='7.51e-08', ts2='7.83', photon_index='2.15' WHERE bin_id='503' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:51:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 397928: <4FGL_J2236.3+2828_daily_bin503> in cluster <slac> Done

Job <4FGL_J2236.3+2828_daily_bin503> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 16:40:12 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:40:14 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:40:14 2021
Terminated at Tue Sep 28 16:51:50 2021
Results reported at Tue Sep 28 16:51:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin503 339.096 28.4832 369705601 369964801 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 :                                   678.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             360.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   696 sec.
    Turnaround time :                            698 sec.

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

