/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 103 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 = 7413
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2335.4-0128_daily_bin126
RA = 353.869, Dec = -1.476
tmin = 271987201, tmax = 272246401
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='28945', job_status='RUN', time_executed='2021-09-30 00:08:02.325536', time_epoch_executed='1632985682.33' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='126'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/28945

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/28945/ft1_4FGL_J2335.4-0128_daily_bin126.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/28945/ft2_4FGL_J2335.4-0128_daily_bin126.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/28945/ft1_4FGL_J2335.4-0128_daily_bin126.fits outfile=/scratch/kocevski/28945/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin126.fits ra=353.869 dec=-1.476 rad=12.0 tmin=271987201.0 tmax=272246401.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 1.62
user 1.43
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/28945/ft2_4FGL_J2335.4-0128_daily_bin126.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/28945/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin126.fits evtable="EVENTS" outfile="/scratch/kocevski/28945/ft1_filtered_4FGL_J2335.4-0128_daily_bin126.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/28945/ft1_filtered_4FGL_J2335.4-0128_daily_bin126.fits" evtable="EVENTS" scfile=/scratch/kocevski/28945/ft2_4FGL_J2335.4-0128_daily_bin126.fits sctable="SC_DATA" outfile=/scratch/kocevski/28945/ltcube_271987201_272246401_4FGL_J2335.4-0128_daily_bin126.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/28945/ft2_4FGL_J2335.4-0128_daily_bin126.fits
.....................!
real 12.18
user 11.76
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/28945/ft1_filtered_4FGL_J2335.4-0128_daily_bin126.fits evtable="EVENTS" scfile=/scratch/kocevski/28945/ft2_4FGL_J2335.4-0128_daily_bin126.fits sctable="SC_DATA" expcube=/scratch/kocevski/28945/ltcube_271987201_272246401_4FGL_J2335.4-0128_daily_bin126.fits outfile=/scratch/kocevski/28945/expmap_271987201_272246401_4FGL_J2335.4-0128_daily_bin126.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/28945/ltcube_271987201_272246401_4FGL_J2335.4-0128_daily_bin126.fits
.....................!
real 191.23
user 186.24
sys 4.69

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/28945/ft1_filtered_4FGL_J2335.4-0128_daily_bin126.fits scfile=/scratch/kocevski/28945/ft2_4FGL_J2335.4-0128_daily_bin126.fits outfile=/scratch/kocevski/28945/cmap_271987201_272246401_4FGL_J2335.4-0128_daily_bin126.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/28945/ft1_filtered_4FGL_J2335.4-0128_daily_bin126.fits scfile=/scratch/kocevski/28945/ft2_4FGL_J2335.4-0128_daily_bin126.fits outfile=/scratch/kocevski/28945/cmap_HighResolution_271987201_272246401_4FGL_J2335.4-0128_daily_bin126.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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/28945/ft1_filtered_4FGL_J2335.4-0128_daily_bin126.fits evtable="EVENTS" scfile=/scratch/kocevski/28945/ft2_4FGL_J2335.4-0128_daily_bin126.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/28945/Model_4FGL_J2335.4-0128_daily_bin126.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/28945/ft1_filtered_4FGL_J2335.4-0128_daily_bin126.fits.....................!
real 73.12
user 71.75
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/28945/ft1_filtered_4FGL_J2335.4-0128_daily_bin126.fits', '/scratch/kocevski/28945/ft2_4FGL_J2335.4-0128_daily_bin126.fits', expMap='/scratch/kocevski/28945/expmap_271987201_272246401_4FGL_J2335.4-0128_daily_bin126.fits', expCube='/scratch/kocevski/28945/ltcube_271987201_272246401_4FGL_J2335.4-0128_daily_bin126.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/28945/Model_4FGL_J2335.4-0128_daily_bin126.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/28945/ft1_filtered_4FGL_J2335.4-0128_daily_bin126.fits
Spacecraft file(s): /scratch/kocevski/28945/ft2_4FGL_J2335.4-0128_daily_bin126.fits
Exposure map: /scratch/kocevski/28945/expmap_271987201_272246401_4FGL_J2335.4-0128_daily_bin126.fits
Exposure cube: /scratch/kocevski/28945/ltcube_271987201_272246401_4FGL_J2335.4-0128_daily_bin126.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/28945/Model_4FGL_J2335.4-0128_daily_bin126.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) = 7706.05216269

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10346E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.112       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .33111E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10173E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.2609       1.0000         .10000E-03   10000.    
     7 'norm      '    .11226E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    11.394       1.0000         .10000E-03   10000.    
     9 'Prefactor '    41.072       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .72265       1.0000         .10000E-03   10000.    
    13 'norm      '    1.3493       1.0000         .10000E-03   10000.    
    14 'norm      '    1.5213       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.4062       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .15016E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    14.533       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.3889       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11741E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.2396       1.0000         .10000E-03   10000.    
    24 'Prefactor '    42.771       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10363E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .97221       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .86343       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=   7706.041     FROM MIGRAD    STATUS=CONVERGED    739 CALLS     3732 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.2474       -.72292E-06** at limit **
   2  Prefactor     19.090        48.526        .47044E-05    .17370E-04
   3  Prefactor     .10015E-03    9.3615       -.32993E-05** at limit **
   4  Prefactor     .10000E-03    3.4052       -.43238E-06** at limit **
   5  norm          .10000E-03    .68249        .86842E-07** at limit **
   6  Prefactor     1.2702        23.453       -.17704E-06   -.24395E-04
   7  norm          .10000E-03    1.9022       -.15135E-06** at limit **
   8  norm          11.395        8.5642        .15226E-06   -.10110E-04
   9  Prefactor     41.074        26.841        .77194E-07   -.25030E-05
  10  Prefactor     .10000E-03    6.4711        .66144E-07** at limit **
  11  Prefactor     .10000E-03    24.705       -.56972E-06** at limit **
  12  Prefactor     .72633        4.0481        .11882E-07   -.33648E-04
  13  norm          1.3491        .68297        .80109E-09   -.30271E-03
  14  norm          1.5185        4.2705        .17953E-06   -.86641E-04
  15  Prefactor     3.4072        8.5029        .49210E-05    .34250E-03
  16  Prefactor     .10000E-03    78.176       -.25048E-05** at limit **
  17  norm          14.533        9.7392       -.85239E-06   -.16885E-05
  18  Prefactor     .10000E-03    42.755        .64940E-07** at limit **
  19  Prefactor     .10000E-03    2.2375       -.90809E-07** at limit **
  20  Prefactor     .10000E-03    7.0624        .27532E-07** at limit **
  21  norm          4.3889        8.6664        .85873E-07   -.46173E-05
  22  Prefactor     .10000E-03    201.30        .12440E-04** at limit **
  23  Prefactor     3.2380        3.4082        .34968E-06   -.65588E-04
  24  Prefactor     42.758        34.251        .11640E-05    .21962E-05
  25  Prefactor     .10000E-03    13.776       -.13309E-07** at limit **
  26  Prefactor     .10000E-03    5.4356       -.53696E-07** at limit **
  27  Prefactor     .10000E-03    1.6670       -.92687E-08** at limit **
  28  Normalizat    .97230        .16028       -.61133E-06   -.21016E-05
  29  Prefactor     .86327        .11414       -.73419E-06   -.78595E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 19.0897
  Prefactor  = 0.000100151
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.27019
  norm       = 0.0001
  norm       = 11.3948
  Prefactor  = 41.0737
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.726334
  norm       = 1.34911
  norm       = 1.5185
  Prefactor  = 3.40723
  Prefactor  = 0.0001
  norm       = 14.5333
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.3889
  Prefactor  = 0.000100005
  Prefactor  = 3.238
  Prefactor  = 42.7579
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.972299
  Prefactor  = 0.86327
 **********
 **   18 **HESSE 
 **********

 FCN=   7706.041     FROM HESSE     STATUS=OK           557 CALLS     4289 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.6533        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.090        48.420        .91617E-04   -1.4834    
   3  Prefactor     .10015E-03    36.087        .43605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.4690        .15779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.1260        .13878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.2702        23.138        .39718E-03   -1.5483    
   7  norm          .10000E-03    1.9578        .23483E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          11.395        8.5614        .11868E-03   -1.5033    
   9  Prefactor     41.074        26.837        .62548E-04   -1.4425    
  10  Prefactor     .10000E-03    6.4876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    24.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .72633        13.616        .30517E-02   -1.5538    
  13  norm          1.3491        .67733        .49453E-04   -1.5476    
  14  norm          1.5185        4.2444        .26541E-03   -1.5462    
  15  Prefactor     3.4072        8.6917        .10960E-02   -1.5339    
  16  Prefactor     .10000E-03    78.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          14.533        9.7738        .10506E-03   -1.4945    
  18  Prefactor     .10000E-03    42.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.2408        .12818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.0715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.3889        8.6427        .19225E-03   -1.5289    
  22  Prefactor     .10000E-03    203.93        .41307E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.2380        3.3945        .15434E-03   -1.5348    
  24  Prefactor     42.758        34.335        .61298E-04   -1.4399    
  25  Prefactor     .10000E-03    13.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    5.4642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    1.6743        .11067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .97230        .18108        .25837E-03   -.93964    
  29  Prefactor     .86327        .13076        .20399E-03   -.97437    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.29972e-08
