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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin1360
RA = 353.869, Dec = -1.476
tmin = 591840001, tmax = 592099201
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='34674', job_status='RUN', time_executed='2021-09-30 00:29:34.391221', time_epoch_executed='1632986974.39' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='1360'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34674

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34674/ft1_4FGL_J2335.4-0128_daily_bin1360.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34674/ft2_4FGL_J2335.4-0128_daily_bin1360.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34674/ft1_4FGL_J2335.4-0128_daily_bin1360.fits outfile=/scratch/kocevski/34674/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin1360.fits ra=353.869 dec=-1.476 rad=12.0 tmin=591840001.0 tmax=592099201.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 5.29
user 5.00
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/34674/ft2_4FGL_J2335.4-0128_daily_bin1360.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/34674/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin1360.fits evtable="EVENTS" outfile="/scratch/kocevski/34674/ft1_filtered_4FGL_J2335.4-0128_daily_bin1360.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/34674/ft1_filtered_4FGL_J2335.4-0128_daily_bin1360.fits" evtable="EVENTS" scfile=/scratch/kocevski/34674/ft2_4FGL_J2335.4-0128_daily_bin1360.fits sctable="SC_DATA" outfile=/scratch/kocevski/34674/ltcube_591840001_592099201_4FGL_J2335.4-0128_daily_bin1360.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/34674/ft2_4FGL_J2335.4-0128_daily_bin1360.fits
.....................!
real 11.55
user 11.20
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34674/ft1_filtered_4FGL_J2335.4-0128_daily_bin1360.fits evtable="EVENTS" scfile=/scratch/kocevski/34674/ft2_4FGL_J2335.4-0128_daily_bin1360.fits sctable="SC_DATA" expcube=/scratch/kocevski/34674/ltcube_591840001_592099201_4FGL_J2335.4-0128_daily_bin1360.fits outfile=/scratch/kocevski/34674/expmap_591840001_592099201_4FGL_J2335.4-0128_daily_bin1360.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/34674/ltcube_591840001_592099201_4FGL_J2335.4-0128_daily_bin1360.fits
.....................!
real 191.11
user 185.30
sys 5.43

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

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/34674/ft1_filtered_4FGL_J2335.4-0128_daily_bin1360.fits scfile=/scratch/kocevski/34674/ft2_4FGL_J2335.4-0128_daily_bin1360.fits outfile=/scratch/kocevski/34674/cmap_HighResolution_591840001_592099201_4FGL_J2335.4-0128_daily_bin1360.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=353.869 yref=-1.476 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    24.010       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.5445       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .57738       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.8487       1.0000         .10000E-03   10000.    
    14 'norm      '    .24161       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12712E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.8726       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.0623       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .82444       1.0000         .10000E-03   10000.    
    21 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.158       1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.7552       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.7920       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .64002       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1759       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=   4402.995     FROM MIGRAD    STATUS=CONVERGED    748 CALLS     3776 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.8445       -.12919E-07** at limit **
   2  Prefactor     24.006        61.282        .40230E-06   -.21321E-05
   3  Prefactor     6.5429        15.767        .44619E-05    .14675E-04
   4  Prefactor     .10000E-03    2.3834       -.10077E-07** at limit **
   5  norm          .57765        2.9323       -.45109E-06   -.14212E-03
   6  Prefactor     .10000E-03    8.6196       -.47830E-08** at limit **
   7  norm          .10000E-03    2.8755       -.28449E-08** at limit **
   8  norm          .10000E-03    13.864        .27057E-06** at limit **
   9  Prefactor     .10000E-03    16.491        .20676E-06** at limit **
  10  Prefactor     .10000E-03    28.998        .13882E-06** at limit **
  11  Prefactor     .10000E-03    40.779        .16764E-06** at limit **
  12  Prefactor     .10000E-03    6.5596        .21919E-07** at limit **
  13  norm          3.8488        1.5706       -.19863E-06   -.12153E-04
  14  norm          .23874        4.1789        .15490E-06   -.22618E-04
  15  Prefactor     .10000E-03    3.5317       -.25104E-08** at limit **
  16  Prefactor     .10008E-03    565.50       -.23083E-04** at limit **
  17  norm          5.8736        7.4080        .15342E-06   -.14128E-03
  18  Prefactor     .10002E-03    359.64        .24136E-05** at limit **
  19  Prefactor     7.0608        14.710        .43472E-05    .21426E-04
  20  Prefactor     .80427        17.334        .19401E-05   -.19966E-03
  21  norm          .10000E-03    19.420       -.71139E-06** at limit **
  22  Prefactor     .10000E-03    51.326       -.14436E-06** at limit **
  23  Prefactor     .10000E-03    3.2756       -.43700E-06** at limit **
  24  Prefactor     10.163        32.936       -.20571E-05   -.16481E-04
  25  Prefactor     3.7565        28.026        .85334E-06   -.30046E-04
  26  Prefactor     .10000E-03    14.809       -.24762E-06** at limit **
  27  Prefactor     3.7917        8.0348        .42468E-06   -.52239E-05
  28  Normalizat    .64002        .23205        .92195E-06   -.80893E-04
  29  Prefactor     1.1760        .16807       -.20067E-05    .52857E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 24.0063
  Prefactor  = 6.54291
  Prefactor  = 0.0001
  norm       = 0.577646
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.84882
  norm       = 0.238736
  Prefactor  = 0.0001
  Prefactor  = 0.000100081
  norm       = 5.87359
  Prefactor  = 0.000100019
  Prefactor  = 7.0608
  Prefactor  = 0.804274
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.1626
  Prefactor  = 3.75654
  Prefactor  = 0.0001
  Prefactor  = 3.79169
  Normalizat = 0.640015
  Prefactor  = 1.17596
 **********
 **   18 **HESSE 
 **********

 FCN=   4402.995     FROM HESSE     STATUS=OK           555 CALLS     4331 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.8567        .16943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     24.006        61.251        .81749E-04   -1.4728    
   3  Prefactor     6.5429        15.663        .78436E-03   -1.5196    
   4  Prefactor     .10000E-03    2.3895        .10002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .57765        4.6184        .19402E-02   -1.5556    
   6  Prefactor     .10000E-03    8.6287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.9943        .21955E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    14.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    29.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    40.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.5884        .16585E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.8488        1.5647        .48574E-04   -1.5316    
  14  norm          .23874        26.012        .25782E-02   -1.5610    
  15  Prefactor     .10000E-03    3.5415        .12175E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10008E-03    594.56        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.8736        7.3826        .16572E-03   -1.5223    
  18  Prefactor     .10002E-03    363.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.0608        14.851        .75476E-03   -1.5176    
  20  Prefactor     .80427        132.40        .50467E-02   -1.5529    
  21  norm          .10000E-03    19.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    51.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.3417        .11737E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     10.163        32.919        .12572E-03   -1.5070    
  25  Prefactor     3.7565        27.812        .20835E-03   -1.5320    
  26  Prefactor     .10000E-03    14.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     3.7917        8.0267        .20730E-03   -1.5318    
  28  Normalizat    .64002        .25838        .16185E-02   -1.0631    
  29  Prefactor     1.1760        .18909        .18620E-03   -.87074    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.3903e-08
