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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin594
RA = 353.869, Dec = -1.476
tmin = 393292801, tmax = 393552001
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='31530', job_status='RUN', time_executed='2021-09-30 00:15:51.972058', time_epoch_executed='1632986151.97' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='594'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31530

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31530/ft1_4FGL_J2335.4-0128_daily_bin594.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31530/ft2_4FGL_J2335.4-0128_daily_bin594.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31530/ft1_4FGL_J2335.4-0128_daily_bin594.fits outfile=/scratch/kocevski/31530/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin594.fits ra=353.869 dec=-1.476 rad=12.0 tmin=393292801.0 tmax=393552001.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.67
user 4.47
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/31530/ft1_filtered_4FGL_J2335.4-0128_daily_bin594.fits" evtable="EVENTS" scfile=/scratch/kocevski/31530/ft2_4FGL_J2335.4-0128_daily_bin594.fits sctable="SC_DATA" outfile=/scratch/kocevski/31530/ltcube_393292801_393552001_4FGL_J2335.4-0128_daily_bin594.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/31530/ft2_4FGL_J2335.4-0128_daily_bin594.fits
.....................!
real 11.76
user 11.37
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31530/ft1_filtered_4FGL_J2335.4-0128_daily_bin594.fits evtable="EVENTS" scfile=/scratch/kocevski/31530/ft2_4FGL_J2335.4-0128_daily_bin594.fits sctable="SC_DATA" expcube=/scratch/kocevski/31530/ltcube_393292801_393552001_4FGL_J2335.4-0128_daily_bin594.fits outfile=/scratch/kocevski/31530/expmap_393292801_393552001_4FGL_J2335.4-0128_daily_bin594.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/31530/ltcube_393292801_393552001_4FGL_J2335.4-0128_daily_bin594.fits
.....................!
real 189.92
user 185.15
sys 4.39

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/31530/ft1_filtered_4FGL_J2335.4-0128_daily_bin594.fits scfile=/scratch/kocevski/31530/ft2_4FGL_J2335.4-0128_daily_bin594.fits outfile=/scratch/kocevski/31530/cmap_393292801_393552001_4FGL_J2335.4-0128_daily_bin594.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/31530/ft1_filtered_4FGL_J2335.4-0128_daily_bin594.fits scfile=/scratch/kocevski/31530/ft2_4FGL_J2335.4-0128_daily_bin594.fits outfile=/scratch/kocevski/31530/cmap_HighResolution_393292801_393552001_4FGL_J2335.4-0128_daily_bin594.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/31530/ft1_filtered_4FGL_J2335.4-0128_daily_bin594.fits evtable="EVENTS" scfile=/scratch/kocevski/31530/ft2_4FGL_J2335.4-0128_daily_bin594.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/31530/Model_4FGL_J2335.4-0128_daily_bin594.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/31530/ft1_filtered_4FGL_J2335.4-0128_daily_bin594.fits.....................!
real 57.35
user 56.04
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14095E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.763       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    34.216       1.0000         .10000E-03   10000.    
     7 'norm      '    7.3022       1.0000         .10000E-03   10000.    
     8 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.660       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.050       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10571E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.1412       1.0000         .10000E-03   10000.    
    14 'norm      '    .10072E-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      '    17.857       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11056E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.6777       1.0000         .10000E-03   10000.    
    20 'Prefactor '    24.647       1.0000         .10000E-03   10000.    
    21 'norm      '    .10780E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.113       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.9418       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .89164E-02   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .74433       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0932       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=   5511.561     FROM MIGRAD    STATUS=CONVERGED    739 CALLS     3724 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10017E-03    5.9656       -.34095E-05** at limit **
   2  Prefactor     17.777        40.963        .62496E-05    .91240E-04
   3  Prefactor     .10000E-03    3.9318        .43729E-08** at limit **
   4  Prefactor     .10000E-03    2.2682        .48128E-07** at limit **
   5  norm          .10000E-03    1.2922       -.34732E-07** at limit **
   6  Prefactor     34.222        23.696       -.16016E-05    .88298E-04
   7  norm          7.3020        4.6564       -.38430E-06   -.17189E-02
   8  norm          .10000E-03    14.010       -.24067E-05** at limit **
   9  Prefactor     28.620        38.032       -.11002E-04   -.27287E-05
  10  Prefactor     .10000E-03    16.148        .27053E-05** at limit **
  11  Prefactor     10.030        30.451        .10911E-05   -.69914E-05
  12  Prefactor     .10000E-03    9.8786        .10390E-06** at limit **
  13  norm          1.1403        1.0813       -.58290E-07   -.71886E-03
  14  norm          .10000E-03    4.6885       -.59720E-07** at limit **
  15  Prefactor     .10000E-03    4.4906        .18836E-07** at limit **
  16  Prefactor     .10000E-03    26.642        .10060E-04** at limit **
  17  norm          17.856        11.849        .70257E-07   -.52103E-05
  18  Prefactor     .10000E-03    211.57       -.70379E-06** at limit **
  19  Prefactor     7.6762        16.815       -.57972E-06   -.14840E-03
  20  Prefactor     24.644        29.373        .15983E-06    .50320E-05
  21  norm          .10000E-03    29.899        .10553E-04** at limit **
  22  Prefactor     .10000E-03    16.172        .30299E-05** at limit **
  23  Prefactor     11.111        7.3486       -.46130E-06   -.26513E-03
  24  Prefactor     .10000E-03    36.193       -.16606E-04** at limit **
  25  Prefactor     4.9347        27.166        .17908E-05   -.16897E-04
  26  Prefactor     .10000E-03    5.0526       -.17292E-08** at limit **
  27  Prefactor     .10010E-03    6.5337        .80260E-06** at limit **
  28  Normalizat    .74492        .21506        .11658E-05    .97866E-04
  29  Prefactor     1.0929        .15256        .31771E-06    .16423E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100174
  Prefactor  = 17.7765
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 34.2221
  norm       = 7.30197
  norm       = 0.0001
  Prefactor  = 28.62
  Prefactor  = 0.0001
  Prefactor  = 10.0299
  Prefactor  = 0.0001
  norm       = 1.14033
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.8557
  Prefactor  = 0.0001
  Prefactor  = 7.67624
  Prefactor  = 24.6438
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.1114
  Prefactor  = 0.0001
  Prefactor  = 4.93475
  Prefactor  = 0.0001
  Prefactor  = 0.000100096
  Normalizat = 0.744924
  Prefactor  = 1.0929
 **********
 **   18 **HESSE 
 **********

 FCN=   5511.561     FROM HESSE     STATUS=OK           549 CALLS     4273 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10017E-03    21.410        .33773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.777        40.789        .95031E-04   -1.4864    
   3  Prefactor     .10000E-03    3.9329        .14377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.2709        .10914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.3121        .82374E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     34.222        23.581        .68507E-04   -1.4537    
   7  norm          7.3020        4.7353        .59840E-03   -1.5167    
   8  norm          .10000E-03    14.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     28.620        38.030        .74837E-04   -1.4638    
  10  Prefactor     .10000E-03    16.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.030        30.380        .12640E-03   -1.5074    
  12  Prefactor     .10000E-03    10.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.1403        1.0492        .70278E-04   -1.5494    
  14  norm          .10000E-03    4.7747        .15680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.4972        .15360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    26.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          17.856        11.837        .94778E-04   -1.4863    
  18  Prefactor     .10000E-03    211.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.6762        16.650        .14472E-03   -1.5154    
  20  Prefactor     24.644        29.342        .80687E-04   -1.4715    
  21  norm          .10000E-03    29.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    16.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     11.111        7.3162        .12018E-03   -1.5041    
  24  Prefactor     .10000E-03    36.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     4.9347        26.996        .18092E-03   -1.5264    
  26  Prefactor     .10000E-03    5.0569        .16298E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10010E-03    62.610        .35953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .74492        .24221        .31975E-03   -1.0215    
  29  Prefactor     1.0929        .17533        .19861E-03   -.89694    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0631e-08
