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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin353
RA = 353.869, Dec = -1.476
tmin = 330825601, tmax = 331084801
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='30171', job_status='RUN', time_executed='2021-09-30 00:11:46.384614', time_epoch_executed='1632985906.38' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='353'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/30171

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/30171/ft1_4FGL_J2335.4-0128_daily_bin353.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/30171/ft2_4FGL_J2335.4-0128_daily_bin353.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/30171/ft1_4FGL_J2335.4-0128_daily_bin353.fits outfile=/scratch/kocevski/30171/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin353.fits ra=353.869 dec=-1.476 rad=12.0 tmin=330825601.0 tmax=331084801.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.38
user 3.16
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/30171/ft1_filtered_4FGL_J2335.4-0128_daily_bin353.fits" evtable="EVENTS" scfile=/scratch/kocevski/30171/ft2_4FGL_J2335.4-0128_daily_bin353.fits sctable="SC_DATA" outfile=/scratch/kocevski/30171/ltcube_330825601_331084801_4FGL_J2335.4-0128_daily_bin353.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/30171/ft2_4FGL_J2335.4-0128_daily_bin353.fits
.....................!
real 11.62
user 11.20
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/30171/ft1_filtered_4FGL_J2335.4-0128_daily_bin353.fits evtable="EVENTS" scfile=/scratch/kocevski/30171/ft2_4FGL_J2335.4-0128_daily_bin353.fits sctable="SC_DATA" expcube=/scratch/kocevski/30171/ltcube_330825601_331084801_4FGL_J2335.4-0128_daily_bin353.fits outfile=/scratch/kocevski/30171/expmap_330825601_331084801_4FGL_J2335.4-0128_daily_bin353.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/30171/ltcube_330825601_331084801_4FGL_J2335.4-0128_daily_bin353.fits
.....................!
real 190.34
user 185.77
sys 4.21

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/30171/ft1_filtered_4FGL_J2335.4-0128_daily_bin353.fits scfile=/scratch/kocevski/30171/ft2_4FGL_J2335.4-0128_daily_bin353.fits outfile=/scratch/kocevski/30171/cmap_330825601_331084801_4FGL_J2335.4-0128_daily_bin353.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/30171/ft1_filtered_4FGL_J2335.4-0128_daily_bin353.fits scfile=/scratch/kocevski/30171/ft2_4FGL_J2335.4-0128_daily_bin353.fits outfile=/scratch/kocevski/30171/cmap_HighResolution_330825601_331084801_4FGL_J2335.4-0128_daily_bin353.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.0210       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.2645       1.0000         .10000E-03   10000.    
     8 'norm      '    14.837       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.373       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10413E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.7353       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.2026       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .43130       1.0000         .10000E-03   10000.    
    20 'Prefactor '    47.836       1.0000         .10000E-03   10000.    
    21 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    28.664       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.8499       1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.9987       1.0000         .10000E-03   10000.    
    25 'Prefactor '    18.038       1.0000         .10000E-03   10000.    
    26 'Prefactor '    16.975       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .65036       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0288       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=   5429.629     FROM MIGRAD    STATUS=CONVERGED    733 CALLS     3750 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.7322        .15947E-07** at limit **
   2  Prefactor     .10000E-03    11.700       -.20708E-05** at limit **
   3  Prefactor     .10000E-03    6.0624       -.60170E-07** at limit **
   4  Prefactor     .10000E-03    2.3030       -.28942E-07** at limit **
   5  norm          1.0205        1.5751       -.14600E-06   -.79017E-03
   6  Prefactor     .10000E-03    10.223        .13631E-05** at limit **
   7  norm          2.2659        2.8792       -.11616E-06   -.52242E-03
   8  norm          14.838        12.968       -.70344E-06   -.35848E-04
   9  Prefactor     .10000E-03    11.615        .27646E-05** at limit **
  10  Prefactor     15.375        16.705       -.23516E-06   -.19314E-04
  11  Prefactor     .10000E-03    135.72        .42763E-05** at limit **
  12  Prefactor     7.7256        8.2853       -.10004E-05   -.48157E-04
  13  norm          .10000E-03    .34060        .64934E-07** at limit **
  14  norm          1.2011        4.7878       -.91442E-06   -.93167E-03
  15  Prefactor     .10000E-03    16.957        .13465E-06** at limit **
  16  Prefactor     .10000E-03    41.763       -.65868E-05** at limit **
  17  norm          .10000E-03    5.1533        .22142E-06** at limit **
  18  Prefactor     .10000E-03    56.071        .69958E-05** at limit **
  19  Prefactor     .40272        9.3224        .97982E-06   -.67770E-03
  20  Prefactor     47.810        28.379       -.26623E-05   -.23461E-04
  21  norm          .10000E-03    10.292       -.20389E-05** at limit **
  22  Prefactor     28.656        40.677       -.51831E-05   -.45617E-05
  23  Prefactor     1.8506        2.7198       -.28803E-06   -.41290E-03
  24  Prefactor     7.0080        64.420        .15090E-04   -.16253E-04
  25  Prefactor     18.041        22.832       -.92197E-06   -.32952E-04
  26  Prefactor     16.976        14.737       -.22940E-06   -.34810E-04
  27  Prefactor     .10000E-03    3.3292       -.19506E-06** at limit **
  28  Normalizat    .65045        .19153       -.34587E-06   -.89481E-04
  29  Prefactor     1.0287        .13682        .39861E-06   -.14007E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.02048
  Prefactor  = 0.0001
  norm       = 2.26588
  norm       = 14.8382
  Prefactor  = 0.0001
  Prefactor  = 15.3747
  Prefactor  = 0.000100001
  Prefactor  = 7.7256
  norm       = 0.0001
  norm       = 1.20113
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.402721
  Prefactor  = 47.8096
  norm       = 0.0001
  Prefactor  = 28.6563
  Prefactor  = 1.8506
  Prefactor  = 7.00795
  Prefactor  = 18.0408
  Prefactor  = 16.9761
  Prefactor  = 0.0001
  Normalizat = 0.650447
  Prefactor  = 1.02868
 **********
 **   18 **HESSE 
 **********

 FCN=   5429.629     FROM HESSE     STATUS=OK           557 CALLS     4307 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.7465        .13902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.0910        .17714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.3088        .10892E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.0205        1.3659        .11174E-02   -1.5506    
   6  Prefactor     .10000E-03    10.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.2659        2.8666        .13576E-03   -1.5407    
   8  norm          14.838        12.983        .10398E-03   -1.4937    
   9  Prefactor     .10000E-03    11.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.375        16.710        .10215E-03   -1.4924    
  11  Prefactor     .10000E-03    137.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.7256        8.0924        .14418E-03   -1.5152    
  13  norm          .10000E-03    .35619        .83794E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.2011        5.1046        .30575E-03   -1.5489    
  15  Prefactor     .10000E-03    17.493        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    41.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.1939        .16330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    55.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .40272        49.529        .40537E-02   -1.5581    
  20  Prefactor     47.810        28.307        .57976E-04   -1.4324    
  21  norm          .10000E-03    10.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     28.656        40.254        .74831E-04   -1.4637    
  23  Prefactor     1.8506        2.6821        .13734E-03   -1.5436    
  24  Prefactor     7.0080        62.217        .15164E-03   -1.5178    
  25  Prefactor     18.041        22.840        .94304E-04   -1.4858    
  26  Prefactor     16.976        14.748        .97210E-04   -1.4884    
  27  Prefactor     .10000E-03    3.3478        .13126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .65045        .21645        .30240E-03   -1.0588    
  29  Prefactor     1.0287        .15699        .18658E-03   -.91779    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.26028e-09
