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


Performing analysis on: 4FGL_J2236.5-1433_daily_bin1130
RA = 339.144, Dec = -14.5557
tmin = 532224001, tmax = 532483201
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='413999', job_status='RUN', time_executed='2021-09-28 17:32:01.910317', time_epoch_executed='1632875521.91' WHERE source_name='4FGL J2236.5-1433' and cadence='daily' and bin_id='1130'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/413999

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/413999/ft1_4FGL_J2236.5-1433_daily_bin1130.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/413999/ft2_4FGL_J2236.5-1433_daily_bin1130.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/413999/ft1_4FGL_J2236.5-1433_daily_bin1130.fits outfile=/scratch/kocevski/413999/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1130.fits ra=339.144 dec=-14.5557 rad=12.0 tmin=532224001.0 tmax=532483201.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.53
user 3.31
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/413999/ft1_filtered_4FGL_J2236.5-1433_daily_bin1130.fits" evtable="EVENTS" scfile=/scratch/kocevski/413999/ft2_4FGL_J2236.5-1433_daily_bin1130.fits sctable="SC_DATA" outfile=/scratch/kocevski/413999/ltcube_532224001_532483201_4FGL_J2236.5-1433_daily_bin1130.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/413999/ft2_4FGL_J2236.5-1433_daily_bin1130.fits
.....................!
real 12.05
user 11.61
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/413999/ft1_filtered_4FGL_J2236.5-1433_daily_bin1130.fits evtable="EVENTS" scfile=/scratch/kocevski/413999/ft2_4FGL_J2236.5-1433_daily_bin1130.fits sctable="SC_DATA" expcube=/scratch/kocevski/413999/ltcube_532224001_532483201_4FGL_J2236.5-1433_daily_bin1130.fits outfile=/scratch/kocevski/413999/expmap_532224001_532483201_4FGL_J2236.5-1433_daily_bin1130.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/413999/ltcube_532224001_532483201_4FGL_J2236.5-1433_daily_bin1130.fits
.....................!
real 189.27
user 184.58
sys 4.25

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/413999/ft1_filtered_4FGL_J2236.5-1433_daily_bin1130.fits scfile=/scratch/kocevski/413999/ft2_4FGL_J2236.5-1433_daily_bin1130.fits outfile=/scratch/kocevski/413999/cmap_532224001_532483201_4FGL_J2236.5-1433_daily_bin1130.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.57
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/413999/ft1_filtered_4FGL_J2236.5-1433_daily_bin1130.fits scfile=/scratch/kocevski/413999/ft2_4FGL_J2236.5-1433_daily_bin1130.fits outfile=/scratch/kocevski/413999/cmap_HighResolution_532224001_532483201_4FGL_J2236.5-1433_daily_bin1130.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.55
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/413999/ft1_filtered_4FGL_J2236.5-1433_daily_bin1130.fits evtable="EVENTS" scfile=/scratch/kocevski/413999/ft2_4FGL_J2236.5-1433_daily_bin1130.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/413999/Model_4FGL_J2236.5-1433_daily_bin1130.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/413999/ft1_filtered_4FGL_J2236.5-1433_daily_bin1130.fits.....................!
real 50.42
user 49.17
sys 1.10

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/413999/ft1_filtered_4FGL_J2236.5-1433_daily_bin1130.fits', '/scratch/kocevski/413999/ft2_4FGL_J2236.5-1433_daily_bin1130.fits', expMap='/scratch/kocevski/413999/expmap_532224001_532483201_4FGL_J2236.5-1433_daily_bin1130.fits', expCube='/scratch/kocevski/413999/ltcube_532224001_532483201_4FGL_J2236.5-1433_daily_bin1130.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/413999/Model_4FGL_J2236.5-1433_daily_bin1130.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/413999/ft1_filtered_4FGL_J2236.5-1433_daily_bin1130.fits
Spacecraft file(s): /scratch/kocevski/413999/ft2_4FGL_J2236.5-1433_daily_bin1130.fits
Exposure map: /scratch/kocevski/413999/expmap_532224001_532483201_4FGL_J2236.5-1433_daily_bin1130.fits
Exposure cube: /scratch/kocevski/413999/ltcube_532224001_532483201_4FGL_J2236.5-1433_daily_bin1130.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/413999/Model_4FGL_J2236.5-1433_daily_bin1130.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) = 5091.25607975

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1528       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .32006E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.244       1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.744       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.7498       1.0000         .10000E-03   10000.    
     7 'Prefactor '    51.841       1.0000         .10000E-03   10000.    
     8 'norm      '    6.9036       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    31.253       1.0000         .10000E-03   10000.    
    11 'norm      '    .10157E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.6153       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    76.751       1.0000         .10000E-03   10000.    
    15 'norm      '    23.388       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.9999       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0807       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .72386       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=   5091.144     FROM MIGRAD    STATUS=CONVERGED    444 CALLS     2269 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1537        7.9599       -.61693E-06   -.26997E-03
   2  Prefactor     .10000E-03    11.170       -.68535E-06** at limit **
   3  Prefactor     .10005E-03    10.625        .10358E-05** at limit **
   4  Prefactor     12.241        15.827       -.19769E-06   -.36744E-04
   5  Prefactor     22.745        61.888        .23729E-05   -.26969E-04
   6  Prefactor     9.7492        5.5972       -.23251E-06   -.11672E-03
   7  Prefactor     51.815        69.452       -.30276E-04   -.80413E-04
   8  norm          6.9030        4.4017       -.17455E-06   -.20052E-03
   9  Prefactor     .10000E-03    51.446        .58207E-05** at limit **
  10  Prefactor     31.249        18.439       -.78304E-07   -.71086E-05
  11  norm          .10000E-03    .70650        .59853E-06** at limit **
  12  norm          1.6152        1.8362        .11705E-07    .14309E-03
  13  Prefactor     .10000E-03    14.787       -.11765E-04** at limit **
  14  Prefactor     76.762        77.297        .11733E-04   -.19166E-03
  15  norm          23.386        6.9025       -.16451E-05   -.50487E-04
  16  Prefactor     .10000E-03    65.789       -.10162E-04** at limit **
  17  Prefactor     7.0014        16.197       -.32419E-06   -.43924E-04
  18  Prefactor     .10000E-03    6.8321        .84540E-07** at limit **
  19  Prefactor     .10000E-03    14.325        .12088E-04** at limit **
  20  Normalizat    1.0810        .24926       -.29159E-07   -.22650E-03
  21  Prefactor     .72370        .17383        .13152E-05   -.29255E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.15374
  Prefactor  = 0.0001
  Prefactor  = 0.000100051
  Prefactor  = 12.2415
  Prefactor  = 22.7454
  Prefactor  = 9.74919
  Prefactor  = 51.8147
  norm       = 6.90304
  Prefactor  = 0.0001
  Prefactor  = 31.2491
  norm       = 0.000100001
  norm       = 1.61519
  Prefactor  = 0.0001
  Prefactor  = 76.7617
  norm       = 23.3856
  Prefactor  = 0.0001
  Prefactor  = 7.00139
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.08101
  Prefactor  = 0.723705
 **********
 **   18 **HESSE 
 **********

 FCN=   5091.144     FROM HESSE     STATUS=OK           317 CALLS     2586 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1537        7.9395        .19779E-03   -1.5300    
   2  Prefactor     .10000E-03    11.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10005E-03    68.935        .43806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.241        15.817        .11448E-03   -1.5008    
   5  Prefactor     22.745        61.773        .83990E-04   -1.4754    
   6  Prefactor     9.7492        5.5923        .11679E-03   -1.5083    
   7  Prefactor     51.815        69.482        .55702E-04   -1.4267    
   8  norm          6.9030        4.3995        .11388E-03   -1.5182    
   9  Prefactor     .10000E-03    51.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     31.249        18.480        .71673E-04   -1.4589    
  11  norm          .10000E-03    3.9788        .11253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.6152        1.8365        .10049E-03   -1.5454    
  13  Prefactor     .10000E-03    14.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     76.762        80.382        .45835E-04   -1.3953    
  15  norm          23.386        7.2024        .46919E-04   -1.4740    
  16  Prefactor     .10000E-03    65.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.0014        16.173        .15163E-03   -1.5179    
  18  Prefactor     .10000E-03    6.8421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0810        .29486        .30287E-03   -.90364    
  21  Prefactor     .72370        .20575        .26164E-03   -1.0261    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47742e-09
