/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 192 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_bin1423
RA = 339.096, Dec = 28.4832
tmin = 608169601, tmax = 608428801
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='401437', job_status='RUN', time_executed='2021-09-28 16:54:10.950572', time_epoch_executed='1632873250.95' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='1423'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/401437

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/401437/ft1_4FGL_J2236.3+2828_daily_bin1423.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/401437/ft2_4FGL_J2236.3+2828_daily_bin1423.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/401437/ft1_4FGL_J2236.3+2828_daily_bin1423.fits outfile=/scratch/kocevski/401437/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1423.fits ra=339.096 dec=28.4832 rad=12.0 tmin=608169601.0 tmax=608428801.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.70
user 3.44
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/401437/ft1_filtered_4FGL_J2236.3+2828_daily_bin1423.fits evtable="EVENTS" scfile=/scratch/kocevski/401437/ft2_4FGL_J2236.3+2828_daily_bin1423.fits sctable="SC_DATA" expcube=/scratch/kocevski/401437/ltcube_608169601_608428801_4FGL_J2236.3+2828_daily_bin1423.fits outfile=/scratch/kocevski/401437/expmap_608169601_608428801_4FGL_J2236.3+2828_daily_bin1423.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/401437/ltcube_608169601_608428801_4FGL_J2236.3+2828_daily_bin1423.fits
.....................!
real 191.30
user 186.20
sys 4.77

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/401437/ft1_filtered_4FGL_J2236.3+2828_daily_bin1423.fits scfile=/scratch/kocevski/401437/ft2_4FGL_J2236.3+2828_daily_bin1423.fits outfile=/scratch/kocevski/401437/cmap_608169601_608428801_4FGL_J2236.3+2828_daily_bin1423.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/401437/ft1_filtered_4FGL_J2236.3+2828_daily_bin1423.fits scfile=/scratch/kocevski/401437/ft2_4FGL_J2236.3+2828_daily_bin1423.fits outfile=/scratch/kocevski/401437/cmap_HighResolution_608169601_608428801_4FGL_J2236.3+2828_daily_bin1423.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/401437/ft1_filtered_4FGL_J2236.3+2828_daily_bin1423.fits evtable="EVENTS" scfile=/scratch/kocevski/401437/ft2_4FGL_J2236.3+2828_daily_bin1423.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/401437/Model_4FGL_J2236.3+2828_daily_bin1423.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/401437/ft1_filtered_4FGL_J2236.3+2828_daily_bin1423.fits.....................!
real 101.70
user 99.81
sys 1.36

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.7288       1.0000         .10000E-03   10000.    
     2 'norm      '    .64873       1.0000         .10000E-03   10000.    
     3 'Prefactor '    24.524       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.6400       1.0000         .10000E-03   10000.    
     5 'norm      '    7.2402       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .69952E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.1557       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .51147       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.3453       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.998       1.0000         .10000E-03   10000.    
    19 'norm      '    2.7392       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .99824       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .87862       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .96853       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9617.686     FROM MIGRAD    STATUS=CONVERGED    845 CALLS     2746 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.7285        7.2306        .13567E-03    .16206E-03
   2  norm          .64889        .85812        .99684E-04    .15552E-02
   3  Prefactor     24.522        38.583        .80889E-04    .63415E-04
   4  Prefactor     8.6347        13.948        .13637E-03    .14005E-04
   5  norm          7.2388        5.4458        .14907E-03   -.16778E-05
   6  Prefactor     .10001E-03    106.22        .18142E-02** at limit **
   7  Prefactor     .10000E-03    25.491        .40550E-02** at limit **
   8  norm          2.1566        1.2572        .77072E-04    .40299E-03
   9  Prefactor     .10000E-03    34.992        .18142E-02** at limit **
  10  Prefactor     .44197        14.354        .11111        .30548E-03
  11  norm          .10000E-03    .51759        .68516E-03** at limit **
  12  Prefactor     5.3448        9.9913        .17383E-03    .15383E-03
  13  Prefactor     .10000E-03    3.9729        .18142E-02** at limit **
  14  Prefactor     .10000E-03    4.8308        .18142E-02** at limit **
  15  Prefactor     .10000E-03    6.4773        .18142E-02** at limit **
  16  norm          .10000E-03    .72409        .12473E-02** at limit **
  17  Prefactor     .10000E-03    15.335        .18142E-02** at limit **
  18  Prefactor     11.995        20.798        .11565E-03    .34799E-04
  19  norm          2.7387        3.3136        .18359E-03    .31891E-03
  20  Prefactor     .98787        68.741        .54640E-02   -.60976E-04
  21  Normalizat    .87854        .23340        .38534E-03    .27196E-03
  22  Prefactor     .96856        .10456        .16725E-03    .57392E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.72851
  norm       = 0.648892
  Prefactor  = 24.5217
  Prefactor  = 8.63474
  norm       = 7.23875
  Prefactor  = 0.000100006
  Prefactor  = 0.000100001
  norm       = 2.15662
  Prefactor  = 0.0001
  Prefactor  = 0.441966
  norm       = 0.0001
  Prefactor  = 5.34477
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.9947
  norm       = 2.7387
  Prefactor  = 0.987872
  Normalizat = 0.878545
  Prefactor  = 0.968555
 **********
 **   18 **HESSE 
 **********

 FCN=   9617.686     FROM HESSE     STATUS=OK           332 CALLS     3078 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.7285        7.2304        .54269E-05   -1.5117    
   2  norm          .64889        .85790        .39874E-05   -1.5547    
   3  Prefactor     24.522        38.581        .16178E-04   -1.4717    
   4  Prefactor     8.6347        13.944        .54549E-05   -1.5120    
   5  norm          7.2388        5.4451        .59628E-05   -1.5170    
   6  Prefactor     .10001E-03    106.23        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    25.787        .81101E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.1566        1.2569        .30829E-05   -1.5414    
   9  Prefactor     .10000E-03    34.994        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .44197        14.300        .11145       -1.5575    
  11  norm          .10000E-03    .51762        .13703E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.3448        9.9897        .69531E-05   -1.5246    
  13  Prefactor     .10000E-03    3.9729        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.8313        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.4774        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .72484        .24946E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.338        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.995        20.770        .46261E-05   -1.5015    
  19  norm          2.7387        3.2843        .73437E-05   -1.5377    
  20  Prefactor     .98787        67.494        .21856E-03   -1.5509    
  21  Normalizat    .87854        .23296        .15414E-04   -.97218    
  22  Prefactor     .96856        .10461        .33450E-04   -.93785    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46067e-09
