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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin1396
RA = 353.869, Dec = -1.476
tmin = 601171201, tmax = 601430401
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='34732', job_status='RUN', time_executed='2021-09-30 00:28:10.342663', time_epoch_executed='1632986890.34' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='1396'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34732

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34732/ft1_4FGL_J2335.4-0128_daily_bin1396.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34732/ft2_4FGL_J2335.4-0128_daily_bin1396.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34732/ft1_4FGL_J2335.4-0128_daily_bin1396.fits outfile=/scratch/kocevski/34732/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin1396.fits ra=353.869 dec=-1.476 rad=12.0 tmin=601171201.0 tmax=601430401.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.70
user 3.47
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/34732/ft1_filtered_4FGL_J2335.4-0128_daily_bin1396.fits" evtable="EVENTS" scfile=/scratch/kocevski/34732/ft2_4FGL_J2335.4-0128_daily_bin1396.fits sctable="SC_DATA" outfile=/scratch/kocevski/34732/ltcube_601171201_601430401_4FGL_J2335.4-0128_daily_bin1396.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/34732/ft2_4FGL_J2335.4-0128_daily_bin1396.fits
.....................!
real 11.70
user 11.34
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34732/ft1_filtered_4FGL_J2335.4-0128_daily_bin1396.fits evtable="EVENTS" scfile=/scratch/kocevski/34732/ft2_4FGL_J2335.4-0128_daily_bin1396.fits sctable="SC_DATA" expcube=/scratch/kocevski/34732/ltcube_601171201_601430401_4FGL_J2335.4-0128_daily_bin1396.fits outfile=/scratch/kocevski/34732/expmap_601171201_601430401_4FGL_J2335.4-0128_daily_bin1396.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/34732/ltcube_601171201_601430401_4FGL_J2335.4-0128_daily_bin1396.fits
.....................!
real 190.56
user 185.19
sys 5.03

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/34732/ft1_filtered_4FGL_J2335.4-0128_daily_bin1396.fits scfile=/scratch/kocevski/34732/ft2_4FGL_J2335.4-0128_daily_bin1396.fits outfile=/scratch/kocevski/34732/cmap_601171201_601430401_4FGL_J2335.4-0128_daily_bin1396.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/34732/ft1_filtered_4FGL_J2335.4-0128_daily_bin1396.fits scfile=/scratch/kocevski/34732/ft2_4FGL_J2335.4-0128_daily_bin1396.fits outfile=/scratch/kocevski/34732/cmap_HighResolution_601171201_601430401_4FGL_J2335.4-0128_daily_bin1396.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.57
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/34732/ft1_filtered_4FGL_J2335.4-0128_daily_bin1396.fits evtable="EVENTS" scfile=/scratch/kocevski/34732/ft2_4FGL_J2335.4-0128_daily_bin1396.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/34732/Model_4FGL_J2335.4-0128_daily_bin1396.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/34732/ft1_filtered_4FGL_J2335.4-0128_daily_bin1396.fits....................!
real 51.77
user 50.37
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.039       1.0000         .10000E-03   10000.    
     3 'Prefactor '    46.170       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.8494       1.0000         .10000E-03   10000.    
     5 'norm      '    4.3937       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    31.225       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.308       1.0000         .10000E-03   10000.    
    13 'norm      '    .50182       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.371       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.0980       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    19.678       1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.0028       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .65717E-02   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2363       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .58883       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=   4910.844     FROM MIGRAD    STATUS=CONVERGED    733 CALLS     3705 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.0713       -.46963E-08** at limit **
   2  Prefactor     16.041        28.805        .15068E-07   -.16404E-04
   3  Prefactor     46.167        21.651       -.71360E-06   -.20798E-05
   4  Prefactor     4.8494        4.8894       -.77664E-07   -.14622E-03
   5  norm          4.3935        3.2643        .11254E-05    .34034E-03
   6  Prefactor     .10000E-03    4.1929       -.38239E-07** at limit **
   7  norm          .10000E-03    1.4232       -.18543E-06** at limit **
   8  norm          31.221        18.391        .10291E-06    .40664E-05
   9  Prefactor     .10000E-03    11.518       -.56518E-08** at limit **
  10  Prefactor     .10000E-03    13.162        .15843E-06** at limit **
  11  Prefactor     .10000E-03    143.77       -.14758E-05** at limit **
  12  Prefactor     11.301        8.9905       -.38058E-06   -.60159E-04
  13  norm          .50183        .46600       -.15367E-07    .38012E-04
  14  norm          .10000E-03    2.3251        .16315E-07** at limit **
  15  Prefactor     12.370        9.8291        .12480E-06    .71653E-05
  16  Prefactor     .10000E-03    57.262       -.86664E-06** at limit **
  17  norm          .10000E-03    2.2579        .12500E-07** at limit **
  18  Prefactor     .10000E-03    90.164        .87056E-06** at limit **
  19  Prefactor     .10000E-03    5.3500       -.25430E-06** at limit **
  20  Prefactor     .10000E-03    21.746        .22904E-06** at limit **
  21  norm          .10000E-03    16.939       -.61102E-06** at limit **
  22  Prefactor     .10000E-03    71.965        .54065E-06** at limit **
  23  Prefactor     6.0946        5.1976        .73403E-07   -.98731E-04
  24  Prefactor     .10000E-03    24.158        .28798E-07** at limit **
  25  Prefactor     19.676        22.261        .17092E-06    .59066E-06
  26  Prefactor     6.0018        14.885        .65057E-07   -.11631E-04
  27  Prefactor     .10036E-03    9.5162        .15766E-05** at limit **
  28  Normalizat    1.2366        .21346       -.15477E-06   -.17091E-03
  29  Prefactor     .58865        .14511       -.42277E-06   -.12169E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 16.0407
  Prefactor  = 46.1671
  Prefactor  = 4.84937
  norm       = 4.3935
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 31.2208
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 11.3014
  norm       = 0.501832
  norm       = 0.0001
  Prefactor  = 12.3695
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 6.09464
  Prefactor  = 0.0001
  Prefactor  = 19.6758
  Prefactor  = 6.00179
  Prefactor  = 0.000100358
  Normalizat = 1.23658
  Prefactor  = 0.588651
 **********
 **   18 **HESSE 
 **********

 FCN=   4910.844     FROM HESSE     STATUS=OK           553 CALLS     4258 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.0813        .13807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.041        28.790        .10001E-03   -1.4907    
   3  Prefactor     46.167        21.667        .59008E-04   -1.4348    
   4  Prefactor     4.8494        4.8844        .15042E-03   -1.5268    
   5  norm          4.3935        3.2875        .50260E-03   -1.5289    
   6  Prefactor     .10000E-03    4.1936        .14015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.4308        .81568E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          31.221        18.409        .71704E-04   -1.4590    
   9  Prefactor     .10000E-03    11.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    144.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.301        8.9753        .11913E-03   -1.5035    
  13  norm          .50183        .49991        .44736E-03   -1.5566    
  14  norm          .10000E-03    2.3334        .10431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.370        9.8234        .11389E-03   -1.5004    
  16  Prefactor     .10000E-03    57.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.2594        .10282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    90.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.3608        .15812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    21.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    16.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    72.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.0946        5.1986        .13886E-03   -1.5214    
  24  Prefactor     .10000E-03    24.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     19.676        22.262        .90289E-04   -1.4821    
  26  Prefactor     6.0018        14.874        .16389E-03   -1.5218    
  27  Prefactor     .10036E-03    74.400        .37209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2366        .24727        .24146E-03   -.85480    
  29  Prefactor     .58865        .16875        .23731E-03   -1.0807    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.70182e-09
