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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin649
RA = 353.869, Dec = -1.476
tmin = 407548801, tmax = 407808001
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='31617', job_status='RUN', time_executed='2021-09-30 00:19:27.941312', time_epoch_executed='1632986367.94' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='649'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31617

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31617/ft1_4FGL_J2335.4-0128_daily_bin649.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31617/ft2_4FGL_J2335.4-0128_daily_bin649.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31617/ft1_4FGL_J2335.4-0128_daily_bin649.fits outfile=/scratch/kocevski/31617/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin649.fits ra=353.869 dec=-1.476 rad=12.0 tmin=407548801.0 tmax=407808001.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.53
user 3.29
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/31617/ft1_filtered_4FGL_J2335.4-0128_daily_bin649.fits" evtable="EVENTS" scfile=/scratch/kocevski/31617/ft2_4FGL_J2335.4-0128_daily_bin649.fits sctable="SC_DATA" outfile=/scratch/kocevski/31617/ltcube_407548801_407808001_4FGL_J2335.4-0128_daily_bin649.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/31617/ft2_4FGL_J2335.4-0128_daily_bin649.fits
.....................!
real 11.74
user 11.37
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31617/ft1_filtered_4FGL_J2335.4-0128_daily_bin649.fits evtable="EVENTS" scfile=/scratch/kocevski/31617/ft2_4FGL_J2335.4-0128_daily_bin649.fits sctable="SC_DATA" expcube=/scratch/kocevski/31617/ltcube_407548801_407808001_4FGL_J2335.4-0128_daily_bin649.fits outfile=/scratch/kocevski/31617/expmap_407548801_407808001_4FGL_J2335.4-0128_daily_bin649.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/31617/ltcube_407548801_407808001_4FGL_J2335.4-0128_daily_bin649.fits
.....................!
real 190.87
user 186.10
sys 4.46

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/31617/ft1_filtered_4FGL_J2335.4-0128_daily_bin649.fits scfile=/scratch/kocevski/31617/ft2_4FGL_J2335.4-0128_daily_bin649.fits outfile=/scratch/kocevski/31617/cmap_407548801_407808001_4FGL_J2335.4-0128_daily_bin649.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/31617/ft1_filtered_4FGL_J2335.4-0128_daily_bin649.fits scfile=/scratch/kocevski/31617/ft2_4FGL_J2335.4-0128_daily_bin649.fits outfile=/scratch/kocevski/31617/cmap_HighResolution_407548801_407808001_4FGL_J2335.4-0128_daily_bin649.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.57
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/31617/ft1_filtered_4FGL_J2335.4-0128_daily_bin649.fits evtable="EVENTS" scfile=/scratch/kocevski/31617/ft2_4FGL_J2335.4-0128_daily_bin649.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/31617/Model_4FGL_J2335.4-0128_daily_bin649.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/31617/ft1_filtered_4FGL_J2335.4-0128_daily_bin649.fits.....................!
real 52.90
user 51.64
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.827       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.8399       1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.015       1.0000         .10000E-03   10000.    
     7 'norm      '    4.6432       1.0000         .10000E-03   10000.    
     8 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.5460       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.9851       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.980       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.616       1.0000         .10000E-03   10000.    
    13 'norm      '    1.2114       1.0000         .10000E-03   10000.    
    14 'norm      '    6.9229       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.7854       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.699       1.0000         .10000E-03   10000.    
    17 'norm      '    3.2007       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .97269       1.0000         .10000E-03   10000.    
    20 'Prefactor '    35.075       1.0000         .10000E-03   10000.    
    21 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.0077       1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.9661       1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.2217       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .19637E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .84948       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0024       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=   5179.500     FROM MIGRAD    STATUS=CONVERGED    716 CALLS     3702 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.637       -.11824E-05** at limit **
   2  Prefactor     .10000E-03    82.759        .82003E-06** at limit **
   3  Prefactor     11.900        36.535       -.87156E-05   -.11393E-03
   4  Prefactor     .10000E-03    3.5077       -.49383E-07** at limit **
   5  norm          3.8348        5.2666        .17671E-05    .24390E-03
   6  Prefactor     16.014        17.104       -.83963E-07    .42092E-04
   7  norm          4.6436        4.3337       -.50500E-07    .68175E-04
   8  norm          .10000E-03    9.5583       -.24522E-06** at limit **
   9  Prefactor     9.5675        57.729       -.32058E-05   -.14782E-04
  10  Prefactor     7.9857        17.317        .72155E-07    .96787E-05
  11  Prefactor     11.960        65.458        .33598E-05    .23900E-04
  12  Prefactor     11.624        13.437       -.49409E-06    .17305E-04
  13  norm          1.2114        1.0388        .30108E-08   -.19575E-03
  14  norm          6.9237        6.1623        .20734E-06    .52440E-04
  15  Prefactor     1.7855        7.7826        .28880E-06    .75897E-04
  16  Prefactor     11.713        44.490       -.16151E-05   -.16312E-04
  17  norm          3.2012        7.6825        .15256E-05    .34642E-03
  18  Prefactor     .10000E-03    73.502       -.32021E-05** at limit **
  19  Prefactor     1.0362        21.476        .34517E-05   -.22081E-03
  20  Prefactor     35.076        24.163       -.23908E-06    .21769E-04
  21  norm          .10000E-03    80.889        .14962E-05** at limit **
  22  Prefactor     .10000E-03    17.944        .52852E-06** at limit **
  23  Prefactor     7.9983        6.5486        .75343E-07   -.94643E-04
  24  Prefactor     9.9663        20.710        .94993E-07    .16468E-05
  25  Prefactor     5.2226        12.648        .12325E-06    .12357E-04
  26  Prefactor     .10000E-03    14.086       -.39135E-06** at limit **
  27  Prefactor     .10001E-03    7.3542       -.36097E-05** at limit **
  28  Normalizat    .84932        .23037       -.86173E-06    .91041E-04
  29  Prefactor     1.0024        .15476        .11641E-05    .20863E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.8997
  Prefactor  = 0.0001
  norm       = 3.83476
  Prefactor  = 16.0136
  norm       = 4.64362
  norm       = 0.0001
  Prefactor  = 9.56752
  Prefactor  = 7.98568
  Prefactor  = 11.96
  Prefactor  = 11.6235
  norm       = 1.21137
  norm       = 6.92368
  Prefactor  = 1.78551
  Prefactor  = 11.7132
  norm       = 3.20122
  Prefactor  = 0.000100001
  Prefactor  = 1.03623
  Prefactor  = 35.076
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 7.99833
  Prefactor  = 9.96633
  Prefactor  = 5.22264
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  Normalizat = 0.849319
  Prefactor  = 1.00243
 **********
 **   18 **HESSE 
 **********

 FCN=   5179.500     FROM HESSE     STATUS=OK           563 CALLS     4265 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    82.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.900        37.736        .11649E-03   -1.5018    
   4  Prefactor     .10000E-03    3.5145        .13142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.8348        5.3322        .13209E-03   -1.5316    
   6  Prefactor     16.014        17.093        .10008E-03   -1.4907    
   7  norm          4.6436        4.3214        .13620E-03   -1.5277    
   8  norm          .10000E-03    9.6424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.5675        57.853        .12970E-03   -1.5089    
  10  Prefactor     7.9857        17.302        .14189E-03   -1.5143    
  11  Prefactor     11.960        64.994        .11574E-03   -1.5016    
  12  Prefactor     11.624        13.396        .11754E-03   -1.5026    
  13  norm          1.2114        1.0056        .63076E-04   -1.5488    
  14  norm          6.9237        6.1585        .15248E-03   -1.5182    
  15  Prefactor     1.7855        7.7002        .31312E-03   -1.5441    
  16  Prefactor     11.713        44.326        .11712E-03   -1.5023    
  17  norm          3.2012        8.0136        .11324E-02   -1.5350    
  18  Prefactor     .10000E-03    73.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.0362        45.592        .45535E-02   -1.5504    
  20  Prefactor     35.076        24.179        .67666E-04   -1.4523    
  21  norm          .10000E-03    82.101        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    17.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.9983        6.4009        .13129E-03   -1.5142    
  24  Prefactor     9.9663        20.693        .12693E-03   -1.5076    
  25  Prefactor     5.2226        12.631        .17591E-03   -1.5251    
  26  Prefactor     .10000E-03    14.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10001E-03    12.849        .30570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .84932        .26270        .30216E-03   -.98265    
  29  Prefactor     1.0024        .18029        .20510E-03   -.92648    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06657e-09
