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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1413
RA = 338.841, Dec = -48.6015
tmin = 605577601, tmax = 605836801
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='386353', job_status='RUN', time_executed='2021-09-28 16:05:53.893092', time_epoch_executed='1632870353.89' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1413'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/386353

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/386353/ft1_4FGL_J2235.3-4836_daily_bin1413.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/386353/ft2_4FGL_J2235.3-4836_daily_bin1413.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/386353/ft1_4FGL_J2235.3-4836_daily_bin1413.fits outfile=/scratch/kocevski/386353/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1413.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=605577601.0 tmax=605836801.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 5.03
user 4.75
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/386353/ft2_4FGL_J2235.3-4836_daily_bin1413.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/386353/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1413.fits evtable="EVENTS" outfile="/scratch/kocevski/386353/ft1_filtered_4FGL_J2235.3-4836_daily_bin1413.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/386353/ft1_filtered_4FGL_J2235.3-4836_daily_bin1413.fits" evtable="EVENTS" scfile=/scratch/kocevski/386353/ft2_4FGL_J2235.3-4836_daily_bin1413.fits sctable="SC_DATA" outfile=/scratch/kocevski/386353/ltcube_605577601_605836801_4FGL_J2235.3-4836_daily_bin1413.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/386353/ft2_4FGL_J2235.3-4836_daily_bin1413.fits
.....................!
real 11.87
user 11.49
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/386353/ft1_filtered_4FGL_J2235.3-4836_daily_bin1413.fits evtable="EVENTS" scfile=/scratch/kocevski/386353/ft2_4FGL_J2235.3-4836_daily_bin1413.fits sctable="SC_DATA" expcube=/scratch/kocevski/386353/ltcube_605577601_605836801_4FGL_J2235.3-4836_daily_bin1413.fits outfile=/scratch/kocevski/386353/expmap_605577601_605836801_4FGL_J2235.3-4836_daily_bin1413.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/386353/ltcube_605577601_605836801_4FGL_J2235.3-4836_daily_bin1413.fits
.....................!
real 191.14
user 186.72
sys 3.91

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/386353/ft1_filtered_4FGL_J2235.3-4836_daily_bin1413.fits scfile=/scratch/kocevski/386353/ft2_4FGL_J2235.3-4836_daily_bin1413.fits outfile=/scratch/kocevski/386353/cmap_605577601_605836801_4FGL_J2235.3-4836_daily_bin1413.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.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/386353/ft1_filtered_4FGL_J2235.3-4836_daily_bin1413.fits scfile=/scratch/kocevski/386353/ft2_4FGL_J2235.3-4836_daily_bin1413.fits outfile=/scratch/kocevski/386353/cmap_HighResolution_605577601_605836801_4FGL_J2235.3-4836_daily_bin1413.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/386353/ft1_filtered_4FGL_J2235.3-4836_daily_bin1413.fits evtable="EVENTS" scfile=/scratch/kocevski/386353/ft2_4FGL_J2235.3-4836_daily_bin1413.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/386353/Model_4FGL_J2235.3-4836_daily_bin1413.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/386353/ft1_filtered_4FGL_J2235.3-4836_daily_bin1413.fits.....................!
real 38.89
user 37.67
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5486       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    24.886       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.387       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .73709       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.125       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11578E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.533       1.0000         .10000E-03   10000.    
    16 'Prefactor '    67.132       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11340E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    29.417       1.0000         .10000E-03   10000.    
    20 'norm      '    4.5051       1.0000         .10000E-03   10000.    
    21 'norm      '    4.1448       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.9443       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.3174       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.1995       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    14.254       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2680       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .93233       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=   4820.506     FROM MIGRAD    STATUS=CONVERGED    764 CALLS     3879 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5511        4.9742        .10835E-05   -.94557E-03
   2  Prefactor     .10000E-03    19.450       -.15584E-05** at limit **
   3  Prefactor     .10000E-03    4.4193       -.36427E-07** at limit **
   4  norm          24.888        9.5649       -.61773E-07   -.14347E-04
   5  Prefactor     19.381        33.781       -.34065E-05   -.62397E-04
   6  Prefactor     .72586        6.8814        .79140E-06   -.61684E-04
   7  Prefactor     .10000E-03    2.2431        .93478E-08** at limit **
   8  Prefactor     .10000E-03    107.33       -.12283E-04** at limit **
   9  norm          .10000E-03    2.6739       -.12835E-09** at limit **
  10  Prefactor     .10000E-03    3.0624        .14032E-06** at limit **
  11  Prefactor     28.125        42.444        .37644E-06    .87242E-05
  12  Prefactor     .10004E-03    7.4371       -.22209E-05** at limit **
  13  Prefactor     .10000E-03    35.412        .30386E-06** at limit **
  14  Prefactor     .10000E-03    16.242        .27887E-05** at limit **
  15  Prefactor     10.528        10.259        .12893E-06    .45547E-04
  16  Prefactor     67.122        69.513       -.75908E-05   -.95954E-04
  17  Prefactor     .10000E-03    7.7229        .16907E-06** at limit **
  18  Prefactor     .10000E-03    101.97        .11606E-04** at limit **
  19  Prefactor     29.415        19.325        .35979E-06    .48060E-04
  20  norm          4.5071        16.235       -.67360E-06   -.21461E-04
  21  norm          4.1449        5.2528       -.10130E-06   -.78024E-05
  22  norm          .10000E-03    2.4670       -.18965E-07** at limit **
  23  Prefactor     8.9451        6.7364        .14064E-06    .38906E-04
  24  Prefactor     4.3238        128.81        .14079E-04    .27078E-04
  25  Prefactor     .10000E-03    7.1894       -.13711E-06** at limit **
  26  norm          1.1997        1.1535       -.17431E-07   -.75781E-05
  27  Prefactor     .10000E-03    2.2071        .31725E-08** at limit **
  28  Prefactor     14.256        20.261       -.26891E-06   -.77696E-05
  29  Normalizat    1.2678        .22071       -.41685E-06    .16581E-03
  30  Prefactor     .93229        .19334        .38729E-06    .72291E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.55106
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 24.8876
  Prefactor  = 19.381
  Prefactor  = 0.725855
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.1248
  Prefactor  = 0.000100038
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.5279
  Prefactor  = 67.1223
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 29.4148
  norm       = 4.5071
  norm       = 4.14487
  norm       = 0.0001
  Prefactor  = 8.94513
  Prefactor  = 4.32381
  Prefactor  = 0.0001
  norm       = 1.19966
  Prefactor  = 0.0001
  Prefactor  = 14.2561
  Normalizat = 1.26783
  Prefactor  = 0.932295
 **********
 **   18 **HESSE 
 **********

 FCN=   4820.506     FROM HESSE     STATUS=OK           590 CALLS     4469 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5511        11.899        .12789E-02   -1.5389    
   2  Prefactor     .10000E-03    19.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.5008        .14241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          24.888        9.5803        .80299E-04   -1.4710    
   5  Prefactor     19.381        33.759        .90965E-04   -1.4827    
   6  Prefactor     .72586        32.830        .33190E-02   -1.5538    
   7  Prefactor     .10000E-03    2.2591        .10148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    107.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.6749        .11088E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.0995        .23406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     28.125        42.395        .75544E-04   -1.4647    
  12  Prefactor     .10004E-03    18.815        .34640E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    35.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.528        10.261        .12345E-03   -1.5059    
  16  Prefactor     67.122        69.884        .48986E-04   -1.4068    
  17  Prefactor     .10000E-03    7.7932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    103.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     29.415        19.351        .73869E-04   -1.4623    
  20  norm          4.5071        16.235        .18969E-03   -1.5283    
  21  norm          4.1449        5.2488        .17384E-03   -1.5301    
  22  norm          .10000E-03    2.4672        .10650E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     8.9451        6.7333        .13402E-03   -1.5110    
  24  Prefactor     4.3238        129.80        .19387E-03   -1.5292    
  25  Prefactor     .10000E-03    7.2037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.1997        1.1526        .41462E-04   -1.5489    
  27  Prefactor     .10000E-03    2.2143        .10071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     14.256        20.257        .10609E-03   -1.4953    
  29  Normalizat    1.2678        .25815        .24498E-03   -.84532    
  30  Prefactor     .93229        .22993        .25469E-03   -.95022    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87553e-08