Minuit parameter uncertainties:
  1  2.56479e-06
  2  28.815
  3  21.6705
  4  4.8848
  5  3.28763
  6  1.43165e-06
  7  2.92476e-06
  8  18.4125
  9  7.48494e-06
  10  3.63046e-05
  11  0.00140944
  12  8.9764
  13  0.499912
  14  3.02122e-06
  15  9.82471
  16  0.000578648
  17  2.43118e-07
  18  0.000967158
  19  4.68934e-06
  20  5.94008e-05
  21  6.9695e-05
  22  0.000383628
  23  5.19898
  24  2.0251e-05
  25  22.2715
  26  14.8833
  27  0.010338
  28  0.247504
  29  0.168896
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  6.970e-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:  5.887e-01  1.689e-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.237e+00  2.475e-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.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.51e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/34732/likelihoodResults_601171201_601430401_4FGL_J2335.4-0128_daily_bin1396.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) = 4910.84445358
delta logL = -0.000280405214653

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4910.84417439
delta logL = -1.21011635201e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5955       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2366       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58866       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=   4910.844     FROM MIGRAD    STATUS=FAILED       100 CALLS      279 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10957E-03    289.70        .30172E-02** at limit **
   2  alpha         3.2723        2.7540        .50000        .48039E-05
   3  Normalizat    1.2366        .21297E-01    .24146E-03   -.69684E-04
   4  Prefactor     .58865        .15027E-01    .23731E-03   -.37079E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4910.844     FROM SIMPLEX   STATUS=UNCHANGED    125 CALLS      404 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10957E-03    289.70        .73187E-03** at limit **
   2  alpha         3.2723        2.7540        .67516E-04    .48039E-05
   3  Normalizat    1.2366        .21297E-01    .97664E-06   -.69684E-04
   4  Prefactor     .58865        .15027E-01    .79982E-06   -.37079E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4910.844     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      451 TOTAL
                     EDM=   .27E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    204.94        .60344E-02** at limit **
   2  alpha         3.0132        3.4413        .50000        .35766E-07
   3  Normalizat    1.2366        .17153E-01    .96583E-05    .16903E-03
   4  Prefactor     .58865        .12103E-01    .94926E-05    .19929E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 3.01317
  Normalizat = 1.23658
  Prefactor  = 0.588651
 **********
 **   18 **HESSE 
 **********

 FCN=   4910.844     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      480 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    965.75        .12069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.0132        2.9179        .50000        .20674    
   3  Normalizat    1.2366        .39414E-01    .19317E-05   -.85480    
   4  Prefactor     .58865        .27810E-01    .18985E-05   -1.0807    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.27274e-11
Minuit parameter uncertainties:
  1  0.00131947
  2  2414.46
  3  0.0394148
  4  0.0278109
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34732': 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): 102
logL (Free Index) = 4910.84417282
delta logL = 3.53327777702e-07

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  1.319e-03  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  3.013e+00  2.414e+03  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.887e-01  2.781e-02  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.237e+00  3.941e-02  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/34732/cmap_HighResolution_601171201_601430401_4FGL_J2335.4-0128_daily_bin1396.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.51e-05', job_status='DONE', photon_flux_upper_limit='6.05e-08', time_completed='2021-09-30 00:39:29.767158', job_id='34732', GAL2='0.59', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1632987569.77', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.59', dlogl='3.53e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='1396' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:39:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 34732: <4FGL_J2335.4-0128_daily_bin1396> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin1396 353.869 -1.476 601171201 601430401 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 :                                   671.37 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             283.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            820 sec.

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

