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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin597
RA = 353.869, Dec = -1.476
tmin = 394070401, tmax = 394329601
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='31534', job_status='RUN', time_executed='2021-09-30 00:19:43.699354', time_epoch_executed='1632986383.7' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='597'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31534

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31534/ft1_4FGL_J2335.4-0128_daily_bin597.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31534/ft2_4FGL_J2335.4-0128_daily_bin597.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31534/ft1_4FGL_J2335.4-0128_daily_bin597.fits outfile=/scratch/kocevski/31534/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin597.fits ra=353.869 dec=-1.476 rad=12.0 tmin=394070401.0 tmax=394329601.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 4.50
user 4.25
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/31534/ft2_4FGL_J2335.4-0128_daily_bin597.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/31534/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin597.fits evtable="EVENTS" outfile="/scratch/kocevski/31534/ft1_filtered_4FGL_J2335.4-0128_daily_bin597.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.48
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/31534/ft1_filtered_4FGL_J2335.4-0128_daily_bin597.fits" evtable="EVENTS" scfile=/scratch/kocevski/31534/ft2_4FGL_J2335.4-0128_daily_bin597.fits sctable="SC_DATA" outfile=/scratch/kocevski/31534/ltcube_394070401_394329601_4FGL_J2335.4-0128_daily_bin597.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/31534/ft2_4FGL_J2335.4-0128_daily_bin597.fits
.....................!
real 11.78
user 11.39
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31534/ft1_filtered_4FGL_J2335.4-0128_daily_bin597.fits evtable="EVENTS" scfile=/scratch/kocevski/31534/ft2_4FGL_J2335.4-0128_daily_bin597.fits sctable="SC_DATA" expcube=/scratch/kocevski/31534/ltcube_394070401_394329601_4FGL_J2335.4-0128_daily_bin597.fits outfile=/scratch/kocevski/31534/expmap_394070401_394329601_4FGL_J2335.4-0128_daily_bin597.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/31534/ltcube_394070401_394329601_4FGL_J2335.4-0128_daily_bin597.fits
.....................!
real 189.73
user 184.77
sys 4.60

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/31534/ft1_filtered_4FGL_J2335.4-0128_daily_bin597.fits scfile=/scratch/kocevski/31534/ft2_4FGL_J2335.4-0128_daily_bin597.fits outfile=/scratch/kocevski/31534/cmap_394070401_394329601_4FGL_J2335.4-0128_daily_bin597.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/31534/ft1_filtered_4FGL_J2335.4-0128_daily_bin597.fits scfile=/scratch/kocevski/31534/ft2_4FGL_J2335.4-0128_daily_bin597.fits outfile=/scratch/kocevski/31534/cmap_HighResolution_394070401_394329601_4FGL_J2335.4-0128_daily_bin597.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=353.869 yref=-1.476 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/31534/ft1_filtered_4FGL_J2335.4-0128_daily_bin597.fits evtable="EVENTS" scfile=/scratch/kocevski/31534/ft2_4FGL_J2335.4-0128_daily_bin597.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/31534/Model_4FGL_J2335.4-0128_daily_bin597.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/31534/ft1_filtered_4FGL_J2335.4-0128_daily_bin597.fits.....................!
real 55.76
user 54.34
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.875       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.7061       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .50806       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10103E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    43.228       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10563E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.9029       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10244E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.0771       1.0000         .10000E-03   10000.    
    14 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    115.72       1.0000         .10000E-03   10000.    
    17 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.3890       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    25.758       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    19.171       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3017       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .74831       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=   5222.929     FROM MIGRAD    STATUS=CONVERGED    739 CALLS     3761 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.876        10.681        .13988E-06   -.64337E-03
   2  Prefactor     1.6753        227.85       -.30515E-04    .21378E-04
   3  Prefactor     .10000E-03    9.7178       -.22458E-06** at limit **
   4  Prefactor     .10000E-03    2.1542        .45836E-07** at limit **
   5  norm          .50852        1.9969       -.91639E-06   -.12115E-02
   6  Prefactor     .10000E-03    5.5149        .73207E-07** at limit **
   7  norm          .10000E-03    1.7086        .19972E-06** at limit **
   8  norm          43.225        21.515        .68144E-06   -.52635E-04
   9  Prefactor     .10000E-03    55.685        .22003E-06** at limit **
  10  Prefactor     9.8911        30.102        .67007E-06   -.19655E-04
  11  Prefactor     .10000E-03    27.739       -.60027E-05** at limit **
  12  Prefactor     .10000E-03    14.713       -.50101E-06** at limit **
  13  norm          3.0766        1.2899        .61709E-07    .13792E-03
  14  norm          .10000E-03    2.8509        .15240E-07** at limit **
  15  Prefactor     .10000E-03    7.2805       -.28813E-06** at limit **
  16  Prefactor     115.73        81.445        .30893E-05   -.24413E-04
  17  norm          .10000E-03    3.8808        .32709E-08** at limit **
  18  Prefactor     .10000E-03    214.02        .44910E-05** at limit **
  19  Prefactor     7.3762        21.930       -.14359E-04   -.32256E-04
  20  Prefactor     .10000E-03    6.8779       -.39428E-06** at limit **
  21  norm          25.779        48.833        .19101E-04   -.10917E-03
  22  Prefactor     .10000E-03    26.790        .60389E-05** at limit **
  23  Prefactor     .10000E-03    4.8674       -.59709E-06** at limit **
  24  Prefactor     .10000E-03    11.984        .51510E-06** at limit **
  25  Prefactor     19.160        27.256        .17122E-05   -.44546E-04
  26  Prefactor     .10000E-03    7.2551        .76010E-06** at limit **
  27  Prefactor     .10000E-03    3.6313        .27173E-07** at limit **
  28  Normalizat    1.3018        .21655        .10873E-05    .57762E-04
  29  Prefactor     .74818        .15051       -.11051E-05    .14966E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.8762
  Prefactor  = 1.67535
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.508523
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 43.2254
  Prefactor  = 0.0001
  Prefactor  = 9.89108
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 3.07664
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 115.726
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.37617
  Prefactor  = 0.0001
  norm       = 25.779
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 19.1598
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.30182
  Prefactor  = 0.748184
 **********
 **   18 **HESSE 
 **********

 FCN=   5222.929     FROM HESSE     STATUS=OK           545 CALLS     4306 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.876        10.646        .60746E-03   -1.5048    
   2  Prefactor     1.6753        224.77        .32193E-03   -1.5449    
   3  Prefactor     .10000E-03    9.7487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.1599        .10356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .50852        2.0220        .19864E-03   -1.5565    
   6  Prefactor     .10000E-03    5.5191        .16576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.8503        .18373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          43.225        21.488        .60974E-04   -1.4392    
   9  Prefactor     .10000E-03    56.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.8911        30.065        .12734E-03   -1.5079    
  11  Prefactor     .10000E-03    27.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.197        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.0766        1.2879        .50462E-04   -1.5357    
  14  norm          .10000E-03    2.8723        .11914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.5147        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     115.73        81.333        .37401E-04   -1.3552    
  17  norm          .10000E-03    3.9340        .13903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    214.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.3762        21.819        .14755E-03   -1.5165    
  20  Prefactor     .10000E-03    6.8874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          25.779        48.259        .78931E-04   -1.4692    
  22  Prefactor     .10000E-03    26.673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.9650        .30992E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    11.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     19.160        27.244        .91476E-04   -1.4832    
  26  Prefactor     .10000E-03    7.2671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    3.6474        .13446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.3018        .24908        .25852E-03   -.83512    
  29  Prefactor     .74818        .17202        .23773E-03   -1.0167    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24688e-09
