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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin811
RA = 353.869, Dec = -1.476
tmin = 449539201, tmax = 449798401
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='32880', job_status='RUN', time_executed='2021-09-30 00:23:12.903100', time_epoch_executed='1632986592.9' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='811'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/32880

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/32880/ft1_4FGL_J2335.4-0128_daily_bin811.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/32880/ft2_4FGL_J2335.4-0128_daily_bin811.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/32880/ft1_4FGL_J2335.4-0128_daily_bin811.fits outfile=/scratch/kocevski/32880/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin811.fits ra=353.869 dec=-1.476 rad=12.0 tmin=449539201.0 tmax=449798401.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 5.62
user 5.36
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/32880/ft2_4FGL_J2335.4-0128_daily_bin811.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/32880/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin811.fits evtable="EVENTS" outfile="/scratch/kocevski/32880/ft1_filtered_4FGL_J2335.4-0128_daily_bin811.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/32880/ft1_filtered_4FGL_J2335.4-0128_daily_bin811.fits" evtable="EVENTS" scfile=/scratch/kocevski/32880/ft2_4FGL_J2335.4-0128_daily_bin811.fits sctable="SC_DATA" outfile=/scratch/kocevski/32880/ltcube_449539201_449798401_4FGL_J2335.4-0128_daily_bin811.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/32880/ft2_4FGL_J2335.4-0128_daily_bin811.fits
.....................!
real 12.05
user 11.67
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/32880/ft1_filtered_4FGL_J2335.4-0128_daily_bin811.fits evtable="EVENTS" scfile=/scratch/kocevski/32880/ft2_4FGL_J2335.4-0128_daily_bin811.fits sctable="SC_DATA" expcube=/scratch/kocevski/32880/ltcube_449539201_449798401_4FGL_J2335.4-0128_daily_bin811.fits outfile=/scratch/kocevski/32880/expmap_449539201_449798401_4FGL_J2335.4-0128_daily_bin811.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/32880/ltcube_449539201_449798401_4FGL_J2335.4-0128_daily_bin811.fits
.....................!
real 190.94
user 185.44
sys 5.17

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/32880/ft1_filtered_4FGL_J2335.4-0128_daily_bin811.fits scfile=/scratch/kocevski/32880/ft2_4FGL_J2335.4-0128_daily_bin811.fits outfile=/scratch/kocevski/32880/cmap_449539201_449798401_4FGL_J2335.4-0128_daily_bin811.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/32880/ft1_filtered_4FGL_J2335.4-0128_daily_bin811.fits scfile=/scratch/kocevski/32880/ft2_4FGL_J2335.4-0128_daily_bin811.fits outfile=/scratch/kocevski/32880/cmap_HighResolution_449539201_449798401_4FGL_J2335.4-0128_daily_bin811.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/32880/ft1_filtered_4FGL_J2335.4-0128_daily_bin811.fits evtable="EVENTS" scfile=/scratch/kocevski/32880/ft2_4FGL_J2335.4-0128_daily_bin811.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/32880/Model_4FGL_J2335.4-0128_daily_bin811.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/32880/ft1_filtered_4FGL_J2335.4-0128_daily_bin811.fits.....................!
real 34.24
user 33.03
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10838E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .26200E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    37.022       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11826E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .45799       1.0000         .10000E-03   10000.    
     6 'Prefactor '    48.877       1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    10.408       1.0000         .10000E-03   10000.    
     9 'Prefactor '    54.485       1.0000         .10000E-03   10000.    
    10 'Prefactor '    50.099       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.8819       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.6106       1.0000         .10000E-03   10000.    
    13 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10096E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.699       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .53402E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    31.019       1.0000         .10000E-03   10000.    
    18 'Prefactor '    212.70       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .37695E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    92.587       1.0000         .10000E-03   10000.    
    22 'Prefactor '    202.61       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .32212E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    64.533       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .29933E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    11.951       1.0000         .10000E-03   10000.    
    27 'Prefactor '    13.550       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .41821       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.4121       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5330E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2519.279     FROM MIGRAD    STATUS=CONVERGED    296 CALLS     2967 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.612       -.51015E-05** at limit **
   2  Prefactor     .10000E-03    49.380        .82082E-05** at limit **
   3  Prefactor     36.202        28.781        .50742E-05   -.43527E-04
   4  Prefactor     .10000E-03    8.0072        .40571E-05** at limit **
   5  norm          .47629        13.796        .33519E-04    .13134E-03
   6  Prefactor     48.258        34.892        .98710E-05    .12077E-04
   7  norm          .10000E-03    3.2714       -.44126E-05** at limit **
   8  norm          11.392        28.038        .97656E-05   -.19009E-04
   9  Prefactor     55.368        85.304        .57479E-05   -.13836E-04
  10  Prefactor     47.138        40.941       -.21256E-04    .20017E-04
  11  Prefactor     .10000E-03    313.66       -.79345E-04** at limit **
  12  Prefactor     7.3782        22.029        .45825E-04   -.96913E-04
  13  norm          .10000E-03    .86190        .15065E-05** at limit **
  14  norm          .10000E-03    6.2716        .90876E-07** at limit **
  15  Prefactor     14.305        28.053       -.84782E-05   -.17260E-04
  16  Prefactor     .10000E-03    54.542       -.23469E-04** at limit **
  17  norm          31.039        24.006        .56947E-05   -.63529E-04
  18  Prefactor     236.89        427.19        .48032E-04    .59288E-05
  19  Prefactor     .10000E-03    10.968       -.64149E-05** at limit **
  20  Prefactor     .10000E-03    35.528        .21897E-05** at limit **
  21  norm          93.245        58.586        .16105E-05   -.45520E-06
  22  Prefactor     192.89        162.39       -.16544E-04   -.46913E-05
  23  Prefactor     .10000E-03    17.753       -.91263E-05** at limit **
  24  Prefactor     65.925        63.618        .50460E-05    .96718E-05
  25  Prefactor     .10000E-03    16.065       -.90232E-06** at limit **
  26  Prefactor     12.008        30.589       -.86709E-05   -.11408E-04
  27  Prefactor     13.299        16.256        .45998E-05   -.27095E-04
  28  Normalizat    .42515        .43466       -.14537E-04   -.25329E-04
  29  Prefactor     1.4060        .31255        .16475E-04   -.71117E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.2019
  Prefactor  = 0.0001
  norm       = 0.476288
  Prefactor  = 48.2582
  norm       = 0.0001
  norm       = 11.3915
  Prefactor  = 55.3678
  Prefactor  = 47.1375
  Prefactor  = 0.000100001
  Prefactor  = 7.37824
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 14.3054
  Prefactor  = 0.0001
  norm       = 31.0391
  Prefactor  = 236.895
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 93.2446
  Prefactor  = 192.889
  Prefactor  = 0.0001
  Prefactor  = 65.9247
  Prefactor  = 0.0001
  Prefactor  = 12.0075
  Prefactor  = 13.299
  Normalizat = 0.425154
  Prefactor  = 1.40599
 **********
 **   18 **HESSE 
 **********

 FCN=   2519.279     FROM HESSE     STATUS=OK           621 CALLS     3588 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.589        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    49.351        .91533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     36.202        29.209        .16467E-02   -1.4504    
   4  Prefactor     .10000E-03    7.9754        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .47629        7.1988        .38396E-01   -1.5570    
   6  Prefactor     48.258        34.979        .14340E-02   -1.4317    
   7  norm          .10000E-03    3.2706        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          11.392        28.027        .31049E-02   -1.5033    
   9  Prefactor     55.368        85.145        .13585E-02   -1.4218    
  10  Prefactor     47.138        41.042        .14164E-02   -1.4334    
  11  Prefactor     .10000E-03    313.89        .75861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.3782        22.317        .39019E-02   -1.5165    
  13  norm          .10000E-03    .84286        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    6.2414        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.305        27.986        .27055E-02   -1.4951    
  16  Prefactor     .10000E-03    54.512        .95551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          31.039        24.071        .17985E-02   -1.4593    
  18  Prefactor     236.89        424.91        .69308E-03   -1.2617    
  19  Prefactor     .10000E-03    10.904        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    35.546        .97835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          93.245        58.943        .10441E-02   -1.3774    
  22  Prefactor     192.89        163.24        .70977E-03   -1.2921    
  23  Prefactor     .10000E-03    17.169        .10680E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     65.925        63.759        .12489E-02   -1.4082    
  25  Prefactor     .10000E-03    16.047        .10695E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     12.008        30.761        .28970E-02   -1.5015    
  27  Prefactor     13.299        16.321        .27204E-02   -1.4978    
  28  Normalizat    .42515        .43910        .10710       -1.1602    
  29  Prefactor     1.4060        .29542        .46421E-01   -.80208    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.52752e-09
