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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin1502
RA = 339.096, Dec = 28.4832
tmin = 628646401, tmax = 628905601
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='401551', job_status='RUN', time_executed='2021-09-28 16:53:50.357643', time_epoch_executed='1632873230.36' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='1502'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/401551

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/401551/ft1_4FGL_J2236.3+2828_daily_bin1502.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/401551/ft2_4FGL_J2236.3+2828_daily_bin1502.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/401551/ft1_4FGL_J2236.3+2828_daily_bin1502.fits outfile=/scratch/kocevski/401551/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1502.fits ra=339.096 dec=28.4832 rad=12.0 tmin=628646401.0 tmax=628905601.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 3.51
user 3.27
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/401551/ft1_filtered_4FGL_J2236.3+2828_daily_bin1502.fits" evtable="EVENTS" scfile=/scratch/kocevski/401551/ft2_4FGL_J2236.3+2828_daily_bin1502.fits sctable="SC_DATA" outfile=/scratch/kocevski/401551/ltcube_628646401_628905601_4FGL_J2236.3+2828_daily_bin1502.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/401551/ft2_4FGL_J2236.3+2828_daily_bin1502.fits
.....................!
real 11.78
user 11.44
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/401551/ft1_filtered_4FGL_J2236.3+2828_daily_bin1502.fits evtable="EVENTS" scfile=/scratch/kocevski/401551/ft2_4FGL_J2236.3+2828_daily_bin1502.fits sctable="SC_DATA" expcube=/scratch/kocevski/401551/ltcube_628646401_628905601_4FGL_J2236.3+2828_daily_bin1502.fits outfile=/scratch/kocevski/401551/expmap_628646401_628905601_4FGL_J2236.3+2828_daily_bin1502.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/401551/ltcube_628646401_628905601_4FGL_J2236.3+2828_daily_bin1502.fits
.....................!
real 190.83
user 185.96
sys 4.53

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/401551/ft1_filtered_4FGL_J2236.3+2828_daily_bin1502.fits scfile=/scratch/kocevski/401551/ft2_4FGL_J2236.3+2828_daily_bin1502.fits outfile=/scratch/kocevski/401551/cmap_628646401_628905601_4FGL_J2236.3+2828_daily_bin1502.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.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9495       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.800       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .12273E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.0572       1.0000         .10000E-03   10000.    
     8 'norm      '    .10279E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.3780       1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.279       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.6941       1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.108       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.659       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .62831       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1641       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=   9600.165     FROM MIGRAD    STATUS=CONVERGED    488 CALLS     2427 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9486        7.2833       -.21915E-05   -.50416E-03
   2  norm          .10000E-03    .23330       -.69945E-07** at limit **
   3  Prefactor     11.770        62.641       -.72320E-04    .55954E-05
   4  Prefactor     .10000E-03    11.706       -.30741E-05** at limit **
   5  norm          .10001E-03    3.1884       -.86834E-07** at limit **
   6  Prefactor     .10000E-03    39.105        .36423E-06** at limit **
   7  Prefactor     3.0558        10.053       -.15749E-05   -.17866E-03
   8  norm          .10000E-03    .39834       -.28060E-06** at limit **
   9  Prefactor     .10000E-03    29.026        .13200E-05** at limit **
  10  Prefactor     .10000E-03    9.7754        .48743E-05** at limit **
  11  norm          3.3779        1.8389       -.39365E-07    .43731E-04
  12  Prefactor     24.277        10.972       -.26422E-06    .10588E-04
  13  Prefactor     8.6881        21.823       -.72858E-05   -.22379E-04
  14  Prefactor     23.108        10.899       -.31014E-06    .30212E-04
  15  Prefactor     .10000E-03    7.2888        .29248E-05** at limit **
  16  norm          .10000E-03    .58485       -.24873E-06** at limit **
  17  Prefactor     15.655        15.494       -.11081E-05    .12535E-04
  18  Prefactor     .10000E-03    7.9013       -.53166E-05** at limit **
  19  norm          .10000E-03    2.2552       -.52415E-07** at limit **
  20  Prefactor     .10000E-03    5.6235       -.16145E-06** at limit **
  21  Normalizat    .62814        .21262        .35504E-05    .25264E-03
  22  Prefactor     1.1643        .99969E-01    .97710E-06    .40100E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.94861
  norm       = 0.0001
  Prefactor  = 11.7702
  Prefactor  = 0.0001
  norm       = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 3.05584
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.37788
  Prefactor  = 24.2769
  Prefactor  = 8.68812
  Prefactor  = 23.1079
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.6551
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.62814
  Prefactor  = 1.16426
 **********
 **   18 **HESSE 
 **********

 FCN=   9600.165     FROM HESSE     STATUS=OK           354 CALLS     2781 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9486        7.2987        .29723E-03   -1.5429    
   2  norm          .10000E-03    .31761        .91382E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.770        62.384        .11662E-03   -1.5022    
   4  Prefactor     .10000E-03    11.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10001E-03    3.5987        .56308E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    39.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.0558        10.035        .23202E-03   -1.5358    
   8  norm          .10000E-03    3.3115        .11792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    29.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.7912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.3779        1.8395        .94338E-04   -1.5340    
  12  Prefactor     24.277        10.963        .81295E-04   -1.4722    
  13  Prefactor     8.6881        21.902        .13594E-03   -1.5118    
  14  Prefactor     23.108        10.893        .83326E-04   -1.4746    
  15  Prefactor     .10000E-03    7.2895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.6355        .14466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     15.655        15.484        .10122E-03   -1.4916    
  18  Prefactor     .10000E-03    7.9107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.2891        .14365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.6382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .62814        .22955        .44065E-03   -1.0680    
  22  Prefactor     1.1643        .11058        .16030E-03   -.87438    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29713e-09
