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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin1265
RA = 339.125, Dec = -23.1552
tmin = 567216001, tmax = 567475201
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='408059', job_status='RUN', time_executed='2021-09-28 17:14:37.263450', time_epoch_executed='1632874477.26' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1265'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/408059

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/408059/ft1_4FGL_J2236.4-2309_daily_bin1265.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/408059/ft2_4FGL_J2236.4-2309_daily_bin1265.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/408059/ft1_4FGL_J2236.4-2309_daily_bin1265.fits outfile=/scratch/kocevski/408059/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1265.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=567216001.0 tmax=567475201.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 2.89
user 2.64
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/408059/ft1_filtered_4FGL_J2236.4-2309_daily_bin1265.fits" evtable="EVENTS" scfile=/scratch/kocevski/408059/ft2_4FGL_J2236.4-2309_daily_bin1265.fits sctable="SC_DATA" outfile=/scratch/kocevski/408059/ltcube_567216001_567475201_4FGL_J2236.4-2309_daily_bin1265.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/408059/ft2_4FGL_J2236.4-2309_daily_bin1265.fits
.....................!
real 12.21
user 11.83
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/408059/ft1_filtered_4FGL_J2236.4-2309_daily_bin1265.fits evtable="EVENTS" scfile=/scratch/kocevski/408059/ft2_4FGL_J2236.4-2309_daily_bin1265.fits sctable="SC_DATA" expcube=/scratch/kocevski/408059/ltcube_567216001_567475201_4FGL_J2236.4-2309_daily_bin1265.fits outfile=/scratch/kocevski/408059/expmap_567216001_567475201_4FGL_J2236.4-2309_daily_bin1265.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/408059/ltcube_567216001_567475201_4FGL_J2236.4-2309_daily_bin1265.fits
.....................!
real 190.67
user 185.68
sys 4.65

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/408059/ft1_filtered_4FGL_J2236.4-2309_daily_bin1265.fits scfile=/scratch/kocevski/408059/ft2_4FGL_J2236.4-2309_daily_bin1265.fits outfile=/scratch/kocevski/408059/cmap_567216001_567475201_4FGL_J2236.4-2309_daily_bin1265.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.54
user 0.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/408059/ft1_filtered_4FGL_J2236.4-2309_daily_bin1265.fits evtable="EVENTS" scfile=/scratch/kocevski/408059/ft2_4FGL_J2236.4-2309_daily_bin1265.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/408059/Model_4FGL_J2236.4-2309_daily_bin1265.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/408059/ft1_filtered_4FGL_J2236.4-2309_daily_bin1265.fits.....................!
real 60.11
user 58.60
sys 1.34

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10993E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .30722E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.8164       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.635       1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.874       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    11.173       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.8330       1.0000         .10000E-03   10000.    
    10 'norm      '    .47489       1.0000         .10000E-03   10000.    
    11 'norm      '    1.5888       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.534       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.1037       1.0000         .10000E-03   10000.    
    16 'norm      '    1.5561       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .32975E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.2450       1.0000         .10000E-03   10000.    
    20 'norm      '    1.6619       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.9514       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2901       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .59843       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=   7530.682     FROM MIGRAD    STATUS=CONVERGED    538 CALLS     2344 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.294        .14878E-05** at limit **
   2  Prefactor     .10000E-03    98.676        .38773E-05** at limit **
   3  norm          1.8161        .46015        .28648E-07   -.14915E-02
   4  Prefactor     .10000E-03    4.1249       -.13536E-06** at limit **
   5  Prefactor     18.638        11.940       -.28894E-07    .22310E-03
   6  Prefactor     15.873        17.139       -.46555E-06   -.33603E-04
   7  Prefactor     .10000E-03    11.917       -.24227E-07** at limit **
   8  norm          11.175        13.886        .22790E-06   -.80571E-04
   9  Prefactor     6.8358        8.0496        .34528E-06   -.16858E-03
  10  norm          .47486        .67496       -.15720E-05   -.38569E-03
  11  norm          1.5880        2.0511        .23039E-06   -.51768E-03
  12  Prefactor     .10000E-03    62.761        .53198E-05** at limit **
  13  Prefactor     10.542        11.121       -.47293E-06    .72089E-04
  14  Prefactor     .10000E-03    11.652        .27178E-06** at limit **
  15  norm          4.1028        1.0757        .11621E-06    .89056E-03
  16  norm          1.5565        1.9074        .26702E-06   -.17222E-03
  17  Prefactor     .10000E-03    13.229       -.10761E-05** at limit **
  18  Prefactor     .10000E-03    55.363        .22425E-04** at limit **
  19  Prefactor     7.2533        10.370       -.17874E-05    .18724E-04
  20  norm          1.6615        .74917        .11195E-06   -.14476E-02
  21  Prefactor     .10000E-03    5.6408       -.24720E-06** at limit **
  22  Prefactor     4.9535        6.4261       -.25991E-06   -.35847E-03
  23  Normalizat    1.2895        .16820        .16646E-05   -.14382E-03
  24  Prefactor     .59887        .13521        .16508E-05    .94911E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.81605
  Prefactor  = 0.0001
  Prefactor  = 18.638
  Prefactor  = 15.873
  Prefactor  = 0.0001
  norm       = 11.1746
  Prefactor  = 6.83577
  norm       = 0.474865
  norm       = 1.58802
  Prefactor  = 0.000100001
  Prefactor  = 10.5421
  Prefactor  = 0.0001
  norm       = 4.10276
  norm       = 1.55653
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 7.25328
  norm       = 1.66145
  Prefactor  = 0.0001
  Prefactor  = 4.95348
  Normalizat = 1.28946
  Prefactor  = 0.59887
 **********
 **   18 **HESSE 
 **********

 FCN=   7530.682     FROM HESSE     STATUS=OK           403 CALLS     2747 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    99.731        .21380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.8161        .46022        .28653E-04   -1.5438    
   4  Prefactor     .10000E-03    4.1589        .17209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     18.638        11.949        .92782E-04   -1.4844    
   6  Prefactor     15.873        17.195        .10053E-03   -1.4911    
   7  Prefactor     .10000E-03    11.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          11.175        13.870        .11986E-03   -1.5039    
   9  Prefactor     6.8358        8.0493        .15349E-03   -1.5185    
  10  norm          .47486        .67505        .84690E-03   -1.5570    
  11  norm          1.5880        2.0184        .13368E-03   -1.5456    
  12  Prefactor     .10000E-03    62.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.542        11.169        .12345E-03   -1.5058    
  14  Prefactor     .10000E-03    11.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.1028        1.0721        .44322E-04   -1.5303    
  16  norm          1.5565        1.8914        .12710E-03   -1.5458    
  17  Prefactor     .10000E-03    13.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    53.392        .35844E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.2533        10.247        .14902E-03   -1.5169    
  20  norm          1.6615        .76197        .39450E-04   -1.5450    
  21  Prefactor     .10000E-03    5.7188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.9535        6.3943        .18074E-03   -1.5263    
  23  Normalizat    1.2895        .20124        .22882E-03   -.83882    
  24  Prefactor     .59887        .16115        .27274E-03   -1.0763    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.07215e-09
