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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin543
RA = 353.869, Dec = -1.476
tmin = 380073601, tmax = 380332801
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='31448', job_status='RUN', time_executed='2021-09-30 00:17:31.014742', time_epoch_executed='1632986251.01' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='543'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31448

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31448/ft1_4FGL_J2335.4-0128_daily_bin543.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31448/ft2_4FGL_J2335.4-0128_daily_bin543.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31448/ft1_4FGL_J2335.4-0128_daily_bin543.fits outfile=/scratch/kocevski/31448/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin543.fits ra=353.869 dec=-1.476 rad=12.0 tmin=380073601.0 tmax=380332801.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 4.46
user 4.25
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/31448/ft1_filtered_4FGL_J2335.4-0128_daily_bin543.fits" evtable="EVENTS" scfile=/scratch/kocevski/31448/ft2_4FGL_J2335.4-0128_daily_bin543.fits sctable="SC_DATA" outfile=/scratch/kocevski/31448/ltcube_380073601_380332801_4FGL_J2335.4-0128_daily_bin543.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/31448/ft2_4FGL_J2335.4-0128_daily_bin543.fits
.....................!
real 11.74
user 11.38
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31448/ft1_filtered_4FGL_J2335.4-0128_daily_bin543.fits evtable="EVENTS" scfile=/scratch/kocevski/31448/ft2_4FGL_J2335.4-0128_daily_bin543.fits sctable="SC_DATA" expcube=/scratch/kocevski/31448/ltcube_380073601_380332801_4FGL_J2335.4-0128_daily_bin543.fits outfile=/scratch/kocevski/31448/expmap_380073601_380332801_4FGL_J2335.4-0128_daily_bin543.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/31448/ltcube_380073601_380332801_4FGL_J2335.4-0128_daily_bin543.fits
.....................!
real 190.72
user 185.01
sys 5.40

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/31448/ft1_filtered_4FGL_J2335.4-0128_daily_bin543.fits scfile=/scratch/kocevski/31448/ft2_4FGL_J2335.4-0128_daily_bin543.fits outfile=/scratch/kocevski/31448/cmap_380073601_380332801_4FGL_J2335.4-0128_daily_bin543.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/31448/ft1_filtered_4FGL_J2335.4-0128_daily_bin543.fits scfile=/scratch/kocevski/31448/ft2_4FGL_J2335.4-0128_daily_bin543.fits outfile=/scratch/kocevski/31448/cmap_HighResolution_380073601_380332801_4FGL_J2335.4-0128_daily_bin543.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/31448/ft1_filtered_4FGL_J2335.4-0128_daily_bin543.fits evtable="EVENTS" scfile=/scratch/kocevski/31448/ft2_4FGL_J2335.4-0128_daily_bin543.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/31448/Model_4FGL_J2335.4-0128_daily_bin543.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/31448/ft1_filtered_4FGL_J2335.4-0128_daily_bin543.fits.....................!
real 51.86
user 50.57
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.453       1.0000         .10000E-03   10000.    
     2 'Prefactor '    56.763       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.4093       1.0000         .10000E-03   10000.    
     5 'norm      '    2.6022       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.2392       1.0000         .10000E-03   10000.    
     7 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    14.826       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    47.380       1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.330       1.0000         .10000E-03   10000.    
    13 'norm      '    1.3195       1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-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      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.448       1.0000         .10000E-03   10000.    
    21 'norm      '    15.407       1.0000         .10000E-03   10000.    
    22 'Prefactor '    54.593       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    24.168       1.0000         .10000E-03   10000.    
    25 'Prefactor '    20.729       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .87712       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .95964       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=   4910.441     FROM MIGRAD    STATUS=CONVERGED    708 CALLS     3682 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.453        13.666        .90207E-06   -.31062E-05
   2  Prefactor     56.754        70.727       -.91770E-05    .51774E-05
   3  Prefactor     .10000E-03    52.886       -.35395E-04** at limit **
   4  Prefactor     9.4087        7.9104        .64268E-05    .83575E-04
   5  norm          2.6026        3.4260        .17781E-07    .80380E-03
   6  Prefactor     9.2389        13.399        .93943E-06    .10061E-05
   7  norm          .10000E-03    2.5848       -.68082E-06** at limit **
   8  norm          14.826        10.881       -.13590E-06   -.13340E-04
   9  Prefactor     .10000E-03    68.486        .64273E-04** at limit **
  10  Prefactor     .10000E-03    23.044        .69832E-06** at limit **
  11  Prefactor     47.398        81.448        .20560E-04   -.34777E-05
  12  Prefactor     21.329        16.901       -.36795E-05   -.87391E-05
  13  norm          1.3194        1.0893        .33484E-07   -.26773E-03
  14  norm          .10000E-03    3.2032        .24183E-07** at limit **
  15  Prefactor     .10000E-03    5.0751        .54555E-07** at limit **
  16  Prefactor     .10000E-03    21.711        .22288E-06** at limit **
  17  norm          .10000E-03    6.1301       -.16927E-06** at limit **
  18  Prefactor     .10000E-03    135.77       -.50929E-04** at limit **
  19  Prefactor     .10000E-03    4.4488        .29126E-07** at limit **
  20  Prefactor     20.449        21.428       -.11140E-06   -.20902E-04
  21  norm          15.406        17.964       -.39684E-08    .83602E-05
  22  Prefactor     54.589        64.418       -.41723E-05   -.62698E-07
  23  Prefactor     .10000E-03    2.8677        .42045E-07** at limit **
  24  Prefactor     24.167        24.786       -.40554E-09    .34163E-05
  25  Prefactor     20.729        21.840        .33671E-07    .14404E-04
  26  Prefactor     .10000E-03    22.965        .51420E-06** at limit **
  27  Prefactor     .10000E-03    7.2031        .20730E-06** at limit **
  28  Normalizat    .87700        .22941       -.20503E-05    .90305E-04
  29  Prefactor     .95972        .16052        .33151E-06   -.53749E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.4532
  Prefactor  = 56.754
  Prefactor  = 0.000100004
  Prefactor  = 9.4087
  norm       = 2.60261
  Prefactor  = 9.23886
  norm       = 0.000100001
  norm       = 14.8257
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 47.3976
  Prefactor  = 21.3289
  norm       = 1.31944
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.4488
  norm       = 15.4064
  Prefactor  = 54.5888
  Prefactor  = 0.0001
  Prefactor  = 24.1674
  Prefactor  = 20.729
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.877
  Prefactor  = 0.959715
 **********
 **   18 **HESSE 
 **********

 FCN=   4910.441     FROM HESSE     STATUS=OK           549 CALLS     4231 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.453        13.667        .88564E-04   -1.4803    
   2  Prefactor     56.754        70.721        .53245E-04   -1.4200    
   3  Prefactor     .10000E-03    53.621        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.4087        7.8916        .13065E-03   -1.5094    
   5  norm          2.6026        3.4074        .13917E-03   -1.5385    
   6  Prefactor     9.2389        13.389        .13185E-03   -1.5100    
   7  norm          .10000E-03    2.6028        .10970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          14.826        10.884        .10402E-03   -1.4938    
   9  Prefactor     .10000E-03    68.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    23.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     47.398        81.640        .58253E-04   -1.4330    
  12  Prefactor     21.329        16.901        .86727E-04   -1.4784    
  13  norm          1.3194        1.0715        .63269E-04   -1.5478    
  14  norm          .10000E-03    3.2252        .12233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.1350        .15415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    21.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    6.1814        .16938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    135.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.4564        .14429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     20.449        21.427        .88574E-04   -1.4803    
  21  norm          15.406        17.931        .10204E-03   -1.4923    
  22  Prefactor     54.589        64.488        .54287E-04   -1.4229    
  23  Prefactor     .10000E-03    2.9020        .11565E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     24.167        24.790        .81482E-04   -1.4724    
  25  Prefactor     20.729        21.852        .87973E-04   -1.4797    
  26  Prefactor     .10000E-03    23.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    7.2593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .87700        .27221        .29942E-03   -.97273    
  29  Prefactor     .95972        .19103        .20982E-03   -.94085    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.90629e-10
