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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin323
RA = 353.869, Dec = -1.476
tmin = 323049601, tmax = 323308801
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='30125', job_status='RUN', time_executed='2021-09-30 00:10:49.856811', time_epoch_executed='1632985849.86' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='323'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/30125

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/30125/ft1_4FGL_J2335.4-0128_daily_bin323.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/30125/ft2_4FGL_J2335.4-0128_daily_bin323.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/30125/ft1_4FGL_J2335.4-0128_daily_bin323.fits outfile=/scratch/kocevski/30125/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin323.fits ra=353.869 dec=-1.476 rad=12.0 tmin=323049601.0 tmax=323308801.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.31
user 3.10
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/30125/ft1_filtered_4FGL_J2335.4-0128_daily_bin323.fits" evtable="EVENTS" scfile=/scratch/kocevski/30125/ft2_4FGL_J2335.4-0128_daily_bin323.fits sctable="SC_DATA" outfile=/scratch/kocevski/30125/ltcube_323049601_323308801_4FGL_J2335.4-0128_daily_bin323.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/30125/ft2_4FGL_J2335.4-0128_daily_bin323.fits
.....................!
real 11.71
user 11.36
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/30125/ft1_filtered_4FGL_J2335.4-0128_daily_bin323.fits evtable="EVENTS" scfile=/scratch/kocevski/30125/ft2_4FGL_J2335.4-0128_daily_bin323.fits sctable="SC_DATA" expcube=/scratch/kocevski/30125/ltcube_323049601_323308801_4FGL_J2335.4-0128_daily_bin323.fits outfile=/scratch/kocevski/30125/expmap_323049601_323308801_4FGL_J2335.4-0128_daily_bin323.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/30125/ltcube_323049601_323308801_4FGL_J2335.4-0128_daily_bin323.fits
.....................!
real 191.14
user 185.42
sys 5.39

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/30125/ft1_filtered_4FGL_J2335.4-0128_daily_bin323.fits scfile=/scratch/kocevski/30125/ft2_4FGL_J2335.4-0128_daily_bin323.fits outfile=/scratch/kocevski/30125/cmap_323049601_323308801_4FGL_J2335.4-0128_daily_bin323.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/30125/ft1_filtered_4FGL_J2335.4-0128_daily_bin323.fits scfile=/scratch/kocevski/30125/ft2_4FGL_J2335.4-0128_daily_bin323.fits outfile=/scratch/kocevski/30125/cmap_HighResolution_323049601_323308801_4FGL_J2335.4-0128_daily_bin323.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/30125/ft1_filtered_4FGL_J2335.4-0128_daily_bin323.fits evtable="EVENTS" scfile=/scratch/kocevski/30125/ft2_4FGL_J2335.4-0128_daily_bin323.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/30125/Model_4FGL_J2335.4-0128_daily_bin323.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/30125/ft1_filtered_4FGL_J2335.4-0128_daily_bin323.fits.....................!
real 70.96
user 69.66
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .58507       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.2433       1.0000         .10000E-03   10000.    
     5 'norm      '    .10163E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.7683       1.0000         .10000E-03   10000.    
     7 'norm      '    1.1151       1.0000         .10000E-03   10000.    
     8 'norm      '    .30174E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.876       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.858       1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.869       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11789E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.1980       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.0817       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.1106       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11725E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    24.096       1.0000         .10000E-03   10000.    
    21 'norm      '    .10094E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.2310       1.0000         .10000E-03   10000.    
    24 'Prefactor '    39.462       1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.3150       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.6607       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .81984       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1045       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=   7601.301     FROM MIGRAD    STATUS=CONVERGED    729 CALLS     3745 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.9331       -.10024E-06** at limit **
   2  Prefactor     .10000E-03    17.029        .42109E-06** at limit **
   3  Prefactor     .62495        7.8783        .61408E-06   -.40765E-04
   4  Prefactor     2.2409        7.5174        .79776E-05   -.21003E-03
   5  norm          .10000E-03    1.1228       -.42958E-06** at limit **
   6  Prefactor     6.7690        13.218       -.79337E-06   -.13822E-04
   7  norm          1.1170        4.4051       -.48150E-05   -.48422E-04
   8  norm          .10060E-03    5.4198       -.28357E-05** at limit **
   9  Prefactor     17.891        36.672       -.28155E-05    .35999E-04
  10  Prefactor     16.849        19.769       -.36265E-07    .10038E-03
  11  Prefactor     20.910        31.313        .51338E-05    .99289E-04
  12  Prefactor     .10001E-03    5.4487        .29447E-05** at limit **
  13  norm          2.1981        .88331        .70353E-07    .46312E-03
  14  norm          .10000E-03    3.5677        .72841E-07** at limit **
  15  Prefactor     3.0793        12.196        .17603E-05   -.20379E-04
  16  Prefactor     .10000E-03    16.161       -.29042E-06** at limit **
  17  norm          5.1127        9.5579        .37076E-06   -.19023E-05
  18  Prefactor     .10000E-03    62.974       -.17511E-05** at limit **
  19  Prefactor     .10000E-03    4.5332       -.12178E-06** at limit **
  20  Prefactor     24.101        30.647       -.16400E-05    .28092E-04
  21  norm          .10000E-03    15.916       -.55329E-06** at limit **
  22  Prefactor     .10000E-03    20.407        .10970E-06** at limit **
  23  Prefactor     6.2322        4.2031       -.20260E-06    .15225E-03
  24  Prefactor     39.417        39.928        .43753E-05   -.24009E-04
  25  Prefactor     6.3259        23.865       -.28809E-05   -.16088E-04
  26  Prefactor     .10000E-03    2.8249       -.24416E-07** at limit **
  27  Prefactor     2.6608        5.5484        .10656E-06   -.37157E-04
  28  Normalizat    .81972        .17954        .60618E-06    .43546E-03
  29  Prefactor     1.1045        .13300        .62430E-06    .68377E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.624946
  Prefactor  = 2.24086
  norm       = 0.0001
  Prefactor  = 6.76899
  norm       = 1.11696
  norm       = 0.000100599
  Prefactor  = 17.8909
  Prefactor  = 16.8486
  Prefactor  = 20.9104
  Prefactor  = 0.000100009
  norm       = 2.19812
  norm       = 0.0001
  Prefactor  = 3.07928
  Prefactor  = 0.0001
  norm       = 5.11269
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.101
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.23224
  Prefactor  = 39.4175
  Prefactor  = 6.32593
  Prefactor  = 0.0001
  Prefactor  = 2.66081
  Normalizat = 0.819718
  Prefactor  = 1.10452
 **********
 **   18 **HESSE 
 **********

 FCN=   7601.301     FROM HESSE     STATUS=OK           565 CALLS     4310 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.9658        .16883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    17.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .62495        33.082        .45068E-02   -1.5550    
   4  Prefactor     2.2409        8.2645        .13719E-02   -1.5409    
   5  norm          .10000E-03    1.9296        .17276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.7690        12.968        .15423E-03   -1.5188    
   7  norm          1.1170        4.6572        .22287E-03   -1.5497    
   8  norm          .10060E-03    105.12        .36883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.891        36.704        .94730E-04   -1.4862    
  10  Prefactor     16.849        19.764        .97548E-04   -1.4887    
  11  Prefactor     20.910        31.692        .87677E-04   -1.4793    
  12  Prefactor     .10001E-03    10.622        .32910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.1981        .87991        .49594E-04   -1.5411    
  14  norm          .10000E-03    3.6512        .32054E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.0793        11.886        .11552E-02   -1.5357    
  16  Prefactor     .10000E-03    16.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.1127        9.3884        .88924E-03   -1.5256    
  18  Prefactor     .10000E-03    62.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.5640        .18112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     24.101        30.464        .81603E-04   -1.4726    
  21  norm          .10000E-03    15.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    20.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.2322        4.1937        .13758E-03   -1.5209    
  24  Prefactor     39.417        39.714        .63807E-04   -1.4451    
  25  Prefactor     6.3259        23.866        .15973E-03   -1.5205    
  26  Prefactor     .10000E-03    2.8262        .14311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.6608        5.5343        .24988E-03   -1.5382    
  28  Normalizat    .81972        .20244        .29785E-03   -.99341    
  29  Prefactor     1.1045        .15290        .20222E-03   -.89322    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.00588e-08
