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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin84
RA = 339.096, Dec = 28.4832
tmin = 261100801, tmax = 261360001
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='395218', job_status='RUN', time_executed='2021-09-28 16:34:29.111898', time_epoch_executed='1632872069.11' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='84'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/395218

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/395218/ft1_4FGL_J2236.3+2828_daily_bin84.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/395218/ft2_4FGL_J2236.3+2828_daily_bin84.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/395218/ft1_4FGL_J2236.3+2828_daily_bin84.fits outfile=/scratch/kocevski/395218/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin84.fits ra=339.096 dec=28.4832 rad=12.0 tmin=261100801.0 tmax=261360001.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.53
user 1.32
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/395218/ft2_4FGL_J2236.3+2828_daily_bin84.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/395218/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin84.fits evtable="EVENTS" outfile="/scratch/kocevski/395218/ft1_filtered_4FGL_J2236.3+2828_daily_bin84.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/395218/ft1_filtered_4FGL_J2236.3+2828_daily_bin84.fits evtable="EVENTS" scfile=/scratch/kocevski/395218/ft2_4FGL_J2236.3+2828_daily_bin84.fits sctable="SC_DATA" expcube=/scratch/kocevski/395218/ltcube_261100801_261360001_4FGL_J2236.3+2828_daily_bin84.fits outfile=/scratch/kocevski/395218/expmap_261100801_261360001_4FGL_J2236.3+2828_daily_bin84.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/395218/ltcube_261100801_261360001_4FGL_J2236.3+2828_daily_bin84.fits
.....................!
real 191.09
user 185.43
sys 5.30

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/395218/ft1_filtered_4FGL_J2236.3+2828_daily_bin84.fits scfile=/scratch/kocevski/395218/ft2_4FGL_J2236.3+2828_daily_bin84.fits outfile=/scratch/kocevski/395218/cmap_261100801_261360001_4FGL_J2236.3+2828_daily_bin84.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.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .49446       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.377       1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.501       1.0000         .10000E-03   10000.    
     5 'norm      '    .77184E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.1699       1.0000         .10000E-03   10000.    
     8 'norm      '    2.9291       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.2182       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.8858       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.9589       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .52756E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.0080       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0155       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .94077       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=   7700.141     FROM MIGRAD    STATUS=CONVERGED    526 CALLS     2121 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.4721        .90712E-02** at limit **
   2  norm          .49462        .67163        .16893E-01    .11376E-02
   3  Prefactor     18.376        31.487        .23357E-02   -.18139E-02
   4  Prefactor     23.506        14.794        .20657E-02   -.34714E-03
   5  norm          .10000E-03    3.5207        .54095E-01** at limit **
   6  Prefactor     .10001E-03    100.60        .90712E-02** at limit **
   7  Prefactor     7.1766        11.644        .37451E-02    .28210E-03
   8  norm          2.9291        1.3094        .59337E-02    .35337E-03
   9  Prefactor     .10000E-03    53.232        .90712E-02** at limit **
  10  Prefactor     .10000E-03    8.6737        .90712E-02** at limit **
  11  norm          1.2185        1.0772        .10223E-01   -.24130E-03
  12  Prefactor     .10000E-03    12.101        .90712E-02** at limit **
  13  Prefactor     9.8872        13.789        .31862E-02   -.53879E-04
  14  Prefactor     .10000E-03    12.022        .90712E-02** at limit **
  15  Prefactor     .10000E-03    15.378        .90712E-02** at limit **
  16  norm          1.9593        1.5016        .74100E-02    .64751E-03
  17  Prefactor     .27047        16.626        .11442        .13038E-03
  18  Prefactor     .10000E-03    5.5172        .90712E-02** at limit **
  19  norm          5.0072        4.8545        .44924E-02    .35427E-03
  20  Prefactor     .10000E-03    16.094        .90712E-02** at limit **
  21  Normalizat    1.0152        .22454        .82066E-01    .47500E-03
  22  Prefactor     .94078        .10014        .45523E-01    .70202E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.494617
  Prefactor  = 18.3755
  Prefactor  = 23.5056
  norm       = 0.000100001
  Prefactor  = 0.000100014
  Prefactor  = 7.17663
  norm       = 2.92915
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.21847
  Prefactor  = 0.0001
  Prefactor  = 9.88721
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.95928
  Prefactor  = 0.270468
  Prefactor  = 0.0001
  norm       = 5.00718
  Prefactor  = 0.0001
  Normalizat = 1.0152
  Prefactor  = 0.940782
 **********
 **   18 **HESSE 
 **********

 FCN=   7700.141     FROM HESSE     STATUS=OK           358 CALLS     2479 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.4883        .15968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .49462        .57643        .80700E-03   -1.5567    
   3  Prefactor     18.376        31.486        .93430E-04   -1.4850    
   4  Prefactor     23.506        14.796        .82628E-04   -1.4738    
   5  norm          .10000E-03    3.4443        .55255E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    100.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.1766        11.656        .14980E-03   -1.5172    
   8  norm          2.9291        1.3098        .64274E-04   -1.5366    
   9  Prefactor     .10000E-03    53.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.6833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.2185        1.0997        .83532E-04   -1.5487    
  12  Prefactor     .10000E-03    12.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.8872        13.793        .12745E-03   -1.5079    
  14  Prefactor     .10000E-03    12.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.9593        1.4938        .89785E-04   -1.5428    
  17  Prefactor     .27047        20.496        .10004       -1.5604    
  18  Prefactor     .10000E-03    5.5184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.0072        4.8429        .17970E-03   -1.5260    
  20  Prefactor     .10000E-03    16.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0152        .26170        .36329E-03   -.92523    
  22  Prefactor     .94078        .11704        .17414E-03   -.94730    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04639e-08
