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


Performing analysis on: 4FGL_J2236.5-1433_daily_bin1282
RA = 339.144, Dec = -14.5557
tmin = 571622401, tmax = 571881601
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='415188', job_status='RUN', time_executed='2021-09-28 17:35:40.380848', time_epoch_executed='1632875740.38' WHERE source_name='4FGL J2236.5-1433' and cadence='daily' and bin_id='1282'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/415188

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/415188/ft1_4FGL_J2236.5-1433_daily_bin1282.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/415188/ft2_4FGL_J2236.5-1433_daily_bin1282.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/415188/ft1_4FGL_J2236.5-1433_daily_bin1282.fits outfile=/scratch/kocevski/415188/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1282.fits ra=339.144 dec=-14.5557 rad=12.0 tmin=571622401.0 tmax=571881601.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 2.69
user 2.48
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/415188/ft1_filtered_4FGL_J2236.5-1433_daily_bin1282.fits" evtable="EVENTS" scfile=/scratch/kocevski/415188/ft2_4FGL_J2236.5-1433_daily_bin1282.fits sctable="SC_DATA" outfile=/scratch/kocevski/415188/ltcube_571622401_571881601_4FGL_J2236.5-1433_daily_bin1282.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/415188/ft2_4FGL_J2236.5-1433_daily_bin1282.fits
.....................!
real 12.36
user 11.94
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/415188/ft1_filtered_4FGL_J2236.5-1433_daily_bin1282.fits evtable="EVENTS" scfile=/scratch/kocevski/415188/ft2_4FGL_J2236.5-1433_daily_bin1282.fits sctable="SC_DATA" expcube=/scratch/kocevski/415188/ltcube_571622401_571881601_4FGL_J2236.5-1433_daily_bin1282.fits outfile=/scratch/kocevski/415188/expmap_571622401_571881601_4FGL_J2236.5-1433_daily_bin1282.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/415188/ltcube_571622401_571881601_4FGL_J2236.5-1433_daily_bin1282.fits
.....................!
real 192.13
user 185.69
sys 5.95

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/415188/ft1_filtered_4FGL_J2236.5-1433_daily_bin1282.fits scfile=/scratch/kocevski/415188/ft2_4FGL_J2236.5-1433_daily_bin1282.fits outfile=/scratch/kocevski/415188/cmap_571622401_571881601_4FGL_J2236.5-1433_daily_bin1282.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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/415188/ft1_filtered_4FGL_J2236.5-1433_daily_bin1282.fits scfile=/scratch/kocevski/415188/ft2_4FGL_J2236.5-1433_daily_bin1282.fits outfile=/scratch/kocevski/415188/cmap_HighResolution_571622401_571881601_4FGL_J2236.5-1433_daily_bin1282.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/415188/ft1_filtered_4FGL_J2236.5-1433_daily_bin1282.fits evtable="EVENTS" scfile=/scratch/kocevski/415188/ft2_4FGL_J2236.5-1433_daily_bin1282.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/415188/Model_4FGL_J2236.5-1433_daily_bin1282.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/415188/ft1_filtered_4FGL_J2236.5-1433_daily_bin1282.fits.....................!
real 27.71
user 26.31
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    149.37       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .27649E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    46.328       1.0000         .10000E-03   10000.    
     4 'Prefactor '    76.567       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    96.641       1.0000         .10000E-03   10000.    
     8 'norm      '    10.906       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    65.282       1.0000         .10000E-03   10000.    
    11 'norm      '    .13589E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.2799       1.0000         .10000E-03   10000.    
    13 'Prefactor '    38.342       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.4532       1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.271       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.615       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3335       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .49930       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=   1814.053     FROM MIGRAD    STATUS=CONVERGED    438 CALLS     2654 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     149.31        104.06       -.19913E-05   -.25721E-04
   2  Prefactor     .10001E-03    1991.7       -.50365E-04** at limit **
   3  Prefactor     46.223        97.100       -.15751E-04   -.37263E-04
   4  Prefactor     76.572        39.261        .23691E-06   -.11725E-04
   5  Prefactor     .10000E-03    195.79       -.38383E-06** at limit **
   6  Prefactor     .10000E-03    5.8898        .14783E-06** at limit **
   7  Prefactor     96.753        222.32       -.10450E-04   -.79009E-04
   8  norm          10.908        10.121        .22376E-06   -.49722E-04
   9  Prefactor     .10000E-03    82.509        .80215E-07** at limit **
  10  Prefactor     65.189        94.093       -.33757E-05   -.50612E-05
  11  norm          .10001E-03    2.5798        .18215E-05** at limit **
  12  norm          4.2752        7.4580       -.37049E-05    .25779E-06
  13  Prefactor     38.998        421.25        .25377E-04    .34347E-05
  14  Prefactor     .10000E-03    17.061       -.56166E-06** at limit **
  15  norm          5.4540        3.2882        .19205E-06   -.45416E-03
  16  Prefactor     25.224        84.289       -.23341E-05   -.29194E-04
  17  Prefactor     .10000E-03    8.2015       -.28706E-06** at limit **
  18  Prefactor     .10000E-03    11.677       -.63807E-07** at limit **
  19  Prefactor     18.642        48.867        .39923E-06   -.33724E-06
  20  Normalizat    1.3334        .39213       -.21960E-05   -.96262E-04
  21  Prefactor     .49936        .26197        .13537E-05   -.14699E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 149.309
  Prefactor  = 0.000100008
  Prefactor  = 46.2229
  Prefactor  = 76.572
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 96.7526
  norm       = 10.9081
  Prefactor  = 0.0001
  Prefactor  = 65.1886
  norm       = 0.000100006
  norm       = 4.27522
  Prefactor  = 38.9977
  Prefactor  = 0.0001
  norm       = 5.45401
  Prefactor  = 25.2244
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.6415
  Normalizat = 1.33336
  Prefactor  = 0.499359
 **********
 **   18 **HESSE 
 **********

 FCN=   1814.053     FROM HESSE     STATUS=OK           315 CALLS     2969 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     149.31        104.01        .16488E-03   -1.3258    
   2  Prefactor     .10001E-03    1980.3        .18321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     46.223        96.716        .29454E-03   -1.4347    
   4  Prefactor     76.572        39.178        .45890E-04   -1.3956    
   5  Prefactor     .10000E-03    195.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.9178        .10075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     96.753        218.37        .20444E-03   -1.3738    
   8  norm          10.908        10.121        .12131E-03   -1.5047    
   9  Prefactor     .10000E-03    82.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     65.189        95.138        .49671E-04   -1.4091    
  11  norm          .10001E-03    6.5052        .12522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.2752        7.5209        .12869E-03   -1.5294    
  13  Prefactor     38.998        423.75        .32364E-03   -1.4458    
  14  Prefactor     .10000E-03    17.066        .17174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.4540        3.3686        .45537E-04   -1.5241    
  16  Prefactor     25.224        86.912        .79686E-04   -1.4703    
  17  Prefactor     .10000E-03    8.2070        .11912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.696        .14216E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     18.642        48.905        .92829E-04   -1.4844    
  20  Normalizat    1.3334        .46317        .27045E-03   -.82576    
  21  Prefactor     .49936        .30367        .28608E-03   -1.1201    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30776e-09
