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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin605
RA = 353.869, Dec = -1.476
tmin = 396144001, tmax = 396403201
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='31547', job_status='RUN', time_executed='2021-09-30 00:17:49.132219', time_epoch_executed='1632986269.13' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='605'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31547

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31547/ft1_4FGL_J2335.4-0128_daily_bin605.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31547/ft2_4FGL_J2335.4-0128_daily_bin605.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31547/ft1_4FGL_J2335.4-0128_daily_bin605.fits outfile=/scratch/kocevski/31547/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin605.fits ra=353.869 dec=-1.476 rad=12.0 tmin=396144001.0 tmax=396403201.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.28
user 3.06
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/31547/ft1_filtered_4FGL_J2335.4-0128_daily_bin605.fits" evtable="EVENTS" scfile=/scratch/kocevski/31547/ft2_4FGL_J2335.4-0128_daily_bin605.fits sctable="SC_DATA" outfile=/scratch/kocevski/31547/ltcube_396144001_396403201_4FGL_J2335.4-0128_daily_bin605.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/31547/ft2_4FGL_J2335.4-0128_daily_bin605.fits
.....................!
real 11.80
user 11.43
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31547/ft1_filtered_4FGL_J2335.4-0128_daily_bin605.fits evtable="EVENTS" scfile=/scratch/kocevski/31547/ft2_4FGL_J2335.4-0128_daily_bin605.fits sctable="SC_DATA" expcube=/scratch/kocevski/31547/ltcube_396144001_396403201_4FGL_J2335.4-0128_daily_bin605.fits outfile=/scratch/kocevski/31547/expmap_396144001_396403201_4FGL_J2335.4-0128_daily_bin605.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/31547/ltcube_396144001_396403201_4FGL_J2335.4-0128_daily_bin605.fits
.....................!
real 192.22
user 186.60
sys 5.31

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/31547/ft1_filtered_4FGL_J2335.4-0128_daily_bin605.fits scfile=/scratch/kocevski/31547/ft2_4FGL_J2335.4-0128_daily_bin605.fits outfile=/scratch/kocevski/31547/cmap_396144001_396403201_4FGL_J2335.4-0128_daily_bin605.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/31547/ft1_filtered_4FGL_J2335.4-0128_daily_bin605.fits scfile=/scratch/kocevski/31547/ft2_4FGL_J2335.4-0128_daily_bin605.fits outfile=/scratch/kocevski/31547/cmap_HighResolution_396144001_396403201_4FGL_J2335.4-0128_daily_bin605.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.35
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/31547/ft1_filtered_4FGL_J2335.4-0128_daily_bin605.fits evtable="EVENTS" scfile=/scratch/kocevski/31547/ft2_4FGL_J2335.4-0128_daily_bin605.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/31547/Model_4FGL_J2335.4-0128_daily_bin605.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/31547/ft1_filtered_4FGL_J2335.4-0128_daily_bin605.fits.....................!
real 65.02
user 63.64
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4055       1.0000         .10000E-03   10000.    
     2 'Prefactor '    36.777       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .53495       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.085       1.0000         .10000E-03   10000.    
     7 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    48.300       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10296E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.6795       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.3622       1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10304E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.473       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.3285       1.0000         .10000E-03   10000.    
    21 'norm      '    .10198E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    40.231       1.0000         .10000E-03   10000.    
    25 'Prefactor '    17.230       1.0000         .10000E-03   10000.    
    26 'Prefactor '    21.337       1.0000         .10000E-03   10000.    
    27 'Prefactor '    14.289       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0214       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .76715       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=   6539.519     FROM MIGRAD    STATUS=CONVERGED    710 CALLS     3691 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3671        9.8028       -.23431E-04   -.43589E-03
   2  Prefactor     36.790        54.947        .17563E-04    .16176E-03
   3  Prefactor     .56916        8.5930       -.11155E-05   -.13696E-03
   4  Prefactor     .10000E-03    1.2470       -.58807E-08** at limit **
   5  norm          .10000E-03    1.0316        .23207E-08** at limit **
   6  Prefactor     21.089        14.417       -.14122E-05    .12275E-03
   7  norm          .10000E-03    .86779        .69486E-08** at limit **
   8  norm          48.299        18.095       -.17605E-06    .24315E-04
   9  Prefactor     .10000E-03    107.85       -.81825E-04** at limit **
  10  Prefactor     9.6724        21.225       -.25889E-06    .12183E-04
  11  Prefactor     .10000E-03    20.257        .91997E-05** at limit **
  12  Prefactor     .10000E-03    2.8698       -.67067E-07** at limit **
  13  norm          2.3622        .94655       -.46477E-07   -.59629E-04
  14  norm          .10000E-03    3.0691       -.11506E-06** at limit **
  15  Prefactor     .10000E-03    3.9976       -.28770E-07** at limit **
  16  Prefactor     .10000E-03    65.625        .66460E-04** at limit **
  17  norm          .10000E-03    3.2880        .52984E-07** at limit **
  18  Prefactor     .10000E-03    88.969        .10063E-04** at limit **
  19  Prefactor     10.488        10.855        .51635E-06    .16657E-03
  20  Prefactor     7.3239        20.978        .14623E-06   -.11542E-04
  21  norm          .10000E-03    36.223       -.14270E-04** at limit **
  22  Prefactor     .10000E-03    38.329       -.99102E-05** at limit **
  23  Prefactor     .10000E-03    2.8784        .45867E-07** at limit **
  24  Prefactor     40.218        36.246       -.85041E-05   -.19623E-04
  25  Prefactor     17.229        19.481        .80705E-06    .82763E-05
  26  Prefactor     21.337        16.054       -.23433E-06    .95408E-04
  27  Prefactor     14.295        7.2757        .34873E-05    .34905E-03
  28  Normalizat    1.0215        .18673        .98807E-06    .45313E-03
  29  Prefactor     .76713        .12864        .89134E-06    .45175E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.36706
  Prefactor  = 36.7904
  Prefactor  = 0.569162
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 21.0888
  norm       = 0.0001
  norm       = 48.299
  Prefactor  = 0.000100002
  Prefactor  = 9.67242
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.3622
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.4878
  Prefactor  = 7.32388
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.2179
  Prefactor  = 17.2286
  Prefactor  = 21.337
  Prefactor  = 14.2951
  Normalizat = 1.02146
  Prefactor  = 0.767131
 **********
 **   18 **HESSE 
 **********

 FCN=   6539.519     FROM HESSE     STATUS=OK           547 CALLS     4238 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3671        9.9416        .26398E-03   -1.5400    
   2  Prefactor     36.790        54.728        .66086E-04   -1.4494    
   3  Prefactor     .56916        47.639        .44878E-02   -1.5557    
   4  Prefactor     .10000E-03    1.2485        .88169E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.0572        .15986E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     21.089        14.413        .87228E-04   -1.4789    
   7  norm          .10000E-03    .87099        .73532E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          48.299        18.106        .57698E-04   -1.4317    
   9  Prefactor     .10000E-03    108.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.6724        21.225        .12880E-03   -1.5086    
  11  Prefactor     .10000E-03    20.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.8852        .13377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.3622        .94508        .47478E-04   -1.5401    
  14  norm          .10000E-03    3.1929        .27656E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.0088        .15785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    65.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.3051        .14316E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    88.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.488        10.789        .12381E-03   -1.5060    
  20  Prefactor     7.3239        20.970        .14816E-03   -1.5167    
  21  norm          .10000E-03    36.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    38.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.9237        .13355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     40.218        36.299        .63196E-04   -1.4439    
  25  Prefactor     17.229        19.486        .96488E-04   -1.4878    
  26  Prefactor     21.337        16.095        .86711E-04   -1.4784    
  27  Prefactor     14.295        7.2950        .10596E-03   -1.4952    
  28  Normalizat    1.0215        .21146        .26551E-03   -.92315    
  29  Prefactor     .76713        .14547        .21956E-03   -1.0095    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93498e-09
