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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin994
RA = 339.096, Dec = 28.4832
tmin = 496972801, tmax = 497232001
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='399774', job_status='RUN', time_executed='2021-09-28 16:45:48.517714', time_epoch_executed='1632872748.52' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='994'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/399774

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/399774/ft1_4FGL_J2236.3+2828_daily_bin994.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/399774/ft2_4FGL_J2236.3+2828_daily_bin994.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/399774/ft1_4FGL_J2236.3+2828_daily_bin994.fits outfile=/scratch/kocevski/399774/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin994.fits ra=339.096 dec=28.4832 rad=12.0 tmin=496972801.0 tmax=497232001.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 5.10
user 4.84
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/399774/ft2_4FGL_J2236.3+2828_daily_bin994.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/399774/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin994.fits evtable="EVENTS" outfile="/scratch/kocevski/399774/ft1_filtered_4FGL_J2236.3+2828_daily_bin994.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.52
user 0.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/399774/ft1_filtered_4FGL_J2236.3+2828_daily_bin994.fits evtable="EVENTS" scfile=/scratch/kocevski/399774/ft2_4FGL_J2236.3+2828_daily_bin994.fits sctable="SC_DATA" expcube=/scratch/kocevski/399774/ltcube_496972801_497232001_4FGL_J2236.3+2828_daily_bin994.fits outfile=/scratch/kocevski/399774/expmap_496972801_497232001_4FGL_J2236.3+2828_daily_bin994.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/399774/ltcube_496972801_497232001_4FGL_J2236.3+2828_daily_bin994.fits
.....................!
real 190.94
user 185.73
sys 4.85

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/399774/ft1_filtered_4FGL_J2236.3+2828_daily_bin994.fits scfile=/scratch/kocevski/399774/ft2_4FGL_J2236.3+2828_daily_bin994.fits outfile=/scratch/kocevski/399774/cmap_496972801_497232001_4FGL_J2236.3+2828_daily_bin994.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/399774/ft1_filtered_4FGL_J2236.3+2828_daily_bin994.fits scfile=/scratch/kocevski/399774/ft2_4FGL_J2236.3+2828_daily_bin994.fits outfile=/scratch/kocevski/399774/cmap_HighResolution_496972801_497232001_4FGL_J2236.3+2828_daily_bin994.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.40
sys 0.13

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/399774/ft1_filtered_4FGL_J2236.3+2828_daily_bin994.fits', '/scratch/kocevski/399774/ft2_4FGL_J2236.3+2828_daily_bin994.fits', expMap='/scratch/kocevski/399774/expmap_496972801_497232001_4FGL_J2236.3+2828_daily_bin994.fits', expCube='/scratch/kocevski/399774/ltcube_496972801_497232001_4FGL_J2236.3+2828_daily_bin994.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/399774/Model_4FGL_J2236.3+2828_daily_bin994.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/399774/ft1_filtered_4FGL_J2236.3+2828_daily_bin994.fits
Spacecraft file(s): /scratch/kocevski/399774/ft2_4FGL_J2236.3+2828_daily_bin994.fits
Exposure map: /scratch/kocevski/399774/expmap_496972801_497232001_4FGL_J2236.3+2828_daily_bin994.fits
Exposure cube: /scratch/kocevski/399774/ltcube_496972801_497232001_4FGL_J2236.3+2828_daily_bin994.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/399774/Model_4FGL_J2236.3+2828_daily_bin994.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6622.27338335

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.998       1.0000         .10000E-03   10000.    
     2 'norm      '    .38877       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.024       1.0000         .10000E-03   10000.    
     5 'norm      '    11.117       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.7232       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13513E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    43.317       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    62.891       1.0000         .10000E-03   10000.    
    16 'norm      '    .46993       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.411       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .34093       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .76667       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0933       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=   6622.164     FROM MIGRAD    STATUS=CONVERGED    870 CALLS     2463 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.993        10.874        .10342E-03    .32318E-04
   2  norm          .38992        .84055        .11274E-02    .63252E-02
   3  Prefactor     .10000E-03    16.710        .18142E-02** at limit **
   4  Prefactor     17.018        19.389        .97071E-04   -.38649E-05
   5  norm          11.116        7.7181        .12016E-03   -.69070E-05
   6  Prefactor     .10000E-03    64.536        .18142E-02** at limit **
   7  Prefactor     .10000E-03    3.9824        .15853E-02** at limit **
   8  norm          .10000E-03    .68327        .10849E-02** at limit **
   9  Prefactor     .10000E-03    34.417        .18142E-02** at limit **
  10  Prefactor     .10000E-03    9.7046        .18142E-02** at limit **
  11  norm          5.7217        3.1540        .10382E-03   -.42708E-04
  12  Prefactor     .10000E-03    119.42        .57231E-02** at limit **
  13  Prefactor     43.314        31.675        .60912E-04    .18664E-05
  14  Prefactor     .10000E-03    6.8608        .18142E-02** at limit **
  15  Prefactor     62.897        39.978        .50600E-04   -.20940E-04
  16  norm          .46860        1.6234        .17726E-03    .81132E-04
  17  Prefactor     .10000E-03    6.1989        .18142E-02** at limit **
  18  Prefactor     17.416        15.277        .95987E-04   -.11844E-05
  19  norm          .10000E-03    2.9250        .13536E-02** at limit **
  20  Prefactor     .22024        20.571        .89730E-01    .18344E-03
  21  Normalizat    .76668        .30672        .43919E-03   -.13461E-04
  22  Prefactor     1.0934        .14057        .17303E-03    .10489E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.9931
  norm       = 0.389919
  Prefactor  = 0.0001
  Prefactor  = 17.0182
  norm       = 11.1162
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.72167
  Prefactor  = 0.0001
  Prefactor  = 43.3138
  Prefactor  = 0.0001
  Prefactor  = 62.8968
  norm       = 0.468597
  Prefactor  = 0.0001
  Prefactor  = 17.4156
  norm       = 0.0001
  Prefactor  = 0.220236
  Normalizat = 0.766684
  Prefactor  = 1.09335
 **********
 **   18 **HESSE 
 **********

 FCN=   6622.164     FROM HESSE     STATUS=OK           332 CALLS     2795 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.993        10.871        .41369E-05   -1.4933    
   2  norm          .38992        .83923        .22547E-03   -1.5583    
   3  Prefactor     .10000E-03    16.710        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     17.018        19.389        .38828E-05   -1.4883    
   5  norm          11.116        7.7179        .48062E-05   -1.5041    
   6  Prefactor     .10000E-03    64.538        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.9825        .31706E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .68383        .21697E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    34.417        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.7050        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.7217        3.1475        .41527E-05   -1.5230    
  12  Prefactor     .10000E-03    124.24        .22892E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     43.314        31.679        .24365E-05   -1.4391    
  14  Prefactor     .10000E-03    6.8618        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     62.897        39.976        .10120E-04   -1.4120    
  16  norm          .46860        1.6225        .70904E-05   -1.5571    
  17  Prefactor     .10000E-03    6.1990        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     17.416        15.276        .38395E-05   -1.4873    
  19  norm          .10000E-03    2.9252        .27071E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .22024        19.014        .94328E-01   -1.5614    
  21  Normalizat    .76668        .30642        .17567E-04   -1.0132    
  22  Prefactor     1.0934        .14058        .34607E-04   -.89679    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.94229e-10
