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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin464
RA = 353.869, Dec = -1.476
tmin = 359596801, tmax = 359856001
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='31325', job_status='RUN', time_executed='2021-09-30 00:19:26.979411', time_epoch_executed='1632986366.98' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='464'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31325

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31325/ft1_4FGL_J2335.4-0128_daily_bin464.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31325/ft2_4FGL_J2335.4-0128_daily_bin464.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31325/ft1_4FGL_J2335.4-0128_daily_bin464.fits outfile=/scratch/kocevski/31325/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin464.fits ra=353.869 dec=-1.476 rad=12.0 tmin=359596801.0 tmax=359856001.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.76
user 3.54
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/31325/ft2_4FGL_J2335.4-0128_daily_bin464.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/31325/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin464.fits evtable="EVENTS" outfile="/scratch/kocevski/31325/ft1_filtered_4FGL_J2335.4-0128_daily_bin464.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.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/31325/ft1_filtered_4FGL_J2335.4-0128_daily_bin464.fits" evtable="EVENTS" scfile=/scratch/kocevski/31325/ft2_4FGL_J2335.4-0128_daily_bin464.fits sctable="SC_DATA" outfile=/scratch/kocevski/31325/ltcube_359596801_359856001_4FGL_J2335.4-0128_daily_bin464.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/31325/ft2_4FGL_J2335.4-0128_daily_bin464.fits
.....................!
real 11.53
user 11.18
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31325/ft1_filtered_4FGL_J2335.4-0128_daily_bin464.fits evtable="EVENTS" scfile=/scratch/kocevski/31325/ft2_4FGL_J2335.4-0128_daily_bin464.fits sctable="SC_DATA" expcube=/scratch/kocevski/31325/ltcube_359596801_359856001_4FGL_J2335.4-0128_daily_bin464.fits outfile=/scratch/kocevski/31325/expmap_359596801_359856001_4FGL_J2335.4-0128_daily_bin464.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/31325/ltcube_359596801_359856001_4FGL_J2335.4-0128_daily_bin464.fits
.....................!
real 190.07
user 185.36
sys 4.31

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

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

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/31325/ft1_filtered_4FGL_J2335.4-0128_daily_bin464.fits scfile=/scratch/kocevski/31325/ft2_4FGL_J2335.4-0128_daily_bin464.fits outfile=/scratch/kocevski/31325/cmap_HighResolution_359596801_359856001_4FGL_J2335.4-0128_daily_bin464.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/31325/ft1_filtered_4FGL_J2335.4-0128_daily_bin464.fits evtable="EVENTS" scfile=/scratch/kocevski/31325/ft2_4FGL_J2335.4-0128_daily_bin464.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/31325/Model_4FGL_J2335.4-0128_daily_bin464.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/31325/ft1_filtered_4FGL_J2335.4-0128_daily_bin464.fits.....................!
real 67.14
user 65.40
sys 1.42

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.6204       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.9259       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.1705       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.417       1.0000         .10000E-03   10000.    
     7 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    9.6469       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.4745       1.0000         .10000E-03   10000.    
    11 'Prefactor '    47.806       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14125E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.2016       1.0000         .10000E-03   10000.    
    14 'norm      '    .10195E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.2302       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    21.879       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    34.177       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.271       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .47612E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    33.731       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    7.8161       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .66468       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0179       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=   7384.541     FROM MIGRAD    STATUS=CONVERGED    709 CALLS     3700 TOTAL
                     EDM=   .89E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.6204        6.8365       -.59909E-07   -.45799E-05
   2  Prefactor     .10000E-03    15.082       -.78092E-06** at limit **
   3  Prefactor     5.9257        12.129       -.35656E-07    .25377E-06
   4  Prefactor     .10000E-03    1.3868        .33860E-07** at limit **
   5  norm          2.1704        1.9520        .34950E-07    .68056E-05
   6  Prefactor     11.417        9.0440       -.54034E-07    .20884E-05
   7  norm          .10000E-03    1.4203        .84725E-07** at limit **
   8  norm          9.6464        9.4769        .46880E-07   -.50082E-05
   9  Prefactor     .10000E-03    13.129        .10298E-05** at limit **
  10  Prefactor     7.4744        12.694        .84467E-07   -.11116E-04
  11  Prefactor     47.779        40.813       -.13930E-05   -.50338E-04
  12  Prefactor     .10000E-03    8.3966       -.16936E-05** at limit **
  13  norm          3.2011        1.0983        .13612E-07    .32825E-03
  14  norm          .10000E-03    2.7028       -.30334E-06** at limit **
  15  Prefactor     1.2164        18.153        .48243E-05   -.78366E-05
  16  Prefactor     .10000E-03    44.254        .64350E-06** at limit **
  17  norm          21.895        11.636       -.67411E-06   -.16174E-03
  18  Prefactor     .10000E-03    71.938       -.50035E-06** at limit **
  19  Prefactor     .10000E-03    6.8429       -.83097E-07** at limit **
  20  Prefactor     .10000E-03    12.208        .61472E-06** at limit **
  21  norm          34.156        19.730       -.41115E-07    .79601E-04
  22  Prefactor     10.268        28.764       -.14254E-06    .10763E-05
  23  Prefactor     .10002E-03    1.6745       -.18740E-06** at limit **
  24  Prefactor     33.718        35.090       -.10888E-05   -.51964E-04
  25  Prefactor     .10000E-03    6.5541        .42362E-07** at limit **
  26  Prefactor     .10000E-03    10.859       -.78157E-06** at limit **
  27  Prefactor     7.8162        5.4748       -.11366E-06   -.59434E-04
  28  Normalizat    .66462        .17244        .13521E-05   -.26218E-04
  29  Prefactor     1.0180        .12164       -.85099E-06    .85089E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.6204
  Prefactor  = 0.0001
  Prefactor  = 5.92573
  Prefactor  = 0.0001
  norm       = 2.17036
  Prefactor  = 11.4174
  norm       = 0.0001
  norm       = 9.64642
  Prefactor  = 0.0001
  Prefactor  = 7.47438
  Prefactor  = 47.779
  Prefactor  = 0.0001
  norm       = 3.2011
  norm       = 0.0001
  Prefactor  = 1.21636
  Prefactor  = 0.0001
  norm       = 21.895
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 34.1561
  Prefactor  = 10.2677
  Prefactor  = 0.000100022
  Prefactor  = 33.7176
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.81617
  Normalizat = 0.664624
  Prefactor  = 1.01799
 **********
 **   18 **HESSE 
 **********

 FCN=   7384.541     FROM HESSE     STATUS=OK           553 CALLS     4253 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.6204        6.8349        .12920E-03   -1.5088    
   2  Prefactor     .10000E-03    15.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.9257        12.091        .16496E-03   -1.5221    
   4  Prefactor     .10000E-03    1.3949        .98795E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.1704        1.9372        .10334E-03   -1.5413    
   6  Prefactor     11.417        9.0388        .11856E-03   -1.5032    
   7  norm          .10000E-03    1.4846        .19976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          9.6464        9.4766        .12902E-03   -1.5087    
   9  Prefactor     .10000E-03    13.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.4744        12.692        .14669E-03   -1.5161    
  11  Prefactor     47.779        41.110        .57994E-04   -1.4324    
  12  Prefactor     .10000E-03    8.3138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.2011        1.0935        .49397E-04   -1.5350    
  14  norm          .10000E-03    2.7226        .13762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.2164        18.753        .40548E-03   -1.5487    
  16  Prefactor     .10000E-03    44.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          21.895        11.615        .85631E-04   -1.4772    
  18  Prefactor     .10000E-03    71.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.8786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          34.156        18.875        .68546E-04   -1.4538    
  22  Prefactor     10.268        28.756        .12502E-03   -1.5067    
  23  Prefactor     .10002E-03    20.977        .20019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     33.718        35.335        .68997E-04   -1.4546    
  25  Prefactor     .10000E-03    6.5655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    11.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     7.8162        5.4872        .14343E-03   -1.5149    
  28  Normalizat    .66462        .19065        .30720E-03   -1.0531    
  29  Prefactor     1.0180        .13628        .19345E-03   -.92132    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10096e-09
