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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin1589
RA = 339.096, Dec = 28.4832
tmin = 651196801, tmax = 651456001
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='402870', job_status='RUN', time_executed='2021-09-28 16:57:35.512935', time_epoch_executed='1632873455.51' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='1589'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/402870

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/402870/ft1_4FGL_J2236.3+2828_daily_bin1589.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/402870/ft2_4FGL_J2236.3+2828_daily_bin1589.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/402870/ft1_4FGL_J2236.3+2828_daily_bin1589.fits outfile=/scratch/kocevski/402870/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1589.fits ra=339.096 dec=28.4832 rad=12.0 tmin=651196801.0 tmax=651456001.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 2.86
user 2.61
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/402870/ft1_filtered_4FGL_J2236.3+2828_daily_bin1589.fits evtable="EVENTS" scfile=/scratch/kocevski/402870/ft2_4FGL_J2236.3+2828_daily_bin1589.fits sctable="SC_DATA" expcube=/scratch/kocevski/402870/ltcube_651196801_651456001_4FGL_J2236.3+2828_daily_bin1589.fits outfile=/scratch/kocevski/402870/expmap_651196801_651456001_4FGL_J2236.3+2828_daily_bin1589.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/402870/ltcube_651196801_651456001_4FGL_J2236.3+2828_daily_bin1589.fits
.....................!
real 152.05
user 147.74
sys 4.03

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/402870/ft1_filtered_4FGL_J2236.3+2828_daily_bin1589.fits scfile=/scratch/kocevski/402870/ft2_4FGL_J2236.3+2828_daily_bin1589.fits outfile=/scratch/kocevski/402870/cmap_651196801_651456001_4FGL_J2236.3+2828_daily_bin1589.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.46
user 0.30
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/402870/ft1_filtered_4FGL_J2236.3+2828_daily_bin1589.fits scfile=/scratch/kocevski/402870/ft2_4FGL_J2236.3+2828_daily_bin1589.fits outfile=/scratch/kocevski/402870/cmap_HighResolution_651196801_651456001_4FGL_J2236.3+2828_daily_bin1589.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.46
user 0.30
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .11683       1.0000         .10000E-03   10000.    
     3 'Prefactor '    167.41       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .55290E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    64.644       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.9763       1.0000         .10000E-03   10000.    
     8 'norm      '    1.3670       1.0000         .10000E-03   10000.    
     9 'Prefactor '    66.778       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .70576       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.675       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-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      '    2.6230       1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.746       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.251       1.0000         .10000E-03   10000.    
    19 'norm      '    3.5999       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.1208       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .55488       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1104       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=   8093.824     FROM MIGRAD    STATUS=CONVERGED    470 CALLS     2408 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.5065        .41193E-07** at limit **
   2  norm          .11709        .41342        .26659E-06   -.84494E-03
   3  Prefactor     167.39        68.862       -.11419E-05   -.17445E-03
   4  Prefactor     .10004E-03    7.9484       -.69760E-06** at limit **
   5  norm          .10000E-03    1.5464       -.49049E-07** at limit **
   6  Prefactor     64.562        90.052       -.12073E-04   -.36001E-03
   7  Prefactor     3.9726        8.6823        .79475E-05   -.53864E-03
   8  norm          1.3672        .99191        .90954E-07    .85606E-04
   9  Prefactor     66.778        62.913        .30166E-06    .13912E-04
  10  Prefactor     .10000E-03    14.402        .14804E-06** at limit **
  11  norm          .70558        1.2720        .10974E-06    .19841E-03
  12  Prefactor     10.676        9.1841       -.98316E-07   -.30192E-04
  13  Prefactor     .10000E-03    5.8988        .43896E-07** at limit **
  14  Prefactor     .10000E-03    2.5956        .41309E-07** at limit **
  15  Prefactor     .10000E-03    12.237        .81930E-07** at limit **
  16  norm          2.6231        1.4231        .45830E-07   -.15232E-04
  17  Prefactor     21.748        19.581        .20802E-06    .19169E-04
  18  Prefactor     12.251        16.172       -.21752E-07   -.11562E-04
  19  norm          3.5999        4.0614       -.15565E-06   -.17183E-03
  20  Prefactor     7.1219        17.029        .26611E-06   -.20085E-04
  21  Normalizat    .55479        .24365       -.12682E-05   -.34810E-04
  22  Prefactor     1.1104        .10920        .30675E-06   -.10578E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.117085
  Prefactor  = 167.394
  Prefactor  = 0.000100041
  norm       = 0.0001
  Prefactor  = 64.5622
  Prefactor  = 3.97256
  norm       = 1.36724
  Prefactor  = 66.778
  Prefactor  = 0.0001
  norm       = 0.705579
  Prefactor  = 10.6757
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.6231
  Prefactor  = 21.7477
  Prefactor  = 12.2514
  norm       = 3.59991
  Prefactor  = 7.12194
  Normalizat = 0.554792
  Prefactor  = 1.11044
 **********
 **   18 **HESSE 
 **********

 FCN=   8093.824     FROM HESSE     STATUS=OK           352 CALLS     2760 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.5196        .16451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .11709        .56259        .10414E-02   -1.5640    
   3  Prefactor     167.39        69.046        .15589E-03   -1.3113    
   4  Prefactor     .10004E-03    54.101        .48560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.5504        .10926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     64.562        96.279        .24957E-03   -1.4099    
   7  Prefactor     3.9726        8.8887        .10113E-02   -1.5309    
   8  norm          1.3672        .97876        .72904E-04   -1.5474    
   9  Prefactor     66.778        62.959        .49115E-04   -1.4072    
  10  Prefactor     .10000E-03    14.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .70558        .96031        .13132E-02   -1.5540    
  12  Prefactor     10.676        9.1018        .12263E-03   -1.5054    
  13  Prefactor     .10000E-03    5.9036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.5981        .14155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.6231        1.4170        .75274E-04   -1.5384    
  17  Prefactor     21.748        19.559        .85893E-04   -1.4775    
  18  Prefactor     12.251        16.157        .11445E-03   -1.5008    
  19  norm          3.5999        4.0394        .17803E-03   -1.5328    
  20  Prefactor     7.1219        16.901        .15032E-03   -1.5174    
  21  Normalizat    .55479        .25821        .46144E-03   -1.0994    
  22  Prefactor     1.1104        .11814        .16052E-03   -.89134    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.98952e-08
