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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin1013
RA = 353.869, Dec = -1.476
tmin = 501897601, tmax = 502156801
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='33192', job_status='RUN', time_executed='2021-09-30 00:23:06.126383', time_epoch_executed='1632986586.13' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='1013'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/33192

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/33192/ft1_4FGL_J2335.4-0128_daily_bin1013.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/33192/ft2_4FGL_J2335.4-0128_daily_bin1013.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/33192/ft1_4FGL_J2335.4-0128_daily_bin1013.fits outfile=/scratch/kocevski/33192/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin1013.fits ra=353.869 dec=-1.476 rad=12.0 tmin=501897601.0 tmax=502156801.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.24
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/33192/ft1_filtered_4FGL_J2335.4-0128_daily_bin1013.fits" evtable="EVENTS" scfile=/scratch/kocevski/33192/ft2_4FGL_J2335.4-0128_daily_bin1013.fits sctable="SC_DATA" outfile=/scratch/kocevski/33192/ltcube_501897601_502156801_4FGL_J2335.4-0128_daily_bin1013.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/33192/ft2_4FGL_J2335.4-0128_daily_bin1013.fits
.....................!
real 11.63
user 11.28
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/33192/ft1_filtered_4FGL_J2335.4-0128_daily_bin1013.fits evtable="EVENTS" scfile=/scratch/kocevski/33192/ft2_4FGL_J2335.4-0128_daily_bin1013.fits sctable="SC_DATA" expcube=/scratch/kocevski/33192/ltcube_501897601_502156801_4FGL_J2335.4-0128_daily_bin1013.fits outfile=/scratch/kocevski/33192/expmap_501897601_502156801_4FGL_J2335.4-0128_daily_bin1013.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/33192/ltcube_501897601_502156801_4FGL_J2335.4-0128_daily_bin1013.fits
.....................!
real 190.27
user 185.42
sys 4.55

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/33192/ft1_filtered_4FGL_J2335.4-0128_daily_bin1013.fits scfile=/scratch/kocevski/33192/ft2_4FGL_J2335.4-0128_daily_bin1013.fits outfile=/scratch/kocevski/33192/cmap_501897601_502156801_4FGL_J2335.4-0128_daily_bin1013.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/33192/ft1_filtered_4FGL_J2335.4-0128_daily_bin1013.fits scfile=/scratch/kocevski/33192/ft2_4FGL_J2335.4-0128_daily_bin1013.fits outfile=/scratch/kocevski/33192/cmap_HighResolution_501897601_502156801_4FGL_J2335.4-0128_daily_bin1013.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/33192/ft1_filtered_4FGL_J2335.4-0128_daily_bin1013.fits evtable="EVENTS" scfile=/scratch/kocevski/33192/ft2_4FGL_J2335.4-0128_daily_bin1013.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/33192/Model_4FGL_J2335.4-0128_daily_bin1013.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/33192/ft1_filtered_4FGL_J2335.4-0128_daily_bin1013.fits.....................!
real 64.48
user 63.21
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.295       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.3655       1.0000         .10000E-03   10000.    
     6 'Prefactor '    25.744       1.0000         .10000E-03   10000.    
     7 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    33.764       1.0000         .10000E-03   10000.    
     9 'Prefactor '    29.450       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.299       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.8689       1.0000         .10000E-03   10000.    
    14 'norm      '    1.1858       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    43.474       1.0000         .10000E-03   10000.    
    17 'norm      '    14.996       1.0000         .10000E-03   10000.    
    18 'Prefactor '    83.741       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.918       1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.187       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .14386E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    27.824       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10655E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0671       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .66405       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=   6574.495     FROM MIGRAD    STATUS=CONVERGED    710 CALLS     3664 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.295        7.2698       -.62313E-07    .13170E-03
   2  Prefactor     .10000E-03    11.079       -.38257E-05** at limit **
   3  Prefactor     .10000E-03    10.460        .26816E-05** at limit **
   4  Prefactor     .10000E-03    3.8632        .26219E-06** at limit **
   5  norm          2.3662        2.0486       -.44642E-06   -.55209E-03
   6  Prefactor     25.747        14.111       -.74812E-06    .46011E-04
   7  norm          .10000E-03    1.5968       -.37637E-07** at limit **
   8  norm          33.765        13.159       -.44598E-06    .74231E-04
   9  Prefactor     29.446        30.704       -.47206E-05    .96477E-05
  10  Prefactor     .10000E-03    6.8927       -.43092E-05** at limit **
  11  Prefactor     12.298        17.931        .62595E-06    .52402E-04
  12  Prefactor     .10000E-03    2.3694        .22854E-06** at limit **
  13  norm          1.8690        .90556       -.19909E-06    .12440E-02
  14  norm          1.1863        4.3661       -.14695E-05   -.89912E-03
  15  Prefactor     .10000E-03    4.5641        .12539E-05** at limit **
  16  Prefactor     43.478        41.375        .45042E-05    .49505E-04
  17  norm          14.995        9.4661       -.22430E-07   -.33960E-04
  18  Prefactor     83.787        106.76        .49249E-04    .46980E-04
  19  Prefactor     .10000E-03    8.2897        .69403E-06** at limit **
  20  Prefactor     17.913        21.208       -.31018E-05   -.81787E-05
  21  norm          .10000E-03    6.3604        .29034E-05** at limit **
  22  Prefactor     11.153        66.495       -.81272E-04    .37247E-04
  23  Prefactor     .10000E-03    1.5966       -.10168E-05** at limit **
  24  Prefactor     27.819        26.703       -.35977E-05    .60680E-04
  25  Prefactor     .10000E-03    30.751       -.48296E-06** at limit **
  26  Prefactor     .10000E-03    4.4689       -.13815E-05** at limit **
  27  Prefactor     .10000E-03    3.2662       -.33339E-06** at limit **
  28  Normalizat    1.0670        .17373        .69134E-05    .12899E-03
  29  Prefactor     .66411        .12168       -.18304E-05    .62034E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.2948
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.36621
  Prefactor  = 25.7471
  norm       = 0.0001
  norm       = 33.7647
  Prefactor  = 29.4462
  Prefactor  = 0.0001
  Prefactor  = 12.2984
  Prefactor  = 0.0001
  norm       = 1.869
  norm       = 1.1863
  Prefactor  = 0.0001
  Prefactor  = 43.4785
  norm       = 14.9949
  Prefactor  = 83.7871
  Prefactor  = 0.000100001
  Prefactor  = 17.9126
  norm       = 0.0001
  Prefactor  = 11.1529
  Prefactor  = 0.0001
  Prefactor  = 27.8191
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.06696
  Prefactor  = 0.664114
 **********
 **   18 **HESSE 
 **********

 FCN=   6574.495     FROM HESSE     STATUS=OK           557 CALLS     4221 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.295        7.2762        .11920E-03   -1.5036    
   2  Prefactor     .10000E-03    11.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.9571        .31054E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.3662        2.0415        .10323E-03   -1.5400    
   6  Prefactor     25.747        14.082        .78952E-04   -1.4693    
   7  norm          .10000E-03    1.6212        .99801E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          33.765        13.164        .68963E-04   -1.4545    
   9  Prefactor     29.446        30.722        .73828E-04   -1.4622    
  10  Prefactor     .10000E-03    6.9181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.298        17.923        .11422E-03   -1.5006    
  12  Prefactor     .10000E-03    2.3753        .12183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.8690        .89782        .50245E-04   -1.5435    
  14  norm          1.1863        4.3486        .30488E-03   -1.5490    
  15  Prefactor     .10000E-03    4.5825        .16908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     43.478        41.367        .60802E-04   -1.4388    
  17  norm          14.995        9.4581        .10343E-03   -1.4933    
  18  Prefactor     83.787        107.31        .21948E-03   -1.3875    
  19  Prefactor     .10000E-03    8.5011        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     17.913        21.209        .94619E-04   -1.4861    
  21  norm          .10000E-03    6.3659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.153        65.643        .11978E-03   -1.5040    
  23  Prefactor     .10000E-03    3.7883        .33957E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     27.819        26.712        .75950E-04   -1.4653    
  25  Prefactor     .10000E-03    31.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    4.4788        .16740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    3.3303        .14302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0670        .19750        .24061E-03   -.90820    
  29  Prefactor     .66411        .13808        .22049E-03   -1.0495    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.65435e-09
