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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin934
RA = 339.125, Dec = -23.1552
tmin = 481420801, tmax = 481680001
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='407573', job_status='RUN', time_executed='2021-09-28 17:14:20.884098', time_epoch_executed='1632874460.88' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='934'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/407573

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/407573/ft1_4FGL_J2236.4-2309_daily_bin934.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/407573/ft2_4FGL_J2236.4-2309_daily_bin934.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/407573/ft1_4FGL_J2236.4-2309_daily_bin934.fits outfile=/scratch/kocevski/407573/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin934.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=481420801.0 tmax=481680001.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.69
user 3.46
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/407573/ft1_filtered_4FGL_J2236.4-2309_daily_bin934.fits" evtable="EVENTS" scfile=/scratch/kocevski/407573/ft2_4FGL_J2236.4-2309_daily_bin934.fits sctable="SC_DATA" outfile=/scratch/kocevski/407573/ltcube_481420801_481680001_4FGL_J2236.4-2309_daily_bin934.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/407573/ft2_4FGL_J2236.4-2309_daily_bin934.fits
.....................!
real 14.80
user 14.41
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/407573/ft1_filtered_4FGL_J2236.4-2309_daily_bin934.fits evtable="EVENTS" scfile=/scratch/kocevski/407573/ft2_4FGL_J2236.4-2309_daily_bin934.fits sctable="SC_DATA" expcube=/scratch/kocevski/407573/ltcube_481420801_481680001_4FGL_J2236.4-2309_daily_bin934.fits outfile=/scratch/kocevski/407573/expmap_481420801_481680001_4FGL_J2236.4-2309_daily_bin934.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/407573/ltcube_481420801_481680001_4FGL_J2236.4-2309_daily_bin934.fits
.....................!
real 190.63
user 185.43
sys 4.85

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/407573/ft1_filtered_4FGL_J2236.4-2309_daily_bin934.fits scfile=/scratch/kocevski/407573/ft2_4FGL_J2236.4-2309_daily_bin934.fits outfile=/scratch/kocevski/407573/cmap_481420801_481680001_4FGL_J2236.4-2309_daily_bin934.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.56
user 0.36
sys 0.17

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/407573/ft1_filtered_4FGL_J2236.4-2309_daily_bin934.fits evtable="EVENTS" scfile=/scratch/kocevski/407573/ft2_4FGL_J2236.4-2309_daily_bin934.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/407573/Model_4FGL_J2236.4-2309_daily_bin934.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/407573/ft1_filtered_4FGL_J2236.4-2309_daily_bin934.fits.....................!
real 44.13
user 42.73
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.4893       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10563E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    12.846       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.1172       1.0000         .10000E-03   10000.    
    11 'norm      '    1.0032       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.332       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.8662       1.0000         .10000E-03   10000.    
    15 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    44.521       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .77099       1.0000         .10000E-03   10000.    
    20 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .23513E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4074       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .69561       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=   4920.255     FROM MIGRAD    STATUS=CONVERGED    562 CALLS     2804 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.4222       -.11988E-06** at limit **
   2  Prefactor     .10000E-03    32.908        .36850E-06** at limit **
   3  norm          1.4893        .49486        .50838E-08   -.90842E-05
   4  Prefactor     .10000E-03    6.8721       -.45141E-07** at limit **
   5  Prefactor     .10000E-03    19.692        .97375E-06** at limit **
   6  Prefactor     .10000E-03    23.016       -.12111E-05** at limit **
   7  Prefactor     .10000E-03    61.344        .21395E-05** at limit **
   8  norm          12.845        16.746       -.46200E-06   -.23732E-04
   9  Prefactor     .10000E-03    4.7612        .74883E-07** at limit **
  10  norm          2.1168        1.1948        .38977E-07   -.96377E-04
  11  norm          1.0011        1.9224        .20524E-05    .37021E-03
  12  Prefactor     12.359        40.722       -.18137E-05   -.27925E-05
  13  Prefactor     .10000E-03    8.3425        .32330E-06** at limit **
  14  Prefactor     8.8728        25.188        .28395E-05    .10222E-03
  15  norm          .10000E-03    1.0721       -.90620E-07** at limit **
  16  norm          .10000E-03    2.1200       -.57298E-07** at limit **
  17  Prefactor     44.486        59.058       -.34580E-05    .49329E-05
  18  Prefactor     .10000E-03    7.8782       -.21299E-06** at limit **
  19  Prefactor     .77067        8.3461        .13013E-05   -.40823E-03
  20  norm          .10000E-03    .41847       -.16114E-06** at limit **
  21  Prefactor     .10058E-03    8.1082       -.11389E-05** at limit **
  22  Prefactor     .10000E-03    10.779       -.13643E-06** at limit **
  23  Normalizat    1.4070        .22107       -.49912E-06   -.16917E-04
  24  Prefactor     .69591        .18067       -.15853E-07   -.11803E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.4893
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.8452
  Prefactor  = 0.0001
  norm       = 2.11684
  norm       = 1.00112
  Prefactor  = 12.3592
  Prefactor  = 0.0001
  Prefactor  = 8.87285
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 44.4855
  Prefactor  = 0.0001
  Prefactor  = 0.770673
  norm       = 0.0001
  Prefactor  = 0.000100583
  Prefactor  = 0.0001
  Normalizat = 1.40697
  Prefactor  = 0.695908
 **********
 **   18 **HESSE 
 **********

 FCN=   4920.255     FROM HESSE     STATUS=OK           401 CALLS     3205 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.4268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    32.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.4893        .49475        .27589E-04   -1.5464    
   4  Prefactor     .10000E-03    6.9102        .17955E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    19.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    23.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    61.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          12.845        16.749        .11176E-03   -1.4991    
   9  Prefactor     .10000E-03    4.7667        .14947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.1168        1.1900        .54470E-04   -1.5417    
  11  norm          1.0011        1.9236        .14342E-02   -1.5508    
  12  Prefactor     12.359        40.841        .11407E-03   -1.5005    
  13  Prefactor     .10000E-03    8.3693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.8728        23.513        .13461E-03   -1.5112    
  15  norm          .10000E-03    1.2819        .12005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.1317        .99571E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     44.486        59.022        .60086E-04   -1.4373    
  18  Prefactor     .10000E-03    7.8903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .77067        12.998        .33083E-02   -1.5532    
  20  norm          .10000E-03    .66697        .78307E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10058E-03    67.194        .37918E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    10.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.4070        .26349        .23568E-03   -.80427    
  24  Prefactor     .69591        .21551        .26710E-03   -1.0369    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.93919e-09
