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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin508
RA = 353.869, Dec = -1.476
tmin = 371001601, tmax = 371260801
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='31393', job_status='RUN', time_executed='2021-09-30 00:17:38.827099', time_epoch_executed='1632986258.83' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='508'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31393

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31393/ft1_4FGL_J2335.4-0128_daily_bin508.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31393/ft2_4FGL_J2335.4-0128_daily_bin508.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31393/ft1_4FGL_J2335.4-0128_daily_bin508.fits outfile=/scratch/kocevski/31393/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin508.fits ra=353.869 dec=-1.476 rad=12.0 tmin=371001601.0 tmax=371260801.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.54
user 6.25
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/31393/ft1_filtered_4FGL_J2335.4-0128_daily_bin508.fits" evtable="EVENTS" scfile=/scratch/kocevski/31393/ft2_4FGL_J2335.4-0128_daily_bin508.fits sctable="SC_DATA" outfile=/scratch/kocevski/31393/ltcube_371001601_371260801_4FGL_J2335.4-0128_daily_bin508.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/31393/ft2_4FGL_J2335.4-0128_daily_bin508.fits
.....................!
real 11.65
user 11.29
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31393/ft1_filtered_4FGL_J2335.4-0128_daily_bin508.fits evtable="EVENTS" scfile=/scratch/kocevski/31393/ft2_4FGL_J2335.4-0128_daily_bin508.fits sctable="SC_DATA" expcube=/scratch/kocevski/31393/ltcube_371001601_371260801_4FGL_J2335.4-0128_daily_bin508.fits outfile=/scratch/kocevski/31393/expmap_371001601_371260801_4FGL_J2335.4-0128_daily_bin508.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/31393/ltcube_371001601_371260801_4FGL_J2335.4-0128_daily_bin508.fits
.....................!
real 190.37
user 185.16
sys 4.86

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/31393/ft1_filtered_4FGL_J2335.4-0128_daily_bin508.fits scfile=/scratch/kocevski/31393/ft2_4FGL_J2335.4-0128_daily_bin508.fits outfile=/scratch/kocevski/31393/cmap_371001601_371260801_4FGL_J2335.4-0128_daily_bin508.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/31393/ft1_filtered_4FGL_J2335.4-0128_daily_bin508.fits scfile=/scratch/kocevski/31393/ft2_4FGL_J2335.4-0128_daily_bin508.fits outfile=/scratch/kocevski/31393/cmap_HighResolution_371001601_371260801_4FGL_J2335.4-0128_daily_bin508.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/31393/ft1_filtered_4FGL_J2335.4-0128_daily_bin508.fits evtable="EVENTS" scfile=/scratch/kocevski/31393/ft2_4FGL_J2335.4-0128_daily_bin508.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/31393/Model_4FGL_J2335.4-0128_daily_bin508.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/31393/ft1_filtered_4FGL_J2335.4-0128_daily_bin508.fits.....................!
real 52.12
user 50.73
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.188       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .86867E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.3897       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    8.9872       1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    78.939       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.1933       1.0000         .10000E-03   10000.    
    11 'Prefactor '    79.079       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .15038E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.3092       1.0000         .10000E-03   10000.    
    14 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11180E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    28.780       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.118       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .98085       1.0000         .10000E-03   10000.    
    21 'norm      '    7.9752       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.7673       1.0000         .10000E-03   10000.    
    24 'Prefactor '    93.993       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    18.902       1.0000         .10000E-03   10000.    
    27 'Prefactor '    15.308       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0309       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .72830       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=   4834.731     FROM MIGRAD    STATUS=CONVERGED    731 CALLS     3844 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.180        15.183        .14811E-07    .53081E-04
   2  Prefactor     .10000E-03    35.198       -.12440E-06** at limit **
   3  Prefactor     .10007E-03    35.108        .80771E-05** at limit **
   4  Prefactor     .10000E-03    14.364       -.27105E-06** at limit **
   5  norm          7.3879        4.2010        .17177E-06    .62462E-03
   6  Prefactor     .10000E-03    25.144       -.27092E-06** at limit **
   7  norm          8.9858        5.8866       -.21326E-07    .26666E-03
   8  norm          .10000E-03    4.9897       -.16436E-06** at limit **
   9  Prefactor     78.876        51.040       -.14502E-05    .65931E-04
  10  Prefactor     8.1996        20.554        .25014E-06    .45606E-04
  11  Prefactor     79.012        61.163       -.73411E-06    .14180E-04
  12  Prefactor     .10000E-03    38.317       -.10876E-04** at limit **
  13  norm          1.3087        1.1281        .42842E-07    .21713E-03
  14  norm          .10000E-03    7.3560       -.42325E-06** at limit **
  15  Prefactor     .10000E-03    10.989        .55930E-07** at limit **
  16  Prefactor     .10000E-03    50.754       -.55533E-06** at limit **
  17  norm          28.781        13.476       -.28942E-07    .30039E-03
  18  Prefactor     .10000E-03    132.39        .29872E-06** at limit **
  19  Prefactor     12.122        23.230        .10248E-05    .26421E-04
  20  Prefactor     .86550        56.534        .10620E-04   -.49606E-04
  21  norm          7.9940        29.274        .26243E-06    .95463E-05
  22  Prefactor     .10000E-03    31.676        .15023E-06** at limit **
  23  Prefactor     3.7604        8.2822       -.14658E-05    .17672E-03
  24  Prefactor     93.988        45.268        .42369E-07    .79185E-04
  25  Prefactor     .10000E-03    7.9568       -.15043E-06** at limit **
  26  Prefactor     18.904        21.461        .19255E-06    .68041E-04
  27  Prefactor     15.311        11.249        .53626E-07    .47046E-04
  28  Normalizat    1.0310        .24282       -.16664E-05    .14041E-03
  29  Prefactor     .72821        .15043        .22164E-05    .42746E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.1801
  Prefactor  = 0.0001
  Prefactor  = 0.000100065
  Prefactor  = 0.0001
  norm       = 7.3879
  Prefactor  = 0.0001
  norm       = 8.98578
  norm       = 0.0001
  Prefactor  = 78.8762
  Prefactor  = 8.1996
  Prefactor  = 79.0117
  Prefactor  = 0.000100005
  norm       = 1.3087
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 28.7814
  Prefactor  = 0.0001
  Prefactor  = 12.1219
  Prefactor  = 0.8655
  norm       = 7.99398
  Prefactor  = 0.0001
  Prefactor  = 3.76041
  Prefactor  = 93.9879
  Prefactor  = 0.0001
  Prefactor  = 18.9037
  Prefactor  = 15.311
  Normalizat = 1.03101
  Prefactor  = 0.72821
 **********
 **   18 **HESSE 
 **********

 FCN=   4834.731     FROM HESSE     STATUS=OK           559 CALLS     4403 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.180        15.179        .87016E-04   -1.4787    
   2  Prefactor     .10000E-03    35.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10007E-03    138.23        .49084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.588        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.3879        3.9274        .47004E-03   -1.5164    
   6  Prefactor     .10000E-03    25.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          8.9858        5.8529        .64318E-03   -1.5108    
   8  norm          .10000E-03    4.9986        .15174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     78.876        50.923        .22600E-03   -1.3929    
  10  Prefactor     8.1996        20.610        .14006E-03   -1.5135    
  11  Prefactor     79.012        62.827        .22580E-03   -1.3928    
  12  Prefactor     .10000E-03    52.471        .37826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.3087        1.1071        .64068E-04   -1.5479    
  14  norm          .10000E-03    7.5733        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    50.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          28.781        13.467        .74680E-04   -1.4634    
  18  Prefactor     .10000E-03    132.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.122        23.035        .11507E-03   -1.5011    
  20  Prefactor     .86550        217.99        .59021E-02   -1.5522    
  21  norm          7.9940        29.036        .14198E-03   -1.5142    
  22  Prefactor     .10000E-03    31.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.7604        8.5251        .10400E-02   -1.5320    
  24  Prefactor     93.988        45.278        .41454E-04   -1.3766    
  25  Prefactor     .10000E-03    7.9714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     18.904        21.473        .92124E-04   -1.4838    
  27  Prefactor     15.311        11.261        .10237E-03   -1.4925    
  28  Normalizat    1.0310        .28174        .28029E-03   -.91999    
  29  Prefactor     .72821        .17581        .23060E-03   -1.0243    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40732e-09
