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


Performing analysis on: 4FGL_J2236.5-1433_daily_bin1241
RA = 339.144, Dec = -14.5557
tmin = 560995201, tmax = 561254401
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='414162', job_status='RUN', time_executed='2021-09-28 17:31:43.728694', time_epoch_executed='1632875503.73' WHERE source_name='4FGL J2236.5-1433' and cadence='daily' and bin_id='1241'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/414162

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/414162/ft1_4FGL_J2236.5-1433_daily_bin1241.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/414162/ft2_4FGL_J2236.5-1433_daily_bin1241.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/414162/ft1_4FGL_J2236.5-1433_daily_bin1241.fits outfile=/scratch/kocevski/414162/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1241.fits ra=339.144 dec=-14.5557 rad=12.0 tmin=560995201.0 tmax=561254401.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.78
user 3.52
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/414162/ft1_filtered_4FGL_J2236.5-1433_daily_bin1241.fits" evtable="EVENTS" scfile=/scratch/kocevski/414162/ft2_4FGL_J2236.5-1433_daily_bin1241.fits sctable="SC_DATA" outfile=/scratch/kocevski/414162/ltcube_560995201_561254401_4FGL_J2236.5-1433_daily_bin1241.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/414162/ft2_4FGL_J2236.5-1433_daily_bin1241.fits
.....................!
real 11.75
user 11.28
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/414162/ft1_filtered_4FGL_J2236.5-1433_daily_bin1241.fits evtable="EVENTS" scfile=/scratch/kocevski/414162/ft2_4FGL_J2236.5-1433_daily_bin1241.fits sctable="SC_DATA" expcube=/scratch/kocevski/414162/ltcube_560995201_561254401_4FGL_J2236.5-1433_daily_bin1241.fits outfile=/scratch/kocevski/414162/expmap_560995201_561254401_4FGL_J2236.5-1433_daily_bin1241.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/414162/ltcube_560995201_561254401_4FGL_J2236.5-1433_daily_bin1241.fits
.....................!
real 190.48
user 185.17
sys 4.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/414162/ft1_filtered_4FGL_J2236.5-1433_daily_bin1241.fits scfile=/scratch/kocevski/414162/ft2_4FGL_J2236.5-1433_daily_bin1241.fits outfile=/scratch/kocevski/414162/cmap_560995201_561254401_4FGL_J2236.5-1433_daily_bin1241.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/414162/ft1_filtered_4FGL_J2236.5-1433_daily_bin1241.fits scfile=/scratch/kocevski/414162/ft2_4FGL_J2236.5-1433_daily_bin1241.fits outfile=/scratch/kocevski/414162/cmap_HighResolution_560995201_561254401_4FGL_J2236.5-1433_daily_bin1241.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/414162/ft1_filtered_4FGL_J2236.5-1433_daily_bin1241.fits evtable="EVENTS" scfile=/scratch/kocevski/414162/ft2_4FGL_J2236.5-1433_daily_bin1241.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/414162/Model_4FGL_J2236.5-1433_daily_bin1241.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/414162/ft1_filtered_4FGL_J2236.5-1433_daily_bin1241.fits.....................!
real 86.72
user 85.18
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.619       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .42248E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.2551       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .54593       1.0000         .10000E-03   10000.    
     9 'Prefactor '    63.708       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.5324       1.0000         .10000E-03   10000.    
    11 'norm      '    1.8952       1.0000         .10000E-03   10000.    
    12 'norm      '    .10355E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    74.302       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .16062E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.9342       1.0000         .10000E-03   10000.    
    16 'Prefactor '    72.100       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.5864       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15907E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.0657       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .75795       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .97357       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=   11431.66     FROM MIGRAD    STATUS=CONVERGED    487 CALLS     2370 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.6706       -.14164E-07** at limit **
   2  Prefactor     .10000E-03    3.5729       -.27474E-08** at limit **
   3  Prefactor     20.613        10.037       -.56953E-06   -.17032E-03
   4  Prefactor     .10000E-03    6.3751       -.79887E-07** at limit **
   5  Prefactor     .10013E-03    24.831       -.57472E-06** at limit **
   6  Prefactor     1.2562        2.7052        .81354E-06   -.96449E-04
   7  Prefactor     .10000E-03    16.983        .10464E-06** at limit **
   8  norm          .54703        1.3030        .36658E-06   -.67106E-04
   9  Prefactor     63.677        49.162       -.22833E-05   -.94669E-04
  10  Prefactor     7.5306        7.3112        .38244E-07    .25941E-04
  11  norm          1.8951        .63889       -.94250E-08   -.40233E-03
  12  norm          .10001E-03    .73230       -.42041E-06** at limit **
  13  Prefactor     74.323        30.114        .41229E-06    .12203E-03
  14  Prefactor     .10000E-03    9.0771        .60963E-06** at limit **
  15  norm          1.9340        .98122       -.10430E-06   -.17634E-02
  16  Prefactor     72.098        27.073       -.11234E-06   -.29352E-03
  17  Prefactor     5.5871        6.1167        .45306E-06    .25671E-04
  18  Prefactor     .10000E-03    2.8613        .11894E-06** at limit **
  19  Prefactor     6.0662        9.3499       -.18105E-07   -.12696E-04
  20  Normalizat    .75822        .13498        .62616E-06   -.16162E-03
  21  Prefactor     .97336        .10154       -.37084E-06   -.50887E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.6135
  Prefactor  = 0.0001
  Prefactor  = 0.000100129
  Prefactor  = 1.2562
  Prefactor  = 0.0001
  norm       = 0.547032
  Prefactor  = 63.677
  Prefactor  = 7.53065
  norm       = 1.89509
  norm       = 0.000100006
  Prefactor  = 74.3227
  Prefactor  = 0.0001
  norm       = 1.93397
  Prefactor  = 72.0978
  Prefactor  = 5.58706
  Prefactor  = 0.000100001
  Prefactor  = 6.0662
  Normalizat = 0.758217
  Prefactor  = 0.97336
 **********
 **   18 **HESSE 
 **********

 FCN=   11431.66     FROM HESSE     STATUS=OK           333 CALLS     2703 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7439        .34108E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.5890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     20.613        10.066        .88207E-04   -1.4800    
   4  Prefactor     .10000E-03    6.4915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10013E-03    23.817        .17194       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.2562        2.6469        .24187E-03   -1.5484    
   7  Prefactor     .10000E-03    17.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .54703        1.2912        .17674E-03   -1.5560    
   9  Prefactor     63.677        49.395        .50277E-04   -1.4110    
  10  Prefactor     7.5306        7.3052        .14612E-03   -1.5159    
  11  norm          1.8951        .63543        .47431E-04   -1.5433    
  12  norm          .10001E-03    3.3239        .15721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     74.323        29.832        .46579E-04   -1.3982    
  14  Prefactor     .10000E-03    45.797        .46807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.9340        .90379        .56694E-04   -1.5430    
  16  Prefactor     72.098        25.880        .47280E-04   -1.4008    
  17  Prefactor     5.5871        6.1078        .16997E-03   -1.5235    
  18  Prefactor     .10000E-03    12.625        .34541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.0662        9.3451        .16302E-03   -1.5215    
  20  Normalizat    .75822        .15681        .28313E-03   -1.0164    
  21  Prefactor     .97336        .11975        .20004E-03   -.93623    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17238e-09