Minuit parameter uncertainties:
  1  1.38569e-05
  2  7.66484e-05
  3  29.2202
  4  1.23582e-05
  5  3.70349
  6  34.9936
  7  6.73496e-06
  8  28.0595
  9  85.3327
  10  41.0667
  11  0.00133782
  12  22.3426
  13  6.15265e-07
  14  2.06042e-06
  15  28.0116
  16  0.000206103
  17  24.0782
  18  430.645
  19  2.06091e-05
  20  4.54505e-05
  21  58.9804
  22  163.629
  23  1.94613e-06
  24  63.8255
  25  8.28449e-06
  26  30.8017
  27  16.3261
  28  0.44273
  29  0.295779
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  9.324e+01  5.898e+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:  1.406e+00  2.958e-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:  4.252e-01  4.427e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.62
Ra Dec: 353.869 -1.476
Photon Index (Fixed Index): 2.50 +/- 0.00
Photon Flux (Fixed Index): 1.15e-07 +/- 7.27e-08
Energy Flux (Fixed Index): 4.77e-05 +/- 3.02e-05

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) = 2519.18604038
delta logL = 0.0924782329303

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2519.18404548
delta logL = 0.0944731247801

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    69.549       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8119       1.0000          .0000       5.0000    
     3 'Normalizat'    .40333       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4161       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=   2519.184     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      286 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          69.554        72.841        .48133E-04   -.33232E-03
   2  alpha         2.8118        .74111        .79767E-02   -.10790E-03
   3  Normalizat    .40296        .39717        .48686E-03    .37490E-04
   4  Prefactor     1.4163        .29968        .20450E-03    .14577E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 69.5541
  alpha      = 2.81178
  Normalizat = 0.402962
  Prefactor  = 1.4163
 **********
 **   18 **HESSE 
 **********

 FCN=   2519.184     FROM HESSE     STATUS=OK            23 CALLS      309 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          69.554        69.149        .96266E-05   -1.4038    
   2  alpha         2.8118        .70426        .31907E-03    .12504    
   3  Normalizat    .40296        .39674        .19475E-04   -1.1715    
   4  Prefactor     1.4163        .29948        .40901E-04   -.79912    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.54119e-10
