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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin831
RA = 353.869, Dec = -1.476
tmin = 454723201, tmax = 454982401
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='32911', job_status='RUN', time_executed='2021-09-30 00:24:24.127606', time_epoch_executed='1632986664.13' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='831'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/32911

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/32911/ft1_4FGL_J2335.4-0128_daily_bin831.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/32911/ft2_4FGL_J2335.4-0128_daily_bin831.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/32911/ft1_4FGL_J2335.4-0128_daily_bin831.fits outfile=/scratch/kocevski/32911/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin831.fits ra=353.869 dec=-1.476 rad=12.0 tmin=454723201.0 tmax=454982401.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.45
user 3.21
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/32911/ft1_filtered_4FGL_J2335.4-0128_daily_bin831.fits" evtable="EVENTS" scfile=/scratch/kocevski/32911/ft2_4FGL_J2335.4-0128_daily_bin831.fits sctable="SC_DATA" outfile=/scratch/kocevski/32911/ltcube_454723201_454982401_4FGL_J2335.4-0128_daily_bin831.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/32911/ft2_4FGL_J2335.4-0128_daily_bin831.fits
.....................!
real 11.69
user 11.35
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/32911/ft1_filtered_4FGL_J2335.4-0128_daily_bin831.fits evtable="EVENTS" scfile=/scratch/kocevski/32911/ft2_4FGL_J2335.4-0128_daily_bin831.fits sctable="SC_DATA" expcube=/scratch/kocevski/32911/ltcube_454723201_454982401_4FGL_J2335.4-0128_daily_bin831.fits outfile=/scratch/kocevski/32911/expmap_454723201_454982401_4FGL_J2335.4-0128_daily_bin831.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/32911/ltcube_454723201_454982401_4FGL_J2335.4-0128_daily_bin831.fits
.....................!
real 191.06
user 186.56
sys 4.13

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/32911/ft1_filtered_4FGL_J2335.4-0128_daily_bin831.fits scfile=/scratch/kocevski/32911/ft2_4FGL_J2335.4-0128_daily_bin831.fits outfile=/scratch/kocevski/32911/cmap_454723201_454982401_4FGL_J2335.4-0128_daily_bin831.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/32911/ft1_filtered_4FGL_J2335.4-0128_daily_bin831.fits scfile=/scratch/kocevski/32911/ft2_4FGL_J2335.4-0128_daily_bin831.fits outfile=/scratch/kocevski/32911/cmap_HighResolution_454723201_454982401_4FGL_J2335.4-0128_daily_bin831.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/32911/ft1_filtered_4FGL_J2335.4-0128_daily_bin831.fits evtable="EVENTS" scfile=/scratch/kocevski/32911/ft2_4FGL_J2335.4-0128_daily_bin831.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/32911/Model_4FGL_J2335.4-0128_daily_bin831.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/32911/ft1_filtered_4FGL_J2335.4-0128_daily_bin831.fits.....................!
real 50.67
user 49.25
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    68.225       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .34912       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.2854       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.5119       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    35.119       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10359E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .67929E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    4.5836       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.7210       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.8421       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10219E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    6.4458       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10438E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    20.374       1.0000         .10000E-03   10000.    
    26 'Prefactor '    27.306       1.0000         .10000E-03   10000.    
    27 'Prefactor '    7.3827       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .82218       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .81216       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=   4941.911     FROM MIGRAD    STATUS=CONVERGED    726 CALLS     3723 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.9097        .18304E-07** at limit **
   2  Prefactor     68.225        46.658        .30861E-07   -.60042E-05
   3  Prefactor     .32124        25.125       -.52685E-05    .68226E-03
   4  Prefactor     2.2854        3.7548        .22277E-06    .15210E-03
   5  norm          .10000E-03    1.2757        .24716E-07** at limit **
   6  Prefactor     .10000E-03    7.5426       -.12601E-07** at limit **
   7  norm          .10000E-03    2.1560        .26541E-08** at limit **
   8  norm          2.5117        15.002        .20645E-05    .96951E-04
   9  Prefactor     .10000E-03    12.579       -.15277E-06** at limit **
  10  Prefactor     35.117        21.329        .77008E-07   -.65602E-04
  11  Prefactor     .10000E-03    25.434       -.94368E-06** at limit **
  12  Prefactor     .10000E-03    6.4953        .49413E-07** at limit **
  13  norm          .65495E-01    .67949        .21605E-06   -.20314E-03
  14  norm          4.5826        5.3023        .16605E-06    .88160E-05
  15  Prefactor     8.7191        8.8313        .20810E-05    .10265E-02
  16  Prefactor     .10000E-03    19.876        .78311E-06** at limit **
  17  norm          1.8459        7.1702        .17743E-05    .35676E-03
  18  Prefactor     .10000E-03    82.157       -.13996E-05** at limit **
  19  Prefactor     .10000E-03    11.291       -.17143E-06** at limit **
  20  Prefactor     .10000E-03    10.569        .13647E-06** at limit **
  21  norm          6.4447        11.030       -.19655E-06   -.67255E-04
  22  Prefactor     .10000E-03    76.451       -.10998E-07** at limit **
  23  Prefactor     .10000E-03    1.1872        .41375E-07** at limit **
  24  Prefactor     .10001E-03    57.063        .28139E-05** at limit **
  25  Prefactor     20.374        20.450        .41681E-06    .52186E-04
  26  Prefactor     27.305        22.822        .42219E-06    .14343E-03
  27  Prefactor     7.3812        7.9640        .30714E-06    .62412E-04
  28  Normalizat    .82240        .18587       -.10090E-05    .13671E-04
  29  Prefactor     .81204        .13309       -.48310E-06   -.16442E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 68.2247
  Prefactor  = 0.321244
  Prefactor  = 2.28545
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.51174
  Prefactor  = 0.0001
  Prefactor  = 35.1166
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0654949
  norm       = 4.58257
  Prefactor  = 8.71909
  Prefactor  = 0.000100001
  norm       = 1.84589
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.44469
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  Prefactor  = 20.3735
  Prefactor  = 27.3053
  Prefactor  = 7.38121
  Normalizat = 0.822403
  Prefactor  = 0.812042
 **********
 **   18 **HESSE 
 **********

 FCN=   4941.911     FROM HESSE     STATUS=OK           557 CALLS     4280 TOTAL
                     EDM=   .64E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.9174        .13572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     68.225        46.638        .48595E-04   -1.4054    
   3  Prefactor     .32124        157.72        .43206E-02   -1.5595    
   4  Prefactor     2.2854        3.6062        .16329E-03   -1.5406    
   5  norm          .10000E-03    1.2998        .15435E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.5513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.7789        .19320E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.5117        15.177        .25780E-03   -1.5391    
   9  Prefactor     .10000E-03    12.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     35.117        21.361        .67624E-04   -1.4522    
  11  Prefactor     .10000E-03    25.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.5470        .17473E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .65495E-01    1.7576        .10877E-02   -1.5657    
  14  norm          4.5826        5.2869        .16648E-03   -1.5280    
  15  Prefactor     8.7191        8.8933        .67867E-03   -1.5117    
  16  Prefactor     .10000E-03    19.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.8459        7.1207        .30732E-03   -1.5436    
  18  Prefactor     .10000E-03    82.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.511        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          6.4447        10.988        .15808E-03   -1.5200    
  22  Prefactor     .10000E-03    76.870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.1977        .74779E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10001E-03    58.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     20.374        20.472        .88735E-04   -1.4805    
  26  Prefactor     27.305        22.887        .76665E-04   -1.4662    
  27  Prefactor     7.3812        7.9923        .14761E-03   -1.5165    
  28  Normalizat    .82240        .21575        .25795E-03   -.99243    
  29  Prefactor     .81204        .15329        .19361E-03   -.99286    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.38648e-08
