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


Performing analysis on: 4FGL_J2236.5-1433_daily_bin1466
RA = 339.144, Dec = -14.5557
tmin = 619315201, tmax = 619574401
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='415462', job_status='RUN', time_executed='2021-09-28 17:36:16.611546', time_epoch_executed='1632875776.61' WHERE source_name='4FGL J2236.5-1433' and cadence='daily' and bin_id='1466'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/415462

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/415462/ft1_4FGL_J2236.5-1433_daily_bin1466.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/415462/ft2_4FGL_J2236.5-1433_daily_bin1466.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/415462/ft1_4FGL_J2236.5-1433_daily_bin1466.fits outfile=/scratch/kocevski/415462/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1466.fits ra=339.144 dec=-14.5557 rad=12.0 tmin=619315201.0 tmax=619574401.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.59
user 3.36
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/415462/ft2_4FGL_J2236.5-1433_daily_bin1466.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/415462/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1466.fits evtable="EVENTS" outfile="/scratch/kocevski/415462/ft1_filtered_4FGL_J2236.5-1433_daily_bin1466.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/415462/ft1_filtered_4FGL_J2236.5-1433_daily_bin1466.fits" evtable="EVENTS" scfile=/scratch/kocevski/415462/ft2_4FGL_J2236.5-1433_daily_bin1466.fits sctable="SC_DATA" outfile=/scratch/kocevski/415462/ltcube_619315201_619574401_4FGL_J2236.5-1433_daily_bin1466.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/415462/ft2_4FGL_J2236.5-1433_daily_bin1466.fits
.....................!
real 11.70
user 11.34
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/415462/ft1_filtered_4FGL_J2236.5-1433_daily_bin1466.fits evtable="EVENTS" scfile=/scratch/kocevski/415462/ft2_4FGL_J2236.5-1433_daily_bin1466.fits sctable="SC_DATA" expcube=/scratch/kocevski/415462/ltcube_619315201_619574401_4FGL_J2236.5-1433_daily_bin1466.fits outfile=/scratch/kocevski/415462/expmap_619315201_619574401_4FGL_J2236.5-1433_daily_bin1466.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/415462/ltcube_619315201_619574401_4FGL_J2236.5-1433_daily_bin1466.fits
.....................!
real 189.80
user 184.54
sys 4.89

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/415462/ft1_filtered_4FGL_J2236.5-1433_daily_bin1466.fits scfile=/scratch/kocevski/415462/ft2_4FGL_J2236.5-1433_daily_bin1466.fits outfile=/scratch/kocevski/415462/cmap_619315201_619574401_4FGL_J2236.5-1433_daily_bin1466.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/415462/ft1_filtered_4FGL_J2236.5-1433_daily_bin1466.fits scfile=/scratch/kocevski/415462/ft2_4FGL_J2236.5-1433_daily_bin1466.fits outfile=/scratch/kocevski/415462/cmap_HighResolution_619315201_619574401_4FGL_J2236.5-1433_daily_bin1466.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/415462/ft1_filtered_4FGL_J2236.5-1433_daily_bin1466.fits evtable="EVENTS" scfile=/scratch/kocevski/415462/ft2_4FGL_J2236.5-1433_daily_bin1466.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/415462/Model_4FGL_J2236.5-1433_daily_bin1466.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/415462/ft1_filtered_4FGL_J2236.5-1433_daily_bin1466.fits.....................!
real 46.54
user 45.22
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.7213       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.2078       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10444E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    225.03       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.8085       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.3581       1.0000         .10000E-03   10000.    
     9 'Prefactor '    140.20       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    9.9181       1.0000         .10000E-03   10000.    
    12 'norm      '    5.2579       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.550       1.0000         .10000E-03   10000.    
    15 'norm      '    .41647E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10235E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.837       1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.963       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0469       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .84185       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=   4866.216     FROM MIGRAD    STATUS=CONVERGED    464 CALLS     2588 TOTAL
                     EDM=   .15E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.7243        9.9628        .12080E-05   -.22881E-05
   2  Prefactor     8.2022        24.258        .39020E-06   -.43799E-05
   3  Prefactor     .10000E-03    28.503        .37166E-06** at limit **
   4  Prefactor     .10000E-03    8.4940        .13821E-06** at limit **
   5  Prefactor     224.99        126.96        .39719E-05    .25044E-06
   6  Prefactor     3.8079        3.5554        .21031E-06    .26379E-04
   7  Prefactor     .10000E-03    25.298        .44066E-05** at limit **
   8  norm          1.3582        3.4037        .52056E-07   -.37307E-04
   9  Prefactor     140.25        99.803       -.43424E-05   -.21062E-05
  10  Prefactor     .10000E-03    7.3870       -.12199E-06** at limit **
  11  norm          9.9181        2.0319       -.38516E-07   -.63871E-04
  12  norm          5.2578        3.4354        .12832E-06    .63803E-04
  13  Prefactor     .10000E-03    31.063       -.38680E-05** at limit **
  14  Prefactor     24.543        15.044       -.67707E-06    .27768E-05
  15  norm          .10000E-03    5.7058       -.32559E-05** at limit **
  16  Prefactor     .10000E-03    282.13       -.31670E-06** at limit **
  17  Prefactor     23.844        18.572       -.38329E-07   -.35003E-05
  18  Prefactor     17.966        18.897        .70150E-07    .29831E-05
  19  Prefactor     .10000E-03    18.338       -.11165E-05** at limit **
  20  Normalizat    1.0468        .24454        .31593E-06   -.35503E-04
  21  Prefactor     .84199        .17942       -.89292E-06    .19248E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.72429
  Prefactor  = 8.20219
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 224.987
  Prefactor  = 3.80787
  Prefactor  = 0.0001
  norm       = 1.35823
  Prefactor  = 140.249
  Prefactor  = 0.0001
  norm       = 9.91811
  norm       = 5.25775
  Prefactor  = 0.0001
  Prefactor  = 24.543
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.8441
  Prefactor  = 17.9664
  Prefactor  = 0.0001
  Normalizat = 1.0468
  Prefactor  = 0.841992
 **********
 **   18 **HESSE 
 **********

 FCN=   4866.216     FROM HESSE     STATUS=OK           325 CALLS     2913 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.7243        9.9803        .67865E-03   -1.5117    
   2  Prefactor     8.2022        24.235        .13994E-03   -1.5135    
   3  Prefactor     .10000E-03    29.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.5314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     224.99        126.58        .13485E-03   -1.2697    
   6  Prefactor     3.8079        3.5562        .12246E-03   -1.5318    
   7  Prefactor     .10000E-03    25.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.3582        3.3508        .19102E-03   -1.5475    
   9  Prefactor     140.25        99.600        .17011E-03   -1.3334    
  10  Prefactor     .10000E-03    7.4071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          9.9181        2.0329        .42648E-04   -1.5078    
  12  norm          5.2578        3.4363        .10153E-03   -1.5249    
  13  Prefactor     .10000E-03    31.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     24.543        15.072        .80847E-04   -1.4717    
  15  norm          .10000E-03    5.7011        .11299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    275.22        .72205E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     23.844        18.350        .82044E-04   -1.4731    
  18  Prefactor     17.966        18.934        .94500E-04   -1.4860    
  19  Prefactor     .10000E-03    18.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0468        .29003        .29477E-03   -.91479    
  21  Prefactor     .84199        .21208        .24133E-03   -.98199    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.33972e-11