Minuit parameter uncertainties:
  1  2.34269e-06
  2  2.5371e-06
  3  10.0665
  4  1.42777e-05
  5  0.00350957
  6  2.64713
  7  5.98224e-06
  8  1.2913
  9  49.4272
  10  7.30602
  11  0.635431
  12  0.000292296
  13  29.8376
  14  8.97675e-05
  15  0.903795
  16  25.8842
  17  6.10852
  18  0.000193269
  19  9.34737
  20  0.156907
  21  0.119785
Done.

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

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  1.895e+00  6.354e-01  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:  9.734e-01  1.198e-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:  7.582e-01  1.569e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 21.23
Ra Dec: 339.144 -14.556
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 7.35e-08 +/- 2.46e-08
Energy Flux (Fixed Index): 3.59e-05 +/- 1.20e-05

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) = 11429.612592
delta logL = 2.04866073541

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11429.6102205
delta logL = 2.05103219383

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5733       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7596       1.0000          .0000       5.0000    
     3 'Normalizat'    .69421       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0010       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=   11429.61     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      231 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5733        5.2957        .81250E-02    .65705E-03
   2  alpha         2.7596        3.7099        .23770        .78363E-04
   3  Normalizat    .69422        .65743E-01    .66475E-01    .30476E-04
   4  Prefactor     1.0010        .41601E-01    .45354E-01   -.15465E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.57327
  alpha      = 2.75963
  Normalizat = 0.694218
  Prefactor  = 1.00105
 **********
 **   18 **HESSE 
 **********

 FCN=   11429.61     FROM HESSE     STATUS=OK            33 CALLS      264 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5733        .61975        .36121E-04   -1.5457    
   2  alpha         2.7596        .36754        .97547E-02    .10404    
   3  Normalizat    .69422        .15207        .29413E-03   -1.0412    
   4  Prefactor     1.0010        .11870        .19725E-03   -.92695    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.93027e-09
Minuit parameter uncertainties:
  1  0.619757
  2  0.368889
  3  0.152157
  4  0.118734
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/414162': 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) = 11429.6102205
delta logL = 2.05103219514

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  1.573e+00  6.198e-01  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  2.760e+00  3.689e-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.001e+00  1.187e-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:  6.942e-01  1.522e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 25.38
Ra Dec: 339.144 -14.556
Photon Index (Free Index): 2.76 +/- 0.37
Photon Flux (Free Index): 1.32e-07 +/- 4.47e-08
Energy Flux (Free Index): 3.09e-05 +/- 8.85e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/414162/cmap_HighResolution_560995201_561254401_4FGL_J2236.5-1433_daily_bin1241.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.35e-08', energy_flux2='3.09e-05', photon_flux_error='2.46e-08', dlogl='2.05e+00', energy_flux='3.59e-05', photon_flux2='1.32e-07', job_status='DONE', time_completed='2021-09-28 17:44:06.176262', photon_index_error2='0.37', photon_index2='2.76', ts='21.23', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='8.85e-06', EG='0.76', time_epoch_completed='1632876246.18', return_code='0', job_id='414162', GAL2='1.00', EG2='0.69', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='4.47e-08', ts2='25.38', photon_index='2.06' WHERE bin_id='1241' AND source_name='4FGL J2236.5-1433' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:44:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 414162: <4FGL_J2236.5-1433_daily_bin1241> in cluster <slac> Done

Job <4FGL_J2236.5-1433_daily_bin1241> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 17:30:58 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:31:00 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:31:00 2021
Terminated at Tue Sep 28 17:44:06 2021
Results reported at Tue Sep 28 17:44:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.5-1433_daily_bin1241 339.144 -14.5557 560995201 561254401 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 :                                   741.12 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             320.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   786 sec.
    Turnaround time :                            788 sec.

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

