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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1058
RA = 338.841, Dec = -48.6015
tmin = 513561601, tmax = 513820801
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='383715', job_status='RUN', time_executed='2021-09-28 15:57:47.708668', time_epoch_executed='1632869867.71' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1058'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/383715

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/383715/ft1_4FGL_J2235.3-4836_daily_bin1058.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/383715/ft2_4FGL_J2235.3-4836_daily_bin1058.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/383715/ft1_4FGL_J2235.3-4836_daily_bin1058.fits outfile=/scratch/kocevski/383715/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1058.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=513561601.0 tmax=513820801.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.67
user 3.44
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/383715/ft2_4FGL_J2235.3-4836_daily_bin1058.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/383715/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1058.fits evtable="EVENTS" outfile="/scratch/kocevski/383715/ft1_filtered_4FGL_J2235.3-4836_daily_bin1058.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/383715/ft1_filtered_4FGL_J2235.3-4836_daily_bin1058.fits" evtable="EVENTS" scfile=/scratch/kocevski/383715/ft2_4FGL_J2235.3-4836_daily_bin1058.fits sctable="SC_DATA" outfile=/scratch/kocevski/383715/ltcube_513561601_513820801_4FGL_J2235.3-4836_daily_bin1058.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/383715/ft2_4FGL_J2235.3-4836_daily_bin1058.fits
.....................!
real 11.78
user 11.39
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/383715/ft1_filtered_4FGL_J2235.3-4836_daily_bin1058.fits evtable="EVENTS" scfile=/scratch/kocevski/383715/ft2_4FGL_J2235.3-4836_daily_bin1058.fits sctable="SC_DATA" expcube=/scratch/kocevski/383715/ltcube_513561601_513820801_4FGL_J2235.3-4836_daily_bin1058.fits outfile=/scratch/kocevski/383715/expmap_513561601_513820801_4FGL_J2235.3-4836_daily_bin1058.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/383715/ltcube_513561601_513820801_4FGL_J2235.3-4836_daily_bin1058.fits
.....................!
real 189.69
user 185.36
sys 4.01

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/383715/ft1_filtered_4FGL_J2235.3-4836_daily_bin1058.fits scfile=/scratch/kocevski/383715/ft2_4FGL_J2235.3-4836_daily_bin1058.fits outfile=/scratch/kocevski/383715/cmap_513561601_513820801_4FGL_J2235.3-4836_daily_bin1058.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/383715/ft1_filtered_4FGL_J2235.3-4836_daily_bin1058.fits scfile=/scratch/kocevski/383715/ft2_4FGL_J2235.3-4836_daily_bin1058.fits outfile=/scratch/kocevski/383715/cmap_HighResolution_513561601_513820801_4FGL_J2235.3-4836_daily_bin1058.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/383715/ft1_filtered_4FGL_J2235.3-4836_daily_bin1058.fits evtable="EVENTS" scfile=/scratch/kocevski/383715/ft2_4FGL_J2235.3-4836_daily_bin1058.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/383715/Model_4FGL_J2235.3-4836_daily_bin1058.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/383715/ft1_filtered_4FGL_J2235.3-4836_daily_bin1058.fits.....................!
real 43.06
user 41.83
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.096       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    6.5795       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11238E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.3152       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.039       1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.948       1.0000         .10000E-03   10000.    
     9 'norm      '    5.0936       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.1567       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.285       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .20239E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.5891       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .15198E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10575E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    14.850       1.0000         .10000E-03   10000.    
    26 'norm      '    .34564       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1361       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1063       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=   5370.634     FROM MIGRAD    STATUS=CONVERGED    788 CALLS     3906 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.3033       -.77484E-07** at limit **
   2  Prefactor     23.098        30.859        .20359E-08   -.53853E-05
   3  Prefactor     .10000E-03    4.9126       -.14769E-06** at limit **
   4  norm          6.5796        4.3614        .34162E-07   -.95986E-04
   5  Prefactor     .10000E-03    93.520        .24537E-05** at limit **
   6  Prefactor     1.3089        9.9355        .17300E-04    .28647E-03
   7  Prefactor     10.040        5.9352       -.24390E-06   -.43373E-04
   8  Prefactor     26.072        74.334       -.13508E-04    .23849E-03
   9  norm          5.0934        5.0984       -.41637E-06   -.11640E-04
  10  Prefactor     5.1561        4.6233        .52823E-06   -.12255E-04
  11  Prefactor     .10000E-03    14.558       -.27902E-07** at limit **
  12  Prefactor     15.283        8.4675       -.90428E-07   -.20165E-03
  13  Prefactor     .10000E-03    20.341       -.27221E-06** at limit **
  14  Prefactor     .10033E-03    27.468        .45117E-05** at limit **
  15  Prefactor     6.5723        12.217       -.28002E-07   -.16300E-03
  16  Prefactor     .10000E-03    36.557       -.18884E-06** at limit **
  17  Prefactor     .10000E-03    5.0309       -.15379E-06** at limit **
  18  Prefactor     .10000E-03    38.345       -.80023E-07** at limit **
  19  Prefactor     .10019E-03    16.645       -.49822E-05** at limit **
  20  norm          .10000E-03    4.7294       -.31880E-07** at limit **
  21  norm          .10000E-03    3.9951        .18289E-07** at limit **
  22  norm          .10000E-03    5.1914       -.93125E-07** at limit **
  23  Prefactor     .10000E-03    3.4174       -.69493E-08** at limit **
  24  Prefactor     .10000E-03    105.73       -.91096E-06** at limit **
  25  Prefactor     14.851        16.078        .40301E-06    .16416E-03
  26  norm          .34563        1.1308        .87069E-07    .30208E-03
  27  Prefactor     .10000E-03    3.3149       -.84548E-07** at limit **
  28  Prefactor     .10000E-03    22.823       -.20778E-07** at limit **
  29  Normalizat    1.1361        .21654       -.45072E-06    .62678E-04
  30  Prefactor     1.1063        .19025       -.90412E-06   -.17311E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 23.0982
  Prefactor  = 0.0001
  norm       = 6.57964
  Prefactor  = 0.0001
  Prefactor  = 1.30891
  Prefactor  = 10.0401
  Prefactor  = 26.0717
  norm       = 5.09337
  Prefactor  = 5.15609
  Prefactor  = 0.0001
  Prefactor  = 15.2833
  Prefactor  = 0.0001
  Prefactor  = 0.000100331
  Prefactor  = 6.57229
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010019
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 14.8512
  norm       = 0.345632
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.13609
  Prefactor  = 1.10627
 **********
 **   18 **HESSE 
 **********

 FCN=   5370.634     FROM HESSE     STATUS=OK           588 CALLS     4494 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.3225        .16482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     23.098        30.859        .83349E-04   -1.4746    
   3  Prefactor     .10000E-03    5.0322        .31693E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.5796        4.3612        .12137E-03   -1.5195    
   5  Prefactor     .10000E-03    94.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.3089        10.090        .19205E-02   -1.5479    
   7  Prefactor     10.040        5.9329        .12647E-03   -1.5074    
   8  Prefactor     26.072        75.410        .78641E-04   -1.4686    
   9  norm          5.0934        5.1035        .80776E-03   -1.5257    
  10  Prefactor     5.1561        4.6248        .71193E-03   -1.5254    
  11  Prefactor     .10000E-03    14.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     15.283        8.4034        .10245E-03   -1.4926    
  13  Prefactor     .10000E-03    20.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10033E-03    188.65        .68370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.5723        11.665        .15633E-03   -1.5195    
  16  Prefactor     .10000E-03    36.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.0618        .16051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    38.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10019E-03    91.424        .53939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    4.7312        .15566E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    4.0068        .14300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    5.2132        .16308E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.4225        .13217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    106.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     14.851        15.976        .10394E-03   -1.4937    
  26  norm          .34563        1.0725        .12858E-03   -1.5590    
  27  Prefactor     .10000E-03    3.3485        .13027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    22.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1361        .26029        .26861E-03   -.88601    
  30  Prefactor     1.1063        .23027        .24658E-03   -.89266    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.12813e-09
