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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin877
RA = 353.869, Dec = -1.476
tmin = 466646401, tmax = 466905601
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='32987', job_status='RUN', time_executed='2021-09-30 00:24:32.396268', time_epoch_executed='1632986672.4' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='877'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/32987

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/32987/ft1_4FGL_J2335.4-0128_daily_bin877.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/32987/ft2_4FGL_J2335.4-0128_daily_bin877.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/32987/ft1_4FGL_J2335.4-0128_daily_bin877.fits outfile=/scratch/kocevski/32987/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin877.fits ra=353.869 dec=-1.476 rad=12.0 tmin=466646401.0 tmax=466905601.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.60
user 3.41
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/32987/ft1_filtered_4FGL_J2335.4-0128_daily_bin877.fits" evtable="EVENTS" scfile=/scratch/kocevski/32987/ft2_4FGL_J2335.4-0128_daily_bin877.fits sctable="SC_DATA" outfile=/scratch/kocevski/32987/ltcube_466646401_466905601_4FGL_J2335.4-0128_daily_bin877.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/32987/ft2_4FGL_J2335.4-0128_daily_bin877.fits
.....................!
real 11.70
user 11.36
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/32987/ft1_filtered_4FGL_J2335.4-0128_daily_bin877.fits evtable="EVENTS" scfile=/scratch/kocevski/32987/ft2_4FGL_J2335.4-0128_daily_bin877.fits sctable="SC_DATA" expcube=/scratch/kocevski/32987/ltcube_466646401_466905601_4FGL_J2335.4-0128_daily_bin877.fits outfile=/scratch/kocevski/32987/expmap_466646401_466905601_4FGL_J2335.4-0128_daily_bin877.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/32987/ltcube_466646401_466905601_4FGL_J2335.4-0128_daily_bin877.fits
.....................!
real 189.71
user 185.66
sys 3.74

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/32987/ft1_filtered_4FGL_J2335.4-0128_daily_bin877.fits scfile=/scratch/kocevski/32987/ft2_4FGL_J2335.4-0128_daily_bin877.fits outfile=/scratch/kocevski/32987/cmap_466646401_466905601_4FGL_J2335.4-0128_daily_bin877.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.40
sys 0.12

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/32987/ft1_filtered_4FGL_J2335.4-0128_daily_bin877.fits evtable="EVENTS" scfile=/scratch/kocevski/32987/ft2_4FGL_J2335.4-0128_daily_bin877.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/32987/Model_4FGL_J2335.4-0128_daily_bin877.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/32987/ft1_filtered_4FGL_J2335.4-0128_daily_bin877.fits.....................!
real 62.19
user 60.90
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .71473       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.9723       1.0000         .10000E-03   10000.    
     5 'norm      '    1.5754       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.0158       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.3250       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.0030       1.0000         .10000E-03   10000.    
    14 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.281       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.6572       1.0000         .10000E-03   10000.    
    18 'Prefactor '    122.69       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    31.931       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.7558       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    19.414       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    13.948       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1155       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .89678       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=   6324.884     FROM MIGRAD    STATUS=CONVERGED    735 CALLS     3698 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.405       -.85936E-06** at limit **
   2  Prefactor     .56812        61.388        .64991E-05   -.30604E-03
   3  Prefactor     .10000E-03    12.971        .56790E-06** at limit **
   4  Prefactor     6.9724        4.8899        .65832E-07   -.50478E-04
   5  norm          1.5757        2.6263       -.64594E-07   -.10291E-03
   6  Prefactor     .10000E-03    7.8494       -.13597E-06** at limit **
   7  norm          .10000E-03    2.1098       -.23528E-06** at limit **
   8  norm          4.0160        11.200        .17471E-05    .20631E-03
   9  Prefactor     .10000E-03    15.284        .45871E-07** at limit **
  10  Prefactor     5.3230        18.419       -.11199E-06    .46293E-05
  11  Prefactor     .10000E-03    35.178       -.19857E-05** at limit **
  12  Prefactor     .10000E-03    5.4659        .11665E-06** at limit **
  13  norm          5.0030        1.3911        .46741E-07    .33122E-03
  14  norm          .10000E-03    7.5316        .21808E-06** at limit **
  15  Prefactor     18.281        12.946       -.17843E-06    .25247E-04
  16  Prefactor     .10000E-03    31.039        .21652E-05** at limit **
  17  norm          5.6580        11.607        .11041E-05    .17718E-03
  18  Prefactor     122.70        124.60       -.81041E-06   -.19033E-04
  19  Prefactor     .10000E-03    3.0989       -.16407E-07** at limit **
  20  Prefactor     31.933        31.280       -.29730E-07    .33865E-04
  21  norm          .10000E-03    5.1408       -.62131E-07** at limit **
  22  Prefactor     6.8324        118.87       -.12819E-04   -.82858E-04
  23  Prefactor     .10000E-03    1.4438       -.14789E-07** at limit **
  24  Prefactor     .10000E-03    19.102       -.86135E-06** at limit **
  25  Prefactor     19.410        28.347        .17905E-06    .22927E-04
  26  Prefactor     .10000E-03    6.1613       -.17217E-06** at limit **
  27  Prefactor     13.950        8.6786        .34987E-07   -.71284E-04
  28  Normalizat    1.1154        .20024       -.20598E-07   -.59393E-04
  29  Prefactor     .89685        .14327        .74940E-07   -.44759E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.568122
  Prefactor  = 0.0001
  Prefactor  = 6.97238
  norm       = 1.57567
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.01598
  Prefactor  = 0.0001
  Prefactor  = 5.32301
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 5.00298
  norm       = 0.0001
  Prefactor  = 18.2808
  Prefactor  = 0.000100001
  norm       = 5.658
  Prefactor  = 122.699
  Prefactor  = 0.0001
  Prefactor  = 31.9329
  norm       = 0.0001
  Prefactor  = 6.83237
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.4097
  Prefactor  = 0.0001
  Prefactor  = 13.9501
  Normalizat = 1.1154
  Prefactor  = 0.896845
 **********
 **   18 **HESSE 
 **********

 FCN=   6324.884     FROM HESSE     STATUS=OK           557 CALLS     4255 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .56812        23.549        .22133       -1.5557    
   3  Prefactor     .10000E-03    13.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.9724        4.8812        .14238E-03   -1.5180    
   5  norm          1.5757        2.6057        .15843E-03   -1.5457    
   6  Prefactor     .10000E-03    7.8761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.1670        .22501E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.0160        11.214        .10062E-02   -1.5307    
   9  Prefactor     .10000E-03    15.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.3230        18.434        .17416E-03   -1.5246    
  11  Prefactor     .10000E-03    35.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.5101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.0030        1.3910        .23403E-03   -1.5261    
  14  norm          .10000E-03    7.8469        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.281        12.928        .93675E-04   -1.4853    
  16  Prefactor     .10000E-03    31.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.6580        11.605        .84445E-03   -1.5232    
  18  Prefactor     122.70        124.62        .18168E-03   -1.3488    
  19  Prefactor     .10000E-03    3.1053        .13671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     31.933        31.237        .70910E-04   -1.4577    
  21  norm          .10000E-03    5.1427        .17611E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.8324        120.89        .15437E-03   -1.5185    
  23  Prefactor     .10000E-03    1.4542        .93291E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    19.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     19.410        28.373        .90900E-04   -1.4827    
  26  Prefactor     .10000E-03    6.1715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     13.950        8.7079        .10725E-03   -1.4961    
  28  Normalizat    1.1154        .23264        .28272E-03   -.89259    
  29  Prefactor     .89685        .16665        .22514E-03   -.96251    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04254e-09
