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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin869
RA = 353.869, Dec = -1.476
tmin = 464572801, tmax = 464832001
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='32975', job_status='RUN', time_executed='2021-09-30 00:22:47.143679', time_epoch_executed='1632986567.14' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='869'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/32975

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/32975/ft1_4FGL_J2335.4-0128_daily_bin869.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/32975/ft2_4FGL_J2335.4-0128_daily_bin869.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/32975/ft1_4FGL_J2335.4-0128_daily_bin869.fits outfile=/scratch/kocevski/32975/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin869.fits ra=353.869 dec=-1.476 rad=12.0 tmin=464572801.0 tmax=464832001.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.40
user 3.16
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/32975/ft1_filtered_4FGL_J2335.4-0128_daily_bin869.fits" evtable="EVENTS" scfile=/scratch/kocevski/32975/ft2_4FGL_J2335.4-0128_daily_bin869.fits sctable="SC_DATA" outfile=/scratch/kocevski/32975/ltcube_464572801_464832001_4FGL_J2335.4-0128_daily_bin869.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/32975/ft2_4FGL_J2335.4-0128_daily_bin869.fits
.....................!
real 12.26
user 11.87
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/32975/ft1_filtered_4FGL_J2335.4-0128_daily_bin869.fits evtable="EVENTS" scfile=/scratch/kocevski/32975/ft2_4FGL_J2335.4-0128_daily_bin869.fits sctable="SC_DATA" expcube=/scratch/kocevski/32975/ltcube_464572801_464832001_4FGL_J2335.4-0128_daily_bin869.fits outfile=/scratch/kocevski/32975/expmap_464572801_464832001_4FGL_J2335.4-0128_daily_bin869.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/32975/ltcube_464572801_464832001_4FGL_J2335.4-0128_daily_bin869.fits
.....................!
real 190.83
user 185.43
sys 5.00

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/32975/ft1_filtered_4FGL_J2335.4-0128_daily_bin869.fits scfile=/scratch/kocevski/32975/ft2_4FGL_J2335.4-0128_daily_bin869.fits outfile=/scratch/kocevski/32975/cmap_464572801_464832001_4FGL_J2335.4-0128_daily_bin869.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/32975/ft1_filtered_4FGL_J2335.4-0128_daily_bin869.fits scfile=/scratch/kocevski/32975/ft2_4FGL_J2335.4-0128_daily_bin869.fits outfile=/scratch/kocevski/32975/cmap_HighResolution_464572801_464832001_4FGL_J2335.4-0128_daily_bin869.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/32975/ft1_filtered_4FGL_J2335.4-0128_daily_bin869.fits evtable="EVENTS" scfile=/scratch/kocevski/32975/ft2_4FGL_J2335.4-0128_daily_bin869.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/32975/Model_4FGL_J2335.4-0128_daily_bin869.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/32975/ft1_filtered_4FGL_J2335.4-0128_daily_bin869.fits.....................!
real 62.86
user 61.40
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.161       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.5878       1.0000         .10000E-03   10000.    
     5 'norm      '    5.6837       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.0782       1.0000         .10000E-03   10000.    
     8 'norm      '    59.568       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.068       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.8692       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.599       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    10.282       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .16088E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.895       1.0000         .10000E-03   10000.    
    21 'norm      '    6.2004       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .21051E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.5163       1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.9340       1.0000         .10000E-03   10000.    
    26 'Prefactor '    10.395       1.0000         .10000E-03   10000.    
    27 'Prefactor '    7.8322       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .65890       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0841       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=   6288.243     FROM MIGRAD    STATUS=CONVERGED    716 CALLS     3688 TOTAL
                     EDM=   .28E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.161        12.470        .44099E-07    .12819E-05
   2  Prefactor     .10000E-03    58.383       -.35908E-06** at limit **
   3  Prefactor     .10000E-03    13.199        .96041E-07** at limit **
   4  Prefactor     4.5917        10.265        .20710E-05    .18819E-05
   5  norm          5.6824        3.3885        .29933E-07   -.75340E-05
   6  Prefactor     .10000E-03    5.1168       -.21779E-08** at limit **
   7  norm          4.0760        6.5307       -.12514E-05    .20933E-05
   8  norm          59.570        20.992        .11325E-06   -.17690E-05
   9  Prefactor     .10000E-03    20.355       -.59079E-06** at limit **
  10  Prefactor     14.069        15.398        .66870E-07    .25347E-06
  11  Prefactor     .10000E-03    21.589        .14814E-08** at limit **
  12  Prefactor     .10000E-03    3.7668       -.86822E-08** at limit **
  13  norm          7.8669        1.6732       -.13382E-07   -.18347E-03
  14  norm          .10000E-03    1.4134        .33783E-08** at limit **
  15  Prefactor     17.605        17.765       -.98640E-07   -.31488E-05
  16  Prefactor     .10000E-03    53.222       -.14193E-05** at limit **
  17  norm          10.283        14.825       -.14168E-06   -.49608E-05
  18  Prefactor     .10000E-03    481.55        .29071E-04** at limit **
  19  Prefactor     .10000E-03    7.1901        .25988E-07** at limit **
  20  Prefactor     13.873        30.536        .12913E-05   -.45235E-06
  21  norm          6.1901        15.315        .38531E-07   -.73043E-05
  22  Prefactor     .10000E-03    30.077        .11713E-05** at limit **
  23  Prefactor     .10000E-03    3.9948       -.12022E-06** at limit **
  24  Prefactor     9.4962        40.755        .19600E-05   -.84372E-06
  25  Prefactor     7.9068        23.694        .66995E-06   -.34426E-05
  26  Prefactor     10.393        17.184        .63834E-07   -.10678E-05
  27  Prefactor     7.8323        7.2970        .44854E-07   -.10201E-05
  28  Normalizat    .65902        .22223       -.54097E-06   -.92368E-05
  29  Prefactor     1.0840        .15556       -.78417E-07   -.16854E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.161
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.59171
  norm       = 5.68244
  Prefactor  = 0.0001
  norm       = 4.07599
  norm       = 59.5696
  Prefactor  = 0.0001
  Prefactor  = 14.069
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.86693
  norm       = 0.0001
  Prefactor  = 17.6053
  Prefactor  = 0.0001
  norm       = 10.2834
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.8728
  norm       = 6.19009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.49621
  Prefactor  = 7.9068
  Prefactor  = 10.3928
  Prefactor  = 7.83227
  Normalizat = 0.659024
  Prefactor  = 1.08396
 **********
 **   18 **HESSE 
 **********

 FCN=   6288.243     FROM HESSE     STATUS=OK           557 CALLS     4245 TOTAL
                     EDM=   .68E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.161        12.466        .87072E-04   -1.4788    
   2  Prefactor     .10000E-03    58.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.5917        10.241        .93964E-03   -1.5279    
   5  norm          5.6824        3.3885        .10545E-03   -1.5231    
   6  Prefactor     .10000E-03    5.1191        .17517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.0760        6.5152        .14722E-03   -1.5304    
   8  norm          59.570        20.974        .51984E-04   -1.4163    
   9  Prefactor     .10000E-03    20.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.069        15.397        .10679E-03   -1.4958    
  11  Prefactor     .10000E-03    21.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.7876        .15028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.8669        1.6624        .44426E-04   -1.5147    
  14  norm          .10000E-03    1.4148        .92062E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     17.605        17.689        .95472E-04   -1.4869    
  16  Prefactor     .10000E-03    53.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          10.283        14.729        .12496E-03   -1.5067    
  18  Prefactor     .10000E-03    481.82        .20415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.2125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.873        30.461        .10745E-03   -1.4963    
  21  norm          6.1901        15.143        .80609E-03   -1.5210    
  22  Prefactor     .10000E-03    30.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.2829        .29380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     9.4962        40.724        .12991E-03   -1.5092    
  25  Prefactor     7.9068        23.652        .14235E-03   -1.5146    
  26  Prefactor     10.393        17.180        .12428E-03   -1.5063    
  27  Prefactor     7.8323        7.2924        .14328E-03   -1.5148    
  28  Normalizat    .65902        .24358        .35809E-03   -1.0553    
  29  Prefactor     1.0840        .17448        .21283E-03   -.89981    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.82749e-12
