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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin554
RA = 339.096, Dec = 28.4832
tmin = 382924801, tmax = 383184001
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='398001', job_status='RUN', time_executed='2021-09-28 16:40:36.496086', time_epoch_executed='1632872436.5' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='554'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/398001

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/398001/ft1_4FGL_J2236.3+2828_daily_bin554.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/398001/ft2_4FGL_J2236.3+2828_daily_bin554.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/398001/ft1_4FGL_J2236.3+2828_daily_bin554.fits outfile=/scratch/kocevski/398001/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin554.fits ra=339.096 dec=28.4832 rad=12.0 tmin=382924801.0 tmax=383184001.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.50
user 4.27
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/398001/ft1_filtered_4FGL_J2236.3+2828_daily_bin554.fits evtable="EVENTS" scfile=/scratch/kocevski/398001/ft2_4FGL_J2236.3+2828_daily_bin554.fits sctable="SC_DATA" expcube=/scratch/kocevski/398001/ltcube_382924801_383184001_4FGL_J2236.3+2828_daily_bin554.fits outfile=/scratch/kocevski/398001/expmap_382924801_383184001_4FGL_J2236.3+2828_daily_bin554.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/398001/ltcube_382924801_383184001_4FGL_J2236.3+2828_daily_bin554.fits
.....................!
real 196.05
user 190.45
sys 5.27

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/398001/ft1_filtered_4FGL_J2236.3+2828_daily_bin554.fits scfile=/scratch/kocevski/398001/ft2_4FGL_J2236.3+2828_daily_bin554.fits outfile=/scratch/kocevski/398001/cmap_382924801_383184001_4FGL_J2236.3+2828_daily_bin554.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=339.096 yref=28.4832 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/398001/ft1_filtered_4FGL_J2236.3+2828_daily_bin554.fits scfile=/scratch/kocevski/398001/ft2_4FGL_J2236.3+2828_daily_bin554.fits outfile=/scratch/kocevski/398001/cmap_HighResolution_382924801_383184001_4FGL_J2236.3+2828_daily_bin554.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.873       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 '    15.662       1.0000         .10000E-03   10000.    
     5 'norm      '    3.0125       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.4437       1.0000         .10000E-03   10000.    
     8 'norm      '    6.2233       1.0000         .10000E-03   10000.    
     9 'Prefactor '    42.469       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .54429       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    88.255       1.0000         .10000E-03   10000.    
    16 'norm      '    1.0572       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .75471E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11042E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.2688       1.0000         .10000E-03   10000.    
    20 'Prefactor '    34.125       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2423       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .91810       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=   9396.976     FROM MIGRAD    STATUS=CONVERGED    515 CALLS     2949 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.871        10.263       -.45300E-05    .20614E-03
   2  norm          .10000E-03    .35142        .97754E-07** at limit **
   3  Prefactor     .10000E-03    12.325        .22611E-07** at limit **
   4  Prefactor     15.662        18.903       -.14304E-05    .50500E-04
   5  norm          3.0124        6.0261       -.33137E-05   -.25281E-03
   6  Prefactor     .10000E-03    80.412       -.92936E-06** at limit **
   7  Prefactor     2.4476        20.972       -.25433E-05   -.67220E-04
   8  norm          6.2232        1.7446       -.78863E-07    .13645E-03
   9  Prefactor     42.424        75.262       -.36839E-04    .18817E-03
  10  Prefactor     .10000E-03    6.7851       -.31307E-07** at limit **
  11  norm          .54457        1.2418       -.62248E-06   -.22079E-02
  12  Prefactor     .10000E-03    3.4659       -.39312E-08** at limit **
  13  Prefactor     .10000E-03    13.634        .84439E-07** at limit **
  14  Prefactor     .10000E-03    8.4294       -.13166E-06** at limit **
  15  Prefactor     88.254        41.773       -.81562E-06    .68369E-04
  16  norm          1.0576        1.6808       -.78206E-06   -.16806E-02
  17  Prefactor     .10004E-03    24.218       -.25457E-05** at limit **
  18  Prefactor     .10000E-03    127.23        .53592E-06** at limit **
  19  norm          5.2693        7.3169        .17640E-06   -.33372E-03
  20  Prefactor     34.110        30.928        .32056E-05   -.10448E-04
  21  Normalizat    1.2420        .24737        .27028E-06    .32425E-03
  22  Prefactor     .91820        .10254        .19753E-05    .12393E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.8709
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.6625
  norm       = 3.01239
  Prefactor  = 0.0001
  Prefactor  = 2.44757
  norm       = 6.2232
  Prefactor  = 42.4242
  Prefactor  = 0.0001
  norm       = 0.544572
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 88.2537
  norm       = 1.05757
  Prefactor  = 0.000100036
  Prefactor  = 0.000100004
  norm       = 5.26927
  Prefactor  = 34.1101
  Normalizat = 1.24203
  Prefactor  = 0.918197
 **********
 **   18 **HESSE 
 **********

 FCN=   9396.976     FROM HESSE     STATUS=OK           354 CALLS     3303 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.871        10.209        .12150E-03   -1.5048    
   2  norm          .10000E-03    .52889        .10972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.662        18.892        .10120E-03   -1.4916    
   5  norm          3.0124        6.0494        .23384E-03   -1.5361    
   6  Prefactor     .10000E-03    80.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.4476        21.000        .26171E-03   -1.5395    
   8  norm          6.2232        1.7493        .64369E-04   -1.5209    
   9  Prefactor     42.424        74.137        .61515E-04   -1.4404    
  10  Prefactor     .10000E-03    6.7880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .54457        1.1358        .16074E-02   -1.5560    
  12  Prefactor     .10000E-03    3.4712        .17623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.4853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     88.254        41.637        .42768E-04   -1.3826    
  16  norm          1.0576        1.6695        .14928E-03   -1.5502    
  17  Prefactor     .10004E-03    25.308        .12252       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    129.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.2693        7.2949        .17511E-03   -1.5249    
  20  Prefactor     34.110        31.051        .68598E-04   -1.4539    
  21  Normalizat    1.2420        .29470        .38433E-03   -.85314    
  22  Prefactor     .91820        .12200        .19098E-03   -.95508    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.20173e-09
