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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin490
RA = 339.125, Dec = -23.1552
tmin = 366336001, tmax = 366595201
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='404683', job_status='RUN', time_executed='2021-09-28 17:04:04.197142', time_epoch_executed='1632873844.2' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='490'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/404683

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/404683/ft1_4FGL_J2236.4-2309_daily_bin490.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/404683/ft2_4FGL_J2236.4-2309_daily_bin490.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/404683/ft1_4FGL_J2236.4-2309_daily_bin490.fits outfile=/scratch/kocevski/404683/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin490.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=366336001.0 tmax=366595201.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.49
user 5.23
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/404683/ft1_filtered_4FGL_J2236.4-2309_daily_bin490.fits" evtable="EVENTS" scfile=/scratch/kocevski/404683/ft2_4FGL_J2236.4-2309_daily_bin490.fits sctable="SC_DATA" outfile=/scratch/kocevski/404683/ltcube_366336001_366595201_4FGL_J2236.4-2309_daily_bin490.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/404683/ft2_4FGL_J2236.4-2309_daily_bin490.fits
.....................!
real 11.62
user 11.27
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/404683/ft1_filtered_4FGL_J2236.4-2309_daily_bin490.fits evtable="EVENTS" scfile=/scratch/kocevski/404683/ft2_4FGL_J2236.4-2309_daily_bin490.fits sctable="SC_DATA" expcube=/scratch/kocevski/404683/ltcube_366336001_366595201_4FGL_J2236.4-2309_daily_bin490.fits outfile=/scratch/kocevski/404683/expmap_366336001_366595201_4FGL_J2236.4-2309_daily_bin490.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/404683/ltcube_366336001_366595201_4FGL_J2236.4-2309_daily_bin490.fits
.....................!
real 190.25
user 185.33
sys 4.62

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/404683/ft1_filtered_4FGL_J2236.4-2309_daily_bin490.fits scfile=/scratch/kocevski/404683/ft2_4FGL_J2236.4-2309_daily_bin490.fits outfile=/scratch/kocevski/404683/cmap_366336001_366595201_4FGL_J2236.4-2309_daily_bin490.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/404683/ft1_filtered_4FGL_J2236.4-2309_daily_bin490.fits scfile=/scratch/kocevski/404683/ft2_4FGL_J2236.4-2309_daily_bin490.fits outfile=/scratch/kocevski/404683/cmap_HighResolution_366336001_366595201_4FGL_J2236.4-2309_daily_bin490.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/404683/ft1_filtered_4FGL_J2236.4-2309_daily_bin490.fits evtable="EVENTS" scfile=/scratch/kocevski/404683/ft2_4FGL_J2236.4-2309_daily_bin490.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/404683/Model_4FGL_J2236.4-2309_daily_bin490.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/404683/ft1_filtered_4FGL_J2236.4-2309_daily_bin490.fits.....................!
real 52.00
user 50.71
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10537E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    60.141       1.0000         .10000E-03   10000.    
     3 'norm      '    2.2681       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .73107       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.8589       1.0000         .10000E-03   10000.    
    11 'norm      '    5.9538       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .29963E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.7089       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.9153       1.0000         .10000E-03   10000.    
    15 'norm      '    .10238E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.9873       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10661E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.5765       1.0000         .10000E-03   10000.    
    20 'norm      '    3.9948       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.2610       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11481E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2880       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0746       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=   5842.759     FROM MIGRAD    STATUS=CONVERGED    542 CALLS     2702 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.438       -.67928E-06** at limit **
   2  Prefactor     60.117        77.665        .26884E-05    .12826E-03
   3  norm          2.2682        .60759       -.12260E-07    .39745E-04
   4  Prefactor     .72772        8.2536        .16076E-06   -.48483E-04
   5  Prefactor     .10000E-03    12.722        .93590E-07** at limit **
   6  Prefactor     .10000E-03    12.625        .69090E-07** at limit **
   7  Prefactor     .10000E-03    85.593        .10057E-05** at limit **
   8  norm          .10000E-03    11.665       -.45930E-07** at limit **
   9  Prefactor     .10000E-03    13.704        .80905E-07** at limit **
  10  norm          3.8586        1.5644       -.10583E-07   -.44170E-03
  11  norm          5.9454        3.1191        .92467E-07    .61805E-03
  12  Prefactor     .10000E-03    102.66       -.16197E-06** at limit **
  13  Prefactor     3.7023        15.279        .35919E-06    .56173E-04
  14  Prefactor     4.9278        11.614       -.34598E-05   -.29588E-03
  15  norm          .10000E-03    .84932        .65880E-07** at limit **
  16  norm          1.9851        3.4355        .26180E-06    .62903E-03
  17  Prefactor     .10000E-03    26.394        .39620E-06** at limit **
  18  Prefactor     .10000E-03    12.375        .59452E-06** at limit **
  19  Prefactor     2.5268        30.373       -.15401E-05   -.95680E-04
  20  norm          3.9962        1.4081        .10210E-06    .15390E-02
  21  Prefactor     1.2646        22.895        .86976E-05   -.25888E-03
  22  Prefactor     .10000E-03    13.050        .62485E-06** at limit **
  23  Normalizat    1.2888        .24562       -.10805E-05    .13677E-03
  24  Prefactor     1.0738        .19483        .41346E-06    .36586E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 60.117
  norm       = 2.26815
  Prefactor  = 0.727722
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.85859
  norm       = 5.94538
  Prefactor  = 0.000100002
  Prefactor  = 3.70228
  Prefactor  = 4.92776
  norm       = 0.0001
  norm       = 1.98509
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.52679
  norm       = 3.9962
  Prefactor  = 1.26458
  Prefactor  = 0.000100003
  Normalizat = 1.2888
  Prefactor  = 1.0738
 **********
 **   18 **HESSE 
 **********

 FCN=   5842.759     FROM HESSE     STATUS=OK           393 CALLS     3095 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     60.117        77.605        .51737E-04   -1.4156    
   3  norm          2.2682        .60758        .29576E-04   -1.5407    
   4  Prefactor     .72772        25.234        .41642E-02   -1.5537    
   5  Prefactor     .10000E-03    12.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    85.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    11.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.8586        1.5639        .57312E-04   -1.5315    
  11  norm          5.9454        3.1191        .94490E-04   -1.5220    
  12  Prefactor     .10000E-03    102.68        .21390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.7023        15.277        .20969E-03   -1.5323    
  14  Prefactor     4.9278        12.311        .18142E-03   -1.5264    
  15  norm          .10000E-03    1.6312        .12397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.9851        3.4071        .17633E-03   -1.5426    
  17  Prefactor     .10000E-03    26.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.5268        30.368        .25427E-03   -1.5390    
  20  norm          3.9962        1.4027        .40553E-04   -1.5308    
  21  Prefactor     1.2646        24.899        .19858E-02   -1.5483    
  22  Prefactor     .10000E-03    13.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2888        .29777        .29357E-03   -.83901    
  24  Prefactor     1.0738        .23978        .26754E-03   -.90308    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.68174e-08
