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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin658
RA = 353.869, Dec = -1.476
tmin = 409881601, tmax = 410140801
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='31632', job_status='RUN', time_executed='2021-09-30 00:19:05.300237', time_epoch_executed='1632986345.3' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='658'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31632

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31632/ft1_4FGL_J2335.4-0128_daily_bin658.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31632/ft2_4FGL_J2335.4-0128_daily_bin658.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31632/ft1_4FGL_J2335.4-0128_daily_bin658.fits outfile=/scratch/kocevski/31632/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin658.fits ra=353.869 dec=-1.476 rad=12.0 tmin=409881601.0 tmax=410140801.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 6.29
user 6.02
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/31632/ft2_4FGL_J2335.4-0128_daily_bin658.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/31632/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin658.fits evtable="EVENTS" outfile="/scratch/kocevski/31632/ft1_filtered_4FGL_J2335.4-0128_daily_bin658.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.50
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/31632/ft1_filtered_4FGL_J2335.4-0128_daily_bin658.fits" evtable="EVENTS" scfile=/scratch/kocevski/31632/ft2_4FGL_J2335.4-0128_daily_bin658.fits sctable="SC_DATA" outfile=/scratch/kocevski/31632/ltcube_409881601_410140801_4FGL_J2335.4-0128_daily_bin658.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/31632/ft2_4FGL_J2335.4-0128_daily_bin658.fits
.....................!
real 11.96
user 11.63
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31632/ft1_filtered_4FGL_J2335.4-0128_daily_bin658.fits evtable="EVENTS" scfile=/scratch/kocevski/31632/ft2_4FGL_J2335.4-0128_daily_bin658.fits sctable="SC_DATA" expcube=/scratch/kocevski/31632/ltcube_409881601_410140801_4FGL_J2335.4-0128_daily_bin658.fits outfile=/scratch/kocevski/31632/expmap_409881601_410140801_4FGL_J2335.4-0128_daily_bin658.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/31632/ltcube_409881601_410140801_4FGL_J2335.4-0128_daily_bin658.fits
.....................!
real 191.04
user 185.82
sys 4.88

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/31632/ft1_filtered_4FGL_J2335.4-0128_daily_bin658.fits scfile=/scratch/kocevski/31632/ft2_4FGL_J2335.4-0128_daily_bin658.fits outfile=/scratch/kocevski/31632/cmap_409881601_410140801_4FGL_J2335.4-0128_daily_bin658.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/31632/ft1_filtered_4FGL_J2335.4-0128_daily_bin658.fits scfile=/scratch/kocevski/31632/ft2_4FGL_J2335.4-0128_daily_bin658.fits outfile=/scratch/kocevski/31632/cmap_HighResolution_409881601_410140801_4FGL_J2335.4-0128_daily_bin658.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.35
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/31632/ft1_filtered_4FGL_J2335.4-0128_daily_bin658.fits evtable="EVENTS" scfile=/scratch/kocevski/31632/ft2_4FGL_J2335.4-0128_daily_bin658.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/31632/Model_4FGL_J2335.4-0128_daily_bin658.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/31632/ft1_filtered_4FGL_J2335.4-0128_daily_bin658.fits......................!
real 33.60
user 32.17
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.8619       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.3015       1.0000         .10000E-03   10000.    
     8 'norm      '    64.365       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    38.681       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .19019E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    16.664       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    22.535       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10950E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    63.915       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    68.304       1.0000         .10000E-03   10000.    
    25 'Prefactor '    31.165       1.0000         .10000E-03   10000.    
    26 'Prefactor '    8.6961       1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.9218       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .60150       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0038       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=   2736.336     FROM MIGRAD    STATUS=CONVERGED    744 CALLS     4282 TOTAL
                     EDM=   .57E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.3208        .35042E-08** at limit **
   2  Prefactor     .10000E-03    15.685       -.32380E-06** at limit **
   3  Prefactor     .10000E-03    18.846        .40389E-06** at limit **
   4  Prefactor     .10000E-03    7.6841        .58360E-07** at limit **
   5  norm          3.8611        4.5274        .61779E-06   -.63573E-04
   6  Prefactor     .10000E-03    14.308        .39723E-06** at limit **
   7  norm          4.3006        4.1236        .76969E-07   -.52202E-04
   8  norm          64.376        31.729       -.47192E-06    .22960E-04
   9  Prefactor     .10000E-03    19.008        .24437E-06** at limit **
  10  Prefactor     .10000E-03    45.629        .25472E-05** at limit **
  11  Prefactor     38.547        105.98        .20698E-05   -.11882E-04
  12  Prefactor     .10000E-03    241.11       -.16687E-04** at limit **
  13  norm          .10000E-03    .88942       -.60458E-06** at limit **
  14  norm          16.671        13.567        .51466E-06    .24265E-04
  15  Prefactor     .10000E-03    8.4502        .23512E-06** at limit **
  16  Prefactor     .10000E-03    65.102       -.25827E-05** at limit **
  17  norm          22.533        17.252        .19430E-06   -.48315E-05
  18  Prefactor     .10000E-03    128.37        .72159E-05** at limit **
  19  Prefactor     .10000E-03    27.874        .14732E-05** at limit **
  20  Prefactor     .10000E-03    16.063        .28918E-06** at limit **
  21  norm          63.919        40.511       -.23376E-05    .30818E-04
  22  Prefactor     .10000E-03    32.484        .16430E-05** at limit **
  23  Prefactor     .10000E-03    4.5064        .88832E-06** at limit **
  24  Prefactor     68.301        75.349        .47205E-06    .84723E-05
  25  Prefactor     31.176        42.524        .60203E-06    .54627E-06
  26  Prefactor     8.6969        18.897        .29009E-06   -.47440E-05
  27  Prefactor     1.9201        8.6999        .21823E-05   -.49985E-04
  28  Normalizat    .60189        .36846       -.12094E-04   -.12023E-04
  29  Prefactor     1.0035        .24411        .39751E-05   -.26121E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.86113
  Prefactor  = 0.0001
  norm       = 4.30063
  norm       = 64.3757
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.5468
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 16.671
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 22.533
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 63.9189
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 68.3008
  Prefactor  = 31.176
  Prefactor  = 8.69689
  Prefactor  = 1.92005
  Normalizat = 0.601889
  Prefactor  = 1.0035
 **********
 **   18 **HESSE 
 **********

 FCN=   2736.336     FROM HESSE     STATUS=OK           549 CALLS     4831 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.3221        .93100E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    18.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.7324        .28050E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.8611        4.5185        .10966E-03   -1.5315    
   6  Prefactor     .10000E-03    14.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.3006        4.0761        .99386E-04   -1.5293    
   8  norm          64.376        31.699        .50021E-04   -1.4102    
   9  Prefactor     .10000E-03    19.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    46.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     38.547        106.38        .64445E-04   -1.4465    
  12  Prefactor     .10000E-03    240.46        .45687E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.0294        .90280E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          16.671        13.653        .98113E-04   -1.4891    
  15  Prefactor     .10000E-03    8.4624        .14852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    65.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          22.533        17.247        .84378E-04   -1.4758    
  18  Prefactor     .10000E-03    128.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    28.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    16.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          63.919        40.609        .50195E-04   -1.4107    
  22  Prefactor     .10000E-03    32.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.6026        .10900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     68.301        75.376        .48567E-04   -1.4053    
  25  Prefactor     31.176        42.583        .71773E-04   -1.4591    
  26  Prefactor     8.6969        18.890        .13593E-03   -1.5118    
  27  Prefactor     1.9201        8.6968        .28784E-03   -1.5431    
  28  Normalizat    .60189        .37992        .34030E-03   -1.0790    
  29  Prefactor     1.0035        .25712        .20217E-03   -.92613    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.11539e-11
