/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 124 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 = 7261
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2335.4-0128_daily_bin446
RA = 353.869, Dec = -1.476
tmin = 354931201, tmax = 355190401
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='31297', job_status='RUN', time_executed='2021-09-30 00:17:34.641076', time_epoch_executed='1632986254.64' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='446'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31297

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31297/ft1_4FGL_J2335.4-0128_daily_bin446.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31297/ft2_4FGL_J2335.4-0128_daily_bin446.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31297/ft1_4FGL_J2335.4-0128_daily_bin446.fits outfile=/scratch/kocevski/31297/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin446.fits ra=353.869 dec=-1.476 rad=12.0 tmin=354931201.0 tmax=355190401.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.32
user 3.10
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/31297/ft1_filtered_4FGL_J2335.4-0128_daily_bin446.fits" evtable="EVENTS" scfile=/scratch/kocevski/31297/ft2_4FGL_J2335.4-0128_daily_bin446.fits sctable="SC_DATA" outfile=/scratch/kocevski/31297/ltcube_354931201_355190401_4FGL_J2335.4-0128_daily_bin446.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/31297/ft2_4FGL_J2335.4-0128_daily_bin446.fits
.....................!
real 11.70
user 11.37
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31297/ft1_filtered_4FGL_J2335.4-0128_daily_bin446.fits evtable="EVENTS" scfile=/scratch/kocevski/31297/ft2_4FGL_J2335.4-0128_daily_bin446.fits sctable="SC_DATA" expcube=/scratch/kocevski/31297/ltcube_354931201_355190401_4FGL_J2335.4-0128_daily_bin446.fits outfile=/scratch/kocevski/31297/expmap_354931201_355190401_4FGL_J2335.4-0128_daily_bin446.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/31297/ltcube_354931201_355190401_4FGL_J2335.4-0128_daily_bin446.fits
.....................!
real 192.43
user 186.96
sys 5.15

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/31297/ft1_filtered_4FGL_J2335.4-0128_daily_bin446.fits scfile=/scratch/kocevski/31297/ft2_4FGL_J2335.4-0128_daily_bin446.fits outfile=/scratch/kocevski/31297/cmap_354931201_355190401_4FGL_J2335.4-0128_daily_bin446.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/31297/ft1_filtered_4FGL_J2335.4-0128_daily_bin446.fits scfile=/scratch/kocevski/31297/ft2_4FGL_J2335.4-0128_daily_bin446.fits outfile=/scratch/kocevski/31297/cmap_HighResolution_354931201_355190401_4FGL_J2335.4-0128_daily_bin446.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/31297/ft1_filtered_4FGL_J2335.4-0128_daily_bin446.fits evtable="EVENTS" scfile=/scratch/kocevski/31297/ft2_4FGL_J2335.4-0128_daily_bin446.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/31297/Model_4FGL_J2335.4-0128_daily_bin446.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/31297/ft1_filtered_4FGL_J2335.4-0128_daily_bin446.fits.....................!
real 61.35
user 60.06
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4800       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    32.672       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.6723       1.0000         .10000E-03   10000.    
     5 'norm      '    4.1257       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.9009       1.0000         .10000E-03   10000.    
     7 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    25.494       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.8195       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .33414E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.9489       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.0618       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10382E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    21.843       1.0000         .10000E-03   10000.    
    25 'Prefactor '    44.034       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.5291       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.6164       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .86941       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .84295       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=   6389.683     FROM MIGRAD    STATUS=CONVERGED    718 CALLS     3188 TOTAL
                     EDM=   .12E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4793        6.9807       -.90033E-07   -.20804E-03
   2  Prefactor     .10000E-03    16.258        .27316E-05** at limit **
   3  Prefactor     32.673        19.207        .39773E-07    .36335E-05
   4  Prefactor     3.6725        4.1230       -.69828E-07   -.11943E-04
   5  norm          4.1255        3.2435       -.36678E-07   -.24910E-05
   6  Prefactor     2.9001        10.366       -.10305E-06   -.79490E-05
   7  norm          .10000E-03    1.3571        .81866E-08** at limit **
   8  norm          25.496        13.103       -.54972E-07    .14414E-05
   9  Prefactor     .10000E-03    10.252        .44878E-06** at limit **
  10  Prefactor     .10000E-03    4.9938       -.86675E-08** at limit **
  11  Prefactor     .10000E-03    37.788        .51946E-05** at limit **
  12  Prefactor     .10000E-03    4.0624        .15501E-07** at limit **
  13  norm          1.8195        .87552       -.99797E-08    .78783E-05
  14  norm          .10000E-03    1.6146       -.11349E-07** at limit **
  15  Prefactor     .10000E-03    3.8222       -.85913E-07** at limit **
  16  Prefactor     .10000E-03    16.945       -.25362E-05** at limit **
  17  norm          .10000E-03    6.2761       -.18583E-06** at limit **
  18  Prefactor     .10000E-03    62.659       -.56797E-06** at limit **
  19  Prefactor     4.9431        9.9411        .18847E-06   -.10655E-03
  20  Prefactor     .10000E-03    10.980       -.66860E-06** at limit **
  21  norm          2.0572        12.720       -.46964E-07   -.14275E-03
  22  Prefactor     .10000E-03    35.765       -.39041E-05** at limit **
  23  Prefactor     .10000E-03    3.6058        .22833E-07** at limit **
  24  Prefactor     21.836        28.927       -.49796E-05    .42336E-05
  25  Prefactor     44.032        24.938       -.26790E-06    .13913E-04
  26  Prefactor     1.5276        28.629       -.20657E-06   -.41144E-05
  27  Prefactor     2.6166        3.8205        .33231E-07   -.41682E-03
  28  Normalizat    .86948        .17548        .55285E-06    .41842E-05
  29  Prefactor     .84283        .12342        .92063E-07    .34858E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.47932
  Prefactor  = 0.0001
  Prefactor  = 32.673
  Prefactor  = 3.67246
  norm       = 4.12552
  Prefactor  = 2.90006
  norm       = 0.0001
  norm       = 25.4959
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.81946
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 4.94307
  Prefactor  = 0.0001
  norm       = 2.05724
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.8356
  Prefactor  = 44.032
  Prefactor  = 1.52757
  Prefactor  = 2.61664
  Normalizat = 0.869476
  Prefactor  = 0.84283
 **********
 **   18 **HESSE 
 **********

 FCN=   6389.683     FROM HESSE     STATUS=OK           557 CALLS     3745 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4793        7.3657        .10838E-02   -1.5335    
   2  Prefactor     .10000E-03    16.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     32.673        19.189        .70103E-04   -1.4564    
   4  Prefactor     3.6725        4.1010        .16246E-03   -1.5325    
   5  norm          4.1255        3.2483        .10944E-03   -1.5302    
   6  Prefactor     2.9001        10.310        .23857E-03   -1.5367    
   7  norm          .10000E-03    1.3691        .90661E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          25.496        13.115        .79338E-04   -1.4698    
   9  Prefactor     .10000E-03    10.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.0024        .17446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    37.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.0934        .15727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.8195        .87072        .49186E-04   -1.5438    
  14  norm          .10000E-03    1.6234        .99173E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.8300        .15255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    16.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    41.744        .38482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    62.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.9431        9.7657        .90394E-03   -1.5263    
  20  Prefactor     .10000E-03    11.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.0572        16.624        .14389E-02   -1.5421    
  22  Prefactor     .10000E-03    35.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.7351        .29471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     21.836        28.932        .85703E-04   -1.4773    
  25  Prefactor     44.032        24.967        .60416E-04   -1.4380    
  26  Prefactor     1.5276        28.865        .34520E-03   -1.5461    
  27  Prefactor     2.6166        5.1176        .11941E-02   -1.5384    
  28  Normalizat    .86948        .20222        .26769E-03   -.97541    
  29  Prefactor     .84283        .14106        .20248E-03   -.98168    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.60611e-10
