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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin1061
RA = 339.096, Dec = 28.4832
tmin = 514339201, tmax = 514598401
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='399873', job_status='RUN', time_executed='2021-09-28 16:49:55.242356', time_epoch_executed='1632872995.24' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='1061'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/399873

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/399873/ft1_4FGL_J2236.3+2828_daily_bin1061.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/399873/ft2_4FGL_J2236.3+2828_daily_bin1061.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/399873/ft1_4FGL_J2236.3+2828_daily_bin1061.fits outfile=/scratch/kocevski/399873/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1061.fits ra=339.096 dec=28.4832 rad=12.0 tmin=514339201.0 tmax=514598401.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 4.54
user 3.91
sys 0.31

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/399873/ft1_filtered_4FGL_J2236.3+2828_daily_bin1061.fits evtable="EVENTS" scfile=/scratch/kocevski/399873/ft2_4FGL_J2236.3+2828_daily_bin1061.fits sctable="SC_DATA" expcube=/scratch/kocevski/399873/ltcube_514339201_514598401_4FGL_J2236.3+2828_daily_bin1061.fits outfile=/scratch/kocevski/399873/expmap_514339201_514598401_4FGL_J2236.3+2828_daily_bin1061.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/399873/ltcube_514339201_514598401_4FGL_J2236.3+2828_daily_bin1061.fits
.....................!
real 191.49
user 185.70
sys 5.43

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/399873/ft1_filtered_4FGL_J2236.3+2828_daily_bin1061.fits scfile=/scratch/kocevski/399873/ft2_4FGL_J2236.3+2828_daily_bin1061.fits outfile=/scratch/kocevski/399873/cmap_514339201_514598401_4FGL_J2236.3+2828_daily_bin1061.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/399873/ft1_filtered_4FGL_J2236.3+2828_daily_bin1061.fits scfile=/scratch/kocevski/399873/ft2_4FGL_J2236.3+2828_daily_bin1061.fits outfile=/scratch/kocevski/399873/cmap_HighResolution_514339201_514598401_4FGL_J2236.3+2828_daily_bin1061.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/399873/ft1_filtered_4FGL_J2236.3+2828_daily_bin1061.fits evtable="EVENTS" scfile=/scratch/kocevski/399873/ft2_4FGL_J2236.3+2828_daily_bin1061.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/399873/Model_4FGL_J2236.3+2828_daily_bin1061.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/399873/ft1_filtered_4FGL_J2236.3+2828_daily_bin1061.fits.....................!
real 94.75
user 93.22
sys 1.32

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .64585       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .18526E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.6804       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11424E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.8658       1.0000         .10000E-03   10000.    
     8 'norm      '    2.4011       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.4203       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.6213       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.7879       1.0000         .10000E-03   10000.    
    19 'norm      '    12.998       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .57344       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .79636       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0110       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=   8684.535     FROM MIGRAD    STATUS=CONVERGED    471 CALLS     2366 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.8959       -.73810E-06** at limit **
   2  norm          .64592        .58407        .49395E-07    .17837E-03
   3  Prefactor     .10005E-03    69.007       -.13328E-04** at limit **
   4  Prefactor     .10000E-03    4.4172       -.45153E-07** at limit **
   5  norm          4.6793        4.3200        .21093E-05   -.21869E-02
   6  Prefactor     .10005E-03    59.228        .13067E-04** at limit **
   7  Prefactor     6.8628        10.728       -.42952E-06   -.73117E-04
   8  norm          2.4009        1.1229        .18336E-07   -.21971E-03
   9  Prefactor     .10000E-03    29.783       -.72243E-06** at limit **
  10  Prefactor     .10000E-03    5.8319        .26065E-06** at limit **
  11  norm          .10000E-03    .37984        .32177E-07** at limit **
  12  Prefactor     .10000E-03    7.0237       -.42374E-06** at limit **
  13  Prefactor     .10000E-03    6.5778        .80317E-06** at limit **
  14  Prefactor     9.4224        7.6789       -.39730E-07   -.32208E-04
  15  Prefactor     .10000E-03    14.509        .10023E-06** at limit **
  16  norm          2.6214        1.6372        .63673E-07    .16900E-04
  17  Prefactor     .10000E-03    9.0268       -.67501E-08** at limit **
  18  Prefactor     5.8024        16.545       -.51322E-06   -.45895E-04
  19  norm          13.005        6.9473        .12870E-07    .32022E-03
  20  Prefactor     .55581        11.484       -.69028E-06    .16465E-03
  21  Normalizat    .79635        .21338       -.61364E-06    .27722E-04
  22  Prefactor     1.0110        .96774E-01    .45916E-08    .80748E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.645922
  Prefactor  = 0.00010005
  Prefactor  = 0.0001
  norm       = 4.67933
  Prefactor  = 0.000100052
  Prefactor  = 6.86276
  norm       = 2.40095
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.42237
  Prefactor  = 0.0001
  norm       = 2.62136
  Prefactor  = 0.0001
  Prefactor  = 5.80243
  norm       = 13.0052
  Prefactor  = 0.555809
  Normalizat = 0.796355
  Prefactor  = 1.01104
 **********
 **   18 **HESSE 
 **********

 FCN=   8684.535     FROM HESSE     STATUS=OK           342 CALLS     2708 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.1358        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .64592        .56883        .65469E-04   -1.5547    
   3  Prefactor     .10005E-03    74.617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.4265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.6793        5.0319        .93008E-03   -1.5275    
   6  Prefactor     .10005E-03    64.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.8628        10.757        .15312E-03   -1.5184    
   8  norm          2.4009        1.1201        .64680E-04   -1.5398    
   9  Prefactor     .10000E-03    29.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.8397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .38112        .56091E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.1664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.6046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.4224        7.6811        .13057E-03   -1.5094    
  15  Prefactor     .10000E-03    14.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.6214        1.6287        .88804E-04   -1.5384    
  17  Prefactor     .10000E-03    9.0597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.8024        16.547        .16694E-03   -1.5226    
  19  norm          13.005        7.5517        .11110E-03   -1.4987    
  20  Prefactor     .55581        136.44        .52962E-02   -1.5559    
  21  Normalizat    .79635        .24455        .39502E-03   -1.0020    
  22  Prefactor     1.0110        .11184        .16651E-03   -.92362    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.04141e-09
