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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin1546
RA = 339.096, Dec = 28.4832
tmin = 640051201, tmax = 640310401
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='402807', job_status='RUN', time_executed='2021-09-28 16:57:26.689643', time_epoch_executed='1632873446.69' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='1546'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/402807

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/402807/ft1_4FGL_J2236.3+2828_daily_bin1546.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/402807/ft2_4FGL_J2236.3+2828_daily_bin1546.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/402807/ft1_4FGL_J2236.3+2828_daily_bin1546.fits outfile=/scratch/kocevski/402807/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1546.fits ra=339.096 dec=28.4832 rad=12.0 tmin=640051201.0 tmax=640310401.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.61
user 3.40
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/402807/ft1_filtered_4FGL_J2236.3+2828_daily_bin1546.fits" evtable="EVENTS" scfile=/scratch/kocevski/402807/ft2_4FGL_J2236.3+2828_daily_bin1546.fits sctable="SC_DATA" outfile=/scratch/kocevski/402807/ltcube_640051201_640310401_4FGL_J2236.3+2828_daily_bin1546.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/402807/ft2_4FGL_J2236.3+2828_daily_bin1546.fits
.....................!
real 11.81
user 11.45
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/402807/ft1_filtered_4FGL_J2236.3+2828_daily_bin1546.fits evtable="EVENTS" scfile=/scratch/kocevski/402807/ft2_4FGL_J2236.3+2828_daily_bin1546.fits sctable="SC_DATA" expcube=/scratch/kocevski/402807/ltcube_640051201_640310401_4FGL_J2236.3+2828_daily_bin1546.fits outfile=/scratch/kocevski/402807/expmap_640051201_640310401_4FGL_J2236.3+2828_daily_bin1546.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/402807/ltcube_640051201_640310401_4FGL_J2236.3+2828_daily_bin1546.fits
.....................!
real 192.23
user 186.58
sys 5.31

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

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/402807/ft1_filtered_4FGL_J2236.3+2828_daily_bin1546.fits scfile=/scratch/kocevski/402807/ft2_4FGL_J2236.3+2828_daily_bin1546.fits outfile=/scratch/kocevski/402807/cmap_HighResolution_640051201_640310401_4FGL_J2236.3+2828_daily_bin1546.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/402807/ft1_filtered_4FGL_J2236.3+2828_daily_bin1546.fits evtable="EVENTS" scfile=/scratch/kocevski/402807/ft2_4FGL_J2236.3+2828_daily_bin1546.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/402807/Model_4FGL_J2236.3+2828_daily_bin1546.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/402807/ft1_filtered_4FGL_J2236.3+2828_daily_bin1546.fits.....................!
real 103.94
user 102.55
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .41206       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .60943       1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.562       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.4029       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.0627       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.727       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.2432       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    43.250       1.0000         .10000E-03   10000.    
    19 'norm      '    .10835E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    31.632       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1632       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .84050       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=   9733.523     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2404 TOTAL
                     EDM=   .84E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.352       -.25630E-06** at limit **
   2  norm          .41273        .76267        .44980E-06   -.47293E-04
   3  Prefactor     .10000E-03    20.015       -.34200E-07** at limit **
   4  Prefactor     .10000E-03    8.4059        .62179E-07** at limit **
   5  norm          .10000E-03    2.0594        .43985E-07** at limit **
   6  Prefactor     .10000E-03    42.171        .66799E-06** at limit **
   7  Prefactor     .10000E-03    4.3361        .59765E-07** at limit **
   8  norm          .60993        1.1137        .63131E-06   -.67274E-04
   9  Prefactor     23.560        77.471        .79085E-06    .74552E-06
  10  Prefactor     .10000E-03    10.944        .17575E-07** at limit **
  11  norm          2.4030        1.6434        .32338E-07   -.27959E-04
  12  Prefactor     4.0628        6.8991        .30391E-06   -.18977E-04
  13  Prefactor     .10004E-03    6.9370       -.46829E-06** at limit **
  14  Prefactor     11.725        8.6467       -.24504E-07   -.83243E-05
  15  Prefactor     .10000E-03    5.5777        .70067E-08** at limit **
  16  norm          1.2424        1.2994        .17963E-06    .10528E-04
  17  Prefactor     .10000E-03    52.763       -.15056E-05** at limit **
  18  Prefactor     43.241        27.054       -.23525E-06   -.20270E-04
  19  norm          .10000E-03    1.8768       -.90341E-07** at limit **
  20  Prefactor     31.620        19.815        .36880E-07   -.33601E-04
  21  Normalizat    1.1638        .19970       -.81458E-06   -.86079E-04
  22  Prefactor     .84021        .87853E-01   -.37416E-06   -.10659E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.412733
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.609932
  Prefactor  = 23.56
  Prefactor  = 0.0001
  norm       = 2.40297
  Prefactor  = 4.06278
  Prefactor  = 0.000100043
  Prefactor  = 11.7248
  Prefactor  = 0.0001
  norm       = 1.24241
  Prefactor  = 0.0001
  Prefactor  = 43.2412
  norm       = 0.0001
  Prefactor  = 31.6199
  Normalizat = 1.16375
  Prefactor  = 0.840214
 **********
 **   18 **HESSE 
 **********

 FCN=   9733.523     FROM HESSE     STATUS=OK           344 CALLS     2748 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.705        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .41273        .76010        .11188E-03   -1.5579    
   3  Prefactor     .10000E-03    20.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.4523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.0820        .13828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    42.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.3732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .60993        1.1107        .13313E-03   -1.5552    
   9  Prefactor     23.560        77.654        .82521E-04   -1.4737    
  10  Prefactor     .10000E-03    10.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.4030        1.6381        .99779E-04   -1.5398    
  12  Prefactor     4.0628        6.8790        .20004E-03   -1.5305    
  13  Prefactor     .10004E-03    48.064        .49923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.725        8.6456        .11698E-03   -1.5023    
  15  Prefactor     .10000E-03    5.5804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.2424        1.2811        .10992E-03   -1.5485    
  17  Prefactor     .10000E-03    53.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     43.241        27.008        .60959E-04   -1.4392    
  19  norm          .10000E-03    1.8798        .13182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     31.620        19.832        .71243E-04   -1.4583    
  21  Normalizat    1.1638        .23692        .34504E-03   -.87730    
  22  Prefactor     .84021        .10425        .17645E-03   -.98263    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.04725e-10
