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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin1330
RA = 339.096, Dec = 28.4832
tmin = 584064001, tmax = 584323201
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='401306', job_status='RUN', time_executed='2021-09-28 16:52:53.967925', time_epoch_executed='1632873173.97' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='1330'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/401306

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/401306/ft1_4FGL_J2236.3+2828_daily_bin1330.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/401306/ft2_4FGL_J2236.3+2828_daily_bin1330.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/401306/ft1_4FGL_J2236.3+2828_daily_bin1330.fits outfile=/scratch/kocevski/401306/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1330.fits ra=339.096 dec=28.4832 rad=12.0 tmin=584064001.0 tmax=584323201.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.49
user 4.24
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/401306/ft1_filtered_4FGL_J2236.3+2828_daily_bin1330.fits" evtable="EVENTS" scfile=/scratch/kocevski/401306/ft2_4FGL_J2236.3+2828_daily_bin1330.fits sctable="SC_DATA" outfile=/scratch/kocevski/401306/ltcube_584064001_584323201_4FGL_J2236.3+2828_daily_bin1330.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/401306/ft2_4FGL_J2236.3+2828_daily_bin1330.fits
.....................!
real 11.92
user 11.59
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/401306/ft1_filtered_4FGL_J2236.3+2828_daily_bin1330.fits evtable="EVENTS" scfile=/scratch/kocevski/401306/ft2_4FGL_J2236.3+2828_daily_bin1330.fits sctable="SC_DATA" expcube=/scratch/kocevski/401306/ltcube_584064001_584323201_4FGL_J2236.3+2828_daily_bin1330.fits outfile=/scratch/kocevski/401306/expmap_584064001_584323201_4FGL_J2236.3+2828_daily_bin1330.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/401306/ltcube_584064001_584323201_4FGL_J2236.3+2828_daily_bin1330.fits
.....................!
real 191.08
user 185.28
sys 5.45

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/401306/ft1_filtered_4FGL_J2236.3+2828_daily_bin1330.fits scfile=/scratch/kocevski/401306/ft2_4FGL_J2236.3+2828_daily_bin1330.fits outfile=/scratch/kocevski/401306/cmap_584064001_584323201_4FGL_J2236.3+2828_daily_bin1330.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/401306/ft1_filtered_4FGL_J2236.3+2828_daily_bin1330.fits scfile=/scratch/kocevski/401306/ft2_4FGL_J2236.3+2828_daily_bin1330.fits outfile=/scratch/kocevski/401306/cmap_HighResolution_584064001_584323201_4FGL_J2236.3+2828_daily_bin1330.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=339.096 yref=28.4832 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.358       1.0000         .10000E-03   10000.    
     2 'norm      '    2.0271       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.1669       1.0000         .10000E-03   10000.    
     6 'Prefactor '    72.163       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.0268       1.0000         .10000E-03   10000.    
     8 'norm      '    5.7630       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   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.013       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .30852E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.5896       1.0000         .10000E-03   10000.    
    16 'norm      '    .98904       1.0000         .10000E-03   10000.    
    17 'Prefactor '    35.657       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.2657       1.0000         .10000E-03   10000.    
    19 'norm      '    9.4470       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10316E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .95300       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0557       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=   10681.30     FROM MIGRAD    STATUS=CONVERGED    462 CALLS     2871 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.357        7.6855       -.39555E-06    .87944E-05
   2  norm          2.0269        1.0222       -.15925E-06   -.71171E-03
   3  Prefactor     .10000E-03    46.664        .57614E-05** at limit **
   4  Prefactor     .10000E-03    19.327        .54689E-05** at limit **
   5  norm          7.1665        4.5614       -.14264E-06    .17900E-04
   6  Prefactor     72.139        96.303       -.27465E-04   -.35924E-06
   7  Prefactor     4.0258        9.2554       -.10487E-05   -.17561E-03
   8  norm          5.7627        1.5337        .30432E-07    .22723E-03
   9  Prefactor     .10000E-03    27.091        .76208E-06** at limit **
  10  Prefactor     .10000E-03    16.058       -.10129E-05** at limit **
  11  norm          .10000E-03    .44662       -.30220E-08** at limit **
  12  Prefactor     20.018        11.758       -.48492E-06    .11945E-03
  13  Prefactor     .10000E-03    24.110       -.43620E-05** at limit **
  14  Prefactor     .10000E-03    7.0094       -.15091E-05** at limit **
  15  Prefactor     9.5887        12.687       -.40861E-06   -.11209E-03
  16  norm          .98906        1.0222       -.73234E-07   -.29177E-03
  17  Prefactor     35.668        24.387        .86202E-05    .20861E-03
  18  Prefactor     5.2380        45.506       -.62142E-04   -.14533E-04
  19  norm          9.4467        5.7536       -.42063E-06   -.28200E-02
  20  Prefactor     .10000E-03    22.252       -.21135E-05** at limit **
  21  Normalizat    .95320        .23267        .48176E-05    .17027E-03
  22  Prefactor     1.0557        .10035        .46281E-06    .50308E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.3568
  norm       = 2.02689
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.16651
  Prefactor  = 72.1387
  Prefactor  = 4.02583
  norm       = 5.76274
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 20.0178
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.58875
  norm       = 0.989057
  Prefactor  = 35.668
  Prefactor  = 5.238
  norm       = 9.44668
  Prefactor  = 0.000100003
  Normalizat = 0.953198
  Prefactor  = 1.05571
 **********
 **   18 **HESSE 
 **********

 FCN=   10681.30     FROM HESSE     STATUS=OK           346 CALLS     3217 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.357        7.6814        .12450E-03   -1.5064    
   2  norm          2.0269        1.0158        .70346E-04   -1.5423    
   3  Prefactor     .10000E-03    46.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    19.975        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.1665        4.5608        .14984E-03   -1.5172    
   6  Prefactor     72.139        96.281        .47259E-04   -1.4007    
   7  Prefactor     4.0258        9.2621        .20095E-03   -1.5307    
   8  norm          5.7627        1.5338        .62848E-04   -1.5228    
   9  Prefactor     .10000E-03    27.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .44950        .67406E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     20.018        11.702        .89531E-04   -1.4813    
  13  Prefactor     .10000E-03    24.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    56.160        .52287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.5887        12.685        .64704E-03   -1.5089    
  16  norm          .98906        1.0002        .10191E-03   -1.5509    
  17  Prefactor     35.668        24.391        .67113E-04   -1.4513    
  18  Prefactor     5.2380        44.766        .17516E-03   -1.5250    
  19  norm          9.4467        5.7836        .65193E-03   -1.5093    
  20  Prefactor     .10000E-03    22.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .95320        .26472        .42572E-03   -.94615    
  22  Prefactor     1.0557        .11557        .18296E-03   -.90895    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.38323e-09