Minuit parameter uncertainties:
  1  7.94154
  2  2.70734e-06
  3  0.00374745
  4  15.8229
  5  61.9473
  6  5.59256
  7  69.591
  8  4.39966
  9  2.03401e-05
  10  18.4834
  11  0.000129826
  12  1.83655
  13  5.74196e-07
  14  80.496
  15  7.20265
  16  0.000352514
  17  16.1832
  18  1.15297e-05
  19  1.05993e-05
  20  0.295309
  21  0.20597
Done.

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

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  1.000e-04  1.298e-04  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:  7.237e-01  2.060e-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:  1.081e+00  2.953e-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: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.64e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/413999/likelihoodResults_532224001_532483201_4FGL_J2236.5-1433_daily_bin1130.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) = 5091.14509678
delta logL = -0.00121535337712

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5090.86808303
delta logL = 0.275798396751

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .23577       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5939       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0349       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73882       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.

 FCN=   5090.868     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      308 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .23605        5.9388        .10140E-01    .18654E-02
   2  alpha         3.5932        4.1406        .47762        .39108E-04
   3  Normalizat    1.0349        .44614E-01    .69593E-01    .92943E-05
   4  Prefactor     .73884        .32516E-01    .42916E-01    .10389E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.236054
  alpha      = 3.59315
  Normalizat = 1.03492
  Prefactor  = 0.738841
 **********
 **   18 **HESSE 
 **********

 FCN=   5090.868     FROM HESSE     STATUS=OK            33 CALLS      341 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .23605        3.0911        .48356E-04   -1.5611    
   2  alpha         3.5932        4.2887        .25086E-01    .45255    
   3  Normalizat    1.0349        .28708        .30790E-03   -.91870    
   4  Prefactor     .73884        .20706        .25874E-03   -1.0202    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67385e-10
