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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin517
RA = 353.869, Dec = -1.476
tmin = 373334401, tmax = 373593601
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='31407', job_status='RUN', time_executed='2021-09-30 00:18:59.250162', time_epoch_executed='1632986339.25' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='517'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31407

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31407/ft1_4FGL_J2335.4-0128_daily_bin517.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31407/ft2_4FGL_J2335.4-0128_daily_bin517.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31407/ft1_4FGL_J2335.4-0128_daily_bin517.fits outfile=/scratch/kocevski/31407/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin517.fits ra=353.869 dec=-1.476 rad=12.0 tmin=373334401.0 tmax=373593601.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.46
user 4.22
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/31407/ft1_filtered_4FGL_J2335.4-0128_daily_bin517.fits" evtable="EVENTS" scfile=/scratch/kocevski/31407/ft2_4FGL_J2335.4-0128_daily_bin517.fits sctable="SC_DATA" outfile=/scratch/kocevski/31407/ltcube_373334401_373593601_4FGL_J2335.4-0128_daily_bin517.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/31407/ft2_4FGL_J2335.4-0128_daily_bin517.fits
.....................!
real 11.74
user 11.37
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31407/ft1_filtered_4FGL_J2335.4-0128_daily_bin517.fits evtable="EVENTS" scfile=/scratch/kocevski/31407/ft2_4FGL_J2335.4-0128_daily_bin517.fits sctable="SC_DATA" expcube=/scratch/kocevski/31407/ltcube_373334401_373593601_4FGL_J2335.4-0128_daily_bin517.fits outfile=/scratch/kocevski/31407/expmap_373334401_373593601_4FGL_J2335.4-0128_daily_bin517.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/31407/ltcube_373334401_373593601_4FGL_J2335.4-0128_daily_bin517.fits
.....................!
real 189.88
user 185.27
sys 4.29

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/31407/ft1_filtered_4FGL_J2335.4-0128_daily_bin517.fits scfile=/scratch/kocevski/31407/ft2_4FGL_J2335.4-0128_daily_bin517.fits outfile=/scratch/kocevski/31407/cmap_373334401_373593601_4FGL_J2335.4-0128_daily_bin517.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/31407/ft1_filtered_4FGL_J2335.4-0128_daily_bin517.fits scfile=/scratch/kocevski/31407/ft2_4FGL_J2335.4-0128_daily_bin517.fits outfile=/scratch/kocevski/31407/cmap_HighResolution_373334401_373593601_4FGL_J2335.4-0128_daily_bin517.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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/31407/ft1_filtered_4FGL_J2335.4-0128_daily_bin517.fits evtable="EVENTS" scfile=/scratch/kocevski/31407/ft2_4FGL_J2335.4-0128_daily_bin517.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/31407/Model_4FGL_J2335.4-0128_daily_bin517.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/31407/ft1_filtered_4FGL_J2335.4-0128_daily_bin517.fits.....................!
real 58.70
user 57.43
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3341       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.419       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .32008E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.7557       1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.122       1.0000         .10000E-03   10000.    
     7 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.1353       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .27198       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.7879       1.0000         .10000E-03   10000.    
    13 'norm      '    2.5728       1.0000         .10000E-03   10000.    
    14 'norm      '    .10195E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    29.615       1.0000         .10000E-03   10000.    
    18 'Prefactor '    103.45       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .18210E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .15658E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    12.062       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    18.722       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .94126       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .80359       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=   5911.025     FROM MIGRAD    STATUS=CONVERGED    802 CALLS     3841 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3366        5.7532       -.14490E-06   -.21254E-03
   2  Prefactor     .10000E-03    18.353        .74786E-07** at limit **
   3  Prefactor     17.429        15.215        .13069E-06   -.88864E-04
   4  Prefactor     .10021E-03    5.9846        .38971E-05** at limit **
   5  norm          3.7583        2.6327        .11414E-06   -.40721E-03
   6  Prefactor     19.139        14.080        .17549E-06   -.25053E-03
   7  norm          .10000E-03    3.6683        .82360E-07** at limit **
   8  norm          .10000E-03    3.5443       -.33094E-07** at limit **
   9  Prefactor     .10000E-03    13.302        .32775E-06** at limit **
  10  Prefactor     3.1465        29.561        .10454E-05   -.31306E-04
  11  Prefactor     1.1026        52.607       -.27267E-05   -.63458E-05
  12  Prefactor     3.7369        6.9186        .33593E-05    .58849E-03
  13  norm          2.5725        1.1193       -.13076E-06   -.36859E-02
  14  norm          .10000E-03    4.5045        .14958E-06** at limit **
  15  Prefactor     .10000E-03    3.7109        .26000E-07** at limit **
  16  Prefactor     .10000E-03    11.759        .55673E-07** at limit **
  17  norm          29.616        12.062        .64114E-07    .25785E-05
  18  Prefactor     103.50        167.87       -.97057E-05   -.80120E-04
  19  Prefactor     .10000E-03    8.0940        .21193E-05** at limit **
  20  Prefactor     .10000E-03    79.914        .55724E-06** at limit **
  21  norm          .10000E-03    23.897        .13458E-06** at limit **
  22  Prefactor     .10000E-03    12.881       -.41130E-06** at limit **
  23  Prefactor     .10000E-03    2.1384        .13797E-06** at limit **
  24  Prefactor     12.076        31.495       -.19251E-05    .15457E-05
  25  Prefactor     .10000E-03    45.597        .53462E-06** at limit **
  26  Prefactor     .10000E-03    12.903        .11084E-06** at limit **
  27  Prefactor     18.729        8.1714        .13486E-06   -.16354E-03
  28  Normalizat    .94039        .18959       -.20144E-05   -.89300E-03
  29  Prefactor     .80394        .12815        .52712E-06   -.88986E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.33664
  Prefactor  = 0.0001
  Prefactor  = 17.4287
  Prefactor  = 0.000100208
  norm       = 3.75833
  Prefactor  = 19.1392
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.14645
  Prefactor  = 1.10262
  Prefactor  = 3.73688
  norm       = 2.57252
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 29.6164
  Prefactor  = 103.502
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 12.0762
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 18.7295
  Normalizat = 0.940386
  Prefactor  = 0.803942
 **********
 **   18 **HESSE 
 **********

 FCN=   5911.025     FROM HESSE     STATUS=OK           561 CALLS     4402 TOTAL
                     EDM=   .84E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3366        5.7557        .87007E-03   -1.5246    
   2  Prefactor     .10000E-03    18.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.429        15.221        .95965E-04   -1.4873    
   4  Prefactor     .10021E-03    19.793        .24358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.7583        2.6325        .95956E-04   -1.5320    
   6  Prefactor     19.139        13.903        .91592E-04   -1.4833    
   7  norm          .10000E-03    3.7877        .28545E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.5509        .14135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.1465        29.541        .22895E-03   -1.5353    
  11  Prefactor     1.1026        528.54        .93137E-02   -1.5498    
  12  Prefactor     3.7369        7.9991        .10371E-02   -1.5321    
  13  norm          2.5725        1.1129        .49504E-04   -1.5387    
  14  norm          .10000E-03    4.6991        .31859E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.7170        .14460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          29.616        12.049        .73622E-04   -1.4619    
  18  Prefactor     103.50        173.89        .19766E-03   -1.3670    
  19  Prefactor     .10000E-03    33.546        .37058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    81.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    24.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.1358        .32673E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     12.076        31.400        .11534E-03   -1.5013    
  25  Prefactor     .10000E-03    46.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    13.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     18.729        8.2031        .92565E-04   -1.4842    
  28  Normalizat    .94039        .22199        .26098E-03   -.95055    
  29  Prefactor     .80394        .14804        .20679E-03   -.99583    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.38398e-08