Minuit parameter uncertainties:
  1  69.2295
  2  0.714085
  3  0.399554
  4  0.299845
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/32880': 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) = 2519.18404493
delta logL = 0.0944736830156

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  6.955e+01  6.923e+01  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  2.812e+00  7.141e-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:  1.416e+00  2.998e-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:  4.030e-01  3.996e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.80
Ra Dec: 353.869 -1.476
Photon Index (Free Index): 2.81 +/- 0.71
Photon Flux (Free Index): 1.37e-07 +/- 9.72e-08
Energy Flux (Free Index): 4.48e-05 +/- 2.79e-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/32880/cmap_HighResolution_449539201_449798401_4FGL_J2335.4-0128_daily_bin811.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.15e-07', energy_flux2='4.48e-05', photon_flux_error='7.27e-08', dlogl='9.45e-02', energy_flux='4.77e-05', photon_flux2='1.37e-07', job_status='DONE', time_completed='2021-09-30 00:30:51.924102', photon_index_error2='0.71', photon_index2='2.81', ts='5.62', fit_tolerance='1e-08', GAL='1.41', photon_index_error='0.00', energy_flux_error2='2.79e-05', EG='0.43', time_epoch_completed='1632987051.92', return_code='0', job_id='32880', GAL2='1.42', EG2='0.40', return_code2='0', energy_flux_error='3.02e-05', photon_flux_error2='9.72e-08', ts2='5.80', photon_index='2.50' WHERE bin_id='811' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:30:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 32880: <4FGL_J2335.4-0128_daily_bin811> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin811> 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) <bullet0206>, 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:30:52 2021
Results reported at Thu Sep 30 00:30:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin811 353.869 -1.476 449539201 449798401 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 :                                   457.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             268.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   623 sec.
    Turnaround time :                            625 sec.

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

