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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin1501
RA = 339.096, Dec = 28.4832
tmin = 628387201, tmax = 628646401
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='401550', job_status='RUN', time_executed='2021-09-28 16:53:42.058519', time_epoch_executed='1632873222.06' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='1501'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/401550

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/401550/ft1_4FGL_J2236.3+2828_daily_bin1501.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/401550/ft2_4FGL_J2236.3+2828_daily_bin1501.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/401550/ft1_4FGL_J2236.3+2828_daily_bin1501.fits outfile=/scratch/kocevski/401550/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1501.fits ra=339.096 dec=28.4832 rad=12.0 tmin=628387201.0 tmax=628646401.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.58
user 3.31
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/401550/ft1_filtered_4FGL_J2236.3+2828_daily_bin1501.fits" evtable="EVENTS" scfile=/scratch/kocevski/401550/ft2_4FGL_J2236.3+2828_daily_bin1501.fits sctable="SC_DATA" outfile=/scratch/kocevski/401550/ltcube_628387201_628646401_4FGL_J2236.3+2828_daily_bin1501.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/401550/ft2_4FGL_J2236.3+2828_daily_bin1501.fits
.....................!
real 11.98
user 11.58
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/401550/ft1_filtered_4FGL_J2236.3+2828_daily_bin1501.fits evtable="EVENTS" scfile=/scratch/kocevski/401550/ft2_4FGL_J2236.3+2828_daily_bin1501.fits sctable="SC_DATA" expcube=/scratch/kocevski/401550/ltcube_628387201_628646401_4FGL_J2236.3+2828_daily_bin1501.fits outfile=/scratch/kocevski/401550/expmap_628387201_628646401_4FGL_J2236.3+2828_daily_bin1501.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/401550/ltcube_628387201_628646401_4FGL_J2236.3+2828_daily_bin1501.fits
.....................!
real 192.03
user 186.10
sys 5.56

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

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/401550/ft1_filtered_4FGL_J2236.3+2828_daily_bin1501.fits scfile=/scratch/kocevski/401550/ft2_4FGL_J2236.3+2828_daily_bin1501.fits outfile=/scratch/kocevski/401550/cmap_HighResolution_628387201_628646401_4FGL_J2236.3+2828_daily_bin1501.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.56
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9857       1.0000         .10000E-03   10000.    
     2 'norm      '    .73585       1.0000         .10000E-03   10000.    
     3 'Prefactor '    117.64       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .16166E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.833       1.0000         .10000E-03   10000.    
     8 'norm      '    1.3385       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .24793       1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.621       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.8108       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.1099       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .16741E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.337       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .65724       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .51231       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2637       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=   9808.902     FROM MIGRAD    STATUS=CONVERGED    863 CALLS     3237 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9852        3.9934        .13777E-02    .10042E-03
   2  norm          .73578        .62228        .72265E-03    .57793E-03
   3  Prefactor     117.62        68.200        .18549E-03   -.53689E-04
   4  Prefactor     .10000E-03    11.187        .92260E-01** at limit **
   5  norm          .10000E-03    1.3497        .11209E-02** at limit **
   6  Prefactor     .10000E-03    25.991        .18142E-02** at limit **
   7  Prefactor     14.831        10.089        .10400E-03   -.24618E-03
   8  norm          1.3383        .91062        .75568E-04   -.83496E-03
   9  Prefactor     .10000E-03    33.116        .18142E-02** at limit **
  10  Prefactor     .10000E-03    15.455        .18142E-02** at limit **
  11  norm          .24801        .90239        .15069E-02   -.58673E-03
  12  Prefactor     27.620        12.837        .76228E-04   -.31135E-03
  13  Prefactor     3.8114        14.193        .20677E-03   -.53554E-04
  14  Prefactor     5.1092        6.6587        .17786E-03   -.11812E-03
  15  Prefactor     .10000E-03    36.502        .18142E-02** at limit **
  16  norm          .10002E-03    .65016        .23467E-01** at limit **
  17  Prefactor     15.337        19.736        .10227E-03   -.22232E-04
  18  Prefactor     .62210        95.883        .68656E-02    .78791E-04
  19  norm          .10000E-03    1.4810        .11739E-02** at limit **
  20  Prefactor     .10000E-03    5.1787        .18142E-02** at limit **
  21  Normalizat    .51229        .24501        .50930E-03   -.59823E-04
  22  Prefactor     1.2637        .11613        .16337E-03    .26444E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.98521
  norm       = 0.735781
  Prefactor  = 117.621
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.8305
  norm       = 1.33829
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.248013
  Prefactor  = 27.6203
  Prefactor  = 3.81137
  Prefactor  = 5.10924
  Prefactor  = 0.0001
  norm       = 0.000100016
  Prefactor  = 15.3366
  Prefactor  = 0.622104
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.512289
  Prefactor  = 1.26375
 **********
 **   18 **HESSE 
 **********

 FCN=   9808.902     FROM HESSE     STATUS=OK           348 CALLS     3585 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9852        3.9920        .55109E-04   -1.5426    
   2  norm          .73578        .62207        .28906E-04   -1.5536    
   3  Prefactor     117.62        68.193        .74197E-05   -1.3535    
   4  Prefactor     .10000E-03    10.814        .94589E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.3498        .22418E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    25.991        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.831        10.088        .41599E-05   -1.4938    
   8  norm          1.3383        .91053        .30227E-05   -1.5477    
   9  Prefactor     .10000E-03    33.117        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.462        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .24801        .90062        .60276E-04   -1.5608    
  12  Prefactor     27.620        12.830        .15246E-04   -1.4656    
  13  Prefactor     3.8114        14.190        .82706E-05   -1.5317    
  14  Prefactor     5.1092        6.6584        .71144E-05   -1.5256    
  15  Prefactor     .10000E-03    36.528        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10002E-03    .60302        .25062E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     15.337        19.710        .40908E-05   -1.4925    
  18  Prefactor     .62210        98.383        .27462E-03   -1.5550    
  19  norm          .10000E-03    1.4811        .23477E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.1791        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .51229        .24503        .20372E-04   -1.1185    
  22  Prefactor     1.2637        .11611        .65348E-05   -.84391    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.21848e-10
