/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 134 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 = 7420
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2236.3+2828_daily_bin17
RA = 339.096, Dec = 28.4832
tmin = 243734401, tmax = 243993601
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='395127', job_status='RUN', time_executed='2021-09-28 16:33:19.419239', time_epoch_executed='1632871999.42' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='17'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/395127

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/395127/ft1_4FGL_J2236.3+2828_daily_bin17.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/395127/ft2_4FGL_J2236.3+2828_daily_bin17.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/395127/ft1_4FGL_J2236.3+2828_daily_bin17.fits outfile=/scratch/kocevski/395127/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin17.fits ra=339.096 dec=28.4832 rad=12.0 tmin=243734401.0 tmax=243993601.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 1.38
user 1.20
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/395127/ft1_filtered_4FGL_J2236.3+2828_daily_bin17.fits" evtable="EVENTS" scfile=/scratch/kocevski/395127/ft2_4FGL_J2236.3+2828_daily_bin17.fits sctable="SC_DATA" outfile=/scratch/kocevski/395127/ltcube_243734401_243993601_4FGL_J2236.3+2828_daily_bin17.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/395127/ft2_4FGL_J2236.3+2828_daily_bin17.fits
.....................!
real 12.80
user 12.42
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/395127/ft1_filtered_4FGL_J2236.3+2828_daily_bin17.fits evtable="EVENTS" scfile=/scratch/kocevski/395127/ft2_4FGL_J2236.3+2828_daily_bin17.fits sctable="SC_DATA" expcube=/scratch/kocevski/395127/ltcube_243734401_243993601_4FGL_J2236.3+2828_daily_bin17.fits outfile=/scratch/kocevski/395127/expmap_243734401_243993601_4FGL_J2236.3+2828_daily_bin17.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/395127/ltcube_243734401_243993601_4FGL_J2236.3+2828_daily_bin17.fits
.....................!
real 193.08
user 186.22
sys 5.94

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/395127/ft1_filtered_4FGL_J2236.3+2828_daily_bin17.fits scfile=/scratch/kocevski/395127/ft2_4FGL_J2236.3+2828_daily_bin17.fits outfile=/scratch/kocevski/395127/cmap_243734401_243993601_4FGL_J2236.3+2828_daily_bin17.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/395127/ft1_filtered_4FGL_J2236.3+2828_daily_bin17.fits scfile=/scratch/kocevski/395127/ft2_4FGL_J2236.3+2828_daily_bin17.fits outfile=/scratch/kocevski/395127/cmap_HighResolution_243734401_243993601_4FGL_J2236.3+2828_daily_bin17.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.57
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1408       1.0000         .10000E-03   10000.    
     2 'norm      '    2.3372       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    29.552       1.0000         .10000E-03   10000.    
     5 'norm      '    7.8442       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11122E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.085       1.0000         .10000E-03   10000.    
     8 'norm      '    1.8100       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.9956       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.3244       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.795       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.0371       1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.248       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .13311E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .51271       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1907       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=   11401.98     FROM MIGRAD    STATUS=CONVERGED    488 CALLS     2016 TOTAL
                     EDM=   .77E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1407        4.9643        .31478E-07   -.25925E-03
   2  norm          2.3372        .97402       -.83873E-09   -.96680E-05
   3  Prefactor     .10000E-03    18.212       -.70257E-05** at limit **
   4  Prefactor     29.551        16.211        .16969E-06    .73456E-05
   5  norm          7.8445        4.5577       -.22295E-06    .27973E-05
   6  Prefactor     .10000E-03    110.72       -.78963E-06** at limit **
   7  Prefactor     16.084        11.986        .79719E-07    .50027E-05
   8  norm          1.8100        .96519        .34974E-08   -.12862E-04
   9  Prefactor     .10000E-03    26.258        .12726E-05** at limit **
  10  Prefactor     .10000E-03    4.6931        .21845E-07** at limit **
  11  norm          1.9957        1.5450       -.17336E-08   -.44641E-05
  12  Prefactor     2.3252        8.9464       -.23847E-08   -.14905E-03
  13  Prefactor     .10000E-03    4.3896       -.19321E-07** at limit **
  14  Prefactor     19.795        10.189        .15476E-07   -.27436E-05
  15  Prefactor     .10000E-03    11.140       -.28501E-06** at limit **
  16  norm          4.0372        1.3431       -.54553E-08   -.11208E-03
  17  Prefactor     21.249        16.736       -.31847E-06   -.11832E-04
  18  Prefactor     .10000E-03    8.0441        .61523E-07** at limit **
  19  norm          .10000E-03    1.6585       -.71089E-07** at limit **
  20  Prefactor     .10000E-03    17.163        .60623E-05** at limit **
  21  Normalizat    .51263        .23957       -.34535E-07   -.26458E-04
  22  Prefactor     1.1908        .10674        .17610E-07   -.68627E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.14072
  norm       = 2.33719
  Prefactor  = 0.0001
  Prefactor  = 29.5515
  norm       = 7.84445
  Prefactor  = 0.0001
  Prefactor  = 16.0836
  norm       = 1.81004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.99567
  Prefactor  = 2.32523
  Prefactor  = 0.0001
  Prefactor  = 19.7949
  Prefactor  = 0.0001
  norm       = 4.03717
  Prefactor  = 21.2489
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.512633
  Prefactor  = 1.19078
 **********
 **   18 **HESSE 
 **********

 FCN=   11401.98     FROM HESSE     STATUS=OK           348 CALLS     2364 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1407        7.9152        .14085E-02   -1.5415    
   2  norm          2.3372        .97093        .64667E-04   -1.5402    
   3  Prefactor     .10000E-03    18.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     29.551        16.180        .73701E-04   -1.4620    
   5  norm          7.8445        4.5551        .14317E-03   -1.5148    
   6  Prefactor     .10000E-03    110.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.084        11.927        .99863E-04   -1.4906    
   8  norm          1.8100        .95771        .73399E-04   -1.5439    
   9  Prefactor     .10000E-03    26.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.6959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.9957        1.5555        .10977E-03   -1.5425    
  12  Prefactor     2.3252        13.571        .13451E-02   -1.5403    
  13  Prefactor     .10000E-03    4.3915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     19.795        10.179        .90023E-04   -1.4818    
  15  Prefactor     .10000E-03    11.165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.0372        1.3405        .68689E-04   -1.5306    
  17  Prefactor     21.249        16.704        .86893E-04   -1.4786    
  18  Prefactor     .10000E-03    8.0721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    5.5137        .26732E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    17.348        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .51263        .23889        .53460E-03   -1.1183    
  22  Prefactor     1.1908        .10887        .17146E-03   -.86616    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83038e-10
