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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin775
RA = 353.869, Dec = -1.476
tmin = 440208001, tmax = 440467201
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='32820', job_status='RUN', time_executed='2021-09-30 00:22:37.713617', time_epoch_executed='1632986557.71' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='775'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/32820

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/32820/ft1_4FGL_J2335.4-0128_daily_bin775.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/32820/ft2_4FGL_J2335.4-0128_daily_bin775.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/32820/ft1_4FGL_J2335.4-0128_daily_bin775.fits outfile=/scratch/kocevski/32820/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin775.fits ra=353.869 dec=-1.476 rad=12.0 tmin=440208001.0 tmax=440467201.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.44
user 3.21
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/32820/ft2_4FGL_J2335.4-0128_daily_bin775.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/32820/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin775.fits evtable="EVENTS" outfile="/scratch/kocevski/32820/ft1_filtered_4FGL_J2335.4-0128_daily_bin775.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/32820/ft1_filtered_4FGL_J2335.4-0128_daily_bin775.fits" evtable="EVENTS" scfile=/scratch/kocevski/32820/ft2_4FGL_J2335.4-0128_daily_bin775.fits sctable="SC_DATA" outfile=/scratch/kocevski/32820/ltcube_440208001_440467201_4FGL_J2335.4-0128_daily_bin775.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/32820/ft2_4FGL_J2335.4-0128_daily_bin775.fits
.....................!
real 11.74
user 11.39
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/32820/ft1_filtered_4FGL_J2335.4-0128_daily_bin775.fits evtable="EVENTS" scfile=/scratch/kocevski/32820/ft2_4FGL_J2335.4-0128_daily_bin775.fits sctable="SC_DATA" expcube=/scratch/kocevski/32820/ltcube_440208001_440467201_4FGL_J2335.4-0128_daily_bin775.fits outfile=/scratch/kocevski/32820/expmap_440208001_440467201_4FGL_J2335.4-0128_daily_bin775.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/32820/ltcube_440208001_440467201_4FGL_J2335.4-0128_daily_bin775.fits
.....................!
real 191.77
user 185.80
sys 5.59

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/32820/ft1_filtered_4FGL_J2335.4-0128_daily_bin775.fits scfile=/scratch/kocevski/32820/ft2_4FGL_J2335.4-0128_daily_bin775.fits outfile=/scratch/kocevski/32820/cmap_440208001_440467201_4FGL_J2335.4-0128_daily_bin775.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.35
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/32820/ft1_filtered_4FGL_J2335.4-0128_daily_bin775.fits evtable="EVENTS" scfile=/scratch/kocevski/32820/ft2_4FGL_J2335.4-0128_daily_bin775.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/32820/Model_4FGL_J2335.4-0128_daily_bin775.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/32820/ft1_filtered_4FGL_J2335.4-0128_daily_bin775.fits.....................!
real 48.39
user 47.03
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.5086       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    45.302       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.6955       1.0000         .10000E-03   10000.    
    14 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.8348       1.0000         .10000E-03   10000.    
    17 'norm      '    7.4638       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.4687       1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.9059       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    38.532       1.0000         .10000E-03   10000.    
    26 'Prefactor '    16.611       1.0000         .10000E-03   10000.    
    27 'Prefactor '    10.799       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .49509       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1546       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=   4636.502     FROM MIGRAD    STATUS=CONVERGED    709 CALLS     3645 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.7019       -.20652E-06** at limit **
   2  Prefactor     .10000E-03    24.658        .76196E-06** at limit **
   3  Prefactor     .10000E-03    25.726       -.64961E-05** at limit **
   4  Prefactor     .10000E-03    1.5537        .81873E-08** at limit **
   5  norm          6.5071        3.2255       -.94382E-07    .23018E-03
   6  Prefactor     .10000E-03    4.9541       -.16673E-06** at limit **
   7  norm          .10000E-03    .94193       -.18441E-07** at limit **
   8  norm          .10000E-03    8.9441       -.30158E-05** at limit **
   9  Prefactor     .10000E-03    55.321        .24931E-04** at limit **
  10  Prefactor     45.300        27.515       -.63680E-06   -.57194E-04
  11  Prefactor     .10000E-03    28.633       -.21647E-04** at limit **
  12  Prefactor     .10000E-03    4.3687        .21396E-06** at limit **
  13  norm          1.6957        1.0916       -.78520E-07   -.23965E-02
  14  norm          .10000E-03    6.6163        .47764E-06** at limit **
  15  Prefactor     .10000E-03    3.6020       -.26483E-07** at limit **
  16  Prefactor     8.8235        37.058       -.13734E-04   -.20227E-04
  17  norm          7.4607        8.2999       -.47034E-06   -.15297E-03
  18  Prefactor     .10000E-03    110.06       -.26155E-04** at limit **
  19  Prefactor     .10000E-03    10.926        .11906E-04** at limit **
  20  Prefactor     2.4452        35.437        .27813E-05   -.83018E-04
  21  norm          .10000E-03    12.867       -.12382E-04** at limit **
  22  Prefactor     .10000E-03    22.978        .86662E-05** at limit **
  23  Prefactor     3.9067        4.6961       -.28210E-05   -.57734E-03
  24  Prefactor     .10000E-03    21.383        .12346E-04** at limit **
  25  Prefactor     38.530        22.077       -.16296E-06   -.31919E-04
  26  Prefactor     16.611        18.621       -.15408E-06   -.14980E-04
  27  Prefactor     10.799        9.0221       -.33464E-07   -.45285E-04
  28  Normalizat    .49493        .22447        .26448E-05   -.82187E-04
  29  Prefactor     1.1548        .16544       -.34220E-08   -.11686E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.50714
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.2996
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.69574
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.82346
  norm       = 7.46069
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.44522
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.90675
  Prefactor  = 0.0001
  Prefactor  = 38.5295
  Prefactor  = 16.6107
  Prefactor  = 10.7993
  Normalizat = 0.494933
  Prefactor  = 1.15475
 **********
 **   18 **HESSE 
 **********

 FCN=   4636.502     FROM HESSE     STATUS=OK           543 CALLS     4188 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.7379        .15877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    24.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    25.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.5559        .82888E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.5071        3.2209        .81985E-04   -1.5198    
   6  Prefactor     .10000E-03    4.9575        .14802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .94441        .64537E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    8.9779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    55.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     45.300        27.507        .59568E-04   -1.4361    
  11  Prefactor     .10000E-03    28.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.3888        .13896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.6957        1.0922        .16158E-03   -1.5448    
  14  norm          .10000E-03    6.8233        .34178E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.6088        .12616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.8235        37.133        .13485E-03   -1.5114    
  17  norm          7.4607        8.2774        .14680E-03   -1.5162    
  18  Prefactor     .10000E-03    109.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.4452        35.370        .26026E-03   -1.5395    
  21  norm          .10000E-03    12.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    22.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.9067        4.7030        .15190E-03   -1.5313    
  24  Prefactor     .10000E-03    21.411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     38.530        22.077        .64569E-04   -1.4466    
  26  Prefactor     16.611        18.613        .98270E-04   -1.4893    
  27  Prefactor     10.799        9.0249        .12192E-03   -1.5051    
  28  Normalizat    .49493        .24489        .35555E-03   -1.1265    
  29  Prefactor     1.1548        .18332        .18437E-03   -.87735    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.12871e-10
