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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin1089
RA = 353.869, Dec = -1.476
tmin = 521596801, tmax = 521856001
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='33304', job_status='RUN', time_executed='2021-09-30 00:21:17.412680', time_epoch_executed='1632986477.41' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='1089'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/33304

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/33304/ft1_4FGL_J2335.4-0128_daily_bin1089.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/33304/ft2_4FGL_J2335.4-0128_daily_bin1089.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/33304/ft1_4FGL_J2335.4-0128_daily_bin1089.fits outfile=/scratch/kocevski/33304/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin1089.fits ra=353.869 dec=-1.476 rad=12.0 tmin=521596801.0 tmax=521856001.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 4.36
user 4.07
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/33304/ft1_filtered_4FGL_J2335.4-0128_daily_bin1089.fits" evtable="EVENTS" scfile=/scratch/kocevski/33304/ft2_4FGL_J2335.4-0128_daily_bin1089.fits sctable="SC_DATA" outfile=/scratch/kocevski/33304/ltcube_521596801_521856001_4FGL_J2335.4-0128_daily_bin1089.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/33304/ft2_4FGL_J2335.4-0128_daily_bin1089.fits
.....................!
real 11.64
user 11.28
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/33304/ft1_filtered_4FGL_J2335.4-0128_daily_bin1089.fits evtable="EVENTS" scfile=/scratch/kocevski/33304/ft2_4FGL_J2335.4-0128_daily_bin1089.fits sctable="SC_DATA" expcube=/scratch/kocevski/33304/ltcube_521596801_521856001_4FGL_J2335.4-0128_daily_bin1089.fits outfile=/scratch/kocevski/33304/expmap_521596801_521856001_4FGL_J2335.4-0128_daily_bin1089.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/33304/ltcube_521596801_521856001_4FGL_J2335.4-0128_daily_bin1089.fits
.....................!
real 191.23
user 185.68
sys 5.17

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/33304/ft1_filtered_4FGL_J2335.4-0128_daily_bin1089.fits scfile=/scratch/kocevski/33304/ft2_4FGL_J2335.4-0128_daily_bin1089.fits outfile=/scratch/kocevski/33304/cmap_521596801_521856001_4FGL_J2335.4-0128_daily_bin1089.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/33304/ft1_filtered_4FGL_J2335.4-0128_daily_bin1089.fits scfile=/scratch/kocevski/33304/ft2_4FGL_J2335.4-0128_daily_bin1089.fits outfile=/scratch/kocevski/33304/cmap_HighResolution_521596801_521856001_4FGL_J2335.4-0128_daily_bin1089.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/33304/ft1_filtered_4FGL_J2335.4-0128_daily_bin1089.fits evtable="EVENTS" scfile=/scratch/kocevski/33304/ft2_4FGL_J2335.4-0128_daily_bin1089.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/33304/Model_4FGL_J2335.4-0128_daily_bin1089.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/33304/ft1_filtered_4FGL_J2335.4-0128_daily_bin1089.fits.....................!
real 65.78
user 64.41
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.0228       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.8145       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.425       1.0000         .10000E-03   10000.    
     5 'norm      '    2.6569       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    17.676       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.9701       1.0000         .10000E-03   10000.    
    11 'Prefactor '    125.92       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.912       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    10.107       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    16.641       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10222E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    34.354       1.0000         .10000E-03   10000.    
    21 'norm      '    21.683       1.0000         .10000E-03   10000.    
    22 'Prefactor '    85.936       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .15786E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.0027       1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.6538       1.0000         .10000E-03   10000.    
    26 'Prefactor '    44.977       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .22574E-02   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3117       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .78671       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=   6787.474     FROM MIGRAD    STATUS=CONVERGED    734 CALLS     3742 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0305        12.317       -.31810E-05   -.38077E-03
   2  Prefactor     6.9118        63.385       -.53205E-05   -.38368E-04
   3  Prefactor     .10000E-03    4.5578        .16298E-06** at limit **
   4  Prefactor     12.425        7.0974       -.26622E-05   -.40897E-03
   5  norm          2.6564        2.7487        .60449E-06   -.58482E-03
   6  Prefactor     .10003E-03    10.766        .18617E-05** at limit **
   7  norm          .10000E-03    1.7358        .18578E-06** at limit **
   8  norm          17.675        11.971        .29635E-06   -.43515E-04
   9  Prefactor     .10000E-03    8.0686        .20076E-06** at limit **
  10  Prefactor     5.9698        10.706       -.36072E-06   -.73043E-04
  11  Prefactor     125.98        79.258        .34398E-04   -.27800E-04
  12  Prefactor     14.907        13.758       -.78090E-05   -.13614E-03
  13  norm          .10000E-03    .30333       -.67539E-07** at limit **
  14  norm          10.105        7.5534       -.16347E-05   -.17720E-03
  15  Prefactor     .10000E-03    6.2569        .48642E-06** at limit **
  16  Prefactor     .10000E-03    17.601       -.41512E-06** at limit **
  17  norm          16.639        12.012        .17092E-06   -.70872E-04
  18  Prefactor     .10000E-03    66.533        .13966E-05** at limit **
  19  Prefactor     .10000E-03    9.1240       -.89861E-06** at limit **
  20  Prefactor     34.363        33.797       -.34268E-06   -.42353E-04
  21  norm          21.678        19.720        .78368E-06   -.10743E-03
  22  Prefactor     85.925        69.667       -.58000E-05   -.47409E-04
  23  Prefactor     .10000E-03    3.7626        .59501E-06** at limit **
  24  Prefactor     2.9869        147.38        .13193E-04   -.26352E-04
  25  Prefactor     7.6542        24.211        .40403E-05   -.48062E-04
  26  Prefactor     44.979        22.892        .30101E-06   -.13549E-03
  27  Prefactor     .10000E-03    6.6117        .20251E-05** at limit **
  28  Normalizat    1.3119        .22481       -.31643E-05   -.33324E-03
  29  Prefactor     .78658        .14641        .60851E-06   -.50455E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.03054
  Prefactor  = 6.91178
  Prefactor  = 0.0001
  Prefactor  = 12.4252
  norm       = 2.6564
  Prefactor  = 0.000100025
  norm       = 0.0001
  norm       = 17.6754
  Prefactor  = 0.0001
  Prefactor  = 5.96975
  Prefactor  = 125.983
  Prefactor  = 14.9074
  norm       = 0.0001
  norm       = 10.1052
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.6389
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.3627
  norm       = 21.6775
  Prefactor  = 85.9255
  Prefactor  = 0.000100001
  Prefactor  = 2.98688
  Prefactor  = 7.65424
  Prefactor  = 44.979
  Prefactor  = 0.000100001
  Normalizat = 1.31195
  Prefactor  = 0.786579
 **********
 **   18 **HESSE 
 **********

 FCN=   6787.474     FROM HESSE     STATUS=OK           555 CALLS     4297 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0305        12.095        .15138E-03   -1.5178    
   2  Prefactor     6.9118        62.899        .15370E-03   -1.5182    
   3  Prefactor     .10000E-03    4.5597        .17175E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.425        7.0458        .11364E-03   -1.5003    
   5  norm          2.6564        2.7410        .13215E-03   -1.5382    
   6  Prefactor     .10003E-03    43.936        .51884E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.7436        .10582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          17.675        11.970        .95265E-04   -1.4867    
   9  Prefactor     .10000E-03    8.0699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.9698        10.700        .16434E-03   -1.5219    
  11  Prefactor     125.98        79.124        .17936E-03   -1.3458    
  12  Prefactor     14.907        13.728        .10372E-03   -1.4936    
  13  norm          .10000E-03    .31171        .88439E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          10.105        7.5389        .12604E-03   -1.5072    
  15  Prefactor     .10000E-03    6.2741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    17.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          16.639        11.994        .98182E-04   -1.4892    
  18  Prefactor     .10000E-03    66.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.1722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     34.363        33.734        .68370E-04   -1.4535    
  21  norm          21.678        19.187        .86017E-04   -1.4776    
  22  Prefactor     85.925        69.798        .43337E-04   -1.3851    
  23  Prefactor     .10000E-03    8.8001        .29468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.9869        145.73        .23424E-03   -1.5362    
  25  Prefactor     7.6542        24.130        .14495E-03   -1.5155    
  26  Prefactor     44.979        22.963        .59782E-04   -1.4366    
  27  Prefactor     .10000E-03    29.937        .39287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.3119        .26000        .27943E-03   -.83210    
  29  Prefactor     .78658        .17040        .24844E-03   -1.0022    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40621e-09