Minuit parameter uncertainties:
  1  11.0226
  2  6.78086e-05
  3  5.24126e-07
  4  9.58094
  5  33.7926
  6  9.76821
  7  8.37449e-07
  8  0.00126752
  9  3.19161e-07
  10  2.35982e-05
  11  42.4403
  12  0.00169588
  13  8.71461e-06
  14  0.000139739
  15  10.2629
  16  69.9696
  17  6.95084e-07
  18  0.00128343
  19  19.3548
  20  16.2506
  21  5.24933
  22  3.57977e-06
  23  6.73388
  24  47.4937
  25  7.93518e-06
  26  1.15262
  27  2.09018e-08
  28  20.2663
  29  0.258415
  30  0.23017
Done.

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

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  1.696e-03  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:  9.323e-01  2.302e-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.268e+00  2.584e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 338.841 -48.602
Photon Flux Upper Limit: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/386353/likelihoodResults_605577601_605836801_4FGL_J2235.3-4836_daily_bin1413.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): 102
logL (Free Index) = 4820.50577668
delta logL = -0.000251872593253

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4820.5055256
delta logL = -7.8799075709e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .53335E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6370       1.0000          .0000       10.000    
     3 'Normalizat'    1.2683       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93194       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=   4820.105     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      278 TOTAL
                     EDM=   .87E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .35494        .66247        .10563E-01   -.51935E-03
   2  Index         4.8346        .95290        .14865        .36909E-04
   3  Normalizat    1.1905        .22246        .56904E-01    .16591E-03
   4  Prefactor     .97515        .19423        .45411E-01    .33939E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.35494
  Index      = 4.83457
  Normalizat = 1.19052
  Prefactor  = 0.975152
 **********
 **   18 **HESSE 
 **********

 FCN=   4820.105     FROM HESSE     STATUS=OK            33 CALLS      311 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .35494        2.0376        .48712E-03   -1.5827    
   2  Index         4.8346        2.8110        .79984E-02   -.33091E-01
   3  Normalizat    1.1905        .26262        .25165E-03   -.86896    
   4  Prefactor     .97515        .23230        .24970E-03   -.93562    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08215e-10
Minuit parameter uncertainties:
  1  1.70071
  2  2.98544
  3  0.262907
  4  0.232539
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/386353': 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) = 4820.10503722
delta logL = 0.400487584948

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  3.549e-01  1.701e+00  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  4.835e+00  2.985e+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:  9.752e-01  2.325e-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.191e+00  2.629e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 338.841 -48.602

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/386353/cmap_HighResolution_605577601_605836801_4FGL_J2235.3-4836_daily_bin1413.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.86e-03', job_status='DONE', photon_flux_upper_limit='1.14e-07', time_completed='2021-09-28 16:18:11.826563', job_id='386353', GAL2='0.98', fit_tolerance='1e-08', EG2='1.19', EG='1.27', time_epoch_completed='1632871091.83', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='4.00e-01', ts2='0.88', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1413' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:18:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 386353: <4FGL_J2235.3-4836_daily_bin1413> in cluster <slac> Done

Job <4FGL_J2235.3-4836_daily_bin1413> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 16:05:28 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:05:30 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:05:30 2021
Terminated at Tue Sep 28 16:18:12 2021
Results reported at Tue Sep 28 16:18:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1413 338.841 -48.6015 605577601 605836801 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 :                                   734.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             368.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            764 sec.

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

