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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin1594
RA = 339.096, Dec = 28.4832
tmin = 652492801, tmax = 652752001
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='402877', job_status='RUN', time_executed='2021-09-28 16:58:52.151069', time_epoch_executed='1632873532.15' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='1594'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/402877

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/402877/ft1_4FGL_J2236.3+2828_daily_bin1594.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/402877/ft2_4FGL_J2236.3+2828_daily_bin1594.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/402877/ft1_4FGL_J2236.3+2828_daily_bin1594.fits outfile=/scratch/kocevski/402877/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1594.fits ra=339.096 dec=28.4832 rad=12.0 tmin=652492801.0 tmax=652752001.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 4.42
user 4.17
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/402877/ft1_filtered_4FGL_J2236.3+2828_daily_bin1594.fits evtable="EVENTS" scfile=/scratch/kocevski/402877/ft2_4FGL_J2236.3+2828_daily_bin1594.fits sctable="SC_DATA" expcube=/scratch/kocevski/402877/ltcube_652492801_652752001_4FGL_J2236.3+2828_daily_bin1594.fits outfile=/scratch/kocevski/402877/expmap_652492801_652752001_4FGL_J2236.3+2828_daily_bin1594.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/402877/ltcube_652492801_652752001_4FGL_J2236.3+2828_daily_bin1594.fits
.....................!
real 192.68
user 186.62
sys 5.75

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/402877/ft1_filtered_4FGL_J2236.3+2828_daily_bin1594.fits scfile=/scratch/kocevski/402877/ft2_4FGL_J2236.3+2828_daily_bin1594.fits outfile=/scratch/kocevski/402877/cmap_652492801_652752001_4FGL_J2236.3+2828_daily_bin1594.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/402877/ft1_filtered_4FGL_J2236.3+2828_daily_bin1594.fits scfile=/scratch/kocevski/402877/ft2_4FGL_J2236.3+2828_daily_bin1594.fits outfile=/scratch/kocevski/402877/cmap_HighResolution_652492801_652752001_4FGL_J2236.3+2828_daily_bin1594.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10754E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .42962       1.0000         .10000E-03   10000.    
     3 'Prefactor '    110.91       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8687       1.0000         .10000E-03   10000.    
     5 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .55489E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.477       1.0000         .10000E-03   10000.    
     8 'norm      '    .70477       1.0000         .10000E-03   10000.    
     9 'Prefactor '    47.737       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.5402       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.8391       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.927       1.0000         .10000E-03   10000.    
    16 'norm      '    .31367       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.7225       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12055E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .57060       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0075       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .95272       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=   9188.012     FROM MIGRAD    STATUS=CONVERGED    501 CALLS     2471 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.2066       -.11788E-07** at limit **
   2  norm          .42913        .66854       -.10358E-06   -.64219E-03
   3  Prefactor     110.89        65.349        .10577E-05    .13081E-04
   4  Prefactor     1.8644        13.269        .63911E-05    .70847E-04
   5  norm          .10000E-03    6.3675       -.88915E-07** at limit **
   6  Prefactor     .10000E-03    468.02        .44617E-04** at limit **
   7  Prefactor     15.470        13.848        .97989E-07   -.92383E-05
   8  norm          .70452        1.0952       -.12112E-06   -.54626E-03
   9  Prefactor     47.725        54.780        .94978E-06    .91643E-05
  10  Prefactor     .10000E-03    9.3808       -.62233E-07** at limit **
  11  norm          3.5401        2.0555       -.21202E-07   -.13136E-04
  12  Prefactor     4.8347        12.919        .37367E-06    .63522E-05
  13  Prefactor     .10000E-03    21.264       -.16229E-06** at limit **
  14  Prefactor     .10000E-03    4.5762       -.57021E-07** at limit **
  15  Prefactor     21.925        20.195       -.78318E-07    .89216E-05
  16  norm          .31382        1.0008        .19819E-06    .21410E-03
  17  Prefactor     6.7972        28.124        .32875E-05    .65957E-04
  18  Prefactor     .10000E-03    165.81       -.89427E-05** at limit **
  19  norm          .10000E-03    4.9309       -.66538E-07** at limit **
  20  Prefactor     .43458        13.097       -.25935E-05    .40895E-03
  21  Normalizat    1.0077        .22729       -.28138E-06    .13103E-03
  22  Prefactor     .95278        .92744E-01   -.17543E-06    .21214E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 0.429129
  Prefactor  = 110.893
  Prefactor  = 1.86444
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 15.4704
  norm       = 0.704518
  Prefactor  = 47.7249
  Prefactor  = 0.0001
  norm       = 3.54006
  Prefactor  = 4.83467
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.9248
  norm       = 0.31382
  Prefactor  = 6.79716
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.434585
  Normalizat = 1.00768
  Prefactor  = 0.952784
 **********
 **   18 **HESSE 
 **********

 FCN=   9188.012     FROM HESSE     STATUS=OK           352 CALLS     2823 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.712        .33074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .42913        .58801        .92906E-03   -1.5577    
   3  Prefactor     110.89        65.320        .19097E-03   -1.3598    
   4  Prefactor     1.8644        13.334        .15235E-02   -1.5435    
   5  norm          .10000E-03    6.6377        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    464.93        .19055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.470        13.899        .10181E-03   -1.4921    
   8  norm          .70452        .98240        .11694E-02   -1.5540    
   9  Prefactor     47.725        54.814        .58036E-04   -1.4325    
  10  Prefactor     .10000E-03    9.4153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.5401        2.0534        .97633E-04   -1.5332    
  12  Prefactor     4.8347        12.889        .18287E-03   -1.5268    
  13  Prefactor     .10000E-03    21.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.5855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     21.925        20.156        .85537E-04   -1.4771    
  16  norm          .31382        .98148        .16260E-03   -1.5596    
  17  Prefactor     6.7972        28.403        .15476E-03   -1.5186    
  18  Prefactor     .10000E-03    172.63        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    5.0277        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .43458        152.63        .61559E-02   -1.5576    
  21  Normalizat    1.0077        .26614        .37996E-03   -.92774    
  22  Prefactor     .95278        .11060        .17047E-03   -.94320    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20148e-08
