/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 222 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 = 7417
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2335.4-0128_daily_bin275
RA = 353.869, Dec = -1.476
tmin = 310608001, tmax = 310867201
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='30053', job_status='RUN', time_executed='2021-09-30 00:14:20.128129', time_epoch_executed='1632986060.13' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='275'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/30053

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/30053/ft1_4FGL_J2335.4-0128_daily_bin275.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/30053/ft2_4FGL_J2335.4-0128_daily_bin275.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/30053/ft1_4FGL_J2335.4-0128_daily_bin275.fits outfile=/scratch/kocevski/30053/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin275.fits ra=353.869 dec=-1.476 rad=12.0 tmin=310608001.0 tmax=310867201.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.54
user 3.29
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/30053/ft2_4FGL_J2335.4-0128_daily_bin275.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/30053/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin275.fits evtable="EVENTS" outfile="/scratch/kocevski/30053/ft1_filtered_4FGL_J2335.4-0128_daily_bin275.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/30053/ft1_filtered_4FGL_J2335.4-0128_daily_bin275.fits" evtable="EVENTS" scfile=/scratch/kocevski/30053/ft2_4FGL_J2335.4-0128_daily_bin275.fits sctable="SC_DATA" outfile=/scratch/kocevski/30053/ltcube_310608001_310867201_4FGL_J2335.4-0128_daily_bin275.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/30053/ft2_4FGL_J2335.4-0128_daily_bin275.fits
.....................!
real 11.97
user 11.62
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/30053/ft1_filtered_4FGL_J2335.4-0128_daily_bin275.fits evtable="EVENTS" scfile=/scratch/kocevski/30053/ft2_4FGL_J2335.4-0128_daily_bin275.fits sctable="SC_DATA" expcube=/scratch/kocevski/30053/ltcube_310608001_310867201_4FGL_J2335.4-0128_daily_bin275.fits outfile=/scratch/kocevski/30053/expmap_310608001_310867201_4FGL_J2335.4-0128_daily_bin275.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/30053/ltcube_310608001_310867201_4FGL_J2335.4-0128_daily_bin275.fits
.....................!
real 191.56
user 185.70
sys 5.54

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/30053/ft1_filtered_4FGL_J2335.4-0128_daily_bin275.fits scfile=/scratch/kocevski/30053/ft2_4FGL_J2335.4-0128_daily_bin275.fits outfile=/scratch/kocevski/30053/cmap_310608001_310867201_4FGL_J2335.4-0128_daily_bin275.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/30053/ft1_filtered_4FGL_J2335.4-0128_daily_bin275.fits scfile=/scratch/kocevski/30053/ft2_4FGL_J2335.4-0128_daily_bin275.fits outfile=/scratch/kocevski/30053/cmap_HighResolution_310608001_310867201_4FGL_J2335.4-0128_daily_bin275.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.58
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    27.703       1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.065       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10414E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .71974       1.0000         .10000E-03   10000.    
     7 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .73267E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .93075       1.0000         .10000E-03   10000.    
    14 'norm      '    8.2381       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9143       1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.437       1.0000         .10000E-03   10000.    
    17 'norm      '    26.382       1.0000         .10000E-03   10000.    
    18 'Prefactor '    146.85       1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.809       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12337E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    41.348       1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.9309       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .98642       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .86073       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=   6166.828     FROM MIGRAD    STATUS=CONVERGED    715 CALLS     3716 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    8.1611       -.21938E-05** at limit **
   2  Prefactor     27.672        48.227        .57439E-05   -.35727E-04
   3  Prefactor     19.070        17.975       -.82912E-06   -.33417E-03
   4  Prefactor     .10000E-03    4.8000        .58974E-06** at limit **
   5  norm          .10000E-03    1.8651        .66622E-06** at limit **
   6  Prefactor     .73074        8.3541        .10868E-05   -.13820E-03
   7  norm          .10000E-03    4.2380       -.69788E-07** at limit **
   8  norm          .10088E-03    12.055       -.84509E-05** at limit **
   9  Prefactor     .10000E-03    7.6236       -.19887E-06** at limit **
  10  Prefactor     .10000E-03    16.543        .37098E-06** at limit **
  11  Prefactor     .10000E-03    32.905        .24462E-06** at limit **
  12  Prefactor     .10000E-03    4.7696        .45139E-07** at limit **
  13  norm          .93054        .88738       -.59023E-08    .14640E-03
  14  norm          8.2402        7.1486        .12552E-06    .79591E-04
  15  Prefactor     1.9180        20.741        .18807E-04    .31397E-03
  16  Prefactor     22.430        36.577        .60158E-06   -.67118E-04
  17  norm          26.378        13.986       -.25295E-05   -.60277E-05
  18  Prefactor     146.84        173.15        .60349E-06   -.16175E-07
  19  Prefactor     16.818        12.087       -.16613E-06    .69863E-04
  20  Prefactor     .10000E-03    30.477       -.35322E-06** at limit **
  21  norm          .10000E-03    16.571        .27552E-06** at limit **
  22  Prefactor     .10000E-03    24.688       -.46865E-06** at limit **
  23  Prefactor     .10001E-03    2.2591       -.11250E-05** at limit **
  24  Prefactor     .10000E-03    12.891       -.22759E-06** at limit **
  25  Prefactor     41.348        23.520        .14505E-06    .26506E-05
  26  Prefactor     7.9311        9.1371        .10786E-06    .43023E-04
  27  Prefactor     .10000E-03    8.4075       -.51539E-06** at limit **
  28  Normalizat    .98629        .19279        .69838E-06    .43645E-03
  29  Prefactor     .86080        .13533       -.13024E-05    .53847E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  Prefactor  = 27.6721
  Prefactor  = 19.0699
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.730743
  norm       = 0.0001
  norm       = 0.000100879
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.930543
  norm       = 8.24019
  Prefactor  = 1.91801
  Prefactor  = 22.43
  norm       = 26.3779
  Prefactor  = 146.838
  Prefactor  = 16.8177
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 41.3477
  Prefactor  = 7.93108
  Prefactor  = 0.000100001
  Normalizat = 0.986293
  Prefactor  = 0.8608
 **********
 **   18 **HESSE 
 **********

 FCN=   6166.828     FROM HESSE     STATUS=OK           555 CALLS     4271 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    8.3870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     27.672        48.480        .76115E-04   -1.4655    
   3  Prefactor     19.070        16.926        .91730E-04   -1.4834    
   4  Prefactor     .10000E-03    12.083        .32037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.3324        .19037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .73074        35.832        .42569E-02   -1.5537    
   7  norm          .10000E-03    4.3360        .31363E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10088E-03    63.585        .41151E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.6241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    32.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.7808        .16730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .93054        .84445        .66612E-03   -1.5515    
  14  norm          8.2402        7.0984        .13968E-03   -1.5134    
  15  Prefactor     1.9180        22.377        .15021E-02   -1.5431    
  16  Prefactor     22.430        36.567        .84562E-04   -1.4760    
  17  norm          26.378        14.195        .77993E-04   -1.4680    
  18  Prefactor     146.84        172.63        .33254E-04   -1.3278    
  19  Prefactor     16.818        11.516        .97689E-04   -1.4888    
  20  Prefactor     .10000E-03    30.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    16.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    24.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    15.875        .20967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    12.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     41.348        23.505        .62340E-04   -1.4421    
  26  Prefactor     7.9311        9.1320        .14238E-03   -1.5145    
  27  Prefactor     .10000E-03    8.6863        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .98629        .21773        .27213E-03   -.93491    
  29  Prefactor     .86080        .15510        .21099E-03   -.97525    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6207e-08
