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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin1327
RA = 339.096, Dec = 28.4832
tmin = 583286401, tmax = 583545601
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='401301', job_status='RUN', time_executed='2021-09-28 16:52:57.524123', time_epoch_executed='1632873177.52' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='1327'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/401301

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/401301/ft1_4FGL_J2236.3+2828_daily_bin1327.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/401301/ft2_4FGL_J2236.3+2828_daily_bin1327.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/401301/ft1_4FGL_J2236.3+2828_daily_bin1327.fits outfile=/scratch/kocevski/401301/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1327.fits ra=339.096 dec=28.4832 rad=12.0 tmin=583286401.0 tmax=583545601.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.53
user 3.27
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/401301/ft1_filtered_4FGL_J2236.3+2828_daily_bin1327.fits" evtable="EVENTS" scfile=/scratch/kocevski/401301/ft2_4FGL_J2236.3+2828_daily_bin1327.fits sctable="SC_DATA" outfile=/scratch/kocevski/401301/ltcube_583286401_583545601_4FGL_J2236.3+2828_daily_bin1327.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/401301/ft2_4FGL_J2236.3+2828_daily_bin1327.fits
.....................!
real 11.72
user 11.36
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/401301/ft1_filtered_4FGL_J2236.3+2828_daily_bin1327.fits evtable="EVENTS" scfile=/scratch/kocevski/401301/ft2_4FGL_J2236.3+2828_daily_bin1327.fits sctable="SC_DATA" expcube=/scratch/kocevski/401301/ltcube_583286401_583545601_4FGL_J2236.3+2828_daily_bin1327.fits outfile=/scratch/kocevski/401301/expmap_583286401_583545601_4FGL_J2236.3+2828_daily_bin1327.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/401301/ltcube_583286401_583545601_4FGL_J2236.3+2828_daily_bin1327.fits
.....................!
real 191.85
user 186.71
sys 4.79

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

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/401301/ft1_filtered_4FGL_J2236.3+2828_daily_bin1327.fits scfile=/scratch/kocevski/401301/ft2_4FGL_J2236.3+2828_daily_bin1327.fits outfile=/scratch/kocevski/401301/cmap_HighResolution_583286401_583545601_4FGL_J2236.3+2828_daily_bin1327.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=339.096 yref=28.4832 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.3806       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.8902       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.8968       1.0000         .10000E-03   10000.    
     6 'Prefactor '    58.364       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.9136       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.046       1.0000         .10000E-03   10000.    
    11 'norm      '    .96428       1.0000         .10000E-03   10000.    
    12 'Prefactor '    89.376       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.8343       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.6619       1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.365       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    11.475       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.9195       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .53557       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0618       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10816.51     FROM MIGRAD    STATUS=CONVERGED    499 CALLS     2383 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.7635       -.49590E-07** at limit **
   2  norm          3.3806        1.0673        .71273E-08   -.18297E-03
   3  Prefactor     1.8108        178.13       -.40766E-07   -.33501E-05
   4  Prefactor     .10000E-03    18.592        .91946E-06** at limit **
   5  norm          1.8966        2.4363        .73088E-08   -.26003E-04
   6  Prefactor     58.409        89.238       -.21188E-05    .12702E-03
   7  Prefactor     .10000E-03    1.9716        .52450E-08** at limit **
   8  norm          2.9136        1.1084        .34581E-07    .14582E-03
   9  Prefactor     .10000E-03    17.766       -.37746E-07** at limit **
  10  Prefactor     16.042        16.781        .36126E-07   -.39410E-04
  11  norm          .96477        1.5489       -.22827E-06   -.12665E-02
  12  Prefactor     89.376        17.867        .11078E-06   -.39458E-05
  13  Prefactor     .10000E-03    9.6052       -.87239E-07** at limit **
  14  Prefactor     5.8342        6.7414        .62398E-08   -.19546E-04
  15  Prefactor     .10000E-03    8.9479       -.67591E-07** at limit **
  16  norm          4.6618        1.6905       -.48817E-07   -.22065E-03
  17  Prefactor     25.359        19.621       -.39297E-06    .34242E-04
  18  Prefactor     .10000E-03    11.390       -.76001E-07** at limit **
  19  norm          11.470        6.7762       -.13963E-05   -.13531E-03
  20  Prefactor     1.9447        41.896        .17730E-04   -.13673E-04
  21  Normalizat    .53544        .22710       -.74378E-06    .46418E-04
  22  Prefactor     1.0619        .10053        .83184E-07    .50046E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.38061
  Prefactor  = 1.81079
  Prefactor  = 0.000100001
  norm       = 1.89663
  Prefactor  = 58.4095
  Prefactor  = 0.0001
  norm       = 2.91364
  Prefactor  = 0.0001
  Prefactor  = 16.0421
  norm       = 0.964772
  Prefactor  = 89.3759
  Prefactor  = 0.0001
  Prefactor  = 5.83422
  Prefactor  = 0.0001
  norm       = 4.66176
  Prefactor  = 25.3594
  Prefactor  = 0.0001
  norm       = 11.4702
  Prefactor  = 1.94471
  Normalizat = 0.535442
  Prefactor  = 1.06187
 **********
 **   18 **HESSE 
 **********

 FCN=   10816.51     FROM HESSE     STATUS=OK           348 CALLS     2731 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.7844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.3806        1.0660        .57332E-04   -1.5340    
   3  Prefactor     1.8108        180.29        .30266E-03   -1.5439    
   4  Prefactor     .10000E-03    19.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.8966        2.4252        .17933E-03   -1.5433    
   6  Prefactor     58.409        89.776        .52514E-04   -1.4178    
   7  Prefactor     .10000E-03    1.9733        .14261E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.9136        1.1060        .63067E-04   -1.5367    
   9  Prefactor     .10000E-03    17.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     16.042        16.774        .99986E-04   -1.4907    
  11  norm          .96477        1.1827        .15613E-02   -1.5512    
  12  Prefactor     89.376        17.443        .42502E-04   -1.3814    
  13  Prefactor     .10000E-03    9.6607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.8342        6.7343        .16627E-03   -1.5225    
  15  Prefactor     .10000E-03    8.9563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.6618        1.6851        .76456E-04   -1.5276    
  17  Prefactor     25.359        19.594        .79539E-04   -1.4700    
  18  Prefactor     .10000E-03    11.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          11.470        6.8261        .11826E-03   -1.5030    
  20  Prefactor     1.9447        42.199        .14997E-02   -1.5429    
  21  Normalizat    .53544        .23745        .49898E-03   -1.1080    
  22  Prefactor     1.0619        .10754        .17025E-03   -.90695    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.97124e-10
