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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin1429
RA = 339.096, Dec = 28.4832
tmin = 609724801, tmax = 609984001
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='401449', job_status='RUN', time_executed='2021-09-28 16:53:12.317983', time_epoch_executed='1632873192.32' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='1429'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/401449

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/401449/ft1_4FGL_J2236.3+2828_daily_bin1429.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/401449/ft2_4FGL_J2236.3+2828_daily_bin1429.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/401449/ft1_4FGL_J2236.3+2828_daily_bin1429.fits outfile=/scratch/kocevski/401449/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1429.fits ra=339.096 dec=28.4832 rad=12.0 tmin=609724801.0 tmax=609984001.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.59
user 2.37
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/401449/ft1_filtered_4FGL_J2236.3+2828_daily_bin1429.fits" evtable="EVENTS" scfile=/scratch/kocevski/401449/ft2_4FGL_J2236.3+2828_daily_bin1429.fits sctable="SC_DATA" outfile=/scratch/kocevski/401449/ltcube_609724801_609984001_4FGL_J2236.3+2828_daily_bin1429.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/401449/ft2_4FGL_J2236.3+2828_daily_bin1429.fits
.....................!
real 12.25
user 11.87
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/401449/ft1_filtered_4FGL_J2236.3+2828_daily_bin1429.fits evtable="EVENTS" scfile=/scratch/kocevski/401449/ft2_4FGL_J2236.3+2828_daily_bin1429.fits sctable="SC_DATA" expcube=/scratch/kocevski/401449/ltcube_609724801_609984001_4FGL_J2236.3+2828_daily_bin1429.fits outfile=/scratch/kocevski/401449/expmap_609724801_609984001_4FGL_J2236.3+2828_daily_bin1429.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/401449/ltcube_609724801_609984001_4FGL_J2236.3+2828_daily_bin1429.fits
.....................!
real 191.68
user 185.94
sys 5.40

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/401449/ft1_filtered_4FGL_J2236.3+2828_daily_bin1429.fits scfile=/scratch/kocevski/401449/ft2_4FGL_J2236.3+2828_daily_bin1429.fits outfile=/scratch/kocevski/401449/cmap_609724801_609984001_4FGL_J2236.3+2828_daily_bin1429.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.57
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.047       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.383       1.0000         .10000E-03   10000.    
     5 'norm      '    7.9950       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.4227       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.175       1.0000         .10000E-03   10000.    
    11 'norm      '    2.4223       1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.312       1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.238       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.5847       1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.450       1.0000         .10000E-03   10000.    
    16 'norm      '    1.5984       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10132E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    42.930       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .52167       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0919       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=   6322.123     FROM MIGRAD    STATUS=CONVERGED    472 CALLS     2402 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.2098        .90712E-02** at limit **
   2  norm          .10000E-03    .22775        .90712E-02** at limit **
   3  Prefactor     9.9966        31.122        .31604E-02    .41616E-03
   4  Prefactor     10.377        16.147        .31086E-02   -.15724E-02
   5  norm          7.9954        5.7353        .35450E-02    .13080E-03
   6  Prefactor     .10000E-03    36.995        .90712E-02** at limit **
   7  Prefactor     .10000E-03    5.6376        .90712E-02** at limit **
   8  norm          1.4224        1.3052        .90647E-02    .47087E-03
   9  Prefactor     .10001E-03    189.96        .90712E-02** at limit **
  10  Prefactor     16.175        17.023        .24896E-02    .12420E-03
  11  norm          2.4224        1.7838        .65744E-02   -.64742E-04
  12  Prefactor     23.311        14.554        .20741E-02   -.13523E-03
  13  Prefactor     16.238        25.654        .24848E-02    .18677E-03
  14  Prefactor     8.5845        8.6267        .34203E-02   -.55798E-04
  15  Prefactor     16.452        35.282        .24688E-02   -.60648E-04
  16  norm          1.5976        2.3523        .83849E-02    .69761E-03
  17  Prefactor     .10000E-03    19.280        .90712E-02** at limit **
  18  Prefactor     .10000E-03    12.590        .90712E-02** at limit **
  19  norm          .10000E-03    3.8854        .90712E-02** at limit **
  20  Prefactor     42.933        34.991        .15296E-02    .90943E-04
  21  Normalizat    .52181        .27451        .10956        .43812E-04
  22  Prefactor     1.0919        .12095        .37903E-01   -.16912E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.99663
  Prefactor  = 10.3772
  norm       = 7.99544
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.42239
  Prefactor  = 0.00010001
  Prefactor  = 16.1755
  norm       = 2.42235
  Prefactor  = 23.3114
  Prefactor  = 16.238
  Prefactor  = 8.58452
  Prefactor  = 16.4525
  norm       = 1.59755
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 42.9329
  Normalizat = 0.521807
  Prefactor  = 1.09186
 **********
 **   18 **HESSE 
 **********

 FCN=   6322.123     FROM HESSE     STATUS=OK           338 CALLS     2740 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.2177        .11543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .23875        .74012E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.9966        31.116        .12642E-03   -1.5076    
   4  Prefactor     10.377        16.107        .12434E-03   -1.5064    
   5  norm          7.9954        5.7289        .14180E-03   -1.5142    
   6  Prefactor     .10000E-03    37.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.6665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.4224        1.2858        .81829E-04   -1.5469    
   9  Prefactor     .10001E-03    190.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     16.175        16.998        .99585E-04   -1.4903    
  11  norm          2.4224        1.7839        .87990E-04   -1.5397    
  12  Prefactor     23.311        14.535        .82962E-04   -1.4742    
  13  Prefactor     16.238        25.669        .99392E-04   -1.4902    
  14  Prefactor     8.5845        8.6254        .13681E-03   -1.5122    
  15  Prefactor     16.452        35.236        .98751E-04   -1.4897    
  16  norm          1.5976        2.3190        .13976E-03   -1.5455    
  17  Prefactor     .10000E-03    19.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.8888        .15297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     42.933        34.873        .61185E-04   -1.4397    
  21  Normalizat    .52181        .28776        .48567E-03   -1.1141    
  22  Prefactor     1.0919        .12930        .15875E-03   -.89727    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.35979e-09
