/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 42 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 = 7387
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2236.4-2309_daily_bin972
RA = 339.125, Dec = -23.1552
tmin = 491270401, tmax = 491529601
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='407629', job_status='RUN', time_executed='2021-09-28 17:11:18.677172', time_epoch_executed='1632874278.68' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='972'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/407629

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/407629/ft1_4FGL_J2236.4-2309_daily_bin972.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/407629/ft2_4FGL_J2236.4-2309_daily_bin972.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/407629/ft1_4FGL_J2236.4-2309_daily_bin972.fits outfile=/scratch/kocevski/407629/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin972.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=491270401.0 tmax=491529601.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.54
user 3.33
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/407629/ft1_filtered_4FGL_J2236.4-2309_daily_bin972.fits" evtable="EVENTS" scfile=/scratch/kocevski/407629/ft2_4FGL_J2236.4-2309_daily_bin972.fits sctable="SC_DATA" outfile=/scratch/kocevski/407629/ltcube_491270401_491529601_4FGL_J2236.4-2309_daily_bin972.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/407629/ft2_4FGL_J2236.4-2309_daily_bin972.fits
.....................!
real 12.05
user 11.71
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/407629/ft1_filtered_4FGL_J2236.4-2309_daily_bin972.fits evtable="EVENTS" scfile=/scratch/kocevski/407629/ft2_4FGL_J2236.4-2309_daily_bin972.fits sctable="SC_DATA" expcube=/scratch/kocevski/407629/ltcube_491270401_491529601_4FGL_J2236.4-2309_daily_bin972.fits outfile=/scratch/kocevski/407629/expmap_491270401_491529601_4FGL_J2236.4-2309_daily_bin972.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/407629/ltcube_491270401_491529601_4FGL_J2236.4-2309_daily_bin972.fits
.....................!
real 191.20
user 185.96
sys 4.74

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/407629/ft1_filtered_4FGL_J2236.4-2309_daily_bin972.fits scfile=/scratch/kocevski/407629/ft2_4FGL_J2236.4-2309_daily_bin972.fits outfile=/scratch/kocevski/407629/cmap_491270401_491529601_4FGL_J2236.4-2309_daily_bin972.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.38
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/407629/ft1_filtered_4FGL_J2236.4-2309_daily_bin972.fits evtable="EVENTS" scfile=/scratch/kocevski/407629/ft2_4FGL_J2236.4-2309_daily_bin972.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/407629/Model_4FGL_J2236.4-2309_daily_bin972.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/407629/ft1_filtered_4FGL_J2236.4-2309_daily_bin972.fits.....................!
real 52.65
user 51.18
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96144E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.077       1.0000         .10000E-03   10000.    
     3 'norm      '    1.3371       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10972E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10325E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    38.467       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.9100       1.0000         .10000E-03   10000.    
    11 'norm      '    1.9785       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.481       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.453       1.0000         .10000E-03   10000.    
    14 'Prefactor '    34.719       1.0000         .10000E-03   10000.    
    15 'norm      '    32.489       1.0000         .10000E-03   10000.    
    16 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11499E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10364E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.6581       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4830       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .87252       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=   6069.652     FROM MIGRAD    STATUS=CONVERGED    555 CALLS     3315 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    63.458       -.18115E-04** at limit **
   2  Prefactor     9.9759        91.915        .22417E-04    .53288E-04
   3  norm          1.3370        .52619       -.43489E-07    .19735E-03
   4  Prefactor     .10000E-03    9.0355        .60733E-07** at limit **
   5  Prefactor     .10000E-03    9.3988        .46253E-06** at limit **
   6  Prefactor     .10000E-03    35.426        .39816E-06** at limit **
   7  Prefactor     .10000E-03    37.318       -.27796E-06** at limit **
   8  norm          38.476        32.287       -.29033E-06   -.15008E-04
   9  Prefactor     .10000E-03    7.9152       -.43310E-06** at limit **
  10  norm          1.9094        1.3333        .27459E-06    .16421E-03
  11  norm          1.9786        3.4015        .87230E-07   -.10408E-03
  12  Prefactor     16.471        107.43       -.62927E-06   -.28706E-04
  13  Prefactor     11.439        11.630        .20943E-06   -.44456E-04
  14  Prefactor     34.902        88.496       -.12080E-04    .78290E-04
  15  norm          32.479        7.9544        .92862E-06   -.44170E-03
  16  norm          .10000E-03    2.8100        .14276E-06** at limit **
  17  Prefactor     .10000E-03    70.846       -.30010E-06** at limit **
  18  Prefactor     .10000E-03    10.610        .25701E-06** at limit **
  19  Prefactor     .10000E-03    6.2499        .66148E-06** at limit **
  20  norm          .10000E-03    .44355        .67766E-07** at limit **
  21  Prefactor     .10000E-03    6.6369        .44350E-06** at limit **
  22  Prefactor     1.6574        13.451        .46234E-05   -.28854E-03
  23  Normalizat    1.4828        .24385       -.29970E-05   -.30577E-04
  24  Prefactor     .87263        .19408        .10355E-05   -.16756E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100016
  Prefactor  = 9.97593
  norm       = 1.33702
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 38.476
  Prefactor  = 0.0001
  norm       = 1.90937
  norm       = 1.97861
  Prefactor  = 16.471
  Prefactor  = 11.4394
  Prefactor  = 34.9019
  norm       = 32.4792
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 1.65738
  Normalizat = 1.48282
  Prefactor  = 0.872628
 **********
 **   18 **HESSE 
 **********

 FCN=   6069.652     FROM HESSE     STATUS=OK           395 CALLS     3710 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    68.780        .41576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.9759        99.867        .12623E-03   -1.5076    
   3  norm          1.3370        .52710        .34272E-04   -1.5477    
   4  Prefactor     .10000E-03    9.1004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.4218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    35.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    37.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          38.476        32.286        .64623E-04   -1.4467    
   9  Prefactor     .10000E-03    7.9215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.9094        1.3236        .71148E-04   -1.5432    
  11  norm          1.9786        3.6685        .13496E-03   -1.5427    
  12  Prefactor     16.471        128.25        .98656E-04   -1.4896    
  13  Prefactor     11.439        11.648        .11837E-03   -1.5031    
  14  Prefactor     34.902        88.000        .68010E-04   -1.4526    
  15  norm          32.479        7.9744        .47594E-04   -1.4568    
  16  norm          .10000E-03    2.8894        .25485E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    70.957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.3091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.1255        .96302E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.6559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.6574        14.041        .16385E-02   -1.5450    
  23  Normalizat    1.4828        .29713        .29086E-03   -.78262    
  24  Prefactor     .87263        .23616        .30361E-03   -.97104    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07792e-09
