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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1212
RA = 338.841, Dec = -48.6015
tmin = 553478401, tmax = 553737601
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='384942', job_status='RUN', time_executed='2021-09-28 16:00:48.867088', time_epoch_executed='1632870048.87' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1212'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384942

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384942/ft1_4FGL_J2235.3-4836_daily_bin1212.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384942/ft2_4FGL_J2235.3-4836_daily_bin1212.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384942/ft1_4FGL_J2235.3-4836_daily_bin1212.fits outfile=/scratch/kocevski/384942/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1212.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=553478401.0 tmax=553737601.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 2.64
user 2.44
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/384942/ft1_filtered_4FGL_J2235.3-4836_daily_bin1212.fits" evtable="EVENTS" scfile=/scratch/kocevski/384942/ft2_4FGL_J2235.3-4836_daily_bin1212.fits sctable="SC_DATA" outfile=/scratch/kocevski/384942/ltcube_553478401_553737601_4FGL_J2235.3-4836_daily_bin1212.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/384942/ft2_4FGL_J2235.3-4836_daily_bin1212.fits
.....................!
real 12.40
user 12.02
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384942/ft1_filtered_4FGL_J2235.3-4836_daily_bin1212.fits evtable="EVENTS" scfile=/scratch/kocevski/384942/ft2_4FGL_J2235.3-4836_daily_bin1212.fits sctable="SC_DATA" expcube=/scratch/kocevski/384942/ltcube_553478401_553737601_4FGL_J2235.3-4836_daily_bin1212.fits outfile=/scratch/kocevski/384942/expmap_553478401_553737601_4FGL_J2235.3-4836_daily_bin1212.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/384942/ltcube_553478401_553737601_4FGL_J2235.3-4836_daily_bin1212.fits
.....................!
real 191.04
user 185.43
sys 5.23

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/384942/ft1_filtered_4FGL_J2235.3-4836_daily_bin1212.fits scfile=/scratch/kocevski/384942/ft2_4FGL_J2235.3-4836_daily_bin1212.fits outfile=/scratch/kocevski/384942/cmap_553478401_553737601_4FGL_J2235.3-4836_daily_bin1212.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.55
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.889       1.0000         .10000E-03   10000.    
     2 'Prefactor '    71.421       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5623       1.0000         .10000E-03   10000.    
     4 'norm      '    3.8340       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.3856       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11789E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .32052E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    97.294       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.8061       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.058       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .30050E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.316       1.0000         .10000E-03   10000.    
    20 'norm      '    3.7562       1.0000         .10000E-03   10000.    
    21 'norm      '    5.2625       1.0000         .10000E-03   10000.    
    22 'norm      '    8.2684       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.1499       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10313E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10458E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .84096       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.4733       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=   3732.956     FROM MIGRAD    STATUS=CONVERGED    831 CALLS     4077 TOTAL
                     EDM=   .66E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.911        46.407       -.60639E-06   -.17767E-04
   2  Prefactor     71.357        67.314       -.62890E-06    .60271E-06
   3  Prefactor     1.5634        6.0103       -.12946E-05   -.10906E-03
   4  norm          3.8386        10.713       -.70752E-06   -.17964E-04
   5  Prefactor     7.4312        226.79        .35157E-05    .27512E-05
   6  Prefactor     .10000E-03    97.512        .22360E-05** at limit **
   7  Prefactor     .11248        157.45        .49188E-05   -.41552E-05
   8  Prefactor     96.641        176.96       -.32329E-06    .78063E-05
   9  norm          .10000E-03    6.0657        .26870E-06** at limit **
  10  Prefactor     3.8152        7.5734        .28265E-06    .51419E-04
  11  Prefactor     .10000E-03    39.242       -.31762E-06** at limit **
  12  Prefactor     .10000E-03    7.3231       -.40559E-06** at limit **
  13  Prefactor     .10000E-03    13.611       -.22851E-06** at limit **
  14  Prefactor     .10000E-03    21.931       -.46170E-06** at limit **
  15  Prefactor     25.055        21.763        .38476E-06    .66783E-04
  16  Prefactor     .10000E-03    243.94       -.13352E-05** at limit **
  17  Prefactor     .10000E-03    6.2813       -.35374E-06** at limit **
  18  Prefactor     .10000E-03    335.99       -.99580E-06** at limit **
  19  Prefactor     20.352        26.884        .11474E-05   -.43959E-04
  20  norm          3.7778        33.608        .19716E-06    .27132E-05
  21  norm          5.2627        5.3010       -.26955E-08   -.49163E-04
  22  norm          8.2689        6.4912        .10930E-07    .17007E-05
  23  Prefactor     8.1523        7.6433        .10338E-07   -.97559E-04
  24  Prefactor     .10000E-03    14.956       -.97458E-07** at limit **
  25  Prefactor     .10000E-03    22.971        .58607E-06** at limit **
  26  norm          .10000E-03    .73783        .92317E-06** at limit **
  27  Prefactor     .10000E-03    1.7448       -.23731E-07** at limit **
  28  Prefactor     .10000E-03    9.5283       -.71849E-08** at limit **
  29  Normalizat    .84055        .31555       -.77869E-05   -.18110E-04
  30  Prefactor     1.4730        .29470        .52748E-05    .20549E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.911
  Prefactor  = 71.3566
  Prefactor  = 1.56344
  norm       = 3.83863
  Prefactor  = 7.43124
  Prefactor  = 0.0001
  Prefactor  = 0.112475
  Prefactor  = 96.6412
  norm       = 0.0001
  Prefactor  = 3.81519
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.0547
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 20.3524
  norm       = 3.77782
  norm       = 5.26273
  norm       = 8.26886
  Prefactor  = 8.15232
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.840546
  Prefactor  = 1.47301
 **********
 **   18 **HESSE 
 **********

 FCN=   3732.956     FROM HESSE     STATUS=OK           592 CALLS     4669 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.911        46.265        .72092E-04   -1.4595    
   2  Prefactor     71.357        67.295        .23751E-03   -1.4016    
   3  Prefactor     1.5634        6.0105        .28505E-03   -1.5458    
   4  norm          3.8386        10.696        .20612E-03   -1.5316    
   5  Prefactor     7.4312        224.88        .14758E-03   -1.5163    
   6  Prefactor     .10000E-03    96.528        .45876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .11248        159.13        .26273E-02   -1.5641    
   8  Prefactor     96.641        179.00        .20376E-03   -1.3739    
   9  norm          .10000E-03    6.0922        .14701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.8152        7.5549        .20690E-03   -1.5317    
  11  Prefactor     .10000E-03    39.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.3845        .16066E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    21.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     25.055        21.773        .80023E-04   -1.4706    
  16  Prefactor     .10000E-03    244.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.2940        .14945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    341.78        .21389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     20.352        26.522        .88862E-04   -1.4805    
  20  norm          3.7778        33.662        .20832E-03   -1.5319    
  21  norm          5.2627        5.3039        .13758E-03   -1.5249    
  22  norm          8.2689        6.4922        .13473E-03   -1.5133    
  23  Prefactor     8.1523        7.6212        .14044E-03   -1.5137    
  24  Prefactor     .10000E-03    14.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    23.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    1.0294        .89330E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    1.7493        .78844E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    9.5303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .84055        .33771        .31125E-03   -.98582    
  30  Prefactor     1.4730        .31323        .23634E-03   -.78298    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.04929e-09