Minuit parameter uncertainties:
  1  7.91902
  2  0.97094
  3  1.37015e-06
  4  16.1823
  5  4.55531
  6  1.22295e-05
  7  11.9288
  8  0.957716
  9  5.48478e-09
  10  7.98238e-08
  11  1.55558
  12  11.2384
  13  3.07147e-08
  14  10.1802
  15  2.24701e-08
  16  1.34052
  17  16.7079
  18  3.99981e-07
  19  1.41015e-05
  20  7.72151e-05
  21  0.239364
  22  0.108889
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  1.810e+00  9.577e-01  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.191e+00  1.089e-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.126e-01  2.394e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.32
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 5.81e-08 +/- 3.07e-08
Energy Flux (Fixed Index): 2.35e-05 +/- 1.25e-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) = 11401.7279919
delta logL = 0.248775803246

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11401.7205172
delta logL = 0.256250427103

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8111       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8039       1.0000          .0000       5.0000    
     3 'Normalizat'    .53387       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1842       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=   11401.72     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      201 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8114        1.3070        .77610E-02    .30403E-03
   2  alpha         1.8041        .48800        .43074       -.39314E-04
   3  Normalizat    .53374        .21955        .11824        .17534E-04
   4  Prefactor     1.1843        .10411        .35015E-01   -.22258E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.81136
  alpha      = 1.80405
  Normalizat = 0.533736
  Prefactor  = 1.18426
 **********
 **   18 **HESSE 
 **********

 FCN=   11401.72     FROM HESSE     STATUS=OK            31 CALLS      232 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8114        .97585        .73522E-04   -1.5439    
   2  alpha         1.8041        .45002        .15425E-01   -.28211    
   3  Normalizat    .53374        .22533        .52425E-03   -1.1088    
   4  Prefactor     1.1843        .10712        .17183E-03   -.86817    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36318e-11
Minuit parameter uncertainties:
  1  0.975858
  2  0.452694
  3  0.225715
  4  0.107142
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/395127': 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) = 11401.720517
delta logL = 0.256250680113

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  1.811e+00  9.759e-01  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  1.804e+00  4.527e-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.184e+00  1.071e-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.337e-01  2.257e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.80
Ra Dec: 339.096 28.483
Photon Index (Free Index): 1.80 +/- 0.45
Photon Flux (Free Index): 4.53e-08 +/- 2.94e-08
Energy Flux (Free Index): 3.11e-05 +/- 2.16e-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/395127/cmap_HighResolution_243734401_243993601_4FGL_J2236.3+2828_daily_bin17.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.81e-08', energy_flux2='3.11e-05', photon_flux_error='3.07e-08', dlogl='2.56e-01', energy_flux='2.35e-05', photon_flux2='4.53e-08', job_status='DONE', time_completed='2021-09-28 16:45:21.765649', photon_index_error2='0.45', photon_index2='1.80', ts='7.32', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', energy_flux_error2='2.16e-05', EG='0.51', time_epoch_completed='1632872721.77', return_code='0', job_id='395127', GAL2='1.18', EG2='0.53', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='2.94e-08', ts2='7.80', photon_index='2.15' WHERE bin_id='17' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:45:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 395127: <4FGL_J2236.3+2828_daily_bin17> in cluster <slac> Done

Job <4FGL_J2236.3+2828_daily_bin17> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 28 16:30:53 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:30:54 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:30:54 2021
Terminated at Tue Sep 28 16:45:24 2021
Results reported at Tue Sep 28 16:45:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin17 339.096 28.4832 243734401 243993601 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 :                                   721.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             308.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            871 sec.

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