Minuit parameter uncertainties:
  1  10.8725
  2  0.83926
  3  1.38798e-06
  4  19.3957
  5  7.71855
  6  0.000157504
  7  5.744e-07
  8  3.11079e-06
  9  1.74501e-05
  10  1.65194e-06
  11  3.14759
  12  9.53413e-06
  13  31.6911
  14  2.40259e-06
  15  39.9929
  16  1.62267
  17  6.30788e-07
  18  15.279
  19  1.32797e-06
  20  4.09315
  21  0.307112
  22  0.140628
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  1.000e-04  3.111e-06  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.093e+00  1.406e-01  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  7.667e-01  3.071e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/399774/likelihoodResults_496972801_497232001_4FGL_J2236.3+2828_daily_bin994.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): 102
logL (Free Index) = 6622.17089083
delta logL = -0.00693917840181

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6622.07840459
delta logL = 0.0855470644574

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .25607E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.9997       1.0000          .0000       5.0000    
     3 'Normalizat'    .71716       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1075       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=   6622.078     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      326 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .25562E-01    1.9084        .66974E-02    .63172E-02
   2  alpha         5.0000        3.8695        .46276    ** at limit **
   3  Normalizat    .71739        .64250E-01    .10230        .32189E-04
   4  Prefactor     1.1075        .28056E-01    .37307E-01   -.11944E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0255625
  alpha      = 5
  Normalizat = 0.717391
  Prefactor  = 1.10752
 **********
 **   18 **HESSE 
 **********

 FCN=   6622.078     FROM HESSE     STATUS=OK            37 CALLS      363 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .25562E-01    .80873E-01    .26548E-03   -1.5676    
   2  alpha         5.0000        4.8521        .50000        1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .71739        .32056        .45343E-03   -1.0321    
   4  Prefactor     1.1075        .14250        .17209E-03   -.89227    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57387e-08
Minuit parameter uncertainties:
  1  0.0808732
  2  0.000453767
  3  0.321397
  4  0.142553
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/399774': 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) = 6622.07839958
delta logL = 0.0855520770929

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  2.556e-02  8.087e-02  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  5.000e+00  4.538e-04  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.108e+00  1.426e-01  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  7.174e-01  3.214e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 339.096 28.483

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/399774/cmap_HighResolution_496972801_497232001_4FGL_J2236.3+2828_daily_bin994.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.07e-05', job_status='DONE', photon_flux_upper_limit='7.58e-08', time_completed='2021-09-28 16:56:41.944012', job_id='399774', GAL2='1.11', fit_tolerance='1e-08', EG2='0.72', EG='0.77', time_epoch_completed='1632873401.94', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='8.56e-02', ts2='0.21', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='994' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:56:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 399774: <4FGL_J2236.3+2828_daily_bin994> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin994 339.096 28.4832 496972801 497232001 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 :                                   651.35 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             336.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   662 sec.
    Turnaround time :                            663 sec.

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

