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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin62
RA = 339.096, Dec = 28.4832
tmin = 255398401, tmax = 255657601
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='395192', job_status='RUN', time_executed='2021-09-28 16:34:19.232418', time_epoch_executed='1632872059.23' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='62'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/395192

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/395192/ft1_4FGL_J2236.3+2828_daily_bin62.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/395192/ft2_4FGL_J2236.3+2828_daily_bin62.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/395192/ft1_4FGL_J2236.3+2828_daily_bin62.fits outfile=/scratch/kocevski/395192/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin62.fits ra=339.096 dec=28.4832 rad=12.0 tmin=255398401.0 tmax=255657601.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.83
user 1.64
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/395192/ft1_filtered_4FGL_J2236.3+2828_daily_bin62.fits" evtable="EVENTS" scfile=/scratch/kocevski/395192/ft2_4FGL_J2236.3+2828_daily_bin62.fits sctable="SC_DATA" outfile=/scratch/kocevski/395192/ltcube_255398401_255657601_4FGL_J2236.3+2828_daily_bin62.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/395192/ft2_4FGL_J2236.3+2828_daily_bin62.fits
.....................!
real 12.61
user 12.21
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/395192/ft1_filtered_4FGL_J2236.3+2828_daily_bin62.fits evtable="EVENTS" scfile=/scratch/kocevski/395192/ft2_4FGL_J2236.3+2828_daily_bin62.fits sctable="SC_DATA" expcube=/scratch/kocevski/395192/ltcube_255398401_255657601_4FGL_J2236.3+2828_daily_bin62.fits outfile=/scratch/kocevski/395192/expmap_255398401_255657601_4FGL_J2236.3+2828_daily_bin62.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/395192/ltcube_255398401_255657601_4FGL_J2236.3+2828_daily_bin62.fits
.....................!
real 189.70
user 184.63
sys 4.76

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/395192/ft1_filtered_4FGL_J2236.3+2828_daily_bin62.fits scfile=/scratch/kocevski/395192/ft2_4FGL_J2236.3+2828_daily_bin62.fits outfile=/scratch/kocevski/395192/cmap_255398401_255657601_4FGL_J2236.3+2828_daily_bin62.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/395192/ft1_filtered_4FGL_J2236.3+2828_daily_bin62.fits scfile=/scratch/kocevski/395192/ft2_4FGL_J2236.3+2828_daily_bin62.fits outfile=/scratch/kocevski/395192/cmap_HighResolution_255398401_255657601_4FGL_J2236.3+2828_daily_bin62.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.53
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33543E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .78585       1.0000         .10000E-03   10000.    
     5 'norm      '    9.7605       1.0000         .10000E-03   10000.    
     6 'Prefactor '    40.066       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.6901       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .43866E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.499       1.0000         .10000E-03   10000.    
    11 'norm      '    1.3274       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.5037       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.589       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.2501       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0283       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .90492       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=   9952.213     FROM MIGRAD    STATUS=CONVERGED    461 CALLS     2007 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10034E-03    3.3432        .10233E-05** at limit **
   2  norm          .10000E-03    .19603       -.28642E-08** at limit **
   3  Prefactor     .10000E-03    24.253       -.28887E-05** at limit **
   4  Prefactor     .79528        7.2192       -.10139E-05   -.43115E-04
   5  norm          9.7607        4.9514       -.66674E-08   -.69082E-04
   6  Prefactor     40.063        47.666       -.47179E-05    .15197E-04
   7  Prefactor     .10000E-03    6.9949        .43882E-05** at limit **
   8  norm          3.6903        1.2780        .10749E-07    .35259E-04
   9  Prefactor     .10013E-03    276.41       -.22444E-03** at limit **
  10  Prefactor     17.499        16.358        .69200E-07    .93912E-05
  11  norm          1.3274        .98221        .23090E-07    .33948E-03
  12  Prefactor     .10000E-03    2.9971        .34545E-07** at limit **
  13  Prefactor     .10000E-03    5.1396        .55618E-06** at limit **
  14  Prefactor     .10000E-03    4.1698        .61121E-08** at limit **
  15  Prefactor     .10000E-03    7.4516       -.32353E-05** at limit **
  16  norm          1.5038        1.0260       -.29924E-08   -.66126E-04
  17  Prefactor     12.594        16.157        .12296E-05   -.10605E-04
  18  Prefactor     .10000E-03    35.691       -.67021E-06** at limit **
  19  norm          5.2503        4.4610       -.66007E-06   -.23338E-03
  20  Prefactor     .10000E-03    5.9553       -.14779E-05** at limit **
  21  Normalizat    1.0280        .19644        .58377E-06    .32641E-03
  22  Prefactor     .90503        .86762E-01   -.17879E-08    .64723E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100335
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.795283
  norm       = 9.76073
  Prefactor  = 40.0627
  Prefactor  = 0.0001
  norm       = 3.69027
  Prefactor  = 0.000100133
  Prefactor  = 17.4993
  norm       = 1.32736
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.50375
  Prefactor  = 12.5935
  Prefactor  = 0.0001
  norm       = 5.25029
  Prefactor  = 0.0001
  Normalizat = 1.02805
  Prefactor  = 0.905032
 **********
 **   18 **HESSE 
 **********

 FCN=   9952.213     FROM HESSE     STATUS=OK           344 CALLS     2351 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10034E-03    37.539        .35242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .19608        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    24.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .79528        48.717        .50563E-02   -1.5530    
   5  norm          9.7607        4.9517        .12827E-03   -1.5083    
   6  Prefactor     40.063        47.655        .63325E-04   -1.4441    
   7  Prefactor     .10000E-03    7.1202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.6903        1.2787        .62621E-04   -1.5324    
   9  Prefactor     .10013E-03    276.46        .42441E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.499        16.355        .95745E-04   -1.4871    
  11  norm          1.3274        .99353        .82956E-04   -1.5478    
  12  Prefactor     .10000E-03    3.0061        .16865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.1421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.1861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.4569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.5038        1.0224        .80708E-04   -1.5463    
  17  Prefactor     12.594        16.180        .11289E-03   -1.4998    
  18  Prefactor     .10000E-03    36.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.2503        4.4566        .17543E-03   -1.5250    
  20  Prefactor     .10000E-03    5.9688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0280        .22987        .35822E-03   -.92097    
  22  Prefactor     .90503        .10212        .17289E-03   -.95965    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.74433e-08
