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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin854
RA = 353.869, Dec = -1.476
tmin = 460684801, tmax = 460944001
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='32950', job_status='RUN', time_executed='2021-09-30 00:23:05.450128', time_epoch_executed='1632986585.45' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='854'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/32950

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/32950/ft1_4FGL_J2335.4-0128_daily_bin854.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/32950/ft2_4FGL_J2335.4-0128_daily_bin854.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/32950/ft1_4FGL_J2335.4-0128_daily_bin854.fits outfile=/scratch/kocevski/32950/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin854.fits ra=353.869 dec=-1.476 rad=12.0 tmin=460684801.0 tmax=460944001.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.35
user 3.13
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/32950/ft1_filtered_4FGL_J2335.4-0128_daily_bin854.fits" evtable="EVENTS" scfile=/scratch/kocevski/32950/ft2_4FGL_J2335.4-0128_daily_bin854.fits sctable="SC_DATA" outfile=/scratch/kocevski/32950/ltcube_460684801_460944001_4FGL_J2335.4-0128_daily_bin854.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/32950/ft2_4FGL_J2335.4-0128_daily_bin854.fits
.....................!
real 11.94
user 11.59
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/32950/ft1_filtered_4FGL_J2335.4-0128_daily_bin854.fits evtable="EVENTS" scfile=/scratch/kocevski/32950/ft2_4FGL_J2335.4-0128_daily_bin854.fits sctable="SC_DATA" expcube=/scratch/kocevski/32950/ltcube_460684801_460944001_4FGL_J2335.4-0128_daily_bin854.fits outfile=/scratch/kocevski/32950/expmap_460684801_460944001_4FGL_J2335.4-0128_daily_bin854.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/32950/ltcube_460684801_460944001_4FGL_J2335.4-0128_daily_bin854.fits
.....................!
real 190.48
user 185.91
sys 4.14

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/32950/ft1_filtered_4FGL_J2335.4-0128_daily_bin854.fits scfile=/scratch/kocevski/32950/ft2_4FGL_J2335.4-0128_daily_bin854.fits outfile=/scratch/kocevski/32950/cmap_460684801_460944001_4FGL_J2335.4-0128_daily_bin854.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/32950/ft1_filtered_4FGL_J2335.4-0128_daily_bin854.fits scfile=/scratch/kocevski/32950/ft2_4FGL_J2335.4-0128_daily_bin854.fits outfile=/scratch/kocevski/32950/cmap_HighResolution_460684801_460944001_4FGL_J2335.4-0128_daily_bin854.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.686       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.5544       1.0000         .10000E-03   10000.    
     5 'norm      '    1.4598       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.8628       1.0000         .10000E-03   10000.    
     7 'norm      '    1.2700       1.0000         .10000E-03   10000.    
     8 'norm      '    6.4250       1.0000         .10000E-03   10000.    
     9 'Prefactor '    40.317       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.9165       1.0000         .10000E-03   10000.    
    11 'Prefactor '    34.554       1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.328       1.0000         .10000E-03   10000.    
    13 'norm      '    2.6432       1.0000         .10000E-03   10000.    
    14 'norm      '    6.5850       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.8170       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.002       1.0000         .10000E-03   10000.    
    17 'norm      '    24.037       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.0244       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.8025       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    12.943       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .75484       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .94852       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=   7238.845     FROM MIGRAD    STATUS=CONVERGED    698 CALLS     3678 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.5991        .23090E-06** at limit **
   2  Prefactor     25.685        30.737       -.56582E-06   -.55901E-05
   3  Prefactor     .10000E-03    6.0041       -.54795E-06** at limit **
   4  Prefactor     3.5552        4.6583        .67591E-06    .48365E-04
   5  norm          1.4595        1.9500       -.40138E-07   -.16869E-03
   6  Prefactor     5.8652        14.580       -.27027E-06   -.15045E-04
   7  norm          1.2692        3.6629       -.34313E-06   -.31177E-03
   8  norm          6.4252        7.3824       -.15816E-06   -.17196E-04
   9  Prefactor     40.317        35.427       -.53046E-06   -.48907E-05
  10  Prefactor     2.9168        6.2931        .12919E-05   -.68550E-03
  11  Prefactor     34.554        39.128       -.50627E-06   -.10076E-05
  12  Prefactor     19.328        10.436        .13362E-06    .34657E-04
  13  norm          2.6432        .87614       -.18240E-07    .15456E-04
  14  norm          6.5851        4.8795        .53214E-06    .77823E-04
  15  Prefactor     3.8181        10.265        .18036E-07   -.16693E-04
  16  Prefactor     11.001        20.725       -.41843E-06   -.52871E-05
  17  norm          24.036        13.146        .75865E-06    .50677E-04
  18  Prefactor     .10000E-03    46.886       -.58436E-06** at limit **
  19  Prefactor     .10000E-03    3.2398        .15778E-07** at limit **
  20  Prefactor     6.0168        26.089       -.84296E-05   -.63071E-04
  21  norm          .10000E-03    5.7033        .31646E-06** at limit **
  22  Prefactor     9.8007        31.993       -.26678E-05   -.15631E-04
  23  Prefactor     .10000E-03    1.0237        .22050E-07** at limit **
  24  Prefactor     .10000E-03    28.025       -.42325E-05** at limit **
  25  Prefactor     .10000E-03    28.888        .49734E-05** at limit **
  26  Prefactor     .10000E-03    9.0203       -.62941E-09** at limit **
  27  Prefactor     12.943        6.6806       -.71029E-07   -.17677E-04
  28  Normalizat    .75480        .16397        .32885E-06    .46904E-05
  29  Prefactor     .94854        .11961        .18896E-06   -.15032E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 25.6854
  Prefactor  = 0.0001
  Prefactor  = 3.55523
  norm       = 1.45955
  Prefactor  = 5.86523
  norm       = 1.2692
  norm       = 6.42517
  Prefactor  = 40.3169
  Prefactor  = 2.9168
  Prefactor  = 34.5539
  Prefactor  = 19.3278
  norm       = 2.64322
  norm       = 6.58505
  Prefactor  = 3.8181
  Prefactor  = 11.0009
  norm       = 24.0365
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.01677
  norm       = 0.0001
  Prefactor  = 9.80069
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.9428
  Normalizat = 0.7548
  Prefactor  = 0.948537
 **********
 **   18 **HESSE 
 **********

 FCN=   7238.845     FROM HESSE     STATUS=OK           563 CALLS     4241 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.8411        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     25.685        30.727        .79041E-04   -1.4694    
   3  Prefactor     .10000E-03    6.0262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.5552        4.5553        .18137E-03   -1.5331    
   5  norm          1.4595        1.9341        .13037E-03   -1.5466    
   6  Prefactor     5.8652        14.079        .16586E-03   -1.5224    
   7  norm          1.2692        3.4837        .20324E-03   -1.5483    
   8  norm          6.4252        7.3798        .15834E-03   -1.5201    
   9  Prefactor     40.317        35.438        .63129E-04   -1.4437    
  10  Prefactor     2.9168        12.684        .11895E-02   -1.5366    
  11  Prefactor     34.554        39.173        .68172E-04   -1.4532    
  12  Prefactor     19.328        10.443        .91104E-04   -1.4828    
  13  norm          2.6432        .87501        .44082E-04   -1.5383    
  14  norm          6.5851        4.8742        .14980E-03   -1.5195    
  15  Prefactor     3.8181        10.145        .20659E-03   -1.5317    
  16  Prefactor     11.001        20.721        .12079E-03   -1.5044    
  17  norm          24.036        13.036        .81703E-04   -1.4727    
  18  Prefactor     .10000E-03    46.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.2581        .14953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.0168        26.393        .16359E-03   -1.5217    
  21  norm          .10000E-03    5.7148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.8007        32.033        .12799E-03   -1.5082    
  23  Prefactor     .10000E-03    1.0312        .84029E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    28.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    29.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    9.0675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     12.943        6.7041        .11134E-03   -1.4988    
  28  Normalizat    .75480        .18829        .29176E-03   -1.0177    
  29  Prefactor     .94854        .13837        .19997E-03   -.94465    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55437e-09
