/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 4 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_bin1080
RA = 339.096, Dec = 28.4832
tmin = 519264001, tmax = 519523201
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='399901', job_status='RUN', time_executed='2021-09-28 16:46:03.707371', time_epoch_executed='1632872763.71' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='1080'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/399901

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/399901/ft1_4FGL_J2236.3+2828_daily_bin1080.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/399901/ft2_4FGL_J2236.3+2828_daily_bin1080.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/399901/ft1_4FGL_J2236.3+2828_daily_bin1080.fits outfile=/scratch/kocevski/399901/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1080.fits ra=339.096 dec=28.4832 rad=12.0 tmin=519264001.0 tmax=519523201.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.28
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/399901/ft1_filtered_4FGL_J2236.3+2828_daily_bin1080.fits evtable="EVENTS" scfile=/scratch/kocevski/399901/ft2_4FGL_J2236.3+2828_daily_bin1080.fits sctable="SC_DATA" expcube=/scratch/kocevski/399901/ltcube_519264001_519523201_4FGL_J2236.3+2828_daily_bin1080.fits outfile=/scratch/kocevski/399901/expmap_519264001_519523201_4FGL_J2236.3+2828_daily_bin1080.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/399901/ltcube_519264001_519523201_4FGL_J2236.3+2828_daily_bin1080.fits
.....................!
real 190.10
user 184.56
sys 5.19

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/399901/ft1_filtered_4FGL_J2236.3+2828_daily_bin1080.fits scfile=/scratch/kocevski/399901/ft2_4FGL_J2236.3+2828_daily_bin1080.fits outfile=/scratch/kocevski/399901/cmap_519264001_519523201_4FGL_J2236.3+2828_daily_bin1080.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.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.350       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.1770       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.9842       1.0000         .10000E-03   10000.    
     9 'Prefactor '    164.38       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.772       1.0000         .10000E-03   10000.    
    11 'norm      '    .48703       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12107E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.684       1.0000         .10000E-03   10000.    
    16 'norm      '    2.0011       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.6332       1.0000         .10000E-03   10000.    
    19 'norm      '    .10855E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.7208       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .84932       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0871       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=   10320.30     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     2425 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.1841       -.46281E-06** at limit **
   2  norm          .10000E-03    .23136       -.86236E-07** at limit **
   3  Prefactor     22.303        43.657       -.56328E-04    .84018E-05
   4  Prefactor     .10000E-03    6.5493       -.12400E-06** at limit **
   5  norm          .10000E-03    3.3680       -.16395E-07** at limit **
   6  Prefactor     8.1756        33.800       -.24831E-05   -.47079E-05
   7  Prefactor     .10000E-03    4.8921       -.37178E-06** at limit **
   8  norm          2.9841        1.1217       -.11989E-06   -.10343E-03
   9  Prefactor     164.33        80.431       -.31812E-04   -.43036E-06
  10  Prefactor     11.772        10.348       -.67850E-06    .19288E-04
  11  norm          .48687        1.1294       -.82953E-06   -.20042E-02
  12  Prefactor     .10000E-03    4.0160        .35768E-07** at limit **
  13  Prefactor     .10000E-03    107.74        .80771E-05** at limit **
  14  Prefactor     .10000E-03    3.3376       -.97757E-07** at limit **
  15  Prefactor     19.677        29.459       -.36374E-05   -.19981E-05
  16  norm          2.0013        1.5815       -.35633E-06   -.10608E-02
  17  Prefactor     .10000E-03    8.8068       -.36444E-06** at limit **
  18  Prefactor     1.6350        47.050        .92154E-05   -.12476E-03
  19  norm          .10000E-03    5.0985        .25072E-06** at limit **
  20  Prefactor     2.7521        25.621       -.22229E-05   -.12847E-03
  21  Normalizat    .84919        .20263        .27918E-05    .91399E-04
  22  Prefactor     1.0872        .93216E-01    .17062E-05   -.18833E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 22.303
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.17561
  Prefactor  = 0.0001
  norm       = 2.98412
  Prefactor  = 164.332
  Prefactor  = 11.7717
  norm       = 0.486869
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.6773
  norm       = 2.00126
  Prefactor  = 0.0001
  Prefactor  = 1.63496
  norm       = 0.0001
  Prefactor  = 2.75212
  Normalizat = 0.849188
  Prefactor  = 1.0872
 **********
 **   18 **HESSE 
 **********

 FCN=   10320.30     FROM HESSE     STATUS=OK           346 CALLS     2771 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.2497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .29976        .94713E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.303        43.668        .84725E-04   -1.4763    
   4  Prefactor     .10000E-03    6.5728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.4286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.1756        33.784        .14020E-03   -1.5136    
   7  Prefactor     .10000E-03    4.9196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.9841        1.1197        .63033E-04   -1.5362    
   9  Prefactor     164.33        80.463        .15729E-03   -1.3137    
  10  Prefactor     11.772        10.348        .11676E-03   -1.5022    
  11  norm          .48687        1.1835        .16015E-02   -1.5568    
  12  Prefactor     .10000E-03    4.0339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    112.83        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.3445        .18124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     19.677        29.438        .90276E-04   -1.4820    
  16  norm          2.0013        1.5648        .10525E-03   -1.5425    
  17  Prefactor     .10000E-03    8.8287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.6350        46.893        .33083E-03   -1.5452    
  19  norm          .10000E-03    5.1782        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.7521        25.051        .24689E-03   -1.5376    
  21  Normalizat    .84919        .22775        .40022E-03   -.98269    
  22  Prefactor     1.0872        .10583        .16852E-03   -.89877    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84323e-09
