/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 7 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7520
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2236.3+2828_daily_bin766
RA = 339.096, Dec = 28.4832
tmin = 437875201, tmax = 438134401
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='399439', job_status='RUN', time_executed='2021-09-28 16:45:32.077314', time_epoch_executed='1632872732.08' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='766'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/399439

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/399439/ft1_4FGL_J2236.3+2828_daily_bin766.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/399439/ft2_4FGL_J2236.3+2828_daily_bin766.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/399439/ft1_4FGL_J2236.3+2828_daily_bin766.fits outfile=/scratch/kocevski/399439/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin766.fits ra=339.096 dec=28.4832 rad=12.0 tmin=437875201.0 tmax=438134401.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 5.81
user 5.53
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/399439/ft1_filtered_4FGL_J2236.3+2828_daily_bin766.fits" evtable="EVENTS" scfile=/scratch/kocevski/399439/ft2_4FGL_J2236.3+2828_daily_bin766.fits sctable="SC_DATA" outfile=/scratch/kocevski/399439/ltcube_437875201_438134401_4FGL_J2236.3+2828_daily_bin766.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/399439/ft2_4FGL_J2236.3+2828_daily_bin766.fits
.....................!
real 12.13
user 11.76
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/399439/ft1_filtered_4FGL_J2236.3+2828_daily_bin766.fits evtable="EVENTS" scfile=/scratch/kocevski/399439/ft2_4FGL_J2236.3+2828_daily_bin766.fits sctable="SC_DATA" expcube=/scratch/kocevski/399439/ltcube_437875201_438134401_4FGL_J2236.3+2828_daily_bin766.fits outfile=/scratch/kocevski/399439/expmap_437875201_438134401_4FGL_J2236.3+2828_daily_bin766.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/399439/ltcube_437875201_438134401_4FGL_J2236.3+2828_daily_bin766.fits
.....................!
real 189.66
user 184.87
sys 4.39

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

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    198.54       1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.129       1.0000         .10000E-03   10000.    
     5 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .43045       1.0000         .10000E-03   10000.    
     9 'Prefactor '    103.00       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.4956       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .57544       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.6425       1.0000         .10000E-03   10000.    
    17 'Prefactor '    57.652       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    23.314       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10540E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .71262       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0782       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=   4226.354     FROM MIGRAD    STATUS=CONVERGED    502 CALLS     2374 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.9757        .15730E-07** at limit **
   2  norm          .10000E-03    .79382        .13425E-06** at limit **
   3  Prefactor     198.53        149.59       -.91335E-05    .10195E-04
   4  Prefactor     23.199        36.911        .14047E-04    .31546E-04
   5  norm          .10000E-03    3.9332        .62041E-07** at limit **
   6  Prefactor     .10000E-03    197.58       -.71885E-05** at limit **
   7  Prefactor     .10000E-03    8.6769       -.47736E-07** at limit **
   8  norm          .43173        1.4454       -.33188E-06   -.10467E-02
   9  Prefactor     102.95        112.47       -.46655E-04    .10215E-04
  10  Prefactor     .10000E-03    9.3700        .67790E-07** at limit **
  11  norm          2.4956        2.5811        .84593E-07    .49974E-04
  12  Prefactor     .10000E-03    16.215        .74252E-06** at limit **
  13  Prefactor     .10000E-03    31.830        .16011E-05** at limit **
  14  Prefactor     .44480        21.870       -.42956E-05   -.25508E-03
  15  Prefactor     .10000E-03    21.660       -.89514E-06** at limit **
  16  norm          2.6424        2.2167        .12698E-06   -.90180E-04
  17  Prefactor     57.683        46.629        .28470E-04    .16568E-03
  18  Prefactor     .10000E-03    14.512       -.53238E-06** at limit **
  19  norm          23.316        10.116       -.18495E-06    .14144E-03
  20  Prefactor     .10000E-03    67.717       -.51206E-05** at limit **
  21  Normalizat    .71268        .37055       -.17180E-04    .20941E-03
  22  Prefactor     1.0782        .15283        .36990E-05    .69366E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 198.532
  Prefactor  = 23.199
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.431729
  Prefactor  = 102.947
  Prefactor  = 0.0001
  norm       = 2.49557
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.444801
  Prefactor  = 0.0001
  norm       = 2.64236
  Prefactor  = 57.6827
  Prefactor  = 0.0001
  norm       = 23.3162
  Prefactor  = 0.0001
  Normalizat = 0.712684
  Prefactor  = 1.07822
 **********
 **   18 **HESSE 
 **********

 FCN=   4226.354     FROM HESSE     STATUS=OK           338 CALLS     2712 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.0064        .17932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.2742        .11220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     198.53        149.60        .14337E-03   -1.2881    
   4  Prefactor     23.199        36.839        .83288E-04   -1.4744    
   5  norm          .10000E-03    3.9396        .12592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    197.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.6865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .43173        1.4327        .13548E-03   -1.5577    
   9  Prefactor     102.95        112.39        .19809E-03   -1.3675    
  10  Prefactor     .10000E-03    9.3720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.4956        2.5772        .10329E-03   -1.5392    
  12  Prefactor     .10000E-03    16.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    31.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .44480        331.49        .55694E-02   -1.5575    
  15  Prefactor     .10000E-03    21.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.6424        2.2075        .84558E-04   -1.5383    
  17  Prefactor     57.683        46.947        .52835E-04   -1.4188    
  18  Prefactor     .10000E-03    14.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          23.316        10.096        .82958E-04   -1.4742    
  20  Prefactor     .10000E-03    68.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .71268        .39748        .47203E-03   -1.0339    
  22  Prefactor     1.0782        .16736        .17435E-03   -.90166    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06798e-08
