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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin1597
RA = 353.869, Dec = -1.476
tmin = 653270401, tmax = 653529601
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='35617', job_status='RUN', time_executed='2021-09-30 00:33:13.312608', time_epoch_executed='1632987193.31' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='1597'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/35617

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/35617/ft1_4FGL_J2335.4-0128_daily_bin1597.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/35617/ft2_4FGL_J2335.4-0128_daily_bin1597.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/35617/ft1_4FGL_J2335.4-0128_daily_bin1597.fits outfile=/scratch/kocevski/35617/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin1597.fits ra=353.869 dec=-1.476 rad=12.0 tmin=653270401.0 tmax=653529601.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.29
user 3.10
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/35617/ft2_4FGL_J2335.4-0128_daily_bin1597.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/35617/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin1597.fits evtable="EVENTS" outfile="/scratch/kocevski/35617/ft1_filtered_4FGL_J2335.4-0128_daily_bin1597.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.74
user 0.33
sys 0.41

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/35617/ft1_filtered_4FGL_J2335.4-0128_daily_bin1597.fits" evtable="EVENTS" scfile=/scratch/kocevski/35617/ft2_4FGL_J2335.4-0128_daily_bin1597.fits sctable="SC_DATA" outfile=/scratch/kocevski/35617/ltcube_653270401_653529601_4FGL_J2335.4-0128_daily_bin1597.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/35617/ft2_4FGL_J2335.4-0128_daily_bin1597.fits
.....................!
real 12.82
user 12.47
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/35617/ft1_filtered_4FGL_J2335.4-0128_daily_bin1597.fits evtable="EVENTS" scfile=/scratch/kocevski/35617/ft2_4FGL_J2335.4-0128_daily_bin1597.fits sctable="SC_DATA" expcube=/scratch/kocevski/35617/ltcube_653270401_653529601_4FGL_J2335.4-0128_daily_bin1597.fits outfile=/scratch/kocevski/35617/expmap_653270401_653529601_4FGL_J2335.4-0128_daily_bin1597.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/35617/ltcube_653270401_653529601_4FGL_J2335.4-0128_daily_bin1597.fits
.....................!
real 189.65
user 184.60
sys 4.74

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/35617/ft1_filtered_4FGL_J2335.4-0128_daily_bin1597.fits scfile=/scratch/kocevski/35617/ft2_4FGL_J2335.4-0128_daily_bin1597.fits outfile=/scratch/kocevski/35617/cmap_653270401_653529601_4FGL_J2335.4-0128_daily_bin1597.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/35617/ft1_filtered_4FGL_J2335.4-0128_daily_bin1597.fits scfile=/scratch/kocevski/35617/ft2_4FGL_J2335.4-0128_daily_bin1597.fits outfile=/scratch/kocevski/35617/cmap_HighResolution_653270401_653529601_4FGL_J2335.4-0128_daily_bin1597.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/35617/ft1_filtered_4FGL_J2335.4-0128_daily_bin1597.fits evtable="EVENTS" scfile=/scratch/kocevski/35617/ft2_4FGL_J2335.4-0128_daily_bin1597.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/35617/Model_4FGL_J2335.4-0128_daily_bin1597.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/35617/ft1_filtered_4FGL_J2335.4-0128_daily_bin1597.fits.......................!
real 24.55
user 23.35
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    190.06       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .12122E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    31.303       1.0000         .10000E-03   10000.    
    11 'Prefactor '    93.120       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .75897       1.0000         .10000E-03   10000.    
    14 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    49.749       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .20109E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    30.928       1.0000         .10000E-03   10000.    
    21 'norm      '    .10114E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.362       1.0000         .10000E-03   10000.    
    24 'Prefactor '    54.445       1.0000         .10000E-03   10000.    
    25 'Prefactor '    12.944       1.0000         .10000E-03   10000.    
    26 'Prefactor '    39.644       1.0000         .10000E-03   10000.    
    27 'Prefactor '    28.624       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .87883       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .63917       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=   1304.846     FROM MIGRAD    STATUS=CONVERGED    720 CALLS     3700 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.364       -.48054E-05** at limit **
   2  Prefactor     190.09        171.93        .15794E-04   -.95237E-06
   3  Prefactor     .10000E-03    20.732       -.62739E-05** at limit **
   4  Prefactor     .10000E-03    16.147       -.25743E-05** at limit **
   5  norm          .10000E-03    7.3759       -.20982E-06** at limit **
   6  Prefactor     .10000E-03    37.630        .14697E-04** at limit **
   7  norm          .10000E-03    8.7848       -.81656E-07** at limit **
   8  norm          .10000E-03    47.752        .73735E-05** at limit **
   9  Prefactor     .10000E-03    22.584        .71585E-05** at limit **
  10  Prefactor     31.320        48.465       -.14736E-04    .29839E-05
  11  Prefactor     93.179        169.29        .48168E-04   -.42193E-05
  12  Prefactor     .10000E-03    25.294        .11515E-06** at limit **
  13  norm          .75919        2.8520       -.15252E-05   -.55041E-03
  14  norm          .10000E-03    12.850        .96504E-06** at limit **
  15  Prefactor     .10000E-03    24.728        .42144E-05** at limit **
  16  Prefactor     .10000E-03    53.365       -.18347E-04** at limit **
  17  norm          49.756        31.438       -.65401E-05   -.68273E-04
  18  Prefactor     .10000E-03    867.81       -.54026E-04** at limit **
  19  Prefactor     .10000E-03    15.102        .69290E-05** at limit **
  20  Prefactor     30.933        90.204        .11309E-04   -.11422E-04
  21  norm          .10000E-03    30.450       -.15609E-04** at limit **
  22  Prefactor     .10000E-03    72.138        .59846E-05** at limit **
  23  Prefactor     11.359        10.915        .10632E-07    .71297E-04
  24  Prefactor     54.435        127.87        .12309E-06    .17618E-05
  25  Prefactor     12.917        125.26        .33982E-05   -.62691E-05
  26  Prefactor     39.638        37.101        .82722E-05    .71024E-05
  27  Prefactor     28.634        24.105       -.72046E-05    .62438E-05
  28  Normalizat    .87846        .43181       -.91350E-05    .10890E-03
  29  Prefactor     .63932        .26329        .56276E-05   -.97797E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 190.087
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.3203
  Prefactor  = 93.1786
  Prefactor  = 0.000100002
  norm       = 0.759192
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 49.7558
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.933
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.3593
  Prefactor  = 54.4352
  Prefactor  = 12.917
  Prefactor  = 39.6377
  Prefactor  = 28.6338
  Normalizat = 0.878461
  Prefactor  = 0.639315
 **********
 **   18 **HESSE 
 **********

 FCN=   1304.846     FROM HESSE     STATUS=OK           543 CALLS     4243 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.360        .13371E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     190.09        171.69        .14647E-03   -1.2942    
   3  Prefactor     .10000E-03    20.743        .16069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.224        .14177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    12.319        .18795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    37.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    8.8356        .10454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    47.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    22.590        .16775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     31.320        48.524        .71615E-04   -1.4588    
  11  Prefactor     93.179        170.93        .20823E-03   -1.3774    
  12  Prefactor     .10000E-03    25.303        .17740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .75919        2.7743        .10780E-03   -1.5534    
  14  norm          .10000E-03    12.855        .12642E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    24.826        .17545E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    53.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          49.756        31.416        .56856E-04   -1.4296    
  18  Prefactor     .10000E-03    867.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    15.117        .13713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     30.933        89.820        .72047E-04   -1.4595    
  21  norm          .10000E-03    30.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    72.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     11.359        10.861        .11171E-03   -1.5034    
  24  Prefactor     54.435        127.47        .54361E-04   -1.4231    
  25  Prefactor     12.917        125.13        .11134E-03   -1.4989    
  26  Prefactor     39.638        37.087        .63660E-04   -1.4448    
  27  Prefactor     28.634        24.190        .74883E-04   -1.4637    
  28  Normalizat    .87846        .48707        .28259E-03   -.97221    
  29  Prefactor     .63932        .29820        .22027E-03   -1.0596    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51367e-09
