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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin1101
RA = 339.096, Dec = 28.4832
tmin = 524707201, tmax = 524966401
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='399931', job_status='RUN', time_executed='2021-09-28 16:47:51.350578', time_epoch_executed='1632872871.35' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='1101'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/399931

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/399931/ft1_4FGL_J2236.3+2828_daily_bin1101.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/399931/ft2_4FGL_J2236.3+2828_daily_bin1101.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/399931/ft1_4FGL_J2236.3+2828_daily_bin1101.fits outfile=/scratch/kocevski/399931/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1101.fits ra=339.096 dec=28.4832 rad=12.0 tmin=524707201.0 tmax=524966401.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.49
user 3.14
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/399931/ft1_filtered_4FGL_J2236.3+2828_daily_bin1101.fits evtable="EVENTS" scfile=/scratch/kocevski/399931/ft2_4FGL_J2236.3+2828_daily_bin1101.fits sctable="SC_DATA" expcube=/scratch/kocevski/399931/ltcube_524707201_524966401_4FGL_J2236.3+2828_daily_bin1101.fits outfile=/scratch/kocevski/399931/expmap_524707201_524966401_4FGL_J2236.3+2828_daily_bin1101.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/399931/ltcube_524707201_524966401_4FGL_J2236.3+2828_daily_bin1101.fits
.....................!
real 191.62
user 186.82
sys 4.45

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/399931/ft1_filtered_4FGL_J2236.3+2828_daily_bin1101.fits scfile=/scratch/kocevski/399931/ft2_4FGL_J2236.3+2828_daily_bin1101.fits outfile=/scratch/kocevski/399931/cmap_524707201_524966401_4FGL_J2236.3+2828_daily_bin1101.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.55
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/399931/ft1_filtered_4FGL_J2236.3+2828_daily_bin1101.fits scfile=/scratch/kocevski/399931/ft2_4FGL_J2236.3+2828_daily_bin1101.fits outfile=/scratch/kocevski/399931/cmap_HighResolution_524707201_524966401_4FGL_J2236.3+2828_daily_bin1101.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/399931/ft1_filtered_4FGL_J2236.3+2828_daily_bin1101.fits evtable="EVENTS" scfile=/scratch/kocevski/399931/ft2_4FGL_J2236.3+2828_daily_bin1101.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/399931/Model_4FGL_J2236.3+2828_daily_bin1101.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/399931/ft1_filtered_4FGL_J2236.3+2828_daily_bin1101.fits.....................!
real 99.54
user 98.18
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .32046       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .94826       1.0000         .10000E-03   10000.    
     6 'Prefactor '    104.90       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.696       1.0000         .10000E-03   10000.    
     8 'norm      '    6.4969       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.5567       1.0000         .10000E-03   10000.    
    11 'norm      '    1.8754       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.8454       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.7473       1.0000         .10000E-03   10000.    
    19 'norm      '    8.9648       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .64290       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0663       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9415.825     FROM MIGRAD    STATUS=CONVERGED    459 CALLS     2363 TOTAL
                     EDM=   .29E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.0484         .0000    ** at limit **
   2  norm          .32071        .74787         .0000        .29184E-02
   3  Prefactor     .10010E-03    21.016         .0000    ** at limit **
   4  Prefactor     .10002E-03    7.6307         .0000    ** at limit **
   5  norm          .94758        6.5116         .0000        .46695E-01
   6  Prefactor     104.90        91.085         .0000        .19414E-02
   7  Prefactor     12.696        12.894         .0000       -.29045E-03
   8  norm          6.4969        1.6544         .0000       -.26883E-04
   9  Prefactor     .10013E-03    21.084         .0000    ** at limit **
  10  Prefactor     5.5565        15.744         .0000        .19044E-03
  11  norm          1.8753        1.4622         .0000        .11582E-03
  12  Prefactor     .10000E-03    4.0405         .0000    ** at limit **
  13  Prefactor     .10000E-03    5.1232         .0000    ** at limit **
  14  Prefactor     .10095E-03    15.791         .0000    ** at limit **
  15  Prefactor     .10000E-03    7.7524         .0000    ** at limit **
  16  norm          2.8456        1.4860         .0000        .18482E-03
  17  Prefactor     .10000E-03    12.042         .0000    ** at limit **
  18  Prefactor     1.7509        53.725         .0000       -.77351E-03
  19  norm          8.9651        5.1106         .0000        .46995E-03
  20  Prefactor     .10023E-03    10.681         .0000    ** at limit **
  21  Normalizat    .64292        .23713         .0000        .81072E-04
  22  Prefactor     1.0662        .10394         .0000        .13040E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 0.320712
  Prefactor  = 0.000100103
  Prefactor  = 0.000100015
  norm       = 0.94758
  Prefactor  = 104.901
  Prefactor  = 12.696
  norm       = 6.49691
  Prefactor  = 0.000100126
  Prefactor  = 5.55647
  norm       = 1.87532
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100953
  Prefactor  = 0.000100004
  norm       = 2.84559
  Prefactor  = 0.000100004
  Prefactor  = 1.75091
  norm       = 8.96515
  Prefactor  = 0.000100229
  Normalizat = 0.642924
  Prefactor  = 1.06622
 **********
 **   18 **HESSE 
 **********

 FCN=   9415.825     FROM HESSE     STATUS=OK           340 CALLS     2703 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.0662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .32071        .73475        .12176E-03   -1.5595    
   3  Prefactor     .10010E-03    21.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10002E-03    7.6451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .94758        6.6964        .23691E-02   -1.5513    
   6  Prefactor     104.90        91.041        .19631E-03   -1.3656    
   7  Prefactor     12.696        12.863        .11242E-03   -1.4995    
   8  norm          6.4969        1.6526        .58494E-04   -1.5198    
   9  Prefactor     .10013E-03    21.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.5565        15.720        .17043E-03   -1.5236    
  11  norm          1.8753        1.4591        .10084E-03   -1.5434    
  12  Prefactor     .10000E-03    4.0480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.1256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10095E-03    16.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.7586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.8456        1.4820        .81598E-04   -1.5371    
  17  Prefactor     .10000E-03    12.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.7509        53.915        .31725E-03   -1.5443    
  19  norm          8.9651        5.1018        .13386E-03   -1.5109    
  20  Prefactor     .10023E-03    10.740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .64292        .25861        .47218E-03   -1.0619    
  22  Prefactor     1.0662        .11533        .16929E-03   -.90554    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5151e-07
