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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin1263
RA = 353.869, Dec = -1.476
tmin = 566697601, tmax = 566956801
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='34526', job_status='RUN', time_executed='2021-09-30 00:25:52.051923', time_epoch_executed='1632986752.05' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='1263'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34526

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34526/ft1_4FGL_J2335.4-0128_daily_bin1263.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34526/ft2_4FGL_J2335.4-0128_daily_bin1263.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34526/ft1_4FGL_J2335.4-0128_daily_bin1263.fits outfile=/scratch/kocevski/34526/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin1263.fits ra=353.869 dec=-1.476 rad=12.0 tmin=566697601.0 tmax=566956801.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 1.98
user 1.77
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/34526/ft2_4FGL_J2335.4-0128_daily_bin1263.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/34526/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin1263.fits evtable="EVENTS" outfile="/scratch/kocevski/34526/ft1_filtered_4FGL_J2335.4-0128_daily_bin1263.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/34526/ft1_filtered_4FGL_J2335.4-0128_daily_bin1263.fits" evtable="EVENTS" scfile=/scratch/kocevski/34526/ft2_4FGL_J2335.4-0128_daily_bin1263.fits sctable="SC_DATA" outfile=/scratch/kocevski/34526/ltcube_566697601_566956801_4FGL_J2335.4-0128_daily_bin1263.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/34526/ft2_4FGL_J2335.4-0128_daily_bin1263.fits
.....................!
real 12.29
user 11.96
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34526/ft1_filtered_4FGL_J2335.4-0128_daily_bin1263.fits evtable="EVENTS" scfile=/scratch/kocevski/34526/ft2_4FGL_J2335.4-0128_daily_bin1263.fits sctable="SC_DATA" expcube=/scratch/kocevski/34526/ltcube_566697601_566956801_4FGL_J2335.4-0128_daily_bin1263.fits outfile=/scratch/kocevski/34526/expmap_566697601_566956801_4FGL_J2335.4-0128_daily_bin1263.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/34526/ltcube_566697601_566956801_4FGL_J2335.4-0128_daily_bin1263.fits
.....................!
real 191.34
user 185.97
sys 5.00

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 162 point sources and 0 extended sources

Setting source of interest to:
4FGL J2335.4-0128 @ 353.869 -1.476

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/34526/ft1_filtered_4FGL_J2335.4-0128_daily_bin1263.fits scfile=/scratch/kocevski/34526/ft2_4FGL_J2335.4-0128_daily_bin1263.fits outfile=/scratch/kocevski/34526/cmap_566697601_566956801_4FGL_J2335.4-0128_daily_bin1263.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.39
sys 0.12

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/34526/ft1_filtered_4FGL_J2335.4-0128_daily_bin1263.fits evtable="EVENTS" scfile=/scratch/kocevski/34526/ft2_4FGL_J2335.4-0128_daily_bin1263.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/34526/Model_4FGL_J2335.4-0128_daily_bin1263.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/34526/ft1_filtered_4FGL_J2335.4-0128_daily_bin1263.fits.....................!
real 79.60
user 78.18
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.961       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10333E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.1208       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.3582       1.0000         .10000E-03   10000.    
     5 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .27024E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .50583       1.0000         .10000E-03   10000.    
    14 'norm      '    .10094E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.275       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.5469       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13919E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11159E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .21564E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.9078       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.5184       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.1172       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    14.946       1.0000         .10000E-03   10000.    
    27 'Prefactor '    6.1496       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .43377       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0824       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=   9013.299     FROM MIGRAD    STATUS=CONVERGED    739 CALLS     3239 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.960        7.2894        .37834E-07    .34464E-04
   2  Prefactor     .10000E-03    9.7641       -.67362E-06** at limit **
   3  Prefactor     9.1194        9.3782        .24741E-06    .25294E-05
   4  Prefactor     3.3582        2.4182        .17635E-07    .38630E-04
   5  norm          .10000E-03    1.0500        .34775E-07** at limit **
   6  Prefactor     .10000E-03    3.6011        .11962E-07** at limit **
   7  norm          .10000E-03    .58363        .94896E-08** at limit **
   8  norm          .10000E-03    5.1884        .68088E-07** at limit **
   9  Prefactor     .10000E-03    14.158       -.12368E-06** at limit **
  10  Prefactor     .10001E-03    4.6018       -.38036E-06** at limit **
  11  Prefactor     .10000E-03    14.083       -.19978E-07** at limit **
  12  Prefactor     .10000E-03    1.8739        .88610E-07** at limit **
  13  norm          .50619        .57225        .18663E-07    .16147E-03
  14  norm          .10009E-03    1.5992        .43038E-07** at limit **
  15  Prefactor     16.285        8.9403        .32896E-07    .99504E-04
  16  Prefactor     .10000E-03    11.502       -.54146E-07** at limit **
  17  norm          3.5466        7.9690        .46344E-06   -.52897E-04
  18  Prefactor     .10000E-03    87.517        .16631E-05** at limit **
  19  Prefactor     .10000E-03    7.8246        .26031E-07** at limit **
  20  Prefactor     .10000E-03    7.4241       -.46279E-06** at limit **
  21  norm          .10026E-03    7.8880       -.33406E-05** at limit **
  22  Prefactor     4.9456        57.211        .10479E-04    .15932E-03
  23  Prefactor     5.5156        2.8496        .12593E-05    .42080E-03
  24  Prefactor     2.0473        64.170       -.17194E-05   -.26137E-04
  25  Prefactor     .10000E-03    12.260        .47913E-06** at limit **
  26  Prefactor     14.937        10.159       -.19822E-06   -.53087E-04
  27  Prefactor     6.1547        4.4012        .18306E-06    .37871E-04
  28  Normalizat    .43362        .14655       -.16484E-05    .24041E-03
  29  Prefactor     1.0824        .10576        .25442E-06    .37521E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.9596
  Prefactor  = 0.0001
  Prefactor  = 9.11945
  Prefactor  = 3.35821
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.506192
  norm       = 0.000100087
  Prefactor  = 16.2848
  Prefactor  = 0.0001
  norm       = 3.54659
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100263
  Prefactor  = 4.94565
  Prefactor  = 5.51557
  Prefactor  = 2.04725
  Prefactor  = 0.0001
  Prefactor  = 14.9371
  Prefactor  = 6.15472
  Normalizat = 0.433624
  Prefactor  = 1.0824
 **********
 **   18 **HESSE 
 **********

 FCN=   9013.299     FROM HESSE     STATUS=OK           565 CALLS     3804 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.960        7.2789        .10355E-03   -1.4934    
   2  Prefactor     .10000E-03    9.7929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.1194        9.0781        .13271E-03   -1.5104    
   4  Prefactor     3.3582        2.4178        .12151E-03   -1.5341    
   5  norm          .10000E-03    2.1630        .18000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.6203        .17592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .59035        .70787E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.2891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    14.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    22.417        .39153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.8838        .12681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .50619        .54122        .71268E-03   -1.5566    
  14  norm          .10009E-03    2.5283        .42333E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.285        8.8484        .99280E-04   -1.4901    
  16  Prefactor     .10000E-03    11.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.5466        7.8712        .21462E-03   -1.5331    
  18  Prefactor     .10000E-03    87.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.0725        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.4519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10026E-03    43.170        .46102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.9456        63.714        .18156E-03   -1.5263    
  23  Prefactor     5.5156        2.9803        .56517E-03   -1.5238    
  24  Prefactor     2.0473        64.294        .28347E-03   -1.5422    
  25  Prefactor     .10000E-03    12.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     14.937        10.158        .10360E-03   -1.4935    
  27  Prefactor     6.1547        4.3916        .16027E-03   -1.5212    
  28  Normalizat    .43362        .15919        .32838E-03   -1.1560    
  29  Prefactor     1.0824        .11874        .16991E-03   -.90031    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.40311e-09