Minuit parameter uncertainties:
  1  7.68211
  2  1.01576
  3  0.000104849
  4  3.43038e-05
  5  4.56104
  6  96.4896
  7  9.26539
  8  1.53383
  9  2.42003e-05
  10  3.03411e-05
  11  3.91547e-07
  12  11.703
  13  4.8337e-05
  14  9.015e-05
  15  12.6889
  16  1.0002
  17  24.3973
  18  30.6565
  19  5.78393
  20  0.000482944
  21  0.265087
  22  0.115594
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  5.763e+00  1.534e+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.056e+00  1.156e-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:  9.532e-01  2.651e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 48.34
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 1.85e-07 +/- 4.92e-08
Energy Flux (Fixed Index): 7.49e-05 +/- 1.99e-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) = 10680.4469452
delta logL = 0.8491256536

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10680.4418981
delta logL = 0.85417279628

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.6226       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8251       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0073       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0413       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=   10680.44     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      204 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.6226        1.5714        .42354E-02    .11272E-02
   2  alpha         1.8251        .22415        .21806       -.36551E-04
   3  Normalizat    1.0073        .22115        .93789E-01   -.29671E-03
   4  Prefactor     1.0413        .99112E-01    .40451E-01   -.87964E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.62256
  alpha      = 1.82512
  Normalizat = 1.00731
  Prefactor  = 1.04126
 **********
 **   18 **HESSE 
 **********

 FCN=   10680.44     FROM HESSE     STATUS=OK            29 CALLS      233 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.6226        1.6197        .65427E-04   -1.5234    
   2  alpha         1.8251        .24125        .92151E-02   -.27334    
   3  Normalizat    1.0073        .25577        .41540E-03   -.92786    
   4  Prefactor     1.0413        .11471        .18412E-03   -.91367    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.56483e-10
Minuit parameter uncertainties:
  1  1.61975
  2  0.241659
  3  0.256085
  4  0.114732
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/401306': 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) = 10680.4418981
delta logL = 0.85417279705

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  5.623e+00  1.620e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  1.825e+00  2.417e-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.041e+00  1.147e-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.007e+00  2.561e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 49.97
Ra Dec: 339.096 28.483
Photon Index (Free Index): 1.83 +/- 0.24
Photon Flux (Free Index): 1.42e-07 +/- 5.08e-08
Energy Flux (Free Index): 9.41e-05 +/- 3.28e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/401306/cmap_HighResolution_584064001_584323201_4FGL_J2236.3+2828_daily_bin1330.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.85e-07', energy_flux2='9.41e-05', photon_flux_error='4.92e-08', dlogl='8.54e-01', energy_flux='7.49e-05', photon_flux2='1.42e-07', job_status='DONE', time_completed='2021-09-28 17:06:26.172101', photon_index_error2='0.24', photon_index2='1.83', ts='48.34', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='3.28e-05', EG='0.95', time_epoch_completed='1632873986.17', return_code='0', job_id='401306', GAL2='1.04', EG2='1.01', return_code2='0', energy_flux_error='1.99e-05', photon_flux_error2='5.08e-08', ts2='49.97', photon_index='2.15' WHERE bin_id='1330' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:06:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 401306: <4FGL_J2236.3+2828_daily_bin1330> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin1330 339.096 28.4832 584064001 584323201 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 :                                   802.46 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             342.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   949 sec.
    Turnaround time :                            950 sec.

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

