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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1247
RA = 338.841, Dec = -48.6015
tmin = 562550401, tmax = 562809601
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='384992', job_status='RUN', time_executed='2021-09-28 16:01:05.415349', time_epoch_executed='1632870065.42' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1247'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384992

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384992/ft1_4FGL_J2235.3-4836_daily_bin1247.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384992/ft2_4FGL_J2235.3-4836_daily_bin1247.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384992/ft1_4FGL_J2235.3-4836_daily_bin1247.fits outfile=/scratch/kocevski/384992/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1247.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=562550401.0 tmax=562809601.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.44
user 3.22
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/384992/ft2_4FGL_J2235.3-4836_daily_bin1247.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/384992/ft2_4FGL_J2235.3-4836_daily_bin1247.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/384992/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1247.fits evtable="EVENTS" outfile="/scratch/kocevski/384992/ft1_filtered_4FGL_J2235.3-4836_daily_bin1247.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/384992/ft1_filtered_4FGL_J2235.3-4836_daily_bin1247.fits" evtable="EVENTS" scfile=/scratch/kocevski/384992/ft2_4FGL_J2235.3-4836_daily_bin1247.fits sctable="SC_DATA" outfile=/scratch/kocevski/384992/ltcube_562550401_562809601_4FGL_J2235.3-4836_daily_bin1247.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/384992/ft2_4FGL_J2235.3-4836_daily_bin1247.fits
.....................!
real 11.83
user 11.51
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384992/ft1_filtered_4FGL_J2235.3-4836_daily_bin1247.fits evtable="EVENTS" scfile=/scratch/kocevski/384992/ft2_4FGL_J2235.3-4836_daily_bin1247.fits sctable="SC_DATA" expcube=/scratch/kocevski/384992/ltcube_562550401_562809601_4FGL_J2235.3-4836_daily_bin1247.fits outfile=/scratch/kocevski/384992/expmap_562550401_562809601_4FGL_J2235.3-4836_daily_bin1247.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/384992/ltcube_562550401_562809601_4FGL_J2235.3-4836_daily_bin1247.fits
.....................!
real 190.08
user 185.19
sys 4.58

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 184 point sources and 0 extended sources