Minuit parameter uncertainties:
  1  0.000357181
  2  77.7363
  3  0.60758
  4  8.57386
  5  1.15836e-05
  6  1.46797e-05
  7  0.000318693
  8  2.66205e-06
  9  5.90457e-05
  10  1.56393
  11  3.11918
  12  0.000825246
  13  15.0477
  14  12.3175
  15  3.09714e-05
  16  3.4074
  17  3.3463e-05
  18  0.000271094
  19  17.5302
  20  1.4027
  21  11.2276
  22  0.000410473
  23  0.298162
  24  0.240025
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  5.905e-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:  1.074e+00  2.400e-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.289e+00  2.982e-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.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.45e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/404683/likelihoodResults_366336001_366595201_4FGL_J2236.4-2309_daily_bin490.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) = 5842.7593261
delta logL = -0.000345112180185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5842.75898089
delta logL = 9.17198121897e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7175       1.0000          .0000       10.000    
     3 'Normalizat'    1.2888       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0738       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=   5842.759     FROM MIGRAD    STATUS=CONVERGED    112 CALLS      273 TOTAL
                     EDM=   .80E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.544        .89062E-01** at limit **
   2  Index         2.1911        5.7939        .50000        .34970E-07
   3  Normalizat    1.2888        .59255E-02    .29357E-03    .34433E-03
   4  Prefactor     1.0738        .50097E-02    .26753E-03    .37579E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.1911
  Normalizat = 1.28881
  Prefactor  = 1.07379
 **********
 **   18 **HESSE 
 **********

 FCN=   5842.759     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      304 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    881.58        .47985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1911        5.8637        .50000       -.59654    
   3  Normalizat    1.2888        .40907E-01    .58715E-04   -.83901    
   4  Prefactor     1.0738        .34586E-01    .53507E-04   -.90309    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.09344e-10
Minuit parameter uncertainties:
  1  0.00146313
  2  867.295
  3  0.0409079
  4  0.034587
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/404683': 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) = 5842.75897978
delta logL = 1.20063486975e-06

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  1.463e-03  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.191e+00  8.673e+02  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.074e+00  3.459e-02  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.289e+00  4.091e-02  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/404683/cmap_HighResolution_366336001_366595201_4FGL_J2236.4-2309_daily_bin490.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.45e-03', job_status='DONE', photon_flux_upper_limit='1.20e-07', time_completed='2021-09-28 17:14:20.953088', job_id='404683', GAL2='1.07', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1632874460.95', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='1.20e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='490' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:14:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 404683: <4FGL_J2236.4-2309_daily_bin490> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin490> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 17:00:39 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:00:40 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:00:40 2021
Terminated at Tue Sep 28 17:14:21 2021
Results reported at Tue Sep 28 17:14:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin490 339.125 -23.1552 366336001 366595201 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 :                                   616.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            822 sec.

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

