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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin959
RA = 353.869, Dec = -1.476
tmin = 487900801, tmax = 488160001
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='33110', job_status='RUN', time_executed='2021-09-30 00:23:11.554715', time_epoch_executed='1632986591.55' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='959'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/33110

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/33110/ft1_4FGL_J2335.4-0128_daily_bin959.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/33110/ft2_4FGL_J2335.4-0128_daily_bin959.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/33110/ft1_4FGL_J2335.4-0128_daily_bin959.fits outfile=/scratch/kocevski/33110/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin959.fits ra=353.869 dec=-1.476 rad=12.0 tmin=487900801.0 tmax=488160001.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 6.02
user 5.74
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/33110/ft2_4FGL_J2335.4-0128_daily_bin959.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/33110/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin959.fits evtable="EVENTS" outfile="/scratch/kocevski/33110/ft1_filtered_4FGL_J2335.4-0128_daily_bin959.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/33110/ft1_filtered_4FGL_J2335.4-0128_daily_bin959.fits" evtable="EVENTS" scfile=/scratch/kocevski/33110/ft2_4FGL_J2335.4-0128_daily_bin959.fits sctable="SC_DATA" outfile=/scratch/kocevski/33110/ltcube_487900801_488160001_4FGL_J2335.4-0128_daily_bin959.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/33110/ft2_4FGL_J2335.4-0128_daily_bin959.fits
.....................!
real 11.79
user 11.47
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/33110/ft1_filtered_4FGL_J2335.4-0128_daily_bin959.fits evtable="EVENTS" scfile=/scratch/kocevski/33110/ft2_4FGL_J2335.4-0128_daily_bin959.fits sctable="SC_DATA" expcube=/scratch/kocevski/33110/ltcube_487900801_488160001_4FGL_J2335.4-0128_daily_bin959.fits outfile=/scratch/kocevski/33110/expmap_487900801_488160001_4FGL_J2335.4-0128_daily_bin959.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/33110/ltcube_487900801_488160001_4FGL_J2335.4-0128_daily_bin959.fits
.....................!
real 190.27
user 185.07
sys 4.90

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/33110/ft1_filtered_4FGL_J2335.4-0128_daily_bin959.fits scfile=/scratch/kocevski/33110/ft2_4FGL_J2335.4-0128_daily_bin959.fits outfile=/scratch/kocevski/33110/cmap_487900801_488160001_4FGL_J2335.4-0128_daily_bin959.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/33110/ft1_filtered_4FGL_J2335.4-0128_daily_bin959.fits scfile=/scratch/kocevski/33110/ft2_4FGL_J2335.4-0128_daily_bin959.fits outfile=/scratch/kocevski/33110/cmap_HighResolution_487900801_488160001_4FGL_J2335.4-0128_daily_bin959.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/33110/ft1_filtered_4FGL_J2335.4-0128_daily_bin959.fits evtable="EVENTS" scfile=/scratch/kocevski/33110/ft2_4FGL_J2335.4-0128_daily_bin959.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/33110/Model_4FGL_J2335.4-0128_daily_bin959.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/33110/ft1_filtered_4FGL_J2335.4-0128_daily_bin959.fits......................!
real 36.01
user 34.79
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.783       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.4177       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.094       1.0000         .10000E-03   10000.    
     5 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    21.984       1.0000         .10000E-03   10000.    
     9 'Prefactor '    74.799       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .38133E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    .42811       1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.004       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10097E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    469.46       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10357E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.063       1.0000         .10000E-03   10000.    
    21 'norm      '    28.379       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.0941       1.0000         .10000E-03   10000.    
    24 'Prefactor '    68.061       1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.1219       1.0000         .10000E-03   10000.    
    26 'Prefactor '    29.419       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .61903       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .96371       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=   2868.985     FROM MIGRAD    STATUS=CONVERGED    697 CALLS     3709 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.786        14.968       -.31991E-06    .13206E-03
   2  Prefactor     .10000E-03    28.654       -.16844E-05** at limit **
   3  Prefactor     9.4200        23.260       -.12787E-05    .10404E-03
   4  Prefactor     11.095        8.1198       -.17671E-06    .28836E-03
   5  norm          .10000E-03    1.8316       -.24914E-06** at limit **
   6  Prefactor     .10000E-03    5.9092       -.77454E-07** at limit **
   7  norm          .10000E-03    2.7200       -.13315E-06** at limit **
   8  norm          21.959        24.746        .11247E-05   -.10932E-03
   9  Prefactor     74.777        93.347       -.60087E-06   -.13406E-04
  10  Prefactor     .10000E-03    19.819       -.41820E-08** at limit **
  11  Prefactor     .10000E-03    19.256        .65194E-06** at limit **
  12  Prefactor     .10000E-03    9.9756       -.61374E-06** at limit **
  13  norm          .35038E-01    10.676       -.15736E-04    .19866E-03
  14  norm          .43721        8.7382       -.34468E-05   -.35286E-03
  15  Prefactor     15.008        18.026       -.93218E-06    .28304E-04
  16  Prefactor     .10000E-03    40.410        .11060E-05** at limit **
  17  norm          .10000E-03    12.847       -.11486E-05** at limit **
  18  Prefactor     469.87        470.71        .18967E-04    .33848E-04
  19  Prefactor     .10000E-03    23.653       -.26067E-05** at limit **
  20  Prefactor     15.035        43.701        .21242E-05   -.25085E-05
  21  norm          28.389        36.535        .93066E-06    .13405E-03
  22  Prefactor     .10000E-03    34.647       -.11272E-05** at limit **
  23  Prefactor     4.0975        10.275       -.73692E-06    .59105E-03
  24  Prefactor     68.060        63.052       -.24001E-06    .18784E-04
  25  Prefactor     3.1189        60.099       -.34077E-05   -.24245E-04
  26  Prefactor     29.420        25.673       -.48940E-06    .77323E-04
  27  Prefactor     .10000E-03    5.3191       -.41619E-06** at limit **
  28  Normalizat    .61903        .28782        .52568E-05    .22912E-03
  29  Prefactor     .96376        .19669        .10939E-05    .16363E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.7863
  Prefactor  = 0.0001
  Prefactor  = 9.41999
  Prefactor  = 11.0948
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 21.9585
  Prefactor  = 74.7772
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0350383
  norm       = 0.437206
  Prefactor  = 15.0075
  Prefactor  = 0.000100001
  norm       = 0.000100002
  Prefactor  = 469.868
  Prefactor  = 0.0001
  Prefactor  = 15.0346
  norm       = 28.3893
  Prefactor  = 0.0001
  Prefactor  = 4.09746
  Prefactor  = 68.0604
  Prefactor  = 3.11889
  Prefactor  = 29.4203
  Prefactor  = 0.0001
  Normalizat = 0.619033
  Prefactor  = 0.96376
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.786        15.002        .83918E-04   -1.4753    
   2  Prefactor     .10000E-03    28.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.4200        23.230        .13059E-03   -1.5094    
   4  Prefactor     11.095        8.0977        .12028E-03   -1.5042    
   5  norm          .10000E-03    1.8506        .70675E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.9099        .12717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.7349        .85922E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          21.959        24.712        .85427E-04   -1.4770    
   9  Prefactor     74.777        93.374        .46425E-04   -1.3976    
  10  Prefactor     .10000E-03    19.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    19.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.088        .16515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .35038E-01    11.602        .98488E-03   -1.5671    
  14  norm          .43721        20.395        .29492E-02   -1.5576    
  15  Prefactor     15.008        18.005        .10340E-03   -1.4933    
  16  Prefactor     .10000E-03    40.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    12.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     469.87        479.54        .94552E-04   -1.1338    
  19  Prefactor     .10000E-03    23.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     15.035        43.686        .10320E-03   -1.4932    
  21  norm          28.389        36.306        .75204E-04   -1.4642    
  22  Prefactor     .10000E-03    34.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.0975        10.214        .19840E-03   -1.5303    
  24  Prefactor     68.060        63.020        .48653E-04   -1.4056    
  25  Prefactor     3.1189        60.121        .22947E-03   -1.5355    
  26  Prefactor     29.420        25.708        .73866E-04   -1.4623    
  27  Prefactor     .10000E-03    5.3782        .12066E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .61903        .32505        .32345E-03   -1.0718    
  29  Prefactor     .96376        .22505        .19819E-03   -.93947    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.32798e-09
