/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 160 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7390
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2335.4-0128_daily_bin1095
RA = 353.869, Dec = -1.476
tmin = 523152001, tmax = 523411201
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='33313', job_status='RUN', time_executed='2021-09-30 00:23:52.648347', time_epoch_executed='1632986632.65' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='1095'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/33313

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/33313/ft1_4FGL_J2335.4-0128_daily_bin1095.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/33313/ft2_4FGL_J2335.4-0128_daily_bin1095.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/33313/ft1_4FGL_J2335.4-0128_daily_bin1095.fits outfile=/scratch/kocevski/33313/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin1095.fits ra=353.869 dec=-1.476 rad=12.0 tmin=523152001.0 tmax=523411201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.24
user 4.00
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/33313/ft1_filtered_4FGL_J2335.4-0128_daily_bin1095.fits" evtable="EVENTS" scfile=/scratch/kocevski/33313/ft2_4FGL_J2335.4-0128_daily_bin1095.fits sctable="SC_DATA" outfile=/scratch/kocevski/33313/ltcube_523152001_523411201_4FGL_J2335.4-0128_daily_bin1095.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/33313/ft2_4FGL_J2335.4-0128_daily_bin1095.fits
.....................!
real 11.77
user 11.39
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/33313/ft1_filtered_4FGL_J2335.4-0128_daily_bin1095.fits evtable="EVENTS" scfile=/scratch/kocevski/33313/ft2_4FGL_J2335.4-0128_daily_bin1095.fits sctable="SC_DATA" expcube=/scratch/kocevski/33313/ltcube_523152001_523411201_4FGL_J2335.4-0128_daily_bin1095.fits outfile=/scratch/kocevski/33313/expmap_523152001_523411201_4FGL_J2335.4-0128_daily_bin1095.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/33313/ltcube_523152001_523411201_4FGL_J2335.4-0128_daily_bin1095.fits
.....................!
real 192.69
user 187.96
sys 4.26

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/33313/ft1_filtered_4FGL_J2335.4-0128_daily_bin1095.fits scfile=/scratch/kocevski/33313/ft2_4FGL_J2335.4-0128_daily_bin1095.fits outfile=/scratch/kocevski/33313/cmap_523152001_523411201_4FGL_J2335.4-0128_daily_bin1095.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/33313/ft1_filtered_4FGL_J2335.4-0128_daily_bin1095.fits scfile=/scratch/kocevski/33313/ft2_4FGL_J2335.4-0128_daily_bin1095.fits outfile=/scratch/kocevski/33313/cmap_HighResolution_523152001_523411201_4FGL_J2335.4-0128_daily_bin1095.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/33313/ft1_filtered_4FGL_J2335.4-0128_daily_bin1095.fits evtable="EVENTS" scfile=/scratch/kocevski/33313/ft2_4FGL_J2335.4-0128_daily_bin1095.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/33313/Model_4FGL_J2335.4-0128_daily_bin1095.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/33313/ft1_filtered_4FGL_J2335.4-0128_daily_bin1095.fits.....................!
real 51.98
user 50.52
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3410       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.5559       1.0000         .10000E-03   10000.    
     7 'norm      '    .99048       1.0000         .10000E-03   10000.    
     8 'norm      '    .12900E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.105       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .79675E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .57493       1.0000         .10000E-03   10000.    
    14 'norm      '    .26633       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.2793       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.221       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .80558E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.411       1.0000         .10000E-03   10000.    
    21 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10394E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.7515       1.0000         .10000E-03   10000.    
    24 'Prefactor '    28.344       1.0000         .10000E-03   10000.    
    25 'Prefactor '    26.180       1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.8708       1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.9863       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0552       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .79189       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=   4888.723     FROM MIGRAD    STATUS=CONVERGED   1338 CALLS     4902 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3415        8.1203        .13398E-02    .24571E-03
   2  Prefactor     .10000E-03    29.035        .18142E-02** at limit **
   3  Prefactor     .10000E-03    16.313        .18142E-02** at limit **
   4  Prefactor     .10000E-03    1.7674        .90706E-03** at limit **
   5  norm          .10000E-03    1.1439        .72317E-03** at limit **
   6  Prefactor     2.5601        13.090        .12769E-02    .12253E-03
   7  norm          .98792        2.3896        .17881E-02    .71722E-03
   8  norm          .10002E-03    64.421        .43027E-02** at limit **
   9  Prefactor     26.113        28.009        .78406E-04    .78792E-04
  10  Prefactor     .10000E-03    18.920        .18142E-02** at limit **
  11  Prefactor     .10309E-03    93.355        .16720    ** at limit **
  12  Prefactor     .10000E-03    15.541        .18142E-02** at limit **
  13  norm          .57539        .67034        .62537E-03   -.27163E-03
  14  norm          .26905        28.694        .26022E-02    .11267E-03
  15  Prefactor     5.2794        6.7681        .17493E-03    .83837E-04
  16  Prefactor     12.217        48.582        .11459E-03    .10945E-03
  17  norm          .10000E-03    2.5714        .10935E-02** at limit **
  18  Prefactor     .10365E-03    231.05        .34546    ** at limit **
  19  Prefactor     .10000E-03    6.1445        .16870E-02** at limit **
  20  Prefactor     12.410        16.359        .11371E-03    .30594E-04
  21  norm          .10000E-03    9.7498        .18142E-02** at limit **
  22  Prefactor     .10000E-03    88.882        .18142E-02** at limit **
  23  Prefactor     9.7518        5.4187        .10954E-03    .15701E-02
  24  Prefactor     28.338        32.697        .75251E-04    .13089E-03
  25  Prefactor     26.176        24.392        .78294E-04    .74490E-04
  26  Prefactor     5.8738        16.869        .16574E-03   -.32856E-04
  27  Prefactor     3.9879        11.637        .10100E-02    .25652E-04
  28  Normalizat    1.0552        .24950        .25181E-03    .38433E-03
  29  Prefactor     .79192        .16763        .21072E-03    .61935E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.34154
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.56013
  norm       = 0.987916
  norm       = 0.000100021
  Prefactor  = 26.1127
  Prefactor  = 0.0001
  Prefactor  = 0.000103092
  Prefactor  = 0.0001
  norm       = 0.575395
  norm       = 0.269046
  Prefactor  = 5.2794
  Prefactor  = 12.2168
  norm       = 0.0001
  Prefactor  = 0.000103649
  Prefactor  = 0.000100001
  Prefactor  = 12.4104
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 9.75184
  Prefactor  = 28.3382
  Prefactor  = 26.176
  Prefactor  = 5.87381
  Prefactor  = 3.98794
  Normalizat = 1.05517
  Prefactor  = 0.791923
 **********
 **   18 **HESSE 
 **********

 FCN=   4888.723     FROM HESSE     STATUS=OK           551 CALLS     5453 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3415        8.1098        .53593E-04   -1.5402    
   2  Prefactor     .10000E-03    29.036        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.321        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.7675        .18141E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.1440        .14463E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.5601        13.066        .51076E-04   -1.5388    
   7  norm          .98792        2.3855        .71525E-04   -1.5509    
   8  norm          .10002E-03    65.431        .86054E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     26.113        28.008        .15681E-04   -1.4686    
  10  Prefactor     .10000E-03    18.923        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10309E-03    116.34        .14732       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.548        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .57539        .66980        .25015E-04   -1.5556    
  14  norm          .26905        28.484        .10409E-03   -1.5604    
  15  Prefactor     5.2794        6.7679        .69972E-05   -1.5248    
  16  Prefactor     12.217        48.578        .22918E-04   -1.5009    
  17  norm          .10000E-03    2.5715        .21870E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10365E-03    231.02        .34546       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.1453        .33740E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.410        16.358        .45483E-05   -1.5003    
  21  norm          .10000E-03    9.7501        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    88.894        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     9.7518        5.4187        .21908E-04   -1.5083    
  24  Prefactor     28.338        32.696        .15050E-04   -1.4643    
  25  Prefactor     26.176        24.388        .31318E-05   -1.4684    
  26  Prefactor     5.8738        16.869        .66297E-05   -1.5223    
  27  Prefactor     3.9879        11.615        .40401E-04   -1.5309    
  28  Normalizat    1.0552        .24991        .50362E-04   -.91205    
  29  Prefactor     .79192        .16771        .42145E-04   -1.0003    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1838e-09