Minuit parameter uncertainties:
  1  2.56861e-05
  2  5.31344e-05
  3  9.09845
  4  8.26873
  5  5.12923e-05
  6  12.9737
  7  4.56198
  8  0.0158971
  9  36.7505
  10  19.7717
  11  31.7177
  12  0.000609636
  13  0.879914
  14  5.30756e-06
  15  11.8949
  16  7.48419e-05
  17  9.39107
  18  7.12988e-05
  19  3.44624e-05
  20  30.4834
  21  1.87208e-05
  22  4.03054e-05
  23  4.19387
  24  39.7402
  25  23.9021
  26  9.23044e-06
  27  5.53536
  28  0.202627
  29  0.152959
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  1.105e+00  1.530e-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:  8.197e-01  2.026e-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.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.18e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/30125/likelihoodResults_323049601_323308801_4FGL_J2335.4-0128_daily_bin323.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): 102
logL (Free Index) = 7601.30137924
delta logL = -0.000298336671221

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7601.30108114
delta logL = -2.41784618993e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7601.301     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      237 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10015E-03    697.96        .18142E-02** at limit **
   2  alpha         2.4595        2.9126        .50000        .62039E-06
   3  Normalizat    .81972        .29841E-01    .29785E-03   -.15267E-05
   4  Prefactor     1.1045        .23328E-01    .20222E-03   -.17428E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100152
  alpha      = 2.45952
  Normalizat = 0.819717
  Prefactor  = 1.10452
 **********
 **   18 **HESSE 
 **********

 FCN=   7601.301     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      266 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10015E-03    6183.3        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4595        2.9095        .50000       -.16193E-01
   3  Normalizat    .81972        .71706E-01    .11914E-04   -.99341    
   4  Prefactor     1.1045        .56058E-01    .80887E-05   -.89322    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.05664e-09
Minuit parameter uncertainties:
  1  0.0396269
  2  4758.06
  3  0.0717143
  4  0.0560607
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/30125': 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): 102
logL (Free Index) = 7601.30108089
delta logL = 1.04619175545e-08

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.002e-04  3.963e-02  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  2.460e+00  4.758e+03  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.105e+00  5.606e-02  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:  8.197e-01  7.171e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/30125/cmap_HighResolution_323049601_323308801_4FGL_J2335.4-0128_daily_bin323.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.18e-05', job_status='DONE', photon_flux_upper_limit='5.24e-08', time_completed='2021-09-30 00:25:23.608785', job_id='30125', GAL2='1.10', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1632986723.61', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='1.05e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='323' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:25:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 30125: <4FGL_J2335.4-0128_daily_bin323> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin323 353.869 -1.476 323049601 323308801 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 :                                   870.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             301.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            890 sec.

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

