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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin504
RA = 339.096, Dec = 28.4832
tmin = 369964801, tmax = 370224001
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='397930', job_status='RUN', time_executed='2021-09-28 16:40:28.742862', time_epoch_executed='1632872428.74' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='504'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/397930

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/397930/ft1_4FGL_J2236.3+2828_daily_bin504.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/397930/ft2_4FGL_J2236.3+2828_daily_bin504.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/397930/ft1_4FGL_J2236.3+2828_daily_bin504.fits outfile=/scratch/kocevski/397930/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin504.fits ra=339.096 dec=28.4832 rad=12.0 tmin=369964801.0 tmax=370224001.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 7.72
user 7.42
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/397930/ft1_filtered_4FGL_J2236.3+2828_daily_bin504.fits" evtable="EVENTS" scfile=/scratch/kocevski/397930/ft2_4FGL_J2236.3+2828_daily_bin504.fits sctable="SC_DATA" outfile=/scratch/kocevski/397930/ltcube_369964801_370224001_4FGL_J2236.3+2828_daily_bin504.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/397930/ft2_4FGL_J2236.3+2828_daily_bin504.fits
.....................!
real 11.50
user 11.18
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/397930/ft1_filtered_4FGL_J2236.3+2828_daily_bin504.fits evtable="EVENTS" scfile=/scratch/kocevski/397930/ft2_4FGL_J2236.3+2828_daily_bin504.fits sctable="SC_DATA" expcube=/scratch/kocevski/397930/ltcube_369964801_370224001_4FGL_J2236.3+2828_daily_bin504.fits outfile=/scratch/kocevski/397930/expmap_369964801_370224001_4FGL_J2236.3+2828_daily_bin504.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/397930/ltcube_369964801_370224001_4FGL_J2236.3+2828_daily_bin504.fits
.....................!
real 190.06
user 185.24
sys 4.49

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/397930/ft1_filtered_4FGL_J2236.3+2828_daily_bin504.fits scfile=/scratch/kocevski/397930/ft2_4FGL_J2236.3+2828_daily_bin504.fits outfile=/scratch/kocevski/397930/cmap_369964801_370224001_4FGL_J2236.3+2828_daily_bin504.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/397930/ft1_filtered_4FGL_J2236.3+2828_daily_bin504.fits scfile=/scratch/kocevski/397930/ft2_4FGL_J2236.3+2828_daily_bin504.fits outfile=/scratch/kocevski/397930/cmap_HighResolution_369964801_370224001_4FGL_J2236.3+2828_daily_bin504.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0692       1.0000         .10000E-03   10000.    
     2 'norm      '    .29423       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.5875       1.0000         .10000E-03   10000.    
     6 'Prefactor '    236.75       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .44816       1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.911       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .65444       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.654       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.384       1.0000         .10000E-03   10000.    
    16 'norm      '    .93046       1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.140       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.1911       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1242       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .89202       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=   11888.49     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2461 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0692        3.8616        .23451E-05   -.13655E-03
   2  norm          .29430        .55699        .36447E-06    .18512E-03
   3  Prefactor     .10001E-03    20.461       -.14627E-05** at limit **
   4  Prefactor     .10001E-03    36.906        .21611E-05** at limit **
   5  norm          6.5872        5.3973        .19945E-05   -.45006E-03
   6  Prefactor     236.75        110.97       -.22547E-06   -.37177E-04
   7  Prefactor     .10000E-03    6.5016       -.81393E-07** at limit **
   8  norm          .44796        .76282        .90130E-06   -.60042E-03
   9  Prefactor     26.910        35.245        .74487E-07   -.22456E-04
  10  Prefactor     .10002E-03    44.677       -.50680E-05** at limit **
  11  norm          .65445        .67517       -.33936E-07    .10012E-03
  12  Prefactor     .10000E-03    4.0367        .37593E-07** at limit **
  13  Prefactor     15.653        13.786        .13243E-06   -.10287E-04
  14  Prefactor     .10000E-03    5.2252        .70651E-07** at limit **
  15  Prefactor     17.384        15.756        .10604E-07   -.18884E-04
  16  norm          .93022        1.1491        .39103E-06   -.10027E-03
  17  Prefactor     17.142        14.127        .22890E-06   -.22412E-04
  18  Prefactor     .10000E-03    11.157        .24515E-06** at limit **
  19  norm          4.1925        3.8363        .55252E-06   -.27094E-03
  20  Prefactor     .10001E-03    26.072        .23212E-05** at limit **
  21  Normalizat    1.1242        .18980       -.76998E-06   -.16184E-03
  22  Prefactor     .89205        .82903E-01   -.43768E-06   -.21844E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.0692
  norm       = 0.294301
  Prefactor  = 0.000100005
  Prefactor  = 0.000100005
  norm       = 6.58721
  Prefactor  = 236.75
  Prefactor  = 0.0001
  norm       = 0.447963
  Prefactor  = 26.9099
  Prefactor  = 0.000100021
  norm       = 0.654446
  Prefactor  = 0.0001
  Prefactor  = 15.6532
  Prefactor  = 0.0001
  Prefactor  = 17.3841
  norm       = 0.930222
  Prefactor  = 17.1419
  Prefactor  = 0.0001
  norm       = 4.19246
  Prefactor  = 0.000100008
  Normalizat = 1.12418
  Prefactor  = 0.892054
 **********
 **   18 **HESSE 
 **********

 FCN=   11888.49     FROM HESSE     STATUS=OK           344 CALLS     2805 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0692        3.7773        .39557E-03   -1.5501    
   2  norm          .29430        .51578        .10727E-02   -1.5599    
   3  Prefactor     .10001E-03    20.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    37.909        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.5872        5.3838        .78177E-03   -1.5195    
   6  Prefactor     236.75        111.19        .26310E-04   -1.2618    
   7  Prefactor     .10000E-03    6.5535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .44796        .76578        .22115E-03   -1.5574    
   9  Prefactor     26.910        35.264        .77224E-04   -1.4670    
  10  Prefactor     .10002E-03    46.490        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .65445        .69165        .88799E-03   -1.5546    
  12  Prefactor     .10000E-03    4.0521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     15.653        13.799        .10123E-03   -1.4916    
  14  Prefactor     .10000E-03    5.2627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     17.384        15.741        .96062E-04   -1.4874    
  16  norm          .93022        1.1135        .12251E-03   -1.5515    
  17  Prefactor     17.142        14.149        .96741E-04   -1.4880    
  18  Prefactor     .10000E-03    11.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.1925        3.8070        .19552E-03   -1.5298    
  20  Prefactor     .10001E-03    26.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1242        .22395        .36441E-03   -.88979    
  22  Prefactor     .89205        .98105E-01    .17901E-03   -.96419    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95624e-09
