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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin1135
RA = 339.096, Dec = 28.4832
tmin = 533520001, tmax = 533779201
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='401018', job_status='RUN', time_executed='2021-09-28 16:52:41.909038', time_epoch_executed='1632873161.91' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='1135'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/401018

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/401018/ft1_4FGL_J2236.3+2828_daily_bin1135.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/401018/ft2_4FGL_J2236.3+2828_daily_bin1135.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/401018/ft1_4FGL_J2236.3+2828_daily_bin1135.fits outfile=/scratch/kocevski/401018/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1135.fits ra=339.096 dec=28.4832 rad=12.0 tmin=533520001.0 tmax=533779201.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.31
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/401018/ft1_filtered_4FGL_J2236.3+2828_daily_bin1135.fits" evtable="EVENTS" scfile=/scratch/kocevski/401018/ft2_4FGL_J2236.3+2828_daily_bin1135.fits sctable="SC_DATA" outfile=/scratch/kocevski/401018/ltcube_533520001_533779201_4FGL_J2236.3+2828_daily_bin1135.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/401018/ft2_4FGL_J2236.3+2828_daily_bin1135.fits
.....................!
real 11.99
user 11.57
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/401018/ft1_filtered_4FGL_J2236.3+2828_daily_bin1135.fits evtable="EVENTS" scfile=/scratch/kocevski/401018/ft2_4FGL_J2236.3+2828_daily_bin1135.fits sctable="SC_DATA" expcube=/scratch/kocevski/401018/ltcube_533520001_533779201_4FGL_J2236.3+2828_daily_bin1135.fits outfile=/scratch/kocevski/401018/expmap_533520001_533779201_4FGL_J2236.3+2828_daily_bin1135.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/401018/ltcube_533520001_533779201_4FGL_J2236.3+2828_daily_bin1135.fits
.....................!
real 189.98
user 184.76
sys 4.74

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/401018/ft1_filtered_4FGL_J2236.3+2828_daily_bin1135.fits scfile=/scratch/kocevski/401018/ft2_4FGL_J2236.3+2828_daily_bin1135.fits outfile=/scratch/kocevski/401018/cmap_533520001_533779201_4FGL_J2236.3+2828_daily_bin1135.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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/401018/ft1_filtered_4FGL_J2236.3+2828_daily_bin1135.fits scfile=/scratch/kocevski/401018/ft2_4FGL_J2236.3+2828_daily_bin1135.fits outfile=/scratch/kocevski/401018/cmap_HighResolution_533520001_533779201_4FGL_J2236.3+2828_daily_bin1135.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/401018/ft1_filtered_4FGL_J2236.3+2828_daily_bin1135.fits evtable="EVENTS" scfile=/scratch/kocevski/401018/ft2_4FGL_J2236.3+2828_daily_bin1135.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/401018/Model_4FGL_J2236.3+2828_daily_bin1135.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/401018/ft1_filtered_4FGL_J2236.3+2828_daily_bin1135.fits.....................!
real 99.57
user 97.78
sys 1.39

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .58609E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.334       1.0000         .10000E-03   10000.    
     5 'norm      '    2.2094       1.0000         .10000E-03   10000.    
     6 'Prefactor '    237.44       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.6440       1.0000         .10000E-03   10000.    
     9 'Prefactor '    77.078       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.7733       1.0000         .10000E-03   10000.    
    11 'norm      '    .10435E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.899       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.3403       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.9248       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.7093       1.0000         .10000E-03   10000.    
    16 'norm      '    .49682       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.102       1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.578       1.0000         .10000E-03   10000.    
    19 'norm      '    3.5067       1.0000         .10000E-03   10000.    
    20 'Prefactor '    28.425       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .64033       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0349       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=   9099.718     FROM MIGRAD    STATUS=CONVERGED    470 CALLS     2473 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.1309        .28685E-07** at limit **
   2  norm          .53452E-01    .35454        .12915E-06   -.27981E-03
   3  Prefactor     .10000E-03    46.151        .13521E-06** at limit **
   4  Prefactor     12.332        12.828       -.40069E-07   -.81815E-05
   5  norm          2.2089        4.8334        .39248E-05   -.62663E-03
   6  Prefactor     237.40        149.22        .20659E-05   -.31213E-04
   7  Prefactor     .10000E-03    6.6714        .22318E-06** at limit **
   8  norm          2.6438        1.5750       -.26163E-07   -.48743E-03
   9  Prefactor     77.070        75.469        .73575E-06   -.12397E-04
  10  Prefactor     3.7731        20.234        .56589E-06   -.41086E-05
  11  norm          .10000E-03    .76167        .31530E-06** at limit **
  12  Prefactor     25.894        13.354       -.95401E-07   -.16982E-03
  13  Prefactor     8.3402        11.249        .67095E-07   -.28190E-05
  14  Prefactor     4.9261        14.110       -.61751E-07   -.66629E-04
  15  Prefactor     4.7099        12.317        .91999E-07   -.15714E-04
  16  norm          .49594        .86059        .55254E-06    .38730E-02
  17  Prefactor     13.083        27.966        .25420E-05   -.58624E-04
  18  Prefactor     22.580        20.996        .24697E-07   -.56191E-04
  19  norm          3.4910        6.9022        .38159E-05   -.12516E-03
  20  Prefactor     28.440        25.942       -.36523E-05   -.13405E-03
  21  Normalizat    .64054        .24473       -.22075E-05   -.18874E-03
  22  Prefactor     1.0348        .10147       -.37886E-07   -.28904E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0534515
  Prefactor  = 0.0001
  Prefactor  = 12.3323
  norm       = 2.20894
  Prefactor  = 237.4
  Prefactor  = 0.0001
  norm       = 2.64384
  Prefactor  = 77.0703
  Prefactor  = 3.7731
  norm       = 0.0001
  Prefactor  = 25.8938
  Prefactor  = 8.34015
  Prefactor  = 4.92614
  Prefactor  = 4.7099
  norm       = 0.495936
  Prefactor  = 13.0826
  Prefactor  = 22.5799
  norm       = 3.49097
  Prefactor  = 28.4396
  Normalizat = 0.640536
  Prefactor  = 1.03483
 **********
 **   18 **HESSE 
 **********

 FCN=   9099.718     FROM HESSE     STATUS=OK           354 CALLS     2827 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.1331        .13598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .53452E-01    2.6610        .10697E-02   -1.5662    
   3  Prefactor     .10000E-03    46.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.332        12.817        .11406E-03   -1.5005    
   5  norm          2.2089        4.8070        .13837E-02   -1.5411    
   6  Prefactor     237.40        148.91        .13136E-03   -1.2614    
   7  Prefactor     .10000E-03    6.7105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.6438        1.5587        .81546E-04   -1.5383    
   9  Prefactor     77.070        75.522        .45739E-04   -1.3950    
  10  Prefactor     3.7731        20.029        .20783E-03   -1.5319    
  11  norm          .10000E-03    1.1819        .16031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     25.894        13.179        .78716E-04   -1.4690    
  13  Prefactor     8.3402        11.252        .13882E-03   -1.5130    
  14  Prefactor     4.9261        14.052        .18124E-03   -1.5264    
  15  Prefactor     4.7099        12.303        .18543E-03   -1.5274    
  16  norm          .49594        .70725        .11741E-02   -1.5567    
  17  Prefactor     13.083        27.895        .11066E-03   -1.4984    
  18  Prefactor     22.580        20.988        .84298E-04   -1.4757    
  19  norm          3.4910        6.7679        .10795E-02   -1.5334    
  20  Prefactor     28.440        25.785        .75144E-04   -1.4641    
  21  Normalizat    .64054        .26551        .45876E-03   -1.0629    
  22  Prefactor     1.0348        .11355        .16706E-03   -.91577    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41064e-08
