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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin895
RA = 353.869, Dec = -1.476
tmin = 471312001, tmax = 471571201
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='33014', job_status='RUN', time_executed='2021-09-30 00:23:14.242915', time_epoch_executed='1632986594.24' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='895'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/33014

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/33014/ft1_4FGL_J2335.4-0128_daily_bin895.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/33014/ft2_4FGL_J2335.4-0128_daily_bin895.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/33014/ft1_4FGL_J2335.4-0128_daily_bin895.fits outfile=/scratch/kocevski/33014/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin895.fits ra=353.869 dec=-1.476 rad=12.0 tmin=471312001.0 tmax=471571201.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.08
user 4.79
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/33014/ft1_filtered_4FGL_J2335.4-0128_daily_bin895.fits" evtable="EVENTS" scfile=/scratch/kocevski/33014/ft2_4FGL_J2335.4-0128_daily_bin895.fits sctable="SC_DATA" outfile=/scratch/kocevski/33014/ltcube_471312001_471571201_4FGL_J2335.4-0128_daily_bin895.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/33014/ft2_4FGL_J2335.4-0128_daily_bin895.fits
.....................!
real 11.49
user 11.12
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/33014/ft1_filtered_4FGL_J2335.4-0128_daily_bin895.fits evtable="EVENTS" scfile=/scratch/kocevski/33014/ft2_4FGL_J2335.4-0128_daily_bin895.fits sctable="SC_DATA" expcube=/scratch/kocevski/33014/ltcube_471312001_471571201_4FGL_J2335.4-0128_daily_bin895.fits outfile=/scratch/kocevski/33014/expmap_471312001_471571201_4FGL_J2335.4-0128_daily_bin895.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/33014/ltcube_471312001_471571201_4FGL_J2335.4-0128_daily_bin895.fits
.....................!
real 190.52
user 185.10
sys 5.10

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/33014/ft1_filtered_4FGL_J2335.4-0128_daily_bin895.fits scfile=/scratch/kocevski/33014/ft2_4FGL_J2335.4-0128_daily_bin895.fits outfile=/scratch/kocevski/33014/cmap_471312001_471571201_4FGL_J2335.4-0128_daily_bin895.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/33014/ft1_filtered_4FGL_J2335.4-0128_daily_bin895.fits scfile=/scratch/kocevski/33014/ft2_4FGL_J2335.4-0128_daily_bin895.fits outfile=/scratch/kocevski/33014/cmap_HighResolution_471312001_471571201_4FGL_J2335.4-0128_daily_bin895.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/33014/ft1_filtered_4FGL_J2335.4-0128_daily_bin895.fits evtable="EVENTS" scfile=/scratch/kocevski/33014/ft2_4FGL_J2335.4-0128_daily_bin895.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/33014/Model_4FGL_J2335.4-0128_daily_bin895.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/33014/ft1_filtered_4FGL_J2335.4-0128_daily_bin895.fits.....................!
real 50.00
user 48.75
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.106       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .33871E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.177       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.364       1.0000         .10000E-03   10000.    
     7 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.2551       1.0000         .10000E-03   10000.    
     9 'Prefactor '    40.069       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.1163       1.0000         .10000E-03   10000.    
    13 'norm      '    3.5810       1.0000         .10000E-03   10000.    
    14 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .73192       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.793       1.0000         .10000E-03   10000.    
    17 'norm      '    20.606       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .20580E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.1038       1.0000         .10000E-03   10000.    
    21 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.2993       1.0000         .10000E-03   10000.    
    24 'Prefactor '    77.996       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .25034E-01   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3692       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .52673       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=   4531.956     FROM MIGRAD    STATUS=CONVERGED    743 CALLS     3720 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.134        17.734        .47808E-06   -.20592E-03
   2  Prefactor     .10000E-03    354.86       -.15728E-05** at limit **
   3  Prefactor     14.170        21.255        .28916E-06   -.58741E-04
   4  Prefactor     .10000E-03    2.1058        .40029E-07** at limit **
   5  norm          .10000E-03    1.4419        .11120E-06** at limit **
   6  Prefactor     23.364        19.816       -.66568E-07   -.80909E-04
   7  norm          .10000E-03    1.7411        .96313E-07** at limit **
   8  norm          2.2511        16.128        .15082E-05    .98840E-05
   9  Prefactor     40.050        45.079        .18324E-05    .31970E-04
  10  Prefactor     .10000E-03    5.1417       -.15919E-07** at limit **
  11  Prefactor     .10000E-03    56.288        .66817E-06** at limit **
  12  Prefactor     4.1147        8.7876        .90181E-07   -.85981E-04
  13  norm          3.5786        1.5455       -.26306E-06   -.10010E-02
  14  norm          .10000E-03    6.3710        .32095E-06** at limit **
  15  Prefactor     .81943        17.389        .32008E-05   -.13814E-03
  16  Prefactor     10.761        99.742        .80925E-05    .29460E-04
  17  norm          20.598        13.372        .17197E-06   -.96143E-04
  18  Prefactor     .10003E-03    285.32        .15657E-04** at limit **
  19  Prefactor     .10000E-03    11.657       -.96528E-07** at limit **
  20  Prefactor     7.0785        40.088       -.98603E-06   -.67381E-04
  21  norm          .10000E-03    9.8472        .22380E-07** at limit **
  22  Prefactor     .10000E-03    35.819       -.35039E-06** at limit **
  23  Prefactor     3.2823        6.3811        .45143E-05    .10715E-03
  24  Prefactor     77.981        55.066        .41804E-06   -.89240E-05
  25  Prefactor     .10000E-03    15.704        .16083E-06** at limit **
  26  Prefactor     .10000E-03    5.8029        .82203E-07** at limit **
  27  Prefactor     .10674E-03    10.647        .39743E-05** at limit **
  28  Normalizat    1.3697        .23108       -.76937E-06   -.26678E-03
  29  Prefactor     .52654        .15015       -.18622E-05   -.37548E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.1335
  Prefactor  = 0.000100004
  Prefactor  = 14.1705
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 23.3642
  norm       = 0.0001
  norm       = 2.25108
  Prefactor  = 40.0497
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.11473
  norm       = 3.57857
  norm       = 0.0001
  Prefactor  = 0.819432
  Prefactor  = 10.761
  norm       = 20.5981
  Prefactor  = 0.000100028
  Prefactor  = 0.0001
  Prefactor  = 7.07849
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.28229
  Prefactor  = 77.9811
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000106741
  Normalizat = 1.3697
  Prefactor  = 0.526543
 **********
 **   18 **HESSE 
 **********

 FCN=   4531.956     FROM HESSE     STATUS=OK           553 CALLS     4273 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.134        17.722        .71841E-04   -1.4591    
   2  Prefactor     .10000E-03    361.65        .21338E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.170        21.277        .10638E-03   -1.4955    
   4  Prefactor     .10000E-03    2.1076        .95386E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.4504        .78760E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     23.364        19.801        .82869E-04   -1.4741    
   7  norm          .10000E-03    1.7483        .86673E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.2511        16.127        .27359E-03   -1.5408    
   9  Prefactor     40.050        45.090        .63323E-04   -1.4441    
  10  Prefactor     .10000E-03    5.1429        .14909E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    56.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.1147        8.7546        .19869E-03   -1.5302    
  13  norm          3.5786        1.5478        .51210E-04   -1.5330    
  14  norm          .10000E-03    6.5314        .33084E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .81943        57.311        .44839E-02   -1.5527    
  16  Prefactor     10.761        100.02        .12196E-03   -1.5052    
  17  norm          20.598        13.256        .88234E-04   -1.4800    
  18  Prefactor     .10003E-03    286.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.0785        38.374        .15051E-03   -1.5176    
  21  norm          .10000E-03    9.8540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    35.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.2823        6.5044        .11057E-02   -1.5346    
  24  Prefactor     77.981        55.134        .45471E-04   -1.3940    
  25  Prefactor     .10000E-03    15.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    5.8070        .15839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10674E-03    16.731        .56179E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.3697        .27129        .24690E-03   -.81509    
  29  Prefactor     .52654        .17319        .25769E-03   -1.1077    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13355e-09