Minuit parameter uncertainties:
  1  0.00211795
  2  63.2643
  3  0.527103
  4  1.20886e-05
  5  4.63076e-06
  6  6.23617e-07
  7  3.30026e-05
  8  32.3005
  9  2.49866e-05
  10  1.32365
  11  3.66889
  12  92.1949
  13  11.6499
  14  88.3298
  15  7.9747
  16  3.62749e-06
  17  0.000264356
  18  1.34168e-05
  19  1.48984e-05
  20  6.87338e-05
  21  6.79594e-06
  22  9.6507
  23  0.297481
  24  0.23644
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  2.499e-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:  8.726e-01  2.364e-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.483e+00  2.975e-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.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/407629/likelihoodResults_491270401_491529601_4FGL_J2236.4-2309_daily_bin972.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) = 6069.65216295
delta logL = -0.000600462703005

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6069.65156249
delta logL = -3.75257513952e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7455       1.0000          .0000       10.000    
     3 'Normalizat'    1.4828       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87264       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=   6069.526     FROM MIGRAD    STATUS=CONVERGED    326 CALLS      482 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13995E-02    .28646E-02    .12622E-02** at limit **
   2  Index         9.7254        8.0314        .50000       -.80300E-04
   3  Normalizat    1.4433        .28080        .29086E-03   -.70415E-03
   4  Prefactor     .89483        .23257        .30361E-03   -.65361E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00139951
  Index      = 9.72537
  Normalizat = 1.4433
  Prefactor  = 0.894828
 **********
 **   18 **HESSE 
 **********

 FCN=   6069.526     FROM HESSE     STATUS=OK            31 CALLS      513 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13995E-02    .37857E-02    .60347E-05   -1.5715    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.7254        8.8722        .50000        1.2378    
   3  Normalizat    1.4433        .28945        .58172E-04   -.79384    
   4  Prefactor     .89483        .23599        .60722E-04   -.96322    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29437e-08
Minuit parameter uncertainties:
  1  0.00378565
  2  3.08245
  3  0.289782
  4  0.236257
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/407629': 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) = 6069.52625869
delta logL = 0.125303789191

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.400e-03  3.786e-03  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  9.725e+00  3.082e+00  0.000e+00  1.000e+01 (-1.000e+00)
249        Scale:  4.484e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  8.948e-01  2.363e-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.443e+00  2.898e-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/407629/cmap_HighResolution_491270401_491529601_4FGL_J2236.4-2309_daily_bin972.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.11e-03', job_status='DONE', photon_flux_upper_limit='1.15e-07', time_completed='2021-09-28 17:22:47.982916', job_id='407629', GAL2='0.89', fit_tolerance='1e-08', EG2='1.44', EG='1.48', time_epoch_completed='1632874967.98', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='1.25e-01', ts2='0.27', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='972' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:22:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 407629: <4FGL_J2236.4-2309_daily_bin972> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin972 339.125 -23.1552 491270401 491529601 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 :                                   688.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   744 sec.
    Turnaround time :                            745 sec.

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

