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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin244
RA = 353.869, Dec = -1.476
tmin = 302572801, tmax = 302832001
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='30004', job_status='RUN', time_executed='2021-09-30 00:10:35.946620', time_epoch_executed='1632985835.95' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='244'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/30004

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/30004/ft1_4FGL_J2335.4-0128_daily_bin244.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/30004/ft2_4FGL_J2335.4-0128_daily_bin244.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/30004/ft1_4FGL_J2335.4-0128_daily_bin244.fits outfile=/scratch/kocevski/30004/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin244.fits ra=353.869 dec=-1.476 rad=12.0 tmin=302572801.0 tmax=302832001.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.48
user 3.27
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/30004/ft1_filtered_4FGL_J2335.4-0128_daily_bin244.fits" evtable="EVENTS" scfile=/scratch/kocevski/30004/ft2_4FGL_J2335.4-0128_daily_bin244.fits sctable="SC_DATA" outfile=/scratch/kocevski/30004/ltcube_302572801_302832001_4FGL_J2335.4-0128_daily_bin244.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/30004/ft2_4FGL_J2335.4-0128_daily_bin244.fits
.....................!
real 11.69
user 11.36
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/30004/ft1_filtered_4FGL_J2335.4-0128_daily_bin244.fits evtable="EVENTS" scfile=/scratch/kocevski/30004/ft2_4FGL_J2335.4-0128_daily_bin244.fits sctable="SC_DATA" expcube=/scratch/kocevski/30004/ltcube_302572801_302832001_4FGL_J2335.4-0128_daily_bin244.fits outfile=/scratch/kocevski/30004/expmap_302572801_302832001_4FGL_J2335.4-0128_daily_bin244.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/30004/ltcube_302572801_302832001_4FGL_J2335.4-0128_daily_bin244.fits
.....................!
real 190.95
user 185.41
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/30004/ft1_filtered_4FGL_J2335.4-0128_daily_bin244.fits scfile=/scratch/kocevski/30004/ft2_4FGL_J2335.4-0128_daily_bin244.fits outfile=/scratch/kocevski/30004/cmap_302572801_302832001_4FGL_J2335.4-0128_daily_bin244.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/30004/ft1_filtered_4FGL_J2335.4-0128_daily_bin244.fits scfile=/scratch/kocevski/30004/ft2_4FGL_J2335.4-0128_daily_bin244.fits outfile=/scratch/kocevski/30004/cmap_HighResolution_302572801_302832001_4FGL_J2335.4-0128_daily_bin244.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.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/30004/ft1_filtered_4FGL_J2335.4-0128_daily_bin244.fits evtable="EVENTS" scfile=/scratch/kocevski/30004/ft2_4FGL_J2335.4-0128_daily_bin244.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/30004/Model_4FGL_J2335.4-0128_daily_bin244.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/30004/ft1_filtered_4FGL_J2335.4-0128_daily_bin244.fits.....................!
real 50.96
user 49.68
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .15275E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    26.384       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .18693E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.3837       1.0000         .10000E-03   10000.    
    14 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .25984E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.8978       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12330E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.894       1.0000         .10000E-03   10000.    
    20 'Prefactor '    44.619       1.0000         .10000E-03   10000.    
    21 'norm      '    .10085E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    82.117       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .22046       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .16595E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.0551       1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.0089       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.0415       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2746       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .66195       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=   4761.638     FROM MIGRAD    STATUS=CONVERGED    736 CALLS     3772 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.9540        .44042E-08** at limit **
   2  Prefactor     .10000E-03    39.492       -.56889E-06** at limit **
   3  Prefactor     .10000E-03    29.114       -.86928E-06** at limit **
   4  Prefactor     .10000E-03    6.9205       -.59790E-07** at limit **
   5  norm          .10000E-03    1.0739        .12796E-07** at limit **
   6  Prefactor     .10000E-03    7.3276       -.20355E-06** at limit **
   7  norm          .10000E-03    2.3936       -.44989E-07** at limit **
   8  norm          26.391        16.260        .47382E-07   -.38193E-04
   9  Prefactor     .10000E-03    7.2124        .38386E-06** at limit **
  10  Prefactor     .10000E-03    9.9407        .29014E-06** at limit **
  11  Prefactor     .10000E-03    19.367       -.12833E-06** at limit **
  12  Prefactor     .10000E-03    4.9795       -.23072E-06** at limit **
  13  norm          4.3838        1.4421        .36576E-07    .45760E-05
  14  norm          .10000E-03    2.8702       -.17639E-06** at limit **
  15  Prefactor     .10000E-03    7.3751       -.18497E-05** at limit **
  16  Prefactor     .10000E-03    25.532        .13595E-05** at limit **
  17  norm          5.8935        7.3890        .29644E-05   -.20416E-03
  18  Prefactor     .10001E-03    148.72       -.63102E-05** at limit **
  19  Prefactor     10.867        15.097        .10916E-05    .99951E-04
  20  Prefactor     44.614        24.705       -.21450E-06    .80462E-04
  21  norm          .10000E-03    12.125        .28907E-06** at limit **
  22  Prefactor     82.032        70.321       -.96020E-05   -.40287E-03
  23  Prefactor     .25842        3.8462       -.14328E-06   -.20110E-03
  24  Prefactor     .10000E-03    126.23        .80763E-05** at limit **
  25  Prefactor     3.0636        27.293        .39064E-06   -.35832E-04
  26  Prefactor     3.0109        24.582        .14430E-04   -.23066E-03
  27  Prefactor     2.0425        5.6966        .10813E-05    .11093E-04
  28  Normalizat    1.2741        .21701        .20977E-06   -.40219E-04
  29  Prefactor     .66217        .14855       -.16272E-05    .11450E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 26.3907
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.38379
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 5.89352
  Prefactor  = 0.000100008
  Prefactor  = 10.8671
  Prefactor  = 44.6143
  norm       = 0.0001
  Prefactor  = 82.0316
  Prefactor  = 0.258421
  Prefactor  = 0.000100004
  Prefactor  = 3.06362
  Prefactor  = 3.01092
  Prefactor  = 2.04253
  Normalizat = 1.27413
  Prefactor  = 0.662167
 **********
 **   18 **HESSE 
 **********

 FCN=   4761.638     FROM HESSE     STATUS=OK           551 CALLS     4323 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.9594        .13400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    39.555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    29.574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.0960        .35314E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.0840        .69794E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.3365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    10.658        .20516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          26.391        16.271        .77990E-04   -1.4680    
   9  Prefactor     .10000E-03    7.2168        .18103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    39.822        .42141E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    19.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.0046        .15034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.3838        1.4398        .44715E-04   -1.5289    
  14  norm          .10000E-03    2.8854        .11413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    21.918        .35217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    25.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.8935        7.3847        .82679E-03   -1.5222    
  18  Prefactor     .10001E-03    149.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.867        15.125        .12139E-03   -1.5049    
  20  Prefactor     44.614        24.629        .60021E-04   -1.4371    
  21  norm          .10000E-03    12.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     82.032        74.583        .22162E-03   -1.3894    
  23  Prefactor     .25842        28.567        .22698E-02   -1.5606    
  24  Prefactor     .10000E-03    129.90        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.0636        27.298        .23210E-03   -1.5358    
  26  Prefactor     3.0109        26.129        .11699E-02   -1.5361    
  27  Prefactor     2.0425        5.6805        .26603E-03   -1.5422    
  28  Normalizat    1.2741        .25137        .24313E-03   -.84342    
  29  Prefactor     .66217        .17085        .23303E-03   -1.0503    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43006e-09