Setting source of interest to:
4FGL J2235.3-4836 @ 338.841 -48.6015

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/384992/ft1_filtered_4FGL_J2235.3-4836_daily_bin1247.fits scfile=/scratch/kocevski/384992/ft2_4FGL_J2235.3-4836_daily_bin1247.fits outfile=/scratch/kocevski/384992/cmap_562550401_562809601_4FGL_J2235.3-4836_daily_bin1247.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=338.841 yref=-48.6015 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/384992/ft1_filtered_4FGL_J2235.3-4836_daily_bin1247.fits scfile=/scratch/kocevski/384992/ft2_4FGL_J2235.3-4836_daily_bin1247.fits outfile=/scratch/kocevski/384992/cmap_HighResolution_562550401_562809601_4FGL_J2235.3-4836_daily_bin1247.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=338.841 yref=-48.6015 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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/384992/ft1_filtered_4FGL_J2235.3-4836_daily_bin1247.fits evtable="EVENTS" scfile=/scratch/kocevski/384992/ft2_4FGL_J2235.3-4836_daily_bin1247.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/384992/Model_4FGL_J2235.3-4836_daily_bin1247.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/384992/ft1_filtered_4FGL_J2235.3-4836_daily_bin1247.fits.....................!
real 34.59
user 33.31
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/384992/ft1_filtered_4FGL_J2235.3-4836_daily_bin1247.fits', '/scratch/kocevski/384992/ft2_4FGL_J2235.3-4836_daily_bin1247.fits', expMap='/scratch/kocevski/384992/expmap_562550401_562809601_4FGL_J2235.3-4836_daily_bin1247.fits', expCube='/scratch/kocevski/384992/ltcube_562550401_562809601_4FGL_J2235.3-4836_daily_bin1247.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/384992/Model_4FGL_J2235.3-4836_daily_bin1247.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2235.3-4836'

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  3.864e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  2.511e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
353        Scale:  6.132e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/384992/ft1_filtered_4FGL_J2235.3-4836_daily_bin1247.fits
Spacecraft file(s): /scratch/kocevski/384992/ft2_4FGL_J2235.3-4836_daily_bin1247.fits
Exposure map: /scratch/kocevski/384992/expmap_562550401_562809601_4FGL_J2235.3-4836_daily_bin1247.fits
Exposure cube: /scratch/kocevski/384992/ltcube_562550401_562809601_4FGL_J2235.3-4836_daily_bin1247.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/384992/Model_4FGL_J2235.3-4836_daily_bin1247.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) = 3985.25638115

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.565       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10617E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10800E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14499E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.4917       1.0000         .10000E-03   10000.    
     9 'norm      '    9.6105       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.9140       1.0000         .10000E-03   10000.    
    11 'Prefactor '    41.467       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.088       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10463E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.641       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .48157E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    9.9264       1.0000         .10000E-03   10000.    
    22 'norm      '    3.2238       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.1109       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.8739       1.0000         .10000E-03   10000.    
    26 'norm      '    1.1060       1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.0906       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .23120E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .95777       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0626       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3985.248     FROM MIGRAD    STATUS=CONVERGED    781 CALLS     3918 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.563        16.777        .48762E-07    .14379E-04
   2  Prefactor     .10000E-03    29.942        .21666E-05** at limit **
   3  Prefactor     .10000E-03    1.8203        .24860E-07** at limit **
   4  norm          .10000E-03    3.3911        .28514E-07** at limit **
   5  Prefactor     .10000E-03    91.862        .75435E-06** at limit **
   6  Prefactor     .10001E-03    12.320       -.18446E-05** at limit **
   7  Prefactor     .10000E-03    3.2907        .74117E-07** at limit **
   8  Prefactor     5.4865        665.36        .83941E-05    .41643E-04
   9  norm          9.6109        8.1361       -.86504E-08    .28666E-04
  10  Prefactor     2.9144        4.4698        .11919E-06    .86293E-05
  11  Prefactor     41.444        63.284       -.26363E-05   -.12347E-03
  12  Prefactor     10.089        8.0930        .12231E-05   -.20687E-03
  13  Prefactor     .10000E-03    14.958       -.42194E-06** at limit **
  14  Prefactor     .10000E-03    17.925        .83574E-06** at limit **
  15  Prefactor     10.635        13.810       -.48649E-06    .61292E-04
  16  Prefactor     .10014E-03    549.13       -.17821E-04** at limit **
  17  Prefactor     .10000E-03    3.0276       -.33925E-07** at limit **
  18  Prefactor     .10000E-03    20.962       -.97623E-06** at limit **
  19  Prefactor     .10000E-03    11.675        .88919E-07** at limit **
  20  norm          .10000E-03    10.672       -.30747E-07** at limit **
  21  norm          9.9264        8.3011        .50390E-08    .85765E-05
  22  norm          3.2237        6.8647        .18367E-06   -.31674E-04
  23  Prefactor     6.1111        7.1397       -.71055E-06    .26597E-04
  24  Prefactor     .10000E-03    36.046       -.15941E-05** at limit **
  25  Prefactor     5.8724        13.148        .39687E-05   -.19907E-03
  26  norm          1.1059        1.3126       -.43941E-07   -.11921E-03
  27  Prefactor     3.0899        3.3454       -.44485E-07    .14864E-04
  28  Prefactor     .10000E-03    17.894       -.13509E-06** at limit **
  29  Normalizat    .95774        .22395       -.13868E-06    .15029E-03
  30  Prefactor     1.0627        .20473       -.24396E-06    .14781E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.563
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 5.48654
  norm       = 9.61087
  Prefactor  = 2.91444
  Prefactor  = 41.4444
  Prefactor  = 10.0887
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.6352
  Prefactor  = 0.000100138
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.9264
  norm       = 3.22366
  Prefactor  = 6.11112
  Prefactor  = 0.000100001
  Prefactor  = 5.87238
  norm       = 1.1059
  Prefactor  = 3.08987
  Prefactor  = 0.000100004
  Normalizat = 0.957739
  Prefactor  = 1.06265
 **********
 **   18 **HESSE 
 **********

 FCN=   3985.248     FROM HESSE     STATUS=OK           588 CALLS     4506 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.563        16.779        .79227E-04   -1.4696    
   2  Prefactor     .10000E-03    30.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.8283        .83164E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.4068        .11352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    92.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    23.895        .33966E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.3545        .22064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.4865        452.45        .17146E-03   -1.5239    
   9  norm          9.6109        8.1346        .12927E-03   -1.5088    
  10  Prefactor     2.9144        4.4513        .15505E-03   -1.5367    
  11  Prefactor     41.444        64.442        .62250E-04   -1.4420    
  12  Prefactor     10.089        8.1250        .63078E-03   -1.5073    
  13  Prefactor     .10000E-03    14.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    18.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.635        13.778        .12282E-03   -1.5056    
  16  Prefactor     .10014E-03    580.23        .21176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.0312        .10727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    21.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    10.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          9.9264        8.2942        .12718E-03   -1.5078    
  22  norm          3.2237        6.8469        .22562E-03   -1.5349    
  23  Prefactor     6.1111        7.1383        .16231E-03   -1.5214    
  24  Prefactor     .10000E-03    36.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     5.8724        13.209        .82849E-03   -1.5223    
  26  norm          1.1059        1.2745        .73958E-04   -1.5498    
  27  Prefactor     3.0899        3.3440        .11687E-03   -1.5356    
  28  Prefactor     .10000E-03    174.69        .51729E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .95774        .25979        .25159E-03   -.94460    
  30  Prefactor     1.0627        .23743        .22822E-03   -.90669    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29248e-09
