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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin1604
RA = 339.096, Dec = 28.4832
tmin = 655084801, tmax = 655344001
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='10683', job_status='RUN', time_executed='2021-10-08 00:28:10.877346', time_epoch_executed='1633678090.88' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='1604'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/10683

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/10683/ft1_4FGL_J2236.3+2828_daily_bin1604.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/10683/ft2_4FGL_J2236.3+2828_daily_bin1604.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/10683/ft1_4FGL_J2236.3+2828_daily_bin1604.fits outfile=/scratch/kocevski/10683/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1604.fits ra=339.096 dec=28.4832 rad=12.0 tmin=655084801.0 tmax=655344001.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.92
user 2.68
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/10683/ft1_filtered_4FGL_J2236.3+2828_daily_bin1604.fits" evtable="EVENTS" scfile=/scratch/kocevski/10683/ft2_4FGL_J2236.3+2828_daily_bin1604.fits sctable="SC_DATA" outfile=/scratch/kocevski/10683/ltcube_655084801_655344001_4FGL_J2236.3+2828_daily_bin1604.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/10683/ft2_4FGL_J2236.3+2828_daily_bin1604.fits
.....................!
real 14.34
user 13.97
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/10683/ft1_filtered_4FGL_J2236.3+2828_daily_bin1604.fits evtable="EVENTS" scfile=/scratch/kocevski/10683/ft2_4FGL_J2236.3+2828_daily_bin1604.fits sctable="SC_DATA" expcube=/scratch/kocevski/10683/ltcube_655084801_655344001_4FGL_J2236.3+2828_daily_bin1604.fits outfile=/scratch/kocevski/10683/expmap_655084801_655344001_4FGL_J2236.3+2828_daily_bin1604.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/10683/ltcube_655084801_655344001_4FGL_J2236.3+2828_daily_bin1604.fits
.....................!
real 191.63
user 186.27
sys 4.71

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/10683/ft1_filtered_4FGL_J2236.3+2828_daily_bin1604.fits scfile=/scratch/kocevski/10683/ft2_4FGL_J2236.3+2828_daily_bin1604.fits outfile=/scratch/kocevski/10683/cmap_655084801_655344001_4FGL_J2236.3+2828_daily_bin1604.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/10683/ft1_filtered_4FGL_J2236.3+2828_daily_bin1604.fits scfile=/scratch/kocevski/10683/ft2_4FGL_J2236.3+2828_daily_bin1604.fits outfile=/scratch/kocevski/10683/cmap_HighResolution_655084801_655344001_4FGL_J2236.3+2828_daily_bin1604.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.55
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.8048       1.0000         .10000E-03   10000.    
     2 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    55.284       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11113E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    12.025       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .18312E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .77108E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    .10159E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .17866E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .81560E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10395E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    58.007       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .33765E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12549E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .44845E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    .95833       1.0000         .10000E-03   10000.    
    17 'Prefactor '    134.84       1.0000         .10000E-03   10000.    
    18 'Prefactor '    217.26       1.0000         .10000E-03   10000.    
    19 'norm      '    .43294E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    41.483       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .75143       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0143       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3301.944     FROM MIGRAD    STATUS=CONVERGED    236 CALLS     1842 TOTAL
                     EDM=   .84E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7718        7.2589        .37865E-06   -.73191E-05
   2  norm          .10000E-03    .47939        .44454E-07** at limit **
   3  Prefactor     58.168        78.315       -.67818E-06    .81303E-05
   4  Prefactor     .10000E-03    19.179        .10617E-05** at limit **
   5  norm          12.024        10.467        .52164E-06   -.11998E-04
   6  Prefactor     .10000E-03    90.223       -.26919E-05** at limit **
   7  Prefactor     .10000E-03    40.635       -.21919E-06** at limit **
   8  norm          .10000E-03    1.8680        .46084E-06** at limit **
   9  Prefactor     .10000E-03    92.052        .48281E-06** at limit **
  10  Prefactor     .10000E-03    44.028       -.11615E-05** at limit **
  11  norm          .10000E-03    1.4270       -.12080E-06** at limit **
  12  Prefactor     57.121        35.288       -.36141E-06    .48242E-05
  13  Prefactor     .10000E-03    70.978        .22347E-05** at limit **
  14  Prefactor     .10000E-03    18.829       -.87798E-06** at limit **
  15  Prefactor     .10000E-03    32.090        .17856E-05** at limit **
  16  norm          .96847        5.2053        .16360E-05   -.14257E-04
  17  Prefactor     169.28        159.97        .60872E-05    .23974E-05
  18  Prefactor     111.61        179.11       -.39301E-05   -.31876E-05
  19  norm          .10000E-03    29.129       -.13399E-04** at limit **
  20  Prefactor     54.906        114.38        .83058E-05   -.68222E-05
  21  Normalizat    .74362        .44772        .17017E-05   -.21019E-05
  22  Prefactor     1.0195        .18638       -.99825E-06   -.97909E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.7718
  norm       = 0.0001
  Prefactor  = 58.1682
  Prefactor  = 0.0001
  norm       = 12.0241
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 57.1212
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.968469
  Prefactor  = 169.284
  Prefactor  = 111.612
  norm       = 0.0001
  Prefactor  = 54.9061
  Normalizat = 0.743616
  Prefactor  = 1.01948
 **********
 **   18 **HESSE 
 **********

 FCN=   3301.944     FROM HESSE     STATUS=OK           386 CALLS     2228 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7718        7.2462        .45884E-02   -1.5271    
   2  norm          .10000E-03    .46459        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     58.168        77.267        .13487E-02   -1.4181    
   4  Prefactor     .10000E-03    19.528        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          12.024        10.458        .28879E-02   -1.5014    
   6  Prefactor     .10000E-03    90.341        .91143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    40.854        .92699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.7939        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    92.422        .10164E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    44.292        .10445E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.4281        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     57.121        35.331        .13169E-02   -1.4195    
  13  Prefactor     .10000E-03    70.362        .98483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    18.514        .90857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    32.127        .96743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .96847        5.2882        .13018E-01   -1.5511    
  17  Prefactor     169.28        158.21        .86704E-03   -1.3098    
  18  Prefactor     111.61        179.49        .68594E-03   -1.3591    
  19  norm          .10000E-03    28.906        .10613E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     54.906        115.69        .15560E-02   -1.4225    
  21  Normalizat    .74362        .39194        .10294       -1.0220    
  22  Prefactor     1.0195        .16075        .42762E-01   -.92083    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.06607e-09