Minuit parameter uncertainties:
  1  13.6693
  2  70.8262
  3  0.000905713
  4  7.89247
  5  3.40765
  6  13.3933
  7  0.0001096
  8  10.8858
  9  0.00034401
  10  1.45405e-05
  11  81.8334
  12  16.9051
  13  1.07153
  14  9.37144e-06
  15  4.07881e-06
  16  5.77154e-06
  17  8.89883e-06
  18  4.28735e-05
  19  4.81335e-06
  20  21.4348
  21  17.937
  22  64.5711
  23  7.86888e-06
  24  24.8007
  25  21.8603
  26  5.36662e-06
  27  4.39231e-07
  28  0.272636
  29  0.191162
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.541e+01  1.794e+01  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:  9.597e-01  1.912e-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:  8.770e-01  2.726e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.37
Ra Dec: 353.869 -1.476
Photon Index (Fixed Index): 2.50 +/- 0.00
Photon Flux (Fixed Index): 1.90e-08 +/- 2.21e-08
Energy Flux (Fixed Index): 7.89e-06 +/- 9.18e-06

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

Saving results to:
/scratch/kocevski/31448/likelihoodResults_380073601_380332801_4FGL_J2335.4-0128_daily_bin543.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) = 4909.96604236
delta logL = 0.475116119395

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4909.8838845
delta logL = 0.557273985683

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    24.475       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4369       1.0000          .0000       5.0000    
     3 'Normalizat'    .89012       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95309       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=   4909.884     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      240 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          24.481        24.768        .40485E-03   -.25829E-04
   2  alpha         1.4371        .91603        .25983E-01   -.27661E-05
   3  Normalizat    .89003        .25702        .29737E-03   -.24521E-03
   4  Prefactor     .95314        .18903        .21034E-03   -.29448E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 24.4807
  alpha      = 1.43713
  Normalizat = 0.890029
  Prefactor  = 0.953139
 **********
 **   18 **HESSE 
 **********

 FCN=   4909.884     FROM HESSE     STATUS=OK            25 CALLS      265 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          24.481        24.904        .80970E-04   -1.4718    
   2  alpha         1.4371        .92092        .10393E-02   -.43913    
   3  Normalizat    .89003        .25725        .11895E-04   -.96811    
   4  Prefactor     .95314        .18920        .42067E-04   -.94308    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15144e-10
