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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin1410
RA = 339.096, Dec = 28.4832
tmin = 604800001, tmax = 605059201
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='401418', job_status='RUN', time_executed='2021-09-28 16:52:08.912305', time_epoch_executed='1632873128.91' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='1410'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/401418

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/401418/ft1_4FGL_J2236.3+2828_daily_bin1410.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/401418/ft2_4FGL_J2236.3+2828_daily_bin1410.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/401418/ft1_4FGL_J2236.3+2828_daily_bin1410.fits outfile=/scratch/kocevski/401418/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1410.fits ra=339.096 dec=28.4832 rad=12.0 tmin=604800001.0 tmax=605059201.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.08
user 4.84
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/401418/ft1_filtered_4FGL_J2236.3+2828_daily_bin1410.fits evtable="EVENTS" scfile=/scratch/kocevski/401418/ft2_4FGL_J2236.3+2828_daily_bin1410.fits sctable="SC_DATA" expcube=/scratch/kocevski/401418/ltcube_604800001_605059201_4FGL_J2236.3+2828_daily_bin1410.fits outfile=/scratch/kocevski/401418/expmap_604800001_605059201_4FGL_J2236.3+2828_daily_bin1410.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/401418/ltcube_604800001_605059201_4FGL_J2236.3+2828_daily_bin1410.fits
.....................!
real 191.91
user 187.50
sys 4.09

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/401418/ft1_filtered_4FGL_J2236.3+2828_daily_bin1410.fits scfile=/scratch/kocevski/401418/ft2_4FGL_J2236.3+2828_daily_bin1410.fits outfile=/scratch/kocevski/401418/cmap_604800001_605059201_4FGL_J2236.3+2828_daily_bin1410.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/401418/ft1_filtered_4FGL_J2236.3+2828_daily_bin1410.fits scfile=/scratch/kocevski/401418/ft2_4FGL_J2236.3+2828_daily_bin1410.fits outfile=/scratch/kocevski/401418/cmap_HighResolution_604800001_605059201_4FGL_J2236.3+2828_daily_bin1410.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.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.946       1.0000         .10000E-03   10000.    
     2 'norm      '    .39867       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11092E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.2156       1.0000         .10000E-03   10000.    
     5 'norm      '    .92494E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13324E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.9829       1.0000         .10000E-03   10000.    
     8 'norm      '    3.1977       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.7611       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .70019E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.629       1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.686       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.826       1.0000         .10000E-03   10000.    
    16 'norm      '    2.3833       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .85239E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10809E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .31736E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10798E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1094       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .92545       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=   8109.086     FROM MIGRAD    STATUS=CONVERGED    502 CALLS     1731 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.913        7.4244       -.14344E-05    .16601E-04
   2  norm          .39910        .69994       -.11782E-06   -.19803E-02
   3  Prefactor     .10000E-03    14.257       -.48649E-05** at limit **
   4  Prefactor     .90073        14.140        .44624E-08   -.30727E-03
   5  norm          .10000E-03    3.9746        .10031E-07** at limit **
   6  Prefactor     .10000E-03    67.457        .12520E-04** at limit **
   7  Prefactor     3.0178        10.575        .11395E-05   -.17848E-03
   8  norm          3.1981        1.2546        .47145E-09   -.19830E-03
   9  Prefactor     .10000E-03    16.728        .22757E-06** at limit **
  10  Prefactor     .10000E-03    5.1656        .42719E-08** at limit **
  11  norm          1.7615        1.4449        .25745E-07    .31858E-03
  12  Prefactor     .10083E-03    5.5995       -.12759E-05** at limit **
  13  Prefactor     13.449        13.084        .72102E-05    .12840E-04
  14  Prefactor     29.063        14.320        .36648E-05    .68209E-04
  15  Prefactor     14.824        23.670       -.10483E-06   -.10850E-04
  16  norm          2.3799        1.3983       -.48705E-08   -.23054E-03
  17  Prefactor     .10000E-03    11.255        .18453E-06** at limit **
  18  Prefactor     .10000E-03    13.321        .48699E-05** at limit **
  19  norm          .10000E-03    1.8022        .15615E-07** at limit **
  20  Prefactor     .10000E-03    3.3330        .73840E-08** at limit **
  21  Normalizat    1.1097        .22359       -.12457E-05    .51146E-04
  22  Prefactor     .92508        .98877E-01    .23474E-07    .23600E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.9132
  norm       = 0.399098
  Prefactor  = 0.0001
  Prefactor  = 0.900733
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.01778
  norm       = 3.19815
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.76149
  Prefactor  = 0.000100827
  Prefactor  = 13.4491
  Prefactor  = 29.0633
  Prefactor  = 14.8235
  norm       = 2.37986
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.10965
  Prefactor  = 0.925075
 **********
 **   18 **HESSE 
 **********

 FCN=   8109.086     FROM HESSE     STATUS=OK           360 CALLS     2091 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.913        7.3960        .12109E-03   -1.5047    
   2  norm          .39910        .64951        .95278E-03   -1.5582    
   3  Prefactor     .10000E-03    14.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .90073        82.913        .62922E-02   -1.5518    
   5  norm          .10000E-03    4.0869        .17527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    67.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.0178        10.552        .23507E-03   -1.5361    
   8  norm          3.1981        1.2546        .60763E-04   -1.5350    
   9  Prefactor     .10000E-03    16.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.1673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.7615        1.4422        .95006E-04   -1.5443    
  12  Prefactor     .10083E-03    7.3789        .72729E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.449        13.025        .10850E-03   -1.4974    
  14  Prefactor     29.063        14.264        .74802E-04   -1.4629    
  15  Prefactor     14.824        23.670        .10772E-03   -1.4938    
  16  norm          2.3799        1.3943        .78445E-04   -1.5399    
  17  Prefactor     .10000E-03    11.300        .20864E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    8.3054        .23572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.3353        .16056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1097        .26201        .35350E-03   -.89443    
  22  Prefactor     .92508        .11673        .17640E-03   -.95270    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.92755e-09
