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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin533
RA = 353.869, Dec = -1.476
tmin = 377481601, tmax = 377740801
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='31432', job_status='RUN', time_executed='2021-09-30 00:18:18.895684', time_epoch_executed='1632986298.9' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='533'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31432

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

Retrieving the FT1 file...

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

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

Retrieving 36 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31432/ft1_4FGL_J2335.4-0128_daily_bin533.fits


Retrieving the FT1 file...

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

Retrieving 40 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31432/ft2_4FGL_J2335.4-0128_daily_bin533.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31432/ft1_4FGL_J2335.4-0128_daily_bin533.fits outfile=/scratch/kocevski/31432/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin533.fits ra=353.869 dec=-1.476 rad=12.0 tmin=377481601.0 tmax=377740801.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.17
user 2.96
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/31432/ft1_filtered_4FGL_J2335.4-0128_daily_bin533.fits" evtable="EVENTS" scfile=/scratch/kocevski/31432/ft2_4FGL_J2335.4-0128_daily_bin533.fits sctable="SC_DATA" outfile=/scratch/kocevski/31432/ltcube_377481601_377740801_4FGL_J2335.4-0128_daily_bin533.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/31432/ft2_4FGL_J2335.4-0128_daily_bin533.fits
.....................!
real 10.25
user 9.87
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31432/ft1_filtered_4FGL_J2335.4-0128_daily_bin533.fits evtable="EVENTS" scfile=/scratch/kocevski/31432/ft2_4FGL_J2335.4-0128_daily_bin533.fits sctable="SC_DATA" expcube=/scratch/kocevski/31432/ltcube_377481601_377740801_4FGL_J2335.4-0128_daily_bin533.fits outfile=/scratch/kocevski/31432/expmap_377481601_377740801_4FGL_J2335.4-0128_daily_bin533.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/31432/ltcube_377481601_377740801_4FGL_J2335.4-0128_daily_bin533.fits
.....................!
real 191.74
user 186.43
sys 4.93

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/31432/ft1_filtered_4FGL_J2335.4-0128_daily_bin533.fits scfile=/scratch/kocevski/31432/ft2_4FGL_J2335.4-0128_daily_bin533.fits outfile=/scratch/kocevski/31432/cmap_377481601_377740801_4FGL_J2335.4-0128_daily_bin533.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.54
user 0.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/31432/ft1_filtered_4FGL_J2335.4-0128_daily_bin533.fits evtable="EVENTS" scfile=/scratch/kocevski/31432/ft2_4FGL_J2335.4-0128_daily_bin533.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/31432/Model_4FGL_J2335.4-0128_daily_bin533.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/31432/ft1_filtered_4FGL_J2335.4-0128_daily_bin533.fits.....................!
real 51.04
user 49.19
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30918E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.6720       1.0000         .10000E-03   10000.    
     5 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.1183       1.0000         .10000E-03   10000.    
     8 'norm      '    12.270       1.0000         .10000E-03   10000.    
     9 'Prefactor '    111.46       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.2982       1.0000         .10000E-03   10000.    
    13 'norm      '    3.7079       1.0000         .10000E-03   10000.    
    14 'norm      '    3.1102       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.5522       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.272       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.9346       1.0000         .10000E-03   10000.    
    21 'norm      '    .10720E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    12.632       1.0000         .10000E-03   10000.    
    25 'Prefactor '    34.305       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .68167       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .88206       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.

 FCN=   4705.577     FROM MIGRAD    STATUS=CONVERGED    740 CALLS     3826 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11423E-03    7.1571         .0000    ** at limit **
   2  Prefactor     .10009E-03    24.009         .0000    ** at limit **
   3  Prefactor     .10000E-03    5.1168         .0000    ** at limit **
   4  Prefactor     1.6331        27.646         .0000        .17175E-01
   5  norm          .10000E-03    1.0160         .0000    ** at limit **
   6  Prefactor     .10000E-03    10.282         .0000    ** at limit **
   7  norm          5.1409        8.3726         .0000        .11481E-02
   8  norm          12.268        18.395         .0000        .78950E-04
   9  Prefactor     111.45        58.745         .0000        .18550E-02
  10  Prefactor     .10009E-03    24.598         .0000    ** at limit **
  11  Prefactor     .10004E-03    18.888         .0000    ** at limit **
  12  Prefactor     2.2983        7.7757         .0000        .69090E-03
  13  norm          3.7079        1.3753         .0000        .22901E-03
  14  norm          3.1089        7.0909         .0000        .48043E-03
  15  Prefactor     3.5521        8.5606         .0000        .40029E-03
  16  Prefactor     .10001E-03    165.41         .0000    ** at limit **
  17  norm          .10000E-03    4.0826         .0000    ** at limit **
  18  Prefactor     .10016E-03    68.208         .0000    ** at limit **
  19  Prefactor     22.277        14.492         .0000        .44125E-03
  20  Prefactor     5.9376        29.839         .0000        .56095E-03
  21  norm          .10015E-03    46.939         .0000    ** at limit **
  22  Prefactor     .10003E-03    19.114         .0000    ** at limit **
  23  Prefactor     .10000E-03    1.9605         .0000    ** at limit **
  24  Prefactor     12.612        40.424         .0000        .14689E-02
  25  Prefactor     34.303        28.858         .0000       -.40851E-03
  26  Prefactor     .10000E-03    9.1038         .0000    ** at limit **
  27  Prefactor     .10000E-03    2.9798         .0000    ** at limit **
  28  Normalizat    .68193        .20573         .0000       -.35397E-04
  29  Prefactor     .88197        .14840         .0000       -.85324E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00011423
  Prefactor  = 0.000100087
  Prefactor  = 0.0001
  Prefactor  = 1.63315
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.14088
  norm       = 12.2678
  Prefactor  = 111.454
  Prefactor  = 0.000100087
  Prefactor  = 0.000100035
  Prefactor  = 2.29833
  norm       = 3.70785
  norm       = 3.10887
  Prefactor  = 3.55206
  Prefactor  = 0.000100015
  norm       = 0.0001
  Prefactor  = 0.000100157
  Prefactor  = 22.2765
  Prefactor  = 5.93756
  norm       = 0.000100149
  Prefactor  = 0.000100032
  Prefactor  = 0.0001
  Prefactor  = 12.6123
  Prefactor  = 34.3029
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.681932
  Prefactor  = 0.881972
 **********
 **   18 **HESSE 
 **********

 FCN=   4705.577     FROM HESSE     STATUS=OK           555 CALLS     4381 TOTAL
                     EDM=   .70E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11423E-03    7.3985        .57123E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10009E-03    24.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.1227        .15154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.6331        22.374        .16299E-02   -1.5452    
   5  norm          .10000E-03    1.0281        .67479E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.1409        7.5305        .11826E-03   -1.5254    
   8  norm          12.268        18.404        .11436E-03   -1.5007    
   9  Prefactor     111.45        58.779        .38101E-04   -1.3593    
  10  Prefactor     .10009E-03    24.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10004E-03    18.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.2983        7.5995        .27072E-03   -1.5405    
  13  norm          3.7079        1.3729        .45655E-04   -1.5323    
  14  norm          3.1089        6.9356        .22698E-03   -1.5355    
  15  Prefactor     3.5521        8.5256        .21445E-03   -1.5331    
  16  Prefactor     .10001E-03    167.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.0954        .13531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10016E-03    68.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     22.277        14.445        .42437E-03   -1.4764    
  20  Prefactor     5.9376        29.644        .82418E-03   -1.5221    
  21  norm          .10015E-03    47.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10003E-03    19.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.9692        .93667E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     12.612        40.387        .11271E-03   -1.4998    
  25  Prefactor     34.303        28.862        .68418E-04   -1.4536    
  26  Prefactor     .10000E-03    9.1238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    6.1512        .23028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .68193        .23728        .29725E-03   -1.0461    
  29  Prefactor     .88197        .17362        .19657E-03   -.96774    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.0112e-08
