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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin1010
RA = 339.096, Dec = 28.4832
tmin = 501120001, tmax = 501379201
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='399796', job_status='RUN', time_executed='2021-09-28 16:47:13.151620', time_epoch_executed='1632872833.15' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='1010'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/399796

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/399796/ft1_4FGL_J2236.3+2828_daily_bin1010.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/399796/ft2_4FGL_J2236.3+2828_daily_bin1010.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/399796/ft1_4FGL_J2236.3+2828_daily_bin1010.fits outfile=/scratch/kocevski/399796/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1010.fits ra=339.096 dec=28.4832 rad=12.0 tmin=501120001.0 tmax=501379201.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.50
user 3.24
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/399796/ft1_filtered_4FGL_J2236.3+2828_daily_bin1010.fits evtable="EVENTS" scfile=/scratch/kocevski/399796/ft2_4FGL_J2236.3+2828_daily_bin1010.fits sctable="SC_DATA" expcube=/scratch/kocevski/399796/ltcube_501120001_501379201_4FGL_J2236.3+2828_daily_bin1010.fits outfile=/scratch/kocevski/399796/expmap_501120001_501379201_4FGL_J2236.3+2828_daily_bin1010.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/399796/ltcube_501120001_501379201_4FGL_J2236.3+2828_daily_bin1010.fits
.....................!
real 190.84
user 185.55
sys 4.89

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/399796/ft1_filtered_4FGL_J2236.3+2828_daily_bin1010.fits scfile=/scratch/kocevski/399796/ft2_4FGL_J2236.3+2828_daily_bin1010.fits outfile=/scratch/kocevski/399796/cmap_501120001_501379201_4FGL_J2236.3+2828_daily_bin1010.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.54
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/399796/ft1_filtered_4FGL_J2236.3+2828_daily_bin1010.fits scfile=/scratch/kocevski/399796/ft2_4FGL_J2236.3+2828_daily_bin1010.fits outfile=/scratch/kocevski/399796/cmap_HighResolution_501120001_501379201_4FGL_J2236.3+2828_daily_bin1010.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.209       1.0000         .10000E-03   10000.    
     2 'norm      '    .71794       1.0000         .10000E-03   10000.    
     3 'Prefactor '    102.75       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.1961       1.0000         .10000E-03   10000.    
     6 'Prefactor '    56.232       1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.655       1.0000         .10000E-03   10000.    
     8 'norm      '    2.2968       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.3983       1.0000         .10000E-03   10000.    
    11 'norm      '    1.6248       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .54622       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.8774       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.5559       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.046       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .79135       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0512       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=   9100.638     FROM MIGRAD    STATUS=CONVERGED    484 CALLS     2498 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.208        7.3279        .70610E-06    .38101E-04
   2  norm          .71795        .75471       -.52365E-07   -.44572E-03
   3  Prefactor     102.75        58.206       -.44090E-05   -.33549E-04
   4  Prefactor     .10000E-03    5.0142        .98000E-08** at limit **
   5  norm          3.1958        3.1866        .22774E-06   -.18053E-02
   6  Prefactor     56.219        80.074       -.12870E-04   -.28076E-04
   7  Prefactor     24.656        13.474        .42523E-07   -.62044E-04
   8  norm          2.2966        1.1982        .36155E-07    .34654E-04
   9  Prefactor     .10000E-03    25.807       -.58647E-07** at limit **
  10  Prefactor     2.3968        11.229        .69458E-06   -.47522E-03
  11  norm          1.6249        1.1274       -.64079E-08    .62260E-04
  12  Prefactor     .10000E-03    3.2034       -.60406E-08** at limit **
  13  Prefactor     .41165        12.210       -.28942E-06   -.25791E-04
  14  Prefactor     1.8755        15.632       -.63294E-06   -.43497E-04
  15  Prefactor     .10000E-03    7.6814       -.62020E-07** at limit **
  16  norm          1.5557        1.2133       -.19589E-07   -.92061E-04
  17  Prefactor     .10000E-03    36.065       -.18463E-06** at limit **
  18  Prefactor     11.036        21.767       -.31360E-05   -.18804E-04
  19  norm          .10000E-03    1.6548       -.15016E-07** at limit **
  20  Prefactor     .10000E-03    14.477       -.57260E-07** at limit **
  21  Normalizat    .79130        .21962        .16649E-05    .12078E-04
  22  Prefactor     1.0513        .98610E-01    .62976E-08    .90430E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.2084
  norm       = 0.717952
  Prefactor  = 102.748
  Prefactor  = 0.0001
  norm       = 3.19578
  Prefactor  = 56.2193
  Prefactor  = 24.6559
  norm       = 2.29659
  Prefactor  = 0.0001
  Prefactor  = 2.39676
  norm       = 1.62486
  Prefactor  = 0.0001
  Prefactor  = 0.41165
  Prefactor  = 1.87554
  Prefactor  = 0.0001
  norm       = 1.5557
  Prefactor  = 0.0001
  Prefactor  = 11.0359
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.791295
  Prefactor  = 1.05128
 **********
 **   18 **HESSE 
 **********

 FCN=   9100.638     FROM HESSE     STATUS=OK           354 CALLS     2852 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.208        7.3172        .12541E-03   -1.5069    
   2  norm          .71795        .69482        .81084E-03   -1.5539    
   3  Prefactor     102.75        58.262        .39665E-04   -1.3677    
   4  Prefactor     .10000E-03    5.0210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.1958        4.2073        .10930E-02   -1.5350    
   6  Prefactor     56.219        80.276        .53495E-04   -1.4207    
   7  Prefactor     24.656        13.494        .40337E-03   -1.4714    
   8  norm          2.2966        1.2006        .70781E-04   -1.5405    
   9  Prefactor     .10000E-03    25.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.3968        18.755        .13221E-02   -1.5398    
  11  norm          1.6249        1.1409        .82336E-04   -1.5453    
  12  Prefactor     .10000E-03    3.2087        .16674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .41165        13.749        .10484       -1.5580    
  14  Prefactor     1.8755        15.715        .30388E-03   -1.5434    
  15  Prefactor     .10000E-03    7.6866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.5557        1.2018        .89120E-04   -1.5459    
  17  Prefactor     .10000E-03    36.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.036        21.781        .12055E-03   -1.5043    
  19  norm          .10000E-03    1.6652        .11982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    14.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .79130        .24702        .41223E-03   -1.0039    
  22  Prefactor     1.0513        .11253        .16826E-03   -.91039    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.15192e-09
