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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin390
RA = 353.869, Dec = -1.476
tmin = 340416001, tmax = 340675201
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='30227', job_status='RUN', time_executed='2021-09-30 00:12:43.920922', time_epoch_executed='1632985963.92' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='390'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/30227

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

Retrieving the FT1 file...

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

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

Retrieving 53 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/30227/ft1_4FGL_J2335.4-0128_daily_bin390.fits


Retrieving the FT1 file...

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

Retrieving 53 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/30227/ft2_4FGL_J2335.4-0128_daily_bin390.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/30227/ft1_4FGL_J2335.4-0128_daily_bin390.fits outfile=/scratch/kocevski/30227/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin390.fits ra=353.869 dec=-1.476 rad=12.0 tmin=340416001.0 tmax=340675201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 6.75
user 6.47
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/30227/ft1_filtered_4FGL_J2335.4-0128_daily_bin390.fits" evtable="EVENTS" scfile=/scratch/kocevski/30227/ft2_4FGL_J2335.4-0128_daily_bin390.fits sctable="SC_DATA" outfile=/scratch/kocevski/30227/ltcube_340416001_340675201_4FGL_J2335.4-0128_daily_bin390.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/30227/ft2_4FGL_J2335.4-0128_daily_bin390.fits
.....................!
real 11.22
user 10.89
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/30227/ft1_filtered_4FGL_J2335.4-0128_daily_bin390.fits evtable="EVENTS" scfile=/scratch/kocevski/30227/ft2_4FGL_J2335.4-0128_daily_bin390.fits sctable="SC_DATA" expcube=/scratch/kocevski/30227/ltcube_340416001_340675201_4FGL_J2335.4-0128_daily_bin390.fits outfile=/scratch/kocevski/30227/expmap_340416001_340675201_4FGL_J2335.4-0128_daily_bin390.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/30227/ltcube_340416001_340675201_4FGL_J2335.4-0128_daily_bin390.fits
.....................!
real 189.65
user 185.53
sys 3.82

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/30227/ft1_filtered_4FGL_J2335.4-0128_daily_bin390.fits scfile=/scratch/kocevski/30227/ft2_4FGL_J2335.4-0128_daily_bin390.fits outfile=/scratch/kocevski/30227/cmap_340416001_340675201_4FGL_J2335.4-0128_daily_bin390.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=353.869 yref=-1.476 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/30227/ft1_filtered_4FGL_J2335.4-0128_daily_bin390.fits scfile=/scratch/kocevski/30227/ft2_4FGL_J2335.4-0128_daily_bin390.fits outfile=/scratch/kocevski/30227/cmap_HighResolution_340416001_340675201_4FGL_J2335.4-0128_daily_bin390.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11544E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11094E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.460       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.8200       1.0000         .10000E-03   10000.    
     5 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.9977       1.0000         .10000E-03   10000.    
     8 'norm      '    23.224       1.0000         .10000E-03   10000.    
     9 'Prefactor '    33.911       1.0000         .10000E-03   10000.    
    10 'Prefactor '    48.517       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.8765       1.0000         .10000E-03   10000.    
    14 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.281       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.963       1.0000         .10000E-03   10000.    
    24 'Prefactor '    22.760       1.0000         .10000E-03   10000.    
    25 'Prefactor '    36.454       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    7.0371       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .74175       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .75984       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=   4957.490     FROM MIGRAD    STATUS=CONVERGED    695 CALLS     3650 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.507        .42519E-05** at limit **
   2  Prefactor     .10000E-03    66.447       -.42343E-04** at limit **
   3  Prefactor     15.458        12.507       -.72860E-06    .93797E-04
   4  Prefactor     7.8145        7.5340       -.12954E-05    .20365E-03
   5  norm          .10000E-03    .91587       -.11014E-06** at limit **
   6  Prefactor     .10000E-03    8.0152        .17286E-05** at limit **
   7  norm          1.9983        2.8433       -.19859E-06   -.10060E-04
   8  norm          23.221        15.996       -.18327E-05    .15636E-04
   9  Prefactor     33.897        37.772       -.15911E-04    .11554E-04
  10  Prefactor     48.511        27.192       -.32535E-05   -.24119E-04
  11  Prefactor     .10000E-03    20.838       -.86472E-05** at limit **
  12  Prefactor     .10000E-03    5.9442        .15870E-06** at limit **
  13  norm          2.8764        1.0568       -.13372E-06   -.13189E-03
  14  norm          .10000E-03    1.8687       -.12525E-06** at limit **
  15  Prefactor     13.280        11.367       -.11510E-06    .15523E-04
  16  Prefactor     .10000E-03    52.178        .41744E-04** at limit **
  17  norm          .10000E-03    4.0115        .88266E-08** at limit **
  18  Prefactor     .10000E-03    59.839        .31324E-05** at limit **
  19  Prefactor     .10000E-03    25.423        .41089E-05** at limit **
  20  Prefactor     .10000E-03    6.4746       -.96761E-06** at limit **
  21  norm          .10000E-03    13.585        .10344E-04** at limit **
  22  Prefactor     .10000E-03    22.529       -.85307E-05** at limit **
  23  Prefactor     11.965        5.9050        .42354E-06   -.36093E-03
  24  Prefactor     22.712        48.499       -.73200E-04   -.14650E-04
  25  Prefactor     36.446        25.254        .76248E-06    .88654E-04
  26  Prefactor     .10000E-03    11.488       -.82706E-05** at limit **
  27  Prefactor     7.0377        8.7478       -.26580E-05   -.73569E-04
  28  Normalizat    .74187        .20052        .12026E-04   -.87984E-04
  29  Prefactor     .75980        .13795        .18568E-05    .19948E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 15.4579
  Prefactor  = 7.81447
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.99826
  norm       = 23.221
  Prefactor  = 33.8967
  Prefactor  = 48.5113
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.87638
  norm       = 0.0001
  Prefactor  = 13.2802
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.965
  Prefactor  = 22.7117
  Prefactor  = 36.4461
  Prefactor  = 0.0001
  Prefactor  = 7.03772
  Normalizat = 0.741869
  Prefactor  = 0.759801
 **********
 **   18 **HESSE 
 **********

 FCN=   4957.490     FROM HESSE     STATUS=OK           545 CALLS     4195 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.014        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    66.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.458        12.517        .10186E-03   -1.4921    
   4  Prefactor     7.8145        7.5085        .14339E-03   -1.5149    
   5  norm          .10000E-03    .92947        .65748E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.0247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.9983        2.8147        .12790E-03   -1.5425    
   8  norm          23.221        16.014        .83118E-04   -1.4744    
   9  Prefactor     33.897        37.780        .68813E-04   -1.4543    
  10  Prefactor     48.511        27.214        .57569E-04   -1.4314    
  11  Prefactor     .10000E-03    20.870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.0267        .16758E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.8764        1.0571        .23965E-04   -1.5369    
  14  norm          .10000E-03    1.8751        .93985E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.280        11.381        .10991E-03   -1.4979    
  16  Prefactor     .10000E-03    52.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.0280        .13763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    59.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    26.350        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.4771        .17497E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    13.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    22.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     11.965        5.9035        .11094E-03   -1.5016    
  24  Prefactor     22.712        48.599        .83961E-04   -1.4754    
  25  Prefactor     36.446        25.262        .66378E-04   -1.4500    
  26  Prefactor     .10000E-03    11.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     7.0377        8.7829        .15123E-03   -1.5177    
  28  Normalizat    .74187        .23131        .28250E-03   -1.0226    
  29  Prefactor     .75980        .15979        .20388E-03   -1.0123    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.21471e-10
