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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin1476
RA = 353.869, Dec = -1.476
tmin = 621907201, tmax = 622166401
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='35441', job_status='RUN', time_executed='2021-09-30 00:32:15.029995', time_epoch_executed='1632987135.03' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='1476'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/35441

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/35441/ft1_4FGL_J2335.4-0128_daily_bin1476.fits


Retrieving the FT1 file...

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

Retrieving 42 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/35441/ft2_4FGL_J2335.4-0128_daily_bin1476.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/35441/ft1_4FGL_J2335.4-0128_daily_bin1476.fits outfile=/scratch/kocevski/35441/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin1476.fits ra=353.869 dec=-1.476 rad=12.0 tmin=621907201.0 tmax=622166401.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.49
user 3.30
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/35441/ft1_filtered_4FGL_J2335.4-0128_daily_bin1476.fits" evtable="EVENTS" scfile=/scratch/kocevski/35441/ft2_4FGL_J2335.4-0128_daily_bin1476.fits sctable="SC_DATA" outfile=/scratch/kocevski/35441/ltcube_621907201_622166401_4FGL_J2335.4-0128_daily_bin1476.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/35441/ft2_4FGL_J2335.4-0128_daily_bin1476.fits
.....................!
real 10.21
user 9.87
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/35441/ft1_filtered_4FGL_J2335.4-0128_daily_bin1476.fits evtable="EVENTS" scfile=/scratch/kocevski/35441/ft2_4FGL_J2335.4-0128_daily_bin1476.fits sctable="SC_DATA" expcube=/scratch/kocevski/35441/ltcube_621907201_622166401_4FGL_J2335.4-0128_daily_bin1476.fits outfile=/scratch/kocevski/35441/expmap_621907201_622166401_4FGL_J2335.4-0128_daily_bin1476.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/35441/ltcube_621907201_622166401_4FGL_J2335.4-0128_daily_bin1476.fits
.....................!
real 190.88
user 185.88
sys 4.59

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/35441/ft1_filtered_4FGL_J2335.4-0128_daily_bin1476.fits scfile=/scratch/kocevski/35441/ft2_4FGL_J2335.4-0128_daily_bin1476.fits outfile=/scratch/kocevski/35441/cmap_621907201_622166401_4FGL_J2335.4-0128_daily_bin1476.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/35441/ft1_filtered_4FGL_J2335.4-0128_daily_bin1476.fits scfile=/scratch/kocevski/35441/ft2_4FGL_J2335.4-0128_daily_bin1476.fits outfile=/scratch/kocevski/35441/cmap_HighResolution_621907201_622166401_4FGL_J2335.4-0128_daily_bin1476.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/35441/ft1_filtered_4FGL_J2335.4-0128_daily_bin1476.fits evtable="EVENTS" scfile=/scratch/kocevski/35441/ft2_4FGL_J2335.4-0128_daily_bin1476.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/35441/Model_4FGL_J2335.4-0128_daily_bin1476.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/35441/ft1_filtered_4FGL_J2335.4-0128_daily_bin1476.fits.....................!
real 51.52
user 50.10
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23243E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    97.131       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    35.546       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.4410       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .60704       1.0000         .10000E-03   10000.    
    14 'norm      '    3.5658       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    44.753       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    167.34       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.469       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    27.364       1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.320       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.8356       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .92797       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .81549       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=   4736.449     FROM MIGRAD    STATUS=CONVERGED    698 CALLS     3642 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.4973       -.50675E-06** at limit **
   2  Prefactor     .10000E-03    24.125       -.73745E-05** at limit **
   3  Prefactor     .10000E-03    21.430       -.77674E-05** at limit **
   4  Prefactor     .10000E-03    2.3407       -.18291E-06** at limit **
   5  norm          .10000E-03    1.5530       -.12222E-06** at limit **
   6  Prefactor     .10000E-03    10.888       -.46884E-05** at limit **
   7  norm          .10000E-03    1.5561       -.51109E-07** at limit **
   8  norm          97.132        24.333        .25594E-06    .21870E-05
   9  Prefactor     .10000E-03    27.589        .11106E-05** at limit **
  10  Prefactor     35.547        28.586        .77577E-06    .53367E-06
  11  Prefactor     5.4084        34.201       -.46239E-04   -.46305E-04
  12  Prefactor     .10001E-03    5.7045        .17356E-05** at limit **
  13  norm          .60693        .71915        .56629E-08    .15839E-03
  14  norm          3.5635        4.6287        .93326E-06   -.16779E-03
  15  Prefactor     .10000E-03    7.3248       -.28579E-05** at limit **
  16  Prefactor     44.728        58.832       -.30470E-04   -.77775E-05
  17  norm          .10000E-03    8.5899        .17057E-05** at limit **
  18  Prefactor     167.34        177.97        .40076E-05   -.87898E-05
  19  Prefactor     12.473        18.244        .26163E-05   -.14444E-03
  20  Prefactor     .10000E-03    53.661       -.55766E-06** at limit **
  21  norm          .10000E-03    15.852        .11621E-04** at limit **
  22  Prefactor     27.361        44.885       -.39847E-05   -.45065E-05
  23  Prefactor     15.321        8.9445       -.10517E-05   -.43647E-03
  24  Prefactor     .10000E-03    21.398       -.70474E-05** at limit **
  25  Prefactor     .10000E-03    30.897        .13008E-04** at limit **
  26  Prefactor     2.8500        77.973        .28308E-04   -.16379E-04
  27  Prefactor     .10000E-03    7.5777        .30268E-05** at limit **
  28  Normalizat    .92782        .22669       -.20088E-05   -.10878E-04
  29  Prefactor     .81556        .15213        .26439E-05   -.25081E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 97.132
  Prefactor  = 0.0001
  Prefactor  = 35.547
  Prefactor  = 5.40839
  Prefactor  = 0.000100007
  norm       = 0.606927
  norm       = 3.56355
  Prefactor  = 0.0001
  Prefactor  = 44.7282
  norm       = 0.0001
  Prefactor  = 167.341
  Prefactor  = 12.4728
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 27.3608
  Prefactor  = 15.3208
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.84997
  Prefactor  = 0.0001
  Normalizat = 0.927821
  Prefactor  = 0.815563
 **********
 **   18 **HESSE 
 **********

 FCN=   4736.449     FROM HESSE     STATUS=OK           547 CALLS     4189 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.991        .34004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    24.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    21.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.3460        .10282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.5684        .83672E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.5669        .83823E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          97.132        24.315        .40786E-04   -1.3734    
   9  Prefactor     .10000E-03    27.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     35.547        28.574        .67217E-04   -1.4515    
  11  Prefactor     5.4084        34.345        .17227E-03   -1.5243    
  12  Prefactor     .10001E-03    5.7798        .16054E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .60693        .69226        .60716E-03   -1.5552    
  14  norm          3.5635        4.6050        .16192E-03   -1.5330    
  15  Prefactor     .10000E-03    7.3948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     44.728        58.694        .59931E-04   -1.4369    
  17  norm          .10000E-03    8.6644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     167.34        177.88        .15592E-03   -1.3113    
  19  Prefactor     12.473        18.148        .11344E-03   -1.5001    
  20  Prefactor     .10000E-03    54.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    15.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     27.361        44.877        .76584E-04   -1.4661    
  23  Prefactor     15.321        8.9223        .10233E-03   -1.4925    
  24  Prefactor     .10000E-03    21.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    31.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     2.8500        76.773        .24149E-03   -1.5370    
  27  Prefactor     .10000E-03    7.6863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .92782        .25847        .28039E-03   -.95489    
  29  Prefactor     .81556        .17421        .21481E-03   -.99157    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72946e-09
