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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin1300
RA = 339.096, Dec = 28.4832
tmin = 576288001, tmax = 576547201
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='401259', job_status='RUN', time_executed='2021-09-28 16:52:36.707008', time_epoch_executed='1632873156.71' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='1300'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/401259

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/401259/ft1_4FGL_J2236.3+2828_daily_bin1300.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/401259/ft2_4FGL_J2236.3+2828_daily_bin1300.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/401259/ft1_4FGL_J2236.3+2828_daily_bin1300.fits outfile=/scratch/kocevski/401259/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1300.fits ra=339.096 dec=28.4832 rad=12.0 tmin=576288001.0 tmax=576547201.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.38
user 3.08
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/401259/ft2_4FGL_J2236.3+2828_daily_bin1300.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/401259/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1300.fits evtable="EVENTS" outfile="/scratch/kocevski/401259/ft1_filtered_4FGL_J2236.3+2828_daily_bin1300.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/401259/ft1_filtered_4FGL_J2236.3+2828_daily_bin1300.fits" evtable="EVENTS" scfile=/scratch/kocevski/401259/ft2_4FGL_J2236.3+2828_daily_bin1300.fits sctable="SC_DATA" outfile=/scratch/kocevski/401259/ltcube_576288001_576547201_4FGL_J2236.3+2828_daily_bin1300.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/401259/ft2_4FGL_J2236.3+2828_daily_bin1300.fits
.....................!
real 10.84
user 10.23
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/401259/ft1_filtered_4FGL_J2236.3+2828_daily_bin1300.fits evtable="EVENTS" scfile=/scratch/kocevski/401259/ft2_4FGL_J2236.3+2828_daily_bin1300.fits sctable="SC_DATA" expcube=/scratch/kocevski/401259/ltcube_576288001_576547201_4FGL_J2236.3+2828_daily_bin1300.fits outfile=/scratch/kocevski/401259/expmap_576288001_576547201_4FGL_J2236.3+2828_daily_bin1300.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/401259/ltcube_576288001_576547201_4FGL_J2236.3+2828_daily_bin1300.fits
.....................!
real 191.19
user 185.36
sys 5.28

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/401259/ft1_filtered_4FGL_J2236.3+2828_daily_bin1300.fits scfile=/scratch/kocevski/401259/ft2_4FGL_J2236.3+2828_daily_bin1300.fits outfile=/scratch/kocevski/401259/cmap_576288001_576547201_4FGL_J2236.3+2828_daily_bin1300.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/401259/ft1_filtered_4FGL_J2236.3+2828_daily_bin1300.fits scfile=/scratch/kocevski/401259/ft2_4FGL_J2236.3+2828_daily_bin1300.fits outfile=/scratch/kocevski/401259/cmap_HighResolution_576288001_576547201_4FGL_J2236.3+2828_daily_bin1300.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/401259/ft1_filtered_4FGL_J2236.3+2828_daily_bin1300.fits evtable="EVENTS" scfile=/scratch/kocevski/401259/ft2_4FGL_J2236.3+2828_daily_bin1300.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/401259/Model_4FGL_J2236.3+2828_daily_bin1300.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/401259/ft1_filtered_4FGL_J2236.3+2828_daily_bin1300.fits.....................!
real 94.81
user 93.12
sys 1.35

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/401259/ft1_filtered_4FGL_J2236.3+2828_daily_bin1300.fits', '/scratch/kocevski/401259/ft2_4FGL_J2236.3+2828_daily_bin1300.fits', expMap='/scratch/kocevski/401259/expmap_576288001_576547201_4FGL_J2236.3+2828_daily_bin1300.fits', expCube='/scratch/kocevski/401259/ltcube_576288001_576547201_4FGL_J2236.3+2828_daily_bin1300.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/401259/Model_4FGL_J2236.3+2828_daily_bin1300.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/401259/ft1_filtered_4FGL_J2236.3+2828_daily_bin1300.fits
Spacecraft file(s): /scratch/kocevski/401259/ft2_4FGL_J2236.3+2828_daily_bin1300.fits
Exposure map: /scratch/kocevski/401259/expmap_576288001_576547201_4FGL_J2236.3+2828_daily_bin1300.fits
Exposure cube: /scratch/kocevski/401259/ltcube_576288001_576547201_4FGL_J2236.3+2828_daily_bin1300.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/401259/Model_4FGL_J2236.3+2828_daily_bin1300.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 9028.28118521

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.3021       1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.383       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.2214       1.0000         .10000E-03   10000.    
     5 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.735       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.9522       1.0000         .10000E-03   10000.    
     8 'norm      '    8.2001       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.033       1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.670       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .96160       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.9945       1.0000         .10000E-03   10000.    
    20 'Prefactor '    24.165       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .82315       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99098       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=   9028.212     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     2399 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.4893        .90712E-02** at limit **
   2  norm          1.3020        .91430        .96774E-02    .71056E-03
   3  Prefactor     13.377        26.992        .27373E-02    .40784E-03
   4  Prefactor     5.2178        15.017        .43979E-02   -.29908E-03
   5  norm          .10000E-03    1.9467        .90712E-02** at limit **
   6  Prefactor     21.735        97.913        .21479E-02    .18706E-04
   7  Prefactor     3.9460        13.758        .50726E-02   -.33241E-03
   8  norm          8.2003        1.9135        .35001E-02    .30525E-04
   9  Prefactor     .10000E-03    27.460        .90712E-02** at limit **
  10  Prefactor     23.023        25.978        .20865E-02    .61047E-03
  11  norm          .10000E-03    .63796        .90712E-02** at limit **
  12  Prefactor     .10000E-03    7.2764        .90712E-02** at limit **
  13  Prefactor     .10000E-03    19.209        .90712E-02** at limit **
  14  Prefactor     17.668        14.962        .23820E-02   -.73612E-03
  15  Prefactor     .10000E-03    11.112        .90712E-02** at limit **
  16  norm          .96082        1.4033        .26861E-01    .10851E-02
  17  Prefactor     .10000E-03    13.109        .90712E-02** at limit **
  18  Prefactor     .10000E-03    6.9277        .90712E-02** at limit **
  19  norm          1.9711        6.3961        .73330E-02    .95517E-03
  20  Prefactor     24.230        23.578        .20372E-02    .20324E-03
  21  Normalizat    .82314        .23398        .95108E-01    .31589E-04
  22  Prefactor     .99102        .97997E-01    .46154E-01   -.41758E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.30197
  Prefactor  = 13.3766
  Prefactor  = 5.2178
  norm       = 0.0001
  Prefactor  = 21.7347
  Prefactor  = 3.94599
  norm       = 8.20029
  Prefactor  = 0.0001
  Prefactor  = 23.0233
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.6677
  Prefactor  = 0.0001
  norm       = 0.960818
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.97105
  Prefactor  = 24.2298
  Normalizat = 0.823138
  Prefactor  = 0.99102
 **********
 **   18 **HESSE 
 **********

 FCN=   9028.212     FROM HESSE     STATUS=OK           338 CALLS     2737 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.4935        .14640E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.3020        .90193        .72427E-04   -1.5480    
   3  Prefactor     13.377        26.988        .10949E-03   -1.4976    
   4  Prefactor     5.2178        14.962        .17591E-03   -1.5251    
   5  norm          .10000E-03    1.9541        .12944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     21.735        97.641        .85915E-04   -1.4775    
   7  Prefactor     3.9460        13.758        .20290E-03   -1.5311    
   8  norm          8.2003        1.9158        .57862E-04   -1.5135    
   9  Prefactor     .10000E-03    27.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     23.023        25.997        .83461E-04   -1.4748    
  11  norm          .10000E-03    .64426        .74098E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.3198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     17.668        14.950        .95279E-04   -1.4867    
  15  Prefactor     .10000E-03    11.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .96082        1.2429        .12749E-02   -1.5512    
  17  Prefactor     .10000E-03    13.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.9333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.9711        6.1629        .29332E-03   -1.5427    
  20  Prefactor     24.230        22.831        .81486E-04   -1.4723    
  21  Normalizat    .82314        .26566        .42136E-03   -.99216    
  22  Prefactor     .99102        .11336        .17396E-03   -.93029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.75191e-09