Minuit parameter uncertainties:
  1  2.13426e-05
  2  0.576438
  3  31.5146
  4  14.7987
  5  0.000135917
  6  0.00238724
  7  11.6595
  8  1.30981
  9  0.000144201
  10  3.01502e-06
  11  1.09971
  12  0.000116425
  13  13.7977
  14  0.000143239
  15  0.000198069
  16  1.49387
  17  4.7097
  18  6.51971e-06
  19  4.84331
  20  0.000132285
  21  0.262027
  22  0.117076
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  2.929e+00  1.310e+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.408e-01  1.171e-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.015e+00  2.620e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.66
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 9.40e-08 +/- 4.20e-08
Energy Flux (Fixed Index): 3.81e-05 +/- 1.70e-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) = 7699.87997691
delta logL = 0.260708483301

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7699.86071378
delta logL = 0.279971617259

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6578       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7531       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0576       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92955       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=   7699.861     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      206 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6575        1.2794        .62508E-02    .79992E-03
   2  alpha         1.7530        .38569        .35633       -.38740E-04
   3  Normalizat    1.0576        .21570        .80585E-01   -.21163E-04
   4  Prefactor     .92952        .99350E-01    .45381E-01    .10322E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.6575
  alpha      = 1.75302
  Normalizat = 1.05764
  Prefactor  = 0.929523
 **********
 **   18 **HESSE 
 **********

 FCN=   7699.861     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6575        1.4287        .32755E-03   -1.5382    
   2  alpha         1.7530        .50017        .13453E-01   -.30343    
   3  Normalizat    1.0576        .25245        .35674E-03   -.91124    
   4  Prefactor     .92952        .11599        .17507E-03   -.95117    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10695e-09
Minuit parameter uncertainties:
  1  1.42867
  2  0.50391
  3  0.252738
  4  0.116021
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/395218': 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) = 7699.86071371
delta logL = 0.279971690912

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  2.658e+00  1.429e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  1.753e+00  5.039e-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:  9.295e-01  1.160e-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.058e+00  2.527e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.07
Ra Dec: 339.096 28.483
Photon Index (Free Index): 1.75 +/- 0.50
Photon Flux (Free Index): 6.46e-08 +/- 4.56e-08
Energy Flux (Free Index): 4.88e-05 +/- 3.19e-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/395218/cmap_HighResolution_261100801_261360001_4FGL_J2236.3+2828_daily_bin84.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.40e-08', energy_flux2='4.88e-05', photon_flux_error='4.20e-08', dlogl='2.80e-01', energy_flux='3.81e-05', photon_flux2='6.46e-08', job_status='DONE', time_completed='2021-09-28 16:44:24.772081', photon_index_error2='0.50', photon_index2='1.75', ts='15.66', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='3.19e-05', EG='1.02', time_epoch_completed='1632872664.77', return_code='0', job_id='395218', GAL2='0.93', EG2='1.06', return_code2='0', energy_flux_error='1.70e-05', photon_flux_error2='4.56e-08', ts2='16.07', photon_index='2.15' WHERE bin_id='84' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:44:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 395218: <4FGL_J2236.3+2828_daily_bin84> in cluster <slac> Done

Job <4FGL_J2236.3+2828_daily_bin84> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 28 16:31:02 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:31:03 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:31:03 2021
Terminated at Tue Sep 28 16:44:25 2021
Results reported at Tue Sep 28 16:44:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin84 339.096 28.4832 261100801 261360001 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 :                                   596.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             265.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            803 sec.

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

