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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin1432
RA = 339.096, Dec = 28.4832
tmin = 610502401, tmax = 610761601
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='401453', job_status='RUN', time_executed='2021-09-28 16:53:26.992635', time_epoch_executed='1632873206.99' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='1432'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/401453

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/401453/ft1_4FGL_J2236.3+2828_daily_bin1432.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/401453/ft2_4FGL_J2236.3+2828_daily_bin1432.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/401453/ft1_4FGL_J2236.3+2828_daily_bin1432.fits outfile=/scratch/kocevski/401453/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1432.fits ra=339.096 dec=28.4832 rad=12.0 tmin=610502401.0 tmax=610761601.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 16.81
user 3.39
sys 0.31

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/401453/ft1_filtered_4FGL_J2236.3+2828_daily_bin1432.fits" evtable="EVENTS" scfile=/scratch/kocevski/401453/ft2_4FGL_J2236.3+2828_daily_bin1432.fits sctable="SC_DATA" outfile=/scratch/kocevski/401453/ltcube_610502401_610761601_4FGL_J2236.3+2828_daily_bin1432.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/401453/ft2_4FGL_J2236.3+2828_daily_bin1432.fits
.....................!
real 16.15
user 15.68
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/401453/ft1_filtered_4FGL_J2236.3+2828_daily_bin1432.fits evtable="EVENTS" scfile=/scratch/kocevski/401453/ft2_4FGL_J2236.3+2828_daily_bin1432.fits sctable="SC_DATA" expcube=/scratch/kocevski/401453/ltcube_610502401_610761601_4FGL_J2236.3+2828_daily_bin1432.fits outfile=/scratch/kocevski/401453/expmap_610502401_610761601_4FGL_J2236.3+2828_daily_bin1432.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/401453/ltcube_610502401_610761601_4FGL_J2236.3+2828_daily_bin1432.fits
.....................!
real 193.26
user 188.35
sys 4.51

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/401453/ft1_filtered_4FGL_J2236.3+2828_daily_bin1432.fits scfile=/scratch/kocevski/401453/ft2_4FGL_J2236.3+2828_daily_bin1432.fits outfile=/scratch/kocevski/401453/cmap_610502401_610761601_4FGL_J2236.3+2828_daily_bin1432.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/401453/ft1_filtered_4FGL_J2236.3+2828_daily_bin1432.fits scfile=/scratch/kocevski/401453/ft2_4FGL_J2236.3+2828_daily_bin1432.fits outfile=/scratch/kocevski/401453/cmap_HighResolution_610502401_610761601_4FGL_J2236.3+2828_daily_bin1432.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11665E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.8936       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.6527       1.0000         .10000E-03   10000.    
    11 'norm      '    1.9575       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.8863       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10287E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.2363       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.3427       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.926       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .17648       1.0000         .10000E-03   10000.    
    19 'norm      '    .10113E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.6515       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .84277       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0359       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=   9187.368     FROM MIGRAD    STATUS=CONVERGED    512 CALLS     2092 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.9077        .90712E-02** at limit **
   2  norm          .10000E-03    .23639        .24349E-01** at limit **
   3  Prefactor     .10000E-03    50.131        .90712E-02** at limit **
   4  Prefactor     .10000E-03    4.0396        .90712E-02** at limit **
   5  norm          .10000E-03    1.8141        .90712E-02** at limit **
   6  Prefactor     .10000E-03    25.536        .90712E-02** at limit **
   7  Prefactor     .10000E-03    4.7669        .90712E-02** at limit **
   8  norm          1.8936        1.3453        .75584E-02    .98455E-03
   9  Prefactor     .10000E-03    15.874        .90712E-02** at limit **
  10  Prefactor     3.6466        59.846        .52840E-02   -.27453E-03
  11  norm          1.9574        1.3014        .74132E-02   -.40436E-03
  12  Prefactor     3.8861        4.5664        .51169E-02   -.60458E-03
  13  Prefactor     .10000E-03    14.093        .90712E-02** at limit **
  14  Prefactor     5.2354        8.8113        .43915E-02    .64281E-03
  15  Prefactor     .10000E-03    26.794        .90712E-02** at limit **
  16  norm          1.3427        1.0610        .94530E-02    .47424E-03
  17  Prefactor     14.929        20.531        .25918E-02   -.16256E-02
  18  Prefactor     .10002E-03    12.067        .12224    ** at limit **
  19  norm          .10000E-03    4.1026        .90712E-02** at limit **
  20  Prefactor     3.6805        13.439        .52850E-02    .55563E-03
  21  Normalizat    .84273        .20321        .85922E-01    .19351E-03
  22  Prefactor     1.0359        .91504E-01    .40820E-01    .35807E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.89359
  Prefactor  = 0.0001
  Prefactor  = 3.6466
  norm       = 1.95739
  Prefactor  = 3.88615
  Prefactor  = 0.0001
  Prefactor  = 5.23541
  Prefactor  = 0.0001
  norm       = 1.3427
  Prefactor  = 14.9291
  Prefactor  = 0.000100021
  norm       = 0.0001
  Prefactor  = 3.68048
  Normalizat = 0.842728
  Prefactor  = 1.03593
 **********
 **   18 **HESSE 
 **********

 FCN=   9187.368     FROM HESSE     STATUS=OK           348 CALLS     2440 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.9103        .12929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .36538        .90327E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    50.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.0460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.8220        .12607E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    25.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.7888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.8936        1.3120        .79621E-04   -1.5433    
   9  Prefactor     .10000E-03    15.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.6466        57.749        .21136E-03   -1.5326    
  11  norm          1.9574        1.3107        .86837E-04   -1.5428    
  12  Prefactor     3.8861        4.5636        .10234E-02   -1.5314    
  13  Prefactor     .10000E-03    14.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.2354        8.8015        .17566E-03   -1.5250    
  15  Prefactor     .10000E-03    27.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.3427        1.0548        .84459E-04   -1.5476    
  17  Prefactor     14.929        20.536        .10367E-03   -1.4935    
  18  Prefactor     .10002E-03    14.452        .10576       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.1815        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.6805        13.259        .21140E-03   -1.5324    
  21  Normalizat    .84273        .23178        .38048E-03   -.98503    
  22  Prefactor     1.0359        .10534        .16311E-03   -.91541    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18849e-08