Minuit parameter uncertainties:
  1  8.29909e-07
  2  6.84203e-07
  3  8.96653e-07
  4  1.72788e-06
  5  1.36595
  6  2.42423e-06
  7  2.86681
  8  12.985
  9  2.20031e-07
  10  16.7147
  11  0.000817154
  12  8.09356
  13  5.34461e-07
  14  4.95282
  15  8.72423e-05
  16  6.19016e-05
  17  1.7703e-05
  18  5.06349e-06
  19  8.93871
  20  28.3146
  21  2.04251e-05
  22  40.2921
  23  2.68227
  24  41.8196
  25  22.8506
  26  14.7513
  27  2.3173e-06
  28  0.216734
  29  0.157059
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  2.043e-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:  1.029e+00  1.571e-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.504e-01  2.167e-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.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.11e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/30171/likelihoodResults_330825601_331084801_4FGL_J2335.4-0128_daily_bin353.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) = 5429.62975422
delta logL = -0.00046454488529

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5429.62928967
delta logL = 4.4110493036e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5011       1.0000          .0000       5.0000    
     3 'Normalizat'    .65045       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0287       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=   5429.629     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      238 TOTAL
                     EDM=   .33E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    35.227        .18142E-02** at limit **
   2  alpha         2.1460        3.6721        .16461       -.27626E-08
   3  Normalizat    .65045        .20279        .30240E-03    .19249E-04
   4  Prefactor     1.0287        .15572        .18658E-03    .32721E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.14596
  Normalizat = 0.650448
  Prefactor  = 1.02868
 **********
 **   18 **HESSE 
 **********

 FCN=   5429.629     FROM HESSE     STATUS=OK            23 CALLS      261 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.546        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1460        2.9753        .65843E-02   -.14209    
   3  Normalizat    .65045        .20292        .12096E-04   -1.0588    
   4  Prefactor     1.0287        .15582        .37316E-04   -.91779    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31226e-12
Minuit parameter uncertainties:
  1  3.40298e-06
  2  661.105
  3  0.203153
  4  0.155886
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/30171': 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) = 5429.62928954
delta logL = 1.35196387419e-07

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  3.403e-06  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  2.146e+00  6.611e+02  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.029e+00  1.559e-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.504e-01  2.032e-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/30171/cmap_HighResolution_330825601_331084801_4FGL_J2335.4-0128_daily_bin353.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.11e-05', job_status='DONE', photon_flux_upper_limit='5.09e-08', time_completed='2021-09-30 00:23:17.762092', job_id='30171', GAL2='1.03', fit_tolerance='1e-08', EG2='0.65', EG='0.65', time_epoch_completed='1632986597.76', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.35e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='353' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:23:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 30171: <4FGL_J2335.4-0128_daily_bin353> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin353 353.869 -1.476 330825601 331084801 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 :                                   686.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             329.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   759 sec.
    Turnaround time :                            760 sec.

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