Minuit parameter uncertainties:
  1  3.06405e-06
  2  61.4118
  3  15.673
  4  3.69195e-07
  5  3.26673
  6  1.62453e-06
  7  1.60021e-06
  8  5.37112e-05
  9  6.82916e-05
  10  7.38047e-05
  11  9.22612e-05
  12  4.76227e-06
  13  1.56473
  14  4.98515
  15  4.92794e-07
  16  0.0140239
  17  7.38376
  18  0.00533682
  19  14.8592
  20  20.6839
  21  0.000164027
  22  0.000103515
  23  3.7092e-05
  24  32.9783
  25  20.4558
  26  6.33356e-05
  27  8.02896
  28  0.258874
  29  0.189202
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  1.640e-04  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.176e+00  1.892e-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:  6.400e-01  2.589e-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: 7.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.96e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/34674/likelihoodResults_591840001_592099201_4FGL_J2335.4-0128_daily_bin1360.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): 102
logL (Free Index) = 4402.99521282
delta logL = -0.000243910403697

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4402.99497391
delta logL = -5.00047644891e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.7841       1.0000          .0000       5.0000    
     3 'Normalizat'    .64002       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1760       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=   4402.995     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      234 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.4260        .90712E-02** at limit **
   2  alpha         3.7696        3.6993        .50000        .82427E-05
   3  Normalizat    .64002        .21372        .73125E-01    .65486E-04
   4  Prefactor     1.1760        .16320        .35226E-01    .45143E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 3.76964
  Normalizat = 0.640017
  Prefactor  = 1.17596
 **********
 **   18 **HESSE 
 **********

 FCN=   4402.995     FROM HESSE     STATUS=OK            31 CALLS      265 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.6437        .32798E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.7696        3.6980        .50000        .53270    
   3  Normalizat    .64002        .24109        .32370E-03   -1.0631    
   4  Prefactor     1.1760        .18472        .18620E-03   -.87074    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00925e-10
Minuit parameter uncertainties:
  1  6.81987e-05
  2  2.15367
  3  0.241485
  4  0.184823
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34674': 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) = 4402.99497385
delta logL = -4.94578034704e-06

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  6.820e-05  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  3.770e+00  2.154e+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.176e+00  1.848e-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:  6.400e-01  2.415e-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/34674/cmap_HighResolution_591840001_592099201_4FGL_J2335.4-0128_daily_bin1360.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.96e-05', job_status='DONE', photon_flux_upper_limit='7.14e-08', time_completed='2021-09-30 00:40:25.152742', job_id='34674', GAL2='1.18', fit_tolerance='1e-08', EG2='0.64', EG='0.64', time_epoch_completed='1632987625.15', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='-4.95e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='1360' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:40:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 34674: <4FGL_J2335.4-0128_daily_bin1360> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin1360> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 00:25:46 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:25:49 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:25:49 2021
Terminated at Thu Sep 30 00:40:25 2021
Results reported at Thu Sep 30 00:40:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin1360 353.869 -1.476 591840001 592099201 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 :                                   637.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             243.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            879 sec.

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