Minuit parameter uncertainties:
  1  3.85249e-07
  2  3.11569e-08
  3  31.1666
  4  16.1132
  5  5.72926
  6  0.000103266
  7  1.20175e-06
  8  1.28579
  9  0.00283052
  10  17.003
  11  1.78391
  12  14.537
  13  25.6868
  14  8.62667
  15  35.2809
  16  2.31916
  17  4.63315e-06
  18  5.64179e-06
  19  6.6083e-07
  20  34.8892
  21  0.288589
  22  0.129339
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  1.422e+00  1.286e+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:  1.092e+00  1.293e-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.218e-01  2.886e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.21
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 4.56e-08 +/- 4.12e-08
Energy Flux (Fixed Index): 1.85e-05 +/- 1.67e-05

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

Saving results to:
/scratch/kocevski/401449/likelihoodResults_609724801_609984001_4FGL_J2236.3+2828_daily_bin1429.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) = 6321.80150982
delta logL = 0.321561970318

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6321.77594174
delta logL = 0.347130046618

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1691       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4166       1.0000          .0000       5.0000    
     3 'Normalizat'    .55851       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0802       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=   6321.776     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      211 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1687        .98865        .10617E-01    .25677E-03
   2  alpha         1.4163        .43569        .41903       -.50109E-04
   3  Normalizat    .55854        .25445        .10600        .42281E-04
   4  Prefactor     1.0802        .11768        .38392E-01   -.59700E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.16865
  alpha      = 1.41632
  Normalizat = 0.558539
  Prefactor  = 1.08023
 **********
 **   18 **HESSE 
 **********

 FCN=   6321.776     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1687        1.1983        .70494E-04   -1.5492    
   2  alpha         1.4163        .65957        .15034E-01   -.44834    
   3  Normalizat    .55854        .27517        .46987E-03   -1.0977    
   4  Prefactor     1.0802        .12772        .15943E-03   -.90101    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54714e-09
Minuit parameter uncertainties:
  1  1.19834
  2  0.669378
  3  0.275841
  4  0.127757
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/401449': 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) = 6321.77594156
delta logL = 0.34713022777

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  1.169e+00  1.198e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  1.416e+00  6.694e-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.080e+00  1.278e-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.585e-01  2.758e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.87
Ra Dec: 339.096 28.483
Photon Index (Free Index): 1.42 +/- 0.67
Photon Flux (Free Index): 2.54e-08 +/- 2.71e-08
Energy Flux (Free Index): 4.03e-05 +/- 5.09e-05

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/401449/cmap_HighResolution_609724801_609984001_4FGL_J2236.3+2828_daily_bin1429.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.62e-05', comment='SUCCESS', photon_flux='4.56e-08', energy_flux2='4.03e-05', photon_flux_error='4.12e-08', dlogl='3.47e-01', energy_flux='1.85e-05', photon_flux2='2.54e-08', job_status='DONE', time_completed='2021-09-28 17:03:39.689968', photon_index_error2='0.67', photon_index2='1.42', ts='2.21', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='1.39e-07', energy_flux_error2='5.09e-05', EG='0.52', time_epoch_completed='1632873819.69', return_code='0', job_id='401449', GAL2='1.08', EG2='0.56', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='2.71e-08', ts2='2.87', photon_index='2.15' WHERE bin_id='1429' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:03:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 401449: <4FGL_J2236.3+2828_daily_bin1429> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin1429 339.096 28.4832 609724801 609984001 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 :                                   620.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             333.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   773 sec.
    Turnaround time :                            775 sec.

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

