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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin365
RA = 353.869, Dec = -1.476
tmin = 333936001, tmax = 334195201
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='30190', job_status='RUN', time_executed='2021-09-30 00:13:56.505772', time_epoch_executed='1632986036.51' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='365'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/30190

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/30190/ft1_4FGL_J2335.4-0128_daily_bin365.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/30190/ft2_4FGL_J2335.4-0128_daily_bin365.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/30190/ft1_4FGL_J2335.4-0128_daily_bin365.fits outfile=/scratch/kocevski/30190/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin365.fits ra=353.869 dec=-1.476 rad=12.0 tmin=333936001.0 tmax=334195201.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.59
user 3.33
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/30190/ft2_4FGL_J2335.4-0128_daily_bin365.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/30190/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin365.fits evtable="EVENTS" outfile="/scratch/kocevski/30190/ft1_filtered_4FGL_J2335.4-0128_daily_bin365.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/30190/ft1_filtered_4FGL_J2335.4-0128_daily_bin365.fits" evtable="EVENTS" scfile=/scratch/kocevski/30190/ft2_4FGL_J2335.4-0128_daily_bin365.fits sctable="SC_DATA" outfile=/scratch/kocevski/30190/ltcube_333936001_334195201_4FGL_J2335.4-0128_daily_bin365.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/30190/ft2_4FGL_J2335.4-0128_daily_bin365.fits
.....................!
real 12.18
user 11.75
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/30190/ft1_filtered_4FGL_J2335.4-0128_daily_bin365.fits evtable="EVENTS" scfile=/scratch/kocevski/30190/ft2_4FGL_J2335.4-0128_daily_bin365.fits sctable="SC_DATA" expcube=/scratch/kocevski/30190/ltcube_333936001_334195201_4FGL_J2335.4-0128_daily_bin365.fits outfile=/scratch/kocevski/30190/expmap_333936001_334195201_4FGL_J2335.4-0128_daily_bin365.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/30190/ltcube_333936001_334195201_4FGL_J2335.4-0128_daily_bin365.fits
.....................!
real 191.57
user 186.19
sys 4.98

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/30190/ft1_filtered_4FGL_J2335.4-0128_daily_bin365.fits scfile=/scratch/kocevski/30190/ft2_4FGL_J2335.4-0128_daily_bin365.fits outfile=/scratch/kocevski/30190/cmap_333936001_334195201_4FGL_J2335.4-0128_daily_bin365.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.52
user 0.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/30190/ft1_filtered_4FGL_J2335.4-0128_daily_bin365.fits evtable="EVENTS" scfile=/scratch/kocevski/30190/ft2_4FGL_J2335.4-0128_daily_bin365.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/30190/Model_4FGL_J2335.4-0128_daily_bin365.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/30190/ft1_filtered_4FGL_J2335.4-0128_daily_bin365.fits.....................!
real 49.69
user 48.44
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1017       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.349       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.455       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.5439       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.849       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    62.183       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    75.494       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.7076       1.0000         .10000E-03   10000.    
    13 'norm      '    3.1057       1.0000         .10000E-03   10000.    
    14 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.8457       1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.798       1.0000         .10000E-03   10000.    
    17 'norm      '    7.6112       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .61809E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.547       1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.803       1.0000         .10000E-03   10000.    
    21 'norm      '    .10124E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10410E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    48.344       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    10.272       1.0000         .10000E-03   10000.    
    27 'Prefactor '    6.2065       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .63565       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .84977       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=   4734.736     FROM MIGRAD    STATUS=CONVERGED    701 CALLS     3675 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1013        9.1780       -.10526E-05   -.12998E-03
   2  Prefactor     11.353        35.946        .62275E-05   -.20888E-05
   3  Prefactor     10.454        14.568       -.14193E-05   -.73205E-03
   4  Prefactor     .10000E-03    3.3106       -.12114E-07** at limit **
   5  norm          1.5438        2.8214       -.96115E-07   -.52937E-03
   6  Prefactor     14.848        15.863       -.49113E-06   -.43165E-05
   7  norm          .10000E-03    2.0989       -.24138E-07** at limit **
   8  norm          .10000E-03    3.5365       -.34517E-07** at limit **
   9  Prefactor     62.178        42.289       -.45394E-05    .38679E-05
  10  Prefactor     .10000E-03    9.0920       -.24430E-08** at limit **
  11  Prefactor     75.487        78.731       -.65620E-05    .20620E-05
  12  Prefactor     5.7084        12.400        .26356E-05   -.49840E-04
  13  norm          3.1054        1.4018        .67374E-07    .14679E-02
  14  norm          .10000E-03    5.6913       -.80438E-07** at limit **
  15  Prefactor     4.8450        10.460       -.46246E-06   -.12474E-03
  16  Prefactor     21.793        39.810       -.63643E-05    .11257E-04
  17  norm          7.6109        9.0184        .22241E-06   -.68045E-04
  18  Prefactor     .10000E-03    442.64       -.25493E-03** at limit **
  19  Prefactor     16.546        14.444       -.12344E-07    .30132E-03
  20  Prefactor     13.801        19.503       -.10831E-05   -.30581E-03
  21  norm          .10000E-03    13.020        .33795E-06** at limit **
  22  Prefactor     .10000E-03    85.429        .84930E-05** at limit **
  23  Prefactor     .10000E-03    4.6491       -.36612E-07** at limit **
  24  Prefactor     48.349        46.583        .47401E-05    .28435E-04
  25  Prefactor     .10000E-03    41.603       -.15409E-05** at limit **
  26  Prefactor     10.271        9.9274       -.14568E-06    .39067E-04
  27  Prefactor     6.2070        8.2106       -.54053E-06   -.11614E-03
  28  Normalizat    .63556        .21541        .11868E-05    .70104E-04
  29  Prefactor     .84985        .14441        .15863E-06    .15701E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.10128
  Prefactor  = 11.3531
  Prefactor  = 10.454
  Prefactor  = 0.0001
  norm       = 1.54376
  Prefactor  = 14.8476
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 62.1775
  Prefactor  = 0.0001
  Prefactor  = 75.4872
  Prefactor  = 5.70836
  norm       = 3.1054
  norm       = 0.0001
  Prefactor  = 4.84505
  Prefactor  = 21.7929
  norm       = 7.61094
  Prefactor  = 0.0001
  Prefactor  = 16.546
  Prefactor  = 13.8014
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.3487
  Prefactor  = 0.0001
  Prefactor  = 10.2714
  Prefactor  = 6.20701
  Normalizat = 0.635563
  Prefactor  = 0.84985
 **********
 **   18 **HESSE 
 **********

 FCN=   4734.736     FROM HESSE     STATUS=OK           555 CALLS     4230 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1013        9.1538        .17801E-03   -1.5256    
   2  Prefactor     11.353        35.889        .11892E-03   -1.5034    
   3  Prefactor     10.454        14.470        .61958E-03   -1.5061    
   4  Prefactor     .10000E-03    3.3328        .12217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.5438        2.7664        .13872E-03   -1.5459    
   6  Prefactor     14.848        15.851        .10394E-03   -1.4937    
   7  norm          .10000E-03    2.1360        .97223E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.5396        .12637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     62.178        42.305        .50885E-04   -1.4129    
  10  Prefactor     .10000E-03    9.1400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     75.487        78.382        .46213E-04   -1.3968    
  12  Prefactor     5.7084        12.235        .16813E-03   -1.5230    
  13  norm          3.1054        1.3975        .50044E-04   -1.5356    
  14  norm          .10000E-03    5.8661        .31985E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.8450        10.398        .18274E-03   -1.5268    
  16  Prefactor     21.793        39.815        .85791E-04   -1.4774    
  17  norm          7.6109        8.9750        .14536E-03   -1.5156    
  18  Prefactor     .10000E-03    439.75        .21048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.546        14.382        .98461E-04   -1.4894    
  20  Prefactor     13.801        19.501        .53905E-03   -1.4965    
  21  norm          .10000E-03    13.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    85.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.7895        .28792E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     48.349        46.694        .57672E-04   -1.4316    
  25  Prefactor     .10000E-03    42.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     10.271        9.9326        .12502E-03   -1.5067    
  27  Prefactor     6.2070        8.2236        .16114E-03   -1.5210    
  28  Normalizat    .63556        .24997        .30487E-03   -1.0649    
  29  Prefactor     .84985        .16872        .19479E-03   -.97916    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5408e-09
