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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin787
RA = 339.125, Dec = -23.1552
tmin = 443318401, tmax = 443577601
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='406359', job_status='RUN', time_executed='2021-09-28 17:09:03.718732', time_epoch_executed='1632874143.72' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='787'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/406359

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/406359/ft1_4FGL_J2236.4-2309_daily_bin787.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/406359/ft2_4FGL_J2236.4-2309_daily_bin787.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/406359/ft1_4FGL_J2236.4-2309_daily_bin787.fits outfile=/scratch/kocevski/406359/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin787.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=443318401.0 tmax=443577601.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 4.60
user 4.36
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/406359/ft1_filtered_4FGL_J2236.4-2309_daily_bin787.fits" evtable="EVENTS" scfile=/scratch/kocevski/406359/ft2_4FGL_J2236.4-2309_daily_bin787.fits sctable="SC_DATA" outfile=/scratch/kocevski/406359/ltcube_443318401_443577601_4FGL_J2236.4-2309_daily_bin787.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/406359/ft2_4FGL_J2236.4-2309_daily_bin787.fits
.....................!
real 11.56
user 11.20
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/406359/ft1_filtered_4FGL_J2236.4-2309_daily_bin787.fits evtable="EVENTS" scfile=/scratch/kocevski/406359/ft2_4FGL_J2236.4-2309_daily_bin787.fits sctable="SC_DATA" expcube=/scratch/kocevski/406359/ltcube_443318401_443577601_4FGL_J2236.4-2309_daily_bin787.fits outfile=/scratch/kocevski/406359/expmap_443318401_443577601_4FGL_J2236.4-2309_daily_bin787.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/406359/ltcube_443318401_443577601_4FGL_J2236.4-2309_daily_bin787.fits
.....................!
real 189.83
user 185.31
sys 4.21

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/406359/ft1_filtered_4FGL_J2236.4-2309_daily_bin787.fits scfile=/scratch/kocevski/406359/ft2_4FGL_J2236.4-2309_daily_bin787.fits outfile=/scratch/kocevski/406359/cmap_443318401_443577601_4FGL_J2236.4-2309_daily_bin787.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/406359/ft1_filtered_4FGL_J2236.4-2309_daily_bin787.fits scfile=/scratch/kocevski/406359/ft2_4FGL_J2236.4-2309_daily_bin787.fits outfile=/scratch/kocevski/406359/cmap_HighResolution_443318401_443577601_4FGL_J2236.4-2309_daily_bin787.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/406359/ft1_filtered_4FGL_J2236.4-2309_daily_bin787.fits evtable="EVENTS" scfile=/scratch/kocevski/406359/ft2_4FGL_J2236.4-2309_daily_bin787.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/406359/Model_4FGL_J2236.4-2309_daily_bin787.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/406359/ft1_filtered_4FGL_J2236.4-2309_daily_bin787.fits.....................!
real 57.65
user 56.37
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.141       1.0000         .10000E-03   10000.    
     3 'norm      '    1.9960       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.245       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.9590       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.9330       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.2442       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .40427       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.6060       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.3474       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.923       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.1341       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .89391       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .92894       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=   7569.166     FROM MIGRAD    STATUS=CONVERGED    515 CALLS     2708 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.5489        .10412E-05** at limit **
   2  Prefactor     22.130        33.591       -.18891E-04    .20803E-03
   3  norm          1.9960        .39133        .52827E-07    .33590E-03
   4  Prefactor     11.246        7.4590        .40650E-06   -.42840E-05
   5  Prefactor     9.9582        9.7260       -.44460E-06   -.40431E-04
   6  Prefactor     1.9244        13.579       -.29980E-05   -.21240E-03
   7  Prefactor     .10000E-03    17.561       -.52391E-05** at limit **
   8  norm          .10000E-03    4.1548       -.83344E-07** at limit **
   9  Prefactor     6.2451        8.7577       -.43487E-06   -.39960E-04
  10  norm          .10000E-03    .20415       -.18355E-07** at limit **
  11  norm          .40360        1.0729       -.53554E-06   -.21789E-02
  12  Prefactor     .10000E-03    10.745       -.46671E-05** at limit **
  13  Prefactor     1.6036        6.1791       -.25018E-05   -.70835E-03
  14  Prefactor     .10000E-03    10.574       -.54054E-05** at limit **
  15  norm          1.3472        .74530        .47395E-07   -.45709E-04
  16  norm          .10000E-03    .78864        .43192E-07** at limit **
  17  Prefactor     .10000E-03    12.484        .14318E-04** at limit **
  18  Prefactor     13.924        8.0076       -.18835E-06    .11884E-03
  19  Prefactor     .10000E-03    2.3590        .20580E-07** at limit **
  20  norm          .10000E-03    .81594E-01   -.22044E-07** at limit **
  21  Prefactor     6.1336        6.1511       -.18157E-06    .77414E-05
  22  Prefactor     .10000E-03    1.7869       -.33376E-07** at limit **
  23  Normalizat    .89393        .15057        .12053E-05    .13242E-03
  24  Prefactor     .92898        .13301        .61104E-06    .16475E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 22.1302
  norm       = 1.99603
  Prefactor  = 11.2461
  Prefactor  = 9.95818
  Prefactor  = 1.92437
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.24511
  norm       = 0.0001
  norm       = 0.403596
  Prefactor  = 0.0001
  Prefactor  = 1.60361
  Prefactor  = 0.0001
  norm       = 1.34723
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 13.9241
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.13363
  Prefactor  = 0.0001
  Normalizat = 0.893926
  Prefactor  = 0.928978
 **********
 **   18 **HESSE 
 **********

 FCN=   7569.166     FROM HESSE     STATUS=OK           399 CALLS     3107 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.5699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     22.130        33.269        .85124E-04   -1.4767    
   3  norm          1.9960        .39165        .23356E-04   -1.5425    
   4  Prefactor     11.246        7.4508        .11947E-03   -1.5037    
   5  Prefactor     9.9582        9.7285        .12698E-03   -1.5077    
   6  Prefactor     1.9244        13.712        .29871E-03   -1.5431    
   7  Prefactor     .10000E-03    17.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.1572        .17319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.2451        8.7361        .16064E-03   -1.5208    
  10  norm          .10000E-03    .20432        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .40360        .94485        .14317E-02   -1.5581    
  12  Prefactor     .10000E-03    10.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.6036        6.2986        .33438E-03   -1.5455    
  14  Prefactor     .10000E-03    10.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.3472        .73420        .53859E-04   -1.5476    
  16  norm          .10000E-03    .79150        .75411E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.924        7.9730        .10734E-03   -1.4961    
  19  Prefactor     .10000E-03    2.3895        .13020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .83608E-01    .48401E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.1336        6.1515        .16210E-03   -1.5213    
  22  Prefactor     .10000E-03    1.7907        .11356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .89393        .17899        .24314E-03   -.96674    
  24  Prefactor     .92898        .15851        .21558E-03   -.95136    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.93889e-09