Minuit parameter uncertainties:
  1  15.0041
  2  0.000112049
  3  23.2521
  4  8.09848
  5  3.44857e-06
  6  3.27227e-06
  7  4.65014e-06
  8  24.7236
  9  93.5576
  10  0.000391808
  11  0.00011879
  12  0.00014152
  13  1.27358
  14  5.97374
  15  18.0115
  16  0.000378544
  17  0.000303679
  18  483.737
  19  0.000122146
  20  43.7795
  21  36.3343
  22  1.21958e-05
  23  10.2187
  24  63.0818
  25  27.4182
  26  25.718
  27  3.06998e-05
  28  0.326062
  29  0.22527
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  2.839e+01  3.633e+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:  9.638e-01  2.253e-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:  6.190e-01  3.261e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.55
Ra Dec: 353.869 -1.476
Photon Index (Fixed Index): 2.50 +/- 0.00
Photon Flux (Fixed Index): 3.50e-08 +/- 4.48e-08
Energy Flux (Fixed Index): 1.45e-05 +/- 1.86e-05

TS (Fixed Index): 1.55
Ra Dec: 353.869 -1.476
Photon Flux Upper Limit: 1.40e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.81e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/33110/likelihoodResults_487900801_488160001_4FGL_J2335.4-0128_daily_bin959.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) = 2868.86783907
delta logL = 0.117557191816

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2868.85506544
delta logL = 0.13033081591

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.397       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3421       1.0000          .0000       5.0000    
     3 'Normalizat'    .57598       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98154       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=   2868.855     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      252 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.354        362.09        .25518E-02    .50868E-03
   2  alpha         3.3459        3.9863        .34270        .24257E-04
   3  Normalizat    .57581        .12386        .75487E-01    .10086E-04
   4  Prefactor     .98153        .67519E-01    .46036E-01    .11700E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 15.3541
  alpha      = 3.34594
  Normalizat = 0.575805
  Prefactor  = 0.981531
 **********
 **   18 **HESSE 
 **********

 FCN=   2868.855     FROM HESSE     STATUS=OK            33 CALLS      285 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.354        53.600        .51037E-03   -1.4924    
   2  alpha         3.3459        3.8485        .11830E-01    .34519    
   3  Normalizat    .57581        .33703        .33422E-03   -1.0902    
   4  Prefactor     .98153        .23540        .19645E-03   -.93348    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53772e-08