Minuit parameter uncertainties:
  1  0.00386091
  2  40.8532
  3  1.12086e-06
  4  3.72713e-06
  5  1.16609e-06
  6  23.5879
  7  4.73551
  8  5.68056e-06
  9  38.0627
  10  1.61181e-05
  11  30.4273
  12  2.94069e-05
  13  1.04921
  14  8.32577e-06
  15  2.72866e-06
  16  1.8554e-06
  17  11.8382
  18  6.21709e-05
  19  16.6599
  20  29.3587
  21  6.04268e-05
  22  1.89469e-06
  23  7.31677
  24  1.84946e-05
  25  23.0998
  26  7.58171e-07
  27  0.00492005
  28  0.242559
  29  0.175421
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  6.043e-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.093e+00  1.754e-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.449e-01  2.426e-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: 8.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.38e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/31530/likelihoodResults_393292801_393552001_4FGL_J2335.4-0128_daily_bin594.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) = 5511.56155413
delta logL = -0.000159016802172

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5511.56139526
delta logL = -1.51287167682e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4783       1.0000          .0000       5.0000    
     3 'Normalizat'    .74495       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0929       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=   5511.561     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      192 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    37.965        .90712E-02** at limit **
   2  alpha         2.5191        3.6309        .41154       -.76053E-05
   3  Normalizat    .74492        .20176        .72247E-01   -.12173E-04
   4  Prefactor     1.0929        .15010        .37862E-01   -.18157E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.51906
  Normalizat = 0.744923
  Prefactor  = 1.0929
 **********
 **   18 **HESSE 
 **********

 FCN=   5511.561     FROM HESSE     STATUS=OK            29 CALLS      221 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    30.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5191        3.5571        .16461        .76255E-02
   3  Normalizat    .74492        .23086        .31975E-03   -1.0215    
   4  Prefactor     1.0929        .17212        .19861E-03   -.89694    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.99148e-11
Minuit parameter uncertainties:
  1  0.000231819
  2  2.50338
  3  0.231166
  4  0.172203
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31530': 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) = 5511.56139507
delta logL = 4.28681232734e-08

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  2.318e-04  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  2.519e+00  2.503e+00  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.093e+00  1.722e-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.449e-01  2.312e-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/31530/cmap_HighResolution_393292801_393552001_4FGL_J2335.4-0128_daily_bin594.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.38e-05', job_status='DONE', photon_flux_upper_limit='8.13e-08', time_completed='2021-09-30 00:27:32.819405', job_id='31530', GAL2='1.09', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1632986852.82', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='4.29e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='594' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:27:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 31530: <4FGL_J2335.4-0128_daily_bin594> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin594 353.869 -1.476 393292801 393552001 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 :                                   699.00 sec.
    Max Memory :                                 617 MB
    Average Memory :                             312.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   710 sec.
    Turnaround time :                            711 sec.

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