Minuit parameter uncertainties:
  1  7.31786
  2  0.69483
  3  58.2941
  4  7.79419e-06
  5  4.20771
  6  80.4308
  7  13.4956
  8  1.20064
  9  7.21514e-06
  10  13.4147
  11  1.14087
  12  1.20628e-06
  13  4.75861
  14  10.8617
  15  2.86899e-06
  16  1.20179
  17  5.10889e-06
  18  21.7964
  19  4.55739e-07
  20  2.30549e-06
  21  0.247368
  22  0.11255
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  2.297e+00  1.201e+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.051e+00  1.126e-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:  7.913e-01  2.474e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.49
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 7.37e-08 +/- 3.85e-08
Energy Flux (Fixed Index): 2.99e-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) = 9100.55697705
delta logL = 0.0809087891048

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9100.55182876
delta logL = 0.0860570727054

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2968       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3783       1.0000          .0000       5.0000    
     3 'Normalizat'    .76441       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0587       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=   9100.552     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      201 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2966        18.957        .67702E-02    .33027E-03
   2  alpha         2.3785        3.5268        .41213        .27052E-04
   3  Normalizat    .76428        .12899        .94544E-01    .46381E-04
   4  Prefactor     1.0587        .41417E-01    .39425E-01   -.99889E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.29664
  alpha      = 2.37845
  Normalizat = 0.764282
  Prefactor  = 1.05875
 **********
 **   18 **HESSE 
 **********

 FCN=   9100.552     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2966        1.1382        .66196E-04   -1.5405    
   2  alpha         2.3785        .56251        .15354E-01   -.48638E-01
   3  Normalizat    .76428        .24871        .41887E-03   -1.0141    
   4  Prefactor     1.0587        .11266        .16771E-03   -.90796    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08023e-12
Minuit parameter uncertainties:
  1  1.13824
  2  0.567378
  3  0.249081
  4  0.112686
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/399796': 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) = 9100.55182859
delta logL = 0.0860572402944

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  2.297e+00  1.138e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  2.378e+00  5.674e-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.059e+00  1.127e-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:  7.643e-01  2.491e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.80
Ra Dec: 339.096 28.483
Photon Index (Free Index): 2.38 +/- 0.57
Photon Flux (Free Index): 9.13e-08 +/- 5.96e-08
Energy Flux (Free Index): 2.87e-05 +/- 1.41e-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/399796/cmap_HighResolution_501120001_501379201_4FGL_J2236.3+2828_daily_bin1010.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.37e-08', energy_flux2='2.87e-05', photon_flux_error='3.85e-08', dlogl='8.61e-02', energy_flux='2.99e-05', photon_flux2='9.13e-08', job_status='DONE', time_completed='2021-09-28 16:58:50.831354', photon_index_error2='0.57', photon_index2='2.38', ts='10.49', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='1.41e-05', EG='0.79', time_epoch_completed='1632873530.83', return_code='0', job_id='399796', GAL2='1.06', EG2='0.76', return_code2='0', energy_flux_error='1.56e-05', photon_flux_error2='5.96e-08', ts2='10.80', photon_index='2.15' WHERE bin_id='1010' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:58:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 399796: <4FGL_J2236.3+2828_daily_bin1010> in cluster <slac> Done

Job <4FGL_J2236.3+2828_daily_bin1010> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 16:45:40 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:45:42 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:45:42 2021
Terminated at Tue Sep 28 16:58:51 2021
Results reported at Tue Sep 28 16:58:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin1010 339.096 28.4832 501120001 501379201 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 :                                   696.50 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             356.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            791 sec.

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

