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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin910
RA = 353.869, Dec = -1.476
tmin = 475200001, tmax = 475459201
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='33037', job_status='RUN', time_executed='2021-09-30 00:22:44.894177', time_epoch_executed='1632986564.89' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='910'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/33037

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/33037/ft1_4FGL_J2335.4-0128_daily_bin910.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/33037/ft2_4FGL_J2335.4-0128_daily_bin910.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/33037/ft1_4FGL_J2335.4-0128_daily_bin910.fits outfile=/scratch/kocevski/33037/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin910.fits ra=353.869 dec=-1.476 rad=12.0 tmin=475200001.0 tmax=475459201.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.52
user 3.27
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/33037/ft2_4FGL_J2335.4-0128_daily_bin910.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/33037/ft2_4FGL_J2335.4-0128_daily_bin910.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/33037/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin910.fits evtable="EVENTS" outfile="/scratch/kocevski/33037/ft1_filtered_4FGL_J2335.4-0128_daily_bin910.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.35
sys 0.12

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/33037/ft1_filtered_4FGL_J2335.4-0128_daily_bin910.fits" evtable="EVENTS" scfile=/scratch/kocevski/33037/ft2_4FGL_J2335.4-0128_daily_bin910.fits sctable="SC_DATA" outfile=/scratch/kocevski/33037/ltcube_475200001_475459201_4FGL_J2335.4-0128_daily_bin910.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/33037/ft2_4FGL_J2335.4-0128_daily_bin910.fits
.....................!
real 11.65
user 11.28
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/33037/ft1_filtered_4FGL_J2335.4-0128_daily_bin910.fits evtable="EVENTS" scfile=/scratch/kocevski/33037/ft2_4FGL_J2335.4-0128_daily_bin910.fits sctable="SC_DATA" expcube=/scratch/kocevski/33037/ltcube_475200001_475459201_4FGL_J2335.4-0128_daily_bin910.fits outfile=/scratch/kocevski/33037/expmap_475200001_475459201_4FGL_J2335.4-0128_daily_bin910.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/33037/ltcube_475200001_475459201_4FGL_J2335.4-0128_daily_bin910.fits
.....................!
real 190.40
user 186.13
sys 3.94

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 162 point sources and 0 extended sources

