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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin1014
RA = 339.096, Dec = 28.4832
tmin = 502156801, tmax = 502416001
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='399802', job_status='RUN', time_executed='2021-09-28 16:48:39.161860', time_epoch_executed='1632872919.16' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='1014'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/399802

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/399802/ft1_4FGL_J2236.3+2828_daily_bin1014.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/399802/ft2_4FGL_J2236.3+2828_daily_bin1014.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/399802/ft1_4FGL_J2236.3+2828_daily_bin1014.fits outfile=/scratch/kocevski/399802/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1014.fits ra=339.096 dec=28.4832 rad=12.0 tmin=502156801.0 tmax=502416001.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.03
user 3.80
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/399802/ft1_filtered_4FGL_J2236.3+2828_daily_bin1014.fits" evtable="EVENTS" scfile=/scratch/kocevski/399802/ft2_4FGL_J2236.3+2828_daily_bin1014.fits sctable="SC_DATA" outfile=/scratch/kocevski/399802/ltcube_502156801_502416001_4FGL_J2236.3+2828_daily_bin1014.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/399802/ft2_4FGL_J2236.3+2828_daily_bin1014.fits
.....................!
real 11.88
user 11.49
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/399802/ft1_filtered_4FGL_J2236.3+2828_daily_bin1014.fits evtable="EVENTS" scfile=/scratch/kocevski/399802/ft2_4FGL_J2236.3+2828_daily_bin1014.fits sctable="SC_DATA" expcube=/scratch/kocevski/399802/ltcube_502156801_502416001_4FGL_J2236.3+2828_daily_bin1014.fits outfile=/scratch/kocevski/399802/expmap_502156801_502416001_4FGL_J2236.3+2828_daily_bin1014.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/399802/ltcube_502156801_502416001_4FGL_J2236.3+2828_daily_bin1014.fits
.....................!
real 189.96
user 185.45
sys 4.19

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/399802/ft1_filtered_4FGL_J2236.3+2828_daily_bin1014.fits scfile=/scratch/kocevski/399802/ft2_4FGL_J2236.3+2828_daily_bin1014.fits outfile=/scratch/kocevski/399802/cmap_502156801_502416001_4FGL_J2236.3+2828_daily_bin1014.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/399802/ft1_filtered_4FGL_J2236.3+2828_daily_bin1014.fits scfile=/scratch/kocevski/399802/ft2_4FGL_J2236.3+2828_daily_bin1014.fits outfile=/scratch/kocevski/399802/cmap_HighResolution_502156801_502416001_4FGL_J2236.3+2828_daily_bin1014.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.3831       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.1080       1.0000         .10000E-03   10000.    
     5 'norm      '    5.5680       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    33.123       1.0000         .10000E-03   10000.    
     8 'norm      '    5.2686       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .98115       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.983       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.8103       1.0000         .10000E-03   10000.    
    16 'norm      '    1.5297       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4469       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .87908       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=   9904.178     FROM MIGRAD    STATUS=CONVERGED    487 CALLS     2023 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3832        7.9683        .94618E-07   -.19111E-05
   2  norm          .10000E-03    .27364        .17453E-07** at limit **
   3  Prefactor     .10000E-03    13.840        .12778E-06** at limit **
   4  Prefactor     6.1006        21.452        .11356E-05    .90233E-05
   5  norm          5.5675        5.1870        .62542E-07   -.37864E-04
   6  Prefactor     .10000E-03    52.723        .13145E-05** at limit **
   7  Prefactor     33.121        16.934        .43820E-07   -.50557E-04
   8  norm          5.2679        1.6009       -.73136E-07    .48496E-04
   9  Prefactor     .10000E-03    246.24       -.11232E-05** at limit **
  10  Prefactor     .10000E-03    46.731       -.16943E-05** at limit **
  11  norm          .97772        1.7340        .83227E-06    .47348E-03
  12  Prefactor     11.988        13.498       -.36888E-06   -.42981E-04
  13  Prefactor     .10000E-03    7.8460        .15485E-08** at limit **
  14  Prefactor     .10000E-03    9.5855        .14719E-06** at limit **
  15  Prefactor     5.8105        15.263        .35738E-05   -.39512E-04
  16  norm          1.5298        1.2834        .52142E-06   -.24357E-03
  17  Prefactor     .10000E-03    21.835        .10031E-06** at limit **
  18  Prefactor     .10000E-03    8.6186       -.42730E-07** at limit **
  19  norm          .10000E-03    5.8329       -.11717E-06** at limit **
  20  Prefactor     .10000E-03    13.414       -.20576E-06** at limit **
  21  Normalizat    1.4473        .23738       -.90388E-06   -.39004E-04
  22  Prefactor     .87894        .97918E-01   -.16801E-06   -.80778E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.38317
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.10064
  norm       = 5.56748
  Prefactor  = 0.000100003
  Prefactor  = 33.1211
  norm       = 5.26793
  Prefactor  = 0.000100002
  Prefactor  = 0.000100002
  norm       = 0.977717
  Prefactor  = 11.9878
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.81053
  norm       = 1.52976
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.44725
  Prefactor  = 0.878942
 **********
 **   18 **HESSE 
 **********

 FCN=   9904.178     FROM HESSE     STATUS=OK           344 CALLS     2367 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.3832        7.9698        .13846E-03   -1.5129    
   2  norm          .10000E-03    .28144        .10157E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.1006        21.442        .16245E-03   -1.5214    
   5  norm          5.5675        5.1864        .17026E-03   -1.5236    
   6  Prefactor     .10000E-03    53.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     33.121        16.973        .69625E-04   -1.4556    
   8  norm          5.2679        1.6009        .66279E-04   -1.5249    
   9  Prefactor     .10000E-03    247.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    47.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .97772        1.6449        .17021E-02   -1.5510    
  12  Prefactor     11.988        13.352        .11572E-03   -1.5015    
  13  Prefactor     .10000E-03    7.8528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.7232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.8105        15.092        .83308E-03   -1.5226    
  16  norm          1.5298        1.2757        .49223E-03   -1.5461    
  17  Prefactor     .10000E-03    21.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.6252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    6.0229        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    13.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.4473        .28243        .37096E-03   -.79271    
  22  Prefactor     .87894        .11662        .19705E-03   -.96881    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.99385e-10