Minuit parameter uncertainties:
  1  12.0996
  2  41.759
  3  4.75549e-07
  4  7.04631
  5  2.74116
  6  0.00210709
  7  3.29498e-05
  8  11.9715
  9  2.76924e-06
  10  10.7033
  11  79.1906
  12  13.7312
  13  6.37579e-07
  14  7.53965
  15  4.70367e-06
  16  2.98031e-06
  17  11.996
  18  7.80504e-06
  19  1.76846e-05
  20  33.7523
  21  19.1928
  22  69.8644
  23  0.00015504
  24  41.8347
  25  24.1603
  26  22.9679
  27  0.000267902
  28  0.260265
  29  0.170516
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  2.168e+01  1.919e+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:  7.866e-01  1.705e-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.312e+00  2.603e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.65
Ra Dec: 353.869 -1.476
Photon Index (Fixed Index): 2.50 +/- 0.00
Photon Flux (Fixed Index): 2.67e-08 +/- 2.37e-08
Energy Flux (Fixed Index): 1.11e-05 +/- 9.82e-06

TS (Fixed Index): 3.65
Ra Dec: 353.869 -1.476
Photon Flux Upper Limit: 8.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.65e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/33304/likelihoodResults_521596801_521856001_4FGL_J2335.4-0128_daily_bin1089.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6787.23567398
delta logL = 0.238426803928

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6787.22318091
delta logL = 0.250919875912

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.911       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3667       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2632       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80473       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=   6787.223     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      303 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.905        21.311        .11148E-03   -.53357E-03
   2  alpha         3.3673        1.2560        .14776E-01   -.29492E-04
   3  Normalizat    1.2629        .25337        .28396E-03    .25165E-03
   4  Prefactor     .80498        .17175        .24580E-03   -.20929E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.9053
  alpha      = 3.36725
  Normalizat = 1.26286
  Prefactor  = 0.804985
 **********
 **   18 **HESSE 
 **********

 FCN=   6787.223     FROM HESSE     STATUS=OK            25 CALLS      328 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.905        16.780        .44591E-05   -1.4989    
   2  alpha         3.3673        1.0068        .59103E-03    .35426    
   3  Normalizat    1.2629        .24800        .56792E-04   -.84682    
   4  Prefactor     .80498        .17005        .98320E-05   -.99545    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20861e-09
