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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin460
RA = 353.869, Dec = -1.476
tmin = 358560001, tmax = 358819201
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='31319', job_status='RUN', time_executed='2021-09-30 00:17:54.177148', time_epoch_executed='1632986274.18' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='460'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31319

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31319/ft1_4FGL_J2335.4-0128_daily_bin460.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31319/ft2_4FGL_J2335.4-0128_daily_bin460.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31319/ft1_4FGL_J2335.4-0128_daily_bin460.fits outfile=/scratch/kocevski/31319/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin460.fits ra=353.869 dec=-1.476 rad=12.0 tmin=358560001.0 tmax=358819201.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.24
user 5.01
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/31319/ft1_filtered_4FGL_J2335.4-0128_daily_bin460.fits" evtable="EVENTS" scfile=/scratch/kocevski/31319/ft2_4FGL_J2335.4-0128_daily_bin460.fits sctable="SC_DATA" outfile=/scratch/kocevski/31319/ltcube_358560001_358819201_4FGL_J2335.4-0128_daily_bin460.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/31319/ft2_4FGL_J2335.4-0128_daily_bin460.fits
.....................!
real 11.96
user 11.58
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31319/ft1_filtered_4FGL_J2335.4-0128_daily_bin460.fits evtable="EVENTS" scfile=/scratch/kocevski/31319/ft2_4FGL_J2335.4-0128_daily_bin460.fits sctable="SC_DATA" expcube=/scratch/kocevski/31319/ltcube_358560001_358819201_4FGL_J2335.4-0128_daily_bin460.fits outfile=/scratch/kocevski/31319/expmap_358560001_358819201_4FGL_J2335.4-0128_daily_bin460.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/31319/ltcube_358560001_358819201_4FGL_J2335.4-0128_daily_bin460.fits
.....................!
real 190.76
user 185.23
sys 5.22

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/31319/ft1_filtered_4FGL_J2335.4-0128_daily_bin460.fits scfile=/scratch/kocevski/31319/ft2_4FGL_J2335.4-0128_daily_bin460.fits outfile=/scratch/kocevski/31319/cmap_358560001_358819201_4FGL_J2335.4-0128_daily_bin460.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/31319/ft1_filtered_4FGL_J2335.4-0128_daily_bin460.fits scfile=/scratch/kocevski/31319/ft2_4FGL_J2335.4-0128_daily_bin460.fits outfile=/scratch/kocevski/31319/cmap_HighResolution_358560001_358819201_4FGL_J2335.4-0128_daily_bin460.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/31319/ft1_filtered_4FGL_J2335.4-0128_daily_bin460.fits evtable="EVENTS" scfile=/scratch/kocevski/31319/ft2_4FGL_J2335.4-0128_daily_bin460.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/31319/Model_4FGL_J2335.4-0128_daily_bin460.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/31319/ft1_filtered_4FGL_J2335.4-0128_daily_bin460.fits.....................!
real 59.05
user 57.73
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.6850       1.0000         .10000E-03   10000.    
     2 'Prefactor '    31.484       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10402E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    22.784       1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.171       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .63598       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    77.945       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.4678       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.6369       1.0000         .10000E-03   10000.    
    21 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.4120       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    38.440       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .18105E-02   1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.2797       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3884       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .82513       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=   5652.019     FROM MIGRAD    STATUS=CONVERGED    708 CALLS     3735 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6760        12.138        .38069E-05    .78697E-04
   2  Prefactor     31.621        66.569       -.24228E-04   -.49722E-04
   3  Prefactor     .10000E-03    3.5962       -.35149E-07** at limit **
   4  Prefactor     .10000E-03    3.8018        .10880E-05** at limit **
   5  norm          .10000E-03    1.0622       -.62137E-07** at limit **
   6  Prefactor     .10000E-03    15.055        .30308E-05** at limit **
   7  norm          .10000E-03    2.0624        .67766E-06** at limit **
   8  norm          22.787        21.096       -.94514E-07    .18469E-04
   9  Prefactor     27.169        31.678        .26069E-06    .11041E-04
  10  Prefactor     .10000E-03    15.725       -.20468E-05** at limit **
  11  Prefactor     .10000E-03    23.250       -.57825E-06** at limit **
  12  Prefactor     .10000E-03    2.5095       -.82800E-07** at limit **
  13  norm          .63595        .78458        .28582E-07    .11470E-03
  14  norm          .10000E-03    1.4342       -.52649E-07** at limit **
  15  Prefactor     .10000E-03    5.3760       -.11639E-06** at limit **
  16  Prefactor     .10000E-03    39.581        .56603E-06** at limit **
  17  norm          .10000E-03    2.9932       -.67981E-07** at limit **
  18  Prefactor     77.925        112.20        .15695E-05    .26078E-05
  19  Prefactor     1.4704        24.574        .12880E-04   -.12456E-03
  20  Prefactor     3.6411        39.198       -.10555E-05   -.80137E-06
  21  norm          .10000E-03    24.141        .24400E-05** at limit **
  22  Prefactor     .10000E-03    55.737       -.12291E-05** at limit **
  23  Prefactor     5.4114        4.7189       -.53048E-06    .36520E-04
  24  Prefactor     .10000E-03    44.656       -.13648E-05** at limit **
  25  Prefactor     38.438        26.203        .90001E-07    .29362E-04
  26  Prefactor     .10007E-03    8.5153       -.18670E-05** at limit **
  27  Prefactor     1.2836        15.096       -.44830E-06   -.22553E-04
  28  Normalizat    1.3883        .22189       -.12570E-05    .14502E-03
  29  Prefactor     .82517        .15377        .19492E-05    .11421E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.676
  Prefactor  = 31.6213
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 22.7873
  Prefactor  = 27.169
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.635953
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 77.9247
  Prefactor  = 1.47038
  Prefactor  = 3.64106
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.41139
  Prefactor  = 0.0001
  Prefactor  = 38.4384
  Prefactor  = 0.000100072
  Prefactor  = 1.28357
  Normalizat = 1.38827
  Prefactor  = 0.825172
 **********
 **   18 **HESSE 
 **********

 FCN=   5652.019     FROM HESSE     STATUS=OK           549 CALLS     4284 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6760        12.064        .15520E-03   -1.5191    
   2  Prefactor     31.621        66.816        .71409E-04   -1.4583    
   3  Prefactor     .10000E-03    3.5978        .13924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.8469        .14330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.0831        .75637E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.0932        .10549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          22.787        21.143        .83916E-04   -1.4753    
   9  Prefactor     27.169        31.677        .76854E-04   -1.4665    
  10  Prefactor     .10000E-03    15.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    23.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.5121        .11631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .63595        .74519        .70713E-03   -1.5548    
  14  norm          .10000E-03    1.4361        .87924E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.4029        .17020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    39.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.0014        .12701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     77.925        112.15        .22743E-03   -1.3940    
  19  Prefactor     1.4704        25.339        .17741E-02   -1.5465    
  20  Prefactor     3.6411        39.034        .21184E-03   -1.5326    
  21  norm          .10000E-03    24.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    55.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.4114        4.7459        .13545E-03   -1.5243    
  24  Prefactor     .10000E-03    44.887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     38.438        26.205        .64646E-04   -1.4467    
  26  Prefactor     .10007E-03    38.052        .41775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.2836        15.079        .39245E-03   -1.5481    
  28  Normalizat    1.3883        .25873        .25762E-03   -.80968    
  29  Prefactor     .82517        .17971        .23427E-03   -.98807    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31494e-09