Minuit parameter uncertainties:
  1  6.37392e-05
  2  5.28143e-05
  3  37.8116
  4  3.70775e-06
  5  5.33288
  6  17.0978
  7  4.32173
  8  3.31488e-05
  9  47.1213
  10  17.3127
  11  55.8551
  12  13.399
  13  1.00563
  14  6.15903
  15  7.41728
  16  44.4512
  17  8.01628
  18  0.000409928
  19  13.7574
  20  24.1857
  21  0.00049009
  22  2.19378e-05
  23  6.40144
  24  20.7078
  25  12.6376
  26  3.66655e-06
  27  0.000816138
  28  0.263096
  29  0.180397
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  4.901e-04  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  2.505e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
453         beta:  3.100e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
454           Eb:  1.202e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  1.002e+00  1.804e-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:  8.493e-01  2.631e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 353.869 -1.476
Photon Flux Upper Limit: 7.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.03e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/31617/likelihoodResults_407548801_407808001_4FGL_J2335.4-0128_daily_bin649.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): 0
logL (Free Index) = 5179.50001972
delta logL = -5.80115975026e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5179.4999618
delta logL = -9.2142727226e-08

Fit tolerance = 1e-08

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

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

 FCN=   5179.500     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      239 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10030E-03    1098.5        .11148    ** at limit **
   2  alpha         2.5929        3.7583        .41154       -.90227E-05
   3  Normalizat    .84932        .50845E-01    .68297E-01    .48987E-04
   4  Prefactor     1.0024        .36805E-01    .44835E-01    .13840E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100296
  alpha      = 2.59287
  Normalizat = 0.84932
  Prefactor  = 1.00243
 **********
 **   18 **HESSE 
 **********

 FCN=   5179.500     FROM HESSE     STATUS=OK            35 CALLS      274 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10030E-03    178.45        .58526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5929        3.6368        .16461        .37156E-01
   3  Normalizat    .84932        .23628        .30217E-03   -.98265    
   4  Prefactor     1.0024        .17423        .20510E-03   -.92649    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.4371e-09
Minuit parameter uncertainties:
  1  0.0145759
  2  2.74053
  3  0.23657
  4  0.174324
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31617': 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) = 5179.4999614
delta logL = 3.01954059978e-07

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.003e-04  1.458e-02  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  2.593e+00  2.741e+00  0.000e+00  5.000e+00 ( 1.000e+00)
453         beta:  3.100e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
454           Eb:  1.202e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  1.002e+00  1.743e-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:  8.493e-01  2.366e-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/31617/cmap_HighResolution_407548801_407808001_4FGL_J2335.4-0128_daily_bin649.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.03e-05', job_status='DONE', photon_flux_upper_limit='7.30e-08', time_completed='2021-09-30 00:30:45.692198', job_id='31617', GAL2='1.00', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1632987045.69', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='3.02e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='649' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:30:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 31617: <4FGL_J2335.4-0128_daily_bin649> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin649 353.869 -1.476 407548801 407808001 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 :                                   676.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             265.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            896 sec.

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

