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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin901
RA = 353.869, Dec = -1.476
tmin = 472867201, tmax = 473126401
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='33024', job_status='RUN', time_executed='2021-09-30 00:22:41.018536', time_epoch_executed='1632986561.02' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='901'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/33024

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/33024/ft1_4FGL_J2335.4-0128_daily_bin901.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/33024/ft2_4FGL_J2335.4-0128_daily_bin901.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/33024/ft1_4FGL_J2335.4-0128_daily_bin901.fits outfile=/scratch/kocevski/33024/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin901.fits ra=353.869 dec=-1.476 rad=12.0 tmin=472867201.0 tmax=473126401.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.87
user 3.65
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/33024/ft2_4FGL_J2335.4-0128_daily_bin901.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/33024/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin901.fits evtable="EVENTS" outfile="/scratch/kocevski/33024/ft1_filtered_4FGL_J2335.4-0128_daily_bin901.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/33024/ft1_filtered_4FGL_J2335.4-0128_daily_bin901.fits" evtable="EVENTS" scfile=/scratch/kocevski/33024/ft2_4FGL_J2335.4-0128_daily_bin901.fits sctable="SC_DATA" outfile=/scratch/kocevski/33024/ltcube_472867201_473126401_4FGL_J2335.4-0128_daily_bin901.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/33024/ft2_4FGL_J2335.4-0128_daily_bin901.fits
.....................!
real 11.75
user 11.43
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/33024/ft1_filtered_4FGL_J2335.4-0128_daily_bin901.fits evtable="EVENTS" scfile=/scratch/kocevski/33024/ft2_4FGL_J2335.4-0128_daily_bin901.fits sctable="SC_DATA" expcube=/scratch/kocevski/33024/ltcube_472867201_473126401_4FGL_J2335.4-0128_daily_bin901.fits outfile=/scratch/kocevski/33024/expmap_472867201_473126401_4FGL_J2335.4-0128_daily_bin901.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/33024/ltcube_472867201_473126401_4FGL_J2335.4-0128_daily_bin901.fits
.....................!
real 190.20
user 185.08
sys 4.81

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/33024/ft1_filtered_4FGL_J2335.4-0128_daily_bin901.fits scfile=/scratch/kocevski/33024/ft2_4FGL_J2335.4-0128_daily_bin901.fits outfile=/scratch/kocevski/33024/cmap_472867201_473126401_4FGL_J2335.4-0128_daily_bin901.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/33024/ft1_filtered_4FGL_J2335.4-0128_daily_bin901.fits scfile=/scratch/kocevski/33024/ft2_4FGL_J2335.4-0128_daily_bin901.fits outfile=/scratch/kocevski/33024/cmap_HighResolution_472867201_473126401_4FGL_J2335.4-0128_daily_bin901.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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/33024/ft1_filtered_4FGL_J2335.4-0128_daily_bin901.fits evtable="EVENTS" scfile=/scratch/kocevski/33024/ft2_4FGL_J2335.4-0128_daily_bin901.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/33024/Model_4FGL_J2335.4-0128_daily_bin901.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/33024/ft1_filtered_4FGL_J2335.4-0128_daily_bin901.fits.....................!
real 54.14
user 52.83
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21998E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    93.317       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.9462       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .98501       1.0000         .10000E-03   10000.    
     8 'norm      '    1.5193       1.0000         .10000E-03   10000.    
     9 'Prefactor '    64.543       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.521       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.355       1.0000         .10000E-03   10000.    
    13 'norm      '    2.0123       1.0000         .10000E-03   10000.    
    14 'norm      '    .10130E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.433       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.5970       1.0000         .10000E-03   10000.    
    17 'norm      '    20.303       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.0117       1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.023       1.0000         .10000E-03   10000.    
    21 'norm      '    .25188       1.0000         .10000E-03   10000.    
    22 'Prefactor '    31.778       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    26.529       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    9.5445       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .80016       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0996       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=   5241.090     FROM MIGRAD    STATUS=CONVERGED    749 CALLS     3840 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.7914        .20565E-05** at limit **
   2  Prefactor     93.415        78.682       -.63784E-05   -.88353E-04
   3  Prefactor     .10000E-03    19.588        .96293E-07** at limit **
   4  Prefactor     .10000E-03    6.5151        .34952E-06** at limit **
   5  norm          2.9463        2.7610        .10451E-06   -.30541E-03
   6  Prefactor     .10000E-03    32.750       -.77253E-05** at limit **
   7  norm          .98331        4.3790       -.26106E-06   -.82763E-03
   8  norm          1.5196        42.415       -.18180E-04   -.13030E-03
   9  Prefactor     64.534        48.538        .22933E-04    .12061E-04
  10  Prefactor     13.519        13.185       -.67973E-06    .41467E-04
  11  Prefactor     .10000E-03    35.465        .67520E-05** at limit **
  12  Prefactor     15.364        11.504       -.29357E-05   -.79391E-04
  13  norm          2.0112        1.1499        .14032E-06    .28976E-03
  14  norm          .10000E-03    10.239        .62626E-06** at limit **
  15  Prefactor     15.432        14.732       -.20977E-05   -.50365E-04
  16  Prefactor     4.5712        141.78       -.21391E-04   -.56389E-05
  17  norm          20.304        12.818        .71220E-06   -.33544E-04
  18  Prefactor     .10000E-03    110.25        .88975E-06** at limit **
  19  Prefactor     9.1397        12.994        .56707E-06    .26277E-03
  20  Prefactor     13.023        25.598        .19310E-05   -.17743E-04
  21  norm          .29449E-01    26.669       -.16673E-05    .90078E-04
  22  Prefactor     31.779        34.837       -.35438E-05   -.60447E-05
  23  Prefactor     .10000E-03    1.4870       -.72796E-08** at limit **
  24  Prefactor     26.516        36.990        .17823E-04    .15600E-04
  25  Prefactor     .10000E-03    10.955       -.96645E-07** at limit **
  26  Prefactor     9.5385        16.628       -.75707E-05   -.49079E-04
  27  Prefactor     .10000E-03    13.205        .70841E-07** at limit **
  28  Normalizat    .79993        .24171        .65711E-06    .63970E-05
  29  Prefactor     1.0998        .16640       -.87884E-06    .16357E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 93.4148
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.94631
  Prefactor  = 0.000100001
  norm       = 0.983312
  norm       = 1.5196
  Prefactor  = 64.5342
  Prefactor  = 13.5195
  Prefactor  = 0.0001
  Prefactor  = 15.3644
  norm       = 2.01115
  norm       = 0.000100001
  Prefactor  = 15.4318
  Prefactor  = 4.57122
  norm       = 20.3036
  Prefactor  = 0.0001
  Prefactor  = 9.13969
  Prefactor  = 13.0229
  norm       = 0.0294485
  Prefactor  = 31.7789
  Prefactor  = 0.0001
  Prefactor  = 26.5164
  Prefactor  = 0.0001
  Prefactor  = 9.53848
  Prefactor  = 0.0001
  Normalizat = 0.799932
  Prefactor  = 1.09977
 **********
 **   18 **HESSE 
 **********

 FCN=   5241.090     FROM HESSE     STATUS=OK           567 CALLS     4407 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.122        .37924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     93.415        76.128        .41603E-04   -1.3772    
   3  Prefactor     .10000E-03    19.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.5270        .17888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.9463        2.7543        .11065E-03   -1.5365    
   6  Prefactor     .10000E-03    32.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .98331        4.2554        .27452E-03   -1.5510    
   8  norm          1.5196        43.064        .34669E-03   -1.5461    
   9  Prefactor     64.534        48.137        .49952E-04   -1.4100    
  10  Prefactor     13.519        13.183        .10893E-03   -1.4972    
  11  Prefactor     .10000E-03    35.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     15.364        11.491        .10221E-03   -1.4924    
  13  norm          2.0112        1.1451        .55261E-04   -1.5424    
  14  norm          .10000E-03    10.509        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.432        14.717        .10195E-03   -1.4922    
  16  Prefactor     4.5712        142.05        .18773E-03   -1.5280    
  17  norm          20.304        12.804        .88890E-04   -1.4806    
  18  Prefactor     .10000E-03    110.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.1397        13.293        .13351E-03   -1.5103    
  20  Prefactor     13.023        25.532        .11100E-03   -1.4986    
  21  norm          .29449E-01    30.422        .95461E-01   -1.5674    
  22  Prefactor     31.779        34.846        .71080E-04   -1.4580    
  23  Prefactor     .10000E-03    1.4913        .86096E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     26.516        36.830        .77778E-04   -1.4678    
  25  Prefactor     .10000E-03    10.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     9.5385        16.654        .12972E-03   -1.5090    
  27  Prefactor     .10000E-03    13.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .79993        .27501        .32097E-03   -1.0007    
  29  Prefactor     1.0998        .19190        .20710E-03   -.89474    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96928e-09