Minuit parameter uncertainties:
  1  2.48543e-06
  2  0.753607
  3  0.000126681
  4  12.8198
  5  4.80781
  6  149.146
  7  3.61108e-05
  8  1.55874
  9  75.6163
  10  17.3954
  11  1.57475e-05
  12  13.1804
  13  11.2552
  14  14.0615
  15  12.3099
  16  0.707264
  17  27.9229
  18  20.9944
  19  6.76936
  20  25.7949
  21  0.266037
  22  0.113575
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  2.644e+00  1.559e+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.035e+00  1.136e-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:  6.405e-01  2.660e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.51
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 8.48e-08 +/- 5.00e-08
Energy Flux (Fixed Index): 3.44e-05 +/- 2.03e-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) = 9097.56929125
delta logL = 2.1484102471

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9097.51633049
delta logL = 2.2013710007

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0575       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6755       1.0000          .0000       5.0000    
     3 'Normalizat'    .45227       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0967       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=   9097.516     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      216 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0549        4.6847        .79740E-02    .95362E-03
   2  alpha         3.6779        4.0859        .26841        .74355E-04
   3  Normalizat    .45229        .77067E-01    .12197        .73330E-04
   4  Prefactor     1.0966        .34961E-01    .37714E-01   -.15376E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.05487
  alpha      = 3.6779
  Normalizat = 0.452291
  Prefactor  = 1.0966
 **********
 **   18 **HESSE 
 **********

 FCN=   9097.516     FROM HESSE     STATUS=OK            31 CALLS      247 TOTAL
                     EDM=   .74E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0549        1.4031        .35721E-04   -1.5503    
   2  alpha         3.6779        .98876        .11656E-02    .49061    
   3  Normalizat    .45229        .26028        .54055E-03   -1.1468    
   4  Prefactor     1.0966        .11591        .16279E-03   -.89575    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.40047e-13
Minuit parameter uncertainties:
  1  1.40319
  2  1.02531
  3  0.260976
  4  0.115937
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/401018': 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) = 9097.51632527
delta logL = 2.20137622461

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  1.055e+00  1.403e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  3.678e+00  1.025e+00  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.097e+00  1.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:  4.523e-01  2.610e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.14
Ra Dec: 339.096 28.483
Photon Index (Free Index): 3.68 +/- 1.03
Photon Flux (Free Index): 2.00e-07 +/- 8.19e-08
Energy Flux (Free Index): 3.31e-05 +/- 1.38e-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/401018/cmap_HighResolution_533520001_533779201_4FGL_J2236.3+2828_daily_bin1135.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.48e-08', energy_flux2='3.31e-05', photon_flux_error='5.00e-08', dlogl='2.20e+00', energy_flux='3.44e-05', photon_flux2='2.00e-07', job_status='DONE', time_completed='2021-09-28 17:04:09.507667', photon_index_error2='1.03', photon_index2='3.68', ts='5.51', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.38e-05', EG='0.64', time_epoch_completed='1632873849.51', return_code='0', job_id='401018', GAL2='1.10', EG2='0.45', return_code2='0', energy_flux_error='2.03e-05', photon_flux_error2='8.19e-08', ts2='11.14', photon_index='2.15' WHERE bin_id='1135' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:04:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 401018: <4FGL_J2236.3+2828_daily_bin1135> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin1135 339.096 28.4832 533520001 533779201 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 :                                   684.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            834 sec.

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

