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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin748
RA = 339.096, Dec = 28.4832
tmin = 433209601, tmax = 433468801
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='398285', job_status='RUN', time_executed='2021-09-28 16:40:55.800591', time_epoch_executed='1632872455.8' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/398285

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/398285/ft1_4FGL_J2236.3+2828_daily_bin748.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/398285/ft2_4FGL_J2236.3+2828_daily_bin748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/398285/ft1_4FGL_J2236.3+2828_daily_bin748.fits outfile=/scratch/kocevski/398285/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin748.fits ra=339.096 dec=28.4832 rad=12.0 tmin=433209601.0 tmax=433468801.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 6.01
user 5.68
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/398285/ft2_4FGL_J2236.3+2828_daily_bin748.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/398285/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin748.fits evtable="EVENTS" outfile="/scratch/kocevski/398285/ft1_filtered_4FGL_J2236.3+2828_daily_bin748.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/398285/ft1_filtered_4FGL_J2236.3+2828_daily_bin748.fits" evtable="EVENTS" scfile=/scratch/kocevski/398285/ft2_4FGL_J2236.3+2828_daily_bin748.fits sctable="SC_DATA" outfile=/scratch/kocevski/398285/ltcube_433209601_433468801_4FGL_J2236.3+2828_daily_bin748.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/398285/ft2_4FGL_J2236.3+2828_daily_bin748.fits
.....................!
real 11.96
user 11.65
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/398285/ft1_filtered_4FGL_J2236.3+2828_daily_bin748.fits evtable="EVENTS" scfile=/scratch/kocevski/398285/ft2_4FGL_J2236.3+2828_daily_bin748.fits sctable="SC_DATA" expcube=/scratch/kocevski/398285/ltcube_433209601_433468801_4FGL_J2236.3+2828_daily_bin748.fits outfile=/scratch/kocevski/398285/expmap_433209601_433468801_4FGL_J2236.3+2828_daily_bin748.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/398285/ltcube_433209601_433468801_4FGL_J2236.3+2828_daily_bin748.fits
.....................!
real 189.55
user 185.23
sys 4.02

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/398285/ft1_filtered_4FGL_J2236.3+2828_daily_bin748.fits scfile=/scratch/kocevski/398285/ft2_4FGL_J2236.3+2828_daily_bin748.fits outfile=/scratch/kocevski/398285/cmap_433209601_433468801_4FGL_J2236.3+2828_daily_bin748.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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/398285/ft1_filtered_4FGL_J2236.3+2828_daily_bin748.fits scfile=/scratch/kocevski/398285/ft2_4FGL_J2236.3+2828_daily_bin748.fits outfile=/scratch/kocevski/398285/cmap_HighResolution_433209601_433468801_4FGL_J2236.3+2828_daily_bin748.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=339.096 yref=28.4832 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/398285/ft1_filtered_4FGL_J2236.3+2828_daily_bin748.fits', '/scratch/kocevski/398285/ft2_4FGL_J2236.3+2828_daily_bin748.fits', expMap='/scratch/kocevski/398285/expmap_433209601_433468801_4FGL_J2236.3+2828_daily_bin748.fits', expCube='/scratch/kocevski/398285/ltcube_433209601_433468801_4FGL_J2236.3+2828_daily_bin748.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/398285/Model_4FGL_J2236.3+2828_daily_bin748.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/398285/ft1_filtered_4FGL_J2236.3+2828_daily_bin748.fits
Spacecraft file(s): /scratch/kocevski/398285/ft2_4FGL_J2236.3+2828_daily_bin748.fits
Exposure map: /scratch/kocevski/398285/expmap_433209601_433468801_4FGL_J2236.3+2828_daily_bin748.fits
Exposure cube: /scratch/kocevski/398285/ltcube_433209601_433468801_4FGL_J2236.3+2828_daily_bin748.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/398285/Model_4FGL_J2236.3+2828_daily_bin748.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 4260.58571737

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.274       1.0000         .10000E-03   10000.    
     2 'norm      '    .28332       1.0000         .10000E-03   10000.    
     3 'Prefactor '    172.22       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    519.73       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.3819       1.0000         .10000E-03   10000.    
     9 'Prefactor '    142.47       1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.084       1.0000         .10000E-03   10000.    
    11 'norm      '    6.5467       1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.811       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.131       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    86.523       1.0000         .10000E-03   10000.    
    16 'norm      '    6.2485       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .93840       1.0000         .10000E-03   10000.    
    20 'Prefactor '    47.931       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .57305       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .96739       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=   4260.561     FROM MIGRAD    STATUS=CONVERGED    451 CALLS     2370 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.272        15.664       -.25929E-06   -.54419E-04
   2  norm          .28337        1.0725        .46705E-06   -.32953E-03
   3  Prefactor     172.22        121.70        .24506E-06    .21508E-05
   4  Prefactor     .10000E-03    13.343       -.90555E-06** at limit **
   5  norm          .10000E-03    3.7769        .22366E-07** at limit **
   6  Prefactor     519.67        262.01       -.38798E-05   -.95145E-04
   7  Prefactor     .10000E-03    14.627        .10201E-05** at limit **
   8  norm          2.3823        2.7404        .19011E-06   -.82223E-04
   9  Prefactor     142.47        143.67       -.22744E-06   -.14660E-04
  10  Prefactor     21.084        40.636        .86550E-07    .35976E-05
  11  norm          6.5465        4.8369       -.45145E-07   -.64367E-04
  12  Prefactor     19.812        34.451        .42160E-06    .11986E-04
  13  Prefactor     14.129        27.312       -.11458E-06   -.25713E-04
  14  Prefactor     .10000E-03    20.917       -.22921E-06** at limit **
  15  Prefactor     86.517        54.684       -.61335E-06   -.77929E-04
  16  norm          6.2483        2.8359       -.30763E-07   -.23716E-03
  17  Prefactor     .10000E-03    10.195        .10752E-06** at limit **
  18  Prefactor     .10000E-03    20.695        .13482E-06** at limit **
  19  norm          .93906        17.999        .51791E-05   -.17526E-03
  20  Prefactor     47.926        38.809       -.24255E-05   -.22032E-03
  21  Normalizat    .57304        .41012        .13653E-05   -.43378E-04
  22  Prefactor     .96740        .16590       -.49451E-06   -.89149E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.2723
  norm       = 0.283367
  Prefactor  = 172.22
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 519.667
  Prefactor  = 0.0001
  norm       = 2.38229
  Prefactor  = 142.467
  Prefactor  = 21.0842
  norm       = 6.54655
  Prefactor  = 19.8117
  Prefactor  = 14.1295
  Prefactor  = 0.0001
  Prefactor  = 86.5173
  norm       = 6.24828
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.939057
  Prefactor  = 47.9262
  Normalizat = 0.573036
  Prefactor  = 0.967403
 **********
 **   18 **HESSE 
 **********

 FCN=   4260.561     FROM HESSE     STATUS=OK           342 CALLS     2712 TOTAL
                     EDM=   .98E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.272        15.611        .93694E-04   -1.4853    
   2  norm          .28337        1.0593        .12509E-03   -1.5602    
   3  Prefactor     172.22        121.60        .30746E-04   -1.3076    
   4  Prefactor     .10000E-03    13.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.7847        .12389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     519.67        270.70        .90101E-04   -1.1108    
   7  Prefactor     .10000E-03    14.832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.3823        2.6996        .95635E-04   -1.5399    
   9  Prefactor     142.47        144.48        .33753E-04   -1.3315    
  10  Prefactor     21.084        40.385        .87230E-04   -1.4789    
  11  norm          6.5465        4.8484        .10786E-03   -1.5196    
  12  Prefactor     19.812        34.299        .89987E-04   -1.4817    
  13  Prefactor     14.129        27.400        .10655E-03   -1.4956    
  14  Prefactor     .10000E-03    21.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     86.517        55.032        .43191E-04   -1.3845    
  16  norm          6.2483        2.8293        .69494E-04   -1.5208    
  17  Prefactor     .10000E-03    10.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    20.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .93906        20.093        .49044E-02   -1.5514    
  20  Prefactor     47.926        39.414        .57919E-04   -1.4322    
  21  Normalizat    .57304        .42999        .52797E-03   -1.0914    
  22  Prefactor     .96740        .18116        .18033E-03   -.93824    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.77671e-08