Minuit parameter uncertainties:
  1  7.23111
  2  0.857914
  3  38.62
  4  13.9495
  5  5.44551
  6  0.00155945
  7  0.000336072
  8  1.25694
  9  5.34191e-06
  10  5.02864
  11  7.30378e-08
  12  9.9928
  13  9.39063e-06
  14  1.7769e-05
  15  1.79771e-05
  16  1.26642e-05
  17  6.11313e-05
  18  20.7824
  19  3.28448
  20  16.3494
  21  0.233223
  22  0.104636
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  2.157e+00  1.257e+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:  9.686e-01  1.046e-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:  8.785e-01  2.332e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.47
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 6.92e-08 +/- 4.03e-08
Energy Flux (Fixed Index): 2.80e-05 +/- 1.63e-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) = 9617.40914205
delta logL = 0.277163006705

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9617.39824747
delta logL = 0.288057589447

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0136       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6323       1.0000          .0000       5.0000    
     3 'Normalizat'    .82517       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98414       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=   9617.398     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      208 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0133        14.523        .72929E-02    .70624E-03
   2  alpha         2.6326        3.8015        .41225        .56416E-04
   3  Normalizat    .82512        .79790E-01    .89518E-01    .40553E-04
   4  Prefactor     .98414        .31540E-01    .46069E-01   -.29190E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.01331
  alpha      = 2.63257
  Normalizat = 0.825115
  Prefactor  = 0.984144
 **********
 **   18 **HESSE 
 **********

 FCN=   9617.398     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0133        1.2656        .66121E-04   -1.5424    
   2  alpha         2.6326        .67981        .15368E-01    .53054E-01
   3  Normalizat    .82512        .24051        .39649E-03   -.99144    
   4  Prefactor     .98414        .10606        .16607E-03   -.93260    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.87314e-09
Minuit parameter uncertainties:
  1  1.26558
  2  0.688506
  3  0.240822
  4  0.106085
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/401437': 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) = 9617.39824733
delta logL = 0.28805773105

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  2.013e+00  1.266e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  2.633e+00  6.885e-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.841e-01  1.061e-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:  8.251e-01  2.408e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.33
Ra Dec: 339.096 28.483
Photon Index (Free Index): 2.63 +/- 0.69
Photon Flux (Free Index): 1.04e-07 +/- 6.58e-08
Energy Flux (Free Index): 2.66e-05 +/- 1.37e-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/401437/cmap_HighResolution_608169601_608428801_4FGL_J2236.3+2828_daily_bin1423.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.92e-08', energy_flux2='2.66e-05', photon_flux_error='4.03e-08', dlogl='2.88e-01', energy_flux='2.80e-05', photon_flux2='1.04e-07', job_status='DONE', time_completed='2021-09-28 17:06:21.304878', photon_index_error2='0.69', photon_index2='2.63', ts='5.47', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='1.37e-05', EG='0.88', time_epoch_completed='1632873981.3', return_code='0', job_id='401437', GAL2='0.98', EG2='0.83', return_code2='0', energy_flux_error='1.63e-05', photon_flux_error2='6.58e-08', ts2='6.33', photon_index='2.15' WHERE bin_id='1423' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:06:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 401437: <4FGL_J2236.3+2828_daily_bin1423> in cluster <slac> Done

Job <4FGL_J2236.3+2828_daily_bin1423> 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) <bullet0119>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:50:45 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:45 2021
Terminated at Tue Sep 28 17:06:21 2021
Results reported at Tue Sep 28 17:06:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin1423 339.096 28.4832 608169601 608428801 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 :                                   723.15 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             250.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            937 sec.

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