Minuit parameter uncertainties:
  1  0.000116432
  2  0.73477
  3  0.00293925
  4  0.000677612
  5  5.03853
  6  91.1622
  7  12.8657
  8  1.65263
  9  0.00325551
  10  15.7319
  11  1.4591
  12  0.000103205
  13  0.000200665
  14  0.00785243
  15  0.000336004
  16  1.482
  17  0.000428836
  18  19.4506
  19  5.10205
  20  0.00313526
  21  0.259098
  22  0.115361
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  6.497e+00  1.653e+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.066e+00  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:  6.429e-01  2.591e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 49.68
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 2.08e-07 +/- 5.30e-08
Energy Flux (Fixed Index): 8.45e-05 +/- 2.15e-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) = 9414.96916152
delta logL = 0.855674122216

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9414.95935296
delta logL = 0.865482679839

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.2632       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8195       1.0000          .0000       5.0000    
     3 'Normalizat'    .70615       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0493       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=   9414.959     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      210 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.2613        1.6329        .40099E-02   -.66675E-03
   2  alpha         1.8190        .22382        .20465       -.26063E-04
   3  Normalizat    .70603        .22559        .10205        .54816E-03
   4  Prefactor     1.0493        .10126        .39948E-01    .90110E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.26126
  alpha      = 1.81902
  Normalizat = 0.706026
  Prefactor  = 1.04933
 **********
 **   18 **HESSE 
 **********

 FCN=   9414.959     FROM HESSE     STATUS=OK            29 CALLS      239 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.2613        1.7190        .60856E-04   -1.5207    
   2  alpha         1.8190        .24541        .86660E-02   -.27588    
   3  Normalizat    .70603        .25383        .45231E-03   -1.0366    
   4  Prefactor     1.0493        .11411        .17057E-03   -.91103    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10409e-09
Minuit parameter uncertainties:
  1  1.71904
  2  0.245838
  3  0.254252
  4  0.114134
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/399931': 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) = 9414.95934943
delta logL = 0.865486209477

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  6.261e+00  1.719e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  1.819e+00  2.458e-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.049e+00  1.141e-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.060e-01  2.543e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 51.34
Ra Dec: 339.096 28.483
Photon Index (Free Index): 1.82 +/- 0.25
Photon Flux (Free Index): 1.58e-07 +/- 5.53e-08
Energy Flux (Free Index): 1.06e-04 +/- 3.54e-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/399931/cmap_HighResolution_524707201_524966401_4FGL_J2236.3+2828_daily_bin1101.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.08e-07', energy_flux2='1.06e-04', photon_flux_error='5.30e-08', dlogl='8.65e-01', energy_flux='8.45e-05', photon_flux2='1.58e-07', job_status='DONE', time_completed='2021-09-28 16:59:16.848807', photon_index_error2='0.25', photon_index2='1.82', ts='49.68', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='3.54e-05', EG='0.64', time_epoch_completed='1632873556.85', return_code='0', job_id='399931', GAL2='1.05', EG2='0.71', return_code2='0', energy_flux_error='2.15e-05', photon_flux_error2='5.53e-08', ts2='51.34', photon_index='2.15' WHERE bin_id='1101' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:59:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 399931: <4FGL_J2236.3+2828_daily_bin1101> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin1101 339.096 28.4832 524707201 524966401 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 :                                   679.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   806 sec.
    Turnaround time :                            807 sec.

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