Minuit parameter uncertainties:
  1  5.54504e-06
  2  1.49933e-06
  3  0.000239159
  4  6.25081e-07
  5  8.30157e-06
  6  0.00020399
  7  1.05046e-05
  8  1.31199
  9  2.46998e-05
  10  29.0561
  11  1.31076
  12  4.56399
  13  8.5018e-05
  14  8.80363
  15  0.000181826
  16  1.05483
  17  20.5462
  18  0.00110207
  19  6.88854e-06
  20  13.2694
  21  0.232048
  22  0.105361
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  1.894e+00  1.312e+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.036e+00  1.054e-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:  8.427e-01  2.320e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.00
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 6.08e-08 +/- 4.21e-08
Energy Flux (Fixed Index): 2.46e-05 +/- 1.71e-05

TS (Fixed Index): 4.00
Ra Dec: 339.096 28.483
Photon Flux Upper Limit: 1.38e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.61e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/401453/likelihoodResults_610502401_610761601_4FGL_J2236.3+2828_daily_bin1432.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) = 9186.59071764
delta logL = 0.777134191816

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9186.57911166
delta logL = 0.788740170619

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4739       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9873       1.0000          .0000       5.0000    
     3 'Normalizat'    .75701       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0614       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=   9186.579     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      261 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4739        9.5073        .88457E-02    .16328E-02
   2  alpha         2.9874        3.9690        .37482        .46033E-04
   3  Normalizat    .75699        .67117E-01    .90240E-01   -.10650E-03
   4  Prefactor     1.0614        .28940E-01    .39286E-01   -.41395E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.47391
  alpha      = 2.98741
  Normalizat = 0.756988
  Prefactor  = 1.06138
 **********
 **   18 **HESSE 
 **********

 FCN=   9186.579     FROM HESSE     STATUS=OK            31 CALLS      292 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4739        1.3635        .56007E-04   -1.5465    
   2  alpha         2.9874        .83249        .14203E-01    .19622    
   3  Normalizat    .75699        .23902        .39972E-03   -1.0168    
   4  Prefactor     1.0614        .10893        .16136E-03   -.90711    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04756e-10
Minuit parameter uncertainties:
  1  1.36354
  2  0.849374
  3  0.239348
  4  0.108948
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/401453': 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) = 9186.57911158
delta logL = 0.78874024789

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  1.474e+00  1.364e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  2.987e+00  8.494e-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.061e+00  1.089e-01  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  7.570e-01  2.393e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.09
Ra Dec: 339.096 28.483
Photon Index (Free Index): 2.99 +/- 0.85
Photon Flux (Free Index): 1.15e-07 +/- 6.65e-08
Energy Flux (Free Index): 2.40e-05 +/- 1.28e-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/401453/cmap_HighResolution_610502401_610761601_4FGL_J2236.3+2828_daily_bin1432.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.61e-05', comment='SUCCESS', photon_flux='6.08e-08', energy_flux2='2.40e-05', photon_flux_error='4.21e-08', dlogl='7.89e-01', energy_flux='2.46e-05', photon_flux2='1.15e-07', job_status='DONE', time_completed='2021-09-28 17:06:06.973731', photon_index_error2='0.85', photon_index2='2.99', ts='4.00', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.38e-07', energy_flux_error2='1.28e-05', EG='0.84', time_epoch_completed='1632873966.97', return_code='0', job_id='401453', GAL2='1.06', EG2='0.76', return_code2='0', energy_flux_error='1.71e-05', photon_flux_error2='6.65e-08', ts2='6.09', photon_index='2.15' WHERE bin_id='1432' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:06:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 401453: <4FGL_J2236.3+2828_daily_bin1432> in cluster <slac> Done

Job <4FGL_J2236.3+2828_daily_bin1432> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep 28 16:50:45 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:50:46 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:50:46 2021
Terminated at Tue Sep 28 17:06:07 2021
Results reported at Tue Sep 28 17:06:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin1432 339.096 28.4832 610502401 610761601 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 :                                   735.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            922 sec.

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