Minuit parameter uncertainties:
  1  16.7816
  2  0.000506648
  3  7.88423e-07
  4  6.55034e-07
  5  0.000334896
  6  0.000742414
  7  6.43119e-06
  8  100.442
  9  8.13553
  10  4.45178
  11  64.5508
  12  8.12587
  13  3.89974e-05
  14  0.000169779
  15  13.7817
  16  0.0180594
  17  1.64987e-06
  18  0.000212223
  19  5.75036e-06
  20  9.0799e-06
  21  8.29516
  22  6.84858
  23  7.13927
  24  0.000453094
  25  13.216
  26  1.27457
  27  3.3442
  28  0.00173212
  29  0.260132
  30  0.237664
Done.

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

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.009e+01  8.126e+00  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  2.511e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
353        Scale:  6.132e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  1.063e+00  2.377e-01  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  9.577e-01  2.601e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.27
Ra Dec: 338.841 -48.602
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 6.35e-08 +/- 5.11e-08
Energy Flux (Fixed Index): 1.82e-05 +/- 1.47e-05

TS (Fixed Index): 2.27
Ra Dec: 338.841 -48.602
Photon Flux Upper Limit: 1.71e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.33e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/384992/likelihoodResults_562550401_562809601_4FGL_J2235.3-4836_daily_bin1247.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) = 3985.22560448
delta logL = 0.0228316060279

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3985.21400264
delta logL = 0.0344334425299

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.6736       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7740       1.0000          .0000       10.000    
     3 'Normalizat'    .93978       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0743       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3985.214     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      212 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.6643        170.67        .34026E-02    .41383E-03
   2  Index         2.7744        6.1954        .14847        .11637E-03
   3  Normalizat    .93983        .10824        .45408E-01   -.48833E-04
   4  Prefactor     1.0743        .82159E-01    .38658E-01   -.10014E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.6643
  Index      = 2.77443
  Normalizat = 0.939826
  Prefactor  = 1.07428
 **********
 **   18 **HESSE 
 **********

 FCN=   3985.214     FROM HESSE     STATUS=OK            31 CALLS      243 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.6643        11.123        .13421E-03   -1.5119    
   2  Index         2.7744        1.1899        .76483E-02   -.46130    
   3  Normalizat    .93983        .26129        .25367E-03   -.95075    
   4  Prefactor     1.0743        .24164        .22719E-03   -.90293    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11719e-10
Minuit parameter uncertainties:
  1  11.1258
  2  1.20437
  3  0.261645
  4  0.24189
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384992': 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) = 3985.21400204
delta logL = 0.0344340457523

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  8.664e+00  1.113e+01  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  2.774e+00  1.204e+00  0.000e+00  1.000e+01 (-1.000e+00)
353        Scale:  6.132e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  1.074e+00  2.419e-01  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  9.398e-01  2.616e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.36
Ra Dec: 338.841 -48.602
Photon Index (Free Index): 2.77 +/- 1.20
Photon Flux (Free Index): 7.49e-08 +/- 6.80e-08
Energy Flux (Free Index): 1.71e-05 +/- 1.45e-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/384992/cmap_HighResolution_562550401_562809601_4FGL_J2235.3-4836_daily_bin1247.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.33e-02', comment='SUCCESS', photon_flux='6.35e-08', energy_flux2='1.71e-05', photon_flux_error='5.11e-08', dlogl='3.44e-02', energy_flux='1.82e-05', photon_flux2='7.49e-08', job_status='DONE', time_completed='2021-09-28 16:12:08.945950', photon_index_error2='1.20', photon_index2='2.77', ts='2.27', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='1.71e-07', energy_flux_error2='1.45e-05', EG='0.96', time_epoch_completed='1632870728.95', return_code='0', job_id='384992', GAL2='1.07', EG2='0.94', return_code2='0', energy_flux_error='1.47e-05', photon_flux_error2='6.80e-08', ts2='2.36', photon_index='2.51' WHERE bin_id='1247' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:12:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0139>
Subject: Job 384992: <4FGL_J2235.3-4836_daily_bin1247> in cluster <slac> Done

Job <4FGL_J2235.3-4836_daily_bin1247> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 16:00:29 2021
Job was executed on host(s) <bullet0139>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:00:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 16:00:31 2021
Terminated at Tue Sep 28 16:12:09 2021
Results reported at Tue Sep 28 16:12:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1247 338.841 -48.6015 562550401 562809601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2235.3-4836 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   662.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             344.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   698 sec.
    Turnaround time :                            700 sec.

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

