/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 192 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 = 7421
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2236.3+2828_daily_bin33
RA = 339.096, Dec = 28.4832
tmin = 247881601, tmax = 248140801
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='395152', job_status='RUN', time_executed='2021-09-28 16:34:18.111131', time_epoch_executed='1632872058.11' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='33'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/395152

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/395152/ft1_4FGL_J2236.3+2828_daily_bin33.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/395152/ft2_4FGL_J2236.3+2828_daily_bin33.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/395152/ft1_4FGL_J2236.3+2828_daily_bin33.fits outfile=/scratch/kocevski/395152/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin33.fits ra=339.096 dec=28.4832 rad=12.0 tmin=247881601.0 tmax=248140801.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 1.54
user 1.24
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/395152/ft1_filtered_4FGL_J2236.3+2828_daily_bin33.fits" evtable="EVENTS" scfile=/scratch/kocevski/395152/ft2_4FGL_J2236.3+2828_daily_bin33.fits sctable="SC_DATA" outfile=/scratch/kocevski/395152/ltcube_247881601_248140801_4FGL_J2236.3+2828_daily_bin33.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/395152/ft2_4FGL_J2236.3+2828_daily_bin33.fits
.....................!
real 13.01
user 12.57
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/395152/ft1_filtered_4FGL_J2236.3+2828_daily_bin33.fits evtable="EVENTS" scfile=/scratch/kocevski/395152/ft2_4FGL_J2236.3+2828_daily_bin33.fits sctable="SC_DATA" expcube=/scratch/kocevski/395152/ltcube_247881601_248140801_4FGL_J2236.3+2828_daily_bin33.fits outfile=/scratch/kocevski/395152/expmap_247881601_248140801_4FGL_J2236.3+2828_daily_bin33.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/395152/ltcube_247881601_248140801_4FGL_J2236.3+2828_daily_bin33.fits
.....................!
real 190.10
user 185.48
sys 4.25

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/395152/ft1_filtered_4FGL_J2236.3+2828_daily_bin33.fits scfile=/scratch/kocevski/395152/ft2_4FGL_J2236.3+2828_daily_bin33.fits outfile=/scratch/kocevski/395152/cmap_247881601_248140801_4FGL_J2236.3+2828_daily_bin33.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.57
user 0.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .63367       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11596E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11224E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .77055E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .38926       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.4638       1.0000         .10000E-03   10000.    
     8 'norm      '    3.2099       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .74968       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.124       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.8763       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10967E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.3083       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12147E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .94595       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .95485       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8912.849     FROM MIGRAD    STATUS=CONVERGED    147 CALLS     1703 TOTAL
                     EDM=   .21E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.0210       -.64800E-06** at limit **
   2  norm          .63352        .72947       -.11083E-07   -.14072E-04
   3  Prefactor     .10000E-03    12.199       -.21621E-05** at limit **
   4  Prefactor     .10000E-03    6.7803       -.12264E-06** at limit **
   5  norm          .10000E-03    25.557       -.81697E-07** at limit **
   6  Prefactor     .10001E-03    9974.7       -.52092E-04** at limit **
   7  Prefactor     4.4666        1.1580       -.27785E-07   -.15385E-03
   8  norm          3.2105        1.3204        .36100E-07    .33331E-04
   9  Prefactor     .10000E-03    36.823        .34357E-05** at limit **
  10  Prefactor     .10000E-03    28.184       -.86280E-06** at limit **
  11  norm          .74938        1.2288       -.25233E-06    .33515E-04
  12  Prefactor     .10000E-03    3.9459        .10521E-05** at limit **
  13  Prefactor     20.143        15.855       -.17283E-05    .10374E-04
  14  Prefactor     .10000E-03    3.0936        .94096E-06** at limit **
  15  Prefactor     .10000E-03    11.372        .45687E-05** at limit **
  16  norm          5.8752        2.0100       -.11002E-06    .20146E-04
  17  Prefactor     .10000E-03    8.3962       -.42857E-05** at limit **
  18  Prefactor     .10000E-03    13.125        .49465E-06** at limit **
  19  norm          4.3161        4.4499       -.20758E-06    .79436E-06
  20  Prefactor     .10000E-03    7.9150        .19752E-05** at limit **
  21  Normalizat    .94607        .25004        .57846E-05    .12718E-04
  22  Prefactor     .95489        .11650       -.14071E-05    .51546E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.633522
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 4.46665
  norm       = 3.21051
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.749384
  Prefactor  = 0.0001
  Prefactor  = 20.1432
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.87518
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.31605
  Prefactor  = 0.0001
  Normalizat = 0.946067
  Prefactor  = 0.954887
 **********
 **   18 **HESSE 
 **********

 FCN=   8912.849     FROM HESSE     STATUS=OK           398 CALLS     2101 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.9353        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .63352        .80616        .19596E-01   -1.5549    
   3  Prefactor     .10000E-03    12.283        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.7648        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.3177        .62020E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    75.041        .21827       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.4666        10.203        .47646E-02   -1.5285    
   8  norm          3.2105        1.3287        .56533E-02   -1.5350    
   9  Prefactor     .10000E-03    36.849        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    28.002        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .74938        1.4364        .31001E-01   -1.5535    
  12  Prefactor     .10000E-03    3.9365        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     20.143        15.926        .22321E-02   -1.4810    
  14  Prefactor     .10000E-03    3.0845        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.386        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.8752        2.0176        .41416E-02   -1.5223    
  17  Prefactor     .10000E-03    8.3855        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.128        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.3161        4.4627        .48521E-02   -1.5292    
  20  Prefactor     .10000E-03    7.9263        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .94607        .21711        .84846E-01   -.94860    
  22  Prefactor     .95489        .98103E-01    .45700E-01   -.94249    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.12227e-08
