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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin547
RA = 353.869, Dec = -1.476
tmin = 381110401, tmax = 381369601
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='31455', job_status='RUN', time_executed='2021-09-30 00:18:20.507875', time_epoch_executed='1632986300.51' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='547'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31455

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31455/ft1_4FGL_J2335.4-0128_daily_bin547.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31455/ft2_4FGL_J2335.4-0128_daily_bin547.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31455/ft1_4FGL_J2335.4-0128_daily_bin547.fits outfile=/scratch/kocevski/31455/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin547.fits ra=353.869 dec=-1.476 rad=12.0 tmin=381110401.0 tmax=381369601.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.69
user 4.46
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/31455/ft1_filtered_4FGL_J2335.4-0128_daily_bin547.fits" evtable="EVENTS" scfile=/scratch/kocevski/31455/ft2_4FGL_J2335.4-0128_daily_bin547.fits sctable="SC_DATA" outfile=/scratch/kocevski/31455/ltcube_381110401_381369601_4FGL_J2335.4-0128_daily_bin547.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/31455/ft2_4FGL_J2335.4-0128_daily_bin547.fits
.....................!
real 11.80
user 11.43
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31455/ft1_filtered_4FGL_J2335.4-0128_daily_bin547.fits evtable="EVENTS" scfile=/scratch/kocevski/31455/ft2_4FGL_J2335.4-0128_daily_bin547.fits sctable="SC_DATA" expcube=/scratch/kocevski/31455/ltcube_381110401_381369601_4FGL_J2335.4-0128_daily_bin547.fits outfile=/scratch/kocevski/31455/expmap_381110401_381369601_4FGL_J2335.4-0128_daily_bin547.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/31455/ltcube_381110401_381369601_4FGL_J2335.4-0128_daily_bin547.fits
.....................!
real 190.68
user 185.76
sys 4.60

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/31455/ft1_filtered_4FGL_J2335.4-0128_daily_bin547.fits scfile=/scratch/kocevski/31455/ft2_4FGL_J2335.4-0128_daily_bin547.fits outfile=/scratch/kocevski/31455/cmap_381110401_381369601_4FGL_J2335.4-0128_daily_bin547.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/31455/ft1_filtered_4FGL_J2335.4-0128_daily_bin547.fits scfile=/scratch/kocevski/31455/ft2_4FGL_J2335.4-0128_daily_bin547.fits outfile=/scratch/kocevski/31455/cmap_HighResolution_381110401_381369601_4FGL_J2335.4-0128_daily_bin547.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/31455/ft1_filtered_4FGL_J2335.4-0128_daily_bin547.fits evtable="EVENTS" scfile=/scratch/kocevski/31455/ft2_4FGL_J2335.4-0128_daily_bin547.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/31455/Model_4FGL_J2335.4-0128_daily_bin547.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/31455/ft1_filtered_4FGL_J2335.4-0128_daily_bin547.fits......................!
real 44.05
user 42.83
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .41126       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.4146       1.0000         .10000E-03   10000.    
     5 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .62467E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10486E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.153       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .24837E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.331       1.0000         .10000E-03   10000.    
    13 'norm      '    .74912       1.0000         .10000E-03   10000.    
    14 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.586       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .17740E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10626E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.672       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10898E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.5604       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.4691       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10747E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10228E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .88959       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .83417       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=   4017.291     FROM MIGRAD    STATUS=CONVERGED   1301 CALLS     3759 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .40963        27.673        .34900E-02   -.96563E-04
   2  Prefactor     .10000E-03    16.399        .18142E-02** at limit **
   3  Prefactor     .10000E-03    5.1628        .14058E-02** at limit **
   4  Prefactor     7.4121        6.2505        .14036E-03    .12328E-03
   5  norm          .10000E-03    2.4339        .15089E-02** at limit **
   6  Prefactor     .10085E-03    111.28        .47375E-02** at limit **
   7  norm          .10000E-03    2.9129        .10461E-02** at limit **
   8  norm          .10000E-03    28.233        .18142E-02** at limit **
   9  Prefactor     .10000E-03    14.879        .18142E-02** at limit **
  10  Prefactor     12.165        17.061        .11491E-03   -.34579E-04
  11  Prefactor     .10021E-03    112.76        .15001    ** at limit **
  12  Prefactor     12.313        13.225        .11407E-03    .58621E-03
  13  norm          .74949        .89724        .65264E-03    .45777E-03
  14  norm          .10000E-03    3.7537        .11945E-02** at limit **
  15  Prefactor     11.587        9.4901        .11769E-03   -.16547E-03
  16  Prefactor     .10000E-03    79.363        .18142E-02** at limit **
  17  norm          .10000E-03    9.8809        .18142E-02** at limit **
  18  Prefactor     .10000E-03    74.433        .18142E-02** at limit **
  19  Prefactor     11.671        12.806        .11726E-03    .65346E-04
  20  Prefactor     .10000E-03    27.996        .18142E-02** at limit **
  21  norm          .10000E-03    10.398        .18142E-02** at limit **
  22  Prefactor     6.5541        233.45        .15668E-03    .10884E-04
  23  Prefactor     6.4724        6.1763        .68227E-03   -.73592E-04
  24  Prefactor     .10000E-03    29.274        .18142E-02** at limit **
  25  Prefactor     .10000E-03    14.715        .18142E-02** at limit **
  26  Prefactor     .10000E-03    10.602        .18142E-02** at limit **
  27  Prefactor     .10000E-03    2.5931        .99612E-03** at limit **
  28  Normalizat    .88943        .25108        .25829E-03   -.58453E-04
  29  Prefactor     .83420        .17650        .19537E-03   -.96113E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.409629
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.41206
  norm       = 0.0001
  Prefactor  = 0.000100846
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.1646
  Prefactor  = 0.000100211
  Prefactor  = 12.3128
  norm       = 0.749489
  norm       = 0.0001
  Prefactor  = 11.5871
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.671
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.55405
  Prefactor  = 6.47244
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.889426
  Prefactor  = 0.834197
 **********
 **   18 **HESSE 
 **********

 FCN=   4017.291     FROM HESSE     STATUS=OK           539 CALLS     4298 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .40963        27.875        .13960E-03   -1.5580    
   2  Prefactor     .10000E-03    16.400        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.1630        .28115E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.4121        6.2443        .56143E-05   -1.5163    
   5  norm          .10000E-03    2.4384        .30178E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10085E-03    114.01        .18950E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.9134        .20922E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    28.253        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    14.879        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.165        17.059        .45963E-05   -1.5010    
  11  Prefactor     .10021E-03    116.59        .14704       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.313        13.242        .22815E-04   -1.5006    
  13  norm          .74949        .89674        .26106E-04   -1.5535    
  14  norm          .10000E-03    3.7541        .23890E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.587        9.4892        .47077E-05   -1.5027    
  16  Prefactor     .10000E-03    79.374        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    9.8889        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    74.433        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.671        12.801        .46904E-05   -1.5025    
  20  Prefactor     .10000E-03    28.016        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    10.398        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.5541        233.42        .62672E-05   -1.5196    
  23  Prefactor     6.4724        6.1727        .27291E-04   -1.5199    
  24  Prefactor     .10000E-03    29.280        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    14.718        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    10.603        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    2.5931        .19922E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .88943        .25120        .10331E-04   -.96833    
  29  Prefactor     .83420        .17662        .39074E-04   -.98480    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.20274e-09
