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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin710
RA = 353.869, Dec = -1.476
tmin = 423360001, tmax = 423619201
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='31713', job_status='RUN', time_executed='2021-09-30 00:19:28.144203', time_epoch_executed='1632986368.14' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='710'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31713

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31713/ft1_4FGL_J2335.4-0128_daily_bin710.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31713/ft2_4FGL_J2335.4-0128_daily_bin710.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31713/ft1_4FGL_J2335.4-0128_daily_bin710.fits outfile=/scratch/kocevski/31713/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin710.fits ra=353.869 dec=-1.476 rad=12.0 tmin=423360001.0 tmax=423619201.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 5.66
user 5.42
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/31713/ft1_filtered_4FGL_J2335.4-0128_daily_bin710.fits" evtable="EVENTS" scfile=/scratch/kocevski/31713/ft2_4FGL_J2335.4-0128_daily_bin710.fits sctable="SC_DATA" outfile=/scratch/kocevski/31713/ltcube_423360001_423619201_4FGL_J2335.4-0128_daily_bin710.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/31713/ft2_4FGL_J2335.4-0128_daily_bin710.fits
.....................!
real 11.51
user 11.08
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31713/ft1_filtered_4FGL_J2335.4-0128_daily_bin710.fits evtable="EVENTS" scfile=/scratch/kocevski/31713/ft2_4FGL_J2335.4-0128_daily_bin710.fits sctable="SC_DATA" expcube=/scratch/kocevski/31713/ltcube_423360001_423619201_4FGL_J2335.4-0128_daily_bin710.fits outfile=/scratch/kocevski/31713/expmap_423360001_423619201_4FGL_J2335.4-0128_daily_bin710.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/31713/ltcube_423360001_423619201_4FGL_J2335.4-0128_daily_bin710.fits
.....................!
real 191.55
user 186.81
sys 4.39

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/31713/ft1_filtered_4FGL_J2335.4-0128_daily_bin710.fits scfile=/scratch/kocevski/31713/ft2_4FGL_J2335.4-0128_daily_bin710.fits outfile=/scratch/kocevski/31713/cmap_423360001_423619201_4FGL_J2335.4-0128_daily_bin710.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/31713/ft1_filtered_4FGL_J2335.4-0128_daily_bin710.fits scfile=/scratch/kocevski/31713/ft2_4FGL_J2335.4-0128_daily_bin710.fits outfile=/scratch/kocevski/31713/cmap_HighResolution_423360001_423619201_4FGL_J2335.4-0128_daily_bin710.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/31713/ft1_filtered_4FGL_J2335.4-0128_daily_bin710.fits evtable="EVENTS" scfile=/scratch/kocevski/31713/ft2_4FGL_J2335.4-0128_daily_bin710.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/31713/Model_4FGL_J2335.4-0128_daily_bin710.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/31713/ft1_filtered_4FGL_J2335.4-0128_daily_bin710.fits.....................!
real 51.06
user 49.77
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.6284       1.0000         .10000E-03   10000.    
     5 'norm      '    1.5294       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .20154       1.0000         .10000E-03   10000.    
     7 'norm      '    3.7019       1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.3165       1.0000         .10000E-03   10000.    
    11 'Prefactor '    57.526       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10680E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.3211       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    112.09       1.0000         .10000E-03   10000.    
    17 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.1532       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10791E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.5658       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.3176       1.0000         .10000E-03   10000.    
    25 'Prefactor '    15.547       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.6272       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .89093       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .83762       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=   4964.037     FROM MIGRAD    STATUS=CONVERGED    777 CALLS     3736 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.7262       -.11190E-06** at limit **
   2  Prefactor     .10000E-03    17.009        .10170E-05** at limit **
   3  Prefactor     .10000E-03    9.6083        .32937E-08** at limit **
   4  Prefactor     5.6375        7.8529        .92392E-06   -.12799E-02
   5  norm          1.5293        2.3571       -.16301E-06   -.15826E-03
   6  Prefactor     .10023E-03    12.820       -.61430E-06** at limit **
   7  norm          3.7164        4.6976       -.46994E-06    .55614E-04
   8  norm          .10000E-03    3.9070        .18283E-07** at limit **
   9  Prefactor     .10000E-03    16.591       -.13987E-05** at limit **
  10  Prefactor     5.3151        10.073        .46544E-06   -.36399E-03
  11  Prefactor     57.490        59.739       -.12683E-04   -.17350E-03
  12  Prefactor     .10000E-03    4.8458        .17598E-06** at limit **
  13  norm          .10000E-03    .47339        .10924E-06** at limit **
  14  norm          6.3208        5.5707        .61010E-06   -.33887E-03
  15  Prefactor     .10000E-03    3.4630        .15553E-07** at limit **
  16  Prefactor     112.07        68.122       -.82075E-05   -.17048E-03
  17  norm          .10000E-03    5.5983       -.16302E-06** at limit **
  18  Prefactor     .10000E-03    89.800       -.57779E-06** at limit **
  19  Prefactor     3.1605        16.315        .77018E-06   -.40566E-04
  20  Prefactor     .10000E-03    44.581        .13221E-06** at limit **
  21  norm          .10000E-03    15.592        .34948E-06** at limit **
  22  Prefactor     .10000E-03    31.008       -.16346E-07** at limit **
  23  Prefactor     6.5642        5.8146       -.40345E-07   -.74883E-04
  24  Prefactor     3.3153        57.422        .24383E-05   -.15340E-03
  25  Prefactor     15.543        19.103        .17249E-06    .21629E-04
  26  Prefactor     .10000E-03    11.333       -.39004E-07** at limit **
  27  Prefactor     3.6303        7.3846        .10937E-05   -.13144E-02
  28  Normalizat    .89063        .21088        .29152E-05   -.73667E-04
  29  Prefactor     .83794        .14417       -.81244E-06    .13007E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.63751
  norm       = 1.52927
  Prefactor  = 0.000100225
  norm       = 3.71638
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.31512
  Prefactor  = 57.4897
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.32076
  Prefactor  = 0.0001
  Prefactor  = 112.065
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 3.16048
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.56423
  Prefactor  = 3.31526
  Prefactor  = 15.543
  Prefactor  = 0.0001
  Prefactor  = 3.63029
  Normalizat = 0.890628
  Prefactor  = 0.837938
 **********
 **   18 **HESSE 
 **********

 FCN=   4964.037     FROM HESSE     STATUS=OK           559 CALLS     4295 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.7337        .13281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    17.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.6324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.6375        8.8855        .84664E-03   -1.5233    
   5  norm          1.5293        2.3340        .12799E-03   -1.5461    
   6  Prefactor     .10023E-03    16.922        .79660E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.7164        4.8302        .13171E-03   -1.5322    
   8  norm          .10000E-03    3.9113        .13601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.3151        10.213        .87153E-03   -1.5247    
  11  Prefactor     57.490        61.039        .52893E-04   -1.4190    
  12  Prefactor     .10000E-03    4.8605        .15147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .66123        .92493E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.3208        5.5692        .74489E-03   -1.5205    
  15  Prefactor     .10000E-03    3.4691        .12802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     112.07        68.566        .37995E-04   -1.3587    
  17  norm          .10000E-03    25.467        .32080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    89.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.1605        15.428        .22826E-03   -1.5352    
  20  Prefactor     .10000E-03    46.238        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    15.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    31.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.5642        5.7069        .13168E-03   -1.5195    
  24  Prefactor     3.3153        61.523        .11112E-02   -1.5344    
  25  Prefactor     15.543        19.112        .10158E-03   -1.4919    
  26  Prefactor     .10000E-03    11.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     3.6303        9.6503        .10607E-02   -1.5327    
  28  Normalizat    .89063        .25202        .26869E-03   -.96790    
  29  Prefactor     .83794        .16832        .20261E-03   -.98345    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.44684e-09
