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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin1206
RA = 339.096, Dec = 28.4832
tmin = 551923201, tmax = 552182401
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='401119', job_status='RUN', time_executed='2021-09-28 16:54:10.412101', time_epoch_executed='1632873250.41' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='1206'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/401119

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/401119/ft1_4FGL_J2236.3+2828_daily_bin1206.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/401119/ft2_4FGL_J2236.3+2828_daily_bin1206.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/401119/ft1_4FGL_J2236.3+2828_daily_bin1206.fits outfile=/scratch/kocevski/401119/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1206.fits ra=339.096 dec=28.4832 rad=12.0 tmin=551923201.0 tmax=552182401.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.72
user 3.49
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/401119/ft1_filtered_4FGL_J2236.3+2828_daily_bin1206.fits" evtable="EVENTS" scfile=/scratch/kocevski/401119/ft2_4FGL_J2236.3+2828_daily_bin1206.fits sctable="SC_DATA" outfile=/scratch/kocevski/401119/ltcube_551923201_552182401_4FGL_J2236.3+2828_daily_bin1206.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/401119/ft2_4FGL_J2236.3+2828_daily_bin1206.fits
.....................!
real 11.69
user 11.35
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/401119/ft1_filtered_4FGL_J2236.3+2828_daily_bin1206.fits evtable="EVENTS" scfile=/scratch/kocevski/401119/ft2_4FGL_J2236.3+2828_daily_bin1206.fits sctable="SC_DATA" expcube=/scratch/kocevski/401119/ltcube_551923201_552182401_4FGL_J2236.3+2828_daily_bin1206.fits outfile=/scratch/kocevski/401119/expmap_551923201_552182401_4FGL_J2236.3+2828_daily_bin1206.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/401119/ltcube_551923201_552182401_4FGL_J2236.3+2828_daily_bin1206.fits
.....................!
real 189.75
user 184.61
sys 4.75

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/401119/ft1_filtered_4FGL_J2236.3+2828_daily_bin1206.fits scfile=/scratch/kocevski/401119/ft2_4FGL_J2236.3+2828_daily_bin1206.fits outfile=/scratch/kocevski/401119/cmap_551923201_552182401_4FGL_J2236.3+2828_daily_bin1206.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.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12811E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .32889E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    144.65       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.9812       1.0000         .10000E-03   10000.    
     9 'Prefactor '    103.83       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.789       1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10299E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    51.340       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.2709       1.0000         .10000E-03   10000.    
    16 'norm      '    6.2381       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.6240       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10573E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    16.615       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .56180       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .94559       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=   3408.840     FROM MIGRAD    STATUS=CONVERGED    490 CALLS     2859 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.801       -.78530E-07** at limit **
   2  norm          .10000E-03    .85632       -.60736E-07** at limit **
   3  Prefactor     .10000E-03    194.63        .32323E-05** at limit **
   4  Prefactor     .10000E-03    204.66        .84589E-05** at limit **
   5  norm          .10000E-03    2.3510        .44657E-08** at limit **
   6  Prefactor     144.37        357.81        .12272E-04    .10398E-04
   7  Prefactor     .10000E-03    8.9390        .23466E-07** at limit **
   8  norm          2.9821        4.8684       -.14865E-06    .15138E-04
   9  Prefactor     103.69        276.25       -.17501E-05   -.69567E-06
  10  Prefactor     13.714        162.93       -.16068E-05   -.75262E-05
  11  norm          .10000E-03    .96623       -.70954E-07** at limit **
  12  Prefactor     .10000E-03    16.662       -.23096E-06** at limit **
  13  Prefactor     .10000E-03    37.664        .71625E-07** at limit **
  14  Prefactor     51.340        27.185        .17800E-06   -.18933E-04
  15  Prefactor     9.1925        228.96       -.33640E-05    .56692E-06
  16  norm          6.2378        4.6216        .81277E-07    .83478E-04
  17  Prefactor     2.5154        169.14       -.20290E-05   -.12197E-04
  18  Prefactor     .10000E-03    78.727        .97531E-06** at limit **
  19  norm          16.606        11.772        .37593E-06    .14258E-03
  20  Prefactor     .10000E-03    313.56        .59255E-05** at limit **
  21  Normalizat    .56165        .41578        .10870E-04    .71149E-04
  22  Prefactor     .94578        .19222       -.31581E-05    .27544E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 144.37
  Prefactor  = 0.0001
  norm       = 2.98207
  Prefactor  = 103.69
  Prefactor  = 13.7143
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 51.3403
  Prefactor  = 9.19249
  norm       = 6.23784
  Prefactor  = 2.51543
  Prefactor  = 0.0001
  norm       = 16.6059
  Prefactor  = 0.000100005
  Normalizat = 0.561649
  Prefactor  = 0.945781
 **********
 **   18 **HESSE 
 **********

 FCN=   3408.840     FROM HESSE     STATUS=OK           340 CALLS     3199 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .85779        .52779E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    193.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    200.29        .60636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.3652        .87416E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     144.37        357.04        .16751E-03   -1.3299    
   7  Prefactor     .10000E-03    8.9627        .17043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.9821        4.7548        .10357E-03   -1.5363    
   9  Prefactor     103.69        276.60        .19730E-03   -1.3668    
  10  Prefactor     13.714        158.64        .10787E-03   -1.4967    
  11  norm          .10000E-03    .97647        .56048E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    37.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     51.340        27.036        .55972E-04   -1.4274    
  15  Prefactor     9.1925        230.40        .13162E-03   -1.5101    
  16  norm          6.2378        4.6051        .99558E-04   -1.5208    
  17  Prefactor     2.5154        167.26        .25177E-03   -1.5391    
  18  Prefactor     .10000E-03    79.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          16.606        11.742        .98258E-04   -1.4893    
  20  Prefactor     .10000E-03    315.68        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .56165        .41633        .49220E-03   -1.0964    
  22  Prefactor     .94578        .19378        .18477E-03   -.94559    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09275e-10