Minuit parameter uncertainties:
  1  16.7866
  2  1.04058
  3  0.248231
  4  0.170163
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/33304': 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) = 6787.22317964
delta logL = 0.250921145381

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.291e+01  1.679e+01  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  3.367e+00  1.041e+00  0.000e+00  5.000e+00 ( 1.000e+00)
453         beta:  3.100e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
454           Eb:  1.202e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  8.050e-01  1.702e-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.263e+00  2.482e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.16
Ra Dec: 353.869 -1.476
Photon Index (Free Index): 3.37 +/- 1.04
Photon Flux (Free Index): 6.68e-08 +/- 7.21e-08
Energy Flux (Free Index): 1.58e-05 +/- 1.23e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/33304/cmap_HighResolution_521596801_521856001_4FGL_J2335.4-0128_daily_bin1089.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.65e-05', comment='SUCCESS', photon_flux='2.67e-08', energy_flux2='1.58e-05', photon_flux_error='2.37e-08', dlogl='2.51e-01', energy_flux='1.11e-05', photon_flux2='6.68e-08', job_status='DONE', time_completed='2021-09-30 00:34:54.592242', photon_index_error2='1.04', photon_index2='3.37', ts='3.65', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='8.80e-08', energy_flux_error2='1.23e-05', EG='1.31', time_epoch_completed='1632987294.59', return_code='0', job_id='33304', GAL2='0.80', EG2='1.26', return_code2='0', energy_flux_error='9.82e-06', photon_flux_error2='7.21e-08', ts2='4.16', photon_index='2.50' WHERE bin_id='1089' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:34:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 33304: <4FGL_J2335.4-0128_daily_bin1089> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin1089> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 00:21:03 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:21:04 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:21:04 2021
Terminated at Thu Sep 30 00:34:55 2021
Results reported at Thu Sep 30 00:34:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin1089 353.869 -1.476 521596801 521856001 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 :                                   813.00 sec.
    Max Memory :                                 1046 MB
    Average Memory :                             331.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            832 sec.

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

