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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin960
RA = 339.096, Dec = 28.4832
tmin = 488160001, tmax = 488419201
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='399725', job_status='RUN', time_executed='2021-09-28 16:45:51.170212', time_epoch_executed='1632872751.17' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='960'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/399725

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/399725/ft1_4FGL_J2236.3+2828_daily_bin960.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/399725/ft2_4FGL_J2236.3+2828_daily_bin960.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/399725/ft1_4FGL_J2236.3+2828_daily_bin960.fits outfile=/scratch/kocevski/399725/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin960.fits ra=339.096 dec=28.4832 rad=12.0 tmin=488160001.0 tmax=488419201.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 5.30
user 5.05
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/399725/ft1_filtered_4FGL_J2236.3+2828_daily_bin960.fits evtable="EVENTS" scfile=/scratch/kocevski/399725/ft2_4FGL_J2236.3+2828_daily_bin960.fits sctable="SC_DATA" expcube=/scratch/kocevski/399725/ltcube_488160001_488419201_4FGL_J2236.3+2828_daily_bin960.fits outfile=/scratch/kocevski/399725/expmap_488160001_488419201_4FGL_J2236.3+2828_daily_bin960.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/399725/ltcube_488160001_488419201_4FGL_J2236.3+2828_daily_bin960.fits
.....................!
real 190.40
user 185.17
sys 4.84

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/399725/ft1_filtered_4FGL_J2236.3+2828_daily_bin960.fits scfile=/scratch/kocevski/399725/ft2_4FGL_J2236.3+2828_daily_bin960.fits outfile=/scratch/kocevski/399725/cmap_488160001_488419201_4FGL_J2236.3+2828_daily_bin960.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/399725/ft1_filtered_4FGL_J2236.3+2828_daily_bin960.fits scfile=/scratch/kocevski/399725/ft2_4FGL_J2236.3+2828_daily_bin960.fits outfile=/scratch/kocevski/399725/cmap_HighResolution_488160001_488419201_4FGL_J2236.3+2828_daily_bin960.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/399725/ft1_filtered_4FGL_J2236.3+2828_daily_bin960.fits evtable="EVENTS" scfile=/scratch/kocevski/399725/ft2_4FGL_J2236.3+2828_daily_bin960.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/399725/Model_4FGL_J2236.3+2828_daily_bin960.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/399725/ft1_filtered_4FGL_J2236.3+2828_daily_bin960.fits.....................!
real 93.43
user 91.91
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.1307       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.864       1.0000         .10000E-03   10000.    
    11 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    130.86       1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.000       1.0000         .10000E-03   10000.    
    14 'Prefactor '    35.440       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10111E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10214E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.6388       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    2.4370       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .58866       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=   7395.882     FROM MIGRAD    STATUS=CONVERGED    474 CALLS     2064 TOTAL
                     EDM=   .32E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.7497        .10981E-06** at limit **
   2  norm          .10000E-03    .58687        .43076E-08** at limit **
   3  Prefactor     .10000E-03    52.168       -.14155E-04** at limit **
   4  Prefactor     .10000E-03    5.7516        .11853E-06** at limit **
   5  norm          .10000E-03    1.9319       -.17379E-07** at limit **
   6  Prefactor     .10000E-03    45.429        .87176E-05** at limit **
   7  Prefactor     .10000E-03    9.3610        .13150E-06** at limit **
   8  norm          3.1308        1.6302        .22927E-07   -.11723E-03
   9  Prefactor     .10000E-03    36.228        .10356E-04** at limit **
  10  Prefactor     15.863        23.882       -.81355E-06   -.72071E-05
  11  norm          .10000E-03    1.6623       -.73641E-07** at limit **
  12  Prefactor     130.86        42.960        .33125E-05    .89096E-05
  13  Prefactor     24.000        23.103       -.28582E-06   -.66935E-05
  14  Prefactor     35.438        22.163       -.12986E-05    .16852E-04
  15  Prefactor     .10000E-03    20.308        .27195E-05** at limit **
  16  norm          .10000E-03    .93174        .37258E-07** at limit **
  17  Prefactor     .10000E-03    25.437       -.11912E-04** at limit **
  18  Prefactor     .10000E-03    20.301        .25610E-05** at limit **
  19  norm          5.6380        5.4108       -.84543E-06   -.75608E-04
  20  Prefactor     .10000E-03    11.981       -.32442E-06** at limit **
  21  Normalizat    2.4370        .31747       -.85712E-06    .52217E-04
  22  Prefactor     .58864        .12516        .31840E-06   -.50792E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.1308
  Prefactor  = 0.0001
  Prefactor  = 15.863
  norm       = 0.0001
  Prefactor  = 130.865
  Prefactor  = 23.9998
  Prefactor  = 35.4375
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.63799
  Prefactor  = 0.0001
  Normalizat = 2.43701
  Prefactor  = 0.588641
 **********
 **   18 **HESSE 
 **********

 FCN=   7395.882     FROM HESSE     STATUS=OK           336 CALLS     2400 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.7586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .61405        .12846E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    52.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.7543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.9328        .11674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    45.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.3874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.1308        1.6295        .75100E-04   -1.5354    
   9  Prefactor     .10000E-03    36.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.863        23.895        .10056E-03   -1.4911    
  11  norm          .10000E-03    1.6710        .10819E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     130.86        43.257        .35198E-04   -1.3415    
  13  Prefactor     24.000        23.114        .81765E-04   -1.4728    
  14  Prefactor     35.438        22.163        .67317E-04   -1.4517    
  15  Prefactor     .10000E-03    20.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.1097        .16071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    25.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    20.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.6380        5.4144        .16917E-03   -1.5233    
  20  Prefactor     .10000E-03    12.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    2.4370        .37610        .36502E-03   -.53997    
  22  Prefactor     .58864        .14764        .26956E-03   -1.0807    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.47748e-11
