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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin1292
RA = 339.125, Dec = -23.1552
tmin = 574214401, tmax = 574473601
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='408097', job_status='RUN', time_executed='2021-09-28 17:12:09.481451', time_epoch_executed='1632874329.48' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1292'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/408097

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/408097/ft1_4FGL_J2236.4-2309_daily_bin1292.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/408097/ft2_4FGL_J2236.4-2309_daily_bin1292.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/408097/ft1_4FGL_J2236.4-2309_daily_bin1292.fits outfile=/scratch/kocevski/408097/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1292.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=574214401.0 tmax=574473601.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.55
user 3.33
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/408097/ft2_4FGL_J2236.4-2309_daily_bin1292.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/408097/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1292.fits evtable="EVENTS" outfile="/scratch/kocevski/408097/ft1_filtered_4FGL_J2236.4-2309_daily_bin1292.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/408097/ft1_filtered_4FGL_J2236.4-2309_daily_bin1292.fits" evtable="EVENTS" scfile=/scratch/kocevski/408097/ft2_4FGL_J2236.4-2309_daily_bin1292.fits sctable="SC_DATA" outfile=/scratch/kocevski/408097/ltcube_574214401_574473601_4FGL_J2236.4-2309_daily_bin1292.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/408097/ft2_4FGL_J2236.4-2309_daily_bin1292.fits
.....................!
real 12.07
user 11.71
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/408097/ft1_filtered_4FGL_J2236.4-2309_daily_bin1292.fits evtable="EVENTS" scfile=/scratch/kocevski/408097/ft2_4FGL_J2236.4-2309_daily_bin1292.fits sctable="SC_DATA" expcube=/scratch/kocevski/408097/ltcube_574214401_574473601_4FGL_J2236.4-2309_daily_bin1292.fits outfile=/scratch/kocevski/408097/expmap_574214401_574473601_4FGL_J2236.4-2309_daily_bin1292.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/408097/ltcube_574214401_574473601_4FGL_J2236.4-2309_daily_bin1292.fits
.....................!
real 193.98
user 188.37
sys 5.27

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/408097/ft1_filtered_4FGL_J2236.4-2309_daily_bin1292.fits scfile=/scratch/kocevski/408097/ft2_4FGL_J2236.4-2309_daily_bin1292.fits outfile=/scratch/kocevski/408097/cmap_574214401_574473601_4FGL_J2236.4-2309_daily_bin1292.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/408097/ft1_filtered_4FGL_J2236.4-2309_daily_bin1292.fits scfile=/scratch/kocevski/408097/ft2_4FGL_J2236.4-2309_daily_bin1292.fits outfile=/scratch/kocevski/408097/cmap_HighResolution_574214401_574473601_4FGL_J2236.4-2309_daily_bin1292.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.53
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/408097/ft1_filtered_4FGL_J2236.4-2309_daily_bin1292.fits evtable="EVENTS" scfile=/scratch/kocevski/408097/ft2_4FGL_J2236.4-2309_daily_bin1292.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/408097/Model_4FGL_J2236.4-2309_daily_bin1292.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/408097/ft1_filtered_4FGL_J2236.4-2309_daily_bin1292.fits.....................!
real 50.54
user 49.22
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/408097/ft1_filtered_4FGL_J2236.4-2309_daily_bin1292.fits', '/scratch/kocevski/408097/ft2_4FGL_J2236.4-2309_daily_bin1292.fits', expMap='/scratch/kocevski/408097/expmap_574214401_574473601_4FGL_J2236.4-2309_daily_bin1292.fits', expCube='/scratch/kocevski/408097/ltcube_574214401_574473601_4FGL_J2236.4-2309_daily_bin1292.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/408097/Model_4FGL_J2236.4-2309_daily_bin1292.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/408097/ft1_filtered_4FGL_J2236.4-2309_daily_bin1292.fits
Spacecraft file(s): /scratch/kocevski/408097/ft2_4FGL_J2236.4-2309_daily_bin1292.fits
Exposure map: /scratch/kocevski/408097/expmap_574214401_574473601_4FGL_J2236.4-2309_daily_bin1292.fits
Exposure cube: /scratch/kocevski/408097/ltcube_574214401_574473601_4FGL_J2236.4-2309_daily_bin1292.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/408097/Model_4FGL_J2236.4-2309_daily_bin1292.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) = 6074.93098617

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    29.582       1.0000         .10000E-03   10000.    
     3 'norm      '    .67689       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    31.956       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.194       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.4085       1.0000         .10000E-03   10000.    
     8 'norm      '    .10091E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.9551       1.0000         .10000E-03   10000.    
    10 'norm      '    1.0092       1.0000         .10000E-03   10000.    
    11 'norm      '    1.0318       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    53.964       1.0000         .10000E-03   10000.    
    15 'norm      '    3.1203       1.0000         .10000E-03   10000.    
    16 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13250E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.057       1.0000         .10000E-03   10000.    
    20 'norm      '    1.3139       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.4702       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .90782       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2985       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=   6074.909     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     2760 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.017        .26666E-06** at limit **
   2  Prefactor     29.615        56.671       -.77043E-05   -.69813E-06
   3  norm          .67688        .33033        .62183E-08    .29702E-03
   4  Prefactor     .10000E-03    11.087       -.21447E-06** at limit **
   5  Prefactor     31.955        18.947        .25542E-06    .26772E-04
   6  Prefactor     18.196        14.769        .12214E-05    .10831E-04
   7  Prefactor     3.4279        231.99       -.55697E-04   -.57635E-05
   8  norm          .10000E-03    9.9228       -.30593E-08** at limit **
   9  Prefactor     6.9612        13.938        .26582E-05   -.30008E-04
  10  norm          1.0062        1.0811        .14796E-06    .27062E-04
  11  norm          1.0326        2.3904       -.78012E-06   -.11219E-02
  12  Prefactor     .10000E-03    70.482        .56873E-06** at limit **
  13  Prefactor     .10000E-03    6.0836       -.76767E-07** at limit **
  14  Prefactor     54.266        58.400        .31237E-05   -.34523E-04
  15  norm          3.0993        4.6020       -.90388E-06   -.10900E-03
  16  norm          .10000E-03    2.5212        .12054E-06** at limit **
  17  Prefactor     .10000E-03    20.070       -.69002E-07** at limit **
  18  Prefactor     .10000E-03    6.8001        .49450E-07** at limit **
  19  Prefactor     12.067        12.153       -.22716E-05    .46322E-05
  20  norm          1.3136        .82722        .23199E-06   -.74893E-03
  21  Prefactor     4.4591        14.648       -.79257E-05   -.71722E-04
  22  Prefactor     .10000E-03    4.7904        .53678E-07** at limit **
  23  Normalizat    .90726        .22136        .12945E-05    .79282E-04
  24  Prefactor     1.2990        .18812        .11350E-05    .82624E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 29.6151
  norm       = 0.676876
  Prefactor  = 0.0001
  Prefactor  = 31.9547
  Prefactor  = 18.1958
  Prefactor  = 3.42789
  norm       = 0.0001
  Prefactor  = 6.96119
  norm       = 1.00623
  norm       = 1.03258
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 54.2662
  norm       = 3.09935
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.0667
  norm       = 1.31363
  Prefactor  = 4.45913
  Prefactor  = 0.0001
  Normalizat = 0.907256
  Prefactor  = 1.29898
 **********
 **   18 **HESSE 
 **********

 FCN=   6074.909     FROM HESSE     STATUS=OK           403 CALLS     3163 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     29.615        56.642        .73663E-04   -1.4619    
   3  norm          .67688        .33448        .30372E-04   -1.5543    
   4  Prefactor     .10000E-03    11.467        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     31.955        18.948        .70882E-04   -1.4577    
   6  Prefactor     18.196        14.761        .93899E-04   -1.4855    
   7  Prefactor     3.4279        229.92        .21912E-03   -1.5338    
   8  norm          .10000E-03    9.9334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.9612        13.940        .15212E-03   -1.5180    
  10  norm          1.0062        1.0340        .78260E-03   -1.5507    
  11  norm          1.0326        2.3899        .17783E-03   -1.5505    
  12  Prefactor     .10000E-03    70.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.1065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     54.266        68.308        .54601E-04   -1.4233    
  15  norm          3.0993        5.3775        .77392E-04   -1.5356    
  16  norm          .10000E-03    2.5639        .12063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    20.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.8030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.067        12.686        .11537E-03   -1.5013    
  20  norm          1.3136        .85670        .44665E-04   -1.5479    
  21  Prefactor     4.4591        14.756        .19044E-03   -1.5286    
  22  Prefactor     .10000E-03    4.7965        .16647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .90726        .26903        .31648E-03   -.96206    
  24  Prefactor     1.2990        .22864        .23763E-03   -.83337    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.32475e-10