Minuit parameter uncertainties:
  1  2.73961e-07
  2  30.7456
  3  9.16862e-06
  4  4.55576
  5  1.93415
  6  14.087
  7  3.48424
  8  7.38082
  9  35.4568
  10  12.1691
  11  39.2019
  12  10.444
  13  0.87501
  14  4.87447
  15  10.15
  16  20.7348
  17  13.0371
  18  2.65719e-05
  19  9.47234e-07
  20  25.2215
  21  3.32799e-06
  22  32.0891
  23  3.97592e-07
  24  0.000102286
  25  0.000186693
  26  6.37077e-06
  27  6.70444
  28  0.188456
  29  0.138423
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  3.328e-06  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:  9.485e-01  1.384e-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:  7.548e-01  1.885e-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: 3.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.33e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/32950/likelihoodResults_460684801_460944001_4FGL_J2335.4-0128_daily_bin854.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) = 7238.84588891
delta logL = -0.000832563867334

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7238.84505625
delta logL = 9.50576577452e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4873       1.0000          .0000       5.0000    
     3 'Normalizat'    .75479       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94853       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=   7238.845     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      244 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    244.61        .18142E-01** at limit **
   2  alpha         1.7931        2.9603        .16461       -.70170E-07
   3  Normalizat    .75480        .24759E-01    .29176E-03    .16358E-03
   4  Prefactor     .94854        .18975E-01    .19997E-03    .22453E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.79305
  Normalizat = 0.7548
  Prefactor  = 0.948538
 **********
 **   18 **HESSE 
 **********

 FCN=   7238.845     FROM HESSE     STATUS=OK            23 CALLS      267 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.3399        .22470E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7931        3.2547        .65844E-02   -.28669    
   3  Normalizat    .75480        .17704        .11670E-04   -1.0177    
   4  Prefactor     .94854        .13573        .39993E-04   -.94465    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75187e-10
Minuit parameter uncertainties:
  1  4.17887e-05
  2  393.664
  3  0.177174
  4  0.135777
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/32950': 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) = 7238.84505441
delta logL = 1.93174219021e-06

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  4.179e-05  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  1.793e+00  3.937e+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:  9.485e-01  1.358e-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:  7.548e-01  1.772e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/32950/cmap_HighResolution_460684801_460944001_4FGL_J2335.4-0128_daily_bin854.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.33e-05', job_status='DONE', photon_flux_upper_limit='3.20e-08', time_completed='2021-09-30 00:36:56.820869', job_id='32950', GAL2='0.95', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1632987416.82', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='1.93e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='854' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:36:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 32950: <4FGL_J2335.4-0128_daily_bin854> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin854> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 00:20:32 2021
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:20:34 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:34 2021
Terminated at Thu Sep 30 00:36:57 2021
Results reported at Thu Sep 30 00:36:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin854 353.869 -1.476 460684801 460944001 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 :                                   830.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             284.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   983 sec.
    Turnaround time :                            985 sec.

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