Minuit parameter uncertainties:
  1  9.15633
  2  35.9569
  3  14.4747
  4  6.66427e-06
  5  2.76662
  6  15.8558
  7  3.00242e-06
  8  6.34427e-07
  9  42.3253
  10  4.26174e-06
  11  78.4895
  12  12.2401
  13  1.3975
  14  6.33131e-06
  15  10.4016
  16  39.8636
  17  8.97656
  18  0.000334405
  19  14.3849
  20  19.5101
  21  1.88361e-06
  22  1.7886e-05
  23  1.59405e-06
  24  46.7296
  25  0.000252966
  26  9.93415
  27  8.22507
  28  0.250418
  29  0.168824
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  1.884e-06  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.499e-01  1.688e-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:  6.356e-01  2.504e-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: 6.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.62e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/30190/likelihoodResults_333936001_334195201_4FGL_J2335.4-0128_daily_bin365.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) = 4734.73644869
delta logL = -0.000365619452168

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4734.73608306
delta logL = 1.08329913928e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4954       1.0000          .0000       5.0000    
     3 'Normalizat'    .63556       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84986       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=   4734.736     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      243 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    778.53        .18142E-01** at limit **
   2  alpha         1.4451        3.9272        .16461        .62159E-08
   3  Normalizat    .63556        .35183E-01    .30486E-03    .21219E-04
   4  Prefactor     .84985        .25945E-01    .19479E-03    .36302E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.44513
  Normalizat = 0.635563
  Prefactor  = 0.84985
 **********
 **   18 **HESSE 
 **********

 FCN=   4734.736     FROM HESSE     STATUS=OK            23 CALLS      266 TOTAL
                     EDM=   .39E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    17.415        .27874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4451        2.7746        .65843E-02   -.43559    
   3  Normalizat    .63556        .22421        .12195E-04   -1.0649    
   4  Prefactor     .84985        .16546        .77916E-05   -.97916    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.89076e-12
Minuit parameter uncertainties:
  1  2.76014e-06
  2  603.8
  3  0.224535
  4  0.165555
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/30190': 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) = 4734.73608213
delta logL = 9.48597516981e-07

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  2.760e-06  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  1.445e+00  6.038e+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:  8.498e-01  1.656e-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:  6.356e-01  2.245e-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/30190/cmap_HighResolution_333936001_334195201_4FGL_J2335.4-0128_daily_bin365.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.62e-05', job_status='DONE', photon_flux_upper_limit='6.31e-08', time_completed='2021-09-30 00:24:35.804407', job_id='30190', GAL2='0.85', fit_tolerance='1e-08', EG2='0.64', EG='0.64', time_epoch_completed='1632986675.8', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='9.49e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='365' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:24:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 30190: <4FGL_J2335.4-0128_daily_bin365> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin365> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 00:10:39 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:10: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:10:40 2021
Terminated at Thu Sep 30 00:24:36 2021
Results reported at Thu Sep 30 00:24:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin365 353.869 -1.476 333936001 334195201 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 :                                   637.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             255.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            837 sec.

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