Minuit parameter uncertainties:
  1  6.83542
  2  7.01619e-05
  3  12.0958
  4  4.36592e-07
  5  1.9373
  6  9.03986
  7  6.30106e-07
  8  9.47803
  9  7.11459e-05
  10  12.6967
  11  41.1346
  12  6.3693e-05
  13  1.09352
  14  6.96815e-06
  15  9.55508
  16  9.42157e-05
  17  11.6161
  18  8.79142e-05
  19  3.09172e-06
  20  3.14167e-05
  21  18.8783
  22  28.7948
  23  0.00134434
  24  35.3568
  25  2.75594e-06
  26  6.30809e-05
  27  5.48755
  28  0.190842
  29  0.136329
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  3.416e+01  1.888e+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:  1.018e+00  1.363e-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:  6.646e-01  1.908e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.24
Ra Dec: 353.869 -1.476
Photon Index (Fixed Index): 2.50 +/- 0.00
Photon Flux (Fixed Index): 4.21e-08 +/- 2.33e-08
Energy Flux (Fixed Index): 1.75e-05 +/- 9.66e-06

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) = 7383.94491205
delta logL = 0.596449968078

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7383.94236815
delta logL = 0.598993870057

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.328       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2024       1.0000          .0000       5.0000    
     3 'Normalizat'    .63215       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0296       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=   7383.942     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      291 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.330        18.537        .91104E-04   -.59072E-03
   2  alpha         3.2025        .68305        .10387E-01   -.99260E-04
   3  Normalizat    .63217        .17835        .31420E-03    .48848E-04
   4  Prefactor     1.0295        .13491        .19234E-03    .29948E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 19.3302
  alpha      = 3.20255
  Normalizat = 0.632172
  Prefactor  = 1.02948
 **********
 **   18 **HESSE 
 **********

 FCN=   7383.942     FROM HESSE     STATUS=OK            25 CALLS      316 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.330        16.619        .18221E-04   -1.4828    
   2  alpha         3.2025        .61335        .41549E-03    .28486    
   3  Normalizat    .63217        .17780        .12568E-04   -1.0663    
   4  Prefactor     1.0295        .13478        .38467E-04   -.91753    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54522e-10
