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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin479
RA = 339.125, Dec = -23.1552
tmin = 363484801, tmax = 363744001
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='404665', job_status='RUN', time_executed='2021-09-28 17:02:38.694315', time_epoch_executed='1632873758.69' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='479'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/404665

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/404665/ft1_4FGL_J2236.4-2309_daily_bin479.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/404665/ft2_4FGL_J2236.4-2309_daily_bin479.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/404665/ft1_4FGL_J2236.4-2309_daily_bin479.fits outfile=/scratch/kocevski/404665/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin479.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=363484801.0 tmax=363744001.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 2.98
user 2.73
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/404665/ft2_4FGL_J2236.4-2309_daily_bin479.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/404665/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin479.fits evtable="EVENTS" outfile="/scratch/kocevski/404665/ft1_filtered_4FGL_J2236.4-2309_daily_bin479.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.42
user 0.27
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/404665/ft1_filtered_4FGL_J2236.4-2309_daily_bin479.fits" evtable="EVENTS" scfile=/scratch/kocevski/404665/ft2_4FGL_J2236.4-2309_daily_bin479.fits sctable="SC_DATA" outfile=/scratch/kocevski/404665/ltcube_363484801_363744001_4FGL_J2236.4-2309_daily_bin479.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/404665/ft2_4FGL_J2236.4-2309_daily_bin479.fits
.....................!
real 9.39
user 9.06
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/404665/ft1_filtered_4FGL_J2236.4-2309_daily_bin479.fits evtable="EVENTS" scfile=/scratch/kocevski/404665/ft2_4FGL_J2236.4-2309_daily_bin479.fits sctable="SC_DATA" expcube=/scratch/kocevski/404665/ltcube_363484801_363744001_4FGL_J2236.4-2309_daily_bin479.fits outfile=/scratch/kocevski/404665/expmap_363484801_363744001_4FGL_J2236.4-2309_daily_bin479.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/404665/ltcube_363484801_363744001_4FGL_J2236.4-2309_daily_bin479.fits
.....................!
real 150.36
user 145.95
sys 4.16

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/404665/ft1_filtered_4FGL_J2236.4-2309_daily_bin479.fits scfile=/scratch/kocevski/404665/ft2_4FGL_J2236.4-2309_daily_bin479.fits outfile=/scratch/kocevski/404665/cmap_363484801_363744001_4FGL_J2236.4-2309_daily_bin479.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.47
user 0.31
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/404665/ft1_filtered_4FGL_J2236.4-2309_daily_bin479.fits scfile=/scratch/kocevski/404665/ft2_4FGL_J2236.4-2309_daily_bin479.fits outfile=/scratch/kocevski/404665/cmap_HighResolution_363484801_363744001_4FGL_J2236.4-2309_daily_bin479.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.47
user 0.32
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/404665/ft1_filtered_4FGL_J2236.4-2309_daily_bin479.fits evtable="EVENTS" scfile=/scratch/kocevski/404665/ft2_4FGL_J2236.4-2309_daily_bin479.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/404665/Model_4FGL_J2236.4-2309_daily_bin479.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/404665/ft1_filtered_4FGL_J2236.4-2309_daily_bin479.fits.....................!
real 39.60
user 38.50
sys 1.02

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.2015       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.8743       1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.307       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .77101E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.1073       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.294       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    9.7264       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    30.877       1.0000         .10000E-03   10000.    
    19 'Prefactor '    26.672       1.0000         .10000E-03   10000.    
    20 'norm      '    .76508       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .84402E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3821       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .72287       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=   5939.903     FROM MIGRAD    STATUS=CONVERGED    579 CALLS     2376 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.7788       -.16281E-06** at limit **
   2  Prefactor     .10000E-03    46.769        .44072E-05** at limit **
   3  norm          1.2014        .48504       -.16902E-07    .34444E-03
   4  Prefactor     3.8684        11.508        .89359E-05    .10477E-03
   5  Prefactor     23.310        17.313        .46440E-06   -.78708E-05
   6  Prefactor     .10928E-03    22.671       -.58043E-05** at limit **
   7  Prefactor     .10000E-03    18.083        .89481E-07** at limit **
   8  norm          .10000E-03    6.6759       -.21587E-06** at limit **
   9  Prefactor     .10000E-03    3.1938        .40427E-07** at limit **
  10  norm          5.1076        1.3397        .42938E-07   -.14858E-03
  11  norm          .10000E-03    .59020        .51495E-07** at limit **
  12  Prefactor     .10000E-03    12.865        .97260E-07** at limit **
  13  Prefactor     13.295        13.453        .12467E-05   -.11356E-03
  14  Prefactor     .10000E-03    4.3099        .11290E-06** at limit **
  15  norm          .10000E-03    .39169       -.30410E-07** at limit **
  16  norm          9.7194        5.9889        .52308E-05   -.53400E-03
  17  Prefactor     .10000E-03    6.9281        .28382E-06** at limit **
  18  Prefactor     30.910        26.291       -.16515E-04   -.20069E-03
  19  Prefactor     26.618        19.160       -.21295E-05   -.36771E-03
  20  norm          .76923        1.2348        .20492E-05    .90635E-03
  21  Prefactor     .10005E-03    9.7354        .10226E-05** at limit **
  22  Prefactor     .10000E-03    4.8182        .14065E-06** at limit **
  23  Normalizat    1.3820        .21563       -.71765E-06    .97496E-04
  24  Prefactor     .72294        .17239       -.88764E-06    .73703E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.20142
  Prefactor  = 3.86843
  Prefactor  = 23.3104
  Prefactor  = 0.000109277
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.10759
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.2945
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.71942
  Prefactor  = 0.0001
  Prefactor  = 30.9103
  Prefactor  = 26.6179
  norm       = 0.76923
  Prefactor  = 0.000100047
  Prefactor  = 0.0001
  Normalizat = 1.38203
  Prefactor  = 0.722937
 **********
 **   18 **HESSE 
 **********

 FCN=   5939.903     FROM HESSE     STATUS=OK           405 CALLS     2781 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.7818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    46.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.2014        .48498        .33030E-04   -1.5489    
   4  Prefactor     3.8684        11.443        .20500E-03   -1.5315    
   5  Prefactor     23.310        17.320        .82971E-04   -1.4742    
   6  Prefactor     .10928E-03    28.008        .96438E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.6779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.1966        .13451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.1076        1.3398        .43809E-04   -1.5256    
  11  norm          .10000E-03    .59257        .57819E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.295        13.534        .10986E-03   -1.4979    
  14  Prefactor     .10000E-03    4.3190        .15624E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .40648        .94076E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.7194        5.9030        .12849E-03   -1.5084    
  17  Prefactor     .10000E-03    6.9311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     30.910        26.318        .72106E-04   -1.4595    
  19  Prefactor     26.618        18.648        .77569E-04   -1.4676    
  20  norm          .76923        1.1294        .68098E-04   -1.5533    
  21  Prefactor     .10005E-03    101.21        .45767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.8277        .16512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3820        .26472        .25503E-03   -.81150    
  24  Prefactor     .72294        .20970        .28202E-03   -1.0263    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76216e-09
