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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin1606
RA = 339.096, Dec = 28.4832
tmin = 655603201, tmax = 655862401
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='486442', job_status='RUN', time_executed='2021-12-08 08:45:37.387905', time_epoch_executed='1638981937.39' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='1606'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/486442

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/486442/ft1_4FGL_J2236.3+2828_daily_bin1606.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/486442/ft2_4FGL_J2236.3+2828_daily_bin1606.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/486442/ft1_4FGL_J2236.3+2828_daily_bin1606.fits outfile=/scratch/kocevski/486442/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1606.fits ra=339.096 dec=28.4832 rad=12.0 tmin=655603201.0 tmax=655862401.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 4.06
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/486442/ft1_filtered_4FGL_J2236.3+2828_daily_bin1606.fits evtable="EVENTS" scfile=/scratch/kocevski/486442/ft2_4FGL_J2236.3+2828_daily_bin1606.fits sctable="SC_DATA" expcube=/scratch/kocevski/486442/ltcube_655603201_655862401_4FGL_J2236.3+2828_daily_bin1606.fits outfile=/scratch/kocevski/486442/expmap_655603201_655862401_4FGL_J2236.3+2828_daily_bin1606.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/486442/ltcube_655603201_655862401_4FGL_J2236.3+2828_daily_bin1606.fits
.....................!
real 191.97
user 185.80
sys 5.69

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/486442/ft1_filtered_4FGL_J2236.3+2828_daily_bin1606.fits scfile=/scratch/kocevski/486442/ft2_4FGL_J2236.3+2828_daily_bin1606.fits outfile=/scratch/kocevski/486442/cmap_655603201_655862401_4FGL_J2236.3+2828_daily_bin1606.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/486442/ft1_filtered_4FGL_J2236.3+2828_daily_bin1606.fits scfile=/scratch/kocevski/486442/ft2_4FGL_J2236.3+2828_daily_bin1606.fits outfile=/scratch/kocevski/486442/cmap_HighResolution_655603201_655862401_4FGL_J2236.3+2828_daily_bin1606.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.3026       1.0000         .10000E-03   10000.    
     2 'norm      '    .38428       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    44.887       1.0000         .10000E-03   10000.    
     5 'norm      '    .84974E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    47.453       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.7671       1.0000         .10000E-03   10000.    
     8 'norm      '    2.5828       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.376       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.904       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.819       1.0000         .10000E-03   10000.    
    16 'norm      '    .15022       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.2386       1.0000         .10000E-03   10000.    
    19 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    37.726       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1362       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .80648       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=   6119.765     FROM MIGRAD    STATUS=CONVERGED    489 CALLS     2438 TOTAL
                     EDM=   .92E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3022        6.9121       -.17524E-07    .13609E-04
   2  norm          .38427        .38467        .66237E-08    .61362E-03
   3  Prefactor     .10000E-03    59.710        .40617E-05** at limit **
   4  Prefactor     44.891        23.594        .57823E-06   -.49483E-04
   5  norm          .10000E-03    101.71       -.70409E-05** at limit **
   6  Prefactor     47.396        106.70       -.13919E-05    .88492E-05
   7  Prefactor     4.7657        11.293        .16606E-05   -.51835E-04
   8  norm          2.5827        1.4080        .36568E-07    .12287E-03
   9  Prefactor     12.411        47.394        .18743E-05   -.14542E-04
  10  Prefactor     .10000E-03    16.448        .23568E-06** at limit **
  11  norm          .10000E-03    .69764        .30161E-07** at limit **
  12  Prefactor     20.902        13.406        .21137E-06   -.10780E-04
  13  Prefactor     .10000E-03    18.506        .10803E-05** at limit **
  14  Prefactor     .10000E-03    7.9678        .24499E-06** at limit **
  15  Prefactor     11.822        38.329       -.15335E-05   -.25788E-04
  16  norm          .14583        .91762        .32564E-06   -.30179E-03
  17  Prefactor     .10000E-03    37.162       -.11202E-05** at limit **
  18  Prefactor     3.2344        61.853        .18293E-05    .29391E-05
  19  norm          .10000E-03    4.7527        .10897E-05** at limit **
  20  Prefactor     37.726        21.984       -.55182E-06   -.11868E-03
  21  Normalizat    1.1365        .29745       -.85548E-05   -.11554E-03
  22  Prefactor     .80640        .12945        .34663E-05   -.24604E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.30225
  norm       = 0.384269
  Prefactor  = 0.0001
  Prefactor  = 44.8912
  norm       = 0.0001
  Prefactor  = 47.3955
  Prefactor  = 4.76568
  norm       = 2.58266
  Prefactor  = 12.4106
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 20.9016
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.8225
  norm       = 0.145834
  Prefactor  = 0.0001
  Prefactor  = 3.23442
  norm       = 0.0001
  Prefactor  = 37.7258
  Normalizat = 1.13648
  Prefactor  = 0.806402
 **********
 **   18 **HESSE 
 **********

 FCN=   6119.765     FROM HESSE     STATUS=OK           354 CALLS     2792 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.3022        6.9123        .13913E-03   -1.5132    
   2  norm          .38427        .39822        .47201E-03   -1.5584    
   3  Prefactor     .10000E-03    59.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     44.891        23.584        .59842E-04   -1.4367    
   5  norm          .10000E-03    3.9539        .51138E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     47.396        106.72        .58209E-04   -1.4330    
   7  Prefactor     4.7657        11.272        .18428E-03   -1.5271    
   8  norm          2.5827        1.4051        .65096E-04   -1.5387    
   9  Prefactor     12.411        47.355        .11387E-03   -1.5003    
  10  Prefactor     .10000E-03    16.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .70142        .63787E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     20.902        13.402        .87605E-04   -1.4793    
  13  Prefactor     .10000E-03    18.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.0532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.822        38.275        .11652E-03   -1.5020    
  16  norm          .14583        4.7320        .13871E-02   -1.5632    
  17  Prefactor     .10000E-03    37.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.2344        61.970        .22508E-03   -1.5348    
  19  norm          .10000E-03    4.8583        .16728E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     37.726        22.013        .65253E-04   -1.4479    
  21  Normalizat    1.1365        .29742        .33469E-03   -.88589    
  22  Prefactor     .80640        .12947        .17615E-03   -.99493    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63906e-10
