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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin560
RA = 353.869, Dec = -1.476
tmin = 384480001, tmax = 384739201
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='31475', job_status='RUN', time_executed='2021-09-30 00:19:45.583505', time_epoch_executed='1632986385.58' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='560'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31475

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31475/ft1_4FGL_J2335.4-0128_daily_bin560.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31475/ft2_4FGL_J2335.4-0128_daily_bin560.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31475/ft1_4FGL_J2335.4-0128_daily_bin560.fits outfile=/scratch/kocevski/31475/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin560.fits ra=353.869 dec=-1.476 rad=12.0 tmin=384480001.0 tmax=384739201.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.90
user 3.69
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/31475/ft1_filtered_4FGL_J2335.4-0128_daily_bin560.fits" evtable="EVENTS" scfile=/scratch/kocevski/31475/ft2_4FGL_J2335.4-0128_daily_bin560.fits sctable="SC_DATA" outfile=/scratch/kocevski/31475/ltcube_384480001_384739201_4FGL_J2335.4-0128_daily_bin560.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/31475/ft2_4FGL_J2335.4-0128_daily_bin560.fits
.....................!
real 11.70
user 11.35
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31475/ft1_filtered_4FGL_J2335.4-0128_daily_bin560.fits evtable="EVENTS" scfile=/scratch/kocevski/31475/ft2_4FGL_J2335.4-0128_daily_bin560.fits sctable="SC_DATA" expcube=/scratch/kocevski/31475/ltcube_384480001_384739201_4FGL_J2335.4-0128_daily_bin560.fits outfile=/scratch/kocevski/31475/expmap_384480001_384739201_4FGL_J2335.4-0128_daily_bin560.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/31475/ltcube_384480001_384739201_4FGL_J2335.4-0128_daily_bin560.fits
.....................!
real 190.60
user 184.84
sys 5.45

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/31475/ft1_filtered_4FGL_J2335.4-0128_daily_bin560.fits scfile=/scratch/kocevski/31475/ft2_4FGL_J2335.4-0128_daily_bin560.fits outfile=/scratch/kocevski/31475/cmap_384480001_384739201_4FGL_J2335.4-0128_daily_bin560.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.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/31475/ft1_filtered_4FGL_J2335.4-0128_daily_bin560.fits scfile=/scratch/kocevski/31475/ft2_4FGL_J2335.4-0128_daily_bin560.fits outfile=/scratch/kocevski/31475/cmap_HighResolution_384480001_384739201_4FGL_J2335.4-0128_daily_bin560.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/31475/ft1_filtered_4FGL_J2335.4-0128_daily_bin560.fits evtable="EVENTS" scfile=/scratch/kocevski/31475/ft2_4FGL_J2335.4-0128_daily_bin560.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/31475/Model_4FGL_J2335.4-0128_daily_bin560.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/31475/ft1_filtered_4FGL_J2335.4-0128_daily_bin560.fits.....................!
real 68.93
user 67.59
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.480       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.5071       1.0000         .10000E-03   10000.    
     7 'norm      '    6.4232       1.0000         .10000E-03   10000.    
     8 'norm      '    21.628       1.0000         .10000E-03   10000.    
     9 'Prefactor '    52.297       1.0000         .10000E-03   10000.    
    10 'Prefactor '    40.907       1.0000         .10000E-03   10000.    
    11 'Prefactor '    40.743       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10333E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    8.0083       1.0000         .10000E-03   10000.    
    14 'norm      '    13.793       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.4901       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.653       1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    200.37       1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.908       1.0000         .10000E-03   10000.    
    20 'Prefactor '    32.840       1.0000         .10000E-03   10000.    
    21 'norm      '    37.898       1.0000         .10000E-03   10000.    
    22 'Prefactor '    130.88       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    59.778       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .71093E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.0165       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2307       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .93621       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=   6700.829     FROM MIGRAD    STATUS=CONVERGED    700 CALLS     3738 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.8946        .22855E-08** at limit **
   2  Prefactor     .10000E-03    16.604        .64484E-08** at limit **
   3  Prefactor     21.468        20.256       -.63035E-06   -.79803E-04
   4  Prefactor     .10000E-03    2.8210        .18607E-07** at limit **
   5  norm          .10000E-03    2.3996        .99379E-06** at limit **
   6  Prefactor     2.5033        59.342        .19875E-05    .39902E-04
   7  norm          6.4225        5.0882       -.29271E-06   -.88674E-04
   8  norm          21.631        20.815       -.35626E-06   -.39739E-04
   9  Prefactor     52.305        38.151       -.57737E-07   -.83530E-05
  10  Prefactor     40.913        24.293       -.60528E-07   -.27131E-04
  11  Prefactor     40.738        53.820       -.72523E-06   -.15348E-04
  12  Prefactor     .10000E-03    5.4886       -.55014E-06** at limit **
  13  norm          8.0082        2.0835       -.84796E-07   -.52764E-03
  14  norm          13.793        10.059       -.79377E-08   -.32885E-04
  15  Prefactor     5.4909        6.3662       -.75005E-07   -.20947E-04
  16  Prefactor     11.662        40.241        .21340E-06    .45078E-05
  17  norm          .10000E-03    3.8272        .77577E-07** at limit **
  18  Prefactor     200.57        194.13        .49186E-06    .14814E-04
  19  Prefactor     15.892        19.426       -.37824E-06   -.25835E-04
  20  Prefactor     32.829        28.605       -.26872E-06    .48788E-04
  21  norm          37.899        32.305        .55171E-07   -.33194E-04
  22  Prefactor     130.76        93.037       -.91808E-06   -.48030E-04
  23  Prefactor     .10000E-03    2.4133        .13553E-05** at limit **
  24  Prefactor     59.731        44.291       -.42316E-06    .64151E-04
  25  Prefactor     .10160E-03    48.604       -.62579E-05** at limit **
  26  Prefactor     .10000E-03    6.5945        .23878E-06** at limit **
  27  Prefactor     8.0142        7.9211       -.25405E-06   -.18975E-04
  28  Normalizat    1.2314        .27582        .50437E-05    .19003E-03
  29  Prefactor     .93558        .18251       -.36539E-05    .12577E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.4681
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.5033
  norm       = 6.42248
  norm       = 21.6309
  Prefactor  = 52.3053
  Prefactor  = 40.9129
  Prefactor  = 40.7376
  Prefactor  = 0.0001
  norm       = 8.00819
  norm       = 13.7931
  Prefactor  = 5.49087
  Prefactor  = 11.662
  norm       = 0.0001
  Prefactor  = 200.568
  Prefactor  = 15.892
  Prefactor  = 32.829
  norm       = 37.8987
  Prefactor  = 130.764
  Prefactor  = 0.000100001
  Prefactor  = 59.731
  Prefactor  = 0.000101595
  Prefactor  = 0.0001
  Prefactor  = 8.01424
  Normalizat = 1.23137
  Prefactor  = 0.935577
 **********
 **   18 **HESSE 
 **********

 FCN=   6700.829     FROM HESSE     STATUS=OK           561 CALLS     4299 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.9048        .15776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     21.468        20.312        .86424E-04   -1.4781    
   4  Prefactor     .10000E-03    2.8233        .13411E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.5107        .24930E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.5033        58.106        .25807E-03   -1.5392    
   7  norm          6.4225        5.0223        .14364E-03   -1.5201    
   8  norm          21.631        20.781        .86127E-04   -1.4777    
   9  Prefactor     52.305        38.137        .55460E-04   -1.4260    
  10  Prefactor     40.913        24.279        .62674E-04   -1.4428    
  11  Prefactor     40.738        53.768        .62799E-04   -1.4431    
  12  Prefactor     .10000E-03    5.5113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.0082        2.0836        .54182E-04   -1.5142    
  14  norm          13.793        10.045        .10785E-03   -1.4965    
  15  Prefactor     5.4909        6.3619        .17148E-03   -1.5239    
  16  Prefactor     11.662        40.211        .11735E-03   -1.5025    
  17  norm          .10000E-03    3.8425        .15637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     200.57        194.30        .14273E-03   -1.2866    
  19  Prefactor     15.892        19.416        .10042E-03   -1.4910    
  20  Prefactor     32.829        28.563        .69924E-04   -1.4561    
  21  norm          37.899        32.273        .65105E-04   -1.4476    
  22  Prefactor     130.76        93.126        .17597E-03   -1.3416    
  23  Prefactor     .10000E-03    2.5422        .12699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     59.731        44.085        .25946E-03   -1.4161    
  25  Prefactor     .10160E-03    196.36        .79455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    6.6078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     8.0142        7.9238        .14161E-03   -1.5142    
  28  Normalizat    1.2314        .28742        .32560E-03   -.85639    
  29  Prefactor     .93558        .18917        .25994E-03   -.94909    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.28397e-09
