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


Performing analysis on: 4FGL_J2236.5-1433_daily_bin1222
RA = 339.144, Dec = -14.5557
tmin = 556070401, tmax = 556329601
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='414142', job_status='RUN', time_executed='2021-09-28 17:32:22.890662', time_epoch_executed='1632875542.89' WHERE source_name='4FGL J2236.5-1433' and cadence='daily' and bin_id='1222'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/414142

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/414142/ft1_4FGL_J2236.5-1433_daily_bin1222.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/414142/ft2_4FGL_J2236.5-1433_daily_bin1222.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/414142/ft1_4FGL_J2236.5-1433_daily_bin1222.fits outfile=/scratch/kocevski/414142/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1222.fits ra=339.144 dec=-14.5557 rad=12.0 tmin=556070401.0 tmax=556329601.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.72
user 3.52
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/414142/ft1_filtered_4FGL_J2236.5-1433_daily_bin1222.fits" evtable="EVENTS" scfile=/scratch/kocevski/414142/ft2_4FGL_J2236.5-1433_daily_bin1222.fits sctable="SC_DATA" outfile=/scratch/kocevski/414142/ltcube_556070401_556329601_4FGL_J2236.5-1433_daily_bin1222.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/414142/ft2_4FGL_J2236.5-1433_daily_bin1222.fits
.....................!
real 11.78
user 11.43
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/414142/ft1_filtered_4FGL_J2236.5-1433_daily_bin1222.fits evtable="EVENTS" scfile=/scratch/kocevski/414142/ft2_4FGL_J2236.5-1433_daily_bin1222.fits sctable="SC_DATA" expcube=/scratch/kocevski/414142/ltcube_556070401_556329601_4FGL_J2236.5-1433_daily_bin1222.fits outfile=/scratch/kocevski/414142/expmap_556070401_556329601_4FGL_J2236.5-1433_daily_bin1222.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/414142/ltcube_556070401_556329601_4FGL_J2236.5-1433_daily_bin1222.fits
.....................!
real 189.78
user 185.33
sys 4.05

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/414142/ft1_filtered_4FGL_J2236.5-1433_daily_bin1222.fits scfile=/scratch/kocevski/414142/ft2_4FGL_J2236.5-1433_daily_bin1222.fits outfile=/scratch/kocevski/414142/cmap_556070401_556329601_4FGL_J2236.5-1433_daily_bin1222.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/414142/ft1_filtered_4FGL_J2236.5-1433_daily_bin1222.fits scfile=/scratch/kocevski/414142/ft2_4FGL_J2236.5-1433_daily_bin1222.fits outfile=/scratch/kocevski/414142/cmap_HighResolution_556070401_556329601_4FGL_J2236.5-1433_daily_bin1222.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/414142/ft1_filtered_4FGL_J2236.5-1433_daily_bin1222.fits evtable="EVENTS" scfile=/scratch/kocevski/414142/ft2_4FGL_J2236.5-1433_daily_bin1222.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/414142/Model_4FGL_J2236.5-1433_daily_bin1222.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/414142/ft1_filtered_4FGL_J2236.5-1433_daily_bin1222.fits.....................!
real 71.47
user 70.09
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.617       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.1706       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .89626       1.0000         .10000E-03   10000.    
     7 'Prefactor '    44.037       1.0000         .10000E-03   10000.    
     8 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.5023       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.083       1.0000         .10000E-03   10000.    
    11 'norm      '    .46904E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    3.2621       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.505       1.0000         .10000E-03   10000.    
    15 'norm      '    8.3424       1.0000         .10000E-03   10000.    
    16 'Prefactor '    29.939       1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.441       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.7499       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0680       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0102       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=   9076.932     FROM MIGRAD    STATUS=CONVERGED    461 CALLS     2258 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.5944        .50856E-07** at limit **
   2  Prefactor     .10000E-03    24.926        .10256E-05** at limit **
   3  Prefactor     10.619        11.243        .23508E-06    .90043E-04
   4  Prefactor     7.1741        14.619        .35103E-05    .22079E-03
   5  Prefactor     .10000E-03    20.164        .29806E-07** at limit **
   6  Prefactor     .89847        4.4353       -.13685E-05   -.17918E-04
   7  Prefactor     44.031        46.795       -.12268E-05    .54204E-05
   8  norm          .10022E-03    1.4106       -.91389E-06** at limit **
   9  Prefactor     2.4295        873.64        .25164E-04    .83409E-05
  10  Prefactor     12.086        8.6554       -.92110E-07   -.31252E-04
  11  norm          .97690E-02    .29371       -.17183E-06    .65836E-03
  12  norm          3.2622        1.7024       -.12568E-07    .77771E-05
  13  Prefactor     .10000E-03    69.073        .53441E-07** at limit **
  14  Prefactor     10.529        40.293        .79718E-05    .10698E-03
  15  norm          8.3397        3.2321       -.87708E-06    .13133E-02
  16  Prefactor     29.953        44.870        .19775E-05    .65433E-04
  17  Prefactor     17.441        11.360       -.11225E-06    .16227E-04
  18  Prefactor     4.7502        6.6848       -.61337E-06   -.16788E-03
  19  Prefactor     .10000E-03    4.4803        .11107E-07** at limit **
  20  Normalizat    1.0678        .17520       -.12518E-05    .52101E-03
  21  Prefactor     1.0104        .13376        .16599E-05    .41880E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.6189
  Prefactor  = 7.17408
  Prefactor  = 0.0001
  Prefactor  = 0.898466
  Prefactor  = 44.0309
  norm       = 0.000100218
  Prefactor  = 2.42949
  Prefactor  = 12.0861
  norm       = 0.00976897
  norm       = 3.2622
  Prefactor  = 0.0001
  Prefactor  = 10.5292
  norm       = 8.33974
  Prefactor  = 29.9534
  Prefactor  = 17.4415
  Prefactor  = 4.75018
  Prefactor  = 0.0001
  Normalizat = 1.06779
  Prefactor  = 1.01037
 **********
 **   18 **HESSE 
 **********

 FCN=   9076.932     FROM HESSE     STATUS=OK           331 CALLS     2589 TOTAL
                     EDM=   .62E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.6168        .14983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    25.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.619        11.252        .12296E-03   -1.5056    
   4  Prefactor     7.1741        14.907        .14980E-03   -1.5172    
   5  Prefactor     .10000E-03    20.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .89847        7.7304        .31692E-02   -1.5518    
   7  Prefactor     44.031        46.860        .60414E-04   -1.4380    
   8  norm          .10022E-03    23.083        .20498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.4295        892.34        .25834E-03   -1.5396    
  10  Prefactor     12.086        8.7099        .11524E-03   -1.5013    
  11  norm          .97690E-02    .74352        .17280E-01   -1.5688    
  12  norm          3.2622        1.7001        .87085E-04   -1.5347    
  13  Prefactor     .10000E-03    69.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.529        40.212        .12362E-03   -1.5059    
  15  norm          8.3397        3.2699        .47068E-04   -1.5130    
  16  Prefactor     29.953        43.679        .73224E-04   -1.4613    
  17  Prefactor     17.441        11.360        .95902E-04   -1.4872    
  18  Prefactor     4.7502        6.7139        .18462E-03   -1.5272    
  19  Prefactor     .10000E-03    4.4813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0678        .20659        .28465E-03   -.90793    
  21  Prefactor     1.0104        .15639        .22745E-03   -.92385    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.21758e-08
