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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1046
RA = 338.841, Dec = -48.6015
tmin = 510451201, tmax = 510710401
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='383696', job_status='RUN', time_executed='2021-09-28 15:59:55.974777', time_epoch_executed='1632869995.97' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1046'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/383696

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/383696/ft1_4FGL_J2235.3-4836_daily_bin1046.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/383696/ft2_4FGL_J2235.3-4836_daily_bin1046.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/383696/ft1_4FGL_J2235.3-4836_daily_bin1046.fits outfile=/scratch/kocevski/383696/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1046.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=510451201.0 tmax=510710401.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.97
user 3.74
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/383696/ft1_filtered_4FGL_J2235.3-4836_daily_bin1046.fits" evtable="EVENTS" scfile=/scratch/kocevski/383696/ft2_4FGL_J2235.3-4836_daily_bin1046.fits sctable="SC_DATA" outfile=/scratch/kocevski/383696/ltcube_510451201_510710401_4FGL_J2235.3-4836_daily_bin1046.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/383696/ft2_4FGL_J2235.3-4836_daily_bin1046.fits
.....................!
real 11.84
user 11.49
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/383696/ft1_filtered_4FGL_J2235.3-4836_daily_bin1046.fits evtable="EVENTS" scfile=/scratch/kocevski/383696/ft2_4FGL_J2235.3-4836_daily_bin1046.fits sctable="SC_DATA" expcube=/scratch/kocevski/383696/ltcube_510451201_510710401_4FGL_J2235.3-4836_daily_bin1046.fits outfile=/scratch/kocevski/383696/expmap_510451201_510710401_4FGL_J2235.3-4836_daily_bin1046.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/383696/ltcube_510451201_510710401_4FGL_J2235.3-4836_daily_bin1046.fits
.....................!
real 190.75
user 185.43
sys 4.90

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/383696/ft1_filtered_4FGL_J2235.3-4836_daily_bin1046.fits scfile=/scratch/kocevski/383696/ft2_4FGL_J2235.3-4836_daily_bin1046.fits outfile=/scratch/kocevski/383696/cmap_510451201_510710401_4FGL_J2235.3-4836_daily_bin1046.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.75
user 0.37
sys 0.34

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/383696/ft1_filtered_4FGL_J2235.3-4836_daily_bin1046.fits scfile=/scratch/kocevski/383696/ft2_4FGL_J2235.3-4836_daily_bin1046.fits outfile=/scratch/kocevski/383696/cmap_HighResolution_510451201_510710401_4FGL_J2235.3-4836_daily_bin1046.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/383696/ft1_filtered_4FGL_J2235.3-4836_daily_bin1046.fits evtable="EVENTS" scfile=/scratch/kocevski/383696/ft2_4FGL_J2235.3-4836_daily_bin1046.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/383696/Model_4FGL_J2235.3-4836_daily_bin1046.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/383696/ft1_filtered_4FGL_J2235.3-4836_daily_bin1046.fits.....................!
real 43.56
user 42.23
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/383696/ft1_filtered_4FGL_J2235.3-4836_daily_bin1046.fits', '/scratch/kocevski/383696/ft2_4FGL_J2235.3-4836_daily_bin1046.fits', expMap='/scratch/kocevski/383696/expmap_510451201_510710401_4FGL_J2235.3-4836_daily_bin1046.fits', expCube='/scratch/kocevski/383696/ltcube_510451201_510710401_4FGL_J2235.3-4836_daily_bin1046.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/383696/Model_4FGL_J2235.3-4836_daily_bin1046.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/383696/ft1_filtered_4FGL_J2235.3-4836_daily_bin1046.fits
Spacecraft file(s): /scratch/kocevski/383696/ft2_4FGL_J2235.3-4836_daily_bin1046.fits
Exposure map: /scratch/kocevski/383696/expmap_510451201_510710401_4FGL_J2235.3-4836_daily_bin1046.fits
Exposure cube: /scratch/kocevski/383696/ltcube_510451201_510710401_4FGL_J2235.3-4836_daily_bin1046.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/383696/Model_4FGL_J2235.3-4836_daily_bin1046.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) = 5687.2800582

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.212       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.0667       1.0000         .10000E-03   10000.    
     4 'norm      '    13.890       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.2216       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .24334E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10580E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .19483E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.9944       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.048       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .18601E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.3757       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.425       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.269       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.9966       1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.6233       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.2358       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .89158       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .89699       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=   5687.160     FROM MIGRAD    STATUS=CONVERGED    776 CALLS     3935 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.8489       -.97156E-07** at limit **
   2  Prefactor     18.206        26.145       -.39673E-07    .21487E-04
   3  Prefactor     5.0672        3.9839       -.40171E-07   -.26307E-04
   4  norm          13.891        6.3904       -.14753E-07   -.27968E-04
   5  Prefactor     .10001E-03    82.702       -.17504E-05** at limit **
   6  Prefactor     5.2188        8.8540        .70200E-06    .93248E-04
   7  Prefactor     .10000E-03    5.1309        .17472E-05** at limit **
   8  Prefactor     .10000E-03    81.472       -.37419E-06** at limit **
   9  norm          .10000E-03    12.458        .66071E-05** at limit **
  10  Prefactor     3.9948        4.0878        .84030E-07    .45648E-04
  11  Prefactor     .10000E-03    31.509       -.35911E-06** at limit **
  12  Prefactor     23.051        9.0300       -.10122E-07   -.72504E-04
  13  Prefactor     .10000E-03    83.060       -.10955E-04** at limit **
  14  Prefactor     9.3724        25.683        .31398E-06    .70669E-06
  15  Prefactor     .10000E-03    4.3178        .17482E-06** at limit **
  16  Prefactor     .10000E-03    26.487       -.59729E-06** at limit **
  17  Prefactor     20.424        10.185       -.16591E-06   -.98090E-04
  18  Prefactor     11.225        36.458       -.23469E-05   -.11913E-04
  19  Prefactor     .10000E-03    5.0622        .15926E-06** at limit **
  20  norm          .10000E-03    3.3792        .24150E-07** at limit **
  21  norm          .10000E-03    6.9544        .19460E-07** at limit **
  22  norm          3.9972        4.0109       -.93731E-07   -.76990E-04
  23  Prefactor     9.6251        6.7539       -.19856E-06   -.25433E-03
  24  Prefactor     .10000E-03    35.596        .98890E-06** at limit **
  25  Prefactor     .10000E-03    9.5521        .15350E-06** at limit **
  26  norm          .10000E-03    .40598       -.11675E-06** at limit **
  27  Prefactor     4.2371        4.5712        .99420E-07   -.20775E-04
  28  Prefactor     .10000E-03    9.2713        .69087E-07** at limit **
  29  Normalizat    .89133        .18868        .34695E-06   -.23582E-04
  30  Prefactor     .89707        .16165       -.39325E-06   -.14123E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 18.2062
  Prefactor  = 5.0672
  norm       = 13.8914
  Prefactor  = 0.00010001
  Prefactor  = 5.21878
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 3.99479
  Prefactor  = 0.0001
  Prefactor  = 23.051
  Prefactor  = 0.000100002
  Prefactor  = 9.37237
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.4243
  Prefactor  = 11.2251
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.99718
  Prefactor  = 9.62511
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.23713
  Prefactor  = 0.0001
  Normalizat = 0.891332
  Prefactor  = 0.897071
 **********
 **   18 **HESSE 
 **********

 FCN=   5687.160     FROM HESSE     STATUS=OK           592 CALLS     4527 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.8665        .16218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     18.206        26.119        .93852E-04   -1.4854    
   3  Prefactor     5.0672        3.9862        .12797E-03   -1.5258    
   4  norm          13.891        6.3888        .10747E-03   -1.4962    
   5  Prefactor     .10001E-03    83.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.2188        8.8512        .17591E-03   -1.5251    
   7  Prefactor     .10000E-03    16.306        .19932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    81.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    12.443        .31098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.9948        4.0881        .14457E-03   -1.5308    
  11  Prefactor     .10000E-03    31.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     23.051        9.0282        .83435E-04   -1.4747    
  13  Prefactor     .10000E-03    100.72        .47976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.3724        25.630        .13088E-03   -1.5096    
  15  Prefactor     .10000E-03    4.3320        .15283E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    26.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     20.424        10.165        .88624E-04   -1.4804    
  18  Prefactor     11.225        36.672        .11934E-03   -1.5038    
  19  Prefactor     .10000E-03    5.0810        .16574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.3801        .13539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    7.1423        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.9972        4.0183        .14777E-03   -1.5308    
  23  Prefactor     9.6251        6.6074        .12918E-03   -1.5087    
  24  Prefactor     .10000E-03    35.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    9.5976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .55145        .90782E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     4.2371        4.5730        .15963E-03   -1.5296    
  28  Prefactor     .10000E-03    9.2710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .89133        .22222        .24707E-03   -.96765    
  30  Prefactor     .89707        .19114        .22897E-03   -.96244    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.63234e-10
