/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 116 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 = 7256
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2335.4-0128_daily_bin369
RA = 353.869, Dec = -1.476
tmin = 334972801, tmax = 335232001
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='30195', job_status='RUN', time_executed='2021-09-30 00:12:48.555572', time_epoch_executed='1632985968.56' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='369'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/30195

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/30195/ft1_4FGL_J2335.4-0128_daily_bin369.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/30195/ft2_4FGL_J2335.4-0128_daily_bin369.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/30195/ft1_4FGL_J2335.4-0128_daily_bin369.fits outfile=/scratch/kocevski/30195/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin369.fits ra=353.869 dec=-1.476 rad=12.0 tmin=334972801.0 tmax=335232001.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.36
user 3.15
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/30195/ft1_filtered_4FGL_J2335.4-0128_daily_bin369.fits" evtable="EVENTS" scfile=/scratch/kocevski/30195/ft2_4FGL_J2335.4-0128_daily_bin369.fits sctable="SC_DATA" outfile=/scratch/kocevski/30195/ltcube_334972801_335232001_4FGL_J2335.4-0128_daily_bin369.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/30195/ft2_4FGL_J2335.4-0128_daily_bin369.fits
.....................!
real 11.74
user 11.40
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/30195/ft1_filtered_4FGL_J2335.4-0128_daily_bin369.fits evtable="EVENTS" scfile=/scratch/kocevski/30195/ft2_4FGL_J2335.4-0128_daily_bin369.fits sctable="SC_DATA" expcube=/scratch/kocevski/30195/ltcube_334972801_335232001_4FGL_J2335.4-0128_daily_bin369.fits outfile=/scratch/kocevski/30195/expmap_334972801_335232001_4FGL_J2335.4-0128_daily_bin369.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/30195/ltcube_334972801_335232001_4FGL_J2335.4-0128_daily_bin369.fits
.....................!
real 193.49
user 187.68
sys 5.47

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/30195/ft1_filtered_4FGL_J2335.4-0128_daily_bin369.fits scfile=/scratch/kocevski/30195/ft2_4FGL_J2335.4-0128_daily_bin369.fits outfile=/scratch/kocevski/30195/cmap_334972801_335232001_4FGL_J2335.4-0128_daily_bin369.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/30195/ft1_filtered_4FGL_J2335.4-0128_daily_bin369.fits scfile=/scratch/kocevski/30195/ft2_4FGL_J2335.4-0128_daily_bin369.fits outfile=/scratch/kocevski/30195/cmap_HighResolution_334972801_335232001_4FGL_J2335.4-0128_daily_bin369.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/30195/ft1_filtered_4FGL_J2335.4-0128_daily_bin369.fits evtable="EVENTS" scfile=/scratch/kocevski/30195/ft2_4FGL_J2335.4-0128_daily_bin369.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/30195/Model_4FGL_J2335.4-0128_daily_bin369.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/30195/ft1_filtered_4FGL_J2335.4-0128_daily_bin369.fits.....................!
real 55.77
user 54.54
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4448       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.175       1.0000         .10000E-03   10000.    
     5 'norm      '    1.8228       1.0000         .10000E-03   10000.    
     6 'Prefactor '    36.689       1.0000         .10000E-03   10000.    
     7 'norm      '    .10509       1.0000         .10000E-03   10000.    
     8 'norm      '    11.599       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.842       1.0000         .10000E-03   10000.    
    11 'Prefactor '    41.531       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .28703E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.2326       1.0000         .10000E-03   10000.    
    14 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .65800E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    49.046       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10271E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.6779       1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.092       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    59.754       1.0000         .10000E-03   10000.    
    23 'Prefactor '    31.683       1.0000         .10000E-03   10000.    
    24 'Prefactor '    171.15       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    24.254       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .93247       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .96553       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=   5313.365     FROM MIGRAD    STATUS=CONVERGED    749 CALLS     3844 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4449        6.9850        .47170E-06   -.17772E-04
   2  Prefactor     .10000E-03    26.609       -.61779E-07** at limit **
   3  Prefactor     .10000E-03    17.453        .11597E-05** at limit **
   4  Prefactor     14.200        9.4528       -.12801E-06   -.65734E-04
   5  norm          1.8230        2.2863        .81694E-07   -.93757E-04
   6  Prefactor     36.712        25.605       -.42341E-06   -.30467E-04
   7  norm          .80090E-01    3.8509       -.49039E-06    .56532E-03
   8  norm          11.600        11.645        .38876E-07    .31629E-06
   9  Prefactor     .10000E-03    13.865       -.30514E-06** at limit **
  10  Prefactor     21.845        20.726       -.19958E-06   -.11852E-05
  11  Prefactor     41.507        66.628        .44163E-05   -.86652E-05
  12  Prefactor     .10034E-03    10.451       -.11593E-05** at limit **
  13  norm          2.2327        1.2943        .56583E-07   -.28520E-04
  14  norm          .10000E-03    13.556       -.58952E-06** at limit **
  15  Prefactor     .11648        8.8847        .25102E-06   -.13446E-03
  16  Prefactor     49.050        69.283        .73486E-06    .66286E-05
  17  norm          .10000E-03    4.1163       -.17314E-07** at limit **
  18  Prefactor     .10000E-03    147.23        .24491E-05** at limit **
  19  Prefactor     3.6787        11.701       -.15183E-06   -.22456E-04
  20  Prefactor     20.077        24.884       -.52008E-06   -.23351E-04
  21  norm          .10000E-03    18.605       -.97448E-06** at limit **
  22  Prefactor     59.739        73.300       -.71023E-06   -.58782E-05
  23  Prefactor     31.683        8.4282        .11361E-06    .65655E-04
  24  Prefactor     171.16        64.196        .10365E-05    .24532E-04
  25  Prefactor     .10000E-03    12.834        .55966E-06** at limit **
  26  Prefactor     24.255        17.973       -.19253E-06   -.80402E-05
  27  Prefactor     .10000E-03    8.0430       -.63782E-07** at limit **
  28  Normalizat    .93252        .24648        .15038E-05   -.36106E-04
  29  Prefactor     .96543        .16627       -.48844E-06    .39813E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.44486
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.2003
  norm       = 1.82301
  Prefactor  = 36.7122
  norm       = 0.0800901
  norm       = 11.6002
  Prefactor  = 0.0001
  Prefactor  = 21.8448
  Prefactor  = 41.5069
  Prefactor  = 0.000100344
  norm       = 2.23273
  norm       = 0.0001
  Prefactor  = 0.116477
  Prefactor  = 49.05
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.67873
  Prefactor  = 20.0766
  norm       = 0.0001
  Prefactor  = 59.7388
  Prefactor  = 31.6831
  Prefactor  = 171.163
  Prefactor  = 0.0001
  Prefactor  = 24.2553
  Prefactor  = 0.0001
  Normalizat = 0.932519
  Prefactor  = 0.965429
 **********
 **   18 **HESSE 
 **********

 FCN=   5313.365     FROM HESSE     STATUS=OK           567 CALLS     4411 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4449        6.9363        .21792E-03   -1.5337    
   2  Prefactor     .10000E-03    26.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    17.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.200        13.198        .10638E-03   -1.4954    
   5  norm          1.8230        2.2690        .11834E-03   -1.5438    
   6  Prefactor     36.712        27.009        .66165E-04   -1.4495    
   7  norm          .80090E-01    154.91        .22846E-02   -1.5651    
   8  norm          11.600        11.648        .11763E-03   -1.5027    
   9  Prefactor     .10000E-03    13.870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     21.845        20.736        .85704E-04   -1.4773    
  11  Prefactor     41.507        67.264        .62203E-04   -1.4419    
  12  Prefactor     .10034E-03    101.44        .40464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.2327        1.2874        .59569E-04   -1.5409    
  14  norm          .10000E-03    13.887        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .11648        15.725        .63718E-01   -1.5640    
  16  Prefactor     49.050        69.220        .57260E-04   -1.4306    
  17  norm          .10000E-03    4.1309        .14435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    146.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.6787        11.631        .21061E-03   -1.5324    
  20  Prefactor     20.077        24.915        .89355E-04   -1.4812    
  21  norm          .10000E-03    18.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     59.739        73.093        .51903E-04   -1.4161    
  23  Prefactor     31.683        8.4173        .71185E-04   -1.4582    
  24  Prefactor     171.16        64.005        .30841E-04   -1.3084    
  25  Prefactor     .10000E-03    12.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     24.255        17.983        .81338E-04   -1.4723    
  27  Prefactor     .10000E-03    8.1118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .93252        .28204        .31969E-03   -.95327    
  29  Prefactor     .96543        .19200        .22921E-03   -.93891    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63473e-08