Minuit parameter uncertainties:
  1  2.29325e-05
  2  30.8799
  3  3.59371e-05
  4  4.36142
  5  0.000324371
  6  7.26953
  7  5.93322
  8  75.6872
  9  5.10397
  10  4.62516
  11  8.15327e-06
  12  8.404
  13  2.18417e-05
  14  0.0158426
  15  11.6686
  16  0.000206073
  17  1.89373e-05
  18  0.000253566
  19  0.00834696
  20  1.90915e-06
  21  5.73337e-06
  22  6.95813e-06
  23  2.06342e-06
  24  0.00100628
  25  15.9811
  26  1.07255
  27  6.53819e-06
  28  7.77256e-05
  29  0.260581
  30  0.230479
Done.

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

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.528e+01  8.404e+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.106e+00  2.305e-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:  1.136e+00  2.606e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.12
Ra Dec: 338.841 -48.602
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 9.62e-08 +/- 5.28e-08
Energy Flux (Fixed Index): 2.76e-05 +/- 1.52e-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) = 5368.67785709
delta logL = 1.95644930877

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5368.65522066
delta logL = 1.97908573788

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.526       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7644       1.0000          .0000       10.000    
     3 'Normalizat'    1.1841       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0770       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=   5368.655     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      220 TOTAL
                     EDM=   .16E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.523        11.402       -.17981E-05   -.14124E-03
   2  Index         1.7640        .35769       -.12249E-04    .26332E-04
   3  Normalizat    1.1844        .20860        .10053E-05    .81338E-04
   4  Prefactor     1.0767        .18880       -.15619E-06    .10546E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.523
  Index      = 1.76398
  Normalizat = 1.18436
  Prefactor  = 1.07669
 **********
 **   18 **HESSE 
 **********

 FCN=   5368.655     FROM HESSE     STATUS=OK            33 CALLS      253 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.523        11.276        .95670E-04   -1.4871    
   2  Index         1.7640        .35341        .55196E-02   -.70391    
   3  Normalizat    1.1844        .25190        .26388E-03   -.87088    
   4  Prefactor     1.0767        .22852        .24944E-03   -.90215    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.93919e-11