Minuit parameter uncertainties:
  1  0.00709869
  2  4.83565e-08
  3  1.25116e-06
  4  12.4587
  5  4.95191
  6  47.7003
  7  1.99075e-05
  8  1.27873
  9  0.0121975
  10  16.3588
  11  0.993547
  12  1.36703e-06
  13  2.20842e-06
  14  2.78098e-06
  15  5.03888e-07
  16  1.02242
  17  16.1855
  18  1.6576e-05
  19  4.45686
  20  8.90025e-06
  21  0.23009
  22  0.102142
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  3.690e+00  1.279e+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.050e-01  1.021e-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.028e+00  2.301e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 31.80
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 1.18e-07 +/- 4.10e-08
Energy Flux (Fixed Index): 4.80e-05 +/- 1.66e-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) = 9951.97468787
delta logL = 0.238729443576

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9951.93042147
delta logL = 0.282995849955

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3535       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8625       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0676       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89568       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=   9951.930     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      207 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3528        1.2440        .55250E-02    .52140E-04
   2  alpha         1.8622        .30520        .29832       -.38086E-04
   3  Normalizat    1.0677        .19151        .79615E-01    .33169E-04
   4  Prefactor     .89565        .86482E-01    .44950E-01    .15147E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.35276
  alpha      = 1.8622
  Normalizat = 1.0677
  Prefactor  = 0.895654
 **********
 **   18 **HESSE 
 **********

 FCN=   9951.930     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3528        1.4277        .64820E-04   -1.5342    
   2  alpha         1.8622        .38259        .11988E-01   -.25797    
   3  Normalizat    1.0677        .22781        .35243E-03   -.90796    
   4  Prefactor     .89565        .10218        .17377E-03   -.96293    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.93505e-10
Minuit parameter uncertainties:
  1  1.42767
  2  0.384204
  3  0.228016
  4  0.102202
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/395192': 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) = 9951.93042117
delta logL = 0.28299614543

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  3.353e+00  1.428e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  1.862e+00  3.842e-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:  8.957e-01  1.022e-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.068e+00  2.280e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 32.07
Ra Dec: 339.096 28.483
Photon Index (Free Index): 1.86 +/- 0.38
Photon Flux (Free Index): 8.69e-08 +/- 5.11e-08
Energy Flux (Free Index): 5.38e-05 +/- 2.27e-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/395192/cmap_HighResolution_255398401_255657601_4FGL_J2236.3+2828_daily_bin62.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.18e-07', energy_flux2='5.38e-05', photon_flux_error='4.10e-08', dlogl='2.83e-01', energy_flux='4.80e-05', photon_flux2='8.69e-08', job_status='DONE', time_completed='2021-09-28 16:45:21.858761', photon_index_error2='0.38', photon_index2='1.86', ts='31.80', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='2.27e-05', EG='1.03', time_epoch_completed='1632872721.86', return_code='0', job_id='395192', GAL2='0.90', EG2='1.07', return_code2='0', energy_flux_error='1.66e-05', photon_flux_error2='5.11e-08', ts2='32.07', photon_index='2.15' WHERE bin_id='62' 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@bullet0275>
Subject: Job 395192: <4FGL_J2236.3+2828_daily_bin62> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin62 339.096 28.4832 255398401 255657601 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 :                                   662.22 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             286.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   861 sec.
    Turnaround time :                            863 sec.

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

