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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin786
RA = 339.125, Dec = -23.1552
tmin = 443059201, tmax = 443318401
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='406358', job_status='RUN', time_executed='2021-09-28 17:07:51.313285', time_epoch_executed='1632874071.31' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='786'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/406358

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/406358/ft1_4FGL_J2236.4-2309_daily_bin786.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/406358/ft2_4FGL_J2236.4-2309_daily_bin786.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/406358/ft1_4FGL_J2236.4-2309_daily_bin786.fits outfile=/scratch/kocevski/406358/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin786.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=443059201.0 tmax=443318401.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.82
user 3.56
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/406358/ft2_4FGL_J2236.4-2309_daily_bin786.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/406358/ft2_4FGL_J2236.4-2309_daily_bin786.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/406358/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin786.fits evtable="EVENTS" outfile="/scratch/kocevski/406358/ft1_filtered_4FGL_J2236.4-2309_daily_bin786.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/406358/ft1_filtered_4FGL_J2236.4-2309_daily_bin786.fits" evtable="EVENTS" scfile=/scratch/kocevski/406358/ft2_4FGL_J2236.4-2309_daily_bin786.fits sctable="SC_DATA" outfile=/scratch/kocevski/406358/ltcube_443059201_443318401_4FGL_J2236.4-2309_daily_bin786.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/406358/ft2_4FGL_J2236.4-2309_daily_bin786.fits
.....................!
real 11.79
user 11.34
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/406358/ft1_filtered_4FGL_J2236.4-2309_daily_bin786.fits evtable="EVENTS" scfile=/scratch/kocevski/406358/ft2_4FGL_J2236.4-2309_daily_bin786.fits sctable="SC_DATA" expcube=/scratch/kocevski/406358/ltcube_443059201_443318401_4FGL_J2236.4-2309_daily_bin786.fits outfile=/scratch/kocevski/406358/expmap_443059201_443318401_4FGL_J2236.4-2309_daily_bin786.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/406358/ltcube_443059201_443318401_4FGL_J2236.4-2309_daily_bin786.fits
.....................!
real 191.16
user 185.99
sys 4.78

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 159 point sources and 0 extended sources

