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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin399
RA = 353.869, Dec = -1.476
tmin = 342748801, tmax = 343008001
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='30240', job_status='RUN', time_executed='2021-09-30 00:13:34.962086', time_epoch_executed='1632986014.96' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='399'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/30240

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/30240/ft1_4FGL_J2335.4-0128_daily_bin399.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/30240/ft2_4FGL_J2335.4-0128_daily_bin399.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/30240/ft1_4FGL_J2335.4-0128_daily_bin399.fits outfile=/scratch/kocevski/30240/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin399.fits ra=353.869 dec=-1.476 rad=12.0 tmin=342748801.0 tmax=343008001.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.52
user 3.30
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/30240/ft2_4FGL_J2335.4-0128_daily_bin399.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/30240/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin399.fits evtable="EVENTS" outfile="/scratch/kocevski/30240/ft1_filtered_4FGL_J2335.4-0128_daily_bin399.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/30240/ft1_filtered_4FGL_J2335.4-0128_daily_bin399.fits" evtable="EVENTS" scfile=/scratch/kocevski/30240/ft2_4FGL_J2335.4-0128_daily_bin399.fits sctable="SC_DATA" outfile=/scratch/kocevski/30240/ltcube_342748801_343008001_4FGL_J2335.4-0128_daily_bin399.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/30240/ft2_4FGL_J2335.4-0128_daily_bin399.fits
.....................!
real 11.64
user 11.28
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/30240/ft1_filtered_4FGL_J2335.4-0128_daily_bin399.fits evtable="EVENTS" scfile=/scratch/kocevski/30240/ft2_4FGL_J2335.4-0128_daily_bin399.fits sctable="SC_DATA" expcube=/scratch/kocevski/30240/ltcube_342748801_343008001_4FGL_J2335.4-0128_daily_bin399.fits outfile=/scratch/kocevski/30240/expmap_342748801_343008001_4FGL_J2335.4-0128_daily_bin399.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/30240/ltcube_342748801_343008001_4FGL_J2335.4-0128_daily_bin399.fits
.....................!
real 191.45
user 186.62
sys 4.48

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/30240/ft1_filtered_4FGL_J2335.4-0128_daily_bin399.fits scfile=/scratch/kocevski/30240/ft2_4FGL_J2335.4-0128_daily_bin399.fits outfile=/scratch/kocevski/30240/cmap_342748801_343008001_4FGL_J2335.4-0128_daily_bin399.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/30240/ft1_filtered_4FGL_J2335.4-0128_daily_bin399.fits scfile=/scratch/kocevski/30240/ft2_4FGL_J2335.4-0128_daily_bin399.fits outfile=/scratch/kocevski/30240/cmap_HighResolution_342748801_343008001_4FGL_J2335.4-0128_daily_bin399.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/30240/ft1_filtered_4FGL_J2335.4-0128_daily_bin399.fits evtable="EVENTS" scfile=/scratch/kocevski/30240/ft2_4FGL_J2335.4-0128_daily_bin399.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/30240/Model_4FGL_J2335.4-0128_daily_bin399.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/30240/ft1_filtered_4FGL_J2335.4-0128_daily_bin399.fits.....................!
real 56.55
user 55.11
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.873       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.1767       1.0000         .10000E-03   10000.    
     5 'norm      '    2.7596       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.6126       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.937       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14429E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.2175       1.0000         .10000E-03   10000.    
    14 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    44.702       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    27.525       1.0000         .10000E-03   10000.    
    21 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.908       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    15.563       1.0000         .10000E-03   10000.    
    26 'Prefactor '    17.950       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .91918       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .82787       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=   5480.477     FROM MIGRAD    STATUS=CONVERGED    726 CALLS     3725 TOTAL
                     EDM=   .34E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.9903        .40792E-06** at limit **
   2  Prefactor     .10000E-03    26.902       -.88477E-05** at limit **
   3  Prefactor     14.870        15.971       -.10112E-05   -.16497E-05
   4  Prefactor     7.1760        7.0404       -.64421E-06   -.14738E-03
   5  norm          2.7590        3.0936        .53755E-07   -.31337E-03
   6  Prefactor     .10000E-03    16.715        .26849E-05** at limit **
   7  norm          .10000E-03    2.1056        .45786E-07** at limit **
   8  norm          .10000E-03    4.4365        .31801E-06** at limit **
   9  Prefactor     6.4867        44.258       -.55679E-05   -.11886E-04
  10  Prefactor     15.936        19.875       -.25315E-06   -.12600E-04
  11  Prefactor     .10000E-03    97.099        .46260E-05** at limit **
  12  Prefactor     .10000E-03    5.4764        .18030E-06** at limit **
  13  norm          4.2169        1.4705       -.22713E-06   -.46615E-04
  14  norm          .10000E-03    3.2164        .60780E-08** at limit **
  15  Prefactor     .10000E-03    4.2946       -.33873E-06** at limit **
  16  Prefactor     .10000E-03    23.353        .80230E-05** at limit **
  17  norm          .10000E-03    2.9362       -.18820E-07** at limit **
  18  Prefactor     44.732        259.99        .41785E-04    .18359E-06
  19  Prefactor     .10000E-03    8.0493       -.73061E-06** at limit **
  20  Prefactor     27.530        27.689        .29429E-06    .60143E-05
  21  norm          .10000E-03    9.6446        .83345E-07** at limit **
  22  Prefactor     .10000E-03    23.126        .74902E-05** at limit **
  23  Prefactor     12.904        6.9161       -.76320E-06   -.70362E-04
  24  Prefactor     .10000E-03    19.785       -.10634E-04** at limit **
  25  Prefactor     15.518        29.858        .26932E-05    .12676E-04
  26  Prefactor     17.944        18.292       -.46558E-06    .26159E-05
  27  Prefactor     .10000E-03    5.1156       -.41676E-06** at limit **
  28  Normalizat    .91956        .21043        .10152E-05   -.31222E-04
  29  Prefactor     .82766        .14309       -.41797E-06    .41355E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.8698
  Prefactor  = 7.17602
  norm       = 2.75901
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.48673
  Prefactor  = 15.9356
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.2169
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 44.7316
  Prefactor  = 0.0001
  Prefactor  = 27.5303
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.9038
  Prefactor  = 0.0001
  Prefactor  = 15.5179
  Prefactor  = 17.9439
  Prefactor  = 0.0001
  Normalizat = 0.919564
  Prefactor  = 0.827656
 **********
 **   18 **HESSE 
 **********

 FCN=   5480.477     FROM HESSE     STATUS=OK           547 CALLS     4272 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.0488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    26.874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.870        15.942        .10385E-03   -1.4937    
   4  Prefactor     7.1760        7.0288        .14973E-03   -1.5172    
   5  norm          2.7590        3.0786        .12714E-03   -1.5376    
   6  Prefactor     .10000E-03    16.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.1144        .10460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.4465        .15227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.4867        44.370        .15605E-03   -1.5199    
  10  Prefactor     15.936        19.881        .10033E-03   -1.4909    
  11  Prefactor     .10000E-03    97.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.5133        .16913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.2169        1.4715        .48409E-04   -1.5297    
  14  norm          .10000E-03    3.2784        .12961E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.3051        .14980E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    23.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.9404        .12387E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     44.732        260.52        .59965E-04   -1.4369    
  19  Prefactor     .10000E-03    8.0712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     27.530        27.711        .76361E-04   -1.4658    
  21  norm          .10000E-03    9.6489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    23.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     12.904        6.9551        .11149E-03   -1.4989    
  24  Prefactor     .10000E-03    19.805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     15.518        29.883        .10153E-03   -1.4920    
  26  Prefactor     17.944        18.297        .94534E-04   -1.4861    
  27  Prefactor     .10000E-03    5.1765        .16347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .91956        .24144        .28072E-03   -.95776    
  29  Prefactor     .82766        .16454        .21196E-03   -.98717    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.11087e-11
