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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin1501
RA = 353.869, Dec = -1.476
tmin = 628387201, tmax = 628646401
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='35476', job_status='RUN', time_executed='2021-09-30 00:30:40.796838', time_epoch_executed='1632987040.8' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='1501'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/35476

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/35476/ft1_4FGL_J2335.4-0128_daily_bin1501.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/35476/ft2_4FGL_J2335.4-0128_daily_bin1501.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/35476/ft1_4FGL_J2335.4-0128_daily_bin1501.fits outfile=/scratch/kocevski/35476/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin1501.fits ra=353.869 dec=-1.476 rad=12.0 tmin=628387201.0 tmax=628646401.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.57
user 3.35
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/35476/ft2_4FGL_J2335.4-0128_daily_bin1501.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/35476/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin1501.fits evtable="EVENTS" outfile="/scratch/kocevski/35476/ft1_filtered_4FGL_J2335.4-0128_daily_bin1501.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.63
user 0.32
sys 0.20

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/35476/ft1_filtered_4FGL_J2335.4-0128_daily_bin1501.fits" evtable="EVENTS" scfile=/scratch/kocevski/35476/ft2_4FGL_J2335.4-0128_daily_bin1501.fits sctable="SC_DATA" outfile=/scratch/kocevski/35476/ltcube_628387201_628646401_4FGL_J2335.4-0128_daily_bin1501.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/35476/ft2_4FGL_J2335.4-0128_daily_bin1501.fits
.....................!
real 12.27
user 11.84
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/35476/ft1_filtered_4FGL_J2335.4-0128_daily_bin1501.fits evtable="EVENTS" scfile=/scratch/kocevski/35476/ft2_4FGL_J2335.4-0128_daily_bin1501.fits sctable="SC_DATA" expcube=/scratch/kocevski/35476/ltcube_628387201_628646401_4FGL_J2335.4-0128_daily_bin1501.fits outfile=/scratch/kocevski/35476/expmap_628387201_628646401_4FGL_J2335.4-0128_daily_bin1501.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/35476/ltcube_628387201_628646401_4FGL_J2335.4-0128_daily_bin1501.fits
.....................!
real 190.40
user 185.23
sys 4.77

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/35476/ft1_filtered_4FGL_J2335.4-0128_daily_bin1501.fits scfile=/scratch/kocevski/35476/ft2_4FGL_J2335.4-0128_daily_bin1501.fits outfile=/scratch/kocevski/35476/cmap_628387201_628646401_4FGL_J2335.4-0128_daily_bin1501.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/35476/ft1_filtered_4FGL_J2335.4-0128_daily_bin1501.fits scfile=/scratch/kocevski/35476/ft2_4FGL_J2335.4-0128_daily_bin1501.fits outfile=/scratch/kocevski/35476/cmap_HighResolution_628387201_628646401_4FGL_J2335.4-0128_daily_bin1501.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/35476/ft1_filtered_4FGL_J2335.4-0128_daily_bin1501.fits evtable="EVENTS" scfile=/scratch/kocevski/35476/ft2_4FGL_J2335.4-0128_daily_bin1501.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/35476/Model_4FGL_J2335.4-0128_daily_bin1501.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/35476/ft1_filtered_4FGL_J2335.4-0128_daily_bin1501.fits.....................!
real 50.49
user 49.12
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9723       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    45.790       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13188E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.407       1.0000         .10000E-03   10000.    
     7 'norm      '    .49441       1.0000         .10000E-03   10000.    
     8 'norm      '    56.110       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.8875       1.0000         .10000E-03   10000.    
    10 'Prefactor '    48.647       1.0000         .10000E-03   10000.    
    11 'Prefactor '    56.044       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10305E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.468       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    73.140       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.5866       1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.3187       1.0000         .10000E-03   10000.    
    24 'Prefactor '    71.915       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .66537       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .95077       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=   4791.122     FROM MIGRAD    STATUS=CONVERGED    714 CALLS     3773 TOTAL
                     EDM=   .81E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9708        12.043       -.99366E-07   -.51098E-04
   2  Prefactor     .10000E-03    27.550       -.48022E-06** at limit **
   3  Prefactor     45.797        20.706       -.39672E-06   -.11170E-03
   4  Prefactor     .10004E-03    14.004       -.32891E-06** at limit **
   5  norm          .10000E-03    1.8064        .24153E-06** at limit **
   6  Prefactor     23.427        23.431       -.16726E-05   -.14040E-03
   7  norm          .48482        9.7988        .18193E-05   -.27245E-03
   8  norm          56.109        19.504        .12893E-06   -.40064E-05
   9  Prefactor     3.8473        104.77       -.64854E-05   -.13396E-04
  10  Prefactor     48.645        25.130        .98320E-07    .42640E-05
  11  Prefactor     56.024        51.912       -.69584E-06   -.86563E-05
  12  Prefactor     .10000E-03    6.4454       -.76271E-06** at limit **
  13  norm          .10000E-03    .40217        .41969E-07** at limit **
  14  norm          .10000E-03    1.7287       -.78762E-07** at limit **
  15  Prefactor     13.469        10.296       -.64929E-07   -.18486E-04
  16  Prefactor     .10000E-03    15.131        .99672E-07** at limit **
  17  norm          .10000E-03    5.3204        .62035E-07** at limit **
  18  Prefactor     73.118        124.12       -.19321E-05   -.90772E-05
  19  Prefactor     .10000E-03    5.4466       -.12485E-06** at limit **
  20  Prefactor     1.5833        83.781        .40042E-05   -.42656E-05
  21  norm          .10000E-03    6.3652        .32308E-07** at limit **
  22  Prefactor     .10000E-03    29.563        .55722E-06** at limit **
  23  Prefactor     1.3175        3.7357        .90200E-06   -.38370E-04
  24  Prefactor     71.919        43.511        .25819E-06   -.86192E-05
  25  Prefactor     .10000E-03    7.3882        .13572E-06** at limit **
  26  Prefactor     .10000E-03    7.1339        .10594E-06** at limit **
  27  Prefactor     .10000E-03    3.3045        .99992E-07** at limit **
  28  Normalizat    .66544        .21873       -.55715E-06   -.13532E-03
  29  Prefactor     .95082        .14938       -.71305E-06   -.11087E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.97083
  Prefactor  = 0.0001
  Prefactor  = 45.7974
  Prefactor  = 0.000100045
  norm       = 0.0001
  Prefactor  = 23.4267
  norm       = 0.48482
  norm       = 56.1089
  Prefactor  = 3.84728
  Prefactor  = 48.6447
  Prefactor  = 56.0238
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 13.4692
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 73.1183
  Prefactor  = 0.0001
  Prefactor  = 1.58329
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.31747
  Prefactor  = 71.9189
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.665437
  Prefactor  = 0.950816
 **********
 **   18 **HESSE 
 **********

 FCN=   4791.122     FROM HESSE     STATUS=OK           555 CALLS     4328 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9708        12.037        .15193E-03   -1.5180    
   2  Prefactor     .10000E-03    27.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     45.797        20.106        .59251E-04   -1.4353    
   4  Prefactor     .10004E-03    55.959        .34245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    6.8057        .17129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     23.427        23.163        .82794E-04   -1.4740    
   7  norm          .48482        10.521        .26003E-02   -1.5569    
   8  norm          56.109        19.509        .53552E-04   -1.4208    
   9  Prefactor     3.8473        106.96        .20464E-03   -1.5316    
  10  Prefactor     48.645        25.124        .57493E-04   -1.4312    
  11  Prefactor     56.024        51.981        .53584E-04   -1.4210    
  12  Prefactor     .10000E-03    6.4062        .17044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .41760        .85618E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.7299        .88835E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.469        10.246        .10914E-03   -1.4974    
  16  Prefactor     .10000E-03    15.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.3503        .15581E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     73.118        124.03        .23472E-03   -1.3996    
  19  Prefactor     .10000E-03    5.4637        .15766E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.5833        84.262        .33699E-03   -1.5456    
  21  norm          .10000E-03    6.3658        .17055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    29.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.3175        3.7242        .21147E-03   -1.5478    
  24  Prefactor     71.919        43.605        .47340E-04   -1.4010    
  25  Prefactor     .10000E-03    7.3956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    7.1508        .18057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    3.3129        .12288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .66544        .24885        .31274E-03   -1.0527    
  29  Prefactor     .95082        .17089        .19626E-03   -.94387    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.71146e-10
