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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin350
RA = 353.869, Dec = -1.476
tmin = 330048001, tmax = 330307201
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='30166', job_status='RUN', time_executed='2021-09-30 00:10:56.326504', time_epoch_executed='1632985856.33' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='350'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/30166

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/30166/ft1_4FGL_J2335.4-0128_daily_bin350.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/30166/ft2_4FGL_J2335.4-0128_daily_bin350.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/30166/ft1_4FGL_J2335.4-0128_daily_bin350.fits outfile=/scratch/kocevski/30166/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin350.fits ra=353.869 dec=-1.476 rad=12.0 tmin=330048001.0 tmax=330307201.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.47
user 3.26
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/30166/ft1_filtered_4FGL_J2335.4-0128_daily_bin350.fits" evtable="EVENTS" scfile=/scratch/kocevski/30166/ft2_4FGL_J2335.4-0128_daily_bin350.fits sctable="SC_DATA" outfile=/scratch/kocevski/30166/ltcube_330048001_330307201_4FGL_J2335.4-0128_daily_bin350.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/30166/ft2_4FGL_J2335.4-0128_daily_bin350.fits
.....................!
real 11.61
user 11.25
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/30166/ft1_filtered_4FGL_J2335.4-0128_daily_bin350.fits evtable="EVENTS" scfile=/scratch/kocevski/30166/ft2_4FGL_J2335.4-0128_daily_bin350.fits sctable="SC_DATA" expcube=/scratch/kocevski/30166/ltcube_330048001_330307201_4FGL_J2335.4-0128_daily_bin350.fits outfile=/scratch/kocevski/30166/expmap_330048001_330307201_4FGL_J2335.4-0128_daily_bin350.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/30166/ltcube_330048001_330307201_4FGL_J2335.4-0128_daily_bin350.fits
.....................!
real 191.43
user 187.06
sys 4.06

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/30166/ft1_filtered_4FGL_J2335.4-0128_daily_bin350.fits scfile=/scratch/kocevski/30166/ft2_4FGL_J2335.4-0128_daily_bin350.fits outfile=/scratch/kocevski/30166/cmap_330048001_330307201_4FGL_J2335.4-0128_daily_bin350.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/30166/ft1_filtered_4FGL_J2335.4-0128_daily_bin350.fits scfile=/scratch/kocevski/30166/ft2_4FGL_J2335.4-0128_daily_bin350.fits outfile=/scratch/kocevski/30166/cmap_HighResolution_330048001_330307201_4FGL_J2335.4-0128_daily_bin350.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.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/30166/ft1_filtered_4FGL_J2335.4-0128_daily_bin350.fits evtable="EVENTS" scfile=/scratch/kocevski/30166/ft2_4FGL_J2335.4-0128_daily_bin350.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/30166/Model_4FGL_J2335.4-0128_daily_bin350.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/30166/ft1_filtered_4FGL_J2335.4-0128_daily_bin350.fits.....................!
real 53.03
user 51.79
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    39.865       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.3441       1.0000         .10000E-03   10000.    
     7 'norm      '    .35346E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    13.079       1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.128       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.5175       1.0000         .10000E-03   10000.    
    13 'norm      '    .48099       1.0000         .10000E-03   10000.    
    14 'norm      '    6.6272       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.1720       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    8.0248       1.0000         .10000E-03   10000.    
    18 'Prefactor '    173.15       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    29.230       1.0000         .10000E-03   10000.    
    21 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    31.755       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.9351       1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.4240       1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.8501       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .18378       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .29288       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.4249       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=   5327.854     FROM MIGRAD    STATUS=CONVERGED    729 CALLS     3723 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.2255       -.16318E-06** at limit **
   2  Prefactor     39.860        54.919       -.51604E-06   -.28655E-04
   3  Prefactor     .10000E-03    6.7276       -.14011E-06** at limit **
   4  Prefactor     .10000E-03    3.0924       -.22362E-06** at limit **
   5  norm          .10000E-03    1.0047       -.14734E-06** at limit **
   6  Prefactor     4.3755        15.963        .46846E-06   -.53199E-04
   7  norm          .17007E-01    1.9736        .14792E-08   -.40288E-03
   8  norm          13.083        10.328       -.13831E-06   -.43756E-04
   9  Prefactor     23.146        39.482       -.44852E-06    .94789E-05
  10  Prefactor     .10000E-03    6.7002        .72125E-08** at limit **
  11  Prefactor     .10000E-03    26.834       -.23839E-06** at limit **
  12  Prefactor     3.5218        9.1489       -.15579E-06   -.64996E-04
  13  norm          .48161        .90300       -.11411E-07   -.57925E-03
  14  norm          6.6283        6.8941       -.11504E-06   -.81632E-04
  15  Prefactor     6.1760        12.239       -.61027E-09   -.60673E-04
  16  Prefactor     .10000E-03    19.217        .11595E-06** at limit **
  17  norm          8.0298        10.365       -.13458E-06   -.60626E-04
  18  Prefactor     173.15        181.50       -.84450E-06   -.11932E-04
  19  Prefactor     .10000E-03    15.805        .36062E-07** at limit **
  20  Prefactor     29.226        25.172       -.27721E-06   -.69064E-04
  21  norm          .10000E-03    12.036        .64466E-07** at limit **
  22  Prefactor     31.751        54.983       -.99964E-06   -.18876E-04
  23  Prefactor     1.9387        4.6421        .30884E-06   -.25424E-03
  24  Prefactor     6.4664        105.85       -.33760E-05    .14366E-04
  25  Prefactor     7.8738        29.616       -.13460E-06   -.34211E-04
  26  Prefactor     .10000E-03    13.155       -.39907E-06** at limit **
  27  Prefactor     .24422        6.0074       -.51979E-06   -.17675E-04
  28  Normalizat    .29225        .23744        .85308E-05   -.75916E-05
  29  Prefactor     1.4252        .17812       -.25168E-05   -.32682E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 39.86
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.37547
  norm       = 0.0170073
  norm       = 13.0833
  Prefactor  = 23.1461
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.52185
  norm       = 0.481609
  norm       = 6.62826
  Prefactor  = 6.17599
  Prefactor  = 0.0001
  norm       = 8.02982
  Prefactor  = 173.147
  Prefactor  = 0.0001
  Prefactor  = 29.226
  norm       = 0.0001
  Prefactor  = 31.7514
  Prefactor  = 1.9387
  Prefactor  = 6.46641
  Prefactor  = 7.87378
  Prefactor  = 0.0001
  Prefactor  = 0.244221
  Normalizat = 0.292251
  Prefactor  = 1.4252
 **********
 **   18 **HESSE 
 **********

 FCN=   5327.854     FROM HESSE     STATUS=OK           569 CALLS     4292 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.2348        .14646E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     39.860        54.600        .63484E-04   -1.4444    
   3  Prefactor     .10000E-03    6.7484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.1171        .12523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.0549        .14306E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.3755        16.102        .19326E-03   -1.5290    
   7  norm          .17007E-01    4.3323        .34112E-01   -1.5682    
   8  norm          13.083        10.343        .11076E-03   -1.4984    
   9  Prefactor     23.146        39.441        .83290E-04   -1.4745    
  10  Prefactor     .10000E-03    6.7136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    26.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.5218        9.0539        .21555E-03   -1.5333    
  13  norm          .48161        .82561        .87264E-03   -1.5569    
  14  norm          6.6283        6.8249        .15588E-03   -1.5193    
  15  Prefactor     6.1760        12.155        .16159E-03   -1.5211    
  16  Prefactor     .10000E-03    19.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.0298        10.304        .14154E-03   -1.5141    
  18  Prefactor     173.15        179.93        .15333E-03   -1.3069    
  19  Prefactor     .10000E-03    15.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     29.226        25.132        .74105E-04   -1.4626    
  21  norm          .10000E-03    12.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     31.751        55.045        .71104E-04   -1.4580    
  23  Prefactor     1.9387        4.4405        .20954E-03   -1.5429    
  24  Prefactor     6.4664        103.46        .15835E-03   -1.5199    
  25  Prefactor     7.8738        29.262        .14311E-03   -1.5147    
  26  Prefactor     .10000E-03    13.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .24422        32.656        .33540E-02   -1.5609    
  28  Normalizat    .29225        .23988        .46195E-03   -1.2330    
  29  Prefactor     1.4252        .17786        .17725E-03   -.79657    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.07303e-08