Minuit parameter uncertainties:
  1  15.182
  2  3.59843e-05
  3  0.00601084
  4  7.04224e-05
  5  3.92749
  6  3.45459e-05
  7  5.85331
  8  2.42224e-05
  9  50.9512
  10  20.6277
  11  62.8798
  12  0.000973062
  13  1.10715
  14  5.27437e-05
  15  8.81372e-06
  16  9.13901e-05
  17  13.468
  18  9.57749e-05
  19  23.0514
  20  27.5719
  21  29.0876
  22  7.37667e-05
  23  8.52787
  24  45.2947
  25  3.25362e-05
  26  21.4819
  27  11.2627
  28  0.282148
  29  0.17594
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  7.994e+00  2.909e+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:  7.282e-01  1.759e-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:  1.031e+00  2.821e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/31393/likelihoodResults_371001601_371260801_4FGL_J2335.4-0128_daily_bin508.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) = 4833.9897118
delta logL = 0.741323728839

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4833.98342413
delta logL = 0.747611394147

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .77586       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .92065       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77698       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4833.983     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      390 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .77521        .67945        .49168E-04   -.73991E-05
   2  alpha         5.0000        3.1393        .48965E-01** at limit **
   3  Normalizat    .92074        .25778        .29401E-03    .12799E-04
   4  Prefactor     .77684        .17608        .22386E-03   -.14677E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.775214
  alpha      = 5
  Normalizat = 0.920735
  Prefactor  = 0.776842
 **********
 **   18 **HESSE 
 **********

 FCN=   4833.983     FROM HESSE     STATUS=OK            23 CALLS      413 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .77521        .67349        .19667E-05   -1.5532    
   2  alpha         5.0000        3.1393        .97930E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .92074        .25797        .11761E-04   -.95735    
   4  Prefactor     .77684        .17622        .89544E-05   -1.0059    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12299e-09