Minuit parameter uncertainties:
  1  3.99253
  2  0.622072
  3  68.2389
  4  6.40601e-05
  5  1.81475e-06
  6  9.08553e-05
  7  10.0892
  8  0.910543
  9  0.000132992
  10  3.99077e-05
  11  0.900671
  12  12.8313
  13  14.2028
  14  6.65938
  15  8.06186e-05
  16  0.000195853
  17  19.7179
  18  15.6717
  19  1.45142e-06
  20  1.78153e-05
  21  0.245543
  22  0.116132
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  1.338e+00  9.105e-01  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.264e+00  1.161e-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:  5.123e-01  2.455e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.59
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 4.29e-08 +/- 2.92e-08
Energy Flux (Fixed Index): 1.74e-05 +/- 1.18e-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) = 9808.61436673
delta logL = 0.287470395922

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9808.59564197
delta logL = 0.306195152381

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1644       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6835       1.0000          .0000       5.0000    
     3 'Normalizat'    .53346       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2586       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=   9808.596     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1630        .88957        .10658E-01    .12471E-03
   2  alpha         1.6824        .44733        .44341       -.41181E-04
   3  Normalizat    .53385        .22464        .11262        .67415E-04
   4  Prefactor     1.2584        .10944        .33373E-01    .46127E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.16299
  alpha      = 1.6824
  Normalizat = 0.533849
  Prefactor  = 1.25842
 **********
 **   18 **HESSE 
 **********

 FCN=   9808.596     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1630        .95032        .73573E-04   -1.5492    
   2  alpha         1.6824        .57200        .16975E-01   -.33317    
   3  Normalizat    .53385        .23405        .49928E-03   -1.1087    
   4  Prefactor     1.2584        .11439        .16365E-03   -.84552    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8389e-09
Minuit parameter uncertainties:
  1  0.950333
  2  0.577745
  3  0.234482
  4  0.114413
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/401550': 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) = 9808.5956385
delta logL = 0.306198624576

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  1.163e+00  9.503e-01  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  1.682e+00  5.777e-01  0.000e+00  5.000e+00 ( 1.000e+00)
288         beta:  1.046e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
289           Eb:  5.754e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  1.258e+00  1.144e-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:  5.338e-01  2.345e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.16
Ra Dec: 339.096 28.483
Photon Index (Free Index): 1.68 +/- 0.58
Photon Flux (Free Index): 2.73e-08 +/- 2.67e-08
Energy Flux (Free Index): 2.38e-05 +/- 2.07e-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/401550/cmap_HighResolution_628387201_628646401_4FGL_J2236.3+2828_daily_bin1501.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.29e-08', energy_flux2='2.38e-05', photon_flux_error='2.92e-08', dlogl='3.06e-01', energy_flux='1.74e-05', photon_flux2='2.73e-08', job_status='DONE', time_completed='2021-09-28 17:07:11.790914', photon_index_error2='0.58', photon_index2='1.68', ts='4.59', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', energy_flux_error2='2.07e-05', EG='0.51', time_epoch_completed='1632874031.79', return_code='0', job_id='401550', GAL2='1.26', EG2='0.53', return_code2='0', energy_flux_error='1.18e-05', photon_flux_error2='2.67e-08', ts2='5.16', photon_index='2.15' WHERE bin_id='1501' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:07:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 401550: <4FGL_J2236.3+2828_daily_bin1501> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin1501 339.096 28.4832 628387201 628646401 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 :                                   803.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   979 sec.
    Turnaround time :                            980 sec.

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

