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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin981
RA = 353.869, Dec = -1.476
tmin = 493603201, tmax = 493862401
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='33144', job_status='RUN', time_executed='2021-09-30 00:23:50.535777', time_epoch_executed='1632986630.54' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='981'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/33144

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/33144/ft1_4FGL_J2335.4-0128_daily_bin981.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/33144/ft2_4FGL_J2335.4-0128_daily_bin981.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/33144/ft1_4FGL_J2335.4-0128_daily_bin981.fits outfile=/scratch/kocevski/33144/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin981.fits ra=353.869 dec=-1.476 rad=12.0 tmin=493603201.0 tmax=493862401.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.50
user 3.29
sys 0.19

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/33144/ft1_filtered_4FGL_J2335.4-0128_daily_bin981.fits" evtable="EVENTS" scfile=/scratch/kocevski/33144/ft2_4FGL_J2335.4-0128_daily_bin981.fits sctable="SC_DATA" outfile=/scratch/kocevski/33144/ltcube_493603201_493862401_4FGL_J2335.4-0128_daily_bin981.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/33144/ft2_4FGL_J2335.4-0128_daily_bin981.fits
.....................!
real 11.69
user 11.34
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/33144/ft1_filtered_4FGL_J2335.4-0128_daily_bin981.fits evtable="EVENTS" scfile=/scratch/kocevski/33144/ft2_4FGL_J2335.4-0128_daily_bin981.fits sctable="SC_DATA" expcube=/scratch/kocevski/33144/ltcube_493603201_493862401_4FGL_J2335.4-0128_daily_bin981.fits outfile=/scratch/kocevski/33144/expmap_493603201_493862401_4FGL_J2335.4-0128_daily_bin981.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/33144/ltcube_493603201_493862401_4FGL_J2335.4-0128_daily_bin981.fits
.....................!
real 191.26
user 185.98
sys 4.85

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/33144/ft1_filtered_4FGL_J2335.4-0128_daily_bin981.fits scfile=/scratch/kocevski/33144/ft2_4FGL_J2335.4-0128_daily_bin981.fits outfile=/scratch/kocevski/33144/cmap_493603201_493862401_4FGL_J2335.4-0128_daily_bin981.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.62
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/33144/ft1_filtered_4FGL_J2335.4-0128_daily_bin981.fits scfile=/scratch/kocevski/33144/ft2_4FGL_J2335.4-0128_daily_bin981.fits outfile=/scratch/kocevski/33144/cmap_HighResolution_493603201_493862401_4FGL_J2335.4-0128_daily_bin981.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/33144/ft1_filtered_4FGL_J2335.4-0128_daily_bin981.fits evtable="EVENTS" scfile=/scratch/kocevski/33144/ft2_4FGL_J2335.4-0128_daily_bin981.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/33144/Model_4FGL_J2335.4-0128_daily_bin981.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/33144/ft1_filtered_4FGL_J2335.4-0128_daily_bin981.fits.....................!
real 67.03
user 65.63
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.914       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.5318       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5863       1.0000         .10000E-03   10000.    
     5 'norm      '    .10124E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.545       1.0000         .10000E-03   10000.    
     7 'norm      '    .64610E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    25.024       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.0394       1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.126       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.5476       1.0000         .10000E-03   10000.    
    13 'norm      '    .44992       1.0000         .10000E-03   10000.    
    14 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10770E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.8558       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12812E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.1647       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10796E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1647       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .87445       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=   6726.909     FROM MIGRAD    STATUS=CONVERGED    724 CALLS     3183 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.914        7.3099        .43716E-07   -.32230E-04
   2  Prefactor     .10000E-03    17.352       -.20708E-05** at limit **
   3  Prefactor     2.5284        14.024        .53437E-05   -.13990E-03
   4  Prefactor     1.5926        3.9570        .27144E-06   -.24305E-03
   5  norm          .10000E-03    1.2765        .56320E-07** at limit **
   6  Prefactor     12.554        11.214       -.29976E-07   -.15426E-03
   7  norm          .10000E-03    1.9878        .66762E-06** at limit **
   8  norm          25.023        11.984        .18069E-06   -.18126E-04
   9  Prefactor     4.0181        52.334        .58824E-05    .13198E-04
  10  Prefactor     26.124        18.364        .52880E-07   -.40865E-04
  11  Prefactor     .10000E-03    23.042        .25015E-06** at limit **
  12  Prefactor     5.5393        6.9283        .11175E-05    .10069E-03
  13  norm          .44972        .57121        .24065E-07   -.60978E-04
  14  norm          .10000E-03    5.4594       -.60455E-06** at limit **
  15  Prefactor     .10000E-03    15.601        .96651E-06** at limit **
  16  Prefactor     .10000E-03    25.388        .21509E-05** at limit **
  17  norm          9.8575        11.456       -.51296E-06   -.22111E-03
  18  Prefactor     .10000E-03    47.921       -.35012E-05** at limit **
  19  Prefactor     .10000E-03    6.9281        .34844E-07** at limit **
  20  Prefactor     .10000E-03    69.262        .55668E-05** at limit **
  21  norm          .10000E-03    22.198        .21220E-06** at limit **
  22  Prefactor     .10000E-03    21.808       -.42332E-06** at limit **
  23  Prefactor     .10000E-03    2.5429        .91619E-07** at limit **
  24  Prefactor     .10000E-03    16.115        .70219E-07** at limit **
  25  Prefactor     2.1544        67.220        .26817E-05   -.11635E-04
  26  Prefactor     .10000E-03    52.344       -.17060E-05** at limit **
  27  Prefactor     .10000E-03    1.3283        .13987E-07** at limit **
  28  Normalizat    1.1648        .17980       -.93235E-06   -.33528E-03
  29  Prefactor     .87445        .13201       -.63277E-06   -.39846E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.9144
  Prefactor  = 0.0001
  Prefactor  = 2.52845
  Prefactor  = 1.59263
  norm       = 0.0001
  Prefactor  = 12.5541
  norm       = 0.000100004
  norm       = 25.0229
  Prefactor  = 4.01808
  Prefactor  = 26.1245
  Prefactor  = 0.0001
  Prefactor  = 5.53925
  norm       = 0.44972
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.85749
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.15445
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.1648
  Prefactor  = 0.874448
 **********
 **   18 **HESSE 
 **********

 FCN=   6726.909     FROM HESSE     STATUS=OK           549 CALLS     3732 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.914        7.3095        .12127E-03   -1.5047    
   2  Prefactor     .10000E-03    17.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.5284        14.610        .12835E-02   -1.5390    
   4  Prefactor     1.5926        3.7182        .23383E-03   -1.5456    
   5  norm          .10000E-03    2.1827        .17762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.554        11.045        .11310E-03   -1.4999    
   7  norm          .10000E-03    7.3098        .20212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          25.023        11.982        .40039E-03   -1.4707    
   9  Prefactor     4.0181        52.482        .20063E-03   -1.5307    
  10  Prefactor     26.124        18.361        .78374E-04   -1.4685    
  11  Prefactor     .10000E-03    23.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.5393        6.9361        .17058E-03   -1.5237    
  13  norm          .44972        .53343        .67351E-03   -1.5574    
  14  norm          .10000E-03    5.6155        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    25.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.8575        11.464        .12764E-03   -1.5080    
  18  Prefactor     .10000E-03    47.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.0095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    70.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    22.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    21.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.6263        .25524E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    16.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.1544        66.997        .27993E-03   -1.5414    
  26  Prefactor     .10000E-03    53.360        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    1.3298        .92311E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1648        .20847        .25785E-03   -.87698    
  29  Prefactor     .87445        .15415        .21797E-03   -.97040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73385e-09
