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


Performing analysis on: 4FGL_J2236.5-1433_daily_bin1233
RA = 339.144, Dec = -14.5557
tmin = 558921601, tmax = 559180801
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='414154', job_status='RUN', time_executed='2021-09-28 17:33:25.559609', time_epoch_executed='1632875605.56' WHERE source_name='4FGL J2236.5-1433' and cadence='daily' and bin_id='1233'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/414154

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/414154/ft1_4FGL_J2236.5-1433_daily_bin1233.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/414154/ft2_4FGL_J2236.5-1433_daily_bin1233.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/414154/ft1_4FGL_J2236.5-1433_daily_bin1233.fits outfile=/scratch/kocevski/414154/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1233.fits ra=339.144 dec=-14.5557 rad=12.0 tmin=558921601.0 tmax=559180801.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 3.56
user 3.34
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/414154/ft2_4FGL_J2236.5-1433_daily_bin1233.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/414154/ft2_4FGL_J2236.5-1433_daily_bin1233.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/414154/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1233.fits evtable="EVENTS" outfile="/scratch/kocevski/414154/ft1_filtered_4FGL_J2236.5-1433_daily_bin1233.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/414154/ft1_filtered_4FGL_J2236.5-1433_daily_bin1233.fits" evtable="EVENTS" scfile=/scratch/kocevski/414154/ft2_4FGL_J2236.5-1433_daily_bin1233.fits sctable="SC_DATA" outfile=/scratch/kocevski/414154/ltcube_558921601_559180801_4FGL_J2236.5-1433_daily_bin1233.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/414154/ft2_4FGL_J2236.5-1433_daily_bin1233.fits
.....................!
real 11.50
user 11.16
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/414154/ft1_filtered_4FGL_J2236.5-1433_daily_bin1233.fits evtable="EVENTS" scfile=/scratch/kocevski/414154/ft2_4FGL_J2236.5-1433_daily_bin1233.fits sctable="SC_DATA" expcube=/scratch/kocevski/414154/ltcube_558921601_559180801_4FGL_J2236.5-1433_daily_bin1233.fits outfile=/scratch/kocevski/414154/expmap_558921601_559180801_4FGL_J2236.5-1433_daily_bin1233.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/414154/ltcube_558921601_559180801_4FGL_J2236.5-1433_daily_bin1233.fits
.....................!
real 189.85
user 185.28
sys 4.26

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 154 point sources and 0 extended sources