Minuit parameter uncertainties:
  1  4.46549e-06
  2  7.80921e-06
  3  1.1796e-05
  4  5.82586e-07
  5  3.221
  6  1.22225e-06
  7  4.19108e-07
  8  5.4965e-06
  9  0.000164586
  10  27.5148
  11  1.54564e-06
  12  1.15214e-06
  13  1.09221
  14  1.19911e-06
  15  2.8846e-06
  16  36.24
  17  8.27867
  18  0.000140822
  19  0.000166256
  20  18.6127
  21  9.57101e-05
  22  2.44357e-06
  23  4.70346
  24  7.97669e-06
  25  22.0822
  26  18.6193
  27  9.02602
  28  0.245424
  29  0.183422
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  9.571e-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:  1.155e+00  1.834e-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:  4.949e-01  2.454e-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.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.56e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/32820/likelihoodResults_440208001_440467201_4FGL_J2335.4-0128_daily_bin775.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) = 4636.50253444
delta logL = -0.000372745989807

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4636.50216194
delta logL = -2.51747223956e-07

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.4972       1.0000          .0000       5.0000    
     3 'Normalizat'    .49510       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1546       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=   4636.502     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      231 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    575.88        .18142E-01** at limit **
   2  alpha         1.9607        3.2962        .16461        .40749E-08
   3  Normalizat    .49493        .34845E-01    .35555E-03    .24525E-04
   4  Prefactor     1.1548        .26971E-01    .18437E-03    .49343E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.96074
  Normalizat = 0.494934
  Prefactor  = 1.15475
 **********
 **   18 **HESSE 
 **********

 FCN=   4636.502     FROM HESSE     STATUS=OK            23 CALLS      254 TOTAL
                     EDM=   .44E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    13.999        .24802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9607        3.5601        .65843E-02   -.21741    
   3  Normalizat    .49493        .23017        .14222E-04   -1.1265    
   4  Prefactor     1.1548        .17839        .36873E-04   -.87735    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.36968e-12
Minuit parameter uncertainties:
  1  2.85777e-05
  2  657.34
  3  0.230609
  4  0.178479
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/32820': 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) = 4636.50216136
delta logL = 3.30970578943e-07

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  2.858e-05  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  1.961e+00  6.573e+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:  1.155e+00  1.785e-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:  4.949e-01  2.306e-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/32820/cmap_HighResolution_440208001_440467201_4FGL_J2335.4-0128_daily_bin775.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.56e-05', job_status='DONE', photon_flux_upper_limit='6.16e-08', time_completed='2021-09-30 00:33:21.054170', job_id='32820', GAL2='1.15', fit_tolerance='1e-08', EG2='0.49', EG='0.49', time_epoch_completed='1632987201.05', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='3.31e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='775' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:33:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0137>
Subject: Job 32820: <4FGL_J2335.4-0128_daily_bin775> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin775 353.869 -1.476 440208001 440467201 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 :                                   642.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            781 sec.

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