Minuit parameter uncertainties:
  1  8.11229e-06
  2  1.16409e-06
  3  0.000781525
  4  0.000716291
  5  7.77134e-06
  6  362.595
  7  4.11646e-05
  8  4.75536
  9  280.162
  10  93.6005
  11  4.0314e-06
  12  9.43326e-05
  13  1.02408e-05
  14  27.0428
  15  92.4429
  16  4.60538
  17  41.1429
  18  2.53635e-05
  19  11.7436
  20  0.00240055
  21  0.41868
  22  0.193921
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  9.458e-01  1.939e-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.616e-01  4.187e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.15
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 9.57e-08 +/- 1.53e-07
Energy Flux (Fixed Index): 3.88e-05 +/- 6.18e-05

TS (Fixed Index): 1.15
Ra Dec: 339.096 28.483
Photon Flux Upper Limit: 3.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.28e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/401119/likelihoodResults_551923201_552182401_4FGL_J2236.3+2828_daily_bin1206.txt

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) = 3406.44811486
delta logL = 2.39179541133

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3406.4330985
delta logL = 2.40681177116

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8123       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5121       1.0000          .0000       5.0000    
     3 'Normalizat'    .31112       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0051       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3406.433     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      233 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8123        2.4010        .43751E-04   -.47215E-03
   2  alpha         3.5122        .64315        .86887E-03   -.29047E-04
   3  Normalizat    .31112        .40373        .64626E-03    .15885E-04
   4  Prefactor     1.0051        .19199        .17882E-03    .36174E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.81232
  alpha      = 3.51216
  Normalizat = 0.311119
  Prefactor  = 1.00513
 **********
 **   18 **HESSE 
 **********

 FCN=   3406.433     FROM HESSE     STATUS=OK            23 CALLS      256 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8123        2.3755        .17500E-05   -1.5373    
   2  alpha         3.5122        .63647        .34755E-04    .41683    
   3  Normalizat    .31112        .40340        .25850E-04   -1.2218    
   4  Prefactor     1.0051        .19182        .71529E-05   -.92559    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.45687e-11
Minuit parameter uncertainties:
  1  2.37559
  2  0.644997
  3  0.407248
  4  0.191951
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/401119': 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) = 3406.4330985
delta logL = 2.40681177582

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  2.812e+00  2.376e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  3.512e+00  6.450e-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.005e+00  1.920e-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:  3.111e-01  4.072e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.23
Ra Dec: 339.096 28.483
Photon Index (Free Index): 3.51 +/- 0.64
Photon Flux (Free Index): 4.27e-07 +/- 2.21e-07
Energy Flux (Free Index): 7.37e-05 +/- 3.63e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/401119/cmap_HighResolution_551923201_552182401_4FGL_J2236.3+2828_daily_bin1206.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.28e-04', comment='SUCCESS', photon_flux='9.57e-08', energy_flux2='7.37e-05', photon_flux_error='1.53e-07', dlogl='2.41e+00', energy_flux='3.88e-05', photon_flux2='4.27e-07', job_status='DONE', time_completed='2021-09-28 17:02:09.797626', photon_index_error2='0.64', photon_index2='3.51', ts='1.15', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='3.15e-07', energy_flux_error2='3.63e-05', EG='0.56', time_epoch_completed='1632873729.8', return_code='0', job_id='401119', GAL2='1.01', EG2='0.31', return_code2='0', energy_flux_error='6.18e-05', photon_flux_error2='2.21e-07', ts2='7.23', photon_index='2.15' WHERE bin_id='1206' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:02:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 401119: <4FGL_J2236.3+2828_daily_bin1206> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin1206 339.096 28.4832 551923201 552182401 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 :                                   478.29 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             267.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   705 sec.
    Turnaround time :                            707 sec.

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