Minuit parameter uncertainties:
  1  7.9708
  2  6.15701e-07
  3  4.31496e-05
  4  21.4687
  5  5.18682
  6  0.000855922
  7  16.9753
  8  1.60093
  9  0.00132106
  10  0.000559563
  11  1.64493
  12  13.3554
  13  4.01784e-06
  14  2.16836e-05
  15  15.1022
  16  1.27576
  17  4.54446e-05
  18  9.40587e-06
  19  3.68915e-06
  20  4.76433e-05
  21  0.282736
  22  0.116658
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  5.268e+00  1.601e+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.789e-01  1.167e-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.447e+00  2.827e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 39.17
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 1.69e-07 +/- 5.13e-08
Energy Flux (Fixed Index): 6.85e-05 +/- 2.08e-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) = 9902.3284244
delta logL = 1.84977249985

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9902.18980481
delta logL = 1.98839209748

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.2873       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5597       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5359       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85812       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=   9902.190     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      213 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.2851        1.4601        .48643E-02   -.23762E-04
   2  alpha         1.5591        .22856        .21820       -.62125E-04
   3  Normalizat    1.5359        .22757        .81794E-01    .16042E-04
   4  Prefactor     .85812        .97117E-01    .44469E-01    .14268E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.28511
  alpha      = 1.55908
  Normalizat = 1.53591
  Prefactor  = 0.858124
 **********
 **   18 **HESSE 
 **********

 FCN=   9902.190     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.2851        1.7594        .65296E-04   -1.5294    
   2  alpha         1.5591        .28879        .91996E-02   -.38587    
   3  Normalizat    1.5359        .27031        .36205E-03   -.76774    
   4  Prefactor     .85812        .11511        .19919E-03   -.97620    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01513e-09
Minuit parameter uncertainties:
  1  1.75945
  2  0.289544
  3  0.270566
  4  0.115143
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/399802': 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) = 9902.18980281
delta logL = 1.9883940937

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  4.285e+00  1.759e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  1.559e+00  2.895e-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.581e-01  1.151e-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.536e+00  2.706e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 43.07
Ra Dec: 339.096 28.483
Photon Index (Free Index): 1.56 +/- 0.29
Photon Flux (Free Index): 9.59e-08 +/- 4.50e-08
Energy Flux (Free Index): 1.09e-04 +/- 4.95e-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/399802/cmap_HighResolution_502156801_502416001_4FGL_J2236.3+2828_daily_bin1014.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.69e-07', energy_flux2='1.09e-04', photon_flux_error='5.13e-08', dlogl='1.99e+00', energy_flux='6.85e-05', photon_flux2='9.59e-08', job_status='DONE', time_completed='2021-09-28 17:00:00.379503', photon_index_error2='0.29', photon_index2='1.56', ts='39.17', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='4.95e-05', EG='1.45', time_epoch_completed='1632873600.38', return_code='0', job_id='399802', GAL2='0.86', EG2='1.54', return_code2='0', energy_flux_error='2.08e-05', photon_flux_error2='4.50e-08', ts2='43.07', photon_index='2.15' WHERE bin_id='1014' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:00:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 399802: <4FGL_J2236.3+2828_daily_bin1014> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin1014 339.096 28.4832 502156801 502416001 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.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            861 sec.

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

