/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 = 7430
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2236.3+2828_daily_bin64
RA = 339.096, Dec = 28.4832
tmin = 255916801, tmax = 256176001
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='395196', job_status='RUN', time_executed='2021-09-28 16:33:12.143000', time_epoch_executed='1632871992.14' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='64'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/395196

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/395196/ft1_4FGL_J2236.3+2828_daily_bin64.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/395196/ft2_4FGL_J2236.3+2828_daily_bin64.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/395196/ft1_4FGL_J2236.3+2828_daily_bin64.fits outfile=/scratch/kocevski/395196/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin64.fits ra=339.096 dec=28.4832 rad=12.0 tmin=255916801.0 tmax=256176001.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 1.44
user 1.28
sys 0.15

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/395196/ft1_filtered_4FGL_J2236.3+2828_daily_bin64.fits evtable="EVENTS" scfile=/scratch/kocevski/395196/ft2_4FGL_J2236.3+2828_daily_bin64.fits sctable="SC_DATA" expcube=/scratch/kocevski/395196/ltcube_255916801_256176001_4FGL_J2236.3+2828_daily_bin64.fits outfile=/scratch/kocevski/395196/expmap_255916801_256176001_4FGL_J2236.3+2828_daily_bin64.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/395196/ltcube_255916801_256176001_4FGL_J2236.3+2828_daily_bin64.fits
.....................!
real 191.58
user 186.86
sys 4.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/395196/ft1_filtered_4FGL_J2236.3+2828_daily_bin64.fits scfile=/scratch/kocevski/395196/ft2_4FGL_J2236.3+2828_daily_bin64.fits outfile=/scratch/kocevski/395196/cmap_255916801_256176001_4FGL_J2236.3+2828_daily_bin64.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/395196/ft1_filtered_4FGL_J2236.3+2828_daily_bin64.fits scfile=/scratch/kocevski/395196/ft2_4FGL_J2236.3+2828_daily_bin64.fits outfile=/scratch/kocevski/395196/cmap_HighResolution_255916801_256176001_4FGL_J2236.3+2828_daily_bin64.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    2.7302       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.4237       1.0000         .10000E-03   10000.    
     8 'norm      '    .56712       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.462       1.0000         .10000E-03   10000.    
    11 'norm      '    .70203E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.288       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.9293       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.5109       1.0000         .10000E-03   10000.    
    16 'norm      '    .92519       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.4936       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.1055       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1560       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .83564       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=   7956.759     FROM MIGRAD    STATUS=CONVERGED    478 CALLS     2360 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.2179        .57213E-07** at limit **
   2  norm          2.7302        1.1469       -.13045E-06   -.47665E-03
   3  Prefactor     .10000E-03    14.863        .37912E-05** at limit **
   4  Prefactor     .10000E-03    19.483       -.79886E-05** at limit **
   5  norm          .10000E-03    1.6304       -.27046E-07** at limit **
   6  Prefactor     .10000E-03    41.038        .14125E-04** at limit **
   7  Prefactor     4.4235        7.7123       -.75122E-06   -.17356E-03
   8  norm          .57033        1.3139        .41503E-05    .17397E-02
   9  Prefactor     .10000E-03    21.589        .15078E-06** at limit **
  10  Prefactor     11.415        23.526       -.47302E-04   -.34144E-03
  11  norm          .63563E-01    .77406       -.65658E-06   -.53980E-03
  12  Prefactor     .10000E-03    5.5273       -.59782E-06** at limit **
  13  Prefactor     20.287        17.692       -.41070E-06   -.65330E-05
  14  Prefactor     4.9293        8.2242       -.43940E-06   -.14949E-03
  15  Prefactor     3.5116        61.322        .39070E-07   -.23012E-04
  16  norm          .92522        1.1958       -.18177E-06   -.10168E-02
  17  Prefactor     .10000E-03    6.1713        .21337E-05** at limit **
  18  Prefactor     .10000E-03    6.7206       -.17659E-05** at limit **
  19  norm          5.4933        4.6797        .56132E-06   -.60127E-04
  20  Prefactor     9.1101        17.296        .19453E-06   -.33897E-04
  21  Normalizat    1.1557        .21520        .30718E-05   -.35411E-03
  22  Prefactor     .83574        .96211E-01    .11034E-06   -.23033E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.73024
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.42354
  norm       = 0.570333
  Prefactor  = 0.0001
  Prefactor  = 11.4155
  norm       = 0.0635633
  Prefactor  = 0.0001
  Prefactor  = 20.2873
  Prefactor  = 4.92935
  Prefactor  = 3.51159
  norm       = 0.925223
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.49331
  Prefactor  = 9.11009
  Normalizat = 1.15575
  Prefactor  = 0.835736
 **********
 **   18 **HESSE 
 **********

 FCN=   7956.759     FROM HESSE     STATUS=OK           346 CALLS     2706 TOTAL
                     EDM=   .60E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.2436        .17888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.7302        1.1445        .58699E-04   -1.5377    
   3  Prefactor     .10000E-03    14.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    19.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.6470        .11122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    40.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.4235        7.7163        .19147E-03   -1.5287    
   8  norm          .57033        1.2743        .13519E-03   -1.5557    
   9  Prefactor     .10000E-03    21.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.415        23.387        .11833E-03   -1.5032    
  11  norm          .63563E-01    2.6879        .15300E-02   -1.5658    
  12  Prefactor     .10000E-03    5.5670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     20.287        17.710        .88923E-04   -1.4807    
  14  Prefactor     4.9293        8.2161        .18115E-03   -1.5264    
  15  Prefactor     3.5116        60.649        .21576E-03   -1.5333    
  16  norm          .92522        1.0433        .10501E-02   -1.5516    
  17  Prefactor     .10000E-03    6.1760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.7234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.4933        4.6621        .16097E-03   -1.5239    
  20  Prefactor     9.1101        17.282        .13282E-03   -1.5104    
  21  Normalizat    1.1557        .25306        .33044E-03   -.87982    
  22  Prefactor     .83574        .11461        .17561E-03   -.98424    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.96418e-08
