/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 212 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_bin819
RA = 339.125, Dec = -23.1552
tmin = 451612801, tmax = 451872001
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='406406', job_status='RUN', time_executed='2021-09-28 17:09:30.636633', time_epoch_executed='1632874170.64' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='819'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/406406

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/406406/ft1_4FGL_J2236.4-2309_daily_bin819.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/406406/ft2_4FGL_J2236.4-2309_daily_bin819.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/406406/ft1_4FGL_J2236.4-2309_daily_bin819.fits outfile=/scratch/kocevski/406406/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin819.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=451612801.0 tmax=451872001.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.39
user 3.11
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/406406/ft1_filtered_4FGL_J2236.4-2309_daily_bin819.fits" evtable="EVENTS" scfile=/scratch/kocevski/406406/ft2_4FGL_J2236.4-2309_daily_bin819.fits sctable="SC_DATA" outfile=/scratch/kocevski/406406/ltcube_451612801_451872001_4FGL_J2236.4-2309_daily_bin819.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/406406/ft2_4FGL_J2236.4-2309_daily_bin819.fits
.....................!
real 11.72
user 11.34
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/406406/ft1_filtered_4FGL_J2236.4-2309_daily_bin819.fits evtable="EVENTS" scfile=/scratch/kocevski/406406/ft2_4FGL_J2236.4-2309_daily_bin819.fits sctable="SC_DATA" expcube=/scratch/kocevski/406406/ltcube_451612801_451872001_4FGL_J2236.4-2309_daily_bin819.fits outfile=/scratch/kocevski/406406/expmap_451612801_451872001_4FGL_J2236.4-2309_daily_bin819.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/406406/ltcube_451612801_451872001_4FGL_J2236.4-2309_daily_bin819.fits
.....................!
real 189.80
user 185.02
sys 4.42

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/406406/ft1_filtered_4FGL_J2236.4-2309_daily_bin819.fits scfile=/scratch/kocevski/406406/ft2_4FGL_J2236.4-2309_daily_bin819.fits outfile=/scratch/kocevski/406406/cmap_451612801_451872001_4FGL_J2236.4-2309_daily_bin819.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.58
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/406406/ft1_filtered_4FGL_J2236.4-2309_daily_bin819.fits scfile=/scratch/kocevski/406406/ft2_4FGL_J2236.4-2309_daily_bin819.fits outfile=/scratch/kocevski/406406/cmap_HighResolution_451612801_451872001_4FGL_J2236.4-2309_daily_bin819.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.57
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/406406/ft1_filtered_4FGL_J2236.4-2309_daily_bin819.fits evtable="EVENTS" scfile=/scratch/kocevski/406406/ft2_4FGL_J2236.4-2309_daily_bin819.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/406406/Model_4FGL_J2236.4-2309_daily_bin819.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/406406/ft1_filtered_4FGL_J2236.4-2309_daily_bin819.fits.....................!
real 55.36
user 54.05
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.584       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .98110E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    .85260       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .91250E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.1093       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    60.514       1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.049       1.0000         .10000E-03   10000.    
    10 'norm      '    .10632E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.350       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.9445       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .96039       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .86312       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=   7114.343     FROM MIGRAD    STATUS=CONVERGED   1015 CALLS     3612 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.474        19.752        .10488E-03    .30221E-03
   2  Prefactor     .29666        70.097        .13168        .13098E-03
   3  norm          .85257        .28352        .25183E-04    .93989E-03
   4  Prefactor     .10000E-03    6.5180        .56392E-01** at limit **
   5  Prefactor     9.1100        9.6086        .13279E-03   -.45717E-04
   6  Prefactor     .10000E-03    3.6622        .15754E-02** at limit **
   7  Prefactor     60.509        44.790        .51578E-04   -.43660E-03
   8  norm          .10000E-03    6.4852        .18142E-02** at limit **
   9  Prefactor     15.051        10.727        .10325E-03    .22001E-03
  10  norm          .10000E-03    8.9317        .88389E-03** at limit **
  11  norm          .10000E-03    .47378        .56549E-03** at limit **
  12  Prefactor     20.352        21.231        .88788E-04    .47940E-04
  13  Prefactor     .10000E-03    3.4140        .15185E-02** at limit **
  14  Prefactor     .10000E-03    8.6415        .18142E-02** at limit **
  15  norm          .10000E-03    .53389        .86038E-03** at limit **
  16  norm          .10000E-03    1.1580        .88181E-03** at limit **
  17  Prefactor     .10000E-03    17.745        .18142E-02** at limit **
  18  Prefactor     .10000E-03    5.9012        .18142E-02** at limit **
  19  Prefactor     6.9456        6.0594        .15224E-03   -.43282E-03
  20  norm          .10000E-03    .26547        .66484E-03** at limit **
  21  Prefactor     .10000E-03    2.8595        .13913E-02** at limit **
  22  Prefactor     .10000E-03    6.6266        .18142E-02** at limit **
  23  Normalizat    .96031        .18522        .23113E-03   -.38491E-03
  24  Prefactor     .86312        .15844        .21573E-03    .14771E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.4741
  Prefactor  = 0.296656
  norm       = 0.85257
  Prefactor  = 0.000100002
  Prefactor  = 9.11003
  Prefactor  = 0.0001
  Prefactor  = 60.5091
  norm       = 0.0001
  Prefactor  = 15.051
  norm       = 0.000100003
  norm       = 0.0001
  Prefactor  = 20.3524
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.94563
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.960307
  Prefactor  = 0.863123
 **********
 **   18 **HESSE 
 **********

 FCN=   7114.343     FROM HESSE     STATUS=OK           393 CALLS     4005 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.474        19.745        .41952E-05   -1.4947    
   2  Prefactor     .29666        69.910        .13185       -1.5599    
   3  norm          .85257        .28352        .10073E-05   -1.5523    
   4  Prefactor     .10000E-03    6.0670        .59324E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.1100        9.6085        .53117E-05   -1.5104    
   6  Prefactor     .10000E-03    3.6623        .31508E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     60.509        44.780        .10316E-04   -1.4151    
   8  norm          .10000E-03    6.4857        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.051        10.727        .41298E-05   -1.4932    
  10  norm          .10000E-03    9.2633        .35356E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .47378        .11310E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     20.352        21.230        .17758E-04   -1.4805    
  13  Prefactor     .10000E-03    3.4144        .30370E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.6481        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .53494        .17208E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.1580        .17636E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.751        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.9018        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.9456        6.0561        .60896E-05   -1.5181    
  20  norm          .10000E-03    .26563        .13297E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.8596        .27826E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.6288        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .96031        .18543        .46227E-04   -.94372    
  24  Prefactor     .86312        .15855        .86294E-05   -.97442    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39167e-09