Minuit parameter uncertainties:
  1  7.27675
  2  5.94936e-06
  3  4.25472e-05
  4  2.31847e-05
  5  2.04157
  6  14.0841
  7  8.21715e-06
  8  13.1654
  9  30.7381
  10  1.82627e-05
  11  17.9303
  12  2.82711e-05
  13  0.897831
  14  4.34975
  15  2.37782e-07
  16  41.3946
  17  9.459
  18  107.559
  19  0.000167956
  20  21.2177
  21  3.28275e-05
  22  54.2047
  23  8.00299e-05
  24  26.7237
  25  0.000187501
  26  1.10102e-05
  27  4.04311e-06
  28  0.197641
  29  0.138147
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  3.283e-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:  6.641e-01  1.381e-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.067e+00  1.976e-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: 3.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.49e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/33192/likelihoodResults_501897601_502156801_4FGL_J2335.4-0128_daily_bin1013.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) = 6574.49541452
delta logL = -0.000747453994336

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6574.49466714
delta logL = -7.57936504669e-08

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.5012       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0669       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66416       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=   6574.495     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      194 TOTAL
                     EDM=   .82E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.3452        .90712E-02** at limit **
   2  alpha         2.4977        3.5513        .41152        .28341E-05
   3  Normalizat    1.0670        .16106        .39544E-01    .75013E-05
   4  Prefactor     .66411        .11962        .41922E-01    .14111E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.4977
  Normalizat = 1.06697
  Prefactor  = 0.66411
 **********
 **   18 **HESSE 
 **********

 FCN=   6574.495     FROM HESSE     STATUS=OK            33 CALLS      227 TOTAL
                     EDM=   .80E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.3570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4977        3.5514        .50000       -.91869E-03
   3  Normalizat    1.0670        .18215        .24061E-03   -.90820    
   4  Prefactor     .66411        .13524        .22049E-03   -1.0495    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.03037e-12
Minuit parameter uncertainties:
  1  1.21062e-07
  2  2.50015
  3  0.182258
  4  0.135311
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/33192': 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) = 6574.49466705
delta logL = 8.4637576947e-09

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  1.211e-07  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  2.498e+00  2.500e+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:  6.641e-01  1.353e-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.067e+00  1.823e-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/33192/cmap_HighResolution_501897601_502156801_4FGL_J2335.4-0128_daily_bin1013.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.49e-05', job_status='DONE', photon_flux_upper_limit='3.60e-08', time_completed='2021-09-30 00:36:09.784191', job_id='33192', GAL2='0.66', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1632987369.78', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='8.46e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='1013' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:36:09 PDT 2021


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

Job <4FGL_J2335.4-0128_daily_bin1013> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 00:20:52 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:20:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 00:20:54 2021
Terminated at Thu Sep 30 00:36:10 2021
Results reported at Thu Sep 30 00:36:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin1013 353.869 -1.476 501897601 502156801 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 :                                 1257 MB
    Average Memory :                             303.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            918 sec.

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

