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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin1131
RA = 339.125, Dec = -23.1552
tmin = 532483201, tmax = 532742401
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='407862', job_status='RUN', time_executed='2021-09-28 17:14:49.905724', time_epoch_executed='1632874489.91' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1131'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/407862

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/407862/ft1_4FGL_J2236.4-2309_daily_bin1131.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/407862/ft2_4FGL_J2236.4-2309_daily_bin1131.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/407862/ft1_4FGL_J2236.4-2309_daily_bin1131.fits outfile=/scratch/kocevski/407862/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1131.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=532483201.0 tmax=532742401.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.51
user 3.28
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/407862/ft2_4FGL_J2236.4-2309_daily_bin1131.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/407862/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1131.fits evtable="EVENTS" outfile="/scratch/kocevski/407862/ft1_filtered_4FGL_J2236.4-2309_daily_bin1131.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/407862/ft1_filtered_4FGL_J2236.4-2309_daily_bin1131.fits" evtable="EVENTS" scfile=/scratch/kocevski/407862/ft2_4FGL_J2236.4-2309_daily_bin1131.fits sctable="SC_DATA" outfile=/scratch/kocevski/407862/ltcube_532483201_532742401_4FGL_J2236.4-2309_daily_bin1131.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/407862/ft2_4FGL_J2236.4-2309_daily_bin1131.fits
.....................!
real 12.67
user 12.34
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/407862/ft1_filtered_4FGL_J2236.4-2309_daily_bin1131.fits evtable="EVENTS" scfile=/scratch/kocevski/407862/ft2_4FGL_J2236.4-2309_daily_bin1131.fits sctable="SC_DATA" expcube=/scratch/kocevski/407862/ltcube_532483201_532742401_4FGL_J2236.4-2309_daily_bin1131.fits outfile=/scratch/kocevski/407862/expmap_532483201_532742401_4FGL_J2236.4-2309_daily_bin1131.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/407862/ltcube_532483201_532742401_4FGL_J2236.4-2309_daily_bin1131.fits
.....................!
real 190.47
user 185.74
sys 4.37

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/407862/ft1_filtered_4FGL_J2236.4-2309_daily_bin1131.fits scfile=/scratch/kocevski/407862/ft2_4FGL_J2236.4-2309_daily_bin1131.fits outfile=/scratch/kocevski/407862/cmap_532483201_532742401_4FGL_J2236.4-2309_daily_bin1131.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.54
user 0.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/407862/ft1_filtered_4FGL_J2236.4-2309_daily_bin1131.fits evtable="EVENTS" scfile=/scratch/kocevski/407862/ft2_4FGL_J2236.4-2309_daily_bin1131.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/407862/Model_4FGL_J2236.4-2309_daily_bin1131.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/407862/ft1_filtered_4FGL_J2236.4-2309_daily_bin1131.fits.....................!
real 52.52
user 51.19
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.093       1.0000         .10000E-03   10000.    
     3 'norm      '    2.7907       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.7219       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13051E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    135.33       1.0000         .10000E-03   10000.    
     8 'norm      '    13.750       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.1836       1.0000         .10000E-03   10000.    
    12 'Prefactor '    35.266       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    36.769       1.0000         .10000E-03   10000.    
    16 'norm      '    1.0300       1.0000         .10000E-03   10000.    
    17 'Prefactor '    55.231       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    24.599       1.0000         .10000E-03   10000.    
    20 'norm      '    5.6483       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.5582       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2647       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .79730       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=   5975.828     FROM MIGRAD    STATUS=CONVERGED    531 CALLS     2726 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.095        .56525E-05** at limit **
   2  Prefactor     18.165        83.658        .78861E-06    .16718E-04
   3  norm          2.7906        .68807       -.38867E-08   -.19246E-03
   4  Prefactor     .10000E-03    6.4486        .28767E-06** at limit **
   5  Prefactor     2.7208        11.139        .72612E-06    .14560E-04
   6  Prefactor     .10000E-03    74.149       -.12076E-05** at limit **
   7  Prefactor     135.33        94.203        .24101E-06   -.59164E-06
   8  norm          13.749        27.167       -.19413E-06   -.14770E-04
   9  Prefactor     .10000E-03    13.528        .26746E-06** at limit **
  10  norm          .10000E-03    .44746       -.43897E-07** at limit **
  11  norm          2.1837        3.2193        .32310E-06    .29080E-05
  12  Prefactor     35.287        74.811       -.97242E-06   -.79208E-05
  13  Prefactor     .10000E-03    12.946        .13177E-06** at limit **
  14  Prefactor     .10000E-03    49.206       -.21414E-06** at limit **
  15  norm          36.768        4.8580        .54809E-07    .54507E-04
  16  norm          1.0298        3.7202        .19924E-05    .17177E-03
  17  Prefactor     55.213        92.987       -.46599E-07   -.14239E-04
  18  Prefactor     .10000E-03    8.3646        .14751E-06** at limit **
  19  Prefactor     24.617        25.967        .16173E-06   -.10907E-03
  20  norm          5.6477        1.7310       -.12814E-06   -.45717E-03
  21  Prefactor     .10000E-03    8.2961       -.20537E-06** at limit **
  22  Prefactor     7.5598        25.073        .14529E-05   -.26904E-04
  23  Normalizat    1.2640        .27521       -.39254E-05    .39936E-04
  24  Prefactor     .79784        .21383        .30261E-05   -.15148E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 18.1652
  norm       = 2.79062
  Prefactor  = 0.0001
  Prefactor  = 2.72085
  Prefactor  = 0.0001
  Prefactor  = 135.335
  norm       = 13.7493
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.18373
  Prefactor  = 35.2869
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 36.7684
  norm       = 1.0298
  Prefactor  = 55.213
  Prefactor  = 0.0001
  Prefactor  = 24.6168
  norm       = 5.64768
  Prefactor  = 0.0001
  Prefactor  = 7.55979
  Normalizat = 1.26395
  Prefactor  = 0.797838
 **********
 **   18 **HESSE 
 **********

 FCN=   5975.828     FROM HESSE     STATUS=OK           401 CALLS     3127 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     18.165        82.989        .94160E-04   -1.4855    
   3  norm          2.7906        .68918        .30566E-04   -1.5374    
   4  Prefactor     .10000E-03    6.4776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.7208        11.157        .24684E-03   -1.5378    
   6  Prefactor     .10000E-03    77.121        .41154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     135.33        94.203        .34620E-04   -1.3376    
   8  norm          13.749        27.141        .10802E-03   -1.4966    
   9  Prefactor     .10000E-03    13.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .46701        .10083E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.1837        3.1741        .14761E-03   -1.5412    
  12  Prefactor     35.287        74.515        .67483E-04   -1.4519    
  13  Prefactor     .10000E-03    13.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    49.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          36.768        4.8838        .47736E-04   -1.4494    
  16  norm          1.0298        3.7378        .27663E-03   -1.5505    
  17  Prefactor     55.213        93.665        .53974E-04   -1.4220    
  18  Prefactor     .10000E-03    8.3643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     24.617        26.220        .80766E-04   -1.4715    
  20  norm          5.6477        1.7723        .41787E-04   -1.5233    
  21  Prefactor     .10000E-03    8.3136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.5598        24.719        .14587E-03   -1.5158    
  23  Normalizat    1.2640        .31099        .31698E-03   -.84649    
  24  Prefactor     .79784        .24364        .31690E-03   -.99808    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.38386e-10