Minuit parameter uncertainties:
  1  15.6144
  2  1.05934
  3  121.777
  4  8.99848e-05
  5  1.54567e-06
  6  271.378
  7  0.000127993
  8  2.69978
  9  144.839
  10  40.4376
  11  4.84873
  12  34.3333
  13  27.4245
  14  8.64297e-05
  15  55.064
  16  2.82937
  17  8.02401e-06
  18  2.95663e-05
  19  8.69048
  20  39.4359
  21  0.432522
  22  0.181269
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  9.674e-01  1.813e-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.730e-01  4.325e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.31
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 7.64e-08 +/- 8.66e-08
Energy Flux (Fixed Index): 3.10e-05 +/- 3.51e-05

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

Saving results to:
/scratch/kocevski/398285/likelihoodResults_433209601_433468801_4FGL_J2236.3+2828_daily_bin748.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) = 4259.78220713
delta logL = 0.778406266038

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4259.77971049
delta logL = 0.780902911973

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5650       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2683       1.0000          .0000       5.0000    
     3 'Normalizat'    .43720       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0085       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=   4259.780     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      259 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5660        20.885        .84999E-02    .14027E-02
   2  alpha         3.2676        4.0638        .31009        .77801E-04
   3  Normalizat    .43709        .11559        .13535       -.27510E-04
   4  Prefactor     1.0085        .51993E-01    .43551E-01   -.22895E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.56602
  alpha      = 3.26758
  Normalizat = 0.437089
  Prefactor  = 1.00853
 **********
 **   18 **HESSE 
 **********

 FCN=   4259.780     FROM HESSE     STATUS=OK            33 CALLS      292 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5660        2.8947        .52865E-04   -1.5458    
   2  alpha         3.2676        1.3577        .12836E-01    .31207    
   3  Normalizat    .43709        .41126        .59974E-03   -1.1543    
   4  Prefactor     1.0085        .17822        .17697E-03   -.92446    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.05523e-10