Minuit parameter uncertainties:
  1  3.21529e-05
  2  172.144
  3  2.00234e-06
  4  0.000133534
  5  8.80459e-05
  6  0.000104808
  7  4.61848e-05
  8  0.000101511
  9  2.22438e-05
  10  48.5855
  11  171.844
  12  0.000478747
  13  2.77473
  14  0.0001268
  15  0.000320925
  16  8.10546e-05
  17  31.4266
  18  0.000247189
  19  1.19551e-05
  20  90.2163
  21  1.55127e-05
  22  5.98544e-05
  23  10.8634
  24  128.121
  25  80.6281
  26  37.1081
  27  24.1985
  28  0.489539
  29  0.298942
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  1.551e-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:  6.393e-01  2.989e-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.785e-01  4.895e-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: 1.67e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.93e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/35617/likelihoodResults_653270401_653529601_4FGL_J2335.4-0128_daily_bin1597.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): 102
logL (Free Index) = 1304.84594174
delta logL = -0.000154496981168

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1304.84579084
delta logL = -3.59695104635e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10112E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4102       1.0000          .0000       5.0000    
     3 'Normalizat'    .87835       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63939       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   1304.846     FROM MIGRAD    STATUS=FAILED        99 CALLS      273 TOTAL
                     EDM=   .96E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    1561.3        .11349E-01** at limit **
   2  alpha         1.7271        3.0469        .18111        .16280E-06
   3  Normalizat    .87845        .64498E-01    .28259E-03   -.38232E-03
   4  Prefactor     .63932        .43733E-01    .22027E-03   -.49151E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   1304.846     FROM SIMPLEX   STATUS=UNCHANGED    171 CALLS      444 TOTAL
                     EDM=   .98E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    1561.3        .91569E-03** at limit **
   2  alpha         1.7271        3.0469        .32162E-05    .16280E-06
   3  Normalizat    .87845        .64498E-01    .14203E-06   -.38232E-03
   4  Prefactor     .63932        .43733E-01    .18426E-07   -.49151E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1304.846     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      476 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10006E-03    8727.9        .22697E-02** at limit **
   2  alpha         1.7033        4.0999        .72444E-01    .98121E-07
   3  Normalizat    .87845        .40541        .56518E-04   -.38183E-03
   4  Prefactor     .63932        .27526        .44053E-04   -.49085E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100063
  alpha      = 1.70333
  Normalizat = 0.878446
  Prefactor  = 0.63932
 **********
 **   18 **HESSE 
 **********

 FCN=   1304.846     FROM HESSE     STATUS=OK            23 CALLS      499 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10006E-03    43.788        .45394E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7033        2.7421        .28978E-02   -.32433    
   3  Normalizat    .87845        .42255        .11304E-04   -.97222    
   4  Prefactor     .63932        .28693        .88106E-05   -1.0596    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.80266e-09
Minuit parameter uncertainties:
  1  0.00333719
  2  943.411
  3  0.424154
  4  0.287593
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/35617': 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) = 1304.84578675
delta logL = 4.9441223382e-07

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.001e-04  3.337e-03  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  1.703e+00  9.434e+02  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:  6.393e-01  2.876e-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.784e-01  4.242e-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/35617/cmap_HighResolution_653270401_653529601_4FGL_J2335.4-0128_daily_bin1597.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.93e-05', job_status='DONE', photon_flux_upper_limit='1.67e-07', time_completed='2021-09-30 00:40:13.568107', job_id='35617', GAL2='0.64', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1632987613.57', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.64', dlogl='4.94e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='1597' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:40:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 35617: <4FGL_J2335.4-0128_daily_bin1597> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin1597> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep 30 00:30:33 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:30:35 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:30:35 2021
Terminated at Thu Sep 30 00:40:14 2021
Results reported at Thu Sep 30 00:40:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin1597 353.869 -1.476 653270401 653529601 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 :                                   411.53 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   578 sec.
    Turnaround time :                            581 sec.

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