Minuit parameter uncertainties:
  1  11.2772
  2  0.35392
  3  0.252157
  4  0.228731
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/383715': 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) = 5368.65521917
delta logL = 1.97908722902

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.752e+01  1.128e+01  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  1.764e+00  3.539e-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:  1.077e+00  2.287e-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:  1.184e+00  2.522e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.07
Ra Dec: 338.841 -48.602
Photon Index (Free Index): 1.76 +/- 0.35
Photon Flux (Free Index): 5.59e-08 +/- 4.19e-08
Energy Flux (Free Index): 7.47e-05 +/- 6.25e-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/383715/cmap_HighResolution_513561601_513820801_4FGL_J2235.3-4836_daily_bin1058.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.62e-08', energy_flux2='7.47e-05', photon_flux_error='5.28e-08', dlogl='1.98e+00', energy_flux='2.76e-05', photon_flux2='5.59e-08', job_status='DONE', time_completed='2021-09-28 16:09:01.103773', photon_index_error2='0.35', photon_index2='1.76', ts='12.12', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='6.25e-05', EG='1.14', time_epoch_completed='1632870541.1', return_code='0', job_id='383715', GAL2='1.08', EG2='1.18', return_code2='0', energy_flux_error='1.52e-05', photon_flux_error2='4.19e-08', ts2='16.07', photon_index='2.51' WHERE bin_id='1058' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:09:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 383715: <4FGL_J2235.3-4836_daily_bin1058> in cluster <slac> Done

Job <4FGL_J2235.3-4836_daily_bin1058> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 15:55:52 2021
Job was executed on host(s) <bullet0149>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 15:55:54 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:54 2021
Terminated at Tue Sep 28 16:09:01 2021
Results reported at Tue Sep 28 16:09:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1058 338.841 -48.6015 513561601 513820801 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 :                                   673.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.72 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.

