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


Performing analysis on: 4FGL_J2236.5-1433_daily_bin1515
RA = 339.144, Dec = -14.5557
tmin = 632016001, tmax = 632275201
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='415535', job_status='RUN', time_executed='2021-09-28 17:39:41.989374', time_epoch_executed='1632875981.99' WHERE source_name='4FGL J2236.5-1433' and cadence='daily' and bin_id='1515'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/415535

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/415535/ft1_4FGL_J2236.5-1433_daily_bin1515.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/415535/ft2_4FGL_J2236.5-1433_daily_bin1515.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/415535/ft1_4FGL_J2236.5-1433_daily_bin1515.fits outfile=/scratch/kocevski/415535/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1515.fits ra=339.144 dec=-14.5557 rad=12.0 tmin=632016001.0 tmax=632275201.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 5.05
user 4.42
sys 0.59

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/415535/ft1_filtered_4FGL_J2236.5-1433_daily_bin1515.fits" evtable="EVENTS" scfile=/scratch/kocevski/415535/ft2_4FGL_J2236.5-1433_daily_bin1515.fits sctable="SC_DATA" outfile=/scratch/kocevski/415535/ltcube_632016001_632275201_4FGL_J2236.5-1433_daily_bin1515.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/415535/ft2_4FGL_J2236.5-1433_daily_bin1515.fits
.....................!
real 11.94
user 11.58
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/415535/ft1_filtered_4FGL_J2236.5-1433_daily_bin1515.fits evtable="EVENTS" scfile=/scratch/kocevski/415535/ft2_4FGL_J2236.5-1433_daily_bin1515.fits sctable="SC_DATA" expcube=/scratch/kocevski/415535/ltcube_632016001_632275201_4FGL_J2236.5-1433_daily_bin1515.fits outfile=/scratch/kocevski/415535/expmap_632016001_632275201_4FGL_J2236.5-1433_daily_bin1515.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/415535/ltcube_632016001_632275201_4FGL_J2236.5-1433_daily_bin1515.fits
.....................!
real 191.36
user 185.90
sys 5.03

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/415535/ft1_filtered_4FGL_J2236.5-1433_daily_bin1515.fits scfile=/scratch/kocevski/415535/ft2_4FGL_J2236.5-1433_daily_bin1515.fits outfile=/scratch/kocevski/415535/cmap_632016001_632275201_4FGL_J2236.5-1433_daily_bin1515.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/415535/ft1_filtered_4FGL_J2236.5-1433_daily_bin1515.fits scfile=/scratch/kocevski/415535/ft2_4FGL_J2236.5-1433_daily_bin1515.fits outfile=/scratch/kocevski/415535/cmap_HighResolution_632016001_632275201_4FGL_J2236.5-1433_daily_bin1515.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/415535/ft1_filtered_4FGL_J2236.5-1433_daily_bin1515.fits evtable="EVENTS" scfile=/scratch/kocevski/415535/ft2_4FGL_J2236.5-1433_daily_bin1515.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/415535/Model_4FGL_J2236.5-1433_daily_bin1515.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/415535/ft1_filtered_4FGL_J2236.5-1433_daily_bin1515.fits.....................!
real 42.72
user 41.29
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/415535/ft1_filtered_4FGL_J2236.5-1433_daily_bin1515.fits', '/scratch/kocevski/415535/ft2_4FGL_J2236.5-1433_daily_bin1515.fits', expMap='/scratch/kocevski/415535/expmap_632016001_632275201_4FGL_J2236.5-1433_daily_bin1515.fits', expCube='/scratch/kocevski/415535/ltcube_632016001_632275201_4FGL_J2236.5-1433_daily_bin1515.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/415535/Model_4FGL_J2236.5-1433_daily_bin1515.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/415535/ft1_filtered_4FGL_J2236.5-1433_daily_bin1515.fits
Spacecraft file(s): /scratch/kocevski/415535/ft2_4FGL_J2236.5-1433_daily_bin1515.fits
Exposure map: /scratch/kocevski/415535/expmap_632016001_632275201_4FGL_J2236.5-1433_daily_bin1515.fits
Exposure cube: /scratch/kocevski/415535/ltcube_632016001_632275201_4FGL_J2236.5-1433_daily_bin1515.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/415535/Model_4FGL_J2236.5-1433_daily_bin1515.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 4322.61916939

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.196       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.2302       1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.437       1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.913       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .31543E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.8849       1.0000         .10000E-03   10000.    
     7 'Prefactor '    48.730       1.0000         .10000E-03   10000.    
     8 'norm      '    2.4511       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.5933       1.0000         .10000E-03   10000.    
    12 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .28609       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.067       1.0000         .10000E-03   10000.    
    15 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    83.782       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.932       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1253       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .72702       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=   4322.399     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2642 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.195        9.0630       -.28846E-07   -.28308E-04
   2  Prefactor     1.2310        40.213        .24080E-04   -.79894E-04
   3  Prefactor     19.432        15.954       -.55945E-06   -.33803E-04
   4  Prefactor     23.911        16.889       -.11440E-06    .20954E-04
   5  Prefactor     .10001E-03    466.22        .14244E-05** at limit **
   6  Prefactor     6.8852        4.8545        .10995E-06    .13444E-05
   7  Prefactor     48.713        66.303       -.51007E-06    .18853E-04
   8  norm          2.4496        4.4369       -.21206E-07   -.17298E-03
   9  Prefactor     .10000E-03    36.960       -.48741E-07** at limit **
  10  Prefactor     .10000E-03    18.371        .12954E-06** at limit **
  11  norm          1.5933        1.1054        .38993E-07    .36831E-03
  12  norm          .10000E-03    1.4343       -.23672E-07** at limit **
  13  Prefactor     .15649E-03    64.926       -.35359E-05** at limit **
  14  Prefactor     11.050        22.950       -.63783E-06    .53717E-03
  15  norm          .10000E-03    1.7320       -.83377E-06** at limit **
  16  Prefactor     83.823        48.103        .24453E-05    .46688E-03
  17  Prefactor     11.931        12.315        .80128E-07    .59175E-04
  18  Prefactor     .10000E-03    9.1413       -.55324E-06** at limit **
  19  Prefactor     .10000E-03    16.407       -.78603E-07** at limit **
  20  Normalizat    1.1254        .23542        .34636E-05    .23348E-03
  21  Prefactor     .72699        .16988       -.42632E-05   -.29087E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.1945
  Prefactor  = 1.23103
  Prefactor  = 19.4323
  Prefactor  = 23.9114
  Prefactor  = 0.000100012
  Prefactor  = 6.88524
  Prefactor  = 48.7128
  norm       = 2.44958
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.59327
  norm       = 0.0001
  Prefactor  = 0.000156493
  Prefactor  = 11.05
  norm       = 0.0001
  Prefactor  = 83.8232
  Prefactor  = 11.931
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.12544
  Prefactor  = 0.72699
 **********
 **   18 **HESSE 
 **********

 FCN=   4322.399     FROM HESSE     STATUS=OK           327 CALLS     2969 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.195        9.0604        .55134E-03   -1.4981    
   2  Prefactor     1.2310        39.743        .20274E-02   -1.5486    
   3  Prefactor     19.432        15.969        .90847E-04   -1.4826    
   4  Prefactor     23.911        16.876        .81914E-04   -1.4730    
   5  Prefactor     .10001E-03    474.83        .19773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.8852        4.8466        .11288E-03   -1.5183    
   7  Prefactor     48.713        66.318        .57444E-04   -1.4311    
   8  norm          2.4496        4.4208        .17414E-03   -1.5395    
   9  Prefactor     .10000E-03    36.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.5933        1.1049        .33608E-04   -1.5456    
  12  norm          .10000E-03    1.4394        .76767E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .15649E-03    65.520        .14664       -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.050        19.794        .12043E-03   -1.5043    
  15  norm          .10000E-03    2.6512        .13316E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     83.823        48.267        .43885E-04   -1.3874    
  17  Prefactor     11.931        12.312        .11597E-03   -1.5017    
  18  Prefactor     .10000E-03    9.1877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    16.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1254        .27663        .26205E-03   -.88939    
  21  Prefactor     .72699        .19656        .23263E-03   -1.0248    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39212e-09