Minuit parameter uncertainties:
  1  5.52472e-06
  2  1.06596
  3  36.2487
  4  0.000238878
  5  2.42534
  6  89.9848
  7  4.37301e-07
  8  1.10602
  9  1.40714e-05
  10  16.7787
  11  1.18274
  12  17.4438
  13  1.62985e-05
  14  6.73522
  15  1.17583e-05
  16  1.68509
  17  19.5985
  18  2.30703e-05
  19  6.82653
  20  18.132
  21  0.237899
  22  0.107566
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  1.062e+00  1.076e-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.354e-01  2.379e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.43
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 9.35e-08 +/- 3.55e-08
Energy Flux (Fixed Index): 3.79e-05 +/- 1.44e-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) = 10816.1762802
delta logL = 0.331314160307

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10816.1523783
delta logL = 0.355216056383

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8713       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8577       1.0000          .0000       5.0000    
     3 'Normalizat'    .56232       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0545       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=   10816.15     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      209 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8712        1.2341        .59970E-02    .19968E-03
   2  alpha         1.8577        .33440        .30833       -.26757E-04
   3  Normalizat    .56234        .21070        .10998        .12724E-03
   4  Prefactor     1.0545        .98612E-01    .39652E-01    .17121E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.87119
  alpha      = 1.85774
  Normalizat = 0.562341
  Prefactor  = 1.05451
 **********
 **   18 **HESSE 
 **********

 FCN=   10816.15     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8712        1.1337        .65402E-04   -1.5369    
   2  alpha         1.8577        .33598        .12409E-01   -.25982    
   3  Normalizat    .56234        .22652        .48758E-03   -1.0961    
   4  Prefactor     1.0545        .10628        .17079E-03   -.90934    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40184e-10
Minuit parameter uncertainties:
  1  1.1337
  2  0.337069
  3  0.226897
  4  0.106301
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/401301': 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) = 10816.1523783
delta logL = 0.355216078426

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  2.871e+00  1.134e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  1.858e+00  3.371e-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.055e+00  1.063e-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.623e-01  2.269e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 20.01
Ra Dec: 339.096 28.483
Photon Index (Free Index): 1.86 +/- 0.34
Photon Flux (Free Index): 7.42e-08 +/- 3.64e-08
Energy Flux (Free Index): 4.63e-05 +/- 2.20e-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/401301/cmap_HighResolution_583286401_583545601_4FGL_J2236.3+2828_daily_bin1327.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.35e-08', energy_flux2='4.63e-05', photon_flux_error='3.55e-08', dlogl='3.55e-01', energy_flux='3.79e-05', photon_flux2='7.42e-08', job_status='DONE', time_completed='2021-09-28 17:05:41.108042', photon_index_error2='0.34', photon_index2='1.86', ts='19.43', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='2.20e-05', EG='0.54', time_epoch_completed='1632873941.11', return_code='0', job_id='401301', GAL2='1.05', EG2='0.56', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='3.64e-08', ts2='20.01', photon_index='2.15' WHERE bin_id='1327' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:05:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0196>
Subject: Job 401301: <4FGL_J2236.3+2828_daily_bin1327> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin1327 339.096 28.4832 583286401 583545601 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 :                                   753.11 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             344.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            905 sec.

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