Minuit parameter uncertainties:
  1  0.000223986
  2  77.8324
  3  0.689181
  4  8.57356e-06
  5  11.0226
  6  0.000145633
  7  94.308
  8  27.1652
  9  1.36776e-05
  10  2.10577e-08
  11  3.17436
  12  74.7123
  13  5.38089e-05
  14  2.08568e-05
  15  4.88387
  16  3.73869
  17  93.9162
  18  2.88743e-06
  19  26.2324
  20  1.77228
  21  8.2691e-06
  22  24.7525
  23  0.311451
  24  0.243973
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  1.368e-05  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:  7.978e-01  2.440e-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:  1.264e+00  3.115e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/407862/likelihoodResults_532483201_532742401_4FGL_J2236.4-2309_daily_bin1131.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): 102
logL (Free Index) = 5975.82804999
delta logL = -0.000350222419911

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5975.82769989
delta logL = -1.30154148792e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7412       1.0000          .0000       10.000    
     3 'Normalizat'    1.2638       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79794       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5975.828     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      249 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    807.00        .18142E-02** at limit **
   2  Index         2.7312        5.1252        .50000        .68640E-06
   3  Normalizat    1.2639        .52030E-01    .31698E-03    .10760E-05
   4  Prefactor     .79784        .42560E-01    .31690E-03    .11480E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100018
  Index      = 2.73118
  Normalizat = 1.26395
  Prefactor  = 0.797842
 **********
 **   18 **HESSE 
 **********

 FCN=   5975.828     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    6266.0        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7312        6.6943        .50000       -.47098    
   3  Normalizat    1.2639        .14412        .12679E-04   -.84649    
   4  Prefactor     .79784        .11789        .12676E-04   -.99808    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.30057e-10
Minuit parameter uncertainties:
  1  0.0143074
  2  3400.35
  3  0.144168
  4  0.117923
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/407862': 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) = 5975.82769976
delta logL = 1.57979229698e-09

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  1.431e-02  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.731e+00  3.400e+03  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:  7.978e-01  1.179e-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:  1.264e+00  1.442e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/407862/cmap_HighResolution_532483201_532742401_4FGL_J2236.4-2309_daily_bin1131.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', job_status='DONE', photon_flux_upper_limit='1.29e-07', time_completed='2021-09-28 17:25:16.046904', job_id='407862', GAL2='0.80', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1632875116.05', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='1.58e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1131' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:25:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0196>
Subject: Job 407862: <4FGL_J2236.4-2309_daily_bin1131> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin1131> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 17:10:40 2021
Job was executed on host(s) <bullet0196>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:10:42 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:42 2021
Terminated at Tue Sep 28 17:25:16 2021
Results reported at Tue Sep 28 17:25:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1131 339.125 -23.1552 532483201 532742401 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 :                                   626.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             260.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   874 sec.
    Turnaround time :                            876 sec.

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

