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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin635
RA = 353.869, Dec = -1.476
tmin = 403920001, tmax = 404179201
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='31595', job_status='RUN', time_executed='2021-09-30 00:18:27.606958', time_epoch_executed='1632986307.61' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='635'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31595

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

Retrieving the FT1 file...

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

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

Retrieving 39 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31595/ft1_4FGL_J2335.4-0128_daily_bin635.fits


Retrieving the FT1 file...

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

Retrieving 39 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31595/ft2_4FGL_J2335.4-0128_daily_bin635.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31595/ft1_4FGL_J2335.4-0128_daily_bin635.fits outfile=/scratch/kocevski/31595/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin635.fits ra=353.869 dec=-1.476 rad=12.0 tmin=403920001.0 tmax=404179201.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 10.23
user 9.92
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/31595/ft1_filtered_4FGL_J2335.4-0128_daily_bin635.fits" evtable="EVENTS" scfile=/scratch/kocevski/31595/ft2_4FGL_J2335.4-0128_daily_bin635.fits sctable="SC_DATA" outfile=/scratch/kocevski/31595/ltcube_403920001_404179201_4FGL_J2335.4-0128_daily_bin635.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/31595/ft2_4FGL_J2335.4-0128_daily_bin635.fits
.....................!
real 9.22
user 8.86
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31595/ft1_filtered_4FGL_J2335.4-0128_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/31595/ft2_4FGL_J2335.4-0128_daily_bin635.fits sctable="SC_DATA" expcube=/scratch/kocevski/31595/ltcube_403920001_404179201_4FGL_J2335.4-0128_daily_bin635.fits outfile=/scratch/kocevski/31595/expmap_403920001_404179201_4FGL_J2335.4-0128_daily_bin635.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/31595/ltcube_403920001_404179201_4FGL_J2335.4-0128_daily_bin635.fits
.....................!
real 191.19
user 185.64
sys 5.23

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/31595/ft1_filtered_4FGL_J2335.4-0128_daily_bin635.fits scfile=/scratch/kocevski/31595/ft2_4FGL_J2335.4-0128_daily_bin635.fits outfile=/scratch/kocevski/31595/cmap_403920001_404179201_4FGL_J2335.4-0128_daily_bin635.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.58
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/31595/ft1_filtered_4FGL_J2335.4-0128_daily_bin635.fits scfile=/scratch/kocevski/31595/ft2_4FGL_J2335.4-0128_daily_bin635.fits outfile=/scratch/kocevski/31595/cmap_HighResolution_403920001_404179201_4FGL_J2335.4-0128_daily_bin635.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.900       1.0000         .10000E-03   10000.    
     2 'Prefactor '    45.330       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.1708       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.1369       1.0000         .10000E-03   10000.    
     9 'Prefactor '    36.046       1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.733       1.0000         .10000E-03   10000.    
    11 'Prefactor '    137.84       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11022E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .28589E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    16.716       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.552       1.0000         .10000E-03   10000.    
    16 'Prefactor '    58.855       1.0000         .10000E-03   10000.    
    17 'norm      '    7.8035       1.0000         .10000E-03   10000.    
    18 'Prefactor '    194.33       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10606E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.6548       1.0000         .10000E-03   10000.    
    21 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.9839       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10234E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    44.494       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.5046       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .38019       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=   2842.135     FROM MIGRAD    STATUS=CONVERGED    698 CALLS     3709 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.894        15.311        .15761E-06   -.17228E-05
   2  Prefactor     45.294        84.399       -.25360E-05   -.35749E-04
   3  Prefactor     .10000E-03    26.497       -.13444E-05** at limit **
   4  Prefactor     .10000E-03    10.933       -.10863E-06** at limit **
   5  norm          1.1688        3.4845        .33333E-06    .51447E-04
   6  Prefactor     .10000E-03    18.360       -.76736E-06** at limit **
   7  norm          .10000E-03    5.1243        .24119E-07** at limit **
   8  norm          7.1357        12.340       -.14244E-06   -.54767E-04
   9  Prefactor     36.020        47.336       -.13644E-05   -.60993E-04
  10  Prefactor     29.716        29.487       -.54339E-06   -.99922E-04
  11  Prefactor     137.79        110.19       -.26624E-05   -.11400E-03
  12  Prefactor     .10000E-03    22.884       -.13397E-05** at limit **
  13  norm          .10004E-03    1.4037        .15819E-05** at limit **
  14  norm          16.718        12.995       -.13040E-05   -.44823E-03
  15  Prefactor     10.550        24.466       -.42509E-05   -.30784E-04
  16  Prefactor     58.852        61.001       -.11924E-05   -.71639E-04
  17  norm          7.8032        18.676        .64652E-05    .34919E-05
  18  Prefactor     194.70        370.94       -.67946E-06   -.34805E-04
  19  Prefactor     .10000E-03    21.333        .50948E-05** at limit **
  20  Prefactor     9.6284        38.682       -.26313E-05   -.46634E-04
  21  norm          .10000E-03    21.302        .17862E-05** at limit **
  22  Prefactor     .10000E-03    79.639        .46475E-06** at limit **
  23  Prefactor     5.9827        8.0268       -.59355E-06   -.40298E-03
  24  Prefactor     .10000E-03    40.824        .49514E-06** at limit **
  25  Prefactor     44.467        35.705       -.95131E-06   -.96390E-04
  26  Prefactor     .10000E-03    20.723        .82456E-06** at limit **
  27  Prefactor     .10000E-03    5.6957        .78848E-07** at limit **
  28  Normalizat    1.5054        .30340        .18163E-05   -.47256E-03
  29  Prefactor     .37987        .19910       -.46620E-05   -.21666E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.8945
  Prefactor  = 45.2936
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.1688
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.13567
  Prefactor  = 36.02
  Prefactor  = 29.7159
  Prefactor  = 137.795
  Prefactor  = 0.0001
  norm       = 0.000100043
  norm       = 16.7184
  Prefactor  = 10.5497
  Prefactor  = 58.8516
  norm       = 7.80324
  Prefactor  = 194.704
  Prefactor  = 0.0001
  Prefactor  = 9.62836
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.98269
  Prefactor  = 0.0001
  Prefactor  = 44.4666
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.50539
  Prefactor  = 0.379871
 **********
 **   18 **HESSE 
 **********

 FCN=   2842.135     FROM HESSE     STATUS=OK           541 CALLS     4250 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.894        15.321        .97427E-04   -1.4886    
   2  Prefactor     45.294        84.475        .59550E-04   -1.4361    
   3  Prefactor     .10000E-03    26.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.094        .17198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.1688        3.4657        .16169E-03   -1.5492    
   6  Prefactor     .10000E-03    18.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    5.2140        .11776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.1357        12.332        .15015E-03   -1.5174    
   9  Prefactor     36.020        47.423        .66751E-04   -1.4507    
  10  Prefactor     29.716        29.489        .73477E-04   -1.4617    
  11  Prefactor     137.79        110.36        .17154E-03   -1.3355    
  12  Prefactor     .10000E-03    22.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10004E-03    5.5906        .10965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          16.718        12.948        .97962E-04   -1.4890    
  15  Prefactor     10.550        24.106        .12335E-03   -1.5058    
  16  Prefactor     58.852        61.012        .52296E-04   -1.4172    
  17  norm          7.8032        18.539        .71772E-03   -1.5149    
  18  Prefactor     194.70        370.31        .14488E-03   -1.2908    
  19  Prefactor     .10000E-03    21.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.6284        38.311        .12897E-03   -1.5087    
  21  norm          .10000E-03    21.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    79.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.9827        8.0559        .15148E-03   -1.5219    
  24  Prefactor     .10000E-03    40.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     44.467        35.790        .60104E-04   -1.4373    
  26  Prefactor     .10000E-03    20.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    5.7062        .12426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.5054        .34456        .23122E-03   -.77627    
  29  Prefactor     .37987        .21883        .29484E-03   -1.1785    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.26677e-09
