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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin1427
RA = 339.096, Dec = 28.4832
tmin = 609206401, tmax = 609465601
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='401446', job_status='RUN', time_executed='2021-09-28 16:53:09.026908', time_epoch_executed='1632873189.03' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='1427'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/401446

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/401446/ft1_4FGL_J2236.3+2828_daily_bin1427.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/401446/ft2_4FGL_J2236.3+2828_daily_bin1427.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/401446/ft1_4FGL_J2236.3+2828_daily_bin1427.fits outfile=/scratch/kocevski/401446/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1427.fits ra=339.096 dec=28.4832 rad=12.0 tmin=609206401.0 tmax=609465601.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.03
user 2.78
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/401446/ft1_filtered_4FGL_J2236.3+2828_daily_bin1427.fits" evtable="EVENTS" scfile=/scratch/kocevski/401446/ft2_4FGL_J2236.3+2828_daily_bin1427.fits sctable="SC_DATA" outfile=/scratch/kocevski/401446/ltcube_609206401_609465601_4FGL_J2236.3+2828_daily_bin1427.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/401446/ft2_4FGL_J2236.3+2828_daily_bin1427.fits
.....................!
real 12.43
user 12.01
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/401446/ft1_filtered_4FGL_J2236.3+2828_daily_bin1427.fits evtable="EVENTS" scfile=/scratch/kocevski/401446/ft2_4FGL_J2236.3+2828_daily_bin1427.fits sctable="SC_DATA" expcube=/scratch/kocevski/401446/ltcube_609206401_609465601_4FGL_J2236.3+2828_daily_bin1427.fits outfile=/scratch/kocevski/401446/expmap_609206401_609465601_4FGL_J2236.3+2828_daily_bin1427.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/401446/ltcube_609206401_609465601_4FGL_J2236.3+2828_daily_bin1427.fits
.....................!
real 191.52
user 186.39
sys 4.75

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/401446/ft1_filtered_4FGL_J2236.3+2828_daily_bin1427.fits scfile=/scratch/kocevski/401446/ft2_4FGL_J2236.3+2828_daily_bin1427.fits outfile=/scratch/kocevski/401446/cmap_609206401_609465601_4FGL_J2236.3+2828_daily_bin1427.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/401446/ft1_filtered_4FGL_J2236.3+2828_daily_bin1427.fits scfile=/scratch/kocevski/401446/ft2_4FGL_J2236.3+2828_daily_bin1427.fits outfile=/scratch/kocevski/401446/cmap_HighResolution_609206401_609465601_4FGL_J2236.3+2828_daily_bin1427.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.37
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.6378       1.0000         .10000E-03   10000.    
     2 'norm      '    .41767       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    36.064       1.0000         .10000E-03   10000.    
     5 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    35.551       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .67041       1.0000         .10000E-03   10000.    
     8 'norm      '    1.4520       1.0000         .10000E-03   10000.    
     9 'Prefactor '    48.431       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .65269E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.7979       1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.436       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.1296       1.0000         .10000E-03   10000.    
    16 'norm      '    3.0108       1.0000         .10000E-03   10000.    
    17 'Prefactor '    50.097       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10549E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10160E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11829       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .69425       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .96054       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=   9137.326     FROM MIGRAD    STATUS=CONVERGED    512 CALLS     2455 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6409        8.0742       -.21842E-05   -.17287E-03
   2  norm          .41778        .54686        .95234E-07    .21056E-03
   3  Prefactor     .10000E-03    13.601        .31711E-06** at limit **
   4  Prefactor     36.061        15.925        .11758E-05   -.40101E-04
   5  norm          .10000E-03    1.5930       -.10239E-06** at limit **
   6  Prefactor     35.536        41.745       -.16831E-06   -.13822E-04
   7  Prefactor     .64326        6.0262        .32119E-06   -.55696E-03
   8  norm          1.4508        .94541       -.81833E-07   -.16007E-02
   9  Prefactor     48.437        48.445       -.29837E-05   -.62279E-06
  10  Prefactor     .10068E-03    12.476        .31727E-05** at limit **
  11  norm          1.7985        1.5562       -.15358E-06   -.25402E-03
  12  Prefactor     18.428        11.568        .19636E-05   -.22412E-04
  13  Prefactor     .10000E-03    6.0530       -.82538E-07** at limit **
  14  Prefactor     .10000E-03    4.3391       -.35479E-06** at limit **
  15  Prefactor     4.1485        17.430        .18424E-04   -.40981E-04
  16  norm          3.0111        1.8894       -.70960E-07   -.63702E-03
  17  Prefactor     50.095        29.939        .10952E-04    .12558E-04
  18  Prefactor     .10000E-03    8.3883       -.44167E-06** at limit **
  19  norm          .10000E-03    4.6398        .74734E-06** at limit **
  20  Prefactor     .10000E-03    16.005       -.11807E-05** at limit **
  21  Normalizat    .69532        .22129       -.56106E-05   -.15088E-03
  22  Prefactor     .96006        .92381E-01    .61204E-06   -.52191E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.64089
  norm       = 0.417777
  Prefactor  = 0.0001
  Prefactor  = 36.0608
  norm       = 0.0001
  Prefactor  = 35.5365
  Prefactor  = 0.643257
  norm       = 1.45084
  Prefactor  = 48.4373
  Prefactor  = 0.000100683
  norm       = 1.7985
  Prefactor  = 18.4275
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.14847
  norm       = 3.01113
  Prefactor  = 50.0954
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 0.695325
  Prefactor  = 0.960062
 **********
 **   18 **HESSE 
 **********

 FCN=   9137.326     FROM HESSE     STATUS=OK           360 CALLS     2815 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6409        8.0297        .15575E-03   -1.5193    
   2  norm          .41778        .45786        .76326E-03   -1.5579    
   3  Prefactor     .10000E-03    13.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     36.061        15.913        .66734E-04   -1.4506    
   5  norm          .10000E-03    1.6151        .11781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     35.536        41.744        .67213E-04   -1.4515    
   7  Prefactor     .64326        26.028        .43971E-02   -1.5548    
   8  norm          1.4508        .92542        .70722E-04   -1.5467    
   9  Prefactor     48.437        48.454        .57620E-04   -1.4315    
  10  Prefactor     .10068E-03    89.569        .63531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.7985        1.5484        .10635E-03   -1.5440    
  12  Prefactor     18.428        11.562        .93281E-04   -1.4849    
  13  Prefactor     .10000E-03    6.0591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.3546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.1485        17.231        .19836E-03   -1.5301    
  16  norm          3.0111        1.8823        .97476E-04   -1.5361    
  17  Prefactor     50.095        29.925        .56658E-04   -1.4291    
  18  Prefactor     .10000E-03    8.3932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.7142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    19.268        .10447       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .69532        .25042        .41557E-03   -1.0408    
  22  Prefactor     .96006        .10722        .16182E-03   -.94073    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.46274e-09