Minuit parameter uncertainties:
  1  2.895
  2  1.44485
  3  0.414154
  4  0.178323
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/398285': 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) = 4259.77971006
delta logL = 0.78090334323

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  1.566e+00  2.895e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  3.268e+00  1.445e+00  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.009e+00  1.783e-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:  4.371e-01  4.142e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.14
Ra Dec: 339.096 28.483
Photon Index (Free Index): 3.27 +/- 1.44
Photon Flux (Free Index): 1.73e-07 +/- 1.23e-07
Energy Flux (Free Index): 3.22e-05 +/- 2.55e-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/398285/cmap_HighResolution_433209601_433468801_4FGL_J2236.3+2828_daily_bin748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.67e-05', comment='SUCCESS', photon_flux='7.64e-08', energy_flux2='3.22e-05', photon_flux_error='8.66e-08', dlogl='7.81e-01', energy_flux='3.10e-05', photon_flux2='1.73e-07', job_status='DONE', time_completed='2021-09-28 16:49:37.684897', photon_index_error2='1.44', photon_index2='3.27', ts='1.31', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='2.39e-07', energy_flux_error2='2.55e-05', EG='0.57', time_epoch_completed='1632872977.68', return_code='0', job_id='398285', GAL2='1.01', EG2='0.44', return_code2='0', energy_flux_error='3.51e-05', photon_flux_error2='1.23e-07', ts2='3.14', photon_index='2.15' WHERE bin_id='748' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:49:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 398285: <4FGL_J2236.3+2828_daily_bin748> in cluster <slac> Done

Job <4FGL_J2236.3+2828_daily_bin748> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 16:40:38 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:40:40 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:40:40 2021
Terminated at Tue Sep 28 16:49:38 2021
Results reported at Tue Sep 28 16:49:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin748 339.096 28.4832 433209601 433468801 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 :                                   519.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             352.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   537 sec.
    Turnaround time :                            540 sec.

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