Setting source of interest to:
4FGL J2335.4-0128 @ 353.869 -1.476

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/33037/ft1_filtered_4FGL_J2335.4-0128_daily_bin910.fits scfile=/scratch/kocevski/33037/ft2_4FGL_J2335.4-0128_daily_bin910.fits outfile=/scratch/kocevski/33037/cmap_475200001_475459201_4FGL_J2335.4-0128_daily_bin910.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=353.869 yref=-1.476 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/33037/ft1_filtered_4FGL_J2335.4-0128_daily_bin910.fits scfile=/scratch/kocevski/33037/ft2_4FGL_J2335.4-0128_daily_bin910.fits outfile=/scratch/kocevski/33037/cmap_HighResolution_475200001_475459201_4FGL_J2335.4-0128_daily_bin910.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=353.869 yref=-1.476 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/33037/ft1_filtered_4FGL_J2335.4-0128_daily_bin910.fits evtable="EVENTS" scfile=/scratch/kocevski/33037/ft2_4FGL_J2335.4-0128_daily_bin910.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/33037/Model_4FGL_J2335.4-0128_daily_bin910.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/33037/ft1_filtered_4FGL_J2335.4-0128_daily_bin910.fits.....................!
real 60.89
user 59.56
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/33037/ft1_filtered_4FGL_J2335.4-0128_daily_bin910.fits', '/scratch/kocevski/33037/ft2_4FGL_J2335.4-0128_daily_bin910.fits', expMap='/scratch/kocevski/33037/expmap_475200001_475459201_4FGL_J2335.4-0128_daily_bin910.fits', expCube='/scratch/kocevski/33037/ltcube_475200001_475459201_4FGL_J2335.4-0128_daily_bin910.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/33037/Model_4FGL_J2335.4-0128_daily_bin910.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2335.4-0128'

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  4.347e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  2.505e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
453         beta:  3.100e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
454           Eb:  1.202e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/33037/ft1_filtered_4FGL_J2335.4-0128_daily_bin910.fits
Spacecraft file(s): /scratch/kocevski/33037/ft2_4FGL_J2335.4-0128_daily_bin910.fits
Exposure map: /scratch/kocevski/33037/expmap_475200001_475459201_4FGL_J2335.4-0128_daily_bin910.fits
Exposure cube: /scratch/kocevski/33037/ltcube_475200001_475459201_4FGL_J2335.4-0128_daily_bin910.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/33037/Model_4FGL_J2335.4-0128_daily_bin910.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) = 6170.49678969

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.080       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .56574       1.0000         .10000E-03   10000.    
     5 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10795E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.7777       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .83083       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    17.051       1.0000         .10000E-03   10000.    
    18 'Prefactor '    87.061       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.1074       1.0000         .10000E-03   10000.    
    21 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .81995       1.0000         .10000E-03   10000.    
    24 'Prefactor '    44.855       1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.9391       1.0000         .10000E-03   10000.    
    26 'Prefactor '    21.190       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2753       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .59516       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5330E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6170.467     FROM MIGRAD    STATUS=CONVERGED    721 CALLS     3743 TOTAL
                     EDM=   .33E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.078        10.156        .16002E-07   -.11045E-04
   2  Prefactor     .10000E-03    18.205        .28781E-05** at limit **
   3  Prefactor     .10000E-03    11.024       -.52203E-06** at limit **
   4  Prefactor     .56432        3.0693       -.10609E-06   -.80993E-04
   5  norm          .10000E-03    1.1671        .27621E-07** at limit **
   6  Prefactor     .10000E-03    5.6423       -.25240E-06** at limit **
   7  norm          .10000E-03    1.7781        .31889E-06** at limit **
   8  norm          .10000E-03    6.4746        .70588E-06** at limit **
   9  Prefactor     .10000E-03    41.008        .49106E-05** at limit **
  10  Prefactor     2.7781        10.722        .50927E-06   -.18299E-04
  11  Prefactor     .10000E-03    29.593       -.32633E-05** at limit **
  12  Prefactor     .10000E-03    2.7139       -.58995E-07** at limit **
  13  norm          .83075        .63234        .15720E-08    .33354E-04
  14  norm          .10000E-03    1.2705       -.40549E-08** at limit **
  15  Prefactor     .10000E-03    3.9136        .15529E-06** at limit **
  16  Prefactor     .10000E-03    36.529       -.13423E-06** at limit **
  17  norm          17.051        10.600        .79810E-07    .60930E-05
  18  Prefactor     87.066        128.39       -.73268E-06    .43310E-06
  19  Prefactor     .10000E-03    3.2977       -.87907E-07** at limit **
  20  Prefactor     1.1151        33.656        .17625E-05   -.28427E-04
  21  norm          .10000E-03    5.7481       -.87030E-07** at limit **
  22  Prefactor     .10000E-03    11.241       -.36851E-06** at limit **
  23  Prefactor     .81858        2.9866       -.13936E-06   -.11850E-04
  24  Prefactor     44.856        36.681       -.17330E-06    .13016E-05
  25  Prefactor     6.9392        25.007        .13963E-06    .10584E-05
  26  Prefactor     21.190        14.579       -.50097E-07   -.52323E-05
  27  Prefactor     .10000E-03    16.095        .11776E-05** at limit **
  28  Normalizat    1.2754        .17998        .33336E-06   -.46566E-04
  29  Prefactor     .59515        .12562       -.35077E-06   -.15389E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.0783
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.564324
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.77808
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.830755
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.0509
  Prefactor  = 87.0665
  Prefactor  = 0.0001
  Prefactor  = 1.11507
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.818584
  Prefactor  = 44.8562
  Prefactor  = 6.93924
  Prefactor  = 21.19
  Prefactor  = 0.0001
  Normalizat = 1.27535
  Prefactor  = 0.59515
 **********
 **   18 **HESSE 
 **********

 FCN=   6170.467     FROM HESSE     STATUS=OK           553 CALLS     4296 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.078        9.9629        .11526E-03   -1.5013    
   2  Prefactor     .10000E-03    18.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .56432        10.173        .24992E-02   -1.5558    
   5  norm          .10000E-03    1.2158        .16560E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.6576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.1212        .18956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.5134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    41.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.7781        10.961        .12208E-02   -1.5375    
  11  Prefactor     .10000E-03    29.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.7323        .12635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .83075        .63501        .52041E-04   -1.5526    
  14  norm          .10000E-03    1.2737        .86456E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.9215        .15169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    36.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          17.051        10.656        .96993E-04   -1.4882    
  18  Prefactor     87.066        127.78        .43058E-04   -1.3839    
  19  Prefactor     .10000E-03    3.3017        .13922E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.1151        54.116        .22483E-02   -1.5497    
  21  norm          .10000E-03    5.7489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .81858        2.9397        .24177E-03   -1.5527    
  24  Prefactor     44.856        36.644        .59863E-04   -1.4367    
  25  Prefactor     6.9392        24.945        .15230E-03   -1.5181    
  26  Prefactor     21.190        14.591        .87012E-04   -1.4787    
  27  Prefactor     .10000E-03    25.917        .34222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2754        .20759        .22549E-03   -.84305    
  29  Prefactor     .59515        .14586        .23081E-03   -1.0779    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50431e-08
