/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 168 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_bin1017
RA = 339.144, Dec = -14.5557
tmin = 502934401, tmax = 503193601
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='413824', job_status='RUN', time_executed='2021-09-28 17:33:33.811777', time_epoch_executed='1632875613.81' WHERE source_name='4FGL J2236.5-1433' and cadence='daily' and bin_id='1017'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/413824

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/413824/ft1_4FGL_J2236.5-1433_daily_bin1017.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/413824/ft2_4FGL_J2236.5-1433_daily_bin1017.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/413824/ft1_4FGL_J2236.5-1433_daily_bin1017.fits outfile=/scratch/kocevski/413824/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1017.fits ra=339.144 dec=-14.5557 rad=12.0 tmin=502934401.0 tmax=503193601.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.57
user 3.33
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/413824/ft1_filtered_4FGL_J2236.5-1433_daily_bin1017.fits" evtable="EVENTS" scfile=/scratch/kocevski/413824/ft2_4FGL_J2236.5-1433_daily_bin1017.fits sctable="SC_DATA" outfile=/scratch/kocevski/413824/ltcube_502934401_503193601_4FGL_J2236.5-1433_daily_bin1017.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/413824/ft2_4FGL_J2236.5-1433_daily_bin1017.fits
.....................!
real 11.64
user 11.31
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/413824/ft1_filtered_4FGL_J2236.5-1433_daily_bin1017.fits evtable="EVENTS" scfile=/scratch/kocevski/413824/ft2_4FGL_J2236.5-1433_daily_bin1017.fits sctable="SC_DATA" expcube=/scratch/kocevski/413824/ltcube_502934401_503193601_4FGL_J2236.5-1433_daily_bin1017.fits outfile=/scratch/kocevski/413824/expmap_502934401_503193601_4FGL_J2236.5-1433_daily_bin1017.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/413824/ltcube_502934401_503193601_4FGL_J2236.5-1433_daily_bin1017.fits
.....................!
real 190.97
user 185.41
sys 5.25

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/413824/ft1_filtered_4FGL_J2236.5-1433_daily_bin1017.fits scfile=/scratch/kocevski/413824/ft2_4FGL_J2236.5-1433_daily_bin1017.fits outfile=/scratch/kocevski/413824/cmap_502934401_503193601_4FGL_J2236.5-1433_daily_bin1017.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/413824/ft1_filtered_4FGL_J2236.5-1433_daily_bin1017.fits scfile=/scratch/kocevski/413824/ft2_4FGL_J2236.5-1433_daily_bin1017.fits outfile=/scratch/kocevski/413824/cmap_HighResolution_502934401_503193601_4FGL_J2236.5-1433_daily_bin1017.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/413824/ft1_filtered_4FGL_J2236.5-1433_daily_bin1017.fits evtable="EVENTS" scfile=/scratch/kocevski/413824/ft2_4FGL_J2236.5-1433_daily_bin1017.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/413824/Model_4FGL_J2236.5-1433_daily_bin1017.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/413824/ft1_filtered_4FGL_J2236.5-1433_daily_bin1017.fits.....................!
real 59.75
user 58.46
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.4723       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.215       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.8844       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10437E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.8721       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10280E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.3159       1.0000         .10000E-03   10000.    
    11 'norm      '    .34068       1.0000         .10000E-03   10000.    
    12 'norm      '    1.1046       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10406E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    51.712       1.0000         .10000E-03   10000.    
    15 'norm      '    .11691       1.0000         .10000E-03   10000.    
    16 'Prefactor '    58.121       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.8725       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .90242       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .92951       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=   7244.167     FROM MIGRAD    STATUS=CONVERGED    457 CALLS     2332 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.4727        5.6688       -.56015E-06   -.11565E-03
   2  Prefactor     11.215        14.853       -.84678E-06   -.31693E-04
   3  Prefactor     .10000E-03    3.1226       -.49878E-06** at limit **
   4  Prefactor     .10000E-03    3.4263       -.20479E-06** at limit **
   5  Prefactor     7.8902        34.107       -.10445E-05   -.10231E-04
   6  Prefactor     .10000E-03    1.1009       -.21258E-06** at limit **
   7  Prefactor     .10000E-03    50.341       -.29456E-05** at limit **
   8  norm          3.8721        2.5769       -.38674E-06   -.17867E-03
   9  Prefactor     .10000E-03    26.724       -.41152E-06** at limit **
  10  Prefactor     9.3146        9.2917        .62082E-06    .89155E-04
  11  norm          .34089        .63431       -.62945E-06   -.43438E-03
  12  norm          1.1043        1.3634        .54901E-06    .34563E-03
  13  Prefactor     .10000E-03    35.628       -.68165E-06** at limit **
  14  Prefactor     51.621        38.986        .37071E-06    .11842E-03
  15  norm          .12373        17.713        .13605E-05    .93611E-04
  16  Prefactor     58.160        34.967       -.13831E-05   -.29901E-04
  17  Prefactor     .10000E-03    3.3148       -.21619E-05** at limit **
  18  Prefactor     3.8740        7.7975       -.27175E-05   -.13656E-03
  19  Prefactor     .10000E-03    26.620       -.74075E-06** at limit **
  20  Normalizat    .90267        .18365        .56165E-05   -.94183E-04
  21  Prefactor     .92930        .13939       -.33278E-05    .32809E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.47268
  Prefactor  = 11.2155
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.89018
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.87207
  Prefactor  = 0.0001
  Prefactor  = 9.31461
  norm       = 0.340892
  norm       = 1.10432
  Prefactor  = 0.0001
  Prefactor  = 51.6214
  norm       = 0.123729
  Prefactor  = 58.1596
  Prefactor  = 0.0001
  Prefactor  = 3.87395
  Prefactor  = 0.0001
  Normalizat = 0.90267
  Prefactor  = 0.929305
 **********
 **   18 **HESSE 
 **********

 FCN=   7244.167     FROM HESSE     STATUS=OK           321 CALLS     2653 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.4727        5.6688        .13772E-03   -1.5126    
   2  Prefactor     11.215        14.852        .11963E-03   -1.5038    
   3  Prefactor     .10000E-03    3.1352        .14690E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.4411        .15386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.8902        34.154        .14280E-03   -1.5146    
   6  Prefactor     .10000E-03    1.1077        .87200E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    50.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.8721        2.5789        .10736E-03   -1.5314    
   9  Prefactor     .10000E-03    26.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.3146        9.3248        .13130E-03   -1.5097    
  11  norm          .34089        .64029        .42408E-04   -1.5591    
  12  norm          1.1043        1.3430        .10762E-03   -1.5498    
  13  Prefactor     .10000E-03    35.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     51.621        75.272        .55771E-04   -1.4270    
  15  norm          .12373        71.095        .11763E-02   -1.5638    
  16  Prefactor     58.160        35.352        .52623E-04   -1.4181    
  17  Prefactor     .10000E-03    3.3497        .15186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.8740        7.8523        .20505E-03   -1.5314    
  19  Prefactor     .10000E-03    26.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .90267        .21002        .26669E-03   -.96366    
  21  Prefactor     .92930        .15820        .20674E-03   -.95124    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02819e-09