Minuit parameter uncertainties:
  1  1.96051e-06
  2  46.6634
  3  14.272
  4  3.6065
  5  1.55814e-05
  6  4.26632e-06
  7  1.69929e-05
  8  12.353
  9  5.36642e-05
  10  21.3658
  11  0.000480179
  12  9.61854e-06
  13  0.678066
  14  5.28739
  15  8.89467
  16  0.000344305
  17  7.12399
  18  0.00124482
  19  4.73924e-05
  20  5.34299e-05
  21  10.9915
  22  5.55758e-05
  23  3.01312e-06
  24  0.0018149
  25  20.4789
  26  22.8948
  27  7.99346
  28  0.215974
  29  0.153373
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  6.445e+00  1.099e+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:  8.120e-01  1.534e-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:  8.224e-01  2.160e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/32911/likelihoodResults_454723201_454982401_4FGL_J2335.4-0128_daily_bin831.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) = 4941.70367585
delta logL = 0.207345126706

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4941.60167651
delta logL = 0.3093444572

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.398       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5119       1.0000          .0000       5.0000    
     3 'Normalizat'    .82897       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80731       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=   4941.602     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      208 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.380        17.847        .27358E-02    .65159E-05
   2  alpha         1.5116        1.0510        .46208E-01    .35067E-04
   3  Normalizat    .82919        .17291        .43987E-01    .46470E-04
   4  Prefactor     .80712        .12992        .43812E-01    .10367E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 13.38
  alpha      = 1.51162
  Normalizat = 0.829194
  Prefactor  = 0.807123
 **********
 **   18 **HESSE 
 **********

 FCN=   4941.602     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .51E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.380        17.780        .10943E-03   -1.4976    
   2  alpha         1.5116        1.0478        .92416E-02   -.40645    
   3  Normalizat    .82919        .19738        .25695E-03   -.98995    
   4  Prefactor     .80712        .14836        .19405E-03   -.99466    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.11339e-12
Minuit parameter uncertainties:
  1  17.7873
  2  1.08804
  3  0.197547
  4  0.148431
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/32911': 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) = 4941.60167513
delta logL = 0.309345844517

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.338e+01  1.779e+01  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  1.512e+00  1.088e+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.071e-01  1.484e-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:  8.292e-01  1.975e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.19
Ra Dec: 353.869 -1.476
Photon Index (Free Index): 1.51 +/- 1.09
Photon Flux (Free Index): 5.72e-09 +/- 8.29e-09
Energy Flux (Free Index): 7.41e-06 +/- 1.20e-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/32911/cmap_HighResolution_454723201_454982401_4FGL_J2335.4-0128_daily_bin831.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.24e-05', comment='SUCCESS', energy_flux2='7.41e-06', dlogl='3.09e-01', photon_flux2='5.72e-09', job_status='DONE', time_completed='2021-09-30 00:35:27.372084', photon_index_error2='1.09', photon_index2='1.51', ts='0.57', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='5.39e-08', energy_flux_error2='1.20e-05', EG='0.82', time_epoch_completed='1632987327.37', return_code='0', job_id='32911', GAL2='0.81', EG2='0.83', return_code2='0', photon_flux_error2='8.29e-09', ts2='1.19', photon_index='2.50' WHERE bin_id='831' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:35:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 32911: <4FGL_J2335.4-0128_daily_bin831> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin831> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 00:20:30 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:20:31 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:20:31 2021
Terminated at Thu Sep 30 00:35:28 2021
Results reported at Thu Sep 30 00:35:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin831 353.869 -1.476 454723201 454982401 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 :                                   663.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   896 sec.
    Turnaround time :                            898 sec.

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