Minuit parameter uncertainties:
  1  4.3729e-07
  2  2.03983e-06
  3  20.3184
  4  7.52332e-08
  5  6.22696e-05
  6  24.1471
  7  5.02263
  8  20.7879
  9  38.1546
  10  24.2846
  11  53.8322
  12  5.22352e-05
  13  2.08364
  14  10.0463
  15  6.36268
  16  40.3051
  17  7.15805e-06
  18  194.923
  19  19.4235
  20  28.5745
  21  32.2875
  22  93.2307
  23  8.7584e-05
  24  44.1088
  25  0.0355132
  26  2.39896e-05
  27  7.92487
  28  0.28779
  29  0.189307
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  3.790e+01  3.229e+01  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.356e-01  1.893e-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.231e+00  2.878e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.46
Ra Dec: 353.869 -1.476
Photon Index (Fixed Index): 2.50 +/- 0.00
Photon Flux (Fixed Index): 4.67e-08 +/- 3.98e-08
Energy Flux (Fixed Index): 1.94e-05 +/- 1.65e-05

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) = 6700.29995202
delta logL = 0.528779596621

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6700.29713506
delta logL = 0.531596548572

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    37.899       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5097       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2506       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93361       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=   6700.297     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      210 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          38.510        33.037        .16276E-02    .50501E-05
   2  alpha         1.5181        .79829        .46236       -.25359E-05
   3  Normalizat    1.2507        .22852        .73174E-01   -.69324E-04
   4  Prefactor     .93342        .16209        .45432E-01    .22013E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 38.51
  alpha      = 1.51806
  Normalizat = 1.25065
  Prefactor  = 0.933422
 **********
 **   18 **HESSE 
 **********

 FCN=   6700.297     FROM HESSE     STATUS=OK            31 CALLS      241 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          38.510        37.210        .65104E-04   -1.4466    
   2  alpha         1.5181        .94522        .27778E-01   -.40365    
   3  Normalizat    1.2507        .26183        .32381E-03   -.85052    
   4  Prefactor     .93342        .18653        .26050E-03   -.94983    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.49192e-11