Minuit parameter uncertainties:
  1  9.96424
  2  3.63323e-05
  3  4.63826e-06
  4  4.79256
  5  1.63401e-07
  6  3.30432e-06
  7  5.77568e-05
  8  4.9588e-06
  9  8.58396e-05
  10  10.9688
  11  4.86463e-05
  12  8.9727e-09
  13  0.635015
  14  1.45604e-07
  15  1.60963e-07
  16  5.7148e-07
  17  10.6576
  18  128.185
  19  9.70399e-07
  20  15.5505
  21  8.63745e-07
  22  3.14388e-06
  23  2.94026
  24  36.6626
  25  24.9826
  26  14.5936
  27  0.000169716
  28  0.207722
  29  0.14595
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  8.637e-07  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  2.505e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
453         beta:  3.100e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
454           Eb:  1.202e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  5.951e-01  1.460e-01  0.000e+00  1.000e+01 ( 1.000e+00)
531        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
532        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
529   Normalization:  1.275e+00  2.077e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 353.869 -1.476
Photon Flux Upper Limit: 3.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.58e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/33037/likelihoodResults_475200001_475459201_4FGL_J2335.4-0128_daily_bin910.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) = 6170.46735464
delta logL = -0.000822992118628

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6170.46653162
delta logL = 3.18150341627e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4948       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2754       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59514       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5330E+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=   6170.467     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      235 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    293.09        .18142E-01** at limit **
   2  alpha         1.7234        3.1813        .16461        .11092E-06
   3  Normalizat    1.2754        .30110E-01    .22549E-03    .32519E-04
   4  Prefactor     .59515        .21941E-01    .23081E-03    .42951E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 1.72345
  Normalizat = 1.27535
  Prefactor  = 0.59515
 **********
 **   18 **HESSE 
 **********

 FCN=   6170.467     FROM HESSE     STATUS=OK            23 CALLS      258 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.9149        .20069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7234        3.1226        .65843E-02   -.31585    
   3  Normalizat    1.2754        .19850        .90198E-05   -.84305    
   4  Prefactor     .59515        .14464        .92325E-05   -1.0779    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.81223e-10
Minuit parameter uncertainties:
  1  0.000180056
  2  461.661
  3  0.198615
  4  0.144729
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/33037': 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) = 6170.46653026
delta logL = 1.39175972436e-06

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  1.801e-04  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  1.723e+00  4.617e+02  0.000e+00  5.000e+00 ( 1.000e+00)
453         beta:  3.100e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
454           Eb:  1.202e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  5.951e-01  1.447e-01  0.000e+00  1.000e+01 ( 1.000e+00)
531        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
532        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
529   Normalization:  1.275e+00  1.986e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 353.869 -1.476

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/33037/cmap_HighResolution_475200001_475459201_4FGL_J2335.4-0128_daily_bin910.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.58e-05', job_status='DONE', photon_flux_upper_limit='3.80e-08', time_completed='2021-09-30 00:35:34.933391', job_id='33037', GAL2='0.60', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1632987334.93', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.60', dlogl='1.39e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='910' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:35:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 33037: <4FGL_J2335.4-0128_daily_bin910> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin910> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 00:20:39 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:20:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 00:20:40 2021
Terminated at Thu Sep 30 00:35:35 2021
Results reported at Thu Sep 30 00:35:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin910 353.869 -1.476 475200001 475459201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2335.4-0128 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   769.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             271.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            896 sec.

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