Minuit parameter uncertainties:
  1  9.98216
  2  24.2637
  3  0.000158681
  4  3.33008e-06
  5  126.733
  6  3.5564
  7  8.38766e-06
  8  3.35129
  9  99.719
  10  7.73652e-07
  11  2.03295
  12  3.43641
  13  1.55388e-05
  14  15.0748
  15  6.31471e-07
  16  0.000164152
  17  18.3539
  18  18.9402
  19  1.70708e-06
  20  0.290473
  21  0.212284
Done.

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

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  9.918e+00  2.033e+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

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  8.420e-01  2.123e-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.047e+00  2.905e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 85.51
Ra Dec: 339.144 -14.556
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 3.85e-07 +/- 7.88e-08
Energy Flux (Fixed Index): 1.88e-04 +/- 3.85e-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) = 4865.67135291
delta logL = 0.544715151746

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4865.65672193
delta logL = 0.559346136702

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.9901       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8701       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0937       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82223       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=   4865.657     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      201 TOTAL
                     EDM=   .48E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.9902        2.1010        .31694E-02    .17520E-05
   2  alpha         1.8703        .17906        .11297       -.68293E-05
   3  Normalizat    1.0937        .23850        .65512E-01    .89645E-05
   4  Prefactor     .82226        .17648        .44006E-01    .10735E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.99021
  alpha      = 1.87034
  Normalizat = 1.09369
  Prefactor  = 0.822263
 **********
 **   18 **HESSE 
 **********

 FCN=   4865.657     FROM HESSE     STATUS=OK            31 CALLS      232 TOTAL
                     EDM=   .28E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.9902        2.0987        .44126E-04   -1.5076    
   2  alpha         1.8703        .18152        .49288E-03   -.25460    
   3  Normalizat    1.0937        .28433        .28981E-03   -.89955    
   4  Prefactor     .82226        .21018        .24417E-03   -.98913    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.78064e-15
Minuit parameter uncertainties:
  1  2.09874
  2  0.181695
  3  0.284733
  4  0.210385
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/415462': 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) = 4865.65672095
delta logL = 0.559347107872

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  9.990e+00  2.099e+00  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  1.870e+00  1.817e-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:  8.223e-01  2.104e-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.094e+00  2.847e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 86.66
Ra Dec: 339.144 -14.556
Photon Index (Free Index): 1.87 +/- 0.18
Photon Flux (Free Index): 3.30e-07 +/- 8.64e-08
Energy Flux (Free Index): 2.30e-04 +/- 6.81e-05

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/415462/cmap_HighResolution_619315201_619574401_4FGL_J2236.5-1433_daily_bin1466.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.85e-07', energy_flux2='2.30e-04', photon_flux_error='7.88e-08', dlogl='5.59e-01', energy_flux='1.88e-04', photon_flux2='3.30e-07', job_status='DONE', time_completed='2021-09-28 17:44:32.434440', photon_index_error2='0.18', photon_index2='1.87', ts='85.51', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='6.81e-05', EG='1.05', time_epoch_completed='1632876272.43', return_code='0', job_id='415462', GAL2='0.82', EG2='1.09', return_code2='0', energy_flux_error='3.85e-05', photon_flux_error2='8.64e-08', ts2='86.66', photon_index='2.06' WHERE bin_id='1466' AND source_name='4FGL J2236.5-1433' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:44:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 415462: <4FGL_J2236.5-1433_daily_bin1466> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.5-1433_daily_bin1466 339.144 -14.5557 619315201 619574401 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 :                                   493.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             296.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   536 sec.
    Turnaround time :                            537 sec.

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

