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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin816
RA = 353.869, Dec = -1.476
tmin = 450835201, tmax = 451094401
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='32888', job_status='RUN', time_executed='2021-09-30 00:23:05.631125', time_epoch_executed='1632986585.63' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='816'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/32888

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/32888/ft1_4FGL_J2335.4-0128_daily_bin816.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/32888/ft2_4FGL_J2335.4-0128_daily_bin816.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/32888/ft1_4FGL_J2335.4-0128_daily_bin816.fits outfile=/scratch/kocevski/32888/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin816.fits ra=353.869 dec=-1.476 rad=12.0 tmin=450835201.0 tmax=451094401.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.40
user 3.17
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/32888/ft1_filtered_4FGL_J2335.4-0128_daily_bin816.fits" evtable="EVENTS" scfile=/scratch/kocevski/32888/ft2_4FGL_J2335.4-0128_daily_bin816.fits sctable="SC_DATA" outfile=/scratch/kocevski/32888/ltcube_450835201_451094401_4FGL_J2335.4-0128_daily_bin816.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/32888/ft2_4FGL_J2335.4-0128_daily_bin816.fits
.....................!
real 13.68
user 13.32
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/32888/ft1_filtered_4FGL_J2335.4-0128_daily_bin816.fits evtable="EVENTS" scfile=/scratch/kocevski/32888/ft2_4FGL_J2335.4-0128_daily_bin816.fits sctable="SC_DATA" expcube=/scratch/kocevski/32888/ltcube_450835201_451094401_4FGL_J2335.4-0128_daily_bin816.fits outfile=/scratch/kocevski/32888/expmap_450835201_451094401_4FGL_J2335.4-0128_daily_bin816.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/32888/ltcube_450835201_451094401_4FGL_J2335.4-0128_daily_bin816.fits
.....................!
real 190.67
user 185.89
sys 4.43

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/32888/ft1_filtered_4FGL_J2335.4-0128_daily_bin816.fits scfile=/scratch/kocevski/32888/ft2_4FGL_J2335.4-0128_daily_bin816.fits outfile=/scratch/kocevski/32888/cmap_450835201_451094401_4FGL_J2335.4-0128_daily_bin816.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/32888/ft1_filtered_4FGL_J2335.4-0128_daily_bin816.fits scfile=/scratch/kocevski/32888/ft2_4FGL_J2335.4-0128_daily_bin816.fits outfile=/scratch/kocevski/32888/cmap_HighResolution_450835201_451094401_4FGL_J2335.4-0128_daily_bin816.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/32888/ft1_filtered_4FGL_J2335.4-0128_daily_bin816.fits evtable="EVENTS" scfile=/scratch/kocevski/32888/ft2_4FGL_J2335.4-0128_daily_bin816.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/32888/Model_4FGL_J2335.4-0128_daily_bin816.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/32888/ft1_filtered_4FGL_J2335.4-0128_daily_bin816.fits.....................!
real 65.32
user 63.92
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.924       1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.813       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.2442       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.6337       1.0000         .10000E-03   10000.    
     5 'norm      '    .72081       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    34.031       1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.503       1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.235       1.0000         .10000E-03   10000.    
    11 'Prefactor '    41.018       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.2289       1.0000         .10000E-03   10000.    
    13 'norm      '    1.4700       1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.0584       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 '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.939       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10096E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.9031       1.0000         .10000E-03   10000.    
    24 'Prefactor '    59.744       1.0000         .10000E-03   10000.    
    25 'Prefactor '    19.988       1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.0845       1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.2714       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .98072       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .98892       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=   6869.537     FROM MIGRAD    STATUS=CONVERGED    715 CALLS     3736 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.923        10.345        .80594E-07    .13282E-04
   2  Prefactor     18.808        38.233       -.54183E-05    .57800E-04
   3  Prefactor     5.2429        19.647        .82767E-06    .37024E-04
   4  Prefactor     6.6250        6.5627        .11856E-05   -.22467E-03
   5  norm          .72130        2.5378       -.17030E-05   -.15099E-02
   6  Prefactor     .10000E-03    13.407       -.13520E-05** at limit **
   7  norm          .10000E-03    2.7203       -.22951E-06** at limit **
   8  norm          34.027        17.295       -.75159E-07   -.36377E-05
   9  Prefactor     23.494        33.012       -.59865E-05    .11008E-03
  10  Prefactor     17.234        16.032        .13194E-06   -.94532E-05
  11  Prefactor     41.010        48.795       -.82003E-05    .12775E-03
  12  Prefactor     8.2284        7.5490        .67618E-06    .23729E-04
  13  norm          1.4696        1.3252       -.41582E-06   -.92833E-03
  14  norm          .10000E-03    1.8478        .45396E-07** at limit **
  15  Prefactor     4.0582        4.0842        .91760E-07    .22076E-03
  16  Prefactor     .10000E-03    15.528        .25501E-05** at limit **
  17  norm          .10000E-03    1.9564       -.22660E-07** at limit **
  18  Prefactor     .10000E-03    119.69       -.13425E-06** at limit **
  19  Prefactor     12.938        17.746        .12310E-05   -.92377E-04
  20  Prefactor     .10000E-03    6.2897       -.36791E-07** at limit **
  21  norm          .10000E-03    19.264       -.19771E-05** at limit **
  22  Prefactor     .10000E-03    32.917        .44386E-06** at limit **
  23  Prefactor     8.9020        6.8542        .14860E-05   -.46118E-03
  24  Prefactor     59.731        49.334       -.10042E-04    .21925E-03
  25  Prefactor     19.978        23.673        .72716E-06    .79039E-05
  26  Prefactor     7.0824        13.613       -.96820E-07   -.34547E-04
  27  Prefactor     8.2695        8.1295       -.52601E-06   -.63076E-04
  28  Normalizat    .98091        .21712        .19328E-05    .62181E-04
  29  Prefactor     .98882        .14411        .72332E-06    .11483E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.923
  Prefactor  = 18.8077
  Prefactor  = 5.24288
  Prefactor  = 6.62501
  norm       = 0.721296
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 34.0268
  Prefactor  = 23.4944
  Prefactor  = 17.2335
  Prefactor  = 41.0097
  Prefactor  = 8.22843
  norm       = 1.4696
  norm       = 0.0001
  Prefactor  = 4.05823
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.9376
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.90204
  Prefactor  = 59.7309
  Prefactor  = 19.9779
  Prefactor  = 7.08242
  Prefactor  = 8.2695
  Normalizat = 0.980912
  Prefactor  = 0.988821
 **********
 **   18 **HESSE 
 **********

 FCN=   6869.537     FROM HESSE     STATUS=OK           557 CALLS     4293 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.923        10.339        .10368E-03   -1.4935    
   2  Prefactor     18.808        38.107        .92340E-04   -1.4840    
   3  Prefactor     5.2429        18.945        .17552E-03   -1.5250    
   4  Prefactor     6.6250        6.5158        .15580E-03   -1.5193    
   5  norm          .72130        2.5685        .21975E-03   -1.5538    
   6  Prefactor     .10000E-03    13.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.7579        .26538E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          34.027        17.320        .68693E-04   -1.4541    
   9  Prefactor     23.494        32.936        .82624E-04   -1.4738    
  10  Prefactor     17.234        16.034        .96473E-04   -1.4877    
  11  Prefactor     41.010        48.515        .62589E-04   -1.4426    
  12  Prefactor     8.2284        7.5390        .13976E-03   -1.5134    
  13  norm          1.4696        1.3113        .82143E-04   -1.5466    
  14  norm          .10000E-03    1.8514        .10999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.0582        4.0923        .16400E-03   -1.5305    
  16  Prefactor     .10000E-03    15.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.9585        .11322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    119.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.938        17.619        .11136E-03   -1.4988    
  20  Prefactor     .10000E-03    6.2947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    19.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    32.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     8.9020        6.7978        .13433E-03   -1.5111    
  24  Prefactor     59.731        48.792        .51907E-04   -1.4161    
  25  Prefactor     19.978        23.672        .89586E-04   -1.4814    
  26  Prefactor     7.0824        13.608        .15071E-03   -1.5176    
  27  Prefactor     8.2695        8.1596        .13940E-03   -1.5133    
  28  Normalizat    .98091        .25318        .31144E-03   -.93673    
  29  Prefactor     .98882        .16730        .22535E-03   -.93103    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8045e-09
