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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin1272
RA = 339.096, Dec = 28.4832
tmin = 569030401, tmax = 569289601
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='401220', job_status='RUN', time_executed='2021-09-28 16:53:03.070715', time_epoch_executed='1632873183.07' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='1272'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/401220

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/401220/ft1_4FGL_J2236.3+2828_daily_bin1272.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/401220/ft2_4FGL_J2236.3+2828_daily_bin1272.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/401220/ft1_4FGL_J2236.3+2828_daily_bin1272.fits outfile=/scratch/kocevski/401220/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1272.fits ra=339.096 dec=28.4832 rad=12.0 tmin=569030401.0 tmax=569289601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.04
user 3.36
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/401220/ft1_filtered_4FGL_J2236.3+2828_daily_bin1272.fits" evtable="EVENTS" scfile=/scratch/kocevski/401220/ft2_4FGL_J2236.3+2828_daily_bin1272.fits sctable="SC_DATA" outfile=/scratch/kocevski/401220/ltcube_569030401_569289601_4FGL_J2236.3+2828_daily_bin1272.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/401220/ft2_4FGL_J2236.3+2828_daily_bin1272.fits
.....................!
real 11.96
user 11.60
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/401220/ft1_filtered_4FGL_J2236.3+2828_daily_bin1272.fits evtable="EVENTS" scfile=/scratch/kocevski/401220/ft2_4FGL_J2236.3+2828_daily_bin1272.fits sctable="SC_DATA" expcube=/scratch/kocevski/401220/ltcube_569030401_569289601_4FGL_J2236.3+2828_daily_bin1272.fits outfile=/scratch/kocevski/401220/expmap_569030401_569289601_4FGL_J2236.3+2828_daily_bin1272.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/401220/ltcube_569030401_569289601_4FGL_J2236.3+2828_daily_bin1272.fits
.....................!
real 192.02
user 185.79
sys 5.90

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/401220/ft1_filtered_4FGL_J2236.3+2828_daily_bin1272.fits scfile=/scratch/kocevski/401220/ft2_4FGL_J2236.3+2828_daily_bin1272.fits outfile=/scratch/kocevski/401220/cmap_569030401_569289601_4FGL_J2236.3+2828_daily_bin1272.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/401220/ft1_filtered_4FGL_J2236.3+2828_daily_bin1272.fits scfile=/scratch/kocevski/401220/ft2_4FGL_J2236.3+2828_daily_bin1272.fits outfile=/scratch/kocevski/401220/cmap_HighResolution_569030401_569289601_4FGL_J2236.3+2828_daily_bin1272.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3883       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.667       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    25.850       1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.396       1.0000         .10000E-03   10000.    
     8 'norm      '    3.3995       1.0000         .10000E-03   10000.    
     9 'Prefactor '    62.915       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.133       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    31.757       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.1868       1.0000         .10000E-03   10000.    
    15 'Prefactor '    30.265       1.0000         .10000E-03   10000.    
    16 'norm      '    .77677       1.0000         .10000E-03   10000.    
    17 'Prefactor '    30.017       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10321E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.6901       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .45877       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .95320       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=   8437.690     FROM MIGRAD    STATUS=CONVERGED    456 CALLS     2355 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3887        4.6788        .54951E-02    .35814E-02
   2  norm          .10000E-03    .14888        .90712E-02** at limit **
   3  Prefactor     .10000E-03    30.123        .90712E-02** at limit **
   4  Prefactor     20.668        13.025        .22026E-02   -.12576E-03
   5  norm          .10000E-03    2.5435        .90712E-02** at limit **
   6  Prefactor     25.849        38.929        .19698E-02    .86029E-03
   7  Prefactor     19.397        10.913        .22736E-02   -.56765E-03
   8  norm          3.3995        1.2001        .54857E-02    .13813E-03
   9  Prefactor     62.915        65.214        .12648E-02    .11649E-04
  10  Prefactor     12.133        15.985        .28751E-02    .41394E-03
  11  norm          .10000E-03    .40489        .90712E-02** at limit **
  12  Prefactor     31.758        12.298        .17776E-02   -.98813E-04
  13  Prefactor     .10000E-03    6.6712        .90712E-02** at limit **
  14  Prefactor     7.1869        6.7358        .37407E-02    .12688E-03
  15  Prefactor     30.266        21.461        .18207E-02   -.15483E-03
  16  norm          .77716        1.2475        .12353E-01    .16675E-02
  17  Prefactor     30.017        19.429        .18282E-02    .88265E-04
  18  Prefactor     .10000E-03    37.137        .90712E-02** at limit **
  19  norm          .10000E-03    1.4239        .90712E-02** at limit **
  20  Prefactor     3.6883        12.686        .52561E-02    .19302E-03
  21  Normalizat    .45882        .22250        .10240        .70907E-04
  22  Prefactor     .95317        .98001E-01    .34566E-01    .21591E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.38868
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.6678
  norm       = 0.0001
  Prefactor  = 25.8493
  Prefactor  = 19.3966
  norm       = 3.3995
  Prefactor  = 62.9149
  Prefactor  = 12.1332
  norm       = 0.0001
  Prefactor  = 31.758
  Prefactor  = 0.0001
  Prefactor  = 7.18692
  Prefactor  = 30.2656
  norm       = 0.777159
  Prefactor  = 30.0167
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.68826
  Normalizat = 0.458823
  Prefactor  = 0.953166
 **********
 **   18 **HESSE 
 **********

 FCN=   8437.690     FROM HESSE     STATUS=OK           340 CALLS     2695 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3887        4.6702        .10990E-02   -1.5340    
   2  norm          .10000E-03    .15083        .34587E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    30.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     20.668        13.008        .88104E-04   -1.4798    
   5  norm          .10000E-03    2.5801        .14303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     25.849        38.916        .78790E-04   -1.4691    
   7  Prefactor     19.397        10.879        .90943E-04   -1.4827    
   8  norm          3.3995        1.1978        .55776E-04   -1.5339    
   9  Prefactor     62.915        65.291        .50590E-04   -1.4120    
  10  Prefactor     12.133        15.980        .57502E-03   -1.5011    
  11  norm          .10000E-03    .40593        .57061E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     31.758        12.269        .71102E-04   -1.4580    
  13  Prefactor     .10000E-03    6.6813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.1869        6.7329        .14963E-03   -1.5172    
  15  Prefactor     30.266        21.430        .72829E-04   -1.4607    
  16  norm          .77716        1.2098        .12062E-03   -1.5532    
  17  Prefactor     30.017        19.383        .73129E-04   -1.4612    
  18  Prefactor     .10000E-03    38.192        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.4284        .10688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.6883        12.599        .21025E-03   -1.5324    
  21  Normalizat    .45882        .22885        .45378E-03   -1.1436    
  22  Prefactor     .95317        .10349        .15274E-03   -.94307    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.67654e-09