Minuit parameter uncertainties:
  1  3.25044e-06
  2  1.31113e-05
  3  149.883
  4  36.8755
  5  8.67832e-06
  6  0.000312865
  7  9.31723e-06
  8  1.43279
  9  112.62
  10  9.9987e-06
  11  2.57731
  12  9.36434e-06
  13  0.000180064
  14  24.4195
  15  2.37215e-05
  16  2.20756
  17  46.9767
  18  7.37224e-05
  19  10.0965
  20  0.000281808
  21  0.399101
  22  0.167446
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  4.317e-01  1.433e+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.078e+00  1.674e-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.127e-01  3.991e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.11
Ra Dec: 339.096 28.483
Photon Flux Upper Limit: 1.38e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.61e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/399439/likelihoodResults_437875201_438134401_4FGL_J2236.3+2828_daily_bin766.txt

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) = 4226.28202176
delta logL = 0.0718592661724

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4226.27753441
delta logL = 0.0763466168855

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4226.278     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      244 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .53250        1.3513        .97378E-04   -.75840E-03
   2  alpha         2.8092        1.6407        .32537E-01   -.12740E-04
   3  Normalizat    .68902        .37521        .47973E-03   -.33628E-04
   4  Prefactor     1.0832        .16622        .17399E-03   -.92574E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.532495
  alpha      = 2.80919
  Normalizat = 0.689024
  Prefactor  = 1.08324
 **********
 **   18 **HESSE 
 **********

 FCN=   4226.278     FROM HESSE     STATUS=OK            25 CALLS      269 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .53250        1.2687        .38951E-05   -1.5562    
   2  alpha         2.8092        1.5557        .13015E-02    .12399    
   3  Normalizat    .68902        .37550        .19189E-04   -1.0433    
   4  Prefactor     1.0832        .16622        .34798E-04   -.90004    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55151e-10
Minuit parameter uncertainties:
  1  1.26874
  2  1.68147
  3  0.376913
  4  0.166303
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/399439': 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) = 4226.2775344
delta logL = 0.0763466317539

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  5.325e-01  1.269e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  2.809e+00  1.681e+00  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.083e+00  1.663e-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.890e-01  3.769e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.11
Ra Dec: 339.096 28.483

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/399439/cmap_HighResolution_437875201_438134401_4FGL_J2236.3+2828_daily_bin766.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.61e-05', job_status='DONE', photon_flux_upper_limit='1.38e-07', time_completed='2021-09-28 16:54:12.855072', job_id='399439', GAL2='1.08', fit_tolerance='1e-08', EG2='0.69', EG='0.71', time_epoch_completed='1632873252.86', return_code2='0', ts='0.11', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='7.63e-02', ts2='0.28', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='766' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:54:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 399439: <4FGL_J2236.3+2828_daily_bin766> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin766 339.096 28.4832 437875201 438134401 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 :                                   519.47 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             382.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   537 sec.
    Turnaround time :                            538 sec.

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