Minuit parameter uncertainties:
  1  10.3402
  2  38.156
  3  18.9664
  4  6.51647
  5  2.56891
  6  1.85024e-05
  7  2.58328e-05
  8  17.3228
  9  32.961
  10  16.0383
  11  48.5617
  12  7.53991
  13  1.31134
  14  2.37028e-06
  15  4.09262
  16  8.21592e-05
  17  1.32901e-07
  18  0.000112637
  19  17.6262
  20  1.46342e-06
  21  7.15123e-05
  22  4.07714e-05
  23  6.79843
  24  48.8243
  25  23.6827
  26  13.6141
  27  8.16073
  28  0.253494
  29  0.167383
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  7.151e-05  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.888e-01  1.674e-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.809e-01  2.535e-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.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.80e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/32888/likelihoodResults_450835201_451094401_4FGL_J2335.4-0128_daily_bin816.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) = 6869.53754568
delta logL = -0.000246609863098

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6869.5372992
delta logL = -1.33330104291e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4755       1.0000          .0000       5.0000    
     3 'Normalizat'    .98094       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98883       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.

 FCN=   6869.537     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      195 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    22.065        .90712E-02** at limit **
   2  alpha         2.4965        3.6008        .41154       -.58138E-05
   3  Normalizat    .98091        .19397        .70395E-01    .39252E-04
   4  Prefactor     .98882        .14167        .46127E-01    .32970E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 2.49648
  Normalizat = 0.980913
  Prefactor  = 0.98882
 **********
 **   18 **HESSE 
 **********

 FCN=   6869.537     FROM HESSE     STATUS=OK            33 CALLS      228 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    19.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4965        3.5547        .50000       -.14073E-02
   3  Normalizat    .98091        .22337        .31144E-03   -.93673    
   4  Prefactor     .98882        .16336        .22535E-03   -.93103    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.84644e-11
Minuit parameter uncertainties:
  1  0.000247236
  2  2.51368
  3  0.223579
  4  0.163444
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/32888': 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) = 6869.53729909
delta logL = -1.95050233742e-08

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  2.472e-04  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  2.496e+00  2.514e+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:  9.888e-01  1.634e-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.809e-01  2.236e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/32888/cmap_HighResolution_450835201_451094401_4FGL_J2335.4-0128_daily_bin816.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.80e-05', job_status='DONE', photon_flux_upper_limit='6.76e-08', time_completed='2021-09-30 00:36:35.233769', job_id='32888', GAL2='0.99', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1632987395.23', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='-1.95e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='816' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:36:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 32888: <4FGL_J2335.4-0128_daily_bin816> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin816> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 00:20:27 2021
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:20:29 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:29 2021
Terminated at Thu Sep 30 00:36:36 2021
Results reported at Thu Sep 30 00:36:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin816 353.869 -1.476 450835201 451094401 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 :                                   808.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             267.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   966 sec.
    Turnaround time :                            969 sec.

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