Minuit parameter uncertainties:
  1  4.57929e-06
  2  1.14453
  3  9.90723e-06
  4  2.13363e-05
  5  2.62865e-06
  6  5.55755e-05
  7  7.71799
  8  1.2744
  9  2.13062e-06
  10  23.4062
  11  0.826078
  12  2.78823e-06
  13  17.7141
  14  8.21801
  15  29.2215
  16  1.04334
  17  5.20042e-06
  18  4.54899e-06
  19  4.66239
  20  17.2913
  21  0.253327
  22  0.114646
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  5.703e-01  1.274e+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:  8.357e-01  1.146e-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.156e+00  2.533e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/395196/likelihoodResults_255916801_256176001_4FGL_J2236.3+2828_daily_bin64.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): 102
logL (Free Index) = 7956.59326157
delta logL = 0.165699663052

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7956.57888566
delta logL = 0.18007557213

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .18246       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.9562       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0959       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85566       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=   7956.579     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      227 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .17909        3.4194        .98973E-02    .36366E-02
   2  alpha         3.9708        4.1484        .50000        .72326E-04
   3  Normalizat    1.0956        .39396E-01    .76472E-01    .31768E-04
   4  Prefactor     .85592        .18238E-01    .44437E-01    .20616E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.179093
  alpha      = 3.97076
  Normalizat = 1.09556
  Prefactor  = 0.855919
 **********
 **   18 **HESSE 
 **********

 FCN=   7956.579     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      260 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .17909        13.737        .46860E-04   -1.5623    
   2  alpha         3.9708        2.6341        .37408E-01    .62896    
   3  Normalizat    1.0956        .18619        .33847E-03   -.89895    
   4  Prefactor     .85592        .87100E-01    .17377E-03   -.97699    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.69073e-09
Minuit parameter uncertainties:
  1  3.13686
  2  12.4185
  3  0.186299
  4  0.0871138
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/395196': 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) = 7956.57887975
delta logL = 0.180081481595

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  1.791e-01  3.137e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  3.971e+00  1.242e+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:  8.559e-01  8.711e-02  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.096e+00  1.863e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.27
Ra Dec: 339.096 28.483

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/395196/cmap_HighResolution_255916801_256176001_4FGL_J2236.3+2828_daily_bin64.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.33e-05', job_status='DONE', photon_flux_upper_limit='1.07e-07', time_completed='2021-09-28 16:44:43.810534', job_id='395196', GAL2='0.86', fit_tolerance='1e-08', EG2='1.10', EG='1.16', time_epoch_completed='1632872683.81', return_code2='102', ts='0.27', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='1.80e-01', ts2='0.74', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='64' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:44:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 395196: <4FGL_J2236.3+2828_daily_bin64> in cluster <slac> Done

Job <4FGL_J2236.3+2828_daily_bin64> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 28 16:30:59 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:31:01 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:31:01 2021
Terminated at Tue Sep 28 16:44:46 2021
Results reported at Tue Sep 28 16:44:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin64 339.096 28.4832 255916801 256176001 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 :                                   688.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             307.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   823 sec.
    Turnaround time :                            827 sec.

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