Minuit parameter uncertainties:
  1  0.673492
  2  9.40079e-05
  3  0.258315
  4  0.176351
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31393': 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) = 4833.98342178
delta logL = 0.747613744421

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  7.752e-01  6.735e-01  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  5.000e+00  9.401e-05  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:  7.768e-01  1.764e-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.207e-01  2.583e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.81
Ra Dec: 353.869 -1.476
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.07e-07 +/- 9.30e-08
Energy Flux (Free Index): 1.62e-05 +/- 1.41e-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/31393/cmap_HighResolution_371001601_371260801_4FGL_J2335.4-0128_daily_bin508.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.64e-05', comment='SUCCESS', energy_flux2='1.62e-05', dlogl='7.48e-01', photon_flux2='1.07e-07', job_status='DONE', time_completed='2021-09-30 00:29:23.759404', photon_index_error2='0.00', photon_index2='5.00', ts='0.15', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', photon_flux_upper_limit='8.76e-08', energy_flux_error2='1.41e-05', EG='1.03', time_epoch_completed='1632986963.76', return_code='0', job_id='31393', GAL2='0.78', EG2='0.92', return_code2='0', photon_flux_error2='9.30e-08', ts2='1.81', photon_index='2.50' WHERE bin_id='508' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:29:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 31393: <4FGL_J2335.4-0128_daily_bin508> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin508 353.869 -1.476 371001601 371260801 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 :                                   701.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   833 sec.
    Turnaround time :                            835 sec.

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

