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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin1038
RA = 339.125, Dec = -23.1552
tmin = 508377601, tmax = 508636801
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='407726', job_status='RUN', time_executed='2021-09-28 17:14:35.375401', time_epoch_executed='1632874475.38' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1038'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/407726

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/407726/ft1_4FGL_J2236.4-2309_daily_bin1038.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/407726/ft2_4FGL_J2236.4-2309_daily_bin1038.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/407726/ft1_4FGL_J2236.4-2309_daily_bin1038.fits outfile=/scratch/kocevski/407726/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1038.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=508377601.0 tmax=508636801.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.61
user 3.40
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/407726/ft2_4FGL_J2236.4-2309_daily_bin1038.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/407726/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1038.fits evtable="EVENTS" outfile="/scratch/kocevski/407726/ft1_filtered_4FGL_J2236.4-2309_daily_bin1038.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/407726/ft1_filtered_4FGL_J2236.4-2309_daily_bin1038.fits" evtable="EVENTS" scfile=/scratch/kocevski/407726/ft2_4FGL_J2236.4-2309_daily_bin1038.fits sctable="SC_DATA" outfile=/scratch/kocevski/407726/ltcube_508377601_508636801_4FGL_J2236.4-2309_daily_bin1038.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/407726/ft2_4FGL_J2236.4-2309_daily_bin1038.fits
.....................!
real 11.99
user 11.63
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/407726/ft1_filtered_4FGL_J2236.4-2309_daily_bin1038.fits evtable="EVENTS" scfile=/scratch/kocevski/407726/ft2_4FGL_J2236.4-2309_daily_bin1038.fits sctable="SC_DATA" expcube=/scratch/kocevski/407726/ltcube_508377601_508636801_4FGL_J2236.4-2309_daily_bin1038.fits outfile=/scratch/kocevski/407726/expmap_508377601_508636801_4FGL_J2236.4-2309_daily_bin1038.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/407726/ltcube_508377601_508636801_4FGL_J2236.4-2309_daily_bin1038.fits
.....................!
real 191.27
user 185.45
sys 5.48

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/407726/ft1_filtered_4FGL_J2236.4-2309_daily_bin1038.fits scfile=/scratch/kocevski/407726/ft2_4FGL_J2236.4-2309_daily_bin1038.fits outfile=/scratch/kocevski/407726/cmap_508377601_508636801_4FGL_J2236.4-2309_daily_bin1038.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/407726/ft1_filtered_4FGL_J2236.4-2309_daily_bin1038.fits scfile=/scratch/kocevski/407726/ft2_4FGL_J2236.4-2309_daily_bin1038.fits outfile=/scratch/kocevski/407726/cmap_HighResolution_508377601_508636801_4FGL_J2236.4-2309_daily_bin1038.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/407726/ft1_filtered_4FGL_J2236.4-2309_daily_bin1038.fits evtable="EVENTS" scfile=/scratch/kocevski/407726/ft2_4FGL_J2236.4-2309_daily_bin1038.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/407726/Model_4FGL_J2236.4-2309_daily_bin1038.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/407726/ft1_filtered_4FGL_J2236.4-2309_daily_bin1038.fits.....................!
real 52.06
user 50.58
sys 1.33

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.7498       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.972       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    32.324       1.0000         .10000E-03   10000.    
     8 'norm      '    30.866       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.741       1.0000         .10000E-03   10000.    
    10 'norm      '    2.4420       1.0000         .10000E-03   10000.    
    11 'norm      '    .60393       1.0000         .10000E-03   10000.    
    12 'Prefactor '    46.192       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10543E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    12.105       1.0000         .10000E-03   10000.    
    16 'norm      '    6.3101       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10335E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10212E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.956       1.0000         .10000E-03   10000.    
    20 'norm      '    1.0827       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.170       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4037       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .81571       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=   5775.452     FROM MIGRAD    STATUS=CONVERGED    552 CALLS     2707 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.1265       -.74725E-08** at limit **
   2  Prefactor     .10000E-03    18.956        .50333E-06** at limit **
   3  norm          1.7498        .48432        .21131E-07   -.66103E-04
   4  Prefactor     .10000E-03    4.9937       -.86951E-07** at limit **
   5  Prefactor     15.980        16.909        .99712E-07   -.24304E-04
   6  Prefactor     .10000E-03    7.7354       -.12360E-06** at limit **
   7  Prefactor     32.403        58.180        .11984E-04    .13733E-03
   8  norm          30.888        24.225       -.25470E-05   -.90793E-04
   9  Prefactor     12.743        13.443       -.94677E-06   -.11261E-03
  10  norm          2.4416        1.2416       -.28851E-07   -.16503E-04
  11  norm          .59411        6.3647        .37890E-05    .36546E-03
  12  Prefactor     46.359        102.01        .17292E-05    .89820E-04
  13  Prefactor     .10000E-03    11.142       -.50499E-06** at limit **
  14  Prefactor     .10000E-03    35.537       -.34263E-05** at limit **
  15  norm          12.107        2.4188       -.41584E-07    .11915E-03
  16  norm          6.3118        5.1146       -.46474E-06   -.10526E-03
  17  Prefactor     .10000E-03    43.501        .41223E-05** at limit **
  18  Prefactor     .10000E-03    8.9447        .39310E-06** at limit **
  19  Prefactor     13.925        20.716       -.64077E-05    .12628E-03
  20  norm          1.0832        1.3252        .13452E-05   -.74797E-03
  21  Prefactor     10.172        17.098        .62449E-06   -.90032E-05
  22  Prefactor     .10000E-03    8.1328        .16198E-06** at limit **
  23  Normalizat    1.4037        .24482       -.38761E-05   -.13564E-03
  24  Prefactor     .81573        .20033        .15381E-05   -.26994E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.74978
  Prefactor  = 0.0001
  Prefactor  = 15.9796
  Prefactor  = 0.0001
  Prefactor  = 32.403
  norm       = 30.8877
  Prefactor  = 12.7426
  norm       = 2.44163
  norm       = 0.594112
  Prefactor  = 46.359
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.1073
  norm       = 6.31184
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 13.9253
  norm       = 1.08318
  Prefactor  = 10.1715
  Prefactor  = 0.0001
  Normalizat = 1.40367
  Prefactor  = 0.815734
 **********
 **   18 **HESSE 
 **********

 FCN=   5775.452     FROM HESSE     STATUS=OK           397 CALLS     3104 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.1279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.7498        .48530        .27081E-04   -1.5443    
   4  Prefactor     .10000E-03    5.0088        .16584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.980        16.913        .10022E-03   -1.4908    
   6  Prefactor     .10000E-03    7.7459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     32.403        58.953        .70478E-04   -1.4569    
   8  norm          30.888        24.303        .72119E-04   -1.4596    
   9  Prefactor     12.743        13.487        .11222E-03   -1.4994    
  10  norm          2.4416        1.2396        .57537E-04   -1.5395    
  11  norm          .59411        6.7026        .21001E-03   -1.5554    
  12  Prefactor     46.359        103.94        .58994E-04   -1.4345    
  13  Prefactor     .10000E-03    11.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    35.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          12.107        2.4089        .50214E-04   -1.5012    
  16  norm          6.3118        5.1089        .14419E-03   -1.5205    
  17  Prefactor     .10000E-03    43.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.9517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     13.925        22.378        .10722E-03   -1.4961    
  20  norm          1.0832        1.3775        .61143E-03   -1.5500    
  21  Prefactor     10.172        17.094        .12564E-03   -1.5070    
  22  Prefactor     .10000E-03    8.1468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.4037        .30951        .27718E-03   -.80523    
  24  Prefactor     .81573        .25130        .29509E-03   -.99151    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.65611e-10