Minuit parameter uncertainties:
  1  53.7684
  2  2.77326
  3  0.338239
  4  0.235645
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/33110': 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) = 2868.855061
delta logL = 0.130335256868

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.535e+01  5.377e+01  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  3.346e+00  2.773e+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:  9.815e-01  2.356e-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:  5.758e-01  3.382e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.85
Ra Dec: 353.869 -1.476
Photon Index (Free Index): 3.35 +/- 2.77
Photon Flux (Free Index): 7.64e-08 +/- 1.47e-07
Energy Flux (Free Index): 1.82e-05 +/- 1.81e-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/33110/cmap_HighResolution_487900801_488160001_4FGL_J2335.4-0128_daily_bin959.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.81e-05', comment='SUCCESS', photon_flux='3.50e-08', energy_flux2='1.82e-05', photon_flux_error='4.48e-08', dlogl='1.30e-01', energy_flux='1.45e-05', photon_flux2='7.64e-08', job_status='DONE', time_completed='2021-09-30 00:32:05.025588', photon_index_error2='2.77', photon_index2='3.35', ts='1.55', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.40e-07', energy_flux_error2='1.81e-05', EG='0.62', time_epoch_completed='1632987125.03', return_code='0', job_id='33110', GAL2='0.98', EG2='0.58', return_code2='0', energy_flux_error='1.86e-05', photon_flux_error2='1.47e-07', ts2='1.85', photon_index='2.50' WHERE bin_id='959' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:32:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 33110: <4FGL_J2335.4-0128_daily_bin959> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin959> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 00:20:45 2021
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:20: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:20:47 2021
Terminated at Thu Sep 30 00:32:05 2021
Results reported at Thu Sep 30 00:32:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin959 353.869 -1.476 487900801 488160001 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 :                                   530.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   678 sec.
    Turnaround time :                            680 sec.

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

