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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin631
RA = 353.869, Dec = -1.476
tmin = 402883201, tmax = 403142401
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='31588', job_status='RUN', time_executed='2021-09-30 00:18:39.460440', time_epoch_executed='1632986319.46' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='631'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31588

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31588/ft1_4FGL_J2335.4-0128_daily_bin631.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31588/ft2_4FGL_J2335.4-0128_daily_bin631.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31588/ft1_4FGL_J2335.4-0128_daily_bin631.fits outfile=/scratch/kocevski/31588/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin631.fits ra=353.869 dec=-1.476 rad=12.0 tmin=402883201.0 tmax=403142401.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 4.63
user 4.38
sys 0.22

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/31588/ft1_filtered_4FGL_J2335.4-0128_daily_bin631.fits" evtable="EVENTS" scfile=/scratch/kocevski/31588/ft2_4FGL_J2335.4-0128_daily_bin631.fits sctable="SC_DATA" outfile=/scratch/kocevski/31588/ltcube_402883201_403142401_4FGL_J2335.4-0128_daily_bin631.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/31588/ft2_4FGL_J2335.4-0128_daily_bin631.fits
.....................!
real 11.90
user 11.42
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31588/ft1_filtered_4FGL_J2335.4-0128_daily_bin631.fits evtable="EVENTS" scfile=/scratch/kocevski/31588/ft2_4FGL_J2335.4-0128_daily_bin631.fits sctable="SC_DATA" expcube=/scratch/kocevski/31588/ltcube_402883201_403142401_4FGL_J2335.4-0128_daily_bin631.fits outfile=/scratch/kocevski/31588/expmap_402883201_403142401_4FGL_J2335.4-0128_daily_bin631.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/31588/ltcube_402883201_403142401_4FGL_J2335.4-0128_daily_bin631.fits
.....................!
real 191.79
user 186.05
sys 5.43

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/31588/ft1_filtered_4FGL_J2335.4-0128_daily_bin631.fits scfile=/scratch/kocevski/31588/ft2_4FGL_J2335.4-0128_daily_bin631.fits outfile=/scratch/kocevski/31588/cmap_402883201_403142401_4FGL_J2335.4-0128_daily_bin631.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=353.869 yref=-1.476 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/31588/ft1_filtered_4FGL_J2335.4-0128_daily_bin631.fits scfile=/scratch/kocevski/31588/ft2_4FGL_J2335.4-0128_daily_bin631.fits outfile=/scratch/kocevski/31588/cmap_HighResolution_402883201_403142401_4FGL_J2335.4-0128_daily_bin631.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    97.450       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .20178E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.1950       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10277E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.688       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.2012       1.0000         .10000E-03   10000.    
    14 'norm      '    11.074       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.1831       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.8583       1.0000         .10000E-03   10000.    
    17 'norm      '    11.324       1.0000         .10000E-03   10000.    
    18 'Prefactor '    49.957       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    64.902       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    26.705       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.1746       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1164       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .65401       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=   4511.920     FROM MIGRAD    STATUS=CONVERGED    712 CALLS     4220 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.5378        .34009E-06** at limit **
   2  Prefactor     97.447        77.875       -.27154E-05   -.30852E-03
   3  Prefactor     .10090E-03    14.899       -.12356E-05** at limit **
   4  Prefactor     .10000E-03    10.161        .92766E-05** at limit **
   5  norm          1.1950        2.5797       -.43320E-06   -.52638E-03
   6  Prefactor     .10000E-03    42.500        .35668E-04** at limit **
   7  norm          .10000E-03    3.4716       -.12752E-06** at limit **
   8  norm          .10000E-03    5.6994        .26817E-05** at limit **
   9  Prefactor     21.690        26.767        .73700E-06    .88066E-05
  10  Prefactor     .10000E-03    5.0316       -.11587E-05** at limit **
  11  Prefactor     .10000E-03    35.012       -.18771E-04** at limit **
  12  Prefactor     .10000E-03    3.9537       -.59461E-08** at limit **
  13  norm          1.2008        1.1462       -.17524E-05   -.69916E-03
  14  norm          11.073        6.6133       -.34822E-06    .13289E-03
  15  Prefactor     2.1805        8.3786       -.61746E-06   -.27201E-03
  16  Prefactor     9.8443        47.037       -.22220E-04    .22414E-04
  17  norm          11.323        10.137        .42223E-06    .14642E-03
  18  Prefactor     50.193        183.86        .32357E-03    .25744E-04
  19  Prefactor     .10000E-03    10.948       -.11129E-04** at limit **
  20  Prefactor     .10000E-03    27.124       -.21487E-04** at limit **
  21  norm          64.887        30.831       -.82256E-05    .33193E-03
  22  Prefactor     .10000E-03    21.978        .16811E-04** at limit **
  23  Prefactor     .10000E-03    1.9945       -.51818E-06** at limit **
  24  Prefactor     26.721        29.710        .61018E-05    .70993E-04
  25  Prefactor     .10000E-03    6.3676       -.39543E-05** at limit **
  26  Prefactor     1.1759        73.553       -.31460E-05   -.12767E-03
  27  Prefactor     .10000E-03    6.5196        .18951E-05** at limit **
  28  Normalizat    1.1160        .21371        .19420E-05   -.91814E-04
  29  Prefactor     .65440        .14609       -.43659E-05    .23771E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 97.4469
  Prefactor  = 0.000100899
  Prefactor  = 0.0001
  norm       = 1.19496
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 21.6899
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.20077
  norm       = 11.0733
  Prefactor  = 2.18051
  Prefactor  = 9.84425
  norm       = 11.3231
  Prefactor  = 50.1929
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 64.8865
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 26.7212
  Prefactor  = 0.0001
  Prefactor  = 1.17588
  Prefactor  = 0.0001
  Normalizat = 1.11598
  Prefactor  = 0.6544
 **********
 **   18 **HESSE 
 **********

 FCN=   4511.920     FROM HESSE     STATUS=OK           547 CALLS     4767 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.5423        .13971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     97.447        77.801        .40719E-04   -1.3730    
   3  Prefactor     .10090E-03    119.66        .47374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.380        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.1950        2.4388        .14425E-03   -1.5489    
   6  Prefactor     .10000E-03    43.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.5276        .12203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.7141        .15661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     21.690        26.764        .86008E-04   -1.4776    
  10  Prefactor     .10000E-03    5.0338        .14715E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    35.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.9591        .13040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.2008        1.1233        .65319E-04   -1.5489    
  14  norm          11.073        6.6018        .12039E-03   -1.5042    
  15  Prefactor     2.1805        8.3125        .27860E-03   -1.5413    
  16  Prefactor     9.8443        47.037        .12762E-03   -1.5080    
  17  norm          11.323        10.077        .11905E-03   -1.5035    
  18  Prefactor     50.193        183.56        .28369E-03   -1.4290    
  19  Prefactor     .10000E-03    11.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    27.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          64.887        30.715        .24907E-03   -1.4095    
  22  Prefactor     .10000E-03    21.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.0039        .92593E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     26.721        29.735        .77521E-04   -1.4674    
  25  Prefactor     .10000E-03    6.3705        .16554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.1759        74.638        .42278E-03   -1.5491    
  27  Prefactor     .10000E-03    6.5884        .16746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1160        .25100        .24549E-03   -.89240    
  29  Prefactor     .65440        .17160        .22122E-03   -1.0534    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.7411e-09
