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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin546
RA = 353.869, Dec = -1.476
tmin = 380851201, tmax = 381110401
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='31453', job_status='RUN', time_executed='2021-09-30 00:17:55.258303', time_epoch_executed='1632986275.26' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='546'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31453

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31453/ft1_4FGL_J2335.4-0128_daily_bin546.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31453/ft2_4FGL_J2335.4-0128_daily_bin546.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31453/ft1_4FGL_J2335.4-0128_daily_bin546.fits outfile=/scratch/kocevski/31453/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin546.fits ra=353.869 dec=-1.476 rad=12.0 tmin=380851201.0 tmax=381110401.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.46
user 3.22
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/31453/ft2_4FGL_J2335.4-0128_daily_bin546.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/31453/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin546.fits evtable="EVENTS" outfile="/scratch/kocevski/31453/ft1_filtered_4FGL_J2335.4-0128_daily_bin546.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/31453/ft1_filtered_4FGL_J2335.4-0128_daily_bin546.fits" evtable="EVENTS" scfile=/scratch/kocevski/31453/ft2_4FGL_J2335.4-0128_daily_bin546.fits sctable="SC_DATA" outfile=/scratch/kocevski/31453/ltcube_380851201_381110401_4FGL_J2335.4-0128_daily_bin546.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/31453/ft2_4FGL_J2335.4-0128_daily_bin546.fits
.....................!
real 12.14
user 11.79
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31453/ft1_filtered_4FGL_J2335.4-0128_daily_bin546.fits evtable="EVENTS" scfile=/scratch/kocevski/31453/ft2_4FGL_J2335.4-0128_daily_bin546.fits sctable="SC_DATA" expcube=/scratch/kocevski/31453/ltcube_380851201_381110401_4FGL_J2335.4-0128_daily_bin546.fits outfile=/scratch/kocevski/31453/expmap_380851201_381110401_4FGL_J2335.4-0128_daily_bin546.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/31453/ltcube_380851201_381110401_4FGL_J2335.4-0128_daily_bin546.fits
.....................!
real 191.65
user 185.73
sys 5.48

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/31453/ft1_filtered_4FGL_J2335.4-0128_daily_bin546.fits scfile=/scratch/kocevski/31453/ft2_4FGL_J2335.4-0128_daily_bin546.fits outfile=/scratch/kocevski/31453/cmap_380851201_381110401_4FGL_J2335.4-0128_daily_bin546.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.57
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/31453/ft1_filtered_4FGL_J2335.4-0128_daily_bin546.fits scfile=/scratch/kocevski/31453/ft2_4FGL_J2335.4-0128_daily_bin546.fits outfile=/scratch/kocevski/31453/cmap_HighResolution_380851201_381110401_4FGL_J2335.4-0128_daily_bin546.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.53
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/31453/ft1_filtered_4FGL_J2335.4-0128_daily_bin546.fits evtable="EVENTS" scfile=/scratch/kocevski/31453/ft2_4FGL_J2335.4-0128_daily_bin546.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/31453/Model_4FGL_J2335.4-0128_daily_bin546.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/31453/ft1_filtered_4FGL_J2335.4-0128_daily_bin546.fits.....................!
real 49.58
user 48.31
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    19.948       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.3138       1.0000         .10000E-03   10000.    
     5 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.9037       1.0000         .10000E-03   10000.    
     9 'Prefactor '    46.339       1.0000         .10000E-03   10000.    
    10 'Prefactor '    47.690       1.0000         .10000E-03   10000.    
    11 'Prefactor '    56.387       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.4357       1.0000         .10000E-03   10000.    
    13 'norm      '    1.4323       1.0000         .10000E-03   10000.    
    14 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.1761       1.0000         .10000E-03   10000.    
    16 'Prefactor '    53.387       1.0000         .10000E-03   10000.    
    17 'norm      '    7.8448       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    37.478       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10855E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    12.178       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .15747E-01   1.0000         .10000E-03   10000.    
    27 'Prefactor '    23.670       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .41030       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0918       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=   4687.735     FROM MIGRAD    STATUS=CONVERGED    720 CALLS     3705 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.052       -.86744E-06** at limit **
   2  Prefactor     .10000E-03    37.071        .16788E-05** at limit **
   3  Prefactor     19.948        14.386        .16875E-06    .13133E-03
   4  Prefactor     8.3152        6.5759        .18317E-06    .18740E-03
   5  norm          .10000E-03    1.0179       -.12217E-06** at limit **
   6  Prefactor     .10000E-03    11.503        .22401E-06** at limit **
   7  norm          .10000E-03    1.6176       -.11570E-06** at limit **
   8  norm          6.8992        10.435       -.11207E-05    .20598E-03
   9  Prefactor     46.316        38.032        .52792E-06    .10792E-03
  10  Prefactor     47.681        24.067       -.19063E-06    .67818E-04
  11  Prefactor     56.235        83.612        .53226E-05    .31352E-03
  12  Prefactor     4.4530        16.380       -.19082E-05   -.28613E-04
  13  norm          1.4317        1.0391       -.87250E-07    .97054E-05
  14  norm          .10000E-03    2.5232       -.54657E-06** at limit **
  15  Prefactor     7.1730        10.284       -.86077E-06    .27565E-03
  16  Prefactor     53.348        78.069        .16931E-05    .10217E-03
  17  norm          7.8421        8.8437       -.50314E-06    .32947E-03
  18  Prefactor     .10000E-03    112.32        .26696E-05** at limit **
  19  Prefactor     37.470        17.111       -.90943E-07    .30382E-03
  20  Prefactor     .10000E-03    9.5988        .36781E-06** at limit **
  21  norm          .10000E-03    26.147       -.97512E-06** at limit **
  22  Prefactor     .10000E-03    16.566        .34888E-06** at limit **
  23  Prefactor     .10000E-03    2.1106        .13344E-07** at limit **
  24  Prefactor     12.144        33.480        .13708E-05    .91742E-04
  25  Prefactor     .10000E-03    6.8207       -.12112E-06** at limit **
  26  Prefactor     .10002E-03    80.087        .33345E-04** at limit **
  27  Prefactor     23.668        10.824       -.81193E-07    .16945E-03
  28  Normalizat    .41073        .24170        .35554E-05    .30575E-03
  29  Prefactor     1.0918        .16626       -.70535E-06    .28165E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 19.9477
  Prefactor  = 8.31517
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.89916
  Prefactor  = 46.3162
  Prefactor  = 47.6806
  Prefactor  = 56.2353
  Prefactor  = 4.45299
  norm       = 1.43168
  norm       = 0.0001
  Prefactor  = 7.173
  Prefactor  = 53.3483
  norm       = 7.8421
  Prefactor  = 0.000100002
  Prefactor  = 37.47
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.1442
  Prefactor  = 0.0001
  Prefactor  = 0.000100017
  Prefactor  = 23.6677
  Normalizat = 0.410734
  Prefactor  = 1.09178
 **********
 **   18 **HESSE 
 **********

 FCN=   4687.735     FROM HESSE     STATUS=OK           545 CALLS     4250 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    37.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     19.948        14.358        .89677E-04   -1.4814    
   4  Prefactor     8.3152        6.5553        .13904E-03   -1.5131    
   5  norm          .10000E-03    1.0272        .67377E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.6231        .84916E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.8992        10.449        .76346E-03   -1.5183    
   9  Prefactor     46.316        37.983        .58901E-04   -1.4346    
  10  Prefactor     47.681        24.048        .58065E-04   -1.4326    
  11  Prefactor     56.235        85.056        .26711E-03   -1.4207    
  12  Prefactor     4.4530        16.217        .19120E-03   -1.5286    
  13  norm          1.4317        1.0247        .55745E-04   -1.5469    
  14  norm          .10000E-03    2.5398        .10636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.1730        10.263        .74870E-03   -1.5172    
  16  Prefactor     53.348        78.025        .54894E-04   -1.4246    
  17  norm          7.8421        8.8224        .71581E-03   -1.5148    
  18  Prefactor     .10000E-03    112.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     37.470        17.006        .65467E-04   -1.4483    
  20  Prefactor     .10000E-03    9.6185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    26.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    16.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.1215        .96941E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     12.144        33.462        .11479E-03   -1.5011    
  25  Prefactor     .10000E-03    6.8307        .17464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10002E-03    78.910        .47658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     23.668        10.804        .82333E-04   -1.4735    
  28  Normalizat    .41073        .25006        .38324E-03   -1.1675    
  29  Prefactor     1.0918        .17832        .18423E-03   -.89730    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33975e-09