Minuit parameter uncertainties:
  1  6.9289e-07
  2  2.71566e-06
  3  1.06519e-07
  4  1.22333e-05
  5  4.51891
  6  4.28032e-06
  7  4.07632
  8  31.7077
  9  3.45443e-06
  10  6.04526e-05
  11  106.907
  12  0.000256228
  13  3.35027e-06
  14  13.6553
  15  7.48219e-06
  16  0.000104754
  17  17.2505
  18  3.53309e-05
  19  0.000387554
  20  7.91927e-06
  21  40.6263
  22  1.39482e-07
  23  3.96084e-05
  24  75.4818
  25  42.6249
  26  18.9029
  27  8.17445
  28  0.381585
  29  0.257439
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  6.392e+01  4.063e+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.003e+00  2.574e-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.019e-01  3.816e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.90
Ra Dec: 353.869 -1.476
Photon Index (Fixed Index): 2.50 +/- 0.00
Photon Flux (Fixed Index): 7.88e-08 +/- 5.01e-08
Energy Flux (Fixed Index): 3.27e-05 +/- 2.08e-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) = 2735.98614592
delta logL = 0.35016184772

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2735.98132335
delta logL = 0.354984416056

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    37.897       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1161       1.0000          .0000       5.0000    
     3 'Normalizat'    .55523       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0221       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=   2735.981     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      289 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          37.922        41.142        .65106E-04    .13112E-03
   2  alpha         3.1167        .76735        .79541E-02    .29237E-04
   3  Normalizat    .55535        .33136        .35306E-03    .13041E-04
   4  Prefactor     1.0219        .24762        .20035E-03    .22643E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 37.9218
  alpha      = 3.11669
  Normalizat = 0.555348
  Prefactor  = 1.0219
 **********
 **   18 **HESSE 
 **********

 FCN=   2735.981     FROM HESSE     STATUS=OK            25 CALLS      314 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          37.922        38.322        .13021E-04   -1.4476    
   2  alpha         3.1167        .71575        .31817E-03    .24925    
   3  Normalizat    .55535        .33074        .14122E-04   -1.0991    
   4  Prefactor     1.0219        .24743        .40070E-04   -.92003    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.11617e-10
