/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 146 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 = 7475
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2236.4-2309_daily_bin303
RA = 339.125, Dec = -23.1552
tmin = 317865601, tmax = 318124801
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='404409', job_status='RUN', time_executed='2021-09-28 17:02:55.879127', time_epoch_executed='1632873775.88' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='303'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/404409

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/404409/ft1_4FGL_J2236.4-2309_daily_bin303.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/404409/ft2_4FGL_J2236.4-2309_daily_bin303.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/404409/ft1_4FGL_J2236.4-2309_daily_bin303.fits outfile=/scratch/kocevski/404409/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin303.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=317865601.0 tmax=318124801.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.31
user 3.10
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/404409/ft1_filtered_4FGL_J2236.4-2309_daily_bin303.fits" evtable="EVENTS" scfile=/scratch/kocevski/404409/ft2_4FGL_J2236.4-2309_daily_bin303.fits sctable="SC_DATA" outfile=/scratch/kocevski/404409/ltcube_317865601_318124801_4FGL_J2236.4-2309_daily_bin303.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/404409/ft2_4FGL_J2236.4-2309_daily_bin303.fits
.....................!
real 11.87
user 11.50
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/404409/ft1_filtered_4FGL_J2236.4-2309_daily_bin303.fits evtable="EVENTS" scfile=/scratch/kocevski/404409/ft2_4FGL_J2236.4-2309_daily_bin303.fits sctable="SC_DATA" expcube=/scratch/kocevski/404409/ltcube_317865601_318124801_4FGL_J2236.4-2309_daily_bin303.fits outfile=/scratch/kocevski/404409/expmap_317865601_318124801_4FGL_J2236.4-2309_daily_bin303.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/404409/ltcube_317865601_318124801_4FGL_J2236.4-2309_daily_bin303.fits
.....................!
real 190.92
user 185.15
sys 5.43

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/404409/ft1_filtered_4FGL_J2236.4-2309_daily_bin303.fits scfile=/scratch/kocevski/404409/ft2_4FGL_J2236.4-2309_daily_bin303.fits outfile=/scratch/kocevski/404409/cmap_317865601_318124801_4FGL_J2236.4-2309_daily_bin303.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/404409/ft1_filtered_4FGL_J2236.4-2309_daily_bin303.fits scfile=/scratch/kocevski/404409/ft2_4FGL_J2236.4-2309_daily_bin303.fits outfile=/scratch/kocevski/404409/cmap_HighResolution_317865601_318124801_4FGL_J2236.4-2309_daily_bin303.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/404409/ft1_filtered_4FGL_J2236.4-2309_daily_bin303.fits evtable="EVENTS" scfile=/scratch/kocevski/404409/ft2_4FGL_J2236.4-2309_daily_bin303.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/404409/Model_4FGL_J2236.4-2309_daily_bin303.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/404409/ft1_filtered_4FGL_J2236.4-2309_daily_bin303.fits.....................!
real 50.70
user 49.35
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.742       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .16596E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.6011       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10795E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.085       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.695       1.0000         .10000E-03   10000.    
     8 'norm      '    1.1160       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.3461       1.0000         .10000E-03   10000.    
    10 'norm      '    1.3549       1.0000         .10000E-03   10000.    
    11 'norm      '    .14734E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.437       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .24222E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .26831       1.0000         .10000E-03   10000.    
    16 'norm      '    2.0597       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .27788       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.976       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .95589       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .96480       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=   6165.889     FROM MIGRAD    STATUS=CONVERGED    549 CALLS     2798 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.703        27.189       -.11402E-04    .39804E-03
   2  Prefactor     .10001E-03    92.775        .78272E-05** at limit **
   3  norm          1.6011        .46984        .11899E-06    .12555E-03
   4  Prefactor     .10000E-03    11.434       -.35546E-05** at limit **
   5  Prefactor     .10000E-03    4.8417       -.77924E-07** at limit **
   6  Prefactor     12.079        18.959        .16686E-05   -.27458E-04
   7  Prefactor     10.693        46.202       -.54156E-05    .18947E-04
   8  norm          1.1145        20.798       -.41884E-05   -.40659E-03
   9  Prefactor     3.3458        8.1415       -.86714E-06   -.20465E-03
  10  norm          1.3549        .81846       -.25705E-07   -.16806E-03
  11  norm          .10000E-03    1.2451        .31342E-07** at limit **
  12  Prefactor     .10000E-03    19.904       -.77550E-06** at limit **
  13  Prefactor     21.439        13.426       -.57293E-06    .50083E-04
  14  Prefactor     .10000E-03    6.7290        .40855E-07** at limit **
  15  norm          .26856        .61955       -.11414E-06   -.53321E-03
  16  norm          2.0599        2.5126       -.73574E-08   -.10234E-03
  17  Prefactor     .10000E-03    12.066        .39146E-05** at limit **
  18  Prefactor     .10000E-03    4.6451        .22570E-06** at limit **
  19  Prefactor     .10000E-03    8.3686        .34957E-06** at limit **
  20  norm          .27863        .61327       -.26628E-06   -.22201E-02
  21  Prefactor     .10000E-03    4.3510       -.25754E-07** at limit **
  22  Prefactor     19.979        11.682        .89034E-07    .40675E-04
  23  Normalizat    .95563        .18614        .54984E-06    .91474E-04
  24  Prefactor     .96502        .15969        .97518E-06    .67713E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.7031
  Prefactor  = 0.000100007
  norm       = 1.60107
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.0793
  Prefactor  = 10.6933
  norm       = 1.11446
  Prefactor  = 3.34581
  norm       = 1.35492
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.4385
  Prefactor  = 0.0001
  norm       = 0.26856
  norm       = 2.05992
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.278626
  Prefactor  = 0.0001
  Prefactor  = 19.9792
  Normalizat = 0.955632
  Prefactor  = 0.965021
 **********
 **   18 **HESSE 
 **********

 FCN=   6165.889     FROM HESSE     STATUS=OK           403 CALLS     3201 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.703        26.562        .72264E-04   -1.4599    
   2  Prefactor     .10001E-03    93.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.6011        .46950        .27956E-04   -1.5455    
   4  Prefactor     .10000E-03    11.675        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.8561        .16874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.079        18.962        .11523E-03   -1.5013    
   7  Prefactor     10.693        46.170        .12251E-03   -1.5054    
   8  norm          1.1145        22.602        .44567E-03   -1.5497    
   9  Prefactor     3.3458        8.1652        .22125E-03   -1.5342    
  10  norm          1.3549        .81390        .52786E-04   -1.5475    
  11  norm          .10000E-03    4.1313        .16985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    19.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     21.439        13.517        .86510E-04   -1.4782    
  14  Prefactor     .10000E-03    22.552        .34481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .26856        .54540        .41141E-04   -1.5604    
  16  norm          2.0599        2.4815        .13060E-03   -1.5421    
  17  Prefactor     .10000E-03    12.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.6502        .16518E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.4510        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .27863        .57877        .70825E-04   -1.5602    
  21  Prefactor     .10000E-03    4.3695        .15995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     19.979        11.277        .89614E-04   -1.4814    
  23  Normalizat    .95563        .22150        .25686E-03   -.94532    
  24  Prefactor     .96502        .19019        .22721E-03   -.93905    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77248e-09
