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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin1222
RA = 339.096, Dec = 28.4832
tmin = 556070401, tmax = 556329601
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='401148', job_status='RUN', time_executed='2021-09-28 16:54:22.665033', time_epoch_executed='1632873262.67' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='1222'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/401148

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/401148/ft1_4FGL_J2236.3+2828_daily_bin1222.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/401148/ft2_4FGL_J2236.3+2828_daily_bin1222.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/401148/ft1_4FGL_J2236.3+2828_daily_bin1222.fits outfile=/scratch/kocevski/401148/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1222.fits ra=339.096 dec=28.4832 rad=12.0 tmin=556070401.0 tmax=556329601.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.73
user 3.49
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/401148/ft1_filtered_4FGL_J2236.3+2828_daily_bin1222.fits" evtable="EVENTS" scfile=/scratch/kocevski/401148/ft2_4FGL_J2236.3+2828_daily_bin1222.fits sctable="SC_DATA" outfile=/scratch/kocevski/401148/ltcube_556070401_556329601_4FGL_J2236.3+2828_daily_bin1222.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/401148/ft2_4FGL_J2236.3+2828_daily_bin1222.fits
.....................!
real 12.58
user 12.26
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/401148/ft1_filtered_4FGL_J2236.3+2828_daily_bin1222.fits evtable="EVENTS" scfile=/scratch/kocevski/401148/ft2_4FGL_J2236.3+2828_daily_bin1222.fits sctable="SC_DATA" expcube=/scratch/kocevski/401148/ltcube_556070401_556329601_4FGL_J2236.3+2828_daily_bin1222.fits outfile=/scratch/kocevski/401148/expmap_556070401_556329601_4FGL_J2236.3+2828_daily_bin1222.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/401148/ltcube_556070401_556329601_4FGL_J2236.3+2828_daily_bin1222.fits
.....................!
real 189.33
user 185.27
sys 3.72

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/401148/ft1_filtered_4FGL_J2236.3+2828_daily_bin1222.fits scfile=/scratch/kocevski/401148/ft2_4FGL_J2236.3+2828_daily_bin1222.fits outfile=/scratch/kocevski/401148/cmap_556070401_556329601_4FGL_J2236.3+2828_daily_bin1222.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/401148/ft1_filtered_4FGL_J2236.3+2828_daily_bin1222.fits scfile=/scratch/kocevski/401148/ft2_4FGL_J2236.3+2828_daily_bin1222.fits outfile=/scratch/kocevski/401148/cmap_HighResolution_556070401_556329601_4FGL_J2236.3+2828_daily_bin1222.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.53
user 0.37
sys 0.16

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

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

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 463.586869627

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 455.887652878

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7488       1.0000         .10000E-03   10000.    
     2 'norm      '    .57485E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.0246       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10763E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10100E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.9284       1.0000         .10000E-03   10000.    
     7 'Prefactor '    48.282       1.0000         .10000E-03   10000.    
     8 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.2516       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12527E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    .10093E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .29781E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.0658       1.0000         .10000E-03   10000.    
    14 'Prefactor '    151.19       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.6822       1.0000         .10000E-03   10000.    
    16 'norm      '    .46086E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    79.812       1.0000         .10000E-03   10000.    
    18 'Prefactor '    69.972       1.0000         .10000E-03   10000.    
    19 'norm      '    .44221E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    256.82       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .17924       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .58220E-01   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=   455.8737     FROM MIGRAD    STATUS=CONVERGED    155 CALLS      485 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7488        1.0482         .0000         .0000    
   2  norm          .31890E-03    16.392        .74362E-04** at limit **
   3  Prefactor     .10015E-03    247.95       -.65464E-04** at limit **
   4  Prefactor     .10000E-03    51.118        .38939E-05** at limit **
   5  norm          .10000E-03    8.0880       -.96858E-06** at limit **
   6  Prefactor     .15391E-03    462.46        .73328E-04** at limit **
   7  Prefactor     46.352        63.960        .84544E-04    .71251E-03
   8  norm          .10000E-03    3.9797       -.59772E-05** at limit **
   9  Prefactor     2.2516        1.0271         .0000         .0000    
  10  Prefactor     .10000E-03    88.314       -.12036E-04** at limit **
  11  norm          .10000E-03    5.3474        .89495E-06** at limit **
  12  Prefactor     .10000E-03    19.558        .52416E-05** at limit **
  13  Prefactor     3.0658        1.0140         .0000         .0000    
  14  Prefactor     150.57        15.362       -.94925E-05    .21945E-01
  15  Prefactor     .10583E-01    639.10       -.38042E-03   -.37605E-02
  16  norm          .10000E-03    11.156       -.28698E-06** at limit **
  17  Prefactor     86.436        79.393        .45826E-04    .63002E-02
  18  Prefactor     64.598        83.322       -.77128E-04    .24573E-01
  19  norm          .10000E-03    28.530       -.11130E-04** at limit **
  20  Prefactor     256.19        11.047       -.68887E-05   -.29413E-01
  21  Normalizat    .17538        1.3809       -.83556E-03    .11619E-04
  22  Prefactor     .59023E-01    .73329        .62901E-03    .65776E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.7488
  norm       = 0.000318903
  Prefactor  = 0.000100153
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000153913
  Prefactor  = 46.3519
  norm       = 0.0001
  Prefactor  = 2.25161
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.06575
  Prefactor  = 150.57
  Prefactor  = 0.0105827
  norm       = 0.0001
  Prefactor  = 86.4363
  Prefactor  = 64.5979
  norm       = 0.0001
  Prefactor  = 256.191
  Normalizat = 0.175384
  Prefactor  = 0.0590233
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   455.8737     FROM HESSE     STATUS=FAILED         9 CALLS      494 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     573.25        571.35         .0000       -1.5443    
   2  norm          .31890E-03    .21653        .74362E-04   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10015E-03    .85076E-01   -.65464E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    .20571        .38939E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .20571       -.96858E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .15391E-03    .64732E-01    .73328E-04   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     46.352        .97995        .84544E-04   -1.4345    
   8  norm          .10000E-03    .20571       -.59772E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.2516        1.0271         .0000       -1.5408    
  10  Prefactor     .10000E-03    .26540       -.12036E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .20571        .89495E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .28603        .52416E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.0658        1.0140         .0000       -1.5358    
  14  Prefactor     150.57        .99799       -.94925E-05   -1.3248    
  15  Prefactor     .10583E-01    .69221E-01   -.38042E-03   -1.5728    
  16  norm          .10000E-03    .28082       -.28698E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     86.436        1.0403        .45826E-04   -1.3846    
  18  Prefactor     64.598        .96111       -.77128E-04   -1.4099    
  19  norm          .10000E-03    .23442       -.11130E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     256.19        .99880       -.68887E-05   -1.2493    
  21  Normalizat    .17538        .43492       -.83556E-03   -1.3127    
  22  Prefactor     .59023E-01    .26717        .62901E-03   -1.4170    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.86453e-09
