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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin952
RA = 353.869, Dec = -1.476
tmin = 486086401, tmax = 486345601
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='33099', job_status='RUN', time_executed='2021-09-30 00:23:31.483935', time_epoch_executed='1632986611.48' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='952'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/33099

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/33099/ft1_4FGL_J2335.4-0128_daily_bin952.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/33099/ft2_4FGL_J2335.4-0128_daily_bin952.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/33099/ft1_4FGL_J2335.4-0128_daily_bin952.fits outfile=/scratch/kocevski/33099/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin952.fits ra=353.869 dec=-1.476 rad=12.0 tmin=486086401.0 tmax=486345601.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.85
user 3.61
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/33099/ft2_4FGL_J2335.4-0128_daily_bin952.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/33099/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin952.fits evtable="EVENTS" outfile="/scratch/kocevski/33099/ft1_filtered_4FGL_J2335.4-0128_daily_bin952.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/33099/ft1_filtered_4FGL_J2335.4-0128_daily_bin952.fits" evtable="EVENTS" scfile=/scratch/kocevski/33099/ft2_4FGL_J2335.4-0128_daily_bin952.fits sctable="SC_DATA" outfile=/scratch/kocevski/33099/ltcube_486086401_486345601_4FGL_J2335.4-0128_daily_bin952.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/33099/ft2_4FGL_J2335.4-0128_daily_bin952.fits
.....................!
real 11.75
user 11.39
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/33099/ft1_filtered_4FGL_J2335.4-0128_daily_bin952.fits evtable="EVENTS" scfile=/scratch/kocevski/33099/ft2_4FGL_J2335.4-0128_daily_bin952.fits sctable="SC_DATA" expcube=/scratch/kocevski/33099/ltcube_486086401_486345601_4FGL_J2335.4-0128_daily_bin952.fits outfile=/scratch/kocevski/33099/expmap_486086401_486345601_4FGL_J2335.4-0128_daily_bin952.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/33099/ltcube_486086401_486345601_4FGL_J2335.4-0128_daily_bin952.fits
.....................!
real 189.12
user 184.77
sys 4.04

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/33099/ft1_filtered_4FGL_J2335.4-0128_daily_bin952.fits scfile=/scratch/kocevski/33099/ft2_4FGL_J2335.4-0128_daily_bin952.fits outfile=/scratch/kocevski/33099/cmap_486086401_486345601_4FGL_J2335.4-0128_daily_bin952.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=353.869 yref=-1.476 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/33099/ft1_filtered_4FGL_J2335.4-0128_daily_bin952.fits scfile=/scratch/kocevski/33099/ft2_4FGL_J2335.4-0128_daily_bin952.fits outfile=/scratch/kocevski/33099/cmap_HighResolution_486086401_486345601_4FGL_J2335.4-0128_daily_bin952.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/33099/ft1_filtered_4FGL_J2335.4-0128_daily_bin952.fits evtable="EVENTS" scfile=/scratch/kocevski/33099/ft2_4FGL_J2335.4-0128_daily_bin952.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/33099/Model_4FGL_J2335.4-0128_daily_bin952.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/33099/ft1_filtered_4FGL_J2335.4-0128_daily_bin952.fits.....................!
real 58.46
user 57.20
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9698       1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.590       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .24634       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.845       1.0000         .10000E-03   10000.    
     5 'norm      '    3.5184       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    16.674       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11790E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.477       1.0000         .10000E-03   10000.    
    13 'norm      '    2.5397       1.0000         .10000E-03   10000.    
    14 'norm      '    .10106E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.4748       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11039E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.2888       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    34.379       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10135E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.3657       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    28.723       1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.5238       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2217       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .82461       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5330E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5759.981     FROM MIGRAD    STATUS=CONVERGED    146 CALLS     3111 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9699        5.7837        .30743E-06    .35172E-03
   2  Prefactor     16.584        1.4878        .23639E-06   -.27615E-03
   3  Prefactor     .28657E-03    6609.3        .11758E-03** at limit **
   4  Prefactor     10.846        6.5591       -.25024E-06   -.37028E-02
   5  norm          3.5371        3.0538        .47200E-06   -.39960E-04
   6  Prefactor     .10000E-03    9.7349        .43053E-06** at limit **
   7  norm          .10000E-03    5.9014       -.15329E-06** at limit **
   8  norm          16.677        4.5776       -.18217E-06    .87030E-02
   9  Prefactor     .10000E-03    8.6149        .16656E-06** at limit **
  10  Prefactor     .10003E-03    23.682       -.22336E-06** at limit **
  11  Prefactor     .16385E-02    107.09        .18331E-04** at limit **
  12  Prefactor     19.451        3.5684        .26382E-06   -.52062E-02
  13  norm          2.5398        1.1454       -.34116E-07   -.13724E-03
  14  norm          .10000E-03    5.4476        .82871E-08** at limit **
  15  Prefactor     2.4736        1.5883       -.13112E-07   -.10064E-02
  16  Prefactor     .10018E-03    129.08        .57808E-05** at limit **
  17  norm          4.2878        1.5060       -.18411E-07   -.18009E-03
  18  Prefactor     .10044E-03    105.80        .43327E-06** at limit **
  19  Prefactor     34.367        1.8503        .66153E-07   -.48433E-03
  20  Prefactor     .10013E-03    15.863       -.13275E-05** at limit **
  21  norm          .10000E-03    14.826       -.15858E-06** at limit **
  22  Prefactor     .10001E-03    8.1362        .19641E-06** at limit **
  23  Prefactor     4.3708        5.4289       -.21923E-06   -.38933E-03
  24  Prefactor     .10000E-03    7.5581       -.75618E-06** at limit **
  25  Prefactor     .10006E-03    9.6810       -.15030E-05** at limit **
  26  Prefactor     28.726        3.2501       -.73319E-07   -.29765E-02
  27  Prefactor     5.5233        1.3183        .10584E-06    .40327E-03
  28  Normalizat    1.2216        .25022       -.56056E-07   -.43622E-04
  29  Prefactor     .82480        .17362        .15317E-06   -.35546E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.96994
  Prefactor  = 16.5844
  Prefactor  = 0.000286572
  Prefactor  = 10.8455
  norm       = 3.5371
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 16.6765
  Prefactor  = 0.0001
  Prefactor  = 0.000100026
  Prefactor  = 0.00163846
  Prefactor  = 19.4511
  norm       = 2.53978
  norm       = 0.0001
  Prefactor  = 2.47363
  Prefactor  = 0.000100178
  norm       = 4.28779
  Prefactor  = 0.000100441
  Prefactor  = 34.3666
  Prefactor  = 0.000100129
  norm       = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 4.37084
  Prefactor  = 0.000100005
  Prefactor  = 0.000100058
  Prefactor  = 28.7256
  Prefactor  = 5.52332
  Normalizat = 1.2216
  Prefactor  = 0.824803
 **********
 **   18 **HESSE 
 **********

 FCN=   5759.981     FROM HESSE     STATUS=OK           625 CALLS     3736 TOTAL
                     EDM=   .52E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9699        5.9631        .50610E-02   -1.5309    
   2  Prefactor     16.584        41.874        .24583E-02   -1.4893    
   3  Prefactor     .28657E-03    15.788        .10187       -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.846        7.5400        .30414E-02   -1.5049    
   5  norm          3.5371        3.3256        .53881E-02   -1.5332    
   6  Prefactor     .10000E-03    9.7386        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    5.7864        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          16.677        15.856        .24521E-02   -1.4891    
   9  Prefactor     .10000E-03    8.6343        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10003E-03    25.276        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .16385E-02    95.574        .14381       -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     19.451        14.209        .22689E-02   -1.4826    
  13  norm          2.5398        1.1596        .64065E-02   -1.5389    
  14  norm          .10000E-03    5.3594        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.4736        7.5454        .64977E-02   -1.5393    
  16  Prefactor     .10018E-03    138.51        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.2878        8.5916        .48634E-02   -1.5294    
  18  Prefactor     .10044E-03    110.36        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     34.367        21.924        .17086E-02   -1.4535    
  20  Prefactor     .10013E-03    23.850        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    15.007        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    13.464        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.3708        7.5151        .48192E-02   -1.5290    
  24  Prefactor     .10000E-03    13.626        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10006E-03    24.579        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     28.726        19.914        .18689E-02   -1.4636    
  27  Prefactor     5.5233        7.8556        .42737E-02   -1.5238    
  28  Normalizat    1.2216        .22300        .62059E-01   -.85938    
  29  Prefactor     .82480        .14967        .44037E-01   -.98820    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.1568e-07