Minuit parameter uncertainties:
  1  10.211
  2  6.52936e-06
  3  2.16334e-06
  4  18.8991
  5  6.05064
  6  3.4197e-05
  7  14.3449
  8  1.7493
  9  74.2991
  10  2.21695e-06
  11  1.13584
  12  8.65155e-08
  13  2.97557e-05
  14  2.00514e-05
  15  41.651
  16  1.6696
  17  0.00191833
  18  0.00149943
  19  7.29612
  20  31.0657
  21  0.295097
  22  0.122037
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  6.223e+00  1.749e+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.182e-01  1.220e-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.242e+00  2.951e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 29.54
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 2.00e-07 +/- 5.61e-08
Energy Flux (Fixed Index): 8.09e-05 +/- 2.28e-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) = 9395.52554124
delta logL = 1.45035376669

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9395.52404756
delta logL = 1.45184744846

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.4851       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6587       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1211       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95240       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9395.524     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      283 TOTAL
                     EDM=   .49E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.4851        1.7403        .27295E-03   -.16194E-03
   2  alpha         2.6587        .32092        .88554E-02    .98391E-05
   3  Normalizat    1.1211        .28309        .40138E-03   -.56647E-07
   4  Prefactor     .95239        .12021        .18784E-03    .96835E-07
                               ERR DEF=  .500    
Final values: 
  norm       = 5.48507
  alpha      = 2.65873
  Normalizat = 1.12111
  Prefactor  = 0.952387
 **********
 **   18 **HESSE 
 **********

 FCN=   9395.524     FROM HESSE     STATUS=OK            25 CALLS      308 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.4851        1.6999        .10918E-04   -1.5240    
   2  alpha         2.6587        .31321        .35422E-03    .63537E-01
   3  Normalizat    1.1211        .28318        .16055E-04   -.89077    
   4  Prefactor     .95239        .12023        .37569E-04   -.94334    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52238e-12
Minuit parameter uncertainties:
  1  1.69994
  2  0.314034
  3  0.283563
  4  0.120263
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/398001': 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) = 9395.52404755
delta logL = 1.45184745278

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  5.485e+00  1.700e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  2.659e+00  3.140e-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.524e-01  1.203e-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.121e+00  2.836e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 32.93
Ra Dec: 339.096 28.483
Photon Index (Free Index): 2.66 +/- 0.31
Photon Flux (Free Index): 2.93e-07 +/- 9.05e-08
Energy Flux (Free Index): 7.33e-05 +/- 1.90e-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/398001/cmap_HighResolution_382924801_383184001_4FGL_J2236.3+2828_daily_bin554.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.00e-07', energy_flux2='7.33e-05', photon_flux_error='5.61e-08', dlogl='1.45e+00', energy_flux='8.09e-05', photon_flux2='2.93e-07', job_status='DONE', time_completed='2021-09-28 16:53:14.417077', photon_index_error2='0.31', photon_index2='2.66', ts='29.54', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='1.90e-05', EG='1.24', time_epoch_completed='1632873194.42', return_code='0', job_id='398001', GAL2='0.95', EG2='1.12', return_code2='0', energy_flux_error='2.28e-05', photon_flux_error2='9.05e-08', ts2='32.93', photon_index='2.15' WHERE bin_id='554' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:53:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 398001: <4FGL_J2236.3+2828_daily_bin554> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin554 339.096 28.4832 382924801 383184001 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 :                                   757.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             341.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            777 sec.

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