Minuit parameter uncertainties:
  1  2.95158e-06
  2  26.1357
  3  3.98645
  4  6.38907
  5  0.00181619
  6  8.85341
  7  0.000169
  8  0.00108735
  9  6.65842e-05
  10  4.08841
  11  4.97124e-05
  12  9.02875
  13  0.000971079
  14  25.6602
  15  1.61049e-05
  16  1.29973e-08
  17  10.1663
  18  36.7462
  19  1.33228e-05
  20  2.78955e-06
  21  1.62556e-05
  22  4.01857
  23  6.60791
  24  0.000108876
  25  2.45102e-05
  26  4.48615e-06
  27  4.57336
  28  2.26463e-05
  29  0.222449
  30  0.191282
Done.

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

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  2.305e+01  9.029e+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:  8.971e-01  1.913e-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:  8.913e-01  2.224e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.45
Ra Dec: 338.841 -48.602
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 1.45e-07 +/- 5.68e-08
Energy Flux (Fixed Index): 4.16e-05 +/- 1.63e-05

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) = 5684.62734661
delta logL = 2.53269565023

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5684.61579419
delta logL = 2.54424807231

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1614       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6906       1.0000          .0000       10.000    
     3 'Normalizat'    .78720       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97184       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=   5684.616     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      251 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1587        28.111        .37474E-02    .10610E-03
   2  Index         3.6909        2.5298        .71865E-01    .11854E-03
   3  Normalizat    .78721        .89896E-01    .43443E-01    .13105E-04
   4  Prefactor     .97183        .82088E-01    .45914E-01    .61341E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.15872
  Index      = 3.69086
  Normalizat = 0.787208
  Prefactor  = 0.971826
 **********
 **   18 **HESSE 
 **********

 FCN=   5684.616     FROM HESSE     STATUS=OK            33 CALLS      284 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1587        8.6590        .58893E-04   -1.5173    
   2  Index         3.6909        .84339        .30805E-02   -.26492    
   3  Normalizat    .78721        .21004        .26050E-03   -1.0054    
   4  Prefactor     .97183        .19202        .22092E-03   -.93675    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.57973e-09
