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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin508
RA = 339.125, Dec = -23.1552
tmin = 371001601, tmax = 371260801
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='404709', job_status='RUN', time_executed='2021-09-28 17:03:08.851230', time_epoch_executed='1632873788.85' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='508'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/404709

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/404709/ft1_4FGL_J2236.4-2309_daily_bin508.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/404709/ft2_4FGL_J2236.4-2309_daily_bin508.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/404709/ft1_4FGL_J2236.4-2309_daily_bin508.fits outfile=/scratch/kocevski/404709/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin508.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=371001601.0 tmax=371260801.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 6.52
user 6.27
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/404709/ft1_filtered_4FGL_J2236.4-2309_daily_bin508.fits" evtable="EVENTS" scfile=/scratch/kocevski/404709/ft2_4FGL_J2236.4-2309_daily_bin508.fits sctable="SC_DATA" outfile=/scratch/kocevski/404709/ltcube_371001601_371260801_4FGL_J2236.4-2309_daily_bin508.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/404709/ft2_4FGL_J2236.4-2309_daily_bin508.fits
.....................!
real 11.42
user 11.08
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/404709/ft1_filtered_4FGL_J2236.4-2309_daily_bin508.fits evtable="EVENTS" scfile=/scratch/kocevski/404709/ft2_4FGL_J2236.4-2309_daily_bin508.fits sctable="SC_DATA" expcube=/scratch/kocevski/404709/ltcube_371001601_371260801_4FGL_J2236.4-2309_daily_bin508.fits outfile=/scratch/kocevski/404709/expmap_371001601_371260801_4FGL_J2236.4-2309_daily_bin508.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/404709/ltcube_371001601_371260801_4FGL_J2236.4-2309_daily_bin508.fits
.....................!
real 189.28
user 184.77
sys 4.20

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/404709/ft1_filtered_4FGL_J2236.4-2309_daily_bin508.fits scfile=/scratch/kocevski/404709/ft2_4FGL_J2236.4-2309_daily_bin508.fits outfile=/scratch/kocevski/404709/cmap_371001601_371260801_4FGL_J2236.4-2309_daily_bin508.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.55
user 0.36
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/404709/ft1_filtered_4FGL_J2236.4-2309_daily_bin508.fits evtable="EVENTS" scfile=/scratch/kocevski/404709/ft2_4FGL_J2236.4-2309_daily_bin508.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/404709/Model_4FGL_J2236.4-2309_daily_bin508.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/404709/ft1_filtered_4FGL_J2236.4-2309_daily_bin508.fits.....................!
real 42.93
user 41.68
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/404709/ft1_filtered_4FGL_J2236.4-2309_daily_bin508.fits', '/scratch/kocevski/404709/ft2_4FGL_J2236.4-2309_daily_bin508.fits', expMap='/scratch/kocevski/404709/expmap_371001601_371260801_4FGL_J2236.4-2309_daily_bin508.fits', expCube='/scratch/kocevski/404709/ltcube_371001601_371260801_4FGL_J2236.4-2309_daily_bin508.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/404709/Model_4FGL_J2236.4-2309_daily_bin508.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/404709/ft1_filtered_4FGL_J2236.4-2309_daily_bin508.fits
Spacecraft file(s): /scratch/kocevski/404709/ft2_4FGL_J2236.4-2309_daily_bin508.fits
Exposure map: /scratch/kocevski/404709/expmap_371001601_371260801_4FGL_J2236.4-2309_daily_bin508.fits
Exposure cube: /scratch/kocevski/404709/ltcube_371001601_371260801_4FGL_J2236.4-2309_daily_bin508.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/404709/Model_4FGL_J2236.4-2309_daily_bin508.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 4712.79816927

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15863E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    36.385       1.0000         .10000E-03   10000.    
     3 'norm      '    .59355       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.8315       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10335E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.2454       1.0000         .10000E-03   10000.    
    10 'norm      '    5.2378       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.950       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .46100E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.7609       1.0000         .10000E-03   10000.    
    17 'Prefactor '    51.909       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.437       1.0000         .10000E-03   10000.    
    20 'norm      '    1.4720       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.6278       1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.107       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .66504       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2769       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=   4712.748     FROM MIGRAD    STATUS=CONVERGED    557 CALLS     3138 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10601E-03    29.770        .36112E-05** at limit **
   2  Prefactor     36.203        50.769       -.35479E-05   -.32742E-03
   3  norm          .59356        .32657        .65099E-08   -.65445E-03
   4  Prefactor     .10000E-03    6.5917       -.37324E-07** at limit **
   5  Prefactor     9.8281        13.679       -.15150E-06    .12020E-04
   6  Prefactor     .10000E-03    23.452        .21057E-05** at limit **
   7  Prefactor     .10000E-03    30.673       -.23153E-06** at limit **
   8  norm          .10000E-03    7.8810       -.30378E-07** at limit **
   9  Prefactor     5.2435        11.151        .95013E-06   -.44638E-03
  10  norm          5.2379        1.6004       -.18816E-07    .54146E-03
  11  norm          .10000E-03    .88327        .79789E-08** at limit **
  12  Prefactor     .10000E-03    23.205       -.24895E-05** at limit **
  13  Prefactor     19.951        16.403       -.68459E-07    .49207E-05
  14  Prefactor     .10003E-03    17.802       -.11264E-05** at limit **
  15  norm          .10000E-03    .70022       -.13001E-07** at limit **
  16  norm          7.7602        6.0012        .16452E-06   -.49979E-03
  17  Prefactor     51.859        48.856        .19513E-05    .16280E-03
  18  Prefactor     .10000E-03    20.931        .53202E-06** at limit **
  19  Prefactor     11.439        11.353       -.28178E-06    .20295E-04
  20  norm          1.4720        1.0372        .33670E-07   -.93580E-04
  21  Prefactor     5.6267        10.293        .46996E-06   -.40307E-03
  22  Prefactor     13.103        14.950       -.17560E-06    .14467E-04
  23  Normalizat    .66485        .24604       -.23327E-06   -.17073E-04
  24  Prefactor     1.2771        .20551       -.46469E-08   -.45345E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000106012
  Prefactor  = 36.203
  norm       = 0.593561
  Prefactor  = 0.0001
  Prefactor  = 9.82814
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.24347
  norm       = 5.23787
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.9506
  Prefactor  = 0.000100029
  norm       = 0.0001
  norm       = 7.76019
  Prefactor  = 51.8585
  Prefactor  = 0.0001
  Prefactor  = 11.4391
  norm       = 1.47196
  Prefactor  = 5.62669
  Prefactor  = 13.1028
  Normalizat = 0.664853
  Prefactor  = 1.27712
 **********
 **   18 **HESSE 
 **********

 FCN=   4712.748     FROM HESSE     STATUS=OK           405 CALLS     3543 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10601E-03    30.969        .97262E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     36.203        58.363        .66441E-04   -1.4504    
   3  norm          .59356        .32873        .28277E-04   -1.5554    
   4  Prefactor     .10000E-03    6.6078        .17210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.8281        13.680        .12780E-03   -1.5081    
   6  Prefactor     .10000E-03    23.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    30.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    7.8832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.2435        14.003        .87752E-03   -1.5250    
  10  norm          5.2379        1.5923        .45470E-04   -1.5250    
  11  norm          .10000E-03    .88591        .62996E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    22.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     19.951        16.447        .89673E-04   -1.4814    
  14  Prefactor     .10003E-03    66.855        .46636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .71017        .11095E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.7602        6.1607        .70195E-03   -1.5151    
  17  Prefactor     51.859        42.988        .55666E-04   -1.4266    
  18  Prefactor     .10000E-03    20.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.439        11.338        .11846E-03   -1.5031    
  20  norm          1.4720        1.0284        .48946E-04   -1.5465    
  21  Prefactor     5.6267        11.810        .84669E-03   -1.5234    
  22  Prefactor     13.103        14.946        .11064E-03   -1.4984    
  23  Normalizat    .66485        .29390        .34512E-03   -1.0530    
  24  Prefactor     1.2771        .24753        .22259E-03   -.83990    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57107e-09