Minuit parameter uncertainties:
  1  104.138
  2  0.00804849
  3  97.0469
  4  39.1909
  5  0.000438268
  6  3.70788e-06
  7  220.224
  8  10.1224
  9  1.04247e-05
  10  95.3611
  11  0.000406016
  12  7.52256
  13  259.474
  14  2.74455e-06
  15  3.36868
  16  87.3527
  17  2.80545e-06
  18  5.69561e-06
  19  49.0101
  20  0.464625
  21  0.304665
Done.

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

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  1.000e-04  4.060e-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:  4.994e-01  3.047e-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.333e+00  4.646e-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: 2.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.80e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/415188/likelihoodResults_571622401_571881601_4FGL_J2236.5-1433_daily_bin1282.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) = 1814.05369401
delta logL = -0.000741931151651

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1814.05295254
delta logL = -4.62786147182e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10390E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0510       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3336       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .49917       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=   1814.053     FROM MIGRAD    STATUS=FAILED        94 CALLS      256 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10014E-03    804.50        .12547E-02** at limit **
   2  alpha         2.0166        3.4937        .16809        .21816E-05
   3  Normalizat    1.3334        .13278        .27046E-03   -.44313E-04
   4  Prefactor     .49936        .90506E-01    .28607E-03   -.30541E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   1814.053     FROM SIMPLEX   STATUS=UNCHANGED    157 CALLS      413 TOTAL
                     EDM=   .84E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10014E-03    804.50        .36581E-03** at limit **
   2  alpha         2.0166        3.4937        .11366E-04    .21816E-05
   3  Normalizat    1.3334        .13278        .65596E-06   -.44313E-04
   4  Prefactor     .49936        .90506E-01    .61656E-06   -.30541E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1814.053     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      445 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.6681        .25094E-03** at limit **
   2  alpha         2.0041        3.9723        .67237E-02    .69324E-08
   3  Normalizat    1.3334        .43089        .54091E-04    .80371E-04
   4  Prefactor     .49936        .29262        .11443E-04    .83753E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.00414
  Normalizat = 1.33335
  Prefactor  = 0.499362
 **********
 **   18 **HESSE 
 **********

 FCN=   1814.053     FROM HESSE     STATUS=OK            23 CALLS      468 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.6670        .50189E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0041        3.9691        .13447E-02   -.19967    
   3  Normalizat    1.3334        .43092        .10818E-04   -.82576    
   4  Prefactor     .49936        .29265        .22886E-05   -1.1201    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.36175e-11
Minuit parameter uncertainties:
  1  3.39173e-06
  2  118.301
  3  0.432094
  4  0.293536
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/415188': 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) = 1814.05295195
delta logL = 1.30087755679e-07

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  1.000e-04  3.392e-06  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  2.004e+00  1.183e+02  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:  4.994e-01  2.935e-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.333e+00  4.321e-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/415188/cmap_HighResolution_571622401_571881601_4FGL_J2236.5-1433_daily_bin1282.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.80e-05', job_status='DONE', photon_flux_upper_limit='2.01e-07', time_completed='2021-09-28 17:42:14.216962', job_id='415188', GAL2='0.50', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1632876134.22', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.50', dlogl='1.30e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1282' AND source_name='4FGL J2236.5-1433' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:42:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 415188: <4FGL_J2236.5-1433_daily_bin1282> in cluster <slac> Done

Job <4FGL_J2236.5-1433_daily_bin1282> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 17:35:15 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:35:17 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:35:17 2021
Terminated at Tue Sep 28 17:42:14 2021
Results reported at Tue Sep 28 17:42:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.5-1433_daily_bin1282 339.144 -14.5557 571622401 571881601 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 :                                   392.29 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             322.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   417 sec.
    Turnaround time :                            419 sec.

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