Minuit parameter uncertainties:
  1  6.81575e-06
  2  2.70562e-05
  3  1.30924e-05
  4  8.88756
  5  2.3341
  6  0.00390654
  7  4.83071
  8  1.22487e-06
  9  5.7798e-05
  10  10.216
  11  61.1059
  12  6.57025e-05
  13  7.73177e-06
  14  5.56963
  15  2.46771e-06
  16  68.6141
  17  0.000340249
  18  4.06284e-05
  19  13.971
  20  9.28965e-05
  21  1.42089e-05
  22  2.89e-05
  23  5.70735
  24  28.5969
  25  19.1195
  26  2.81461e-05
  27  9.65441
  28  0.252355
  29  0.168424
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  1.421e-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.379e-01  1.684e-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.906e-01  2.524e-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: 6.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.63e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/31713/likelihoodResults_423360001_423619201_4FGL_J2335.4-0128_daily_bin710.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) = 4964.03744458
delta logL = -0.000305525513795

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4964.03713915
delta logL = -9.91567503661e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4870       1.0000          .0000       5.0000    
     3 'Normalizat'    .89066       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83794       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=   4964.037     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      184 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    16.144        .90712E-02** at limit **
   2  alpha         2.4997        3.5673        .41152       -.42264E-05
   3  Normalizat    .89063        .19129        .44782E-01    .19452E-04
   4  Prefactor     .83794        .14120        .44209E-01    .14167E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.49966
  Normalizat = 0.890631
  Prefactor  = 0.837936
 **********
 **   18 **HESSE 
 **********

 FCN=   4964.037     FROM HESSE     STATUS=OK            31 CALLS      215 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    15.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4997        3.5519        .16461       -.13597E-03
   3  Normalizat    .89063        .22043        .26868E-03   -.96790    
   4  Prefactor     .83794        .16275        .20261E-03   -.98345    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79198e-11
Minuit parameter uncertainties:
  1  8.28121e-06
  2  2.50063
  3  0.220649
  4  0.162841
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31713': 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) = 4964.03713906
delta logL = -8.66566551849e-09

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  8.281e-06  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  2.500e+00  2.501e+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:  8.379e-01  1.628e-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.906e-01  2.206e-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/31713/cmap_HighResolution_423360001_423619201_4FGL_J2335.4-0128_daily_bin710.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.63e-05', job_status='DONE', photon_flux_upper_limit='6.33e-08', time_completed='2021-09-30 00:30:39.183529', job_id='31713', GAL2='0.84', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1632987039.18', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='-8.67e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='710' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:30:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 31713: <4FGL_J2335.4-0128_daily_bin710> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin710 353.869 -1.476 423360001 423619201 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 :                                   669.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            879 sec.

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