Minuit parameter uncertainties:
  1  9.06138
  2  13.9988
  3  15.973
  4  16.879
  5  0.00473901
  6  4.8469
  7  66.4192
  8  4.42143
  9  9.022e-06
  10  1.52971e-05
  11  1.10491
  12  2.42833e-06
  13  0.121812
  14  19.806
  15  6.82643e-05
  16  48.2899
  17  12.3148
  18  0.000102589
  19  1.1713e-05
  20  0.276986
  21  0.196747
Done.

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

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  1.593e+00  1.105e+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:  7.270e-01  1.967e-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.125e+00  2.770e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.06
Ra Dec: 339.144 -14.556
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 6.18e-08 +/- 4.29e-08
Energy Flux (Fixed Index): 3.02e-05 +/- 2.10e-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) = 4322.11824715
delta logL = 0.280830414309

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4322.11137856
delta logL = 0.287699010086

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5079       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5233       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0958       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73842       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=   4322.111     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      202 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5077        21.110        .87106E-02    .41083E-03
   2  alpha         2.5234        3.4078        .31321        .19443E-04
   3  Normalizat    1.0958        .10306        .59876E-01    .80746E-05
   4  Prefactor     .73841        .71279E-01    .42910E-01    .90540E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.50773
  alpha      = 2.52342
  Normalizat = 1.09583
  Prefactor  = 0.738405
 **********
 **   18 **HESSE 
 **********

 FCN=   4322.111     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5077        1.0640        .48230E-04   -1.5462    
   2  alpha         2.5234        .62433        .12318E-01    .93682E-02
   3  Normalizat    1.0958        .26607        .26481E-03   -.89886    
   4  Prefactor     .73841        .19311        .23084E-03   -1.0204    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.49351e-10