Minuit parameter uncertainties:
  1  7.36759
  2  1.24838e-06
  3  19.1923
  4  4.1013
  5  3.24849
  6  10.3163
  7  2.02273e-07
  8  13.1166
  9  8.58842e-07
  10  4.05986e-07
  11  3.37092e-05
  12  5.14816e-06
  13  0.870725
  14  1.08399e-06
  15  9.75356e-07
  16  4.84934e-06
  17  0.000739169
  18  3.04854e-06
  19  9.76888
  20  6.88353e-06
  21  11.7004
  22  1.2982e-05
  23  5.8739e-08
  24  28.9503
  25  24.9724
  26  13.2874
  27  5.11848
  28  0.202396
  29  0.141117
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  2.057e+00  1.170e+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.428e-01  1.411e-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.695e-01  2.024e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/31297/likelihoodResults_354931201_355190401_4FGL_J2335.4-0128_daily_bin446.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) = 6388.66774713
delta logL = 1.01506663775

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6388.66747242
delta logL = 1.01534134848

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.0443       1.0000         .10000E-03   10000.    
     2 'alpha     '    .68910       1.0000          .0000       5.0000    
     3 'Normalizat'    .87647       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83581       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=   6388.667     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      239 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.0699        10.491        .33318E-02   -.23875E-04
   2  alpha         .68996        .80480        .50000       -.92181E-05
   3  Normalizat    .87648        .16229        .44600E-01    .16230E-04
   4  Prefactor     .83581        .12166        .44182E-01   -.23702E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 9.06995
  alpha      = 0.689964
  Normalizat = 0.876479
  Prefactor  = 0.835809
 **********
 **   18 **HESSE 
 **********

 FCN=   6388.667     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.0699        12.490        .13327E-03   -1.5106    
   2  alpha         .68996        .86573        .37755E-01   -.80960    
   3  Normalizat    .87648        .18432        .26662E-03   -.97292    
   4  Prefactor     .83581        .13822        .20299E-03   -.98422    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.76156e-10
Minuit parameter uncertainties:
  1  12.4935
  2  0.906966
  3  0.184452
  4  0.138275
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31297': 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) = 6388.66747041
delta logL = 1.01534335741

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  9.070e+00  1.249e+01  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  6.900e-01  9.070e-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:  8.358e-01  1.383e-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.765e-01  1.845e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.08
Ra Dec: 353.869 -1.476
Photon Index (Free Index): 0.69 +/- 0.91
Photon Flux (Free Index): 3.71e-09 +/- 4.40e-09
Energy Flux (Free Index): 1.61e-05 +/- 2.53e-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/31297/cmap_HighResolution_354931201_355190401_4FGL_J2335.4-0128_daily_bin446.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.95e-05', comment='SUCCESS', energy_flux2='1.61e-05', dlogl='1.02e+00', photon_flux2='3.71e-09', job_status='DONE', time_completed='2021-09-30 00:29:53.507362', photon_index_error2='0.91', photon_index2='0.69', ts='0.04', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='4.68e-08', energy_flux_error2='2.53e-05', EG='0.87', time_epoch_completed='1632986993.51', return_code='0', job_id='31297', GAL2='0.84', EG2='0.88', return_code2='0', photon_flux_error2='4.40e-09', ts2='2.08', photon_index='2.50' WHERE bin_id='446' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:29:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 31297: <4FGL_J2335.4-0128_daily_bin446> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin446 353.869 -1.476 354931201 355190401 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 :                                   737.05 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             320.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   871 sec.
    Turnaround time :                            874 sec.

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