Minuit parameter uncertainties:
  1  5.96397
  2  41.9478
  3  0.108577
  4  7.54063
  5  3.32576
  6  5.42115e-05
  7  9.47469e-07
  8  15.8598
  9  4.84038e-05
  10  0.00163045
  11  0.768135
  12  14.211
  13  1.15964
  14  7.27412e-06
  15  7.54826
  16  0.00995039
  17  8.5941
  18  0.0139852
  19  21.929
  20  0.00351207
  21  0.000152902
  22  0.000827363
  23  7.51671
  24  0.000520172
  25  0.00239341
  26  19.9187
  27  7.85702
  28  0.22317
  29  0.149744
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  1.529e-04  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.248e-01  1.497e-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.222e+00  2.232e-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.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.91e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/33099/likelihoodResults_486086401_486345601_4FGL_J2335.4-0128_daily_bin952.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) = 5759.9816951
delta logL = -0.000317103858833

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5759.98137888
delta logL = -8.89582224772e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12511E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4893       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2216       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82481       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=   5759.981     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      193 TOTAL
                     EDM=   .51E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    15.294        .90712E-02** at limit **
   2  alpha         2.4956        3.5604        .41152       -.21467E-05
   3  Normalizat    1.2216        .20456        .62059E-01    .86345E-05
   4  Prefactor     .82480        .14757        .44039E-01    .11933E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.49558
  Normalizat = 1.2216
  Prefactor  = 0.824803
 **********
 **   18 **HESSE 
 **********

 FCN=   5759.981     FROM HESSE     STATUS=OK            33 CALLS      226 TOTAL
                     EDM=   .47E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    14.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4956        3.5516        .50000       -.17698E-02
   3  Normalizat    1.2216        .23654        .27450E-03   -.85938    
   4  Prefactor     .82480        .17073        .23467E-03   -.98820    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.72629e-12
Minuit parameter uncertainties:
  1  6.71782e-06
  2  2.50279
  3  0.236751
  4  0.17084
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/33099': 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) = 5759.981378
delta logL = -7.99991539679e-09

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  6.718e-06  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  2.496e+00  2.503e+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.248e-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:  1.222e+00  2.368e-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/33099/cmap_HighResolution_486086401_486345601_4FGL_J2335.4-0128_daily_bin952.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.91e-05', job_status='DONE', photon_flux_upper_limit='7.01e-08', time_completed='2021-09-30 00:35:15.269530', job_id='33099', GAL2='0.82', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1632987315.27', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='-8.00e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='952' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:35:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 33099: <4FGL_J2335.4-0128_daily_bin952> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin952> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 00:20:44 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:20:45 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:45 2021
Terminated at Thu Sep 30 00:35:16 2021
Results reported at Thu Sep 30 00:35:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin952 353.869 -1.476 486086401 486345601 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 :                                   699.10 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             276.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            872 sec.

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

