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


Performing analysis on: 4FGL_J2236.5-1433_daily_bin1021
RA = 339.144, Dec = -14.5557
tmin = 503971201, tmax = 504230401
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='413830', job_status='RUN', time_executed='2021-09-28 17:31:22.054149', time_epoch_executed='1632875482.05' WHERE source_name='4FGL J2236.5-1433' and cadence='daily' and bin_id='1021'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/413830

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/413830/ft1_4FGL_J2236.5-1433_daily_bin1021.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/413830/ft2_4FGL_J2236.5-1433_daily_bin1021.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/413830/ft1_4FGL_J2236.5-1433_daily_bin1021.fits outfile=/scratch/kocevski/413830/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1021.fits ra=339.144 dec=-14.5557 rad=12.0 tmin=503971201.0 tmax=504230401.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 4.09
user 3.81
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/413830/ft1_filtered_4FGL_J2236.5-1433_daily_bin1021.fits" evtable="EVENTS" scfile=/scratch/kocevski/413830/ft2_4FGL_J2236.5-1433_daily_bin1021.fits sctable="SC_DATA" outfile=/scratch/kocevski/413830/ltcube_503971201_504230401_4FGL_J2236.5-1433_daily_bin1021.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/413830/ft2_4FGL_J2236.5-1433_daily_bin1021.fits
.....................!
real 11.92
user 11.55
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/413830/ft1_filtered_4FGL_J2236.5-1433_daily_bin1021.fits evtable="EVENTS" scfile=/scratch/kocevski/413830/ft2_4FGL_J2236.5-1433_daily_bin1021.fits sctable="SC_DATA" expcube=/scratch/kocevski/413830/ltcube_503971201_504230401_4FGL_J2236.5-1433_daily_bin1021.fits outfile=/scratch/kocevski/413830/expmap_503971201_504230401_4FGL_J2236.5-1433_daily_bin1021.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/413830/ltcube_503971201_504230401_4FGL_J2236.5-1433_daily_bin1021.fits
.....................!
real 191.34
user 186.08
sys 4.94

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/413830/ft1_filtered_4FGL_J2236.5-1433_daily_bin1021.fits scfile=/scratch/kocevski/413830/ft2_4FGL_J2236.5-1433_daily_bin1021.fits outfile=/scratch/kocevski/413830/cmap_503971201_504230401_4FGL_J2236.5-1433_daily_bin1021.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/413830/ft1_filtered_4FGL_J2236.5-1433_daily_bin1021.fits scfile=/scratch/kocevski/413830/ft2_4FGL_J2236.5-1433_daily_bin1021.fits outfile=/scratch/kocevski/413830/cmap_HighResolution_503971201_504230401_4FGL_J2236.5-1433_daily_bin1021.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/413830/ft1_filtered_4FGL_J2236.5-1433_daily_bin1021.fits evtable="EVENTS" scfile=/scratch/kocevski/413830/ft2_4FGL_J2236.5-1433_daily_bin1021.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/413830/Model_4FGL_J2236.5-1433_daily_bin1021.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/413830/ft1_filtered_4FGL_J2236.5-1433_daily_bin1021.fits.....................!
real 76.09
user 74.78
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8536       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    30.146       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.5666       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.007       1.0000         .10000E-03   10000.    
     8 'norm      '    9.9488       1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.845       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.1651       1.0000         .10000E-03   10000.    
    11 'norm      '    .26569       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    118.36       1.0000         .10000E-03   10000.    
    15 'norm      '    9.1668       1.0000         .10000E-03   10000.    
    16 'Prefactor '    47.025       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.480       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .95414       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .98356       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=   8982.123     FROM MIGRAD    STATUS=CONVERGED    437 CALLS     2272 TOTAL
                     EDM=   .63E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8533        4.6175        .15779E-07   -.65675E-05
   2  Prefactor     .10000E-03    6.1521       -.30645E-07** at limit **
   3  Prefactor     30.147        13.156        .16261E-08   -.50964E-04
   4  Prefactor     .10000E-03    9.1488        .98071E-08** at limit **
   5  Prefactor     .10000E-03    25.132       -.92541E-07** at limit **
   6  Prefactor     2.5664        3.7925        .15855E-06    .26194E-05
   7  Prefactor     9.9094        85.071        .55889E-06   -.89354E-05
   8  norm          9.9487        3.9237        .37360E-09   -.52573E-04
   9  Prefactor     26.809        46.760        .37452E-06    .98034E-05
  10  Prefactor     1.1678        45.985        .10977E-05    .10316E-04
  11  norm          .26437        .43720        .50519E-06    .26856E-03
  12  norm          .10000E-03    .80300        .17495E-07** at limit **
  13  Prefactor     .10000E-03    26.556        .13859E-06** at limit **
  14  Prefactor     118.42        51.708       -.10883E-05   -.13637E-04
  15  norm          9.1629        4.4683        .28128E-06   -.62938E-03
  16  Prefactor     47.026        44.866        .29464E-07   -.72576E-05
  17  Prefactor     14.479        9.5691        .99395E-08   -.67394E-05
  18  Prefactor     .10000E-03    5.7297       -.26788E-07** at limit **
  19  Prefactor     .10000E-03    7.5012       -.13433E-07** at limit **
  20  Normalizat    .95399        .19839       -.50455E-06   -.63786E-04
  21  Prefactor     .98370        .13758        .12845E-06   -.11698E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.85333
  Prefactor  = 0.0001
  Prefactor  = 30.1466
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.56636
  Prefactor  = 9.90941
  norm       = 9.94866
  Prefactor  = 26.8089
  Prefactor  = 1.16777
  norm       = 0.264371
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 118.416
  norm       = 9.16289
  Prefactor  = 47.0258
  Prefactor  = 14.4793
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.953987
  Prefactor  = 0.983702
 **********
 **   18 **HESSE 
 **********

 FCN=   8982.123     FROM HESSE     STATUS=OK           325 CALLS     2597 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8533        4.6173        .14308E-03   -1.5147    
   2  Prefactor     .10000E-03    6.1737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     30.147        13.182        .72973E-04   -1.4609    
   4  Prefactor     .10000E-03    9.2453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    25.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.5664        3.8153        .10516E-02   -1.5388    
   7  Prefactor     9.9094        86.006        .12667E-03   -1.5078    
   8  norm          9.9487        3.9173        .10967E-03   -1.5077    
   9  Prefactor     26.809        46.826        .77319E-04   -1.4672    
  10  Prefactor     1.1678        46.520        .21305E-02   -1.5492    
  11  norm          .26437        .43895        .96553E-03   -1.5605    
  12  norm          .10000E-03    .80783        .82921E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    26.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     118.42        53.023        .36987E-04   -1.3527    
  15  norm          9.1629        4.5859        .60986E-04   -1.5102    
  16  Prefactor     47.026        44.855        .58471E-04   -1.4335    
  17  Prefactor     14.479        9.5705        .10526E-03   -1.4947    
  18  Prefactor     .10000E-03    5.8441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.5055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .95399        .23160        .31729E-03   -.94588    
  21  Prefactor     .98370        .16382        .23528E-03   -.93275    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35223e-10