Minuit parameter uncertainties:
  1  7.2793
  2  7.12344e-05
  3  9.07943
  4  2.41785
  5  1.60845e-05
  6  1.9522e-06
  7  6.25651e-07
  8  1.04265e-05
  9  7.42278e-06
  10  0.00111372
  11  2.79088e-05
  12  4.19431e-06
  13  0.541223
  14  0.000939844
  15  8.84914
  16  4.80817e-06
  17  7.87347
  18  0.00049421
  19  2.58497e-05
  20  3.4053e-05
  21  0.00674753
  22  35.5488
  23  2.98039
  24  22.9721
  25  9.33259e-05
  26  10.159
  27  4.39179
  28  0.159352
  29  0.118768
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.003e-04  6.748e-03  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.082e+00  1.188e-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:  4.336e-01  1.594e-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: 3.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.41e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/34526/likelihoodResults_566697601_566956801_4FGL_J2335.4-0128_daily_bin1263.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) = 9013.2988529
delta logL = -0.000108537651613

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9013.20208585
delta logL = 0.0966585212464

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .84392       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.9103       1.0000          .0000       5.0000    
     3 'Normalizat'    .42180       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0861       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9013.202     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      311 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .84509        3.8404        .19522E-03   -.12534E-02
   2  alpha         3.9097        3.7764        .22745E-02   -.45145E-04
   3  Normalizat    .42181        .15036        .33270E-03   -.68943E-03
   4  Prefactor     1.0861        .11838        .16959E-03   -.14520E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.845088
  alpha      = 3.90968
  Normalizat = 0.421812
  Prefactor  = 1.08605
 **********
 **   18 **HESSE 
 **********

 FCN=   9013.202     FROM HESSE     STATUS=OK            23 CALLS      334 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .84509        3.3473        .78089E-05   -1.5524    
   2  alpha         3.9097        1.7351        .90979E-04    .59907    
   3  Normalizat    .42181        .15042        .13308E-04   -1.1619    
   4  Prefactor     1.0861        .11841        .33918E-04   -.89914    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25474e-09
Minuit parameter uncertainties:
  1  3.34804
  2  2.06044
  3  0.150568
  4  0.118435
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34526': 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) = 9013.20208577
delta logL = 0.0966585983006

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  1.086e+00  1.184e-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:  4.218e-01  1.506e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/34526/cmap_HighResolution_566697601_566956801_4FGL_J2335.4-0128_daily_bin1263.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.41e-05', job_status='DONE', photon_flux_upper_limit='3.41e-08', time_completed='2021-09-30 00:41:18.939356', job_id='34526', GAL2='1.09', fit_tolerance='1e-08', EG2='0.42', EG='0.43', time_epoch_completed='1632987678.94', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='9.67e-02', ts2='0.20', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='1263' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:41:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 34526: <4FGL_J2335.4-0128_daily_bin1263> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin1263> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 00:25:34 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:25:36 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:25:36 2021
Terminated at Thu Sep 30 00:41:19 2021
Results reported at Thu Sep 30 00:41:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin1263 353.869 -1.476 566697601 566956801 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 :                                   922.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             344.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            945 sec.

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

