/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 215 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 = 7424
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2236.3+2828_daily_bin80
RA = 339.096, Dec = 28.4832
tmin = 260064001, tmax = 260323201
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='395212', job_status='RUN', time_executed='2021-09-28 16:34:46.297294', time_epoch_executed='1632872086.3' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='80'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/395212

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/395212/ft1_4FGL_J2236.3+2828_daily_bin80.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/395212/ft2_4FGL_J2236.3+2828_daily_bin80.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/395212/ft1_4FGL_J2236.3+2828_daily_bin80.fits outfile=/scratch/kocevski/395212/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin80.fits ra=339.096 dec=28.4832 rad=12.0 tmin=260064001.0 tmax=260323201.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 1.46
user 1.27
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/395212/ft1_filtered_4FGL_J2236.3+2828_daily_bin80.fits" evtable="EVENTS" scfile=/scratch/kocevski/395212/ft2_4FGL_J2236.3+2828_daily_bin80.fits sctable="SC_DATA" outfile=/scratch/kocevski/395212/ltcube_260064001_260323201_4FGL_J2236.3+2828_daily_bin80.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/395212/ft2_4FGL_J2236.3+2828_daily_bin80.fits
.....................!
real 12.40
user 12.03
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/395212/ft1_filtered_4FGL_J2236.3+2828_daily_bin80.fits evtable="EVENTS" scfile=/scratch/kocevski/395212/ft2_4FGL_J2236.3+2828_daily_bin80.fits sctable="SC_DATA" expcube=/scratch/kocevski/395212/ltcube_260064001_260323201_4FGL_J2236.3+2828_daily_bin80.fits outfile=/scratch/kocevski/395212/expmap_260064001_260323201_4FGL_J2236.3+2828_daily_bin80.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/395212/ltcube_260064001_260323201_4FGL_J2236.3+2828_daily_bin80.fits
.....................!
real 190.21
user 184.70
sys 5.17

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/395212/ft1_filtered_4FGL_J2236.3+2828_daily_bin80.fits scfile=/scratch/kocevski/395212/ft2_4FGL_J2236.3+2828_daily_bin80.fits outfile=/scratch/kocevski/395212/cmap_260064001_260323201_4FGL_J2236.3+2828_daily_bin80.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/395212/ft1_filtered_4FGL_J2236.3+2828_daily_bin80.fits scfile=/scratch/kocevski/395212/ft2_4FGL_J2236.3+2828_daily_bin80.fits outfile=/scratch/kocevski/395212/cmap_HighResolution_260064001_260323201_4FGL_J2236.3+2828_daily_bin80.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.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .55606       1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.546       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.3569       1.0000         .10000E-03   10000.    
     5 'norm      '    1.2917       1.0000         .10000E-03   10000.    
     6 'Prefactor '    109.20       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.3343       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.8836       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .53048E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7120       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.1385       1.0000         .10000E-03   10000.    
    15 'Prefactor '    34.369       1.0000         .10000E-03   10000.    
    16 'norm      '    1.0938       1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.001       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .66096       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0871       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=   10770.79     FROM MIGRAD    STATUS=CONVERGED    482 CALLS     2508 TOTAL
                     EDM=   .23E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.8326       -.21475E-07** at limit **
   2  norm          .55609        .68540       -.69419E-07   -.45488E-03
   3  Prefactor     16.554        39.748       -.11680E-05    .37741E-05
   4  Prefactor     3.3573        13.141        .25658E-05    .27784E-05
   5  norm          1.2917        2.4076        .17578E-07   -.17700E-05
   6  Prefactor     109.23        89.485       -.23833E-05    .98686E-05
   7  Prefactor     .10000E-03    4.7652       -.37682E-06** at limit **
   8  norm          8.3342        1.6740        .11128E-08    .20278E-05
   9  Prefactor     8.9277        145.38       -.10680E-04    .22472E-05
  10  Prefactor     .10000E-03    23.278        .33188E-06** at limit **
  11  norm          .10000E-03    .57640        .27638E-07** at limit **
  12  Prefactor     .10000E-03    4.2970       -.25964E-07** at limit **
  13  Prefactor     2.7105        28.329        .56843E-06    .24470E-05
  14  Prefactor     6.1383        7.7240        .45550E-06   -.10352E-04
  15  Prefactor     34.366        25.715        .26558E-06   -.91573E-06
  16  norm          1.0937        1.1335       -.23534E-07   -.49343E-04
  17  Prefactor     16.003        16.494       -.10263E-06    .38177E-05
  18  Prefactor     .10000E-03    7.0638       -.27529E-07** at limit **
  19  norm          .10000E-03    1.2491       -.15655E-07** at limit **
  20  Prefactor     .10000E-03    24.179       -.62342E-06** at limit **
  21  Normalizat    .66106        .20816        .79181E-06    .54687E-04
  22  Prefactor     1.0871        .94283E-01   -.12156E-06    .86473E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.556091
  Prefactor  = 16.5544
  Prefactor  = 3.35726
  norm       = 1.29172
  Prefactor  = 109.231
  Prefactor  = 0.000100001
  norm       = 8.33422
  Prefactor  = 8.9277
  Prefactor  = 0.0001
  norm       = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 2.71047
  Prefactor  = 6.13834
  Prefactor  = 34.3657
  norm       = 1.09371
  Prefactor  = 16.0032
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.661061
  Prefactor  = 1.08705
 **********
 **   18 **HESSE 
 **********

 FCN=   10770.79     FROM HESSE     STATUS=OK           360 CALLS     2868 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.8414        .17055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .55609        .59942        .91309E-03   -1.5559    
   3  Prefactor     16.554        39.773        .98462E-04   -1.4894    
   4  Prefactor     3.3573        13.186        .11044E-02   -1.5341    
   5  norm          1.2917        2.3561        .21402E-03   -1.5481    
   6  Prefactor     109.23        89.351        .19244E-03   -1.3614    
   7  Prefactor     .10000E-03    35.500        .42817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.3342        1.6713        .56556E-04   -1.5131    
   9  Prefactor     8.9277        144.96        .13448E-03   -1.5110    
  10  Prefactor     .10000E-03    23.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.0084        .29306E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.3158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.7105        28.276        .24733E-03   -1.5379    
  14  Prefactor     6.1383        7.7099        .81019E-03   -1.5212    
  15  Prefactor     34.366        25.670        .68355E-04   -1.4535    
  16  norm          1.0937        1.1086        .10706E-03   -1.5499    
  17  Prefactor     16.003        16.479        .10013E-03   -1.4908    
  18  Prefactor     .10000E-03    7.0729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.2537        .11326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    25.096        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .66106        .22387        .44662E-03   -1.0545    
  22  Prefactor     1.0871        .10376        .16720E-03   -.89881    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.17247e-11
