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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin613
RA = 353.869, Dec = -1.476
tmin = 398217601, tmax = 398476801
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='31560', job_status='RUN', time_executed='2021-09-30 00:17:17.439141', time_epoch_executed='1632986237.44' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='613'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31560

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31560/ft1_4FGL_J2335.4-0128_daily_bin613.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31560/ft2_4FGL_J2335.4-0128_daily_bin613.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31560/ft1_4FGL_J2335.4-0128_daily_bin613.fits outfile=/scratch/kocevski/31560/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin613.fits ra=353.869 dec=-1.476 rad=12.0 tmin=398217601.0 tmax=398476801.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 6.58
user 6.28
sys 0.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/31560/ft1_filtered_4FGL_J2335.4-0128_daily_bin613.fits" evtable="EVENTS" scfile=/scratch/kocevski/31560/ft2_4FGL_J2335.4-0128_daily_bin613.fits sctable="SC_DATA" outfile=/scratch/kocevski/31560/ltcube_398217601_398476801_4FGL_J2335.4-0128_daily_bin613.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/31560/ft2_4FGL_J2335.4-0128_daily_bin613.fits
.....................!
real 10.81
user 10.42
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31560/ft1_filtered_4FGL_J2335.4-0128_daily_bin613.fits evtable="EVENTS" scfile=/scratch/kocevski/31560/ft2_4FGL_J2335.4-0128_daily_bin613.fits sctable="SC_DATA" expcube=/scratch/kocevski/31560/ltcube_398217601_398476801_4FGL_J2335.4-0128_daily_bin613.fits outfile=/scratch/kocevski/31560/expmap_398217601_398476801_4FGL_J2335.4-0128_daily_bin613.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/31560/ltcube_398217601_398476801_4FGL_J2335.4-0128_daily_bin613.fits
.....................!
real 190.78
user 185.06
sys 5.35

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/31560/ft1_filtered_4FGL_J2335.4-0128_daily_bin613.fits scfile=/scratch/kocevski/31560/ft2_4FGL_J2335.4-0128_daily_bin613.fits outfile=/scratch/kocevski/31560/cmap_398217601_398476801_4FGL_J2335.4-0128_daily_bin613.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/31560/ft1_filtered_4FGL_J2335.4-0128_daily_bin613.fits scfile=/scratch/kocevski/31560/ft2_4FGL_J2335.4-0128_daily_bin613.fits outfile=/scratch/kocevski/31560/cmap_HighResolution_398217601_398476801_4FGL_J2335.4-0128_daily_bin613.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/31560/ft1_filtered_4FGL_J2335.4-0128_daily_bin613.fits evtable="EVENTS" scfile=/scratch/kocevski/31560/ft2_4FGL_J2335.4-0128_daily_bin613.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/31560/Model_4FGL_J2335.4-0128_daily_bin613.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/31560/ft1_filtered_4FGL_J2335.4-0128_daily_bin613.fits.....................!
real 63.39
user 61.99
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.037       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    46.969       1.0000         .10000E-03   10000.    
     9 'Prefactor '    75.164       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.3516       1.0000         .10000E-03   10000.    
    14 'norm      '    7.3617       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.7700       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10128E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    119.15       1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.812       1.0000         .10000E-03   10000.    
    20 'Prefactor '    27.605       1.0000         .10000E-03   10000.    
    21 'norm      '    .10154E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10537E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    63.775       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    10.430       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .91153       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .90700       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=   6383.413     FROM MIGRAD    STATUS=CONVERGED    687 CALLS     3608 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.035        12.670       -.51341E-07   -.24823E-04
   2  Prefactor     .10000E-03    39.293        .14537E-05** at limit **
   3  Prefactor     .10000E-03    8.1235       -.30580E-05** at limit **
   4  Prefactor     .10000E-03    3.1967       -.13682E-07** at limit **
   5  norm          .10000E-03    .94632       -.36277E-09** at limit **
   6  Prefactor     .10000E-03    9.2781        .16677E-05** at limit **
   7  norm          .10000E-03    1.9312       -.31351E-07** at limit **
   8  norm          46.969        15.915       -.21613E-06    .13831E-05
   9  Prefactor     75.161        41.869       -.24757E-05    .26413E-05
  10  Prefactor     .10000E-03    5.8634        .92968E-06** at limit **
  11  Prefactor     .10000E-03    17.858        .50648E-05** at limit **
  12  Prefactor     .10000E-03    4.7350       -.52121E-06** at limit **
  13  norm          6.3516        1.5580        .73867E-07   -.13905E-03
  14  norm          7.3616        6.7421       -.19870E-06   -.15219E-03
  15  Prefactor     7.7668        8.1708       -.85934E-06   -.18385E-02
  16  Prefactor     .10000E-03    16.150       -.12985E-05** at limit **
  17  norm          .10000E-03    4.0863        .42490E-06** at limit **
  18  Prefactor     119.12        189.09       -.22688E-04   -.15513E-05
  19  Prefactor     17.818        14.169       -.59547E-07   -.59571E-04
  20  Prefactor     27.596        27.439       -.84224E-05    .14900E-05
  21  norm          .10000E-03    10.382        .30579E-05** at limit **
  22  Prefactor     .10000E-03    39.707       -.19319E-05** at limit **
  23  Prefactor     .10000E-03    3.4580       -.13917E-07** at limit **
  24  Prefactor     63.783        46.603        .74184E-05    .18085E-04
  25  Prefactor     .10000E-03    13.595       -.32795E-05** at limit **
  26  Prefactor     .10000E-03    15.593       -.25044E-05** at limit **
  27  Prefactor     10.430        9.1359       -.18124E-06   -.35154E-04
  28  Normalizat    .91125        .20764        .42915E-06    .46238E-04
  29  Prefactor     .90721        .14303        .87690E-06    .12472E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.0349
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 46.9691
  Prefactor  = 75.1613
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.35157
  norm       = 7.36165
  Prefactor  = 7.76685
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 119.124
  Prefactor  = 17.8175
  Prefactor  = 27.5956
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 63.7826
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.4305
  Normalizat = 0.911253
  Prefactor  = 0.907207
 **********
 **   18 **HESSE 
 **********

 FCN=   6383.413     FROM HESSE     STATUS=OK           547 CALLS     4155 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.035        12.673        .10691E-03   -1.4959    
   2  Prefactor     .10000E-03    39.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.1329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.2179        .13949E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .95174        .75886E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.2830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.9489        .10841E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          46.969        15.930        .58506E-04   -1.4336    
   9  Prefactor     75.161        41.828        .46313E-04   -1.3972    
  10  Prefactor     .10000E-03    5.8702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    17.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.7490        .16950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.3516        1.5581        .45427E-04   -1.5204    
  14  norm          7.3616        6.7318        .14782E-03   -1.5165    
  15  Prefactor     7.7668        8.4865        .71927E-03   -1.5151    
  16  Prefactor     .10000E-03    16.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.1150        .15777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     119.12        188.10        .18433E-03   -1.3521    
  19  Prefactor     17.818        14.168        .94899E-04   -1.4863    
  20  Prefactor     27.596        26.774        .76250E-04   -1.4657    
  21  norm          .10000E-03    10.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    39.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.4914        .14471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     63.783        46.373        .50250E-04   -1.4109    
  25  Prefactor     .10000E-03    13.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    15.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     10.430        9.1438        .12407E-03   -1.5062    
  28  Normalizat    .91125        .24002        .31192E-03   -.96066    
  29  Prefactor     .90721        .16559        .22289E-03   -.95890    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.2085e-09