Minuit parameter uncertainties:
  1  8.72865e-05
  2  48.5196
  3  0.00466418
  4  3.46023e-05
  5  2.56298e-05
  6  10.8469
  7  7.24553e-06
  8  8.56236
  9  26.8448
  10  8.34293e-06
  11  2.65846e-05
  12  6.29087
  13  0.67733
  14  4.24529
  15  8.69497
  16  9.33737e-05
  17  9.77487
  18  1.52017e-05
  19  5.78284e-06
  20  1.08692e-07
  21  8.64518
  22  0.00198581
  23  3.39474
  24  34.3513
  25  2.62884e-06
  26  1.01486e-06
  27  5.73472e-09
  28  0.181197
  29  0.13081
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  4.389e+00  8.645e+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

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  8.633e-01  1.308e-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:  9.723e-01  1.812e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/28945/likelihoodResults_271987201_272246401_4FGL_J2335.4-0128_daily_bin126.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) = 7705.99702371
delta logL = 0.0438208881042

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7705.99536468
delta logL = 0.045479917133

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.5077       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9903       1.0000          .0000       5.0000    
     3 'Normalizat'    .97417       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86224       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=   7705.995     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      294 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.5085        13.065        .15732E-03   -.38951E-04
   2  alpha         1.9902        1.5305        .45996E-01    .92662E-04
   3  Normalizat    .97421        .17224        .25815E-03    .10261E-04
   4  Prefactor     .86222        .12966        .20409E-03    .16544E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.5085
  alpha      = 1.99019
  Normalizat = 0.974209
  Prefactor  = 0.862222
 **********
 **   18 **HESSE 
 **********

 FCN=   7705.995     FROM HESSE     STATUS=OK            25 CALLS      319 TOTAL
                     EDM=   .35E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.5085        12.616        .62928E-05   -1.5198    
   2  alpha         1.9902        1.4872        .91991E-02   -.20536    
   3  Normalizat    .97421        .17237        .10326E-04   -.93900    
   4  Prefactor     .86222        .12976        .81637E-05   -.97474    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.49965e-12
Minuit parameter uncertainties:
  1  12.6213
  2  1.59842
  3  0.172469
  4  0.129807
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/28945': 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) = 7705.99536466
delta logL = 0.0454799415138

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  6.509e+00  1.262e+01  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  1.990e+00  1.598e+00  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:  8.622e-01  1.298e-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:  9.742e-01  1.725e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/28945/cmap_HighResolution_271987201_272246401_4FGL_J2335.4-0128_daily_bin126.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.76e-05', job_status='DONE', photon_flux_upper_limit='4.23e-08', time_completed='2021-09-30 00:22:29.512379', job_id='28945', GAL2='0.86', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1632986549.51', return_code2='0', ts='0.42', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='4.55e-02', ts2='0.51', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='126' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:22:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 28945: <4FGL_J2335.4-0128_daily_bin126> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin126> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 00:06:07 2021
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:06:10 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:06:10 2021
Terminated at Thu Sep 30 00:22:32 2021
Results reported at Thu Sep 30 00:22:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin126 353.869 -1.476 271987201 272246401 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 :                                   866.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   979 sec.
    Turnaround time :                            985 sec.

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