Minuit parameter uncertainties:
  1  15.3241
  2  84.6995
  3  0.000148896
  4  3.69967e-05
  5  3.46631
  6  2.75221e-05
  7  1.23622e-05
  8  12.3361
  9  47.473
  10  29.5032
  11  110.529
  12  0.000200606
  13  0.000978735
  14  12.9502
  15  24.1283
  16  61.0768
  17  18.5528
  18  374.894
  19  5.53846e-05
  20  38.4089
  21  5.8216e-05
  22  0.000106469
  23  8.05735
  24  0.00014457
  25  35.8074
  26  8.00206e-05
  27  3.05173e-06
  28  0.345103
  29  0.219312
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  5.822e-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:  3.799e-01  2.193e-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.505e+00  3.451e-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: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.21e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/31595/likelihoodResults_403920001_404179201_4FGL_J2335.4-0128_daily_bin635.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) = 2842.13537376
delta logL = -0.000221548791615

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2842.13515272
delta logL = -5.10796780873e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7938       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5054       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .37987       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.

 FCN=   2842.135     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      296 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    1755.4        .18142E-01** at limit **
   2  alpha         1.0252        3.4821        .16607       -.24816E-07
   3  Normalizat    1.5054        .51890E-01    .23121E-03    .61722E-04
   4  Prefactor     .37987        .35434E-01    .29484E-03    .46984E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100008
  alpha      = 1.02519
  Normalizat = 1.50539
  Prefactor  = 0.379868
 **********
 **   18 **HESSE 
 **********

 FCN=   2842.135     FROM HESSE     STATUS=OK            23 CALLS      319 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    39.362        .32402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.0252        2.8538        .66426E-02   -.63096    
   3  Normalizat    1.5054        .31394        .46243E-04   -.77627    
   4  Prefactor     .37987        .21411        .11794E-04   -1.1785    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9364e-10
Minuit parameter uncertainties:
  1  0.00115171
  2  696.951
  3  0.314351
  4  0.214559
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31595': 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) = 2842.13515114
delta logL = 1.07466848931e-06

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  1.152e-03  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  1.025e+00  6.970e+02  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:  3.799e-01  2.146e-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.505e+00  3.144e-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/31595/cmap_HighResolution_403920001_404179201_4FGL_J2335.4-0128_daily_bin635.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.21e-05', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-09-30 00:27:44.819990', job_id='31595', GAL2='0.38', fit_tolerance='1e-08', EG2='1.51', EG='1.51', time_epoch_completed='1632986864.82', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.38', dlogl='1.07e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='635' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:27:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 31595: <4FGL_J2335.4-0128_daily_bin635> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin635 353.869 -1.476 403920001 404179201 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 :                                   552.29 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             256.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   714 sec.
    Turnaround time :                            717 sec.

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