Minuit parameter uncertainties:
  1  5.66914
  2  14.857
  3  8.14259e-06
  4  2.69754e-06
  5  32.8632
  6  1.74354e-06
  7  0.000233242
  8  2.57902
  9  2.58126e-05
  10  9.32627
  11  0.640307
  12  1.34306
  13  0.000187101
  14  75.4106
  15  5.93646
  16  35.3649
  17  2.86015e-05
  18  7.85443
  19  2.97777e-05
  20  0.210207
  21  0.158282
Done.

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

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  3.409e-01  6.403e-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.293e-01  1.583e-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.027e-01  2.102e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/413824/likelihoodResults_502934401_503193601_4FGL_J2236.5-1433_daily_bin1017.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) = 7243.81449754
delta logL = 0.352215319652

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7243.81358845
delta logL = 0.353124414598

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .36389       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9664       1.0000          .0000       5.0000    
     3 'Normalizat'    .87718       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93808       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=   7243.814     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      210 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .36375        6.4806        .10702E-01    .19900E-02
   2  alpha         2.9666        3.9454        .42095        .43460E-04
   3  Normalizat    .87730        .33629E-01    .44609E-01    .28586E-04
   4  Prefactor     .93801        .26656E-01    .45489E-01   -.60316E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.363752
  alpha      = 2.96663
  Normalizat = 0.877301
  Prefactor  = 0.938012
 **********
 **   18 **HESSE 
 **********

 FCN=   7243.814     FROM HESSE     STATUS=OK            35 CALLS      245 TOTAL
                     EDM=   .99E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .36375        .77098        .55357E-03   -1.5587    
   2  alpha         2.9666        1.5073        .21801E-01    .18776    
   3  Normalizat    .87730        .19704        .26992E-03   -.97262    
   4  Prefactor     .93801        .15362        .20575E-03   -.94825    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.88893e-12
Minuit parameter uncertainties:
  1  0.771
  2  1.6228
  3  0.197202
  4  0.153693
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/413824': 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) = 7243.8135882
delta logL = 0.353124666347

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  3.638e-01  7.710e-01  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  2.967e+00  1.623e+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.380e-01  1.537e-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:  8.773e-01  1.972e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.08
Ra Dec: 339.144 -14.556
Photon Index (Free Index): 2.97 +/- 1.62
Photon Flux (Free Index): 3.97e-08 +/- 4.60e-08
Energy Flux (Free Index): 8.32e-06 +/- 1.00e-05

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/413824/cmap_HighResolution_502934401_503193601_4FGL_J2236.5-1433_daily_bin1017.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.69e-05', comment='SUCCESS', energy_flux2='8.32e-06', dlogl='3.53e-01', photon_flux2='3.97e-08', job_status='DONE', time_completed='2021-09-28 17:44:04.635317', photon_index_error2='1.62', photon_index2='2.97', ts='0.37', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='7.55e-08', energy_flux_error2='1.00e-05', EG='0.90', time_epoch_completed='1632876244.64', return_code='0', job_id='413824', GAL2='0.94', EG2='0.88', return_code2='0', photon_flux_error2='4.60e-08', ts2='1.08', photon_index='2.06' WHERE bin_id='1017' AND source_name='4FGL J2236.5-1433' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:44:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 413824: <4FGL_J2236.5-1433_daily_bin1017> in cluster <slac> Done

Job <4FGL_J2236.5-1433_daily_bin1017> 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) <bullet0286>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:30:37 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:37 2021
Terminated at Tue Sep 28 17:44:05 2021
Results reported at Tue Sep 28 17:44:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.5-1433_daily_bin1017 339.144 -14.5557 502934401 503193601 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 :                                   630.24 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             277.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            809 sec.

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