Minuit parameter uncertainties:
  1  26.5721
  2  0.00160671
  3  0.469503
  4  0.000143856
  5  1.40311e-06
  6  18.9712
  7  44.4969
  8  10.0417
  9  8.16792
  10  0.813907
  11  4.00171e-06
  12  3.30825e-05
  13  13.5192
  14  0.000134869
  15  0.545414
  16  2.4816
  17  0.000127665
  18  2.6061e-06
  19  5.3458e-05
  20  0.578784
  21  4.94507e-06
  22  11.2786
  23  0.221712
  24  0.19032
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  3.346e+00  8.168e+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

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  9.650e-01  1.903e-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.556e-01  2.217e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.21
Ra Dec: 339.125 -23.155
Photon Flux Upper Limit: 8.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/404409/likelihoodResults_317865601_318124801_4FGL_J2236.4-2309_daily_bin303.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) = 6165.56444199
delta logL = 0.324287732529

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6165.51860593
delta logL = 0.370123792247

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .85157E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    6.7417       1.0000          .0000       10.000    
     3 'Normalizat'    .91224       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99383       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=   6165.519     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      318 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .84888E-01    1.7785        .57142E-02    .31453E-02
   2  Index         6.7466        7.6081        .21574        .93403E-04
   3  Normalizat    .91225        .35786E-01    .45058E-01    .26095E-05
   4  Prefactor     .99387        .31969E-01    .46190E-01   -.27469E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0848876
  Index      = 6.74659
  Normalizat = 0.912247
  Prefactor  = 0.993865
 **********
 **   18 **HESSE 
 **********

 FCN=   6165.519     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      353 TOTAL
                     EDM=   .32E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .84888E-01    5.6576        .26824E-03   -1.5650    
   2  Index         6.7466        7.8900        .11302E-01    .35684    
   3  Normalizat    .91225        .14405        .26227E-03   -.96031    
   4  Prefactor     .99387        .12687        .22430E-03   -.92934    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.23627e-07
Minuit parameter uncertainties:
  1  1.38533
  2  11.9932
  3  0.144112
  4  0.126906
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/404409': 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): 102
logL (Free Index) = 6165.51860043
delta logL = 0.370129284468

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  8.489e-02  1.385e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  6.747e+00  1.199e+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:  9.939e-01  1.269e-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.122e-01  1.441e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.21
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/404409/cmap_HighResolution_317865601_318124801_4FGL_J2236.4-2309_daily_bin303.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.85e-03', job_status='DONE', photon_flux_upper_limit='8.69e-08', time_completed='2021-09-28 17:13:38.449786', job_id='404409', GAL2='0.99', fit_tolerance='1e-08', EG2='0.91', EG='0.96', time_epoch_completed='1632874418.45', return_code2='102', ts='0.21', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='3.70e-01', ts2='1.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='303' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:13:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 404409: <4FGL_J2236.4-2309_daily_bin303> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin303 339.125 -23.1552 317865601 318124801 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 :                                   643.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             283.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   797 sec.
    Turnaround time :                            800 sec.

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