Minuit parameter uncertainties:
  1  2.63739e-05
  2  0.760115
  3  2.73022e-05
  4  1.21906e-06
  5  1.95758e-06
  6  0.000404934
  7  3.52165e-06
  8  1.11075
  9  77.9896
  10  1.58078e-05
  11  1.63818
  12  6.88038
  13  0.00287962
  14  8.64655
  15  6.90877e-07
  16  1.2811
  17  0.000244357
  18  27.0156
  19  2.13088e-06
  20  19.8364
  21  0.237135
  22  0.104279
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  6.099e-01  1.111e+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:  8.402e-01  1.043e-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:  1.164e+00  2.371e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.38
Ra Dec: 339.096 28.483
Photon Flux Upper Limit: 9.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.01e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/402807/likelihoodResults_640051201_640310401_4FGL_J2236.3+2828_daily_bin1546.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) = 9732.7373521
delta logL = 0.786027942821

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9732.72959881
delta logL = 0.793781231765

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .66505       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3661       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0768       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86238       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=   9732.730     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      215 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .66494        6.7443        .11927E-01    .27869E-02
   2  alpha         3.3663        4.1738        .44814        .71454E-04
   3  Normalizat    1.0768        .47012E-01    .80690E-01    .41751E-03
   4  Prefactor     .86238        .20931E-01    .44524E-01    .88663E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.664942
  alpha      = 3.36628
  Normalizat = 1.0768
  Prefactor  = 0.862382
 **********
 **   18 **HESSE 
 **********

 FCN=   9732.730     FROM HESSE     STATUS=OK            31 CALLS      246 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .66494        1.0665        .59786E-04   -1.5545    
   2  alpha         3.3663        1.2057        .20740E-01    .35385    
   3  Normalizat    1.0768        .24497        .35721E-03   -.90500    
   4  Prefactor     .86238        .10478        .17437E-03   -.97468    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64103e-10
Minuit parameter uncertainties:
  1  1.06649
  2  1.26637
  3  0.245231
  4  0.104807
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/402807': 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) = 9732.7295988
delta logL = 0.793781248898

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  6.649e-01  1.066e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  3.366e+00  1.266e+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:  8.624e-01  1.048e-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:  1.077e+00  2.452e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.29
Ra Dec: 339.096 28.483
Photon Index (Free Index): 3.37 +/- 1.27
Photon Flux (Free Index): 8.34e-08 +/- 6.99e-08
Energy Flux (Free Index): 1.50e-05 +/- 1.23e-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/402807/cmap_HighResolution_640051201_640310401_4FGL_J2236.3+2828_daily_bin1546.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.01e-05', comment='SUCCESS', energy_flux2='1.50e-05', dlogl='7.94e-01', photon_flux2='8.34e-08', job_status='DONE', time_completed='2021-09-28 17:10:32.841732', photon_index_error2='1.27', photon_index2='3.37', ts='0.38', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='9.88e-08', energy_flux_error2='1.23e-05', EG='1.16', time_epoch_completed='1632874232.84', return_code='0', job_id='402807', GAL2='0.86', EG2='1.08', return_code2='0', photon_flux_error2='6.99e-08', ts2='2.29', photon_index='2.15' WHERE bin_id='1546' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:10:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 402807: <4FGL_J2236.3+2828_daily_bin1546> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin1546 339.096 28.4832 640051201 640310401 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 :                                   785.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            916 sec.

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