Minuit parameter uncertainties:
  1  3.22007e-07
  2  1.34647e-05
  3  0.494754
  4  4.07661e-06
  5  1.62608e-05
  6  9.15589e-06
  7  7.33797e-05
  8  16.7553
  9  1.41005e-05
  10  1.19006
  11  1.9237
  12  40.9336
  13  3.61702e-07
  14  23.5378
  15  7.46709e-06
  16  7.80982e-06
  17  59.0993
  18  2.35342e-05
  19  6.33116
  20  1.24379e-05
  21  0.0125326
  22  4.38769e-05
  23  0.263744
  24  0.215767
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  1.410e-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:  6.959e-01  2.158e-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.407e+00  2.637e-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: 8.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/407573/likelihoodResults_481420801_481680001_4FGL_J2236.4-2309_daily_bin934.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) = 4920.25588433
delta logL = -0.000992681169009

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4920.25489166
delta logL = -1.33413777803e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7435       1.0000          .0000       10.000    
     3 'Normalizat'    1.4070       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69592       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=   4920.255     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      246 TOTAL
                     EDM=   .93E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.8949        .14947E-02** at limit **
   2  Index         2.8557        6.2297        .20000       -.60709E-07
   3  Normalizat    1.4070        .25478        .23568E-03    .50649E-05
   4  Prefactor     .69591        .21197        .26710E-03    .35327E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.85567
  Normalizat = 1.40697
  Prefactor  = 0.695908
 **********
 **   18 **HESSE 
 **********

 FCN=   4920.255     FROM HESSE     STATUS=OK            25 CALLS      271 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.7764        .29893E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8557        8.2372        .80000E-02   -.44324    
   3  Normalizat    1.4070        .25505        .94273E-05   -.80427    
   4  Prefactor     .69591        .21219        .10684E-04   -1.0369    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.06189e-11
Minuit parameter uncertainties:
  1  5.97093e-05
  2  612.901
  3  0.255277
  4  0.212436
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/407573': 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) = 4920.25489162
delta logL = 2.05500327866e-08

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  5.971e-05  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.856e+00  6.129e+02  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:  6.959e-01  2.124e-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.407e+00  2.553e-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/407573/cmap_HighResolution_481420801_481680001_4FGL_J2236.4-2309_daily_bin934.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.43e-03', job_status='DONE', photon_flux_upper_limit='8.15e-08', time_completed='2021-09-28 17:23:47.348646', job_id='407573', GAL2='0.70', fit_tolerance='1e-08', EG2='1.41', EG='1.41', time_epoch_completed='1632875027.35', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='2.06e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='934' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:23:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 407573: <4FGL_J2236.4-2309_daily_bin934> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin934 339.125 -23.1552 481420801 481680001 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 :                                   567.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             253.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   806 sec.
    Turnaround time :                            810 sec.

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