Minuit parameter uncertainties:
  1  12.0679
  2  66.975
  3  1.10394e-06
  4  6.84076e-05
  5  9.61093e-07
  6  0.000209439
  7  3.2075e-05
  8  21.1499
  9  31.6967
  10  4.61297e-05
  11  2.80724e-05
  12  3.53717e-06
  13  0.745197
  14  2.49198e-06
  15  9.97937e-06
  16  5.71972e-05
  17  3.02696e-06
  18  112.461
  19  12.2135
  20  23.8627
  21  0.00010245
  22  8.39147e-05
  23  4.7462
  24  0.000118541
  25  26.2124
  26  0.00330981
  27  8.80122
  28  0.258974
  29  0.179842
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  1.024e-04  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.252e-01  1.798e-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.388e+00  2.590e-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: 7.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.97e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/31319/likelihoodResults_358560001_358819201_4FGL_J2335.4-0128_daily_bin460.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5652.01931976
delta logL = -0.000196759920982

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5652.01912471
delta logL = -1.71086503542e-06

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     '    3.6937       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3883       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82517       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5652.019     FROM MIGRAD    STATUS=FAILED        98 CALLS      283 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11497E-03    394.33        .32321E-02** at limit **
   2  alpha         3.2523        3.4030        .50000        .41344E-05
   3  Normalizat    1.3883        .21955E-01    .25762E-03   -.10008E-03
   4  Prefactor     .82517        .15948E-01    .23427E-03   -.59932E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5652.019     FROM SIMPLEX   STATUS=UNCHANGED    125 CALLS      408 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11497E-03    394.33        .79633E-03** at limit **
   2  alpha         3.2523        3.4030        .83200E-04    .41344E-05
   3  Normalizat    1.3883        .21955E-01    .14372E-05   -.10008E-03
   4  Prefactor     .82517        .15948E-01    .72612E-06   -.59932E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5652.019     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      455 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    287.96        .64643E-02** at limit **
   2  alpha         2.9655        2.8355        .50000        .41109E-07
   3  Normalizat    1.3883        .17746E-01    .51524E-04    .24223E-03
   4  Prefactor     .82517        .12890E-01    .93709E-05    .30403E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 2.9655
  Normalizat = 1.38827
  Prefactor  = 0.825173
 **********
 **   18 **HESSE 
 **********

 FCN=   5652.019     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      484 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1359.6        .12929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.9655        2.6242        .50000        .18729    
   3  Normalizat    1.3883        .41067E-01    .10305E-04   -.80969    
   4  Prefactor     .82517        .29835E-01    .18742E-05   -.98807    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.65629e-11
Minuit parameter uncertainties:
  1  0.00237671
  2  2910.34
  3  0.0410681
  4  0.0298357
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31319': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5652.01912274
delta logL = 2.60049091594e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  8.252e-01  2.984e-02  0.000e+00  1.000e+01 ( 1.000e+00)
531        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
532        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
529   Normalization:  1.388e+00  4.107e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 353.869 -1.476

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/31319/cmap_HighResolution_358560001_358819201_4FGL_J2335.4-0128_daily_bin460.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.97e-05', job_status='DONE', photon_flux_upper_limit='7.15e-08', time_completed='2021-09-30 00:30:26.139297', job_id='31319', GAL2='0.83', fit_tolerance='1e-08', EG2='1.39', EG='1.39', time_epoch_completed='1632987026.14', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='2.60e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='460' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:30:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 31319: <4FGL_J2335.4-0128_daily_bin460> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin460 353.869 -1.476 358560001 358819201 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 :                                   750.07 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             287.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            903 sec.

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