Minuit parameter uncertainties:
  1  1.06401
  2  0.631009
  3  0.266393
  4  0.193283
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/415535': 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) = 4322.11137851
delta logL = 0.287699057695

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  1.508e+00  1.064e+00  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  2.523e+00  6.310e-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:  7.384e-01  1.933e-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.096e+00  2.664e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.62
Ra Dec: 339.144 -14.556
Photon Index (Free Index): 2.52 +/- 0.63
Photon Flux (Free Index): 9.47e-08 +/- 6.99e-08
Energy Flux (Free Index): 2.65e-05 +/- 1.69e-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/415535/cmap_HighResolution_632016001_632275201_4FGL_J2236.5-1433_daily_bin1515.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.18e-08', energy_flux2='2.65e-05', photon_flux_error='4.29e-08', dlogl='2.88e-01', energy_flux='3.02e-05', photon_flux2='9.47e-08', job_status='DONE', time_completed='2021-09-28 17:48:20.848707', photon_index_error2='0.63', photon_index2='2.52', ts='4.06', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', energy_flux_error2='1.69e-05', EG='1.13', time_epoch_completed='1632876500.85', return_code='0', job_id='415535', GAL2='0.74', EG2='1.10', return_code2='0', energy_flux_error='2.10e-05', photon_flux_error2='6.99e-08', ts2='4.62', photon_index='2.06' WHERE bin_id='1515' AND source_name='4FGL J2236.5-1433' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:48:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 415535: <4FGL_J2236.5-1433_daily_bin1515> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.5-1433_daily_bin1515 339.144 -14.5557 632016001 632275201 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 :                                   487.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             242.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   760 sec.
    Turnaround time :                            761 sec.

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