Minuit parameter uncertainties:
  1  0.000213955
  2  0.588018
  3  65.3628
  4  9.97481
  5  6.82978e-06
  6  0.00254291
  7  13.9023
  8  0.982423
  9  54.8719
  10  1.58316e-06
  11  2.0534
  12  12.8962
  13  3.67241e-06
  14  3.68291e-06
  15  20.1619
  16  0.981534
  17  27.8117
  18  2.1708e-05
  19  3.33551e-05
  20  16.3291
  21  0.266487
  22  0.110626
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  9.528e-01  1.106e-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.008e+00  2.665e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.74
Ra Dec: 339.096 28.483
Photon Flux Upper Limit: 9.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.98e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/402877/likelihoodResults_652492801_652752001_4FGL_J2236.3+2828_daily_bin1594.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) = 9186.59485654
delta logL = 1.41745919029

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9186.55877889
delta logL = 1.45353684549

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .15521E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    .16791E-04   1.0000          .0000       5.0000    
     3 'Normalizat'    1.0023       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96095       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9186.559     FROM MIGRAD    STATUS=CONVERGED    110 CALLS      378 TOTAL
                     EDM=   .96E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .15537E-01    .20556E-01    .14168E-03   -.18149E-02
   2  alpha         .35930E-11    .51441        .50000    ** at limit **
   3  Normalizat    1.0019        .24637        .38051E-03    .38841E-05
   4  Prefactor     .96103        .10881        .16985E-03   -.36331E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0155368
  alpha      = 3.59296e-12
  Normalizat = 1.00191
  Prefactor  = 0.961035
 **********
 **   18 **HESSE 
 **********

 FCN=   9186.559     FROM HESSE     STATUS=OK            31 CALLS      409 TOTAL
                     EDM=   .44E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .15537E-01    .20195E-01    .56672E-05   -1.5683    
   2  alpha         .35930E-11    .50399        .49151       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0019        .24656        .15220E-04   -.92966    
   4  Prefactor     .96103        .10890        .33971E-04   -.94040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.36881e-12
Minuit parameter uncertainties:
  1  0.0201947
  2  2.73872e-06
  3  0.246836
  4  0.108922
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/402877': 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) = 9186.55877273
delta logL = 1.45354299743

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  1.554e-02  2.019e-02  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  3.593e-12  2.739e-06  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:  9.610e-01  1.089e-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.002e+00  2.468e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.64
Ra Dec: 339.096 28.483
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 3.03e-09 +/- 3.94e-09
Energy Flux (Free Index): 8.82e-05 +/- 1.15e-04

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/402877/cmap_HighResolution_652492801_652752001_4FGL_J2236.3+2828_daily_bin1594.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.98e-05', comment='SUCCESS', energy_flux2='8.82e-05', dlogl='1.45e+00', photon_flux2='3.03e-09', job_status='DONE', time_completed='2021-09-28 17:11:52.753840', photon_index_error2='0.00', photon_index2='0.00', ts='0.74', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='9.82e-08', energy_flux_error2='1.15e-04', EG='1.01', time_epoch_completed='1632874312.75', return_code='0', job_id='402877', GAL2='0.96', EG2='1.00', return_code2='0', photon_flux_error2='3.94e-09', ts2='3.64', photon_index='2.15' WHERE bin_id='1594' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:11:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 402877: <4FGL_J2236.3+2828_daily_bin1594> in cluster <slac> Done

Job <4FGL_J2236.3+2828_daily_bin1594> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 16:55:23 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:55:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 16:55:24 2021
Terminated at Tue Sep 28 17:11:53 2021
Results reported at Tue Sep 28 17:11:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin1594 339.096 28.4832 652492801 652752001 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 :                                   777.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            990 sec.

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