Minuit parameter uncertainties:
  1  7.31006
  2  6.22448e-05
  3  12.1599
  4  3.71874
  5  5.38238e-05
  6  11.0469
  7  0.000360217
  8  11.9832
  9  29.0742
  10  18.3654
  11  4.1041e-05
  12  6.93708
  13  0.533432
  14  5.52699e-05
  15  5.6657e-05
  16  0.000100009
  17  11.4662
  18  0.000194724
  19  1.36599e-05
  20  0.000420411
  21  4.18167e-05
  22  1.34486e-05
  23  8.75668e-06
  24  8.09371e-06
  25  24.0574
  26  0.000170596
  27  9.62082e-07
  28  0.208617
  29  0.154224
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  4.182e-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.744e-01  1.542e-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:  1.165e+00  2.086e-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.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.37e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/33144/likelihoodResults_493603201_493862401_4FGL_J2335.4-0128_daily_bin981.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) = 6726.90939299
delta logL = -0.000213018766772

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6726.90918302
delta logL = -3.05030062009e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5722       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1648       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87445       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=   6726.909     FROM MIGRAD    STATUS=FAILED       102 CALLS      285 TOTAL
                     EDM=   .29E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12116E-03    336.32        .31690E-02** at limit **
   2  alpha         3.0472        3.4753        .50000        .56396E-05
   3  Normalizat    1.1648        .19497E-01    .25785E-03   -.57539E-04
   4  Prefactor     .87445        .14581E-01    .21797E-03   -.58729E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6726.909     FROM SIMPLEX   STATUS=PROGRESS     122 CALLS      407 TOTAL
                     EDM=   .65E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10373E-03    336.32        .58244E-03** at limit **
   2  alpha         3.0465        3.4753        .40635E-03    .56396E-05
   3  Normalizat    1.1648        .19497E-01    .34596E-05   -.57539E-04
   4  Prefactor     .87444        .14581E-01    .32511E-05   -.58729E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6726.909     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      462 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    287.62        .63380E-02** at limit **
   2  alpha         2.6222        2.6032        .50000        .44292E-07
   3  Normalizat    1.1648        .16754E-01    .10314E-04    .21142E-03
   4  Prefactor     .87445        .12530E-01    .87188E-05    .24566E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.62222
  Normalizat = 1.1648
  Prefactor  = 0.874449
 **********
 **   18 **HESSE 
 **********

 FCN=   6726.909     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      491 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1310.3        .12676E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.6222        2.9855        .50000        .48907E-01
   3  Normalizat    1.1648        .38510E-01    .20628E-05   -.87698    
   4  Prefactor     .87445        .28810E-01    .17438E-05   -.97040    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.09688e-09
Minuit parameter uncertainties:
  1  0.000591926
  2  3656.57
  3  0.0385107
  4  0.0288101
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/33144': 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): 102
logL (Free Index) = 6726.90917996
delta logL = 1.18743628263e-08

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  5.919e-04  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  2.622e+00  3.657e+03  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.744e-01  2.881e-02  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:  1.165e+00  3.851e-02  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/33144/cmap_HighResolution_493603201_493862401_4FGL_J2335.4-0128_daily_bin981.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.37e-05', job_status='DONE', photon_flux_upper_limit='5.70e-08', time_completed='2021-09-30 00:36:48.703459', job_id='33144', GAL2='0.87', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1632987408.7', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='1.19e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='981' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:36:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 33144: <4FGL_J2335.4-0128_daily_bin981> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin981> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 00:20:48 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:20:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 00:20:50 2021
Terminated at Thu Sep 30 00:36:49 2021
Results reported at Thu Sep 30 00:36:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin981 353.869 -1.476 493603201 493862401 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 :                                   776.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             280.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   959 sec.
    Turnaround time :                            961 sec.

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