Minuit parameter uncertainties:
  1  4.76615e-06
  2  77.8829
  3  0.0207828
  4  4.50545e-05
  5  2.43898
  6  0.000267364
  7  1.50488e-05
  8  1.32994e-05
  9  26.7788
  10  8.86283e-06
  11  1.68031e-05
  12  1.24069e-06
  13  1.12328
  14  6.60226
  15  8.31688
  16  43.0919
  17  10.0784
  18  185.69
  19  5.46503e-05
  20  0.000163132
  21  30.7229
  22  3.03035e-05
  23  7.88339e-05
  24  29.7513
  25  4.54463e-06
  26  18.7603
  27  4.88776e-06
  28  0.25127
  29  0.171741
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  6.489e+01  3.072e+01  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.544e-01  1.717e-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.116e+00  2.513e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.35
Ra Dec: 353.869 -1.476
Photon Index (Fixed Index): 2.50 +/- 0.00
Photon Flux (Fixed Index): 8.00e-08 +/- 3.79e-08
Energy Flux (Fixed Index): 3.32e-05 +/- 1.57e-05

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) = 4509.80976685
delta logL = 2.11020177366

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4509.65823411
delta logL = 2.26173450649

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    86.965       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3301       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1568       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64303       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=   4509.658     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      209 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          86.965        41.841        .10770E-02   -.83620E-03
   2  alpha         1.3307        .47724        .33133       -.61564E-05
   3  Normalizat    1.1569        .20363        .54671E-01    .53951E-05
   4  Prefactor     .64311        .14472        .41638E-01    .15299E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 86.9652
  alpha      = 1.33072
  Normalizat = 1.15686
  Prefactor  = 0.643109
 **********
 **   18 **HESSE 
 **********

 FCN=   4509.658     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          86.965        44.944        .43082E-04   -1.3840    
   2  alpha         1.3307        .52665        .14188E-01   -.48670    
   3  Normalizat    1.1569        .23917        .24174E-03   -.87947    
   4  Prefactor     .64311        .17024        .22308E-03   -1.0580    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91368e-09
Minuit parameter uncertainties:
  1  44.9618
  2  0.531768
  3  0.239395
  4  0.170377
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31588': 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) = 4509.65823262
delta logL = 2.26173600117

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  8.697e+01  4.496e+01  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  1.331e+00  5.318e-01  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.431e-01  1.704e-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.157e+00  2.394e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 21.92
Ra Dec: 353.869 -1.476
Photon Index (Free Index): 1.33 +/- 0.53
Photon Flux (Free Index): 3.41e-08 +/- 2.10e-08
Energy Flux (Free Index): 5.70e-05 +/- 3.50e-05

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/31588/cmap_HighResolution_402883201_403142401_4FGL_J2335.4-0128_daily_bin631.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.00e-08', energy_flux2='5.70e-05', photon_flux_error='3.79e-08', dlogl='2.26e+00', energy_flux='3.32e-05', photon_flux2='3.41e-08', job_status='DONE', time_completed='2021-09-30 00:28:31.146083', photon_index_error2='0.53', photon_index2='1.33', ts='17.35', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', energy_flux_error2='3.50e-05', EG='1.12', time_epoch_completed='1632986911.15', return_code='0', job_id='31588', GAL2='0.64', EG2='1.16', return_code2='0', energy_flux_error='1.57e-05', photon_flux_error2='2.10e-08', ts2='21.92', photon_index='2.50' WHERE bin_id='631' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:28:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 31588: <4FGL_J2335.4-0128_daily_bin631> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin631 353.869 -1.476 402883201 403142401 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 :                                   591.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   760 sec.
    Turnaround time :                            763 sec.

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