Minuit parameter uncertainties:
  1  1.01365e-06
  2  1.79121e-05
  3  15.9468
  4  7.02964
  5  3.07875
  6  1.71539e-05
  7  7.33755e-06
  8  3.93614e-08
  9  33.966
  10  19.8895
  11  9.17136e-05
  12  4.42548e-06
  13  1.47151
  14  1.99339e-06
  15  6.78465e-07
  16  2.24812e-06
  17  1.31975e-06
  18  217.35
  19  1.12297e-05
  20  27.7242
  21  5.90199e-06
  22  4.50122e-06
  23  6.95558
  24  1.20436e-05
  25  29.9117
  26  18.3025
  27  9.99205e-07
  28  0.241722
  29  0.164641
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  5.902e-06  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.277e-01  1.646e-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:  9.196e-01  2.417e-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.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.37e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/30240/likelihoodResults_342748801_343008001_4FGL_J2335.4-0128_daily_bin399.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) = 5480.47712937
delta logL = -0.000493308138175

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5480.47663622
delta logL = -1.59098817676e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5055       1.0000          .0000       5.0000    
     3 'Normalizat'    .91944       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82774       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5330E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5480.477     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      192 TOTAL
                     EDM=   .73E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.7302        .90712E-02** at limit **
   2  alpha         2.5061        3.5576        .41152       -.34287E-06
   3  Normalizat    .91957        .19370        .45150E-01    .68596E-04
   4  Prefactor     .82766        .14031        .44077E-01    .71670E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.50609
  Normalizat = 0.919566
  Prefactor  = 0.827655
 **********
 **   18 **HESSE 
 **********

 FCN=   5480.477     FROM HESSE     STATUS=OK            33 CALLS      225 TOTAL
                     EDM=   .47E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.6245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5061        3.5537        .50000        .24361E-02
   3  Normalizat    .91957        .22143        .28072E-03   -.95776    
   4  Prefactor     .82766        .16042        .21196E-03   -.98717    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.72502e-12
Minuit parameter uncertainties:
  1  7.52797e-06
  2  2.50163
  3  0.221647
  4  0.160514
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/30240': 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) = 5480.47663606
delta logL = 1.79170456249e-10

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  8.277e-01  1.605e-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:  9.196e-01  2.216e-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/30240/cmap_HighResolution_342748801_343008001_4FGL_J2335.4-0128_daily_bin399.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.37e-05', job_status='DONE', photon_flux_upper_limit='5.71e-08', time_completed='2021-09-30 00:25:14.433068', job_id='30240', GAL2='0.83', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1632986714.43', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='1.79e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='399' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:25:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 30240: <4FGL_J2335.4-0128_daily_bin399> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin399 353.869 -1.476 342748801 343008001 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 :                                   698.18 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             283.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   867 sec.
    Turnaround time :                            870 sec.

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