Minuit parameter uncertainties:
  1  1.6595e-05
  2  0.000470624
  3  0.460225
  4  2.2441e-05
  5  11.9506
  6  17.2003
  7  1.3559e-05
  8  13.8736
  9  8.05053
  10  0.67506
  11  2.01853
  12  0.000603568
  13  11.1717
  14  2.04349e-05
  15  1.07213
  16  1.89145
  17  0.000151946
  18  0.000327767
  19  10.2491
  20  0.761979
  21  2.67715e-05
  22  6.39513
  23  0.201364
  24  0.161269
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  6.836e+00  8.051e+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:  5.989e-01  1.613e-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.289e+00  2.014e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.44
Ra Dec: 339.125 -23.155
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 2.41e-08 +/- 2.83e-08
Energy Flux (Fixed Index): 5.61e-06 +/- 6.60e-06

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

Saving results to:
/scratch/kocevski/408059/likelihoodResults_567216001_567475201_4FGL_J2236.4-2309_daily_bin1265.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) = 7530.117706
delta logL = 0.564503750998

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7530.1144937
delta logL = 0.567716056122

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.8399       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8719       1.0000          .0000       10.000    
     3 'Normalizat'    1.3082       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58684       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=   7530.114     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      209 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9232        7.4416        .38353E-02   -.30298E-03
   2  Index         1.8756        .44673        .26582       -.63345E-04
   3  Normalizat    1.3081        .15749        .51425E-01    .22982E-05
   4  Prefactor     .58681        .13335        .62202E-01    .31206E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.92317
  Index      = 1.87564
  Normalizat = 1.3081
  Prefactor  = 0.586811
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9232        8.4044        .76705E-03   -1.5182    
   2  Index         1.8756        .67071        .96494E-02   -.67497    
   3  Normalizat    1.3081        .18477        .22736E-03   -.83325    
   4  Prefactor     .58681        .15602        .27520E-03   -1.0814    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.3963e-12
Minuit parameter uncertainties:
  1  8.40582
  2  0.674052
  3  0.18486
  4  0.156135
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/408059': 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) = 7530.11444607
delta logL = 0.567763687313

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  6.923e+00  8.406e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  1.876e+00  6.741e-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:  5.868e-01  1.561e-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.308e+00  1.849e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.58
Ra Dec: 339.125 -23.155
Photon Index (Free Index): 1.88 +/- 0.67
Photon Flux (Free Index): 1.32e-08 +/- 1.78e-08
Energy Flux (Free Index): 1.26e-05 +/- 1.91e-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/408059/cmap_HighResolution_567216001_567475201_4FGL_J2236.4-2309_daily_bin1265.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.72e-03', comment='SUCCESS', photon_flux='2.41e-08', energy_flux2='1.26e-05', photon_flux_error='2.83e-08', dlogl='5.68e-01', energy_flux='5.61e-06', photon_flux2='1.32e-08', job_status='DONE', time_completed='2021-09-28 17:25:40.509026', photon_index_error2='0.67', photon_index2='1.88', ts='1.44', fit_tolerance='1e-08', GAL='0.60', photon_index_error='0.00', photon_flux_upper_limit='9.78e-08', energy_flux_error2='1.91e-05', EG='1.29', time_epoch_completed='1632875140.51', return_code='0', job_id='408059', GAL2='0.59', EG2='1.31', return_code2='0', energy_flux_error='6.60e-06', photon_flux_error2='1.78e-08', ts2='2.58', photon_index='2.74' WHERE bin_id='1265' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:25:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 408059: <4FGL_J2236.4-2309_daily_bin1265> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin1265> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 17:10:55 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:10:57 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:57 2021
Terminated at Tue Sep 28 17:25:41 2021
Results reported at Tue Sep 28 17:25:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1265 339.125 -23.1552 567216001 567475201 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 :                                   662.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             250.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   883 sec.
    Turnaround time :                            886 sec.

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