Minuit parameter uncertainties:
  1  2.79488e-06
  2  4.48765e-05
  3  11.2545
  4  14.9149
  5  3.59481e-06
  6  5.27148
  7  46.8989
  8  0.00449213
  9  94.5763
  10  8.71084
  11  0.169579
  12  1.70016
  13  1.38033e-05
  14  40.3153
  15  3.26999
  16  43.7254
  17  11.3618
  18  6.71497
  19  4.65775e-07
  20  0.206741
  21  0.156465
Done.

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

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  9.769e-03  1.696e-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:  1.010e+00  1.565e-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.068e+00  2.067e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/414142/likelihoodResults_556070401_556329601_4FGL_J2236.5-1433_daily_bin1222.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) = 9075.36532965
delta logL = 1.56674965821

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9075.32478748
delta logL = 1.60729182602

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .21108       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.9736       1.0000          .0000       5.0000    
     3 'Normalizat'    .98206       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0411       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=   9075.325     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      362 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .21173        1.6425        .58221E-02    .33617E-02
   2  alpha         3.9713        4.3851        .42415        .80150E-04
   3  Normalizat    .98187        .42355E-01    .66539E-01    .32258E-04
   4  Prefactor     1.0412        .33253E-01    .40464E-01   -.36818E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.211729
  alpha      = 3.97133
  Normalizat = 0.981875
  Prefactor  = 1.04115
 **********
 **   18 **HESSE 
 **********

 FCN=   9075.325     FROM HESSE     STATUS=OK            31 CALLS      393 TOTAL
                     EDM=   .99E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .21173        .36350        .26344E-04   -1.5616    
   2  alpha         3.9713        1.1046        .18460E-02    .62924    
   3  Normalizat    .98187        .19937        .29432E-03   -.93640    
   4  Prefactor     1.0412        .15324        .22391E-03   -.91370    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.89663e-12
Minuit parameter uncertainties:
  1  0.363502
  2  1.16866
  3  0.199523
  4  0.153307
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/414142': 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) = 9075.32478442
delta logL = 1.60729488648

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  2.117e-01  3.635e-01  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  3.971e+00  1.169e+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:  1.041e+00  1.533e-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.819e-01  1.995e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.34
Ra Dec: 339.144 -14.556
Photon Index (Free Index): 3.97 +/- 1.17
Photon Flux (Free Index): 9.67e-08 +/- 6.26e-08
Energy Flux (Free Index): 1.49e-05 +/- 9.42e-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/414142/cmap_HighResolution_556070401_556329601_4FGL_J2236.5-1433_daily_bin1222.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.16e-05', comment='SUCCESS', energy_flux2='1.49e-05', dlogl='1.61e+00', photon_flux2='9.67e-08', job_status='DONE', time_completed='2021-09-28 17:44:22.188882', photon_index_error2='1.17', photon_index2='3.97', ts='0.00', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='6.46e-08', energy_flux_error2='9.42e-06', EG='1.07', time_epoch_completed='1632876262.19', return_code='0', job_id='414142', GAL2='1.04', EG2='0.98', return_code2='0', photon_flux_error2='6.26e-08', ts2='3.34', photon_index='2.06' WHERE bin_id='1222' AND source_name='4FGL J2236.5-1433' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:44:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 414142: <4FGL_J2236.5-1433_daily_bin1222> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.5-1433_daily_bin1222 339.144 -14.5557 556070401 556329601 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 :                                 1256 MB
    Average Memory :                             304.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   804 sec.
    Turnaround time :                            807 sec.

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

