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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1511
RA = 338.841, Dec = -48.6015
tmin = 630979201, tmax = 631238401
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='386505', job_status='RUN', time_executed='2021-09-28 16:06:26.268739', time_epoch_executed='1632870386.27' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1511'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/386505

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/386505/ft1_4FGL_J2235.3-4836_daily_bin1511.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/386505/ft2_4FGL_J2235.3-4836_daily_bin1511.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/386505/ft1_4FGL_J2235.3-4836_daily_bin1511.fits outfile=/scratch/kocevski/386505/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1511.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=630979201.0 tmax=631238401.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.89
user 2.64
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/386505/ft2_4FGL_J2235.3-4836_daily_bin1511.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/386505/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1511.fits evtable="EVENTS" outfile="/scratch/kocevski/386505/ft1_filtered_4FGL_J2235.3-4836_daily_bin1511.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/386505/ft1_filtered_4FGL_J2235.3-4836_daily_bin1511.fits" evtable="EVENTS" scfile=/scratch/kocevski/386505/ft2_4FGL_J2235.3-4836_daily_bin1511.fits sctable="SC_DATA" outfile=/scratch/kocevski/386505/ltcube_630979201_631238401_4FGL_J2235.3-4836_daily_bin1511.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/386505/ft2_4FGL_J2235.3-4836_daily_bin1511.fits
.....................!
real 12.25
user 11.92
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/386505/ft1_filtered_4FGL_J2235.3-4836_daily_bin1511.fits evtable="EVENTS" scfile=/scratch/kocevski/386505/ft2_4FGL_J2235.3-4836_daily_bin1511.fits sctable="SC_DATA" expcube=/scratch/kocevski/386505/ltcube_630979201_631238401_4FGL_J2235.3-4836_daily_bin1511.fits outfile=/scratch/kocevski/386505/expmap_630979201_631238401_4FGL_J2235.3-4836_daily_bin1511.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/386505/ltcube_630979201_631238401_4FGL_J2235.3-4836_daily_bin1511.fits
.....................!
real 189.88
user 185.13
sys 4.35

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/386505/ft1_filtered_4FGL_J2235.3-4836_daily_bin1511.fits scfile=/scratch/kocevski/386505/ft2_4FGL_J2235.3-4836_daily_bin1511.fits outfile=/scratch/kocevski/386505/cmap_630979201_631238401_4FGL_J2235.3-4836_daily_bin1511.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/386505/ft1_filtered_4FGL_J2235.3-4836_daily_bin1511.fits scfile=/scratch/kocevski/386505/ft2_4FGL_J2235.3-4836_daily_bin1511.fits outfile=/scratch/kocevski/386505/cmap_HighResolution_630979201_631238401_4FGL_J2235.3-4836_daily_bin1511.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.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/386505/ft1_filtered_4FGL_J2235.3-4836_daily_bin1511.fits evtable="EVENTS" scfile=/scratch/kocevski/386505/ft2_4FGL_J2235.3-4836_daily_bin1511.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/386505/Model_4FGL_J2235.3-4836_daily_bin1511.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/386505/ft1_filtered_4FGL_J2235.3-4836_daily_bin1511.fits.....................!
real 49.39
user 48.14
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.910       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    11.870       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.8781       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11031E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.8273       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.128       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.5975       1.0000         .10000E-03   10000.    
    16 'Prefactor '    77.638       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .57309       1.0000         .10000E-03   10000.    
    18 'Prefactor '    28.681       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11028E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    17.370       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.7432       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.7577       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    24.674       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2379       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .69490       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=   6594.930     FROM MIGRAD    STATUS=CONVERGED    733 CALLS     3900 TOTAL
                     EDM=   .93E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.908        15.121        .13136E-06   -.13375E-04
   2  Prefactor     .10000E-03    18.245        .12891E-06** at limit **
   3  Prefactor     .10000E-03    2.7998        .75071E-07** at limit **
   4  norm          11.871        7.3563        .11493E-06   -.70260E-05
   5  Prefactor     .10000E-03    9.2570        .24312E-06** at limit **
   6  Prefactor     .10000E-03    2.6169       -.74926E-08** at limit **
   7  Prefactor     7.8778        4.2181        .89776E-07   -.12965E-04
   8  Prefactor     .10000E-03    23.290        .64238E-06** at limit **
   9  norm          .10000E-03    3.1565       -.24923E-07** at limit **
  10  Prefactor     .10000E-03    2.2561       -.24568E-08** at limit **
  11  Prefactor     .10000E-03    14.941       -.35296E-06** at limit **
  12  Prefactor     1.8257        3.4404        .26486E-06    .35834E-04
  13  Prefactor     .10000E-03    7.8223       -.13054E-06** at limit **
  14  Prefactor     13.120        26.309       -.71177E-07   -.50705E-04
  15  Prefactor     9.5992        12.556        .13497E-06    .69233E-05
  16  Prefactor     77.653        71.907        .30492E-06    .48006E-04
  17  Prefactor     .57162        6.8855        .44512E-05   -.63121E-04
  18  Prefactor     28.667        37.627       -.38694E-06   -.89933E-04
  19  Prefactor     .10000E-03    35.217       -.98914E-06** at limit **
  20  norm          17.371        11.991        .41390E-07   -.78776E-05
  21  norm          .10000E-03    1.7967       -.92652E-08** at limit **
  22  norm          .10000E-03    1.3577        .28106E-08** at limit **
  23  Prefactor     4.7441        4.0160        .38330E-07   -.60980E-05
  24  Prefactor     .10000E-03    16.951       -.10000E-06** at limit **
  25  Prefactor     .10000E-03    2.7404        .37162E-07** at limit **
  26  norm          1.7585        1.0378       -.25119E-07   -.45672E-04
  27  Prefactor     .10000E-03    3.6199        .35384E-06** at limit **
  28  Prefactor     24.677        25.675        .15157E-06    .13550E-04
  29  Normalizat    1.2380        .16550       -.21828E-06   -.13376E-03
  30  Prefactor     .69472        .14944       -.72778E-06   -.96133E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.9081
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.8707
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.87784
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.82572
  Prefactor  = 0.0001
  Prefactor  = 13.1198
  Prefactor  = 9.59916
  Prefactor  = 77.6532
  Prefactor  = 0.571619
  Prefactor  = 28.6673
  Prefactor  = 0.0001
  norm       = 17.3712
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.74414
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.75845
  Prefactor  = 0.0001
  Prefactor  = 24.6772
  Normalizat = 1.23801
  Prefactor  = 0.694717
 **********
 **   18 **HESSE 
 **********

 FCN=   6594.930     FROM HESSE     STATUS=OK           582 CALLS     4482 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.908        15.118        .83686E-04   -1.4750    
   2  Prefactor     .10000E-03    18.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.8492        .13264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          11.871        7.3587        .11627E-03   -1.5019    
   5  Prefactor     .10000E-03    9.2633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.6294        .12827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.8778        4.2223        .11635E-03   -1.5147    
   8  Prefactor     .10000E-03    23.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.1781        .14090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.3395        .23800E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.8257        3.4024        .19729E-03   -1.5438    
  13  Prefactor     .10000E-03    7.8400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.120        26.183        .11055E-03   -1.4983    
  15  Prefactor     9.5992        12.477        .12936E-03   -1.5088    
  16  Prefactor     77.653        71.883        .22787E-03   -1.3943    
  17  Prefactor     .57162        6.8761        .40167E-02   -1.5557    
  18  Prefactor     28.667        37.602        .74808E-04   -1.4637    
  19  Prefactor     .10000E-03    36.069        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          17.371        11.990        .96098E-04   -1.4874    
  21  norm          .10000E-03    1.7982        .10629E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.3580        .92414E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.7441        4.0085        .14423E-03   -1.5272    
  24  Prefactor     .10000E-03    17.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.7430        .13126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.7585        1.0281        .59764E-04   -1.5443    
  27  Prefactor     .10000E-03    3.6787        .30013E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     24.677        25.548        .80643E-04   -1.4714    
  29  Normalizat    1.2380        .19420        .21963E-03   -.85436    
  30  Prefactor     .69472        .17400        .26223E-03   -1.0373    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30602e-07