Minuit parameter uncertainties:
  1  7.39663
  2  0.64952
  3  2.99508e-06
  4  17.3076
  5  2.07554e-06
  6  1.22991e-05
  7  10.5583
  8  1.25465
  9  3.06088e-06
  10  2.60336e-07
  11  1.44221
  12  0.00494042
  13  13.0281
  14  14.2653
  15  23.6848
  16  1.39434
  17  1.29398e-05
  18  2.40516e-06
  19  1.03309e-05
  20  4.25803e-07
  21  0.262321
  22  0.116759
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  3.198e+00  1.255e+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.251e-01  1.168e-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.110e+00  2.623e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.21
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 1.03e-07 +/- 4.02e-08
Energy Flux (Fixed Index): 4.16e-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) = 8108.99176023
delta logL = 0.0941841630938

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8108.98817581
delta logL = 0.0977685870275

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1143       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3347       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0864       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93164       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=   8108.988     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      230 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1143        20.014        .57441E-02   -.34958E-03
   2  alpha         2.3347        3.5466        .31617        .20357E-04
   3  Normalizat    1.0864        .18523        .80583E-01   -.18291E-03
   4  Prefactor     .93164        .61141E-01    .45407E-01   -.58377E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.11433
  alpha      = 2.33466
  Normalizat = 1.08636
  Prefactor  = 0.93164
 **********
 **   18 **HESSE 
 **********

 FCN=   8108.988     FROM HESSE     STATUS=OK            31 CALLS      261 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1143        1.2400        .57512E-04   -1.5355    
   2  alpha         2.3347        .43348        .12388E-01   -.66182E-01
   3  Normalizat    1.0864        .25584        .35673E-03   -.90191    
   4  Prefactor     .93164        .11610        .17583E-03   -.95044    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55178e-10
Minuit parameter uncertainties:
  1  1.24002
  2  0.43569
  3  0.25613
  4  0.11613
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/401418': 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) = 8108.98817581
delta logL = 0.0977685873768

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  3.114e+00  1.240e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  2.335e+00  4.357e-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.316e-01  1.161e-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.086e+00  2.561e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.55
Ra Dec: 339.096 28.483
Photon Index (Free Index): 2.33 +/- 0.44
Photon Flux (Free Index): 1.19e-07 +/- 5.66e-08
Energy Flux (Free Index): 3.89e-05 +/- 1.57e-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/401418/cmap_HighResolution_604800001_605059201_4FGL_J2236.3+2828_daily_bin1410.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.03e-07', energy_flux2='3.89e-05', photon_flux_error='4.02e-08', dlogl='9.78e-02', energy_flux='4.16e-05', photon_flux2='1.19e-07', job_status='DONE', time_completed='2021-09-28 17:02:17.284730', photon_index_error2='0.44', photon_index2='2.33', ts='17.21', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='1.57e-05', EG='1.11', time_epoch_completed='1632873737.28', return_code='0', job_id='401418', GAL2='0.93', EG2='1.09', return_code2='0', energy_flux_error='1.63e-05', photon_flux_error2='5.66e-08', ts2='17.55', photon_index='2.15' WHERE bin_id='1410' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:02:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 401418: <4FGL_J2236.3+2828_daily_bin1410> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin1410 339.096 28.4832 604800001 605059201 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 :                                   593.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             333.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   693 sec.
    Turnaround time :                            695 sec.

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

