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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin1061
RA = 339.125, Dec = -23.1552
tmin = 514339201, tmax = 514598401
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='407760', job_status='RUN', time_executed='2021-09-28 17:13:57.126579', time_epoch_executed='1632874437.13' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1061'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/407760

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/407760/ft1_4FGL_J2236.4-2309_daily_bin1061.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/407760/ft2_4FGL_J2236.4-2309_daily_bin1061.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/407760/ft1_4FGL_J2236.4-2309_daily_bin1061.fits outfile=/scratch/kocevski/407760/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1061.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=514339201.0 tmax=514598401.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 4.12
user 3.90
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/407760/ft2_4FGL_J2236.4-2309_daily_bin1061.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/407760/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1061.fits evtable="EVENTS" outfile="/scratch/kocevski/407760/ft1_filtered_4FGL_J2236.4-2309_daily_bin1061.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/407760/ft1_filtered_4FGL_J2236.4-2309_daily_bin1061.fits" evtable="EVENTS" scfile=/scratch/kocevski/407760/ft2_4FGL_J2236.4-2309_daily_bin1061.fits sctable="SC_DATA" outfile=/scratch/kocevski/407760/ltcube_514339201_514598401_4FGL_J2236.4-2309_daily_bin1061.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/407760/ft2_4FGL_J2236.4-2309_daily_bin1061.fits
.....................!
real 12.56
user 12.22
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/407760/ft1_filtered_4FGL_J2236.4-2309_daily_bin1061.fits evtable="EVENTS" scfile=/scratch/kocevski/407760/ft2_4FGL_J2236.4-2309_daily_bin1061.fits sctable="SC_DATA" expcube=/scratch/kocevski/407760/ltcube_514339201_514598401_4FGL_J2236.4-2309_daily_bin1061.fits outfile=/scratch/kocevski/407760/expmap_514339201_514598401_4FGL_J2236.4-2309_daily_bin1061.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/407760/ltcube_514339201_514598401_4FGL_J2236.4-2309_daily_bin1061.fits
.....................!
real 190.82
user 185.45
sys 5.05

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/407760/ft1_filtered_4FGL_J2236.4-2309_daily_bin1061.fits scfile=/scratch/kocevski/407760/ft2_4FGL_J2236.4-2309_daily_bin1061.fits outfile=/scratch/kocevski/407760/cmap_514339201_514598401_4FGL_J2236.4-2309_daily_bin1061.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.52
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/407760/ft1_filtered_4FGL_J2236.4-2309_daily_bin1061.fits scfile=/scratch/kocevski/407760/ft2_4FGL_J2236.4-2309_daily_bin1061.fits outfile=/scratch/kocevski/407760/cmap_HighResolution_514339201_514598401_4FGL_J2236.4-2309_daily_bin1061.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.736       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .17659E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.2219       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.921       1.0000         .10000E-03   10000.    
     6 'Prefactor '    67.579       1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.493       1.0000         .10000E-03   10000.    
     8 'norm      '    11.042       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.0617       1.0000         .10000E-03   10000.    
    10 'norm      '    .39055       1.0000         .10000E-03   10000.    
    11 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10253E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .31667E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    7.1824       1.0000         .10000E-03   10000.    
    16 'norm      '    8.8047       1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.384       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    31.095       1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.8151       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1329       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .74675       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=   5135.118     FROM MIGRAD    STATUS=CONVERGED    557 CALLS     2820 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.710        25.072        .51477E-06    .19759E-04
   2  Prefactor     .10000E-03    146.56       -.17132E-05** at limit **
   3  norm          1.2218        .45398        .56584E-08    .13060E-04
   4  Prefactor     .10000E-03    9.1592       -.45603E-07** at limit **
   5  Prefactor     26.920        17.968       -.96401E-08   -.77298E-05
   6  Prefactor     67.584        27.260        .10999E-06   -.63751E-05
   7  Prefactor     19.509        92.082        .40386E-05    .17616E-04
   8  norm          11.039        19.244        .32364E-07   -.14804E-04
   9  Prefactor     8.0591        13.044       -.44238E-06   -.69784E-04
  10  norm          .39036        1.0867        .37975E-06   -.32217E-03
  11  norm          .10000E-03    1.0475       -.86131E-08** at limit **
  12  Prefactor     .10000E-03    21.932        .14062E-06** at limit **
  13  Prefactor     .10000E-03    3.6958        .30381E-07** at limit **
  14  Prefactor     .10013E-03    26.626       -.13500E-05** at limit **
  15  norm          7.1818        2.6303        .15327E-06    .97695E-03
  16  norm          8.8042        6.9416       -.55669E-06   -.41607E-03
  17  Prefactor     17.386        53.685        .12468E-05    .58248E-04
  18  Prefactor     .10000E-03    9.4087        .93740E-07** at limit **
  19  Prefactor     31.097        13.771        .27172E-06   -.41318E-03
  20  norm          .10000E-03    .43316        .43037E-06** at limit **
  21  Prefactor     4.8156        7.6350        .98996E-07   -.16860E-04
  22  Prefactor     .10000E-03    6.2346        .21187E-06** at limit **
  23  Normalizat    1.1328        .22644       -.57261E-06   -.50900E-04
  24  Prefactor     .74682        .18429       -.21953E-06   -.75236E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.7099
  Prefactor  = 0.0001
  norm       = 1.22177
  Prefactor  = 0.0001
  Prefactor  = 26.9204
  Prefactor  = 67.584
  Prefactor  = 19.5092
  norm       = 11.0394
  Prefactor  = 8.05914
  norm       = 0.390363
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100125
  norm       = 7.18177
  norm       = 8.80424
  Prefactor  = 17.3856
  Prefactor  = 0.0001
  Prefactor  = 31.0969
  norm       = 0.0001
  Prefactor  = 4.81555
  Prefactor  = 0.0001
  Normalizat = 1.13278
  Prefactor  = 0.74682
 **********
 **   18 **HESSE 
 **********

 FCN=   5135.118     FROM HESSE     STATUS=OK           403 CALLS     3223 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.710        25.025        .10434E-03   -1.4941    
   2  Prefactor     .10000E-03    146.87        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.2218        .45369        .28430E-04   -1.5487    
   4  Prefactor     .10000E-03    9.2449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     26.920        17.975        .77211E-04   -1.4670    
   6  Prefactor     67.584        27.271        .48825E-04   -1.4062    
   7  Prefactor     19.509        91.343        .90716E-04   -1.4824    
   8  norm          11.039        19.226        .12056E-03   -1.5043    
   9  Prefactor     8.0591        13.147        .14121E-03   -1.5140    
  10  norm          .39036        1.0734        .11194E-03   -1.5583    
  11  norm          .10000E-03    1.7750        .14216E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    21.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.6986        .13454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10013E-03    111.63        .58007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.1818        2.5335        .47652E-04   -1.5172    
  16  norm          8.8042        6.9266        .13508E-03   -1.5114    
  17  Prefactor     17.386        55.369        .96059E-04   -1.4874    
  18  Prefactor     .10000E-03    9.4218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     31.097        13.536        .71853E-04   -1.4592    
  20  norm          .10000E-03    .53924        .80773E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.8156        7.6282        .18333E-03   -1.5269    
  22  Prefactor     .10000E-03    6.2417        .17454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1328        .27173        .26243E-03   -.88706    
  24  Prefactor     .74682        .22105        .26510E-03   -1.0172    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80051e-09