Minuit parameter uncertainties:
  1  12.4678
  2  1.70995e-05
  3  6.04787e-07
  4  10.2447
  5  3.38861
  6  1.85822e-06
  7  6.51633
  8  20.9769
  9  3.45385e-06
  10  15.4016
  11  4.85634e-06
  12  1.52073e-06
  13  1.66245
  14  2.95079e-07
  15  17.6944
  16  3.68002e-06
  17  14.7343
  18  3.93191e-05
  19  1.35063e-06
  20  30.4954
  21  15.1528
  22  4.78404e-06
  23  3.66694e-05
  24  39.3758
  25  23.6803
  26  17.1883
  27  7.29318
  28  0.243981
  29  0.174574
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  6.190e+00  1.515e+01  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.084e+00  1.746e-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:  6.590e-01  2.440e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/32975/likelihoodResults_464572801_464832001_4FGL_J2335.4-0128_daily_bin869.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) = 6288.18675602
delta logL = 0.0557798375312

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6288.17647113
delta logL = 0.0660647254081

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.6215       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7719       1.0000          .0000       5.0000    
     3 'Normalizat'    .66274       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0823       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=   6288.176     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      213 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.5652        25.752        .34130E-02    .48130E-04
   2  alpha         1.7727        3.3547        .43609       -.19521E-05
   3  Normalizat    .66311        .20435        .80634E-01    .38351E-04
   4  Prefactor     1.0821        .15290        .38300E-01    .80559E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 8.56517
  alpha      = 1.77273
  Normalizat = 0.663114
  Prefactor  = 1.08205
 **********
 **   18 **HESSE 
 **********

 FCN=   6288.176     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .45E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.5652        17.570        .13652E-03   -1.5123    
   2  alpha         1.7727        1.6618        .55057E-01   -.29518    
   3  Normalizat    .66311        .22624        .35707E-03   -1.0537    
   4  Prefactor     1.0821        .17050        .21298E-03   -.90042    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.47033e-12
Minuit parameter uncertainties:
  1  17.5808
  2  1.8372
  3  0.22656
  4  0.170586
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/32975': 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) = 6288.17646413
delta logL = 0.0660717232586

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  8.565e+00  1.758e+01  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  1.773e+00  1.837e+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.082e+00  1.706e-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:  6.631e-01  2.266e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.23
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/32975/cmap_HighResolution_464572801_464832001_4FGL_J2335.4-0128_daily_bin869.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.83e-05', job_status='DONE', photon_flux_upper_limit='6.82e-08', time_completed='2021-09-30 00:35:27.521204', job_id='32975', GAL2='1.08', fit_tolerance='1e-08', EG2='0.66', EG='0.66', time_epoch_completed='1632987327.52', return_code2='0', ts='0.23', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='6.61e-02', ts2='0.36', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='869' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:35:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 32975: <4FGL_J2335.4-0128_daily_bin869> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin869 353.869 -1.476 464572801 464832001 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 :                                   758.15 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            893 sec.

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