Minuit parameter uncertainties:
  1  8.11363
  2  0.000253579
  3  9.42619e-05
  4  2.60071e-05
  5  7.1203e-06
  6  11.5713
  7  2.38573
  8  0.00237008
  9  28.022
  10  0.000163422
  11  0.0380042
  12  0.00010767
  13  0.669813
  14  5.53833
  15  6.76888
  16  48.7357
  17  3.92983e-06
  18  0.0582917
  19  0.00014074
  20  16.3644
  21  0.000109488
  22  0.000868231
  23  5.41894
  24  32.7167
  25  24.3976
  26  16.8827
  27  11.6219
  28  0.250192
  29  0.167813
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  1.095e-04  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.919e-01  1.678e-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.055e+00  2.502e-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.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.23e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/33313/likelihoodResults_523152001_523411201_4FGL_J2335.4-0128_daily_bin1095.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) = 4888.72327289
delta logL = -0.000488343014695

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4888.72278586
delta logL = -1.32066452352e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12409E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4895       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0551       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79201       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=   4888.723     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      236 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    375.19        .18142E-01** at limit **
   2  alpha         1.9164        3.8529        .16461       -.44202E-07
   3  Normalizat    1.0552        .29747E-01    .25180E-03    .80909E-04
   4  Prefactor     .79192        .21983E-01    .21073E-03    .93980E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.91638
  Normalizat = 1.05517
  Prefactor  = 0.791921
 **********
 **   18 **HESSE 
 **********

 FCN=   4888.723     FROM HESSE     STATUS=OK            23 CALLS      259 TOTAL
                     EDM=   .93E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    11.715        .23343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9164        3.2164        .65843E-02   -.23562    
   3  Normalizat    1.0552        .21927        .10072E-04   -.91205    
   4  Prefactor     .79192        .16207        .84291E-05   -1.0003    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.31092e-11
Minuit parameter uncertainties:
  1  4.72126e-05
  2  490.475
  3  0.219454
  4  0.162171
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/33313': 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) = 4888.72278369
delta logL = 8.56765836943e-07

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  4.721e-05  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  1.916e+00  4.905e+02  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.919e-01  1.622e-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.055e+00  2.195e-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/33313/cmap_HighResolution_523152001_523411201_4FGL_J2335.4-0128_daily_bin1095.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.23e-05', job_status='DONE', photon_flux_upper_limit='5.37e-08', time_completed='2021-09-30 00:36:14.198187', job_id='33313', GAL2='0.79', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1632987374.2', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='8.57e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='1095' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:36:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 33313: <4FGL_J2335.4-0128_daily_bin1095> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin1095> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 00:21:03 2021
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:21:04 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:21:04 2021
Terminated at Thu Sep 30 00:36:14 2021
Results reported at Thu Sep 30 00:36:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin1095 353.869 -1.476 523152001 523411201 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 :                                   737.14 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             275.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            911 sec.

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