Setting source of interest to:
4FGL J2236.5-1433 @ 339.144 -14.5557

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/414154/ft1_filtered_4FGL_J2236.5-1433_daily_bin1233.fits scfile=/scratch/kocevski/414154/ft2_4FGL_J2236.5-1433_daily_bin1233.fits outfile=/scratch/kocevski/414154/cmap_558921601_559180801_4FGL_J2236.5-1433_daily_bin1233.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.144 yref=-14.5557 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/414154/ft1_filtered_4FGL_J2236.5-1433_daily_bin1233.fits scfile=/scratch/kocevski/414154/ft2_4FGL_J2236.5-1433_daily_bin1233.fits outfile=/scratch/kocevski/414154/cmap_HighResolution_558921601_559180801_4FGL_J2236.5-1433_daily_bin1233.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.144 yref=-14.5557 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/414154/ft1_filtered_4FGL_J2236.5-1433_daily_bin1233.fits evtable="EVENTS" scfile=/scratch/kocevski/414154/ft2_4FGL_J2236.5-1433_daily_bin1233.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/414154/Model_4FGL_J2236.5-1433_daily_bin1233.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/414154/ft1_filtered_4FGL_J2236.5-1433_daily_bin1233.fits.....................!
real 50.77
user 49.50
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/414154/ft1_filtered_4FGL_J2236.5-1433_daily_bin1233.fits', '/scratch/kocevski/414154/ft2_4FGL_J2236.5-1433_daily_bin1233.fits', expMap='/scratch/kocevski/414154/expmap_558921601_559180801_4FGL_J2236.5-1433_daily_bin1233.fits', expCube='/scratch/kocevski/414154/ltcube_558921601_559180801_4FGL_J2236.5-1433_daily_bin1233.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/414154/Model_4FGL_J2236.5-1433_daily_bin1233.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2236.5-1433'

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  1.854e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  2.065e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
259         beta:  7.101e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
260           Eb:  6.415e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/414154/ft1_filtered_4FGL_J2236.5-1433_daily_bin1233.fits
Spacecraft file(s): /scratch/kocevski/414154/ft2_4FGL_J2236.5-1433_daily_bin1233.fits
Exposure map: /scratch/kocevski/414154/expmap_558921601_559180801_4FGL_J2236.5-1433_daily_bin1233.fits
Exposure cube: /scratch/kocevski/414154/ltcube_558921601_559180801_4FGL_J2236.5-1433_daily_bin1233.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/414154/Model_4FGL_J2236.5-1433_daily_bin1233.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) = 5293.96942798

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3120       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.4701       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11132E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.240       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10106E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .15773E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11187E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.0803       1.0000         .10000E-03   10000.    
    16 'Prefactor '    57.548       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.6979       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .64878E-02   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .86472       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0642       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5293.913     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     2558 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3137        7.5286        .18840E-06   -.10134E-04
   2  Prefactor     1.4732        45.024        .30203E-05    .39957E-05
   3  Prefactor     .10000E-03    5.2881        .51099E-07** at limit **
   4  Prefactor     .10000E-03    8.7704        .96372E-07** at limit **
   5  Prefactor     .10000E-03    108.20       -.69673E-06** at limit **
   6  Prefactor     .10000E-03    2.2464        .22333E-06** at limit **
   7  Prefactor     .10000E-03    49.525        .37371E-06** at limit **
   8  norm          .10000E-03    1.6300        .61121E-07** at limit **
   9  Prefactor     .10000E-03    34.585        .15765E-06** at limit **
  10  Prefactor     22.224        24.045       -.86513E-05    .53554E-04
  11  norm          .10000E-03    .38053        .52299E-07** at limit **
  12  norm          .10000E-03    2.9712       -.11720E-05** at limit **
  13  Prefactor     .10007E-03    1398.9       -.44536E-04** at limit **
  14  Prefactor     .10000E-03    37.876       -.22544E-06** at limit **
  15  norm          3.0801        1.5592       -.10335E-06   -.59018E-04
  16  Prefactor     57.579        38.315       -.72683E-07   -.38803E-04
  17  Prefactor     4.6980        6.6368        .14378E-06    .18502E-04
  18  Prefactor     .10000E-03    3.7964        .23674E-07** at limit **
  19  Prefactor     .10001E-03    180.94        .12884E-04** at limit **
  20  Normalizat    .86463        .21605       -.14843E-05   -.63524E-04
  21  Prefactor     1.0640        .15612        .17643E-07   -.15920E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.31366
  Prefactor  = 1.47324
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.2238
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100072
  Prefactor  = 0.0001
  norm       = 3.08015
  Prefactor  = 57.5786
  Prefactor  = 4.69801
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Normalizat = 0.864634
  Prefactor  = 1.06403
 **********
 **   18 **HESSE 
 **********

 FCN=   5293.913     FROM HESSE     STATUS=OK           313 CALLS     2871 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3137        7.5116        .15977E-03   -1.5205    
   2  Prefactor     1.4732        45.559        .35445E-03   -1.5465    
   3  Prefactor     .10000E-03    5.3035        .16339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.8362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    108.51        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.2896        .21008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    49.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.6479        .90634E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    34.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     22.224        24.061        .84934E-04   -1.4765    
  11  norm          .10000E-03    .39272        .87544E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.9712        .12182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10007E-03    1386.5        .36407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    38.098        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.0801        1.5601        .53370E-04   -1.5357    
  16  Prefactor     57.579        38.787        .52883E-04   -1.4189    
  17  Prefactor     4.6980        6.6285        .18566E-03   -1.5274    
  18  Prefactor     .10000E-03    3.8005        .13845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    190.49        .37641E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .86463        .25837        .29496E-03   -.97714    
  21  Prefactor     1.0640        .18684        .19902E-03   -.90625    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29931e-10
