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


Performing analysis on: 4FGL_J2236.5-1433_daily_bin905
RA = 339.144, Dec = -14.5557
tmin = 473904001, tmax = 474163201
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='413659', job_status='RUN', time_executed='2021-09-28 17:33:25.587072', time_epoch_executed='1632875605.59' WHERE source_name='4FGL J2236.5-1433' and cadence='daily' and bin_id='905'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/413659

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/413659/ft1_4FGL_J2236.5-1433_daily_bin905.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/413659/ft2_4FGL_J2236.5-1433_daily_bin905.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/413659/ft1_4FGL_J2236.5-1433_daily_bin905.fits outfile=/scratch/kocevski/413659/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin905.fits ra=339.144 dec=-14.5557 rad=12.0 tmin=473904001.0 tmax=474163201.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 5.26
user 4.98
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/413659/ft1_filtered_4FGL_J2236.5-1433_daily_bin905.fits" evtable="EVENTS" scfile=/scratch/kocevski/413659/ft2_4FGL_J2236.5-1433_daily_bin905.fits sctable="SC_DATA" outfile=/scratch/kocevski/413659/ltcube_473904001_474163201_4FGL_J2236.5-1433_daily_bin905.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/413659/ft2_4FGL_J2236.5-1433_daily_bin905.fits
.....................!
real 12.41
user 12.07
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/413659/ft1_filtered_4FGL_J2236.5-1433_daily_bin905.fits evtable="EVENTS" scfile=/scratch/kocevski/413659/ft2_4FGL_J2236.5-1433_daily_bin905.fits sctable="SC_DATA" expcube=/scratch/kocevski/413659/ltcube_473904001_474163201_4FGL_J2236.5-1433_daily_bin905.fits outfile=/scratch/kocevski/413659/expmap_473904001_474163201_4FGL_J2236.5-1433_daily_bin905.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/413659/ltcube_473904001_474163201_4FGL_J2236.5-1433_daily_bin905.fits
.....................!
real 190.72
user 185.06
sys 5.16

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/413659/ft1_filtered_4FGL_J2236.5-1433_daily_bin905.fits scfile=/scratch/kocevski/413659/ft2_4FGL_J2236.5-1433_daily_bin905.fits outfile=/scratch/kocevski/413659/cmap_473904001_474163201_4FGL_J2236.5-1433_daily_bin905.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/413659/ft1_filtered_4FGL_J2236.5-1433_daily_bin905.fits scfile=/scratch/kocevski/413659/ft2_4FGL_J2236.5-1433_daily_bin905.fits outfile=/scratch/kocevski/413659/cmap_HighResolution_473904001_474163201_4FGL_J2236.5-1433_daily_bin905.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.39
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/413659/ft1_filtered_4FGL_J2236.5-1433_daily_bin905.fits evtable="EVENTS" scfile=/scratch/kocevski/413659/ft2_4FGL_J2236.5-1433_daily_bin905.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/413659/Model_4FGL_J2236.5-1433_daily_bin905.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/413659/ft1_filtered_4FGL_J2236.5-1433_daily_bin905.fits.....................!
real 47.26
user 45.87
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    32.216       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.0542       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.259       1.0000         .10000E-03   10000.    
     5 'Prefactor '    201.70       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.4556       1.0000         .10000E-03   10000.    
     7 'Prefactor '    65.130       1.0000         .10000E-03   10000.    
     8 'norm      '    7.9757       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10968E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.747       1.0000         .10000E-03   10000.    
    15 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.8694       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    34.507       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2177       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .65605       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4975.251     FROM MIGRAD    STATUS=CONVERGED     81 CALLS     1876 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.1507       -.64144E-08** at limit **
   2  Prefactor     32.223        1.2056        .36588E-06   -.20779E-03
   3  Prefactor     9.0555        1.0196       -.18856E-06    .22632E-03
   4  Prefactor     13.262        1.4678       -.11743E-05    .34748E-03
   5  Prefactor     201.70        1.0838        .17053E-06   -.24423E-02
   6  Prefactor     8.4534        6.0602       -.81723E-05    .69656E-03
   7  Prefactor     65.133        1.2599        .53752E-06   -.24487E-02
   8  norm          7.9756        4.5241        .11693E-05    .22796E-03
   9  Prefactor     .10000E-03    105.35       -.32893E-04** at limit **
  10  Prefactor     .10000E-03    27.152       -.40569E-04** at limit **
  11  norm          .10000E-03    .36000        .14869E-06** at limit **
  12  norm          .10000E-03    1.0828       -.23468E-06** at limit **
  13  Prefactor     .10000E-03    16.563        .46593E-05** at limit **
  14  Prefactor     16.744        1.1255       -.56541E-06    .25058E-03
  15  norm          .10000E-03    .83459       -.82547E-08** at limit **
  16  Prefactor     .10000E-03    32.147        .49091E-04** at limit **
  17  Prefactor     6.8660        1.0381       -.15046E-06    .24940E-04
  18  Prefactor     .10000E-03    5.2926        .12178E-05** at limit **
  19  Prefactor     34.508        1.0052        .86543E-07   -.95976E-04
  20  Normalizat    1.2172        .24916       -.97263E-06    .37544E-03
  21  Prefactor     .65630        .18634        .44695E-05    .59768E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 32.2227
  Prefactor  = 9.0555
  Prefactor  = 13.2622
  Prefactor  = 201.705
  Prefactor  = 8.45341
  Prefactor  = 65.1333
  norm       = 7.97559
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 16.7437
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 6.86596
  Prefactor  = 0.000100001
  Prefactor  = 34.508
  Normalizat = 1.21725
  Prefactor  = 0.656305
 **********
 **   18 **HESSE 
 **********

 FCN=   4975.251     FROM HESSE     STATUS=OK           365 CALLS     2241 TOTAL
                     EDM=   .81E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.1078        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     32.223        24.115        .17649E-02   -1.4572    
   3  Prefactor     9.0555        16.097        .33300E-02   -1.5106    
   4  Prefactor     13.262        19.816        .27501E-02   -1.4979    
   5  Prefactor     201.70        110.97        .71133E-03   -1.2858    
   6  Prefactor     8.4534        6.9767        .34465E-02   -1.5126    
   7  Prefactor     65.133        65.019        .12432E-02   -1.4092    
   8  norm          7.9756        4.6016        .35494E-02   -1.5143    
   9  Prefactor     .10000E-03    105.29        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    26.116        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .35006        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.0697        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    16.555        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.744        15.151        .24468E-02   -1.4889    
  15  norm          .10000E-03    .65962        .27237E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    32.066        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.8660        12.045        .38270E-02   -1.5184    
  18  Prefactor     .10000E-03    5.2655        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     34.508        26.449        .17055E-02   -1.4532    
  20  Normalizat    1.2172        .21480        .55449E-01   -.86072    
  21  Prefactor     .65630        .15933        .41813E-01   -1.0527    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.08434e-08
