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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin998
RA = 353.869, Dec = -1.476
tmin = 498009601, tmax = 498268801
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='33169', job_status='RUN', time_executed='2021-09-30 00:24:45.469386', time_epoch_executed='1632986685.47' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='998'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/33169

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/33169/ft1_4FGL_J2335.4-0128_daily_bin998.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/33169/ft2_4FGL_J2335.4-0128_daily_bin998.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/33169/ft1_4FGL_J2335.4-0128_daily_bin998.fits outfile=/scratch/kocevski/33169/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin998.fits ra=353.869 dec=-1.476 rad=12.0 tmin=498009601.0 tmax=498268801.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 8.06
user 7.75
sys 0.30

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/33169/ft1_filtered_4FGL_J2335.4-0128_daily_bin998.fits" evtable="EVENTS" scfile=/scratch/kocevski/33169/ft2_4FGL_J2335.4-0128_daily_bin998.fits sctable="SC_DATA" outfile=/scratch/kocevski/33169/ltcube_498009601_498268801_4FGL_J2335.4-0128_daily_bin998.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/33169/ft2_4FGL_J2335.4-0128_daily_bin998.fits
.....................!
real 11.50
user 11.14
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/33169/ft1_filtered_4FGL_J2335.4-0128_daily_bin998.fits evtable="EVENTS" scfile=/scratch/kocevski/33169/ft2_4FGL_J2335.4-0128_daily_bin998.fits sctable="SC_DATA" expcube=/scratch/kocevski/33169/ltcube_498009601_498268801_4FGL_J2335.4-0128_daily_bin998.fits outfile=/scratch/kocevski/33169/expmap_498009601_498268801_4FGL_J2335.4-0128_daily_bin998.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/33169/ltcube_498009601_498268801_4FGL_J2335.4-0128_daily_bin998.fits
.....................!
real 191.28
user 186.64
sys 4.33

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/33169/ft1_filtered_4FGL_J2335.4-0128_daily_bin998.fits scfile=/scratch/kocevski/33169/ft2_4FGL_J2335.4-0128_daily_bin998.fits outfile=/scratch/kocevski/33169/cmap_498009601_498268801_4FGL_J2335.4-0128_daily_bin998.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/33169/ft1_filtered_4FGL_J2335.4-0128_daily_bin998.fits scfile=/scratch/kocevski/33169/ft2_4FGL_J2335.4-0128_daily_bin998.fits outfile=/scratch/kocevski/33169/cmap_HighResolution_498009601_498268801_4FGL_J2335.4-0128_daily_bin998.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/33169/ft1_filtered_4FGL_J2335.4-0128_daily_bin998.fits evtable="EVENTS" scfile=/scratch/kocevski/33169/ft2_4FGL_J2335.4-0128_daily_bin998.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/33169/Model_4FGL_J2335.4-0128_daily_bin998.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/33169/ft1_filtered_4FGL_J2335.4-0128_daily_bin998.fits.....................!
real 40.86
user 39.56
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29949       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .31692E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.1767       1.0000         .10000E-03   10000.    
     5 'norm      '    .84062       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11465E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.8265       1.0000         .10000E-03   10000.    
     8 'norm      '    .16500       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    36.930       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10561E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    17.555       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.854       1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.736       1.0000         .10000E-03   10000.    
    17 'norm      '    .10099E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .76368E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11455E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    114.22       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.4821       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .64805       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=   3354.906     FROM MIGRAD    STATUS=CONVERGED    732 CALLS     3788 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .31108        13.584       -.25854E-05   -.18144E-04
   2  Prefactor     .10000E-03    499.40        .89304E-05** at limit **
   3  Prefactor     .10000E-03    9.7569        .14703E-07** at limit **
   4  Prefactor     6.1797        14.694        .26763E-06    .27564E-03
   5  norm          .83904        5.4187       -.26872E-05    .10737E-03
   6  Prefactor     .10013E-03    68.748        .12708E-04** at limit **
   7  norm          3.8243        8.2607       -.17497E-06    .43628E-03
   8  norm          .15116        22.427       -.74101E-05    .36332E-03
   9  Prefactor     .10000E-03    19.890       -.19582E-06** at limit **
  10  Prefactor     .10000E-03    12.429       -.10230E-06** at limit **
  11  Prefactor     36.913        88.096       -.88161E-06   -.32055E-04
  12  Prefactor     .10003E-03    44.215        .94045E-05** at limit **
  13  norm          .10000E-03    1.1759       -.30245E-06** at limit **
  14  norm          17.560        12.462        .97775E-07   -.89524E-05
  15  Prefactor     10.841        17.740        .18194E-06   -.51380E-04
  16  Prefactor     17.769        65.232       -.10676E-05   -.22644E-04
  17  norm          .10000E-03    9.5929       -.22552E-06** at limit **
  18  Prefactor     .10000E-03    94.792       -.14270E-05** at limit **
  19  Prefactor     .10000E-03    5.7267       -.30688E-06** at limit **
  20  Prefactor     .10001E-03    226.20        .16938E-05** at limit **
  21  norm          .10000E-03    9.4159        .68828E-07** at limit **
  22  Prefactor     .10000E-03    48.958        .79116E-06** at limit **
  23  Prefactor     .10000E-03    3.0073       -.30921E-06** at limit **
  24  Prefactor     .10000E-03    137.12        .20021E-05** at limit **
  25  Prefactor     .10000E-03    54.781       -.93062E-06** at limit **
  26  Prefactor     114.23        45.055       -.43158E-07    .10879E-03
  27  Prefactor     .10000E-03    3.9562       -.40814E-07** at limit **
  28  Normalizat    1.4820        .28564        .28253E-05    .26722E-03
  29  Prefactor     .64816        .18483        .16287E-05    .36369E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.311083
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.17975
  norm       = 0.83904
  Prefactor  = 0.000100125
  norm       = 3.82432
  norm       = 0.151158
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.9125
  Prefactor  = 0.000100033
  norm       = 0.0001
  norm       = 17.5601
  Prefactor  = 10.841
  Prefactor  = 17.769
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 114.234
  Prefactor  = 0.0001
  Normalizat = 1.48201
  Prefactor  = 0.648157
 **********
 **   18 **HESSE 
 **********

 FCN=   3354.906     FROM HESSE     STATUS=OK           551 CALLS     4339 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .31108        84.721        .39565E-02   -1.5596    
   2  Prefactor     .10000E-03    508.78        .42733E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.7621        .17667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.1797        15.020        .16153E-03   -1.5211    
   5  norm          .83904        5.6058        .24908E-02   -1.5525    
   6  Prefactor     .10013E-03    95.564        .52792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.8243        8.4137        .15244E-03   -1.5317    
   8  norm          .15116        188.77        .34934E-02   -1.5630    
   9  Prefactor     .10000E-03    19.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     36.913        89.900        .65950E-04   -1.4492    
  12  Prefactor     .10003E-03    97.432        .43104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.4797        .12039E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          17.560        12.423        .95592E-04   -1.4870    
  15  Prefactor     10.841        17.661        .12161E-03   -1.5049    
  16  Prefactor     17.769        65.355        .95103E-04   -1.4865    
  17  norm          .10000E-03    9.6338        .17522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    94.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.7365        .13542E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    231.33        .41859E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    9.4198        .17363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    49.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.0276        .98174E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    138.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    55.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     114.23        45.342        .37644E-04   -1.3566    
  27  Prefactor     .10000E-03    3.9610        .11252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.4820        .32931        .25089E-03   -.78285    
  29  Prefactor     .64816        .21525        .25155E-03   -1.0560    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35052e-08