Minuit parameter uncertainties:
  1  24.9146
  2  0.948451
  3  0.257603
  4  0.189332
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31448': 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) = 4909.88388438
delta logL = 0.557274105204

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  2.448e+01  2.491e+01  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  1.437e+00  9.485e-01  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:  9.531e-01  1.893e-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:  8.900e-01  2.576e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.49
Ra Dec: 353.869 -1.476
Photon Index (Free Index): 1.44 +/- 0.95
Photon Flux (Free Index): 1.01e-08 +/- 1.21e-08
Energy Flux (Free Index): 1.44e-05 +/- 1.74e-05

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/31448/cmap_HighResolution_380073601_380332801_4FGL_J2335.4-0128_daily_bin543.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.38e-05', comment='SUCCESS', photon_flux='1.90e-08', energy_flux2='1.44e-05', photon_flux_error='2.21e-08', dlogl='5.57e-01', energy_flux='7.89e-06', photon_flux2='1.01e-08', job_status='DONE', time_completed='2021-09-30 00:28:31.567477', photon_index_error2='0.95', photon_index2='1.44', ts='1.37', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='8.15e-08', energy_flux_error2='1.74e-05', EG='0.88', time_epoch_completed='1632986911.57', return_code='0', job_id='31448', GAL2='0.95', EG2='0.89', return_code2='0', energy_flux_error='9.18e-06', photon_flux_error2='1.21e-08', ts2='2.49', photon_index='2.50' WHERE bin_id='543' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:28:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 31448: <4FGL_J2335.4-0128_daily_bin543> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin543> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep 30 00:15:35 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:15:37 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:15:37 2021
Terminated at Thu Sep 30 00:28:32 2021
Results reported at Thu Sep 30 00:28:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin543 353.869 -1.476 380073601 380332801 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 :                                   659.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             298.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            777 sec.

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