Minuit parameter uncertainties:
  1  1.70816
  2  4.80207
  3  0.287507
  4  0.20728
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/413999': 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) = 5090.86808293
delta logL = 0.275798495531

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  2.361e-01  1.708e+00  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  3.593e+00  4.802e+00  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:  7.388e-01  2.073e-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:  1.035e+00  2.875e-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/413999/cmap_HighResolution_532224001_532483201_4FGL_J2236.5-1433_daily_bin1130.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.64e-05', job_status='DONE', photon_flux_upper_limit='1.15e-07', time_completed='2021-09-28 17:40:55.392260', job_id='413999', GAL2='0.74', fit_tolerance='1e-08', EG2='1.03', EG='1.08', time_epoch_completed='1632876055.39', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='2.76e-01', ts2='0.59', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1130' AND source_name='4FGL J2236.5-1433' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:40:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 413999: <4FGL_J2236.5-1433_daily_bin1130> in cluster <slac> Done

Job <4FGL_J2236.5-1433_daily_bin1130> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 17:30:47 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:30:49 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:49 2021
Terminated at Tue Sep 28 17:40:56 2021
Results reported at Tue Sep 28 17:40:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.5-1433_daily_bin1130 339.144 -14.5557 532224001 532483201 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 :                                   532.12 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             315.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   606 sec.
    Turnaround time :                            609 sec.

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