Minuit parameter uncertainties:
  1  4.62894e-06
  2  4.61067e-05
  3  0.484986
  4  11.4494
  5  17.3234
  6  0.0322529
  7  3.53275e-06
  8  2.72395e-06
  9  4.90318e-06
  10  1.33978
  11  1.64482e-06
  12  2.32903e-05
  13  13.5373
  14  2.70423e-06
  15  9.33768e-07
  16  5.90336
  17  1.84374e-06
  18  26.3277
  19  18.6516
  20  1.12943
  21  0.00436268
  22  3.62191e-05
  23  0.264982
  24  0.20993
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  4.903e-06  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.229e-01  2.099e-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.382e+00  2.650e-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: 6.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/404665/likelihoodResults_363484801_363744001_4FGL_J2236.4-2309_daily_bin479.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) = 5939.9046957
delta logL = -0.00145817443718

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5939.90323851
delta logL = -9.85978658719e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7278       1.0000          .0000       10.000    
     3 'Normalizat'    1.3824       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72267       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=   5939.903     FROM MIGRAD    STATUS=CONVERGED    110 CALLS      265 TOTAL
                     EDM=   .66E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    127.46        .13581E-01** at limit **
   2  Index         1.7424        8.6824        .50000       -.28670E-06
   3  Normalizat    1.3820        .26936E-01    .25503E-03   -.19170E-03
   4  Prefactor     .72294        .22414E-01    .28202E-03   -.16117E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.74243
  Normalizat = 1.38203
  Prefactor  = 0.722937
 **********
 **   18 **HESSE 
 **********

 FCN=   5939.903     FROM HESSE     STATUS=OK            29 CALLS      294 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.6434        .33800E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7424        8.1903        .50000       -.70958    
   3  Normalizat    1.3820        .24492        .51007E-04   -.81150    
   4  Prefactor     .72294        .20374        .11281E-04   -1.0263    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.37264e-11
Minuit parameter uncertainties:
  1  6.38152e-05
  2  83.284
  3  0.245129
  4  0.203953
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/404665': 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) = 5939.90323155
delta logL = 5.98006863584e-06

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  6.382e-05  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  1.742e+00  8.328e+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:  7.229e-01  2.040e-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.382e+00  2.451e-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/404665/cmap_HighResolution_363484801_363744001_4FGL_J2236.4-2309_daily_bin479.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.77e-03', job_status='DONE', photon_flux_upper_limit='6.05e-08', time_completed='2021-09-28 17:10:29.475515', job_id='404665', GAL2='0.72', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1632874229.48', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='5.98e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='479' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:10:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 404665: <4FGL_J2236.4-2309_daily_bin479> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin479 339.125 -23.1552 363484801 363744001 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 :                                   470.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             253.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   590 sec.
    Turnaround time :                            592 sec.

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