Minuit parameter uncertainties:
  1  16.6227
  2  0.620234
  3  0.177957
  4  0.134829
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31325': 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) = 7383.94236748
delta logL = 0.598994541542

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.933e+01  1.662e+01  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  3.203e+00  6.202e-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:  1.029e+00  1.348e-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:  6.322e-01  1.780e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.45
Ra Dec: 353.869 -1.476
Photon Index (Free Index): 3.20 +/- 0.62
Photon Flux (Free Index): 7.43e-08 +/- 4.60e-08
Energy Flux (Free Index): 1.90e-05 +/- 9.23e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/31325/cmap_HighResolution_359596801_359856001_4FGL_J2335.4-0128_daily_bin464.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.21e-08', energy_flux2='1.90e-05', photon_flux_error='2.33e-08', dlogl='5.99e-01', energy_flux='1.75e-05', photon_flux2='7.43e-08', job_status='DONE', time_completed='2021-09-30 00:31:54.214070', photon_index_error2='0.62', photon_index2='3.20', ts='8.24', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='9.23e-06', EG='0.66', time_epoch_completed='1632987114.21', return_code='0', job_id='31325', GAL2='1.03', EG2='0.63', return_code2='0', energy_flux_error='9.66e-06', photon_flux_error2='4.60e-08', ts2='9.45', photon_index='2.50' WHERE bin_id='464' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:31:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 31325: <4FGL_J2335.4-0128_daily_bin464> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin464> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep 30 00:15:23 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:15:25 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:25 2021
Terminated at Thu Sep 30 00:31:54 2021
Results reported at Thu Sep 30 00:31:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin464 353.869 -1.476 359596801 359856001 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 :                                   746.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            991 sec.

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

