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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin474
RA = 353.869, Dec = -1.476
tmin = 362188801, tmax = 362448001
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='31342', job_status='RUN', time_executed='2021-09-30 00:15:42.328268', time_epoch_executed='1632986142.33' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='474'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31342

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31342/ft1_4FGL_J2335.4-0128_daily_bin474.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31342/ft2_4FGL_J2335.4-0128_daily_bin474.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31342/ft1_4FGL_J2335.4-0128_daily_bin474.fits outfile=/scratch/kocevski/31342/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin474.fits ra=353.869 dec=-1.476 rad=12.0 tmin=362188801.0 tmax=362448001.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.22
user 3.95
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/31342/ft2_4FGL_J2335.4-0128_daily_bin474.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/31342/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin474.fits evtable="EVENTS" outfile="/scratch/kocevski/31342/ft1_filtered_4FGL_J2335.4-0128_daily_bin474.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.55
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/31342/ft1_filtered_4FGL_J2335.4-0128_daily_bin474.fits" evtable="EVENTS" scfile=/scratch/kocevski/31342/ft2_4FGL_J2335.4-0128_daily_bin474.fits sctable="SC_DATA" outfile=/scratch/kocevski/31342/ltcube_362188801_362448001_4FGL_J2335.4-0128_daily_bin474.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/31342/ft2_4FGL_J2335.4-0128_daily_bin474.fits
.....................!
real 12.16
user 11.77
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31342/ft1_filtered_4FGL_J2335.4-0128_daily_bin474.fits evtable="EVENTS" scfile=/scratch/kocevski/31342/ft2_4FGL_J2335.4-0128_daily_bin474.fits sctable="SC_DATA" expcube=/scratch/kocevski/31342/ltcube_362188801_362448001_4FGL_J2335.4-0128_daily_bin474.fits outfile=/scratch/kocevski/31342/expmap_362188801_362448001_4FGL_J2335.4-0128_daily_bin474.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/31342/ltcube_362188801_362448001_4FGL_J2335.4-0128_daily_bin474.fits
.....................!
real 192.58
user 186.62
sys 5.51

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/31342/ft1_filtered_4FGL_J2335.4-0128_daily_bin474.fits scfile=/scratch/kocevski/31342/ft2_4FGL_J2335.4-0128_daily_bin474.fits outfile=/scratch/kocevski/31342/cmap_362188801_362448001_4FGL_J2335.4-0128_daily_bin474.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/31342/ft1_filtered_4FGL_J2335.4-0128_daily_bin474.fits scfile=/scratch/kocevski/31342/ft2_4FGL_J2335.4-0128_daily_bin474.fits outfile=/scratch/kocevski/31342/cmap_HighResolution_362188801_362448001_4FGL_J2335.4-0128_daily_bin474.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/31342/ft1_filtered_4FGL_J2335.4-0128_daily_bin474.fits evtable="EVENTS" scfile=/scratch/kocevski/31342/ft2_4FGL_J2335.4-0128_daily_bin474.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/31342/Model_4FGL_J2335.4-0128_daily_bin474.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/31342/ft1_filtered_4FGL_J2335.4-0128_daily_bin474.fits.....................!
real 51.36
user 50.00
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8360       1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.191       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.3574       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .12055E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    45.788       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.768       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.8298       1.0000         .10000E-03   10000.    
    13 'norm      '    1.2195       1.0000         .10000E-03   10000.    
    14 'norm      '    6.8600       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.790       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10365E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.890       1.0000         .10000E-03   10000.    
    21 'norm      '    13.430       1.0000         .10000E-03   10000.    
    22 'Prefactor '    26.682       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.664       1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.6341       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.4000       1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.4449       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .77737       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .99466       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=   5004.536     FROM MIGRAD    STATUS=CONVERGED    713 CALLS     3680 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8361        9.1342        .23505E-06    .72656E-05
   2  Prefactor     18.192        40.163        .32075E-06   -.44362E-05
   3  Prefactor     .10000E-03    9.6920        .24501E-05** at limit **
   4  Prefactor     .10000E-03    3.8784        .67287E-07** at limit **
   5  norm          4.3576        2.9055       -.17769E-08   -.41767E-03
   6  Prefactor     .10000E-03    6.3394       -.90139E-08** at limit **
   7  norm          .10000E-03    5.5724        .35130E-05** at limit **
   8  norm          .10000E-03    18.606       -.91520E-07** at limit **
   9  Prefactor     45.786        39.624        .18798E-06    .24577E-05
  10  Prefactor     13.767        12.840        .13317E-06    .48537E-05
  11  Prefactor     .10000E-03    49.730       -.19465E-06** at limit **
  12  Prefactor     3.8288        13.110        .11303E-05    .28179E-04
  13  norm          1.2196        1.0564        .60810E-07    .40139E-04
  14  norm          6.8597        9.6103       -.30618E-06   -.49430E-04
  15  Prefactor     11.789        9.4545        .64435E-07    .11663E-04
  16  Prefactor     .10000E-03    10.875       -.64831E-06** at limit **
  17  norm          .10000E-03    1.9599       -.74971E-07** at limit **
  18  Prefactor     .10000E-03    274.84        .22507E-05** at limit **
  19  Prefactor     .10000E-03    7.7505        .29926E-06** at limit **
  20  Prefactor     13.890        18.808        .35650E-06    .29114E-04
  21  norm          13.430        16.977        .56508E-07   -.17036E-04
  22  Prefactor     26.681        54.205        .37868E-06   -.20106E-05
  23  Prefactor     10.665        5.6948       -.36748E-06   -.12186E-03
  24  Prefactor     8.6336        19.600       -.18975E-06   -.34166E-05
  25  Prefactor     .10000E-03    18.765        .81470E-08** at limit **
  26  Prefactor     3.3994        13.771        .59336E-05    .16788E-03
  27  Prefactor     3.4446        6.8920        .41221E-06    .28521E-04
  28  Normalizat    .77745        .21220       -.85019E-06   -.10344E-03
  29  Prefactor     .99461        .15152        .25726E-06   -.50674E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.83611
  Prefactor  = 18.1924
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.35757
  Prefactor  = 0.0001
  norm       = 0.000100004
  norm       = 0.0001
  Prefactor  = 45.7859
  Prefactor  = 13.7674
  Prefactor  = 0.0001
  Prefactor  = 3.82885
  norm       = 1.21959
  norm       = 6.85971
  Prefactor  = 11.7894
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.8903
  norm       = 13.4304
  Prefactor  = 26.6808
  Prefactor  = 10.6647
  Prefactor  = 8.63357
  Prefactor  = 0.0001
  Prefactor  = 3.39938
  Prefactor  = 3.44458
  Normalizat = 0.777454
  Prefactor  = 0.994615
 **********
 **   18 **HESSE 
 **********

 FCN=   5004.536     FROM HESSE     STATUS=OK           561 CALLS     4241 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8361        9.1146        .16624E-03   -1.5225    
   2  Prefactor     18.192        40.054        .93907E-04   -1.4855    
   3  Prefactor     .10000E-03    9.6662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.9015        .13578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.3576        2.8997        .93571E-04   -1.5290    
   6  Prefactor     .10000E-03    6.3433        .17394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    9.3377        .20736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    18.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     45.786        39.642        .59253E-04   -1.4354    
  10  Prefactor     13.767        12.845        .53974E-03   -1.4966    
  11  Prefactor     .10000E-03    49.761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.8288        12.885        .20623E-03   -1.5317    
  13  norm          1.2196        1.0383        .63124E-04   -1.5487    
  14  norm          6.8597        9.4009        .15318E-03   -1.5184    
  15  Prefactor     11.789        9.4603        .11667E-03   -1.5021    
  16  Prefactor     .10000E-03    10.877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.9610        .96720E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    275.18        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.7887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.890        18.847        .53735E-03   -1.4962    
  21  norm          13.430        16.963        .10930E-03   -1.4975    
  22  Prefactor     26.681        54.216        .77555E-04   -1.4674    
  23  Prefactor     10.665        5.7035        .11419E-03   -1.5055    
  24  Prefactor     8.6336        19.590        .13642E-03   -1.5120    
  25  Prefactor     .10000E-03    18.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     3.3994        18.133        .10971E-02   -1.5339    
  27  Prefactor     3.4446        6.8961        .21791E-03   -1.5337    
  28  Normalizat    .77745        .24600        .29696E-03   -1.0091    
  29  Prefactor     .99461        .17741        .20018E-03   -.92909    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.33852e-10