Minuit parameter uncertainties:
  1  0.000218285
  2  0.000180363
  3  12.5195
  4  7.50938
  5  8.82869e-06
  6  9.44419e-06
  7  2.81492
  8  16.0168
  9  37.8066
  10  27.2208
  11  0.000102351
  12  8.24287e-05
  13  1.0571
  14  1.435e-05
  15  11.3833
  16  0.000449097
  17  9.90058e-07
  18  1.29326e-05
  19  0.000289385
  20  2.69415e-05
  21  3.2911e-05
  22  7.55003e-05
  23  5.9038
  24  48.684
  25  25.2698
  26  2.02901e-05
  27  8.78455
  28  0.231613
  29  0.159892
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  3.291e-05  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.598e-01  1.599e-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.419e-01  2.316e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/30227/likelihoodResults_340416001_340675201_4FGL_J2335.4-0128_daily_bin390.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) = 4957.49054503
delta logL = -0.000350146250639

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4957.49019489
delta logL = -1.24691723613e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5044       1.0000          .0000       5.0000    
     3 'Normalizat'    .74187       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75980       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=   4957.490     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      231 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    43.187        .18142E-02** at limit **
   2  alpha         2.4845        3.6896        .16461        .67270E-07
   3  Normalizat    .74187        .20994        .28249E-03   -.14890E-05
   4  Prefactor     .75980        .15449        .20388E-03   -.21747E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100007
  alpha      = 2.48449
  Normalizat = 0.741872
  Prefactor  = 0.759798
 **********
 **   18 **HESSE 
 **********

 FCN=   4957.490     FROM HESSE     STATUS=OK            23 CALLS      254 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    13.615        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4845        3.6902        .65843E-02   -.62053E-02
   3  Normalizat    .74187        .21012        .11300E-04   -1.0226    
   4  Prefactor     .75980        .15462        .81551E-05   -1.0123    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.70223e-10
Minuit parameter uncertainties:
  1  0.000616855
  2  812.031
  3  0.210349
  4  0.154705
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/30227': 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) = 4957.49019488
delta logL = 7.68523022998e-10

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  6.169e-04  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  2.484e+00  8.120e+02  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:  7.598e-01  1.547e-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.419e-01  2.103e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 353.869 -1.476

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/30227/cmap_HighResolution_340416001_340675201_4FGL_J2335.4-0128_daily_bin390.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.56e-05', job_status='DONE', photon_flux_upper_limit='6.18e-08', time_completed='2021-09-30 00:23:54.636581', job_id='30227', GAL2='0.76', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1632986634.64', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='7.69e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='390' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:23:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 30227: <4FGL_J2335.4-0128_daily_bin390> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin390> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 00:10:43 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:10:45 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:10:45 2021
Terminated at Thu Sep 30 00:23:55 2021
Results reported at Thu Sep 30 00:23:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin390 353.869 -1.476 340416001 340675201 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 :                                   668.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            792 sec.

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