Minuit parameter uncertainties:
  1  9.46708e-06
  2  0.901935
  3  27.0127
  4  14.9725
  5  9.07753e-06
  6  92.3864
  7  13.7689
  8  1.91585
  9  0.000155495
  10  26.0102
  11  3.61607e-07
  12  2.50009e-05
  13  8.6969e-05
  14  14.9536
  15  4.15772e-05
  16  1.24295
  17  8.13306e-06
  18  2.85864e-05
  19  6.16483
  20  22.8387
  21  0.266085
  22  0.113385
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  8.200e+00  1.916e+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.910e-01  1.134e-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:  8.231e-01  2.661e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 62.51
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 2.63e-07 +/- 6.14e-08
Energy Flux (Fixed Index): 1.07e-04 +/- 2.49e-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) = 9028.20061644
delta logL = 0.0112049792933

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9028.20013622
delta logL = 0.0116852035007

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.2279       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1131       1.0000          .0000       5.0000    
     3 'Normalizat'    .82994       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98930       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=   9028.200     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      206 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.2279        2.1202        .34942E-02   -.11293E-03
   2  alpha         2.1131        .23842        .17591        .13958E-04
   3  Normalizat    .82996        .21841        .94763E-01    .39707E-04
   4  Prefactor     .98928        .96952E-01    .46133E-01   -.14992E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 8.22787
  alpha      = 2.11313
  Normalizat = 0.829956
  Prefactor  = 0.989284
 **********
 **   18 **HESSE 
 **********

 FCN=   9028.200     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.2279        1.8514        .58287E-04   -1.5134    
   2  alpha         2.1131        .21328        .75611E-02   -.15537    
   3  Normalizat    .82996        .25044        .41983E-03   -.98967    
   4  Prefactor     .98928        .11132        .17410E-03   -.93088    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08615e-12