Minuit parameter uncertainties:
  1  6.76068
  2  1.51005e-05
  3  5.01408e-06
  4  6.24484
  5  1.71237e-05
  6  0.0196788
  7  2.89327e-05
  8  2.54136e-06
  9  9.29598e-06
  10  17.066
  11  0.00994891
  12  13.245
  13  0.896754
  14  2.61906e-06
  15  9.49045
  16  5.78885e-05
  17  2.25115e-05
  18  5.08311e-05
  19  12.8045
  20  5.69628e-05
  21  2.16555e-06
  22  78.5595
  23  6.17334
  24  0.000114874
  25  3.02797e-05
  26  2.10744e-05
  27  5.42685e-06
  28  0.251532
  29  0.176737
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  2.166e-06  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.342e-01  1.767e-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.894e-01  2.515e-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.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.51e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/31455/likelihoodResults_381110401_381369601_4FGL_J2335.4-0128_daily_bin547.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) = 4017.29105191
delta logL = -0.000457139244645

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4017.29059476
delta logL = 4.12683220929e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4987       1.0000          .0000       5.0000    
     3 'Normalizat'    .88942       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83421       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=   4017.291     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      243 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    563.85        .18142E-01** at limit **
   2  alpha         1.8415        3.1233        .16461       -.65958E-08
   3  Normalizat    .88943        .39601E-01    .25829E-03    .12831E-04
   4  Prefactor     .83420        .29267E-01    .19537E-03    .18534E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.84147
  Normalizat = 0.889426
  Prefactor  = 0.834197
 **********
 **   18 **HESSE 
 **********

 FCN=   4017.291     FROM HESSE     STATUS=OK            23 CALLS      266 TOTAL
                     EDM=   .45E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    11.457        .20934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8415        3.4815        .65843E-02   -.26656    
   3  Normalizat    .88943        .23557        .10331E-04   -.96833    
   4  Prefactor     .83420        .17418        .78149E-05   -.98480    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.4859e-12
Minuit parameter uncertainties:
  1  2.39175e-05
  2  644.693
  3  0.235841
  4  0.174295
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31455': 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) = 4017.29059433
delta logL = 4.3823638407e-07

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  2.392e-05  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  1.841e+00  6.447e+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:  8.342e-01  1.743e-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.894e-01  2.358e-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/31455/cmap_HighResolution_381110401_381369601_4FGL_J2335.4-0128_daily_bin547.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.51e-05', job_status='DONE', photon_flux_upper_limit='6.04e-08', time_completed='2021-09-30 00:28:27.338005', job_id='31455', GAL2='0.83', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1632986907.34', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='4.38e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='547' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:28:27 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin547 353.869 -1.476 381110401 381369601 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 :                                   606.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   770 sec.
    Turnaround time :                            772 sec.

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