Minuit parameter uncertainties:
  1  3.33229e-06
  2  4.20322e-05
  3  0.485296
  4  1.11395e-05
  5  16.9181
  6  7.91977e-06
  7  59.059
  8  24.3108
  9  13.4903
  10  1.23963
  11  3.99127
  12  104.355
  13  4.7738e-05
  14  0.000185679
  15  2.40895
  16  5.10926
  17  0.00037899
  18  4.82278e-05
  19  22.3916
  20  1.37759
  21  17.1025
  22  5.63026e-05
  23  0.309922
  24  0.251658
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.274e+01  1.349e+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.157e-01  2.517e-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.404e+00  3.099e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.88
Ra Dec: 339.125 -23.155
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 4.49e-08 +/- 4.74e-08
Energy Flux (Fixed Index): 1.05e-05 +/- 1.11e-05

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

Saving results to:
/scratch/kocevski/407726/likelihoodResults_508377601_508636801_4FGL_J2236.4-2309_daily_bin1038.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) = 5775.31910711
delta logL = 0.132459923109

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5775.31654989
delta logL = 0.135017139402

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.742       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2642       1.0000          .0000       10.000    
     3 'Normalizat'    1.4226       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80496       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=   5775.316     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      209 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.549        14.939        .28054E-02    .12557E-03
   2  Index         2.2597        .75774        .24462       -.16220E-04
   3  Normalizat    1.4231        .23260        .62315E-01    .10951E-04
   4  Prefactor     .80476        .19500        .67104E-01    .21136E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.5489
  Index      = 2.25971
  Normalizat = 1.42313
  Prefactor  = 0.804758
 **********
 **   18 **HESSE 
 **********

 FCN=   5775.316     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .26E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.549        14.144        .56109E-03   -1.4999    
   2  Index         2.2597        .88754        .12038E-01   -.58004    
   3  Normalizat    1.4231        .28694        .27560E-03   -.79962    
   4  Prefactor     .80476        .23940        .29688E-03   -.99553    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55348e-12
Minuit parameter uncertainties:
  1  14.1474
  2  0.894345
  3  0.287265
  4  0.239714
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/407726': 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) = 5775.31645992
delta logL = 0.13510711247

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.255e+01  1.415e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.260e+00  8.943e-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.048e-01  2.397e-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.423e+00  2.873e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.14
Ra Dec: 339.125 -23.155
Photon Index (Free Index): 2.26 +/- 0.89
Photon Flux (Free Index): 2.96e-08 +/- 4.31e-08
Energy Flux (Free Index): 1.20e-05 +/- 1.42e-05

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/407726/cmap_HighResolution_508377601_508636801_4FGL_J2236.4-2309_daily_bin1038.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.27e-02', comment='SUCCESS', photon_flux='4.49e-08', energy_flux2='1.20e-05', photon_flux_error='4.74e-08', dlogl='1.35e-01', energy_flux='1.05e-05', photon_flux2='2.96e-08', job_status='DONE', time_completed='2021-09-28 17:24:47.536549', photon_index_error2='0.89', photon_index2='2.26', ts='1.88', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='1.61e-07', energy_flux_error2='1.42e-05', EG='1.40', time_epoch_completed='1632875087.54', return_code='0', job_id='407726', GAL2='0.80', EG2='1.42', return_code2='0', energy_flux_error='1.11e-05', photon_flux_error2='4.31e-08', ts2='2.14', photon_index='2.74' WHERE bin_id='1038' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:24:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 407726: <4FGL_J2236.4-2309_daily_bin1038> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1038 339.125 -23.1552 508377601 508636801 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 :                                   607.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             227.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   855 sec.
    Turnaround time :                            857 sec.

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