Minuit parameter uncertainties:
  1  0.0205235
  2  0.00288416
  3  8.26753e-06
  4  12.0948
  5  2.57136e-06
  6  1.2546e-05
  7  7.53191
  8  18.4121
  9  58.8101
  10  0.00294164
  11  0.00163328
  12  7.60268
  13  1.37289
  14  6.93737
  15  8.52848
  16  0.00312794
  17  1.83662e-05
  18  0.00654946
  19  14.4477
  20  26.5546
  21  0.00531444
  22  0.00157294
  23  1.17615e-05
  24  40.475
  25  28.8734
  26  1.47184e-07
  27  1.85487e-06
  28  0.237638
  29  0.173731
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.001e-04  5.314e-03  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:  8.820e-01  1.737e-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:  6.819e-01  2.376e-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: 8.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.32e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/31432/likelihoodResults_377481601_377740801_4FGL_J2335.4-0128_daily_bin533.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) = 4705.57714236
delta logL = -0.00010091036529

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4705.57714235
delta logL = -0.000100903841485

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96356E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5048       1.0000          .0000       5.0000    
     3 'Normalizat'    .68193       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88197       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=   4705.556     FROM MIGRAD    STATUS=FAILED       211 CALLS      344 TOTAL
                     EDM=   .96E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.0306        46.523        .18143E-01    .71633E-02
   2  alpha         1.4836        1.8880        .16461       -.80010E-05
   3  Normalizat    .68534        .22658        .29725E-03   -.36716E-05
   4  Prefactor     .87769        .17117        .19657E-03   -.63619E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4705.556     FROM SIMPLEX   STATUS=UNCHANGED     76 CALLS      420 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.0306        46.523        .35210E-03   -1.5217    
   2  alpha         1.4836        1.8880        .34752E-02   -.41869    
   3  Normalizat    .68534        .22658        .34452E-03   -1.0447    
   4  Prefactor     .87769        .17117        .26957E-03   -.96925    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4705.556     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      451 TOTAL
                     EDM=   .31E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.0306        39.798        .36285E-02    .13504E-04
   2  alpha         1.4836        1.7979        .60028E-02    .22916E-06
   3  Normalizat    .68534        .22642        .11890E-04   -.36334E-05
   4  Prefactor     .87769        .17081        .78627E-05   -.66511E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.03059
  alpha      = 1.4836
  Normalizat = 0.68534
  Prefactor  = 0.877695
 **********
 **   18 **HESSE 
 **********

 FCN=   4705.556     FROM HESSE     STATUS=OK            25 CALLS      476 TOTAL
                     EDM=   .16E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.0306        39.796        .14514E-03   -1.5217    
   2  alpha         1.4836        1.7983        .24011E-03   -.41869    
   3  Normalizat    .68534        .22646        .23780E-05   -1.0447    
   4  Prefactor     .87769        .17079        .15725E-05   -.96925    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62825e-13
Minuit parameter uncertainties:
  1  31.013
  2  2.07048
  3  0.226767
  4  0.170896
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31432': 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) = 4705.55625109
delta logL = 0.0207903604596

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  6.031e+00  3.101e+01  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  1.484e+00  2.070e+00  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:  8.777e-01  1.709e-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:  6.853e-01  2.268e-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/31432/cmap_HighResolution_377481601_377740801_4FGL_J2335.4-0128_daily_bin533.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.32e-05', job_status='DONE', photon_flux_upper_limit='8.00e-08', time_completed='2021-09-30 00:29:11.538308', job_id='31432', GAL2='0.88', fit_tolerance='1e-08', EG2='0.69', EG='0.68', time_epoch_completed='1632986951.54', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='2.08e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='533' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:29:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 31432: <4FGL_J2335.4-0128_daily_bin533> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin533 353.869 -1.476 377481601 377740801 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 :                                   652.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             322.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            820 sec.

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