Minuit parameter uncertainties:
  1  1.85138
  2  0.213546
  3  0.250789
  4  0.111348
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/401259': 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) = 9028.20013621
delta logL = 0.0116852129195

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  8.228e+00  1.851e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  2.113e+00  2.135e-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.893e-01  1.113e-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:  8.300e-01  2.508e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 62.62
Ra Dec: 339.096 28.483
Photon Index (Free Index): 2.11 +/- 0.21
Photon Flux (Free Index): 2.57e-07 +/- 7.03e-08
Energy Flux (Free Index): 1.09e-04 +/- 2.77e-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/401259/cmap_HighResolution_576288001_576547201_4FGL_J2236.3+2828_daily_bin1300.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.63e-07', energy_flux2='1.09e-04', photon_flux_error='6.14e-08', dlogl='1.17e-02', energy_flux='1.07e-04', photon_flux2='2.57e-07', job_status='DONE', time_completed='2021-09-28 17:04:04.778939', photon_index_error2='0.21', photon_index2='2.11', ts='62.51', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='2.77e-05', EG='0.82', time_epoch_completed='1632873844.78', return_code='0', job_id='401259', GAL2='0.99', EG2='0.83', return_code2='0', energy_flux_error='2.49e-05', photon_flux_error2='7.03e-08', ts2='62.62', photon_index='2.15' WHERE bin_id='1300' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:04:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 401259: <4FGL_J2236.3+2828_daily_bin1300> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin1300 339.096 28.4832 576288001 576547201 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 :                                   665.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            813 sec.

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