Minuit parameter uncertainties:
  1  2.02695e-05
  2  76.2072
  3  3.81129e-05
  4  9.16585e-05
  5  2.75441
  6  0.00031279
  7  4.09144
  8  16.1913
  9  48.1663
  10  13.1857
  11  0.0001907
  12  11.4922
  13  1.14514
  14  0.000216074
  15  14.7205
  16  51.0975
  17  12.8054
  18  9.92998e-06
  19  13.2976
  20  25.553
  21  1.89075
  22  34.8681
  23  1.92999e-07
  24  36.8611
  25  4.76985e-05
  26  16.6618
  27  4.1057e-05
  28  0.275494
  29  0.192016
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  2.945e-02  1.891e+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

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  1.100e+00  1.920e-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:  7.999e-01  2.755e-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.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.73e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/33024/likelihoodResults_472867201_473126401_4FGL_J2335.4-0128_daily_bin901.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) = 5241.09019623
delta logL = 1.5849906049e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5240.72803768
delta logL = 0.362174394349

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.9979       1.0000         .10000E-03   10000.    
     2 'alpha     '    .96488       1.0000          .0000       5.0000    
     3 'Normalizat'    .80502       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0940       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=   5240.728     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      322 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.003        17.971        .12673E-03   -.13959E-03
   2  alpha         .96509        1.1906        .41350E-02    .62328E-05
   3  Normalizat    .80503        .25160        .31999E-03   -.58125E-04
   4  Prefactor     1.0940        .18883        .20742E-03   -.62528E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.0025
  alpha      = 0.965088
  Normalizat = 0.805027
  Prefactor  = 1.09399
 **********
 **   18 **HESSE 
 **********

 FCN=   5240.728     FROM HESSE     STATUS=OK            23 CALLS      345 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.003        18.022        .50691E-05   -1.5075    
   2  alpha         .96509        1.1935        .16540E-03   -.66107    
   3  Normalizat    .80503        .25179        .12799E-04   -.99882    
   4  Prefactor     1.0940        .18897        .41484E-04   -.89659    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.64892e-11
Minuit parameter uncertainties:
  1  18.0321
  2  1.28178
  3  0.252156
  4  0.189087
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/33024': 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) = 5240.72803765
delta logL = 0.362174430054

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  1.094e+00  1.891e-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.050e-01  2.522e-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/33024/cmap_HighResolution_472867201_473126401_4FGL_J2335.4-0128_daily_bin901.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.73e-05', job_status='DONE', photon_flux_upper_limit='6.58e-08', time_completed='2021-09-30 00:34:38.402423', job_id='33024', GAL2='1.09', fit_tolerance='1e-08', EG2='0.81', EG='0.80', time_epoch_completed='1632987278.4', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='3.62e-01', ts2='0.73', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='901' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:34:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0294>
Subject: Job 33024: <4FGL_J2335.4-0128_daily_bin901> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin901> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 00:20:38 2021
Job was executed on host(s) <bullet0294>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:20:40 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:40 2021
Terminated at Thu Sep 30 00:34:39 2021
Results reported at Thu Sep 30 00:34:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin901 353.869 -1.476 472867201 473126401 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 :                                   715.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             274.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            841 sec.

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