Minuit parameter uncertainties:
  1  5.10595e-07
  2  3.73144e-07
  3  5.81394e-05
  4  3.21929e-07
  5  4.43541e-07
  6  5.33072e-07
  7  1.10623e-05
  8  1.62954
  9  6.9463e-08
  10  23.909
  11  1.35709e-05
  12  43.2671
  13  23.1223
  14  22.1677
  15  1.24534e-06
  16  1.12642e-05
  17  2.4762e-05
  18  6.00055e-06
  19  5.41491
  20  1.74054e-05
  21  0.376584
  22  0.147739
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  3.131e+00  1.630e+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:  5.886e-01  1.477e-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:  2.437e+00  3.766e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.92
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 1.00e-07 +/- 5.23e-08
Energy Flux (Fixed Index): 4.07e-05 +/- 2.12e-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) = 7395.73901399
delta logL = 0.142649531257

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7395.73599788
delta logL = 0.14566563621

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2014       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9106       1.0000          .0000       5.0000    
     3 'Normalizat'    2.4548       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58361       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=   7395.736     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      204 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2012        1.9514        .56612E-02    .75096E-04
   2  alpha         1.9107        .45804        .32908       -.13472E-04
   3  Normalizat    2.4546        .30728        .82310E-01   -.24454E-05
   4  Prefactor     .58373        .12447        .61157E-01    .25960E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.20124
  alpha      = 1.91073
  Normalizat = 2.4546
  Prefactor  = 0.583731
 **********
 **   18 **HESSE 
 **********

 FCN=   7395.736     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .22E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2012        1.6400        .76318E-04   -1.5350    
   2  alpha         1.9107        .42144        .13295E-01   -.23795    
   3  Normalizat    2.4546        .36103        .36410E-03   -.53587    
   4  Prefactor     .58373        .14586        .27057E-03   -1.0828    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18872e-13
Minuit parameter uncertainties:
  1  1.64003
  2  0.423586
  3  0.36146
  4  0.145951
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/399725': 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) = 7395.7359975
delta logL = 0.145666018055

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  3.201e+00  1.640e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  1.911e+00  4.236e-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:  5.837e-01  1.460e-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:  2.455e+00  3.615e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.19
Ra Dec: 339.096 28.483
Photon Index (Free Index): 1.91 +/- 0.42
Photon Flux (Free Index): 8.57e-08 +/- 5.14e-08
Energy Flux (Free Index): 4.88e-05 +/- 3.13e-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/399725/cmap_HighResolution_488160001_488419201_4FGL_J2236.3+2828_daily_bin960.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.00e-07', energy_flux2='4.88e-05', photon_flux_error='5.23e-08', dlogl='1.46e-01', energy_flux='4.07e-05', photon_flux2='8.57e-08', job_status='DONE', time_completed='2021-09-28 16:56:11.604060', photon_index_error2='0.42', photon_index2='1.91', ts='8.92', fit_tolerance='1e-08', GAL='0.59', photon_index_error='0.00', energy_flux_error2='3.13e-05', EG='2.44', time_epoch_completed='1632873371.6', return_code='0', job_id='399725', GAL2='0.58', EG2='2.45', return_code2='0', energy_flux_error='2.12e-05', photon_flux_error2='5.14e-08', ts2='9.19', photon_index='2.15' WHERE bin_id='960' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:56:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 399725: <4FGL_J2236.3+2828_daily_bin960> in cluster <slac> Done

Job <4FGL_J2236.3+2828_daily_bin960> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 16:45:35 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:45: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:45:37 2021
Terminated at Tue Sep 28 16:56:11 2021
Results reported at Tue Sep 28 16:56:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin960 339.096 28.4832 488160001 488419201 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 :                                   618.53 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             319.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   634 sec.
    Turnaround time :                            636 sec.

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