Minuit parameter uncertainties:
  1  17.7248
  2  0.00236691
  3  21.2887
  4  2.05115e-06
  5  4.44965e-06
  6  19.8064
  7  4.83654e-06
  8  12.0548
  9  45.1282
  10  6.77907e-06
  11  0.000204819
  12  8.75732
  13  1.54782
  14  4.01817e-05
  15  13.7187
  16  65.7587
  17  13.2579
  18  0.00568938
  19  4.84237e-05
  20  32.9948
  21  5.66321e-06
  22  2.01608e-05
  23  6.50575
  24  55.1701
  25  1.92962e-05
  26  6.33405e-06
  27  0.0212456
  28  0.271578
  29  0.173365
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  5.663e-06  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:  5.265e-01  1.734e-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.370e+00  2.716e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/33014/likelihoodResults_471312001_471571201_4FGL_J2335.4-0128_daily_bin895.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) = 4531.95689276
delta logL = -0.000476396048725

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4531.95641635
delta logL = 7.36963556847e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4982       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3697       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52654       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=   4531.956     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      241 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    496.34        .18142E-01** at limit **
   2  alpha         1.9047        2.7991        .16461        .31908E-07
   3  Normalizat    1.3697        .41466E-01    .24690E-03    .26384E-04
   4  Prefactor     .52655        .28186E-01    .25769E-03    .31898E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.90474
  Normalizat = 1.36969
  Prefactor  = 0.526545
 **********
 **   18 **HESSE 
 **********

 FCN=   4531.956     FROM HESSE     STATUS=OK            23 CALLS      264 TOTAL
                     EDM=   .76E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.835        .21577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9047        3.3036        .65843E-02   -.24041    
   3  Normalizat    1.3697        .24700        .98760E-05   -.81509    
   4  Prefactor     .52655        .16788        .10307E-04   -1.1077    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.55015e-11
Minuit parameter uncertainties:
  1  7.27698e-05
  2  623.909
  3  0.247219
  4  0.16804
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/33014': 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) = 4531.95641593
delta logL = 4.33652530774e-07

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  7.277e-05  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  1.905e+00  6.239e+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:  5.265e-01  1.680e-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.370e+00  2.472e-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/33014/cmap_HighResolution_471312001_471571201_4FGL_J2335.4-0128_daily_bin895.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.50e-05', job_status='DONE', photon_flux_upper_limit='6.03e-08', time_completed='2021-09-30 00:33:53.224071', job_id='33014', GAL2='0.53', fit_tolerance='1e-08', EG2='1.37', EG='1.37', time_epoch_completed='1632987233.22', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.53', dlogl='4.34e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='895' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:33:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 33014: <4FGL_J2335.4-0128_daily_bin895> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin895 353.869 -1.476 471312001 471571201 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 :                                   636.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             285.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            795 sec.

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