Minuit parameter uncertainties:
  1  0.000329278
  2  3.64293e-05
  3  0.000193434
  4  9.7158e-06
  5  1.77973e-05
  6  1.20537e-05
  7  6.25082e-06
  8  24.3171
  9  1.43616e-06
  10  28.5845
  11  27.2809
  12  0.000406346
  13  0.692269
  14  4.60549
  15  5.6206e-07
  16  58.7698
  17  8.69172e-06
  18  178.456
  19  18.1564
  20  2.80151e-05
  21  4.23095e-06
  22  44.9322
  23  8.92306
  24  1.39939e-05
  25  0.000111457
  26  29.6256
  27  2.42606e-05
  28  0.258821
  29  0.174331
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  4.231e-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:  8.156e-01  1.743e-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:  9.278e-01  2.588e-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: 7.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.28e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/35441/likelihoodResults_621907201_622166401_4FGL_J2335.4-0128_daily_bin1476.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): 0
logL (Free Index) = 4736.44897863
delta logL = -0.000300505899759

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4736.44867822
delta logL = -9.11086317501e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4796       1.0000          .0000       5.0000    
     3 'Normalizat'    .92785       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81557       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.

 FCN=   4736.449     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      188 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    17.064        .90712E-02** at limit **
   2  alpha         2.4930        3.5794        .41153       -.44544E-05
   3  Normalizat    .92782        .20603        .45256E-01    .16449E-04
   4  Prefactor     .81557        .14981        .43920E-01    .12886E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.49297
  Normalizat = 0.927818
  Prefactor  = 0.815566
 **********
 **   18 **HESSE 
 **********

 FCN=   4736.449     FROM HESSE     STATUS=OK            33 CALLS      221 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    15.740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4930        3.5523        .50000       -.28109E-02
   3  Normalizat    .92782        .23464        .28039E-03   -.95489    
   4  Prefactor     .81557        .17065        .21481E-03   -.99157    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99431e-11
Minuit parameter uncertainties:
  1  6.08339e-06
  2  2.50786
  3  0.234895
  4  0.170756
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/35441': 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) = 4736.44867815
delta logL = -2.12130544242e-08

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  6.083e-06  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  2.493e+00  2.508e+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.156e-01  1.708e-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:  9.278e-01  2.349e-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/35441/cmap_HighResolution_621907201_622166401_4FGL_J2335.4-0128_daily_bin1476.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.28e-05', job_status='DONE', photon_flux_upper_limit='7.90e-08', time_completed='2021-09-30 00:43:02.204811', job_id='35441', GAL2='0.82', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1632987782.2', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='-2.12e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='1476' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:43:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 35441: <4FGL_J2335.4-0128_daily_bin1476> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin1476> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep 30 00:30:19 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:30:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 00:30:21 2021
Terminated at Thu Sep 30 00:43:02 2021
Results reported at Thu Sep 30 00:43:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin1476 353.869 -1.476 621907201 622166401 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 :                                   644.06 sec.
    Max Memory :                                 1117 MB
    Average Memory :                             264.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   761 sec.
    Turnaround time :                            763 sec.

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