Minuit parameter uncertainties:
  1  9.70458
  2  54.8025
  3  10.4219
  4  1.61848e-06
  5  2.00815e-08
  6  14.4155
  7  4.80213e-07
  8  18.1081
  9  0.00103975
  10  21.2412
  11  3.09446e-05
  12  6.00199e-06
  13  0.945082
  14  8.15676e-06
  15  2.06801e-06
  16  7.69456e-05
  17  1.8381e-06
  18  1.91103e-05
  19  10.7912
  20  20.9909
  21  8.29885e-06
  22  2.16898e-05
  23  1.25465e-06
  24  36.3186
  25  19.493
  26  16.0979
  27  7.29546
  28  0.211635
  29  0.145547
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  8.299e-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:  7.671e-01  1.455e-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.021e+00  2.116e-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: 6.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.83e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/31547/likelihoodResults_396144001_396403201_4FGL_J2335.4-0128_daily_bin605.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) = 6539.51889223
delta logL = -0.000131297116241

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6539.51876158
delta logL = -6.44447027298e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1993       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0215       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76713       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=   6539.519     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      295 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    542.20        .36285E-02** at limit **
   2  alpha         2.7367        3.2438        .50000        .25769E-06
   3  Normalizat    1.0215        .17237E-01    .26551E-03    .20561E-03
   4  Prefactor     .76713        .12587E-01    .21956E-03    .26492E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.73667
  Normalizat = 1.02146
  Prefactor  = 0.767131
 **********
 **   18 **HESSE 
 **********

 FCN=   6539.519     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      322 TOTAL
                     EDM=   .85E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6151.3        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.7367        3.3865        .50000        .94812E-01
   3  Normalizat    1.0215        .38974E-01    .10621E-04   -.92315    
   4  Prefactor     .76713        .28461E-01    .43912E-04   -1.0095    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.53075e-08
Minuit parameter uncertainties:
  1  0.000318682
  2  2781.37
  3  0.038975
  4  0.0284612
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31547': 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) = 6539.51876083
delta logL = 1.03751517599e-07

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  3.187e-04  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  2.737e+00  2.781e+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:  7.671e-01  2.846e-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:  1.021e+00  3.898e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/31547/cmap_HighResolution_396144001_396403201_4FGL_J2335.4-0128_daily_bin605.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.83e-05', job_status='DONE', photon_flux_upper_limit='6.81e-08', time_completed='2021-09-30 00:30:50.227329', job_id='31547', GAL2='0.77', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1632987050.23', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='1.04e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='605' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:30:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 31547: <4FGL_J2335.4-0128_daily_bin605> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin605 353.869 -1.476 396144001 396403201 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 :                                   781.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             307.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            906 sec.

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