Minuit parameter uncertainties:
  1  6.50398e-05
  2  0.000303483
  3  14.3605
  4  6.55584
  5  6.14239e-06
  6  7.37631e-06
  7  1.21126e-05
  8  10.452
  9  38.0032
  10  24.0529
  11  85.2401
  12  16.2328
  13  1.02466
  14  4.42031e-05
  15  10.2652
  16  78.1749
  17  8.82388
  18  0.000938166
  19  17.0085
  20  9.2697e-05
  21  0.000120091
  22  3.12537e-05
  23  4.14009e-06
  24  33.5141
  25  1.55879e-05
  26  0.00233778
  27  10.8053
  28  0.250745
  29  0.178419
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  1.201e-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.092e+00  1.784e-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.107e-01  2.507e-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.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.11e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/31453/likelihoodResults_380851201_381110401_4FGL_J2335.4-0128_daily_bin546.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) = 4687.73496539
delta logL = -0.000181510419679

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4687.73496533
delta logL = -0.00018144821297

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96323E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5048       1.0000          .0000       5.0000    
     3 'Normalizat'    .41073       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0918       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4687.718     FROM MIGRAD    STATUS=FAILED       159 CALLS      291 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7670        32.595        .18143E-01    .10286E-01
   2  alpha         1.0784        3.0101        .16461       -.22297E-04
   3  Normalizat    .41306        .22744        .38320E-03    .10669E-03
   4  Prefactor     1.0890        .17509        .18423E-03    .38497E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4687.718     FROM SIMPLEX   STATUS=UNCHANGED     78 CALLS      369 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.7670        32.595        .34942E-03   -1.5320    
   2  alpha         1.0784        3.0101        .74512E-02   -19.454    
   3  Normalizat    .41306        .22744        .34016E-03   -1.1663    
   4  Prefactor     1.0890        .17509        .25875E-03   -.89818    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4687.718     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      400 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7678        36.616        .36286E-02    .27489E-04
   2  alpha         1.0784        2.9844        .65843E-02   -.42303E-05
   3  Normalizat    .41306        .22746        .15328E-04   -.16911E-04
   4  Prefactor     1.0890        .17507        .36846E-04   -.59611E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.76777
  alpha      = 1.07845
  Normalizat = 0.413064
  Prefactor  = 1.08902
 **********
 **   18 **HESSE 
 **********

 FCN=   4687.718     FROM HESSE     STATUS=OK            25 CALLS      425 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.7678        35.319        .14515E-03   -1.5320    
   2  alpha         1.0784        2.9923        .26337E-03   -19.454    
   3  Normalizat    .41306        .22747        .30656E-05   -1.1663    
   4  Prefactor     1.0890        .17504        .73692E-05   -.89818    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83475e-11
Minuit parameter uncertainties:
  1  23.0892
  2  2.55194
  3  0.227979
  4  0.175135
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31453': 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) = 4687.71813181
delta logL = 0.0166520787834

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  3.768e+00  2.309e+01  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  1.078e+00  2.552e+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.089e+00  1.751e-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.131e-01  2.280e-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/31453/cmap_HighResolution_380851201_381110401_4FGL_J2335.4-0128_daily_bin546.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.11e-05', job_status='DONE', photon_flux_upper_limit='7.48e-08', time_completed='2021-09-30 00:28:58.248577', job_id='31453', GAL2='1.09', fit_tolerance='1e-08', EG2='0.41', EG='0.41', time_epoch_completed='1632986938.25', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='1.67e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='546' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:28:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0185>
Subject: Job 31453: <4FGL_J2335.4-0128_daily_bin546> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin546> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep 30 00:15:35 2021
Job was executed on host(s) <bullet0185>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:15:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 00:15:37 2021
Terminated at Thu Sep 30 00:28:59 2021
Results reported at Thu Sep 30 00:28:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin546 353.869 -1.476 380851201 381110401 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 :                                   663.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            804 sec.

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