Minuit parameter uncertainties:
  1  5.7563
  2  2.30526e-05
  3  15.2249
  4  0.00405695
  5  2.63259
  6  13.9053
  7  3.75573e-05
  8  1.69075e-06
  9  6.43079e-05
  10  19.2943
  11  48.7177
  12  8.00137
  13  1.11289
  14  2.9427e-06
  15  3.71728e-06
  16  2.23491e-06
  17  12.0502
  18  174.755
  19  0.0001148
  20  0.000296604
  21  6.31326e-05
  22  7.24557e-05
  23  0.000270312
  24  31.4431
  25  0.000341251
  26  4.07774e-05
  27  8.20362
  28  0.22221
  29  0.148111
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  6.313e-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:  8.039e-01  1.481e-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:  9.404e-01  2.222e-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: 5.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.23e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/31407/likelihoodResults_373334401_373593601_4FGL_J2335.4-0128_daily_bin517.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) = 5911.02560209
delta logL = -0.000197599551939

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5911.02540481
delta logL = -3.13522832585e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10991E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4925       1.0000          .0000       5.0000    
     3 'Normalizat'    .94041       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80396       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=   5911.025     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      190 TOTAL
                     EDM=   .92E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    24.473        .90712E-02** at limit **
   2  alpha         2.4788        3.5543        .41152        .29043E-05
   3  Normalizat    .94039        .16946        .45416E-01   -.39449E-05
   4  Prefactor     .80394        .12581        .43769E-01   -.24300E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.47875
  Normalizat = 0.94039
  Prefactor  = 0.803942
 **********
 **   18 **HESSE 
 **********

 FCN=   5911.025     FROM HESSE     STATUS=OK            33 CALLS      223 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    24.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4788        3.5481        .50000       -.84996E-02
   3  Normalizat    .94039        .19272        .26098E-03   -.95055    
   4  Prefactor     .80394        .14310        .20679E-03   -.99583    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02551e-11
Minuit parameter uncertainties:
  1  6.46288e-05
  2  2.50429
  3  0.192866
  4  0.143168
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31407': 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) = 5911.02540446
delta logL = 3.01743057207e-08

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  6.463e-05  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  2.479e+00  2.504e+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:  8.039e-01  1.432e-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:  9.404e-01  1.929e-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/31407/cmap_HighResolution_373334401_373593601_4FGL_J2335.4-0128_daily_bin517.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.23e-05', job_status='DONE', photon_flux_upper_limit='5.36e-08', time_completed='2021-09-30 00:31:33.942820', job_id='31407', GAL2='0.80', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1632987093.94', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='3.02e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='517' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:31:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 31407: <4FGL_J2335.4-0128_daily_bin517> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin517 353.869 -1.476 373334401 373593601 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 :                                   754.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             267.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   963 sec.
    Turnaround time :                            964 sec.

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