Minuit parameter uncertainties:
  1  1.8891e-06
  2  0.513096
  3  69.0797
  4  0.0029642
  5  5.25402e-06
  6  96.5129
  7  8.8917
  8  0.978774
  9  63.0224
  10  1.16371e-06
  11  0.960328
  12  9.10293
  13  6.43624e-07
  14  5.66423e-07
  15  2.20093e-06
  16  1.41703
  17  19.5649
  18  16.1631
  19  4.03974
  20  16.9124
  21  0.258774
  22  0.118167
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  1.367e+00  9.788e-01  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  2.146e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
288         beta:  1.046e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
289           Eb:  5.754e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  1.110e+00  1.182e-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:  5.548e-01  2.588e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.74
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 4.39e-08 +/- 3.14e-08
Energy Flux (Fixed Index): 1.78e-05 +/- 1.27e-05

TS (Fixed Index): 3.74
Ra Dec: 339.096 28.483
Photon Flux Upper Limit: 1.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.60e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/402870/likelihoodResults_651196801_651456001_4FGL_J2236.3+2828_daily_bin1589.txt

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) = 8093.64494791
delta logL = 0.179093786194

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8093.63776524
delta logL = 0.186276455011

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2137       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5851       1.0000          .0000       5.0000    
     3 'Normalizat'    .52698       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1191       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=   8093.638     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      233 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2135        14.828        .10257E-01    .60017E-03
   2  alpha         2.5853        3.6080        .41182        .38766E-04
   3  Normalizat    .52696        .73620E-01    .10672        .49294E-04
   4  Prefactor     1.1192        .32792E-01    .36901E-01   -.34952E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.21351
  alpha      = 2.5853
  Normalizat = 0.526963
  Prefactor  = 1.11916
 **********
 **   18 **HESSE 
 **********

 FCN=   8093.638     FROM HESSE     STATUS=OK            33 CALLS      266 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2135        1.0145        .63347E-04   -1.5488    
   2  alpha         2.5853        .79102        .17695E-01    .34126E-01
   3  Normalizat    .52696        .24587        .47300E-03   -1.1118    
   4  Prefactor     1.1192        .11696        .15998E-03   -.88856    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53859e-09
Minuit parameter uncertainties:
  1  1.01455
  2  0.804871
  3  0.24638
  4  0.116989
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/402870': 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) = 8093.63776512
delta logL = 0.186276569637

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  1.214e+00  1.015e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  2.585e+00  8.049e-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.119e+00  1.170e-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:  5.270e-01  2.464e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.19
Ra Dec: 339.096 28.483
Photon Index (Free Index): 2.59 +/- 0.80
Photon Flux (Free Index): 5.97e-08 +/- 4.47e-08
Energy Flux (Free Index): 1.58e-05 +/- 1.11e-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/402870/cmap_HighResolution_651196801_651456001_4FGL_J2236.3+2828_daily_bin1589.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.60e-05', comment='SUCCESS', photon_flux='4.39e-08', energy_flux2='1.58e-05', photon_flux_error='3.14e-08', dlogl='1.86e-01', energy_flux='1.78e-05', photon_flux2='5.97e-08', job_status='DONE', time_completed='2021-09-28 17:07:06.804010', photon_index_error2='0.80', photon_index2='2.59', ts='3.74', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='1.13e-07', energy_flux_error2='1.11e-05', EG='0.55', time_epoch_completed='1632874026.8', return_code='0', job_id='402870', GAL2='1.12', EG2='0.53', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='4.47e-08', ts2='4.19', photon_index='2.15' WHERE bin_id='1589' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:07:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 402870: <4FGL_J2236.3+2828_daily_bin1589> in cluster <slac> Done

Job <4FGL_J2236.3+2828_daily_bin1589> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 16:55:22 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:55:24 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:55:24 2021
Terminated at Tue Sep 28 17:07:07 2021
Results reported at Tue Sep 28 17:07:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin1589 339.096 28.4832 651196801 651456001 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 :                                   568.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             273.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   703 sec.
    Turnaround time :                            705 sec.

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