Minuit parameter uncertainties:
  1  6.23724e-07
  2  0.000118488
  3  0.000222537
  4  1.55393e-05
  5  2.81444e-06
  6  1.77624e-05
  7  3.73434e-05
  8  16.2737
  9  2.65287e-05
  10  2.15629e-06
  11  2.54603e-05
  12  2.63288e-05
  13  1.43982
  14  1.52791e-05
  15  0.000659849
  16  0.000157156
  17  7.38585
  18  0.00215927
  19  15.1303
  20  24.6342
  21  1.09253e-05
  22  74.668
  23  5.43565
  24  0.00137822
  25  18.3009
  26  17.7497
  27  5.68201
  28  0.251612
  29  0.170987
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  1.093e-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:  6.622e-01  1.710e-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.274e+00  2.516e-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.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.67e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/30004/likelihoodResults_302572801_302832001_4FGL_J2335.4-0128_daily_bin244.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) = 4761.63804785
delta logL = -0.000392370304326

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4761.63765588
delta logL = -4.02552359446e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4994       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2743       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66202       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=   4761.638     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      231 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    98.096        .18142E-02** at limit **
   2  alpha         2.0681        3.0582        .16461       -.14089E-07
   3  Normalizat    1.2741        .23606        .24313E-03   -.11844E-03
   4  Prefactor     .66217        .16941        .23303E-03    .46347E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.06813
  Normalizat = 1.27413
  Prefactor  = 0.662167
 **********
 **   18 **HESSE 
 **********

 FCN=   4761.638     FROM HESSE     STATUS=OK            23 CALLS      254 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.738        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0681        3.4469        .65843E-02   -.17362    
   3  Normalizat    1.2741        .23624        .48626E-04   -.84342    
   4  Prefactor     .66217        .16954        .93213E-05   -1.0503    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06786e-10
Minuit parameter uncertainties:
  1  0.000103061
  2  674.134
  3  0.236439
  4  0.169668
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/30004': 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) = 4761.63765528
delta logL = 1.97813278646e-07

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  1.031e-04  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  2.068e+00  6.741e+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:  6.622e-01  1.697e-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.274e+00  2.364e-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/30004/cmap_HighResolution_302572801_302832001_4FGL_J2335.4-0128_daily_bin244.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.67e-05', job_status='DONE', photon_flux_upper_limit='6.43e-08', time_completed='2021-09-30 00:21:51.801567', job_id='30004', GAL2='0.66', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1632986511.8', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='1.98e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='244' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:21:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 30004: <4FGL_J2335.4-0128_daily_bin244> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin244> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 00:10:24 2021
Job was executed on host(s) <bullet0274>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:10:26 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:26 2021
Terminated at Thu Sep 30 00:21:52 2021
Results reported at Thu Sep 30 00:21:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin244 353.869 -1.476 302572801 302832001 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 :                                   673.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             337.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   686 sec.
    Turnaround time :                            688 sec.

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

