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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1456
RA = 338.841, Dec = -48.6015
tmin = 616723201, tmax = 616982401
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='386420', job_status='RUN', time_executed='2021-09-28 16:07:06.047948', time_epoch_executed='1632870426.05' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1456'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/386420

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/386420/ft1_4FGL_J2235.3-4836_daily_bin1456.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/386420/ft2_4FGL_J2235.3-4836_daily_bin1456.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/386420/ft1_4FGL_J2235.3-4836_daily_bin1456.fits outfile=/scratch/kocevski/386420/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1456.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=616723201.0 tmax=616982401.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.05
user 2.85
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/386420/ft2_4FGL_J2235.3-4836_daily_bin1456.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/386420/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1456.fits evtable="EVENTS" outfile="/scratch/kocevski/386420/ft1_filtered_4FGL_J2235.3-4836_daily_bin1456.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.56
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/386420/ft1_filtered_4FGL_J2235.3-4836_daily_bin1456.fits" evtable="EVENTS" scfile=/scratch/kocevski/386420/ft2_4FGL_J2235.3-4836_daily_bin1456.fits sctable="SC_DATA" outfile=/scratch/kocevski/386420/ltcube_616723201_616982401_4FGL_J2235.3-4836_daily_bin1456.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/386420/ft2_4FGL_J2235.3-4836_daily_bin1456.fits
.....................!
real 13.02
user 12.66
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/386420/ft1_filtered_4FGL_J2235.3-4836_daily_bin1456.fits evtable="EVENTS" scfile=/scratch/kocevski/386420/ft2_4FGL_J2235.3-4836_daily_bin1456.fits sctable="SC_DATA" expcube=/scratch/kocevski/386420/ltcube_616723201_616982401_4FGL_J2235.3-4836_daily_bin1456.fits outfile=/scratch/kocevski/386420/expmap_616723201_616982401_4FGL_J2235.3-4836_daily_bin1456.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/386420/ltcube_616723201_616982401_4FGL_J2235.3-4836_daily_bin1456.fits
.....................!
real 191.39
user 185.83
sys 5.13

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/386420/ft1_filtered_4FGL_J2235.3-4836_daily_bin1456.fits scfile=/scratch/kocevski/386420/ft2_4FGL_J2235.3-4836_daily_bin1456.fits outfile=/scratch/kocevski/386420/cmap_616723201_616982401_4FGL_J2235.3-4836_daily_bin1456.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/386420/ft1_filtered_4FGL_J2235.3-4836_daily_bin1456.fits scfile=/scratch/kocevski/386420/ft2_4FGL_J2235.3-4836_daily_bin1456.fits outfile=/scratch/kocevski/386420/cmap_HighResolution_616723201_616982401_4FGL_J2235.3-4836_daily_bin1456.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/386420/ft1_filtered_4FGL_J2235.3-4836_daily_bin1456.fits evtable="EVENTS" scfile=/scratch/kocevski/386420/ft2_4FGL_J2235.3-4836_daily_bin1456.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/386420/Model_4FGL_J2235.3-4836_daily_bin1456.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/386420/ft1_filtered_4FGL_J2235.3-4836_daily_bin1456.fits........................!
real 21.55
user 20.13
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     2 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9291.0       1.0000         .10000E-03   10000.    
     4 'norm      '    .10102E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .18677E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .20662       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10533E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16774       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.807       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10455E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    43.026       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10229E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .41474E-02   1.0000         .10000E-03   10000.    
    26 'norm      '    .10162E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.3346       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=   1599.223     FROM MIGRAD    STATUS=CONVERGED    860 CALLS     4204 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        1110.3       -.55463E-04** at limit **
   2  Prefactor    10000.0        6886.1        .15291E-03** at limit **
   3  Prefactor     9290.3        8502.1       -.18338E-04   -.33065E-05
   4  norm          .10000E-03    97.023        .44162E-05** at limit **
   5  Prefactor     .10000E-03    91.486       -.42236E-05** at limit **
   6  Prefactor     .10000E-03    18.789       -.26078E-06** at limit **
   7  Prefactor     .10000E-03    7.7462       -.29254E-06** at limit **
   8  Prefactor     .10000E-03    179.35       -.47765E-05** at limit **
   9  norm          .10000E-03    8.5242       -.85311E-07** at limit **
  10  Prefactor     .10000E-03    5.3077       -.89159E-06** at limit **
  11  Prefactor     .10008E-03    1475.7        .39062E-04** at limit **
  12  Prefactor     .10000E-03    3.8733       -.38371E-06** at limit **
  13  Prefactor     .10046E-03    6751.0       -.33680E-04** at limit **
  14  Prefactor     .10000E-03    50.340       -.13575E-05** at limit **
  15  Prefactor     .10242E-03    7857.5        .30232E-03** at limit **
  16  Prefactor     .10000E-03    148.10        .32625E-06** at limit **
  17  Prefactor     21.827        21.517       -.21712E-05   -.26373E-03
  18  Prefactor     .10000E-03    22.557       -.91805E-07** at limit **
  19  Prefactor     .10000E-03    10.390        .38454E-07** at limit **
  20  norm          .10000E-03    10.888        .37564E-06** at limit **
  21  norm          .10000E-03    4.3840        .16776E-07** at limit **
  22  norm          .10000E-03    3.5296        .23492E-06** at limit **
  23  Prefactor     43.014        13.659        .13747E-05   -.56362E-04
  24  Prefactor     .10000E-03    34.746        .76523E-06** at limit **
  25  Prefactor     .10042E-03    212.03        .19722E-04** at limit **
  26  norm          .10000E-03    1.4842        .26337E-05** at limit **
  27  Prefactor     .10000E-03    5.7612        .11599E-05** at limit **
  28  Prefactor     .10000E-03    22.365        .40223E-06** at limit **
  29  Normalizat    .10000E-01    .24913        .11925E-04** at limit **
  30  Prefactor     1.3353        .18966       -.31937E-05   -.25653E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 9290.29
  norm       = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100077
  Prefactor  = 0.0001
  Prefactor  = 0.000100464
  Prefactor  = 0.0001
  Prefactor  = 0.000102421
  Prefactor  = 0.0001
  Prefactor  = 21.8266
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 43.0138
  Prefactor  = 0.0001
  Prefactor  = 0.000100421
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.33533
 **********
 **   18 **HESSE 
 **********

 FCN=   1599.223     FROM HESSE     STATUS=OK           580 CALLS     4784 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        1119.2        .18809E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor    10000.0        6912.8        .18324E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9290.3        8514.9        .77927E-04    1.0315    
   4  norm          .10000E-03    97.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    91.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    18.790        .16936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.7470        .10873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    179.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    8.5245        .11405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.3226        .90013E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10008E-03    1514.0        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.8748        .76885E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10046E-03    121.72        .10795       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    50.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10242E-03    54.161        .54768E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    148.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     21.827        21.569        .85773E-04   -1.4773    
  18  Prefactor     .10000E-03    22.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.403        .12589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    10.922        .12892E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    4.3933        .81800E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    3.5333        .73392E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     43.014        13.747        .61117E-04   -1.4395    
  24  Prefactor     .10000E-03    34.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10042E-03    229.82        .34562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    1.5244        .78653E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    5.8735        .18691E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    22.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .10000E-01    .26040        .62569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     1.3353        .19410        .19540E-03   -.82262    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.81842e-09