Setting source of interest to:
4FGL J2236.4-2309 @ 339.125 -23.1552

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/406358/ft1_filtered_4FGL_J2236.4-2309_daily_bin786.fits scfile=/scratch/kocevski/406358/ft2_4FGL_J2236.4-2309_daily_bin786.fits outfile=/scratch/kocevski/406358/cmap_443059201_443318401_4FGL_J2236.4-2309_daily_bin786.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.125 yref=-23.1552 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/406358/ft1_filtered_4FGL_J2236.4-2309_daily_bin786.fits scfile=/scratch/kocevski/406358/ft2_4FGL_J2236.4-2309_daily_bin786.fits outfile=/scratch/kocevski/406358/cmap_HighResolution_443059201_443318401_4FGL_J2236.4-2309_daily_bin786.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.125 yref=-23.1552 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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/406358/ft1_filtered_4FGL_J2236.4-2309_daily_bin786.fits evtable="EVENTS" scfile=/scratch/kocevski/406358/ft2_4FGL_J2236.4-2309_daily_bin786.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/406358/Model_4FGL_J2236.4-2309_daily_bin786.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/406358/ft1_filtered_4FGL_J2236.4-2309_daily_bin786.fits.....................!
real 55.78
user 54.40
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/406358/ft1_filtered_4FGL_J2236.4-2309_daily_bin786.fits', '/scratch/kocevski/406358/ft2_4FGL_J2236.4-2309_daily_bin786.fits', expMap='/scratch/kocevski/406358/expmap_443059201_443318401_4FGL_J2236.4-2309_daily_bin786.fits', expCube='/scratch/kocevski/406358/ltcube_443059201_443318401_4FGL_J2236.4-2309_daily_bin786.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/406358/Model_4FGL_J2236.4-2309_daily_bin786.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2236.4-2309'

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  4.382e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.743e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
249        Scale:  4.484e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/406358/ft1_filtered_4FGL_J2236.4-2309_daily_bin786.fits
Spacecraft file(s): /scratch/kocevski/406358/ft2_4FGL_J2236.4-2309_daily_bin786.fits
Exposure map: /scratch/kocevski/406358/expmap_443059201_443318401_4FGL_J2236.4-2309_daily_bin786.fits
Exposure cube: /scratch/kocevski/406358/ltcube_443059201_443318401_4FGL_J2236.4-2309_daily_bin786.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/406358/Model_4FGL_J2236.4-2309_daily_bin786.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) = 7528.30838046

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .54461       1.0000         .10000E-03   10000.    
     3 'norm      '    1.0168       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.9786       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.313       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.3589       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.502       1.0000         .10000E-03   10000.    
    10 'norm      '    1.0145       1.0000         .10000E-03   10000.    
    11 'norm      '    1.1873       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.291       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.3627       1.0000         .10000E-03   10000.    
    15 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.738       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.0076       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.6172       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .59826       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0310       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7528.218     FROM MIGRAD    STATUS=CONVERGED    563 CALLS     2387 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.164        .76455E-06** at limit **
   2  Prefactor     .39154        22.214       -.39292E-06    .22368E-04
   3  norm          1.0169        .30142        .83209E-08    .15108E-03
   4  Prefactor     1.9787        6.7589       -.16931E-05   -.11020E-03
   5  Prefactor     13.313        9.1729        .16434E-05    .39226E-04
   6  Prefactor     .10000E-03    5.8576       -.55943E-08** at limit **
   7  Prefactor     .10000E-03    10.197       -.35923E-06** at limit **
   8  norm          3.3607        10.551        .69437E-05    .23012E-04
   9  Prefactor     12.499        9.8033       -.35560E-05   -.10937E-03
  10  norm          1.0144        .56721        .98338E-08   -.17028E-04
  11  norm          1.1871        1.0559       -.47153E-07   -.37979E-04
  12  Prefactor     .10000E-03    32.938        .13675E-05** at limit **
  13  Prefactor     13.288        8.4303       -.14646E-05   -.41267E-04
  14  Prefactor     2.3696        1.7072        .35042E-06   -.27137E-02
  15  norm          .10000E-03    .31721       -.42402E-10** at limit **
  16  norm          .10000E-03    .51256       -.46698E-08** at limit **
  17  Prefactor     13.740        14.532       -.19077E-05   -.53456E-04
  18  Prefactor     .10000E-03    2.0668       -.54032E-07** at limit **
  19  Prefactor     .10000E-03    2.6114       -.17791E-06** at limit **
  20  norm          .10000E-03    .90763E-01   -.70662E-07** at limit **
  21  Prefactor     5.0073        5.6924       -.20636E-05   -.69674E-04
  22  Prefactor     3.6130        5.2295        .26645E-05    .85357E-04
  23  Normalizat    .59824        .14009        .16475E-05   -.54373E-04
  24  Prefactor     1.0311        .12413       -.55935E-06    .12672E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.391542
  norm       = 1.01689
  Prefactor  = 1.97865
  Prefactor  = 13.313
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.36072
  Prefactor  = 12.4986
  norm       = 1.0144
  norm       = 1.18712
  Prefactor  = 0.0001
  Prefactor  = 13.2884
  Prefactor  = 2.36956
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 13.7402
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.0073
  Prefactor  = 3.61303
  Normalizat = 0.598239
  Prefactor  = 1.0311
 **********
 **   18 **HESSE 
 **********

 FCN=   7528.218     FROM HESSE     STATUS=OK           413 CALLS     2800 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .39154        26.058        .12719       -1.5583    
   3  norm          1.0169        .30166        .25078E-04   -1.5506    
   4  Prefactor     1.9787        6.7499        .29468E-03   -1.5427    
   5  Prefactor     13.313        9.1678        .10978E-03   -1.4978    
   6  Prefactor     .10000E-03    5.8815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.3607        10.524        .22081E-03   -1.5341    
   9  Prefactor     12.499        9.8213        .11329E-03   -1.5001    
  10  norm          1.0144        .56457        .47163E-04   -1.5507    
  11  norm          1.1871        1.0698        .81417E-04   -1.5490    
  12  Prefactor     .10000E-03    33.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.288        8.4548        .10987E-03   -1.4979    
  14  Prefactor     2.3696        5.1452        .13330E-02   -1.5400    
  15  norm          .10000E-03    .62421        .92578E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .51340        .60655E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.740        14.460        .10807E-03   -1.4966    
  18  Prefactor     .10000E-03    2.0689        .12180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.6677        .27311E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .94251E-01    .50771E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.0073        5.6839        .17970E-03   -1.5260    
  22  Prefactor     3.6130        5.2089        .21244E-03   -1.5328    
  23  Normalizat    .59824        .16450        .26631E-03   -1.0806    
  24  Prefactor     1.0311        .14701        .19088E-03   -.91700    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.17627e-09