Minuit parameter uncertainties:
  1  15.1205
  2  3.30914e-05
  3  5.22782e-06
  4  7.35929
  5  6.95681e-05
  6  2.03376e-06
  7  4.22244
  8  0.000312704
  9  3.6451e-06
  10  1.06842e-06
  11  0.000126861
  12  3.40277
  13  3.46833e-05
  14  26.2059
  15  12.4801
  16  71.9633
  17  3.96532
  18  37.6332
  19  0.000176011
  20  11.9917
  21  4.99138e-07
  22  1.43889e-07
  23  4.00874
  24  4.76754e-05
  25  5.00376e-06
  26  1.0281
  27  6.61259e-06
  28  25.5596
  29  0.194318
  30  0.174141
Done.

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

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.826e+00  3.403e+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:  6.947e-01  1.741e-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.238e+00  1.943e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.43
Ra Dec: 338.841 -48.602
Photon Flux Upper Limit: 7.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/386505/likelihoodResults_630979201_631238401_4FGL_J2235.3-4836_daily_bin1511.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): 0
logL (Free Index) = 6594.83955201
delta logL = 0.0906711615125

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6594.83285775
delta logL = 0.0973654198397

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4973       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0129       1.0000          .0000       10.000    
     3 'Normalizat'    1.2429       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69035       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=   6594.833     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      277 TOTAL
                     EDM=   .41E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4975        3.9194        .19643E-03   -.78713E-05
   2  Index         2.0131        .94970        .14775E-01   -.57786E-05
   3  Normalizat    1.2429        .18528        .21925E-03   -.51905E-04
   4  Prefactor     .69038        .17126        .26293E-03   -.45185E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.49752
  Index      = 2.01308
  Normalizat = 1.24287
  Prefactor  = 0.690384
 **********
 **   18 **HESSE 
 **********

 FCN=   6594.833     FROM HESSE     STATUS=OK            25 CALLS      302 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4975        3.9180        .78571E-05   -1.5392    
   2  Index         2.0131        .95005        .59100E-03   -.64024    
   3  Normalizat    1.2429        .18544        .87698E-05   -.85288    
   4  Prefactor     .69038        .17140        .10517E-04   -1.0391    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40035e-12
Minuit parameter uncertainties:
  1  3.91841
  2  0.959171
  3  0.185541
  4  0.171528
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/386505': 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) = 6594.83285769
delta logL = 0.0973654828813

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  2.498e+00  3.918e+00  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  2.013e+00  9.592e-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:  6.904e-01  1.715e-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.243e+00  1.855e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/386505/cmap_HighResolution_630979201_631238401_4FGL_J2235.3-4836_daily_bin1511.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.72e-03', job_status='DONE', photon_flux_upper_limit='7.35e-08', time_completed='2021-09-28 16:21:25.640245', job_id='386505', GAL2='0.69', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1632871285.64', return_code2='0', ts='0.43', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='9.74e-02', ts2='0.62', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1511' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:21:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 386505: <4FGL_J2235.3-4836_daily_bin1511> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1511 338.841 -48.6015 630979201 631238401 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 :                                   893.39 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             295.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            946 sec.

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