Minuit parameter uncertainties:
  1  38.3467
  2  0.726596
  3  0.331917
  4  0.247709
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31632': 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) = 2735.98131946
delta logL = 0.354988303868

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  3.792e+01  3.835e+01  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  3.117e+00  7.266e-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.022e+00  2.477e-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:  5.553e-01  3.319e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.59
Ra Dec: 353.869 -1.476
Photon Index (Free Index): 3.12 +/- 0.73
Photon Flux (Free Index): 1.25e-07 +/- 9.09e-08
Energy Flux (Free Index): 3.36e-05 +/- 1.95e-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/31632/cmap_HighResolution_409881601_410140801_4FGL_J2335.4-0128_daily_bin658.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.88e-08', energy_flux2='3.36e-05', photon_flux_error='5.01e-08', dlogl='3.55e-01', energy_flux='3.27e-05', photon_flux2='1.25e-07', job_status='DONE', time_completed='2021-09-30 00:27:28.890435', photon_index_error2='0.73', photon_index2='3.12', ts='4.90', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='1.95e-05', EG='0.60', time_epoch_completed='1632986848.89', return_code='0', job_id='31632', GAL2='1.02', EG2='0.56', return_code2='0', energy_flux_error='2.08e-05', photon_flux_error2='9.09e-08', ts2='5.59', photon_index='2.50' WHERE bin_id='658' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:27:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 31632: <4FGL_J2335.4-0128_daily_bin658> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin658> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep 30 00:15:52 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:15:55 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:55 2021
Terminated at Thu Sep 30 00:27:29 2021
Results reported at Thu Sep 30 00:27:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin658 353.869 -1.476 409881601 410140801 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 :                                   501.36 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             254.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   694 sec.
    Turnaround time :                            697 sec.

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