Minuit parameter uncertainties:
  1  19.7536
  2  9.11729
  3  0.283517
  4  0.000228735
  5  9.61016
  6  7.54249e-07
  7  44.8052
  8  0.00010753
  9  10.7286
  10  0.000304606
  11  7.52189e-06
  12  21.2379
  13  2.54966e-05
  14  2.1131e-05
  15  9.0382e-06
  16  1.18916e-06
  17  4.05098e-05
  18  1.55173e-05
  19  6.05659
  20  1.05179e-06
  21  1.03288e-05
  22  7.29448e-06
  23  0.185551
  24  0.158633
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.505e+01  1.073e+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:  8.631e-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:  9.603e-01  1.856e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.98
Ra Dec: 339.125 -23.155
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 5.30e-08 +/- 3.77e-08
Energy Flux (Fixed Index): 1.23e-05 +/- 8.80e-06

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

Saving results to:
/scratch/kocevski/406406/likelihoodResults_451612801_451872001_4FGL_J2236.4-2309_daily_bin819.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) = 7113.78549364
delta logL = 0.557245184047

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7113.77138374
delta logL = 0.571355089235

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.693       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9161       1.0000          .0000       10.000    
     3 'Normalizat'    1.0043       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83731       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.

 FCN=   7113.771     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      209 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.693        10.124        .28109E-02    .44380E-02
   2  Index         1.9161        .38493        .22961       -.79898E-04
   3  Normalizat    1.0044        .14703        .46221E-01    .11790E-04
   4  Prefactor     .83727        .13083        .44201E-01    .32334E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.6926
  Index      = 1.91609
  Normalizat = 1.00437
  Prefactor  = 0.837266
 **********
 **   18 **HESSE 
 **********

 FCN=   7113.771     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.693        13.714        .11243E-03   -1.4995    
   2  Index         1.9161        .65833        .80274E-02   -.66465    
   3  Normalizat    1.0044        .17641        .22664E-03   -.92884    
   4  Prefactor     .83727        .15569        .21863E-03   -.98369    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94178e-08
Minuit parameter uncertainties:
  1  13.7177
  2  0.661443
  3  0.176515
  4  0.155775
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/406406': 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) = 7113.77138369
delta logL = 0.571355135769

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.269e+01  1.372e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  1.916e+00  6.614e-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:  8.373e-01  1.558e-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.004e+00  1.765e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.08
Ra Dec: 339.125 -23.155
Photon Index (Free Index): 1.92 +/- 0.66
Photon Flux (Free Index): 2.45e-08 +/- 3.15e-08
Energy Flux (Free Index): 2.11e-05 +/- 2.35e-05

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/406406/cmap_HighResolution_451612801_451872001_4FGL_J2236.4-2309_daily_bin819.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', comment='SUCCESS', photon_flux='5.30e-08', energy_flux2='2.11e-05', photon_flux_error='3.77e-08', dlogl='5.71e-01', energy_flux='1.23e-05', photon_flux2='2.45e-08', job_status='DONE', time_completed='2021-09-28 17:21:48.735048', photon_index_error2='0.66', photon_index2='1.92', ts='2.98', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='1.28e-07', energy_flux_error2='2.35e-05', EG='0.96', time_epoch_completed='1632874908.74', return_code='0', job_id='406406', GAL2='0.84', EG2='1.00', return_code2='0', energy_flux_error='8.80e-06', photon_flux_error2='3.15e-08', ts2='4.08', photon_index='2.74' WHERE bin_id='819' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:21:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 406406: <4FGL_J2236.4-2309_daily_bin819> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin819> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 17:05:47 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:05:48 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:48 2021
Terminated at Tue Sep 28 17:21:49 2021
Results reported at Tue Sep 28 17:21:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin819 339.125 -23.1552 451612801 451872001 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 :                                   738.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   960 sec.
    Turnaround time :                            962 sec.

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