Minuit parameter uncertainties:
  1  7.30198
  2  3.69057e-06
  3  54.2833
  4  3.66429e-05
  5  0.000324285
  6  2.72535e-05
  7  10.0407
  8  3.77617e-05
  9  1.87671e-05
  10  2.71876e-05
  11  1.8395
  12  10.9638
  13  21.9223
  14  10.8943
  15  4.74207e-06
  16  2.49066e-05
  17  15.4884
  18  1.14274e-05
  19  1.08673e-05
  20  1.53853e-05
  21  0.229901
  22  0.110599
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  1.000e-04  3.776e-05  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.164e+00  1.106e-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:  6.281e-01  2.299e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/401551/likelihoodResults_628646401_628905601_4FGL_J2236.3+2828_daily_bin1502.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): 102
logL (Free Index) = 9600.16622669
delta logL = -0.00146715807568

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9600.16476903
delta logL = -9.49588684307e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14671E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1959       1.0000          .0000       5.0000    
     3 'Normalizat'    .62876       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1641       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9600.149     FROM MIGRAD    STATUS=FAILED       170 CALLS      339 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .30695E-01    .23473        .11258E-02   -.77203E-01
   2  alpha         3.9613        2.7019        .16617       -.40547E-03
   3  Normalizat    .61469        .23732        .44065E-03   -.73788E-05
   4  Prefactor     1.1679        .11080        .16030E-03   -.42410E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9600.149     FROM SIMPLEX   STATUS=UNCHANGED     67 CALLS      406 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .30695E-01    .23473        .10865E-03   -1.5743    
   2  alpha         3.9613        2.7019        .13851E-01    2.5173    
   3  Normalizat    .61469        .23732        .26249E-03   -1.0736    
   4  Prefactor     1.1679        .11080        .10719E-03   -.87325    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9600.149     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      438 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .30695E-01    .37383        .22515E-03   -.30034E-02
   2  alpha         3.9613        2.7523        .33234E-01   -.15684E-04
   3  Normalizat    .61469        .23557        .17626E-04   -.74820E-05
   4  Prefactor     1.1679        .11054        .64122E-05   -.42552E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0306948
  alpha      = 3.96133
  Normalizat = 0.614688
  Prefactor  = 1.1679
 **********
 **   18 **HESSE 
 **********

 FCN=   9600.149     FROM HESSE     STATUS=OK            27 CALLS      465 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .30695E-01    .65005        .45030E-04   -1.5743    
   2  alpha         3.9613        3.5816        .66469E-02    2.5173    
   3  Normalizat    .61469        .23416        .35252E-05   -1.0736    
   4  Prefactor     1.1679        .11002        .12824E-05   -.87325    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76348e-12
Minuit parameter uncertainties:
  1  0.282054
  2  5.68344
  3  0.23454
  4  0.110044
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/401551': 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) = 9600.14861001
delta logL = 0.0161495168431

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  3.069e-02  2.821e-01  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  3.961e+00  5.683e+00  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.168e+00  1.100e-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:  6.147e-01  2.345e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 339.096 28.483

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/401551/cmap_HighResolution_628646401_628905601_4FGL_J2236.3+2828_daily_bin1502.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.97e-05', job_status='DONE', photon_flux_upper_limit='7.32e-08', time_completed='2021-09-28 17:07:15.875191', job_id='401551', GAL2='1.17', fit_tolerance='1e-08', EG2='0.61', EG='0.63', time_epoch_completed='1632874035.88', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='1.61e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1502' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:07:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 401551: <4FGL_J2236.3+2828_daily_bin1502> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin1502 339.096 28.4832 628646401 628905601 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 :                                   803.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   983 sec.
    Turnaround time :                            984 sec.

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