Minuit parameter uncertainties:
  1  2.77475e-07
  2  0.599428
  3  39.8368
  4  13.1972
  5  2.35625
  6  89.4616
  7  0.00029596
  8  1.6713
  9  72.1554
  10  1.84468e-05
  11  0.000120271
  12  3.00658e-06
  13  17.5194
  14  7.71115
  15  25.6784
  16  1.10864
  17  16.484
  18  1.98535e-06
  19  4.03156e-07
  20  9.80431e-06
  21  0.22418
  22  0.103784
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  8.334e+00  1.671e+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.087e+00  1.038e-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.611e-01  2.242e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 82.02
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 2.67e-07 +/- 5.36e-08
Energy Flux (Fixed Index): 1.08e-04 +/- 2.17e-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) = 10770.3852862
delta logL = 0.405063112994

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10770.3434707
delta logL = 0.446878591132

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.9818       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3433       1.0000          .0000       5.0000    
     3 'Normalizat'    .61113       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1010       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=   10770.34     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      208 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.9818        3.6018        .35480E-02   -.70522E-03
   2  alpha         2.3433        .45043        .17063        .58808E-04
   3  Normalizat    .61114        .21315        .10442        .66768E-04
   4  Prefactor     1.1010        .97018E-01    .37549E-01   -.63810E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.98181
  alpha      = 2.34331
  Normalizat = 0.611143
  Prefactor  = 1.10099
 **********
 **   18 **HESSE 
 **********

 FCN=   10770.34     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.9818        1.6519        .53046E-04   -1.5143    
   2  alpha         2.3433        .21204        .73166E-02   -.62717E-01
   3  Normalizat    .61114        .22421        .46288E-03   -1.0751    
   4  Prefactor     1.1010        .10332        .16619E-03   -.89435    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.98809e-10
Minuit parameter uncertainties:
  1  1.65194
  2  0.212297
  3  0.224541
  4  0.103339
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/395212': 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) = 10770.3434707
delta logL = 0.44687860761

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  7.982e+00  1.652e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  2.343e+00  2.123e-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.101e+00  1.033e-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.111e-01  2.245e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 83.37
Ra Dec: 339.096 28.483
Photon Index (Free Index): 2.34 +/- 0.21
Photon Flux (Free Index): 3.07e-07 +/- 7.05e-08
Energy Flux (Free Index): 9.96e-05 +/- 2.08e-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/395212/cmap_HighResolution_260064001_260323201_4FGL_J2236.3+2828_daily_bin80.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.67e-07', energy_flux2='9.96e-05', photon_flux_error='5.36e-08', dlogl='4.47e-01', energy_flux='1.08e-04', photon_flux2='3.07e-07', job_status='DONE', time_completed='2021-09-28 16:47:15.250922', photon_index_error2='0.21', photon_index2='2.34', ts='82.02', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='2.08e-05', EG='0.66', time_epoch_completed='1632872835.25', return_code='0', job_id='395212', GAL2='1.10', EG2='0.61', return_code2='0', energy_flux_error='2.17e-05', photon_flux_error2='7.05e-08', ts2='83.37', photon_index='2.15' WHERE bin_id='80' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:47:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 395212: <4FGL_J2236.3+2828_daily_bin80> in cluster <slac> Done

Job <4FGL_J2236.3+2828_daily_bin80> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 28 16:31:01 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:31:02 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:31:02 2021
Terminated at Tue Sep 28 16:47:16 2021
Results reported at Tue Sep 28 16:47:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin80 339.096 28.4832 260064001 260323201 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 :                                   749.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   973 sec.
    Turnaround time :                            975 sec.

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