Minuit parameter uncertainties:
  1  7.51273
  2  16.3984
  3  6.02043e-06
  4  1.22976e-05
  5  0.000682572
  6  1.49497e-05
  7  0.000213623
  8  5.32973e-06
  9  7.38694e-05
  10  24.0711
  11  2.63092e-06
  12  4.03696e-05
  13  0.0204677
  14  0.000177926
  15  1.56011
  16  38.8044
  17  6.62954
  18  5.64323e-06
  19  0.00287609
  20  0.258741
  21  0.186958
Done.

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

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  1.000e-04  2.631e-06  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  2.065e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
259         beta:  7.101e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
260           Eb:  6.415e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  1.064e+00  1.870e-01  0.000e+00  1.000e+01 ( 1.000e+00)
493        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
494        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
491   Normalization:  8.646e-01  2.587e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 339.144 -14.556
Photon Flux Upper Limit: 6.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.24e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/414154/likelihoodResults_558921601_559180801_4FGL_J2236.5-1433_daily_bin1233.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) = 5293.92457714
delta logL = -0.0118448749581

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5293.91267983
delta logL = 5.24413480889e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1178       1.0000          .0000       5.0000    
     3 'Normalizat'    .86463       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0640       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4950E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5293.913     FROM MIGRAD    STATUS=FAILED        99 CALLS      288 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    68.822        .77083E-03** at limit **
   2  alpha         3.1163        2.6541        .50000        .47263E-05
   3  Normalizat    .86462        .60844E-01    .29496E-03    .15996E-04
   4  Prefactor     1.0640        .45370E-01    .19902E-03   -.38924E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5293.913     FROM SIMPLEX   STATUS=UNCHANGED    185 CALLS      473 TOTAL
                     EDM=   .87E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    68.822        .13336E-03** at limit **
   2  alpha         3.1163        2.6541        .96687E-06    .47263E-05
   3  Normalizat    .86462        .60844E-01    .81040E-07    .15996E-04
   4  Prefactor     1.0640        .45370E-01    .20127E-07   -.38924E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5293.913     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      517 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.4915         .0000    ** at limit **
   2  alpha         3.1163        4.0556         .0000        .47068E-05
   3  Normalizat    .86462        .24546         .0000        .15803E-04
   4  Prefactor     1.0640        .18315         .0000       -.39187E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 3.11629
  Normalizat = 0.864624
  Prefactor  = 1.06403
 **********
 **   18 **HESSE 
 **********

 FCN=   5293.913     FROM HESSE     STATUS=OK            27 CALLS      544 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .68276        .30833E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.1163        3.0179        .50000        .24908    
   3  Normalizat    .86462        .24545        .23597E-05   -.97715    
   4  Prefactor     1.0640        .18315        .79607E-05   -.90625    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12875e-08
Minuit parameter uncertainties:
  1  2.16655e-06
  2  74.9704
  3  0.24577
  4  0.183254
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/414154': 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) = 5293.91267981
delta logL = 5.24552497154e-05

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  1.000e-04  2.167e-06  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  3.116e+00  7.497e+01  0.000e+00  5.000e+00 ( 1.000e+00)
259         beta:  7.101e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
260           Eb:  6.415e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  1.064e+00  1.833e-01  0.000e+00  1.000e+01 ( 1.000e+00)
493        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
494        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
491   Normalization:  8.646e-01  2.458e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 339.144 -14.556

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/414154/cmap_HighResolution_558921601_559180801_4FGL_J2236.5-1433_daily_bin1233.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.24e-05', job_status='DONE', photon_flux_upper_limit='6.64e-08', time_completed='2021-09-28 17:42:47.264263', job_id='414154', GAL2='1.06', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1632876167.26', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='5.25e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1233' AND source_name='4FGL J2236.5-1433' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:42:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 414154: <4FGL_J2236.5-1433_daily_bin1233> in cluster <slac> Done

Job <4FGL_J2236.5-1433_daily_bin1233> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 17:30:57 2021
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:30:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 17:30:58 2021
Terminated at Tue Sep 28 17:42:48 2021
Results reported at Tue Sep 28 17:42:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.5-1433_daily_bin1233 339.144 -14.5557 558921601 559180801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2236.5-1433 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   560.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   709 sec.
    Turnaround time :                            711 sec.

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