Minuit parameter uncertainties:
  1  6.14929e-05
  2  56.7449
  3  0.334483
  4  2.65307e-05
  5  18.9514
  6  14.764
  7  56.3747
  8  3.45391e-06
  9  13.9468
  10  1.03398
  11  2.39012
  12  0.000122704
  13  4.43062e-06
  14  68.4067
  15  5.37829
  16  1.47464e-05
  17  5.20125e-06
  18  2.27252e-05
  19  12.689
  20  0.856708
  21  14.7681
  22  1.65517e-05
  23  0.269427
  24  0.22882
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  6.961e+00  1.395e+01  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.299e+00  2.288e-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:  9.073e-01  2.694e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.30
Ra Dec: 339.125 -23.155
Photon Flux Upper Limit: 1.36e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.07e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/408097/likelihoodResults_574214401_574473601_4FGL_J2236.4-2309_daily_bin1292.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) = 6074.66890802
delta logL = 0.24048774732

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6074.65370478
delta logL = 0.255690982924

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1815       1.0000         .10000E-03   10000.    
     2 'Index     '    4.1146       1.0000          .0000       10.000    
     3 'Normalizat'    .87324       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3200       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6074.654     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      290 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1680        239.64        .81995E-03   -.38987E-03
   2  Index         4.1173        5.1464        .11895E-01   -.34651E-04
   3  Normalizat    .87329        .20747        .32195E-03   -.27191E-04
   4  Prefactor     1.3200        .18684        .23600E-03   -.19801E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.16796
  Index      = 4.11734
  Normalizat = 0.873292
  Prefactor  = 1.31999
 **********
 **   18 **HESSE 
 **********

 FCN=   6074.654     FROM HESSE     STATUS=OK            25 CALLS      315 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1680        11.362        .32798E-04   -1.5352    
   2  Index         4.1173        2.7157        .47579E-03   -.17746    
   3  Normalizat    .87329        .25688        .12878E-04   -.97405    
   4  Prefactor     1.3200        .22280        .47199E-04   -.82715    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49645e-10