Minuit parameter uncertainties:
  1  0.0282621
  2  0.152682
  3  4137.53
  4  0.000649615
  5  0.000607726
  6  1.81216e-05
  7  1.31464e-05
  8  0.000965875
  9  4.19428e-06
  10  3.32777e-05
  11  0.0221273
  12  1.22969e-05
  13  0.0150681
  14  0.00017247
  15  0.0229223
  16  3.67518e-05
  17  21.5767
  18  8.93984e-06
  19  2.90443e-06
  20  1.47254e-05
  21  7.57077e-07
  22  5.99652e-06
  23  13.7483
  24  5.48969e-05
  25  0.0197511
  26  4.78215e-05
  27  3.36857e-05
  28  1.72272e-05
  29  1.68862e-06
  30  0.194209
Done.

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

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  1.230e-05  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.335e+00  1.942e-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.000e-02  1.689e-06  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.42e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.11e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/386420/likelihoodResults_616723201_616982401_4FGL_J2235.3-4836_daily_bin1456.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) = 1599.2243057
delta logL = -0.000979080771458

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1599.223337
delta logL = -1.03828899682e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4998       1.0000          .0000       10.000    
     3 'Normalizat'    .10003E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3348       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1599.223     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      244 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    59.688        .77433E-02** at limit **
   2  Index         1.9642        6.1391        .50000        .43099E-07
   3  Normalizat    .10000E-01    .69621E-02    .62567E-02** at limit **
   4  Prefactor     1.3353        .27713E-01    .19540E-03   -.10077E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.96418
  Normalizat = 0.01
  Prefactor  = 1.33532
 **********
 **   18 **HESSE 
 **********

 FCN=   1599.223     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    449.12        .83969E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9642        5.0628        .50000       -.65249    
   3  Normalizat    .10000E-01    .64326E-01    .12513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.3353        .84273E-01    .39079E-04   -.82263    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.04194e-09
Minuit parameter uncertainties:
  1  9.12124e-05
  2  1373.06
  3  1.04346e-05
  4  0.0842818
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/386420': 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): 102
logL (Free Index) = 1599.22332453
delta logL = 2.08179949368e-06

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  9.121e-05  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  1.964e+00  1.373e+03  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.335e+00  8.428e-02  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.000e-02  1.043e-05  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/386420/cmap_HighResolution_616723201_616982401_4FGL_J2235.3-4836_daily_bin1456.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.11e-02', job_status='DONE', photon_flux_upper_limit='1.42e-07', time_completed='2021-09-28 16:14:56.570061', job_id='386420', GAL2='1.34', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632870896.57', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.34', dlogl='2.08e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1456' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:14:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 386420: <4FGL_J2235.3-4836_daily_bin1456> in cluster <slac> Done

Job <4FGL_J2235.3-4836_daily_bin1456> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 16:05:33 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:05:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 16:05:34 2021
Terminated at Tue Sep 28 16:14:57 2021
Results reported at Tue Sep 28 16:14:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1456 338.841 -48.6015 616723201 616982401 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 :                                   459.49 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             289.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   562 sec.
    Turnaround time :                            564 sec.

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