Minuit parameter uncertainties:
  1  7.62527e-06
  2  6.39049
  3  0.301664
  4  6.7525
  5  9.16879
  6  6.29268e-06
  7  2.80883e-06
  8  10.5301
  9  9.82257
  10  0.564573
  11  1.06982
  12  0.000187901
  13  8.45558
  14  5.1462
  15  1.97684e-05
  16  9.06675e-07
  17  14.4638
  18  7.32348e-06
  19  3.18263e-05
  20  2.26051e-06
  21  5.68452
  22  5.20959
  23  0.164637
  24  0.147069
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.250e+01  9.823e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.743e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
249        Scale:  4.484e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  1.031e+00  1.471e-01  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  5.982e-01  1.646e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.14
Ra Dec: 339.125 -23.155
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 4.40e-08 +/- 3.45e-08
Energy Flux (Fixed Index): 1.03e-05 +/- 8.05e-06

TS (Fixed Index): 2.14
Ra Dec: 339.125 -23.155
Photon Flux Upper Limit: 1.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.71e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/406358/likelihoodResults_443059201_443318401_4FGL_J2236.4-2309_daily_bin786.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) = 7527.02753552
delta logL = 1.19018705873

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7526.97440853
delta logL = 1.24331404792

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .57013       1.0000         .10000E-03   10000.    
     2 'Index     '    5.8381       1.0000          .0000       10.000    
     3 'Normalizat'    .53266       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0806       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7526.974     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      272 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .56242        4.0568        .75430E-02    .14859E-02
   2  Index         5.8486        3.2573        .15395        .15035E-03
   3  Normalizat    .53292        .38294E-01    .63535E-01    .53470E-04
   4  Prefactor     1.0804        .35406E-01    .38374E-01    .23179E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.562425
  Index      = 5.84865
  Normalizat = 0.532921
  Prefactor  = 1.08041
 **********
 **   18 **HESSE 
 **********

 FCN=   7526.974     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      303 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .56242        8.0293        .34105E-04   -1.5558    
   2  Index         5.8486        7.5102        .61126E-02    .17056    
   3  Normalizat    .53292        .14211        .28115E-03   -1.1091    
   4  Prefactor     1.0804        .12915        .18697E-03   -.90095    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.60384e-10
Minuit parameter uncertainties:
  1  4.25042
  2  5.70345
  3  0.142209
  4  0.129189
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/406358': 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): 102
logL (Free Index) = 7526.97439936
delta logL = 1.24332321202

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  5.624e-01  4.250e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  5.849e+00  5.703e+00  0.000e+00  1.000e+01 (-1.000e+00)
249        Scale:  4.484e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  1.080e+00  1.292e-01  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  5.329e-01  1.422e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.01
Ra Dec: 339.125 -23.155
Photon Index (Free Index): 5.85 +/- 5.70
Photon Flux (Free Index): 7.58e-08 +/- 4.23e-08
Energy Flux (Free Index): 9.52e-06 +/- 6.73e-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/406358/cmap_HighResolution_443059201_443318401_4FGL_J2236.4-2309_daily_bin786.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.71e-03', comment='SUCCESS', photon_flux='4.40e-08', energy_flux2='9.52e-06', photon_flux_error='3.45e-08', dlogl='1.24e+00', energy_flux='1.03e-05', photon_flux2='7.58e-08', job_status='DONE', time_completed='2021-09-28 17:19:09.372353', photon_index_error2='5.70', photon_index2='5.85', ts='2.14', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.10e-07', energy_flux_error2='6.73e-06', EG='0.60', time_epoch_completed='1632874749.37', return_code='0', job_id='406358', GAL2='1.08', EG2='0.53', return_code2='102', energy_flux_error='8.05e-06', photon_flux_error2='4.23e-08', ts2='5.01', photon_index='2.74' WHERE bin_id='786' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:19:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 406358: <4FGL_J2236.4-2309_daily_bin786> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin786> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 17:05:43 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:05:44 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:05:44 2021
Terminated at Tue Sep 28 17:19:10 2021
Results reported at Tue Sep 28 17:19:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin786 339.125 -23.1552 443059201 443318401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2236.4-2309 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   677.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            807 sec.

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