Minuit parameter uncertainties:
  1  7.24754
  2  1.62678e-07
  3  77.4004
  4  2.37948e-06
  5  10.4597
  6  0.000100559
  7  2.06887e-05
  8  1.61274e-06
  9  1.9017e-05
  10  1.41041e-05
  11  2.98986e-07
  12  35.344
  13  6.68143e-05
  14  4.30947e-05
  15  1.97162e-05
  16  4.52653
  17  158.61
  18  180.371
  19  0.000182234
  20  116.172
  21  0.393438
  22  0.160821
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  1.000e-04  1.613e-06  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.019e+00  1.608e-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:  7.436e-01  3.934e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/10683/likelihoodResults_655084801_655344001_4FGL_J2236.3+2828_daily_bin1604.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) = 3301.54787337
delta logL = 0.395999290881

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3301.54742182
delta logL = 0.39645084117

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .30131       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.1035       1.0000          .0000       5.0000    
     3 'Normalizat'    .60366       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0558       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=   3301.547     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      285 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .30045        10.661        .83587E-02    .83353E-03
   2  alpha         4.1056        2.6928        .50000        .20176E-04
   3  Normalizat    .60408        .10355        .11355        .15704E-04
   4  Prefactor     1.0556        .42700E-01    .39582E-01   -.29048E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.30045
  alpha      = 4.10564
  Normalizat = 0.604081
  Prefactor  = 1.0556
 **********
 **   18 **HESSE 
 **********

 FCN=   3301.547     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      320 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .30045        23.071        .38669E-03   -1.5598    
   2  alpha         4.1056        2.7212        .25770E-01    .69744    
   3  Normalizat    .60408        .48965        .50350E-03   -1.0781    
   4  Prefactor     1.0556        .18369        .16146E-03   -.90898    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.36563e-08
Minuit parameter uncertainties:
  1  5.2668
  2  11.5368
  3  0.493228
  4  0.183798
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/10683': 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): 102
logL (Free Index) = 3301.5474205
delta logL = 0.396452167078

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  3.004e-01  5.267e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  4.106e+00  1.154e+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.056e+00  1.838e-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:  6.041e-01  4.932e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 339.096 28.483

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/10683/cmap_HighResolution_655084801_655344001_4FGL_J2236.3+2828_daily_bin1604.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.59e-05', job_status='DONE', photon_flux_upper_limit='1.63e-07', time_completed='2021-10-08 00:35:44.421613', job_id='10683', GAL2='1.06', fit_tolerance='1e-08', EG2='0.60', EG='0.74', time_epoch_completed='1633678544.42', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='3.96e-01', ts2='0.93', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1604' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Oct  8 00:35:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 10683: <4FGL_J2236.3+2828_daily_bin1604> in cluster <slac> Done

Job <4FGL_J2236.3+2828_daily_bin1604> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Oct  8 00:25:18 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Oct  8 00:25:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Oct  8 00:25:23 2021
Terminated at Fri Oct  8 00:35:44 2021
Results reported at Fri Oct  8 00:35:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin1604 339.096 28.4832 655084801 655344001 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 :                                   456.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             225.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   621 sec.
    Turnaround time :                            626 sec.

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