Minuit parameter uncertainties:
  1  0.0273046
  2  58.455
  3  0.32873
  4  3.62675e-06
  5  13.6848
  6  0.000164771
  7  2.01e-05
  8  1.2354e-06
  9  14.0117
  10  1.59232
  11  1.83886e-07
  12  0.000181025
  13  16.4506
  14  0.00278861
  15  5.68984e-06
  16  6.16117
  17  43.0134
  18  1.41281e-05
  19  11.3406
  20  1.02839
  21  11.8146
  22  14.9507
  23  0.2946
  24  0.247758
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  5.243e+00  1.401e+01  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.277e+00  2.478e-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:  6.649e-01  2.946e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/404709/likelihoodResults_371001601_371260801_4FGL_J2236.4-2309_daily_bin508.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) = 4712.46686815
delta logL = 0.280771803667

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4712.358906
delta logL = 0.388733954446

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.427       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8877       1.0000          .0000       10.000    
     3 'Normalizat'    .68238       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2554       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=   4712.359     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      226 TOTAL
                     EDM=   .43E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.422        14.713       -.40315E-05   -.13051E-03
   2  Index         1.8877        .69265       -.30964E-04    .20782E-04
   3  Normalizat    .68225        .23336        .71790E-06    .96649E-04
   4  Prefactor     1.2555        .20336        .28290E-06    .16942E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.4217
  Index      = 1.88769
  Normalizat = 0.682252
  Prefactor  = 1.25551
 **********
 **   18 **HESSE 
 **********

 FCN=   4712.359     FROM HESSE     STATUS=OK            31 CALLS      257 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.422        14.577        .11851E-03   -1.5032    
   2  Index         1.8877        .68378        .94963E-02   -.67188    
   3  Normalizat    .68225        .27826        .34082E-03   -1.0460    
   4  Prefactor     1.2555        .24317        .22401E-03   -.84640    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.12847e-11
Minuit parameter uncertainties:
  1  14.5811
  2  0.687312
  3  0.278839
  4  0.243393
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/404709': 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) = 4712.35890578
delta logL = 0.388734177035

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.142e+01  1.458e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  1.888e+00  6.873e-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:  1.256e+00  2.434e-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:  6.823e-01  2.788e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.16
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/404709/cmap_HighResolution_371001601_371260801_4FGL_J2236.4-2309_daily_bin508.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', job_status='DONE', photon_flux_upper_limit='1.40e-07', time_completed='2021-09-28 17:12:44.008934', job_id='404709', GAL2='1.26', fit_tolerance='1e-08', EG2='0.68', EG='0.66', time_epoch_completed='1632874364.01', return_code2='0', ts='0.16', comment='SUCCESS', return_code='0', GAL='1.28', dlogl='3.89e-01', ts2='0.94', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='508' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:12:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 404709: <4FGL_J2236.4-2309_daily_bin508> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin508> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 17:00:41 2021
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:00:43 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:43 2021
Terminated at Tue Sep 28 17:12:44 2021
Results reported at Tue Sep 28 17:12:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin508 339.125 -23.1552 371001601 371260801 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 :                                   574.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   721 sec.
    Turnaround time :                            723 sec.

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