Minuit parameter uncertainties:
  1  3.77816
  2  0.515783
  3  0.000662366
  4  0.000905306
  5  5.38423
  6  111.286
  7  1.71556e-05
  8  0.765795
  9  35.2918
  10  0.00198744
  11  0.691656
  12  3.45372e-06
  13  13.8023
  14  9.71292e-06
  15  15.7447
  16  1.11348
  17  14.1517
  18  5.63187e-05
  19  3.80719
  20  0.00092067
  21  0.224139
  22  0.0981242
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  4.480e-01  7.658e-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:  8.921e-01  9.812e-02  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.124e+00  2.241e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/397930/likelihoodResults_369964801_370224001_4FGL_J2236.3+2828_daily_bin504.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11888.2518034
delta logL = 0.233837035037

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11888.2361761
delta logL = 0.249464300319

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .56777       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8347       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0959       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89852       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=   11888.24     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      209 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .56786        14.580        .11544E-01    .23671E-02
   2  alpha         2.8344        3.5295        .41627        .60316E-04
   3  Normalizat    1.0959        .48495E-01    .83234E-01   -.85284E-04
   4  Prefactor     .89853        .21955E-01    .44986E-01   -.26909E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.56786
  alpha      = 2.83438
  Normalizat = 1.0959
  Prefactor  = 0.898533
 **********
 **   18 **HESSE 
 **********

 FCN=   11888.24     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .56786        .76043        .90020E-04   -1.5557    
   2  alpha         2.8344        .96036        .29647E-01    .13415    
   3  Normalizat    1.0959        .22242        .36852E-03   -.89884    
   4  Prefactor     .89853        .97326E-01    .17841E-03   -.96192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.35243e-11
Minuit parameter uncertainties:
  1  0.760446
  2  0.986194
  3  0.222606
  4  0.0973443
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/397930': 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) = 11888.236176
delta logL = 0.249464384176

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  5.679e-01  7.604e-01  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  2.834e+00  9.862e-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.985e-01  9.734e-02  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.096e+00  2.226e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.02
Ra Dec: 339.096 28.483
Photon Index (Free Index): 2.83 +/- 0.99
Photon Flux (Free Index): 3.70e-08 +/- 4.51e-08
Energy Flux (Free Index): 8.32e-06 +/- 9.51e-06

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/397930/cmap_HighResolution_369964801_370224001_4FGL_J2236.3+2828_daily_bin504.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.04e-05', comment='SUCCESS', energy_flux2='8.32e-06', dlogl='2.49e-01', photon_flux2='3.70e-08', job_status='DONE', time_completed='2021-09-28 16:56:01.932085', photon_index_error2='0.99', photon_index2='2.83', ts='0.46', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='7.49e-08', energy_flux_error2='9.51e-06', EG='1.12', time_epoch_completed='1632873361.93', return_code='0', job_id='397930', GAL2='0.90', EG2='1.10', return_code2='0', photon_flux_error2='4.51e-08', ts2='1.02', photon_index='2.15' WHERE bin_id='504' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:56:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 397930: <4FGL_J2236.3+2828_daily_bin504> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin504 339.096 28.4832 369964801 370224001 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 :                                   927.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             371.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            950 sec.

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