Minuit parameter uncertainties:
  1  12.0416
  2  2.03773e-05
  3  20.1088
  4  0.00316004
  5  8.44001e-05
  6  23.1722
  7  4.51739
  8  19.5115
  9  40.652
  10  25.1291
  11  52.0236
  12  3.35631e-05
  13  8.69077e-07
  14  2.60522e-06
  15  10.2477
  16  2.87354e-06
  17  2.69147e-06
  18  124.468
  19  6.57211e-06
  20  23.1344
  21  1.39192e-06
  22  2.84744e-05
  23  3.72485
  24  43.6247
  25  1.4106e-07
  26  4.95908e-07
  27  2.03209e-06
  28  0.24927
  29  0.170982
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  1.392e-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:  9.508e-01  1.710e-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:  6.654e-01  2.493e-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: 4.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.80e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/35476/likelihoodResults_628387201_628646401_4FGL_J2335.4-0128_daily_bin1501.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) = 4791.12274373
delta logL = -0.000741830551306

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4791.12200205
delta logL = -1.50007508637e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10271E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4857       1.0000          .0000       5.0000    
     3 'Normalizat'    .66551       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95076       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=   4791.122     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      233 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    348.16        .17302E-01** at limit **
   2  alpha         1.5272        3.2566        .16461        .12287E-06
   3  Normalizat    .66544        .31975E-01    .31274E-03    .34171E-05
   4  Prefactor     .95081        .23837E-01    .19626E-03    .67775E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  alpha      = 1.5272
  Normalizat = 0.665438
  Prefactor  = 0.950815
 **********
 **   18 **HESSE 
 **********

 FCN=   4791.122     FROM HESSE     STATUS=OK            23 CALLS      256 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.8908        .21068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5272        3.2688        .65844E-02   -.39968    
   3  Normalizat    .66544        .22448        .12509E-04   -1.0527    
   4  Prefactor     .95081        .16748        .78503E-05   -.94387    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.93746e-10
Minuit parameter uncertainties:
  1  0.000301106
  2  440.938
  3  0.224791
  4  0.167571
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/35476': 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) = 4791.12199919
delta logL = 2.70714099315e-06

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  3.011e-04  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  1.527e+00  4.409e+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:  9.508e-01  1.676e-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:  6.654e-01  2.248e-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/35476/cmap_HighResolution_628387201_628646401_4FGL_J2335.4-0128_daily_bin1501.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.80e-05', job_status='DONE', photon_flux_upper_limit='4.33e-08', time_completed='2021-09-30 00:41:55.265973', job_id='35476', GAL2='0.95', fit_tolerance='1e-08', EG2='0.67', EG='0.67', time_epoch_completed='1632987715.27', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='2.71e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='1501' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:41:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 35476: <4FGL_J2335.4-0128_daily_bin1501> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin1501> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep 30 00:30:22 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:30:24 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:30:24 2021
Terminated at Thu Sep 30 00:41:56 2021
Results reported at Thu Sep 30 00:41:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin1501 353.869 -1.476 628387201 628646401 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 :                                   665.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             352.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   691 sec.
    Turnaround time :                            694 sec.

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