Minuit parameter uncertainties:
  1  9.11678
  2  40.1127
  3  1.08408e-05
  4  1.10461e-05
  5  2.8998
  6  6.05972e-06
  7  0.000406352
  8  4.69538e-05
  9  39.6649
  10  12.8472
  11  0.000229716
  12  12.8943
  13  1.03827
  14  9.40295
  15  9.46152
  16  1.06344e-05
  17  1.25558e-06
  18  0.00049781
  19  3.3118e-05
  20  18.855
  21  16.9693
  22  54.3163
  23  5.70381
  24  19.605
  25  1.55621e-05
  26  15.7097
  27  6.8977
  28  0.246355
  29  0.177516
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  9.946e-01  1.775e-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:  7.775e-01  2.464e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.43
Ra Dec: 353.869 -1.476
Photon Index (Fixed Index): 2.50 +/- 0.00
Photon Flux (Fixed Index): 1.66e-08 +/- 2.09e-08
Energy Flux (Fixed Index): 6.87e-06 +/- 8.69e-06

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

Saving results to:
/scratch/kocevski/31342/likelihoodResults_362188801_362448001_4FGL_J2335.4-0128_daily_bin474.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) = 5002.87860088
delta logL = 1.65708359415

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5002.87670474
delta logL = 1.6589797394

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.432       1.0000         .10000E-03   10000.    
     2 'alpha     '    .57504       1.0000          .0000       5.0000    
     3 'Normalizat'    .78714       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99074       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=   5002.877     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      205 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.446        14.286        .27323E-02   -.19310E-04
   2  alpha         .57540        .74071        .50000       -.35063E-05
   3  Normalizat    .78738        .19642        .66728E-01    .14444E-04
   4  Prefactor     .99061        .14896        .46151E-01   -.35591E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 13.4464
  alpha      = 0.575396
  Normalizat = 0.787378
  Prefactor  = 0.990607
 **********
 **   18 **HESSE 
 **********

 FCN=   5002.877     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .43E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.446        18.049        .10929E-03   -1.4974    
   2  alpha         .57540        .81805        .31560E-01   -.87859    
   3  Normalizat    .78738        .22845        .29523E-03   -1.0054    
   4  Prefactor     .99061        .17352        .20044E-03   -.93043    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.33127e-12