Minuit parameter uncertainties:
  1  6.91293
  2  0.398224
  3  0.000266183
  4  23.5888
  5  3.06506e-05
  6  107.153
  7  11.2772
  8  1.4051
  9  47.4987
  10  4.75704e-05
  11  5.60434e-07
  12  13.4038
  13  1.76253e-05
  14  1.5897e-05
  15  38.3546
  16  1.661
  17  0.000272614
  18  28.3487
  19  4.55655e-05
  20  22.0179
  21  0.297865
  22  0.129522
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
513   Normalization:  1.136e+00  2.979e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.72
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 8.29e-08 +/- 4.51e-08
Energy Flux (Fixed Index): 3.36e-05 +/- 1.83e-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) = 6119.73674659
delta logL = 0.0278420039285

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6119.73536569
delta logL = 0.0292228944891

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5646       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2842       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1216       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81063       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=   6119.735     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      203 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5633        29.776        .63726E-02    .20922E-03
   2  alpha         2.2843        3.1265        .37750        .14409E-04
   3  Normalizat    1.1211        .16725        .76065E-01    .18618E-04
   4  Prefactor     .81078        .58848E-01    .43855E-01   -.15996E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.56333
  alpha      = 2.28433
  Normalizat = 1.12112
  Prefactor  = 0.810778
 **********
 **   18 **HESSE 
 **********

 FCN=   6119.735     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5633        1.3750        .62988E-04   -1.5388    
   2  alpha         2.2843        .57297        .13904E-01   -.86376E-01
   3  Normalizat    1.1211        .29001        .33666E-03   -.89077    
   4  Prefactor     .81078        .12885        .17572E-03   -.99332    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98421e-10
Minuit parameter uncertainties:
  1  1.37498
  2  0.578147
  3  0.290426
  4  0.128894
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/486442': 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) = 6119.73536334
delta logL = 0.0292252489789

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  2.563e+00  1.375e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  2.284e+00  5.781e-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.108e-01  1.289e-01  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  1.121e+00  2.904e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.83
Ra Dec: 339.096 28.483
Photon Index (Free Index): 2.28 +/- 0.58
Photon Flux (Free Index): 9.31e-08 +/- 6.35e-08
Energy Flux (Free Index): 3.21e-05 +/- 1.79e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/486442/cmap_HighResolution_655603201_655862401_4FGL_J2236.3+2828_daily_bin1606.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.29e-08', energy_flux2='3.21e-05', photon_flux_error='4.51e-08', dlogl='2.92e-02', energy_flux='3.36e-05', photon_flux2='9.31e-08', job_status='DONE', time_completed='2021-12-08 08:55:17.033917', photon_index_error2='0.58', photon_index2='2.28', ts='8.72', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='1.79e-05', EG='1.14', time_epoch_completed='1638982517.03', return_code='0', job_id='486442', GAL2='0.81', EG2='1.12', return_code2='0', energy_flux_error='1.83e-05', photon_flux_error2='6.35e-08', ts2='8.83', photon_index='2.15' WHERE bin_id='1606' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 08:55:17 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 486442: <4FGL_J2236.3+2828_daily_bin1606> in cluster <slac> Done

Job <4FGL_J2236.3+2828_daily_bin1606> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Dec  8 08:40:30 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 08:44:13 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 08:44:13 2021
Terminated at Wed Dec  8 08:55:17 2021
Results reported at Wed Dec  8 08:55:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin1606 339.096 28.4832 655603201 655862401 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 :                                   578.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   666 sec.
    Turnaround time :                            887 sec.

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