Minuit parameter uncertainties:
  1  25.0429
  2  0.000396808
  3  0.453688
  4  5.55782e-06
  5  17.9784
  6  27.2759
  7  84.6403
  8  19.2366
  9  13.1515
  10  1.07345
  11  1.1119e-05
  12  1.5669e-05
  13  1.26913e-06
  14  0.007489
  15  2.53351
  16  6.92723
  17  55.5331
  18  1.98546e-05
  19  13.5368
  20  2.15798e-05
  21  7.6297
  22  2.09036e-05
  23  0.272068
  24  0.221312
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  8.059e+00  1.315e+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:  7.468e-01  2.213e-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.133e+00  2.721e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/407760/likelihoodResults_514339201_514598401_4FGL_J2236.4-2309_daily_bin1061.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) = 5134.93250228
delta logL = 0.185416245903

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5134.92235966
delta logL = 0.195558862746

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0973       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7753       1.0000          .0000       10.000    
     3 'Normalizat'    1.0988       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76738       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5134.922     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      294 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0973        12.264        .17808E-03    .10358E-02
   2  Index         3.7752        2.0611        .41615E-02   -.22838E-05
   3  Normalizat    1.0990        .26675        .26585E-03    .25658E-06
   4  Prefactor     .76728        .21961        .26185E-03    .30391E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.0973
  Index      = 3.77515
  Normalizat = 1.09898
  Prefactor  = 0.767282
 **********
 **   18 **HESSE 
 **********

 FCN=   5134.922     FROM HESSE     STATUS=OK            25 CALLS      319 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0973        11.020        .71233E-05   -1.5256    
   2  Index         3.7752        1.8624        .16646E-03   -.24749    
   3  Normalizat    1.0990        .26710        .10634E-04   -.89785    
   4  Prefactor     .76728        .21978        .10474E-04   -1.0095    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.68292e-09
Minuit parameter uncertainties:
  1  11.0245
  2  1.91153
  3  0.267428
  4  0.22003
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/407760': 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) = 5134.92235949
delta logL = 0.195559028011

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  5.097e+00  1.102e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  3.775e+00  1.912e+00  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:  7.673e-01  2.200e-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.099e+00  2.674e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.47
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/407760/cmap_HighResolution_514339201_514598401_4FGL_J2236.4-2309_daily_bin1061.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', job_status='DONE', photon_flux_upper_limit='1.35e-07', time_completed='2021-09-28 17:23:41.521758', job_id='407760', GAL2='0.77', fit_tolerance='1e-08', EG2='1.10', EG='1.13', time_epoch_completed='1632875021.52', return_code2='0', ts='0.47', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='1.96e-01', ts2='0.89', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1061' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:23:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 407760: <4FGL_J2236.4-2309_daily_bin1061> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1061 339.125 -23.1552 514339201 514598401 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 :                                   583.36 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             283.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   787 sec.
    Turnaround time :                            789 sec.

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