Minuit parameter uncertainties:
  1  0.000117966
  2  7.31777
  3  5.34824e-05
  4  4.88151
  5  2.60588
  6  2.12177e-05
  7  1.649e-05
  8  11.2194
  9  8.97711e-07
  10  18.454
  11  0.000332692
  12  1.18747e-05
  13  1.39103
  14  3.00055e-05
  15  12.9299
  16  0.000338319
  17  11.6097
  18  124.892
  19  1.18234e-06
  20  31.2529
  21  4.32171e-06
  22  57.6148
  23  2.24719e-07
  24  0.000117777
  25  28.3928
  26  1.58468e-05
  27  8.70873
  28  0.232852
  29  0.166746
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  4.322e-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:  8.968e-01  1.667e-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.115e+00  2.329e-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.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.46e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/32987/likelihoodResults_466646401_466905601_4FGL_J2335.4-0128_daily_bin877.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) = 6324.8849586
delta logL = -0.000911528931283

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6324.8840471
delta logL = -3.19651007885e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4880       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1155       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89678       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=   6324.884     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      242 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    276.43        .17813E-01** at limit **
   2  alpha         1.5923        3.1736        .16461        .28040E-07
   3  Normalizat    1.1154        .33206E-01    .28272E-03    .10455E-05
   4  Prefactor     .89685        .24125E-01    .22514E-03    .21713E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.59228
  Normalizat = 1.1154
  Prefactor  = 0.896845
 **********
 **   18 **HESSE 
 **********

 FCN=   6324.884     FROM HESSE     STATUS=OK            23 CALLS      265 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.1813        .20767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5923        2.8565        .65844E-02   -.37158    
   3  Normalizat    1.1154        .22307        .11309E-04   -.89259    
   4  Prefactor     .89685        .16212        .90056E-05   -.96251    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62113e-11
Minuit parameter uncertainties:
  1  2.57261e-05
  2  409.124
  3  0.223256
  4  0.162204
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/32987': 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) = 6324.88404434
delta logL = 2.7295009204e-06

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  2.573e-05  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  1.592e+00  4.091e+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:  8.968e-01  1.622e-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.115e+00  2.233e-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/32987/cmap_HighResolution_466646401_466905601_4FGL_J2335.4-0128_daily_bin877.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.46e-05', job_status='DONE', photon_flux_upper_limit='3.52e-08', time_completed='2021-09-30 00:37:07.034870', job_id='32987', GAL2='0.90', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1632987427.03', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='2.73e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='877' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:37:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 32987: <4FGL_J2335.4-0128_daily_bin877> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin877 353.869 -1.476 466646401 466905601 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 :                                   754.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             254.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            991 sec.

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