Minuit parameter uncertainties:
  1  46.3184
  2  67.3667
  3  6.01285
  4  10.7016
  5  82.0995
  6  4.93618e-05
  7  8.48019
  8  180.01
  9  1.25922e-05
  10  7.55681
  11  9.55652e-06
  12  3.0802e-05
  13  4.87694e-06
  14  2.66169e-06
  15  21.78
  16  8.64412e-05
  17  4.96915e-07
  18  0.0013241
  19  26.5374
  20  22.5706
  21  5.30439
  22  6.49273
  23  7.62212
  24  4.3031e-06
  25  4.59107e-05
  26  1.72818e-05
  27  9.26663e-07
  28  8.10679e-07
  29  0.338564
  30  0.313636
Done.

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

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  3.080e-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.473e+00  3.136e-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.405e-01  3.386e-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.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.25e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/384942/likelihoodResults_553478401_553737601_4FGL_J2235.3-4836_daily_bin1212.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) = 3732.9568489
delta logL = -0.000644735708647

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3732.95620439
delta logL = -2.25895291806e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5189       1.0000          .0000       10.000    
     3 'Normalizat'    .84048       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4731       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=   3732.956     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      246 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10058E-03    365.70        .16103E-02** at limit **
   2  Index         2.5765        7.8629        .50000       -.69036E-05
   3  Normalizat    .84055        .47619E-01    .31125E-03    .59609E-04
   4  Prefactor     1.4730        .46529E-01    .23634E-03    .70544E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100578
  Index      = 2.57646
  Normalizat = 0.840547
  Prefactor  = 1.47301
 **********
 **   18 **HESSE 
 **********

 FCN=   3732.956     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10058E-03    1354.8        .32205E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5765        8.6700        .50000       -.50603    
   3  Normalizat    .84055        .13210        .12450E-04   -.98582    
   4  Prefactor     1.4730        .12896        .47268E-04   -.78298    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.44325e-08
Minuit parameter uncertainties:
  1  0.0573332
  2  2464.81
  3  0.132148
  4  0.128988
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384942': 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) = 3732.95620408
delta logL = 8.56507540448e-08

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.006e-04  5.733e-02  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  2.576e+00  2.465e+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.473e+00  1.290e-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.405e-01  1.321e-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/384942/cmap_HighResolution_553478401_553737601_4FGL_J2235.3-4836_daily_bin1212.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.25e-03', job_status='DONE', photon_flux_upper_limit='1.19e-07', time_completed='2021-09-28 16:11:25.707072', job_id='384942', GAL2='1.47', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1632870685.71', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.47', dlogl='8.57e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1212' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:11:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 384942: <4FGL_J2235.3-4836_daily_bin1212> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1212 338.841 -48.6015 553478401 553737601 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 :                                   636.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             282.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   658 sec.
    Turnaround time :                            661 sec.

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