Minuit parameter uncertainties:
  1  8.03103
  2  0.457866
  3  1.05545e-05
  4  15.9152
  5  2.91277e-06
  6  41.7786
  7  8.18673
  8  0.925425
  9  48.4934
  10  0.0156699
  11  1.5484
  12  11.5631
  13  1.81468e-06
  14  1.52804e-05
  15  16.9176
  16  1.88238
  17  29.9341
  18  3.28486e-05
  19  9.92289e-06
  20  0.000251793
  21  0.250828
  22  0.107246
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  1.451e+00  9.254e-01  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:  9.601e-01  1.072e-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.953e-01  2.508e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.99
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 4.65e-08 +/- 2.97e-08
Energy Flux (Fixed Index): 1.89e-05 +/- 1.20e-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) = 9137.30534872
delta logL = 0.0202276635591

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9137.30466414
delta logL = 0.0209122463966

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4354       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2708       1.0000          .0000       5.0000    
     3 'Normalizat'    .68721       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96240       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=   9137.305     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      207 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4361        21.954        .90082E-02    .37970E-03
   2  alpha         2.2708        3.0060        .41372        .13546E-04
   3  Normalizat    .68744        .10322        .94303E-01    .48542E-04
   4  Prefactor     .96233        .41513E-01    .45795E-01   -.38991E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.4361
  alpha      = 2.27081
  Normalizat = 0.687435
  Prefactor  = 0.962334
 **********
 **   18 **HESSE 
 **********

 FCN=   9137.305     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .30E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4361        .91625        .68915E-04   -1.5468    
   2  alpha         2.2708        .61561        .18544E-01   -.91804E-01
   3  Normalizat    .68744        .23376        .41782E-03   -1.0439    
   4  Prefactor     .96233        .10510        .16165E-03   -.93996    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.98809e-13
Minuit parameter uncertainties:
  1  0.916257
  2  0.62206
  3  0.234097
  4  0.105125
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/401446': 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) = 9137.30466313
delta logL = 0.0209132592572

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  1.436e+00  9.163e-01  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  2.271e+00  6.221e-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:  9.623e-01  1.051e-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.874e-01  2.341e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.05
Ra Dec: 339.096 28.483
Photon Index (Free Index): 2.27 +/- 0.62
Photon Flux (Free Index): 5.15e-08 +/- 3.94e-08
Energy Flux (Free Index): 1.80e-05 +/- 1.20e-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/401446/cmap_HighResolution_609206401_609465601_4FGL_J2236.3+2828_daily_bin1427.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.65e-08', energy_flux2='1.80e-05', photon_flux_error='2.97e-08', dlogl='2.09e-02', energy_flux='1.89e-05', photon_flux2='5.15e-08', job_status='DONE', time_completed='2021-09-28 17:04:53.363212', photon_index_error2='0.62', photon_index2='2.27', ts='5.99', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='1.20e-05', EG='0.70', time_epoch_completed='1632873893.36', return_code='0', job_id='401446', GAL2='0.96', EG2='0.69', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='3.94e-08', ts2='6.05', photon_index='2.15' WHERE bin_id='1427' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:04:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 401446: <4FGL_J2236.3+2828_daily_bin1427> in cluster <slac> Done

Job <4FGL_J2236.3+2828_daily_bin1427> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep 28 16:50:44 2021
Job was executed on host(s) <bullet0261>, 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:04:54 2021
Results reported at Tue Sep 28 17:04:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin1427 339.096 28.4832 609206401 609465601 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 :                                   696.09 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             301.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   847 sec.
    Turnaround time :                            850 sec.

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