Minuit parameter uncertainties:
  1  18.0561
  2  0.858934
  3  0.22873
  4  0.17362
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31342': 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) = 5002.87670379
delta logL = 1.6589806807

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  9.906e-01  1.736e-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:  7.874e-01  2.287e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.75
Ra Dec: 353.869 -1.476
Photon Index (Free Index): 0.58 +/- 0.86
Photon Flux (Free Index): 5.90e-09 +/- 6.18e-09
Energy Flux (Free Index): 3.03e-05 +/- 4.24e-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/31342/cmap_HighResolution_362188801_362448001_4FGL_J2335.4-0128_daily_bin474.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.35e-05', comment='SUCCESS', photon_flux='1.66e-08', energy_flux2='3.03e-05', photon_flux_error='2.09e-08', dlogl='1.66e+00', energy_flux='6.87e-06', photon_flux2='5.90e-09', job_status='DONE', time_completed='2021-09-30 00:27:02.489931', photon_index_error2='0.86', photon_index2='0.58', ts='1.43', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='8.06e-08', energy_flux_error2='4.24e-05', EG='0.78', time_epoch_completed='1632986822.49', return_code='0', job_id='31342', GAL2='0.99', EG2='0.79', return_code2='0', energy_flux_error='8.69e-06', photon_flux_error2='6.18e-09', ts2='4.75', photon_index='2.50' WHERE bin_id='474' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:27:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0009>
Subject: Job 31342: <4FGL_J2335.4-0128_daily_bin474> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin474 353.869 -1.476 362188801 362448001 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 :                                   675.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             329.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   695 sec.
    Turnaround time :                            698 sec.

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