Minuit parameter uncertainties:
  1  10.2805
  2  0.000205462
  3  1.32028e-05
  4  15.0291
  5  4.33784
  6  0.00692595
  7  8.41625
  8  10.714
  9  5.60412e-05
  10  1.89413e-05
  11  90.2327
  12  0.00359732
  13  5.98957e-06
  14  12.4253
  15  17.67
  16  65.6201
  17  7.65196e-05
  18  0.000655652
  19  1.17045e-05
  20  0.00368054
  21  2.31992e-05
  22  0.000245348
  23  1.32609e-05
  24  0.0011656
  25  0.000555472
  26  45.3561
  27  9.60848e-06
  28  0.329785
  29  0.215525
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  2.320e-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.482e-01  2.155e-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.482e+00  3.298e-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.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.72e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/33169/likelihoodResults_498009601_498268801_4FGL_J2335.4-0128_daily_bin998.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) = 3354.90611927
delta logL = -0.000497657762025

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3354.90562207
delta logL = -4.58448994323e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10609E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4901       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4822       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64804       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=   3354.906     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      233 TOTAL
                     EDM=   .43E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    532.51        .17513E-01** at limit **
   2  alpha         1.5541        4.1590        .16461        .14331E-07
   3  Normalizat    1.4820        .47786E-01    .25089E-03    .23563E-05
   4  Prefactor     .64815        .33309E-01    .25155E-03    .27343E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.5541
  Normalizat = 1.48201
  Prefactor  = 0.648155
 **********
 **   18 **HESSE 
 **********

 FCN=   3354.906     FROM HESSE     STATUS=OK            23 CALLS      256 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.877        .20264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5541        3.1225        .65843E-02   -.38802    
   3  Normalizat    1.4820        .29927        .10036E-04   -.78285    
   4  Prefactor     .64815        .20860        .10062E-04   -1.0560    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51439e-11
Minuit parameter uncertainties:
  1  9.69543e-05
  2  570.968
  3  0.299622
  4  0.208851
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/33169': 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) = 3354.9056202
delta logL = 1.41036525747e-06

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  9.695e-05  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  1.554e+00  5.710e+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.482e-01  2.089e-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.482e+00  2.996e-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/33169/cmap_HighResolution_498009601_498268801_4FGL_J2335.4-0128_daily_bin998.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.72e-05', job_status='DONE', photon_flux_upper_limit='6.54e-08', time_completed='2021-09-30 00:34:28.809816', job_id='33169', GAL2='0.65', fit_tolerance='1e-08', EG2='1.48', EG='1.48', time_epoch_completed='1632987268.81', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='1.41e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='998' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:34:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 33169: <4FGL_J2335.4-0128_daily_bin998> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin998 353.869 -1.476 498009601 498268801 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 :                                   581.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             228.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            819 sec.

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