Minuit parameter uncertainties:
  1  9.78923e-06
  2  0.806169
  3  2.09466e-06
  4  1.07644e-06
  5  5.11008e-06
  6  0.00143795
  7  10.207
  8  1.32875
  9  2.42514e-05
  10  1.06141e-06
  11  1.4365
  12  7.70542e-07
  13  15.9296
  14  3.49793e-06
  15  7.05899e-07
  16  2.01759
  17  1.31006e-05
  18  5.26694e-06
  19  4.46309
  20  5.37679e-06
  21  0.217314
  22  0.0981211
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  3.211e+00  1.329e+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.549e-01  9.812e-02  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:  9.461e-01  2.173e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.83
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 1.03e-07 +/- 4.26e-08
Energy Flux (Fixed Index): 4.18e-05 +/- 1.73e-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) = 8912.2525926
delta logL = 0.596768780968

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8912.24101288
delta logL = 0.608348499347

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7258       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6315       1.0000          .0000       5.0000    
     3 'Normalizat'    .88173       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97523       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=   8912.241     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      299 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7258        1.3319        .54736E-04   -.56452E-03
   2  alpha         2.6316        .46457        .11437E-01   -.16384E-04
   3  Normalizat    .88169        .25654        .38765E-03   -.54783E-04
   4  Prefactor     .97526        .11746        .17222E-03   -.11933E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.72583
  alpha      = 2.63161
  Normalizat = 0.881687
  Prefactor  = 0.975259
 **********
 **   18 **HESSE 
 **********

 FCN=   8912.241     FROM HESSE     STATUS=OK            25 CALLS      324 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7258        1.2862        .21895E-05   -1.5378    
   2  alpha         2.6316        .44840        .45748E-03    .52667E-01
   3  Normalizat    .88169        .25658        .15506E-04   -.97107    
   4  Prefactor     .97526        .11747        .34443E-04   -.93559    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75633e-11
Minuit parameter uncertainties:
  1  1.28622
  2  0.450849
  3  0.256935
  4  0.117498
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/395152': 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) = 8912.24101281
delta logL = 0.608348562759

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  2.726e+00  1.286e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  2.632e+00  4.508e-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.753e-01  1.175e-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.817e-01  2.569e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.42
Ra Dec: 339.096 28.483
Photon Index (Free Index): 2.63 +/- 0.45
Photon Flux (Free Index): 1.41e-07 +/- 5.96e-08
Energy Flux (Free Index): 3.60e-05 +/- 1.40e-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/395152/cmap_HighResolution_247881601_248140801_4FGL_J2236.3+2828_daily_bin33.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.03e-07', energy_flux2='3.60e-05', photon_flux_error='4.26e-08', dlogl='6.08e-01', energy_flux='4.18e-05', photon_flux2='1.41e-07', job_status='DONE', time_completed='2021-09-28 16:44:34.621635', photon_index_error2='0.45', photon_index2='2.63', ts='12.83', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='1.40e-05', EG='0.95', time_epoch_completed='1632872674.62', return_code='0', job_id='395152', GAL2='0.98', EG2='0.88', return_code2='0', energy_flux_error='1.73e-05', photon_flux_error2='5.96e-08', ts2='14.42', photon_index='2.15' WHERE bin_id='33' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:44:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 395152: <4FGL_J2236.3+2828_daily_bin33> in cluster <slac> Done

Job <4FGL_J2236.3+2828_daily_bin33> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 28 16:30:55 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:30:56 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:30:56 2021
Terminated at Tue Sep 28 16:44:35 2021
Results reported at Tue Sep 28 16:44:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin33 339.096 28.4832 247881601 248140801 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 :                                   617.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             294.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            820 sec.

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