Minuit parameter uncertainties:
  1  4.61752
  2  1.24115e-07
  3  13.1831
  4  9.69664e-06
  5  1.68718e-05
  6  3.81568
  7  58.5002
  8  3.91741
  9  46.8898
  10  14.7527
  11  0.438953
  12  3.6293e-07
  13  2.47753e-06
  14  53.0442
  15  4.58608
  16  44.8874
  17  9.57152
  18  1.05557e-05
  19  1.81027e-06
  20  0.231843
  21  0.163903
Done.

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

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  2.644e-01  4.390e-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.837e-01  1.639e-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:  9.540e-01  2.318e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/413830/likelihoodResults_503971201_504230401_4FGL_J2236.5-1433_daily_bin1021.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) = 8981.97392921
delta logL = 0.148994911029

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8981.96754416
delta logL = 0.155379954318

Fit tolerance = 1e-08

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

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

 FCN=   8981.968     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      244 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .30791        .47604        .76080E-03    .77892E-02
   2  alpha         2.7800        1.2859        .34020E-01    .14396E-03
   3  Normalizat    .94066        .21485        .31910E-03   -.93273E-04
   4  Prefactor     .98814        .16112        .23470E-03    .28194E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.307908
  alpha      = 2.78002
  Normalizat = 0.940663
  Prefactor  = 0.98814
 **********
 **   18 **HESSE 
 **********

 FCN=   8981.968     FROM HESSE     STATUS=OK            27 CALLS      271 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .30791        .44250        .15216E-03   -1.5597    
   2  alpha         2.7800        1.2043        .68040E-02    .11224    
   3  Normalizat    .94066        .21489        .12764E-04   -.95046    
   4  Prefactor     .98814        .16115        .46939E-04   -.93126    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.87211e-10
Minuit parameter uncertainties:
  1  0.442502
  2  1.25724
  3  0.215086
  4  0.16123
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/413830': 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) = 8981.96754415
delta logL = 0.155379970443

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  3.079e-01  4.425e-01  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  2.780e+00  1.257e+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:  9.881e-01  1.612e-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:  9.407e-01  2.151e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/413830/cmap_HighResolution_503971201_504230401_4FGL_J2236.5-1433_daily_bin1021.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.10e-05', job_status='DONE', photon_flux_upper_limit='6.35e-08', time_completed='2021-09-28 17:43:20.834399', job_id='413830', GAL2='0.99', fit_tolerance='1e-08', EG2='0.94', EG='0.95', time_epoch_completed='1632876200.83', return_code2='0', ts='0.59', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.55e-01', ts2='0.91', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1021' AND source_name='4FGL J2236.5-1433' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:43:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 413830: <4FGL_J2236.5-1433_daily_bin1021> in cluster <slac> Done

Job <4FGL_J2236.5-1433_daily_bin1021> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 17:30:36 2021
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:30:38 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:38 2021
Terminated at Tue Sep 28 17:43:21 2021
Results reported at Tue Sep 28 17:43:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.5-1433_daily_bin1021 339.144 -14.5557 503971201 504230401 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 :                                   718.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             305.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   763 sec.
    Turnaround time :                            765 sec.

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