Minuit parameter uncertainties:
  1  6.93795
  2  1.3556e-05
  3  5.89405e-06
  4  13.2004
  5  2.26913
  6  27.018
  7  7.05869
  8  11.6508
  9  1.043e-05
  10  20.7423
  11  67.3873
  12  0.0118418
  13  1.2874
  14  6.99923e-05
  15  2.70628
  16  69.3334
  17  2.91724e-06
  18  0.000107461
  19  11.6381
  20  24.9283
  21  2.67983e-05
  22  73.2026
  23  8.41765
  24  64.0311
  25  1.04823e-05
  26  17.9871
  27  1.08061e-05
  28  0.282487
  29  0.192133
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  2.680e-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:  9.654e-01  1.921e-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.325e-01  2.825e-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.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.98e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/30195/likelihoodResults_334972801_335232001_4FGL_J2335.4-0128_daily_bin369.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) = 5313.36560739
delta logL = -0.000256527972851

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5313.36535692
delta logL = -6.06352841714e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3307       1.0000          .0000       5.0000    
     3 'Normalizat'    .93252       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96543       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=   5313.365     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      275 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    662.49        .17487E-01** at limit **
   2  alpha         1.7797        3.1640        .17789       -.18726E-07
   3  Normalizat    .93252        .27561E-01    .31969E-03    .43080E-03
   4  Prefactor     .96543        .20207E-01    .22921E-03    .60267E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  alpha      = 1.77971
  Normalizat = 0.932522
  Prefactor  = 0.965429
 **********
 **   18 **HESSE 
 **********

 FCN=   5313.365     FROM HESSE     STATUS=OK            23 CALLS      298 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    32.223        .34974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7797        2.8548        .71154E-02   -.29226    
   3  Normalizat    .93252        .25501        .63938E-04   -.95327    
   4  Prefactor     .96543        .18707        .45843E-04   -.93891    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.02823e-10
Minuit parameter uncertainties:
  1  0.000552617
  2  516.787
  3  0.25534
  4  0.187197
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/30195': 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) = 5313.36534974
delta logL = 1.11672216008e-06

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  5.526e-04  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  1.780e+00  5.168e+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:  9.654e-01  1.872e-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.325e-01  2.553e-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/30195/cmap_HighResolution_334972801_335232001_4FGL_J2335.4-0128_daily_bin369.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.98e-05', job_status='DONE', photon_flux_upper_limit='7.17e-08', time_completed='2021-09-30 00:24:56.219898', job_id='30195', GAL2='0.97', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1632986696.22', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.12e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='369' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:24:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 30195: <4FGL_J2335.4-0128_daily_bin369> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin369> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 00:10:40 2021
Job was executed on host(s) <bullet0253>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:10:42 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:10:42 2021
Terminated at Thu Sep 30 00:24:57 2021
Results reported at Thu Sep 30 00:24:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin369 353.869 -1.476 334972801 335232001 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 :                                   727.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             294.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            857 sec.

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