Minuit parameter uncertainties:
  1  11.3695
  2  2.87675
  3  0.257242
  4  0.222965
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/408097': 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) = 6074.6537039
delta logL = 0.255691863695

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  3.168e+00  1.137e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  4.117e+00  2.877e+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.320e+00  2.230e-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:  8.733e-01  2.572e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.30
Ra Dec: 339.125 -23.155

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/408097/cmap_HighResolution_574214401_574473601_4FGL_J2236.4-2309_daily_bin1292.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-02', job_status='DONE', photon_flux_upper_limit='1.36e-07', time_completed='2021-09-28 17:22:36.935017', job_id='408097', GAL2='1.32', fit_tolerance='1e-08', EG2='0.87', EG='0.91', time_epoch_completed='1632874956.94', return_code2='0', ts='0.30', comment='SUCCESS', return_code='0', GAL='1.30', dlogl='2.56e-01', ts2='0.84', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1292' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:22:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 408097: <4FGL_J2236.4-2309_daily_bin1292> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin1292> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 17:10:57 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:10:59 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:10:59 2021
Terminated at Tue Sep 28 17:22:37 2021
Results reported at Tue Sep 28 17:22:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1292 339.125 -23.1552 574214401 574473601 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 :                                   624.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   698 sec.
    Turnaround time :                            700 sec.

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