Minuit parameter uncertainties:
  1  37.2329
  2  0.974107
  3  0.262108
  4  0.186662
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31475': 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) = 6700.29700549
delta logL = 0.531726119298

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  3.851e+01  3.723e+01  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  1.518e+00  9.741e-01  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.334e-01  1.867e-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.251e+00  2.621e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.56
Ra Dec: 353.869 -1.476
Photon Index (Free Index): 1.52 +/- 0.97
Photon Flux (Free Index): 1.65e-08 +/- 2.22e-08
Energy Flux (Free Index): 2.12e-05 +/- 1.91e-05

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/31475/cmap_HighResolution_384480001_384739201_4FGL_J2335.4-0128_daily_bin560.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.67e-08', energy_flux2='2.12e-05', photon_flux_error='3.98e-08', dlogl='5.32e-01', energy_flux='1.94e-05', photon_flux2='1.65e-08', job_status='DONE', time_completed='2021-09-30 00:31:36.172827', photon_index_error2='0.97', photon_index2='1.52', ts='6.46', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='1.91e-05', EG='1.23', time_epoch_completed='1632987096.17', return_code='0', job_id='31475', GAL2='0.93', EG2='1.25', return_code2='0', energy_flux_error='1.65e-05', photon_flux_error2='2.22e-08', ts2='7.56', photon_index='2.50' WHERE bin_id='560' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:31:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 31475: <4FGL_J2335.4-0128_daily_bin560> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin560> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep 30 00:15:38 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:15:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 00:15:40 2021
Terminated at Thu Sep 30 00:31:36 2021
Results reported at Thu Sep 30 00:31:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin560 353.869 -1.476 384480001 384739201 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 :                                   711.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             248.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   956 sec.
    Turnaround time :                            958 sec.

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