Minuit parameter uncertainties:
  1  1.04818
  2  0.0137694
  3  0.000228485
  4  4.36225e-06
  5  3.37096e-06
  6  0.00373623
  7  0.979955
  8  3.77111e-06
  9  1.02707
  10  2.71481e-06
  11  3.05692e-06
  12  5.06529e-06
  13  1.01396
  14  0.997987
  15  0.0538749
  16  1.51681e-06
  17  1.04034
  18  0.961115
  19  7.88584e-07
  20  0.9988
  21  0.443831
  22  0.253051
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 455.873706867

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  1.000e-04  3.771e-06  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:  5.902e-02  2.531e-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.754e-01  4.438e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 339.096 28.483
Photon Flux Upper Limit: 7.65e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.10e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/401148/likelihoodResults_556070401_556329601_4FGL_J2236.3+2828_daily_bin1222.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) = 455.873709365
delta logL = -2.49863592217e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 455.873707803
delta logL = -9.36653179906e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1389       1.0000          .0000       5.0000    
     3 'Normalizat'    .17526       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58872E-01   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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   455.8737     FROM MIGRAD    STATUS=FAILED        83 CALLS      225 TOTAL
                     EDM=   .95E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10025E-03    4.8527        .41730E-03** at limit **
   2  alpha         2.0645        3.4980        .16683        .21902E-05
   3  Normalizat    .17543        1.3460        .57697E-03    .18462E-04
   4  Prefactor     .59003E-01    .72841        .41329E-03   -.14583E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   455.8737     FROM SIMPLEX   STATUS=UNCHANGED    122 CALLS      347 TOTAL
                     EDM=   .68E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10025E-03    4.8527        .28020E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0645        3.4980        .31917E-03   -.17509    
   3  Normalizat    .17543        1.3460        .51561E-03   -1.3127    
   4  Prefactor     .59003E-01    .72841        .51837E-03   -1.4170    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   455.8737     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      376 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.0420        .83460E-04** at limit **
   2  alpha         1.9817        2.6936        .33366E-01   -.57200E-07
   3  Normalizat    .17540        1.3266        .23079E-04   -.79802E-05
   4  Prefactor     .59016E-01    .71737        .16531E-04    .67653E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.98166
  Normalizat = 0.175399
  Prefactor  = 0.0590156
 **********
 **   18 **HESSE 
 **********

 FCN=   455.8737     FROM HESSE     STATUS=OK            23 CALLS      399 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.0415        .16692E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9817        2.6481        .13346E-02   -.20885    
   3  Normalizat    .17540        1.3145        .46157E-05   -1.3127    
   4  Prefactor     .59016E-01    .71055        .33063E-05   -1.4170    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21358e-10
Minuit parameter uncertainties:
  1  7.31612e-05
  2  298.327
  3  0.963255
  4  0.415864
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/401148': 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) = 455.873706722
delta logL = 1.44116881984e-07

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  1.000e-04  7.316e-05  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  1.982e+00  2.983e+02  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:  5.902e-02  4.159e-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.754e-01  9.633e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/401148/cmap_HighResolution_556070401_556329601_4FGL_J2236.3+2828_daily_bin1222.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.10e-04', job_status='DONE', photon_flux_upper_limit='7.65e-07', time_completed='2021-09-28 16:59:46.399171', job_id='401148', GAL2='0.06', fit_tolerance='1e-08', EG2='0.18', EG='0.18', time_epoch_completed='1632873586.4', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.06', dlogl='1.44e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1222' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:59:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 401148: <4FGL_J2236.3+2828_daily_bin1222> in cluster <slac> Done

Job <4FGL_J2236.3+2828_daily_bin1222> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep 28 16:50:24 2021
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:50:26 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:26 2021
Terminated at Tue Sep 28 16:59:49 2021
Results reported at Tue Sep 28 16:59:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin1222 339.096 28.4832 556070401 556329601 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 :                                   321.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             322.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   560 sec.
    Turnaround time :                            565 sec.

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