Minuit parameter uncertainties:
  1  0.000100996
  2  33.2971
  3  0.391648
  4  7.45141
  5  9.73002
  6  10.2768
  7  0.0001172
  8  1.75354e-06
  9  8.73788
  10  5.90172e-08
  11  0.944885
  12  9.66184e-05
  13  6.30119
  14  6.99681e-05
  15  0.734209
  16  7.29013e-08
  17  0.000320504
  18  7.97365
  19  3.19217e-07
  20  1.17586e-08
  21  6.15215
  22  9.87429e-07
  23  0.179105
  24  0.158588
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  6.245e+00  8.738e+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:  9.290e-01  1.586e-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.939e-01  1.791e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.63
Ra Dec: 339.125 -23.155
Photon Flux Upper Limit: 8.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/406359/likelihoodResults_443318401_443577601_4FGL_J2236.4-2309_daily_bin787.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) = 7569.14240772
delta logL = 0.0240067247878

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7569.13662317
delta logL = 0.0297912801561

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.2620       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4952       1.0000          .0000       10.000    
     3 'Normalizat'    .89798       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92572       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=   7569.137     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      264 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2623        10.174        .14884E-03   -.42674E-03
   2  Index         2.4948        .94800        .14538E-01   -.74056E-04
   3  Normalizat    .89794        .17521        .24263E-03    .84199E-04
   4  Prefactor     .92562        .15762        .21591E-03    .10225E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.26225
  Index      = 2.49481
  Normalizat = 0.897944
  Prefactor  = 0.925619
 **********
 **   18 **HESSE 
 **********

 FCN=   7569.137     FROM HESSE     STATUS=OK            23 CALLS      287 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2623        10.000        .59537E-05   -1.5169    
   2  Index         2.4948        .93211        .58150E-03   -.52480    
   3  Normalizat    .89794        .17544        .97053E-05   -.96532    
   4  Prefactor     .92562        .15776        .86365E-05   -.95252    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.28543e-10
Minuit parameter uncertainties:
  1  10.0028
  2  0.939471
  3  0.175555
  4  0.157839
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/406359': 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) = 7569.13662147
delta logL = 0.0297929815642

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  7.262e+00  1.000e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.495e+00  9.395e-01  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:  9.256e-01  1.578e-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.979e-01  1.756e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/406359/cmap_HighResolution_443318401_443577601_4FGL_J2236.4-2309_daily_bin787.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.01e-03', job_status='DONE', photon_flux_upper_limit='8.88e-08', time_completed='2021-09-28 17:20:45.134042', job_id='406359', GAL2='0.93', fit_tolerance='1e-08', EG2='0.90', EG='0.89', time_epoch_completed='1632874845.13', return_code2='0', ts='0.63', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='2.98e-02', ts2='0.68', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='787' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:20:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 406359: <4FGL_J2236.4-2309_daily_bin787> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin787> 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) <bullet0258>, 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:20:45 2021
Results reported at Tue Sep 28 17:20:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin787 339.125 -23.1552 443318401 443577601 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 :                                   701.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            902 sec.

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