Minuit parameter uncertainties:
  1  0.000473117
  2  48.5494
  3  16.93
  4  3.16062e-05
  5  1.05143e-05
  6  10.2398
  7  2.42174e-05
  8  0.0149712
  9  4.6867e-05
  10  6.58962e-05
  11  6.51165e-06
  12  1.02077e-05
  13  0.844458
  14  7.09909
  15  13.1083
  16  36.603
  17  14.1964
  18  173.226
  19  11.5177
  20  9.94958e-05
  21  8.04387e-05
  22  0.000188481
  23  0.000966758
  24  7.2754e-05
  25  23.5101
  26  9.13364
  27  0.000173461
  28  0.217931
  29  0.155178
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  8.608e-01  1.552e-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:  9.863e-01  2.179e-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: 5.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.33e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/30053/likelihoodResults_310608001_310867201_4FGL_J2335.4-0128_daily_bin275.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) = 6166.82840492
delta logL = -0.000286941651211

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6166.82812134
delta logL = -3.36865377903e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4006       1.0000          .0000       5.0000    
     3 'Normalizat'    .98629       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86080       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=   6166.828     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      276 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    77.976        .18142E-01** at limit **
   2  alpha         2.4884        2.9991        .50000        .36061E-07
   3  Normalizat    .98630        .10357E-01    .27213E-03    .23175E-02
   4  Prefactor     .86080        .75933E-02    .21099E-03    .29558E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.48843
  Normalizat = 0.986297
  Prefactor  = 0.860803
 **********
 **   18 **HESSE 
 **********

 FCN=   6166.828     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      305 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    490.72        .30923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4884        3.3671        .50000       -.46289E-02
   3  Normalizat    .98630        .26609E-01    .54426E-04   -.93491    
   4  Prefactor     .86080        .19508E-01    .42198E-04   -.97525    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.61948e-10
Minuit parameter uncertainties:
  1  0.000799479
  2  2161.71
  3  0.0266089
  4  0.0195079
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/30053': 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): 102
logL (Free Index) = 6166.82811798
delta logL = -2.74030753644e-09

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  7.995e-04  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  2.488e+00  2.162e+03  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.608e-01  1.951e-02  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:  9.863e-01  2.661e-02  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/30053/cmap_HighResolution_310608001_310867201_4FGL_J2335.4-0128_daily_bin275.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.33e-05', job_status='DONE', photon_flux_upper_limit='5.61e-08', time_completed='2021-09-30 00:26:48.690099', job_id='30053', GAL2='0.86', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1632986808.69', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='-2.74e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='275' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:26:48 PDT 2021


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

Job <4FGL_J2335.4-0128_daily_bin275> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 00:10:29 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:10:30 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:10:30 2021
Terminated at Thu Sep 30 00:26:49 2021
Results reported at Thu Sep 30 00:26:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin275 353.869 -1.476 310608001 310867201 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 :                                   746.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             242.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   979 sec.
    Turnaround time :                            980 sec.

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