Minuit parameter uncertainties:
  1  8.6605
  2  0.847744
  3  0.210254
  4  0.192159
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/383696': 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) = 5684.6157941
delta logL = 2.54424816133

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  7.159e+00  8.661e+00  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  3.691e+00  8.477e-01  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:  9.718e-01  1.922e-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:  7.872e-01  2.103e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.43
Ra Dec: 338.841 -48.602
Photon Index (Free Index): 3.69 +/- 0.85
Photon Flux (Free Index): 2.15e-07 +/- 6.93e-08
Energy Flux (Free Index): 3.42e-05 +/- 1.18e-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/383696/cmap_HighResolution_510451201_510710401_4FGL_J2235.3-4836_daily_bin1046.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.45e-07', energy_flux2='3.42e-05', photon_flux_error='5.68e-08', dlogl='2.54e+00', energy_flux='4.16e-05', photon_flux2='2.15e-07', job_status='DONE', time_completed='2021-09-28 16:11:59.124017', photon_index_error2='0.85', photon_index2='3.69', ts='12.45', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='1.18e-05', EG='0.89', time_epoch_completed='1632870719.12', return_code='0', job_id='383696', GAL2='0.97', EG2='0.79', return_code2='0', energy_flux_error='1.63e-05', photon_flux_error2='6.93e-08', ts2='18.43', photon_index='2.51' WHERE bin_id='1046' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:11:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 383696: <4FGL_J2235.3-4836_daily_bin1046> in cluster <slac> Done

Job <4FGL_J2235.3-4836_daily_bin1046> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 15:55:50 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 15:55:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 15:55:51 2021
Terminated at Tue Sep 28 16:11:59 2021
Results reported at Tue Sep 28 16:11:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1046 338.841 -48.6015 510451201 510710401 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 :                                   721.47 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             262.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   968 sec.
    Turnaround time :                            969 sec.

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