Minuit parameter uncertainties:
  1  5.34785e-05
  2  0.568837
  3  0.00385583
  4  2.90306e-06
  5  5.03235
  6  0.00367329
  7  10.7598
  8  1.12014
  9  0.000138184
  10  2.23936e-05
  11  7.44061e-07
  12  3.4817e-05
  13  7.19528e-05
  14  7.68186
  15  1.30643e-05
  16  1.6287
  17  3.36367e-06
  18  16.5605
  19  7.55228
  20  17.4551
  21  0.244892
  22  0.11187
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  2.401e+00  1.120e+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:  1.011e+00  1.119e-01  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  7.964e-01  2.449e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.42
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 7.70e-08 +/- 3.59e-08
Energy Flux (Fixed Index): 3.12e-05 +/- 1.46e-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) = 8684.49241802
delta logL = 0.0423016162204

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8684.49022849
delta logL = 0.0444911508184

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3689       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2883       1.0000          .0000       5.0000    
     3 'Normalizat'    .78234       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0150       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=   8684.490     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      201 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3683        20.047        .66555E-02    .24858E-02
   2  alpha         2.2885        3.4720        .37402        .57329E-04
   3  Normalizat    .78209        .12781        .89921E-01    .19584E-03
   4  Prefactor     1.0151        .48956E-01    .42680E-01    .15562E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.36832
  alpha      = 2.28846
  Normalizat = 0.782086
  Prefactor  = 1.01507
 **********
 **   18 **HESSE 
 **********

 FCN=   8684.490     FROM HESSE     STATUS=OK            31 CALLS      232 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3683        1.1101        .62317E-04   -1.5400    
   2  alpha         2.2885        .48259        .13954E-01   -.84719E-01
   3  Normalizat    .78209        .24034        .39829E-03   -1.0074    
   4  Prefactor     1.0151        .11167        .16622E-03   -.92229    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.65733e-10
Minuit parameter uncertainties:
  1  1.1101
  2  0.485661
  3  0.240669
  4  0.111698
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/399873': 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) = 8684.49022768
delta logL = 0.0444919610891

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  2.368e+00  1.110e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  2.288e+00  4.857e-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.015e+00  1.117e-01  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  7.821e-01  2.407e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.53
Ra Dec: 339.096 28.483
Photon Index (Free Index): 2.29 +/- 0.49
Photon Flux (Free Index): 8.64e-08 +/- 4.86e-08
Energy Flux (Free Index): 2.97e-05 +/- 1.45e-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/399873/cmap_HighResolution_514339201_514598401_4FGL_J2236.3+2828_daily_bin1061.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.70e-08', energy_flux2='2.97e-05', photon_flux_error='3.59e-08', dlogl='4.45e-02', energy_flux='3.12e-05', photon_flux2='8.64e-08', job_status='DONE', time_completed='2021-09-28 17:01:11.930398', photon_index_error2='0.49', photon_index2='2.29', ts='9.42', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='1.45e-05', EG='0.80', time_epoch_completed='1632873671.93', return_code='0', job_id='399873', GAL2='1.02', EG2='0.78', return_code2='0', energy_flux_error='1.46e-05', photon_flux_error2='4.86e-08', ts2='9.53', photon_index='2.15' WHERE bin_id='1061' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:01:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 399873: <4FGL_J2236.3+2828_daily_bin1061> in cluster <slac> Done

Job <4FGL_J2236.3+2828_daily_bin1061> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 16:45:46 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:45:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 16:45:47 2021
Terminated at Tue Sep 28 17:01:12 2021
Results reported at Tue Sep 28 17:01:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin1061 339.096 28.4832 514339201 514598401 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 :                                   676.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             267.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            926 sec.

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