Minuit parameter uncertainties:
  1  10.6474
  2  38.9602
  3  2.4494e-05
  4  6.64287e-06
  5  2.0223
  6  7.75759e-06
  7  3.35148e-05
  8  21.4915
  9  2.68731e-05
  10  30.1114
  11  0.000331392
  12  4.29831e-05
  13  1.28794
  14  1.87384e-06
  15  1.38459e-05
  16  81.4116
  17  2.96353e-07
  18  0.000520266
  19  21.8428
  20  9.77588e-06
  21  48.3317
  22  0.000316931
  23  0.000131844
  24  2.23029e-05
  25  27.262
  26  1.47012e-05
  27  3.9407e-06
  28  0.249309
  29  0.172146
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  2.578e+01  4.833e+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:  7.482e-01  1.721e-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.302e+00  2.493e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.00
Ra Dec: 353.869 -1.476
Photon Flux Upper Limit: 1.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.69e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/31534/likelihoodResults_394070401_394329601_4FGL_J2335.4-0128_daily_bin597.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) = 5222.92906679
delta logL = 2.20646234084e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5222.92899716
delta logL = 9.16966491786e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    26.448       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4803       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3019       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74799       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=   5222.929     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      260 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          26.467        82.619        .77896E-04   -.97639E-04
   2  alpha         2.4784        3.6045        .18556E-01   -.20261E-04
   3  Normalizat    1.3024        .24420        .25847E-03   -.44829E-03
   4  Prefactor     .74782        .17537        .23778E-03   -.12378E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 26.4672
  alpha      = 2.47843
  Normalizat = 1.3024
  Prefactor  = 0.747819
 **********
 **   18 **HESSE 
 **********

 FCN=   5222.929     FROM HESSE     STATUS=OK            25 CALLS      285 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          26.467        58.420        .31158E-05   -1.4679    
   2  alpha         2.4784        1.7424        .74223E-03   -.86279E-02
   3  Normalizat    1.3024        .24001        .51694E-04   -.83495    
   4  Prefactor     .74782        .17274        .95113E-05   -1.0168    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.89242e-10
Minuit parameter uncertainties:
  1  58.5467
  2  1.92788
  3  0.240219
  4  0.172869
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31534': 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) = 5222.928994
delta logL = 9.48487258938e-05

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  2.647e+01  5.855e+01  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  2.478e+00  1.928e+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:  7.478e-01  1.729e-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.302e+00  2.402e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.02
Ra Dec: 353.869 -1.476
Photon Index (Free Index): 2.48 +/- 1.93
Photon Flux (Free Index): 3.14e-08 +/- 4.48e-08
Energy Flux (Free Index): 1.33e-05 +/- 1.88e-05

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/31534/cmap_HighResolution_394070401_394329601_4FGL_J2335.4-0128_daily_bin597.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.69e-05', comment='SUCCESS', energy_flux2='1.33e-05', dlogl='9.48e-05', photon_flux2='3.14e-08', job_status='DONE', time_completed='2021-09-30 00:31:30.706169', photon_index_error2='1.93', photon_index2='2.48', ts='1.00', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', photon_flux_upper_limit='1.13e-07', energy_flux_error2='1.88e-05', EG='1.30', time_epoch_completed='1632987090.71', return_code='0', job_id='31534', GAL2='0.75', EG2='1.30', return_code2='0', photon_flux_error2='4.48e-08', ts2='1.02', photon_index='2.50' WHERE bin_id='597' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:31:30 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin597 353.869 -1.476 394070401 394329601 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 :                                   705.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             218.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   945 sec.
    Turnaround time :                            948 sec.

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