Minuit parameter uncertainties:
  1  7.2929e-05
  2  24.1228
  3  16.1047
  4  19.8261
  5  111.082
  6  6.97739
  7  65.0902
  8  4.60185
  9  2.42523e-05
  10  0.000129108
  11  3.74637e-06
  12  2.04594e-05
  13  0.000336425
  14  15.1543
  15  5.22773e-06
  16  0.0005117
  17  12.049
  18  0.00017571
  19  26.4576
  20  0.214955
  21  0.159438
Done.

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

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  1.000e-04  3.746e-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:  6.563e-01  1.594e-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.217e+00  2.150e-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.27e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.07e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/413659/likelihoodResults_473904001_474163201_4FGL_J2236.5-1433_daily_bin905.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) = 4975.2510306
delta logL = -5.27861329829e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4975.25092217
delta logL = 5.56445502298e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0409       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2172       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65629       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=   4975.251     FROM MIGRAD    STATUS=FAILED        92 CALLS      279 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    7.9636        .76332E-03** at limit **
   2  alpha         3.0275        2.7367        .16976        .28112E-05
   3  Normalizat    1.2172        .24842        .24519E-03   -.30231E-04
   4  Prefactor     .65630        .18521        .24040E-03   -.10513E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4975.251     FROM SIMPLEX   STATUS=UNCHANGED    143 CALLS      422 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    7.9636        .11739E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.0275        2.7367        .15384E-03    .21258    
   3  Normalizat    1.2172        .24842        .49293E-04   -.86072    
   4  Prefactor     .65630        .18521        .23416E-04   -1.0527    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4975.251     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      454 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .60122        .15266E-03** at limit **
   2  alpha         3.0202        3.8858        .67904E-02    .25113E-07
   3  Normalizat    1.2172        .24865        .98076E-05    .76042E-04
   4  Prefactor     .65630        .18542        .96161E-05    .13620E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 3.02024
  Normalizat = 1.21724
  Prefactor  = 0.656305
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .60125        .30533E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.0202        3.8413        .27162E-03    .20963    
   3  Normalizat    1.2172        .24868        .19615E-05   -.86072    
   4  Prefactor     .65630        .18544        .19232E-05   -1.0527    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.37808e-11
Minuit parameter uncertainties:
  1  2.2353e-07
  2  79.8886
  3  0.248923
  4  0.185609
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/413659': 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) = 4975.25092208
delta logL = 5.57290086363e-05

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  1.000e-04  2.235e-07  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  3.020e+00  7.989e+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:  6.563e-01  1.856e-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.217e+00  2.489e-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/413659/cmap_HighResolution_473904001_474163201_4FGL_J2236.5-1433_daily_bin905.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.07e-05', job_status='DONE', photon_flux_upper_limit='6.27e-08', time_completed='2021-09-28 17:42:07.395207', job_id='413659', GAL2='0.66', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1632876127.4', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='5.57e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='905' AND source_name='4FGL J2236.5-1433' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:42:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 413659: <4FGL_J2236.5-1433_daily_bin905> in cluster <slac> Done

Job <4FGL_J2236.5-1433_daily_bin905> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 17:30:25 2021
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:30:26 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:26 2021
Terminated at Tue Sep 28 17:42:08 2021
Results reported at Tue Sep 28 17:42:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.5-1433_daily_bin905 339.144 -14.5557 473904001 474163201 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 :                                   520.31 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             308.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   701 sec.
    Turnaround time :                            703 sec.

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