Minuit parameter uncertainties:
  1  1.49339e-07
  2  54.6682
  3  6.16328e-06
  4  5.78046e-06
  5  1.60094e-06
  6  16.1175
  7  0.541323
  8  10.3449
  9  39.4852
  10  1.99518e-06
  11  3.60917e-05
  12  9.05745
  13  0.82563
  14  6.82574
  15  12.1598
  16  1.84083e-05
  17  10.3059
  18  180.508
  19  9.61287e-05
  20  25.1408
  21  7.79881e-06
  22  55.1333
  23  4.44124
  24  51.8374
  25  29.3158
  26  4.92431e-05
  27  5.65011
  28  0.240729
  29  0.177938
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  7.799e-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:  1.425e+00  1.779e-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:  2.923e-01  2.407e-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.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.38e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/30166/likelihoodResults_330048001_330307201_4FGL_J2335.4-0128_daily_bin350.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) = 5327.85440029
delta logL = -0.000394713059904

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5327.85400558
delta logL = 5.61158230994e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5015       1.0000          .0000       5.0000    
     3 'Normalizat'    .29225       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4252       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=   5327.854     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      203 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    12.135        .90712E-02** at limit **
   2  alpha         2.4982        3.5558        .41152        .13918E-05
   3  Normalizat    .29225        .22374        .10434        .56213E-04
   4  Prefactor     1.4252        .18210        .30722E-01   -.87049E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.49817
  Normalizat = 0.292251
  Prefactor  = 1.4252
 **********
 **   18 **HESSE 
 **********

 FCN=   5327.854     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4982        3.5521        .50000       -.73252E-03
   3  Normalizat    .29225        .21252        .46196E-03   -1.2330    
   4  Prefactor     1.4252        .17328        .17725E-03   -.79657    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93521e-12
Minuit parameter uncertainties:
  1  1.57933e-06
  2  2.50251
  3  0.213106
  4  0.17335
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/30166': 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) = 5327.85400557
delta logL = 3.71255737264e-09

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  1.579e-06  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  2.498e+00  2.503e+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:  1.425e+00  1.733e-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:  2.923e-01  2.131e-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/30166/cmap_HighResolution_330048001_330307201_4FGL_J2335.4-0128_daily_bin350.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.38e-05', job_status='DONE', photon_flux_upper_limit='5.73e-08', time_completed='2021-09-30 00:22:35.308661', job_id='30166', GAL2='1.43', fit_tolerance='1e-08', EG2='0.29', EG='0.29', time_epoch_completed='1632986555.31', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.43', dlogl='3.71e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='350' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:22:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 30166: <4FGL_J2335.4-0128_daily_bin350> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin350> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 00:10:37 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:10:39 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:39 2021
Terminated at Thu Sep 30 00:22:35 2021
Results reported at Thu Sep 30 00:22:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin350 353.869 -1.476 330048001 330307201 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 :                                   693.06 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             330.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   716 sec.
    Turnaround time :                            718 sec.

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