Minuit parameter uncertainties:
  1  2.36027e-05
  2  8.66834e-06
  3  43.731
  4  3.41194e-06
  5  5.67903e-06
  6  33.2709
  7  3.63102e-06
  8  1.11976
  9  80.517
  10  10.3499
  11  1.18356
  12  5.70841e-06
  13  0.000383275
  14  1.06817e-05
  15  29.4598
  16  1.56486
  17  4.33473e-05
  18  17.5266
  19  2.74801e-05
  20  16.6153
  21  0.228006
  22  0.105851
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  2.984e+00  1.120e+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.087e+00  1.059e-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:  8.492e-01  2.280e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.07
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 9.57e-08 +/- 3.59e-08
Energy Flux (Fixed Index): 3.88e-05 +/- 1.46e-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) = 10318.4703733
delta logL = 1.83001684718

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10318.4384026
delta logL = 1.86198756314

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7556       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4925       1.0000          .0000       5.0000    
     3 'Normalizat'    .90751       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0687       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=   10318.44     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      205 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7556        1.0308        .61305E-03    .52611E-02
   2  alpha         1.4925        .24525        .25536       -.72295E-04
   3  Normalizat    .90751        .19380        .87665E-01    .25249E-04
   4  Prefactor     1.0687        .91409E-01    .38920E-01    .31036E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.75556
  alpha      = 1.4925
  Normalizat = 0.90751
  Prefactor  = 1.06871
 **********
 **   18 **HESSE 
 **********

 FCN=   10318.44     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7556        1.1838        .24522E-04   -1.5376    
   2  alpha         1.4925        .30086        .10568E-01   -.41479    
   3  Normalizat    .90751        .22124        .38821E-03   -.96197    
   4  Prefactor     1.0687        .10450        .16967E-03   -.90473    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45872e-09
Minuit parameter uncertainties:
  1  1.18377
  2  0.301737
  3  0.221466
  4  0.104517
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/399901': 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) = 10318.4384026
delta logL = 1.86198756772

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  2.756e+00  1.184e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  1.492e+00  3.017e-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.069e+00  1.045e-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:  9.075e-01  2.215e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.62
Ra Dec: 339.096 28.483
Photon Index (Free Index): 1.49 +/- 0.30
Photon Flux (Free Index): 6.06e-08 +/- 2.82e-08
Energy Flux (Free Index): 8.02e-05 +/- 4.55e-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/399901/cmap_HighResolution_519264001_519523201_4FGL_J2236.3+2828_daily_bin1080.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.57e-08', energy_flux2='8.02e-05', photon_flux_error='3.59e-08', dlogl='1.86e+00', energy_flux='3.88e-05', photon_flux2='6.06e-08', job_status='DONE', time_completed='2021-09-28 16:58:26.553191', photon_index_error2='0.30', photon_index2='1.49', ts='16.07', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='4.55e-05', EG='0.85', time_epoch_completed='1632873506.55', return_code='0', job_id='399901', GAL2='1.07', EG2='0.91', return_code2='0', energy_flux_error='1.46e-05', photon_flux_error2='2.82e-08', ts2='19.62', photon_index='2.15' WHERE bin_id='1080' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:58:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 399901: <4FGL_J2236.3+2828_daily_bin1080> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin1080 339.096 28.4832 519264001 519523201 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 :                                   740.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             324.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   757 sec.
    Turnaround time :                            759 sec.

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