Minuit parameter uncertainties:
  1  12.6753
  2  1.57368e-05
  3  5.88453e-06
  4  3.15189e-06
  5  1.14961e-06
  6  4.40872e-06
  7  2.40196e-06
  8  15.9313
  9  41.844
  10  9.38134e-07
  11  3.13965e-06
  12  3.7434e-07
  13  1.55808
  14  6.73246
  15  8.48779
  16  1.24303e-05
  17  3.6448e-05
  18  189.056
  19  14.1704
  20  26.7853
  21  4.97355e-07
  22  4.5142e-06
  23  8.88286e-06
  24  46.3996
  25  1.25153e-05
  26  2.93539e-05
  27  9.14502
  28  0.240305
  29  0.165683
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  9.072e-01  1.657e-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.113e-01  2.403e-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: 5.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.28e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/31560/likelihoodResults_398217601_398476801_4FGL_J2335.4-0128_daily_bin613.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) = 6383.41343865
delta logL = -0.000459167714325

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6383.01847801
delta logL = 0.394501477692

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .48945       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .83932       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93784       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=   6383.018     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      312 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .48952        .58939        .61471E-04    .13501E-03
   2  alpha         5.0000        .88792        .62337E-01** at limit **
   3  Normalizat    .83930        .24032        .32294E-03    .33373E-04
   4  Prefactor     .93784        .16710        .21944E-03   -.81495E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.489518
  alpha      = 5
  Normalizat = 0.839303
  Prefactor  = 0.937836
 **********
 **   18 **HESSE 
 **********

 FCN=   6383.018     FROM HESSE     STATUS=OK            23 CALLS      335 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .48952        .58741        .24588E-05   -1.5568    
   2  alpha         5.0000        .88751        .12467E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .83930        .24048        .12918E-04   -.98627    
   4  Prefactor     .93784        .16723        .87774E-05   -.94831    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.02058e-11
Minuit parameter uncertainties:
  1  0.587418
  2  5.70553e-06
  3  0.240788
  4  0.167324
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31560': 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) = 6383.01847799
delta logL = 0.394501492324

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  4.895e-01  5.874e-01  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  5.000e+00  5.706e-06  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.378e-01  1.673e-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.393e-01  2.408e-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/31560/cmap_HighResolution_398217601_398476801_4FGL_J2335.4-0128_daily_bin613.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.28e-05', job_status='DONE', photon_flux_upper_limit='5.48e-08', time_completed='2021-09-30 00:30:22.546800', job_id='31560', GAL2='0.94', fit_tolerance='1e-08', EG2='0.84', EG='0.91', time_epoch_completed='1632987022.55', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='3.95e-01', ts2='0.87', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='613' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:30:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0137>
Subject: Job 31560: <4FGL_J2335.4-0128_daily_bin613> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin613 353.869 -1.476 398217601 398476801 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 :                                   783.45 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             318.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            878 sec.

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