Minuit parameter uncertainties:
  1  4.67068
  2  8.09047e-08
  3  2.53965e-05
  4  13.0102
  5  5.2916e-07
  6  38.9547
  7  10.8803
  8  1.19776
  9  65.3651
  10  15.9858
  11  1.52527e-07
  12  12.2698
  13  1.89125e-06
  14  6.7336
  15  21.4358
  16  1.20982
  17  19.3872
  18  1.24935e-05
  19  2.67212e-07
  20  12.6081
  21  0.229316
  22  0.103516
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  3.400e+00  1.198e+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.532e-01  1.035e-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:  4.588e-01  2.293e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 27.05
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 1.09e-07 +/- 3.84e-08
Energy Flux (Fixed Index): 4.42e-05 +/- 1.56e-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) = 8437.35298099
delta logL = 0.33699334889

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8437.32617852
delta logL = 0.363795815771

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3580       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8628       1.0000          .0000       5.0000    
     3 'Normalizat'    .49066       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94431       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=   8437.326     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      218 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3580        1.3330        .55211E-02    .86739E-04
   2  alpha         1.8628        .32390        .26490       -.18173E-04
   3  Normalizat    .49066        .20121        .99194E-01    .61927E-04
   4  Prefactor     .94431        .95066E-01    .34722E-01   -.50683E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.35796
  alpha      = 1.86277
  Normalizat = 0.490662
  Prefactor  = 0.944307
 **********
 **   18 **HESSE 
 **********

 FCN=   8437.326     FROM HESSE     STATUS=OK            33 CALLS      251 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3580        1.2605        .59117E-04   -1.5341    
   2  alpha         1.8628        .32927        .10841E-01   -.25774    
   3  Normalizat    .49066        .21532        .43957E-03   -1.1285    
   4  Prefactor     .94431        .10179        .15343E-03   -.94610    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.90049e-11
Minuit parameter uncertainties:
  1  1.26053
  2  0.330298
  3  0.215687
  4  0.101815
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/401220': 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) = 8437.32617852
delta logL = 0.36379581815

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  3.358e+00  1.261e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  1.863e+00  3.303e-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.443e-01  1.018e-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:  4.907e-01  2.157e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 27.53
Ra Dec: 339.096 28.483
Photon Index (Free Index): 1.86 +/- 0.33
Photon Flux (Free Index): 8.71e-08 +/- 4.12e-08
Energy Flux (Free Index): 5.38e-05 +/- 2.45e-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/401220/cmap_HighResolution_569030401_569289601_4FGL_J2236.3+2828_daily_bin1272.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.09e-07', energy_flux2='5.38e-05', photon_flux_error='3.84e-08', dlogl='3.64e-01', energy_flux='4.42e-05', photon_flux2='8.71e-08', job_status='DONE', time_completed='2021-09-28 17:04:12.921497', photon_index_error2='0.33', photon_index2='1.86', ts='27.05', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='2.45e-05', EG='0.46', time_epoch_completed='1632873852.92', return_code='0', job_id='401220', GAL2='0.94', EG2='0.49', return_code2='0', energy_flux_error='1.56e-05', photon_flux_error2='4.12e-08', ts2='27.53', photon_index='2.15' WHERE bin_id='1272' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:04:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 401220: <4FGL_J2236.3+2828_daily_bin1272> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin1272 339.096 28.4832 569030401 569289601 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 :                                   646.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            824 sec.

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

