/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 51 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 = 7551
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2335.4-0128_daily_bin1661
RA = 353.869, Dec = -1.476
tmin = 669859201, tmax = 670118401
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='85403', job_status='RUN', time_executed='2022-03-28 00:41:59.027537', time_epoch_executed='1648453319.03' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='1661'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/85403

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/85403/ft1_4FGL_J2335.4-0128_daily_bin1661.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/85403/ft2_4FGL_J2335.4-0128_daily_bin1661.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/85403/ft1_4FGL_J2335.4-0128_daily_bin1661.fits outfile=/scratch/kocevski/85403/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin1661.fits ra=353.869 dec=-1.476 rad=12.0 tmin=669859201.0 tmax=670118401.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.63
user 3.42
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/85403/ft2_4FGL_J2335.4-0128_daily_bin1661.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/85403/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin1661.fits evtable="EVENTS" outfile="/scratch/kocevski/85403/ft1_filtered_4FGL_J2335.4-0128_daily_bin1661.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.56
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 599

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/85403/ft1_filtered_4FGL_J2335.4-0128_daily_bin1661.fits" evtable="EVENTS" scfile=/scratch/kocevski/85403/ft2_4FGL_J2335.4-0128_daily_bin1661.fits sctable="SC_DATA" outfile=/scratch/kocevski/85403/ltcube_669859201_670118401_4FGL_J2335.4-0128_daily_bin1661.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/85403/ft2_4FGL_J2335.4-0128_daily_bin1661.fits
.....................!
real 12.35
user 11.96
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/85403/ft1_filtered_4FGL_J2335.4-0128_daily_bin1661.fits evtable="EVENTS" scfile=/scratch/kocevski/85403/ft2_4FGL_J2335.4-0128_daily_bin1661.fits sctable="SC_DATA" expcube=/scratch/kocevski/85403/ltcube_669859201_670118401_4FGL_J2335.4-0128_daily_bin1661.fits outfile=/scratch/kocevski/85403/expmap_669859201_670118401_4FGL_J2335.4-0128_daily_bin1661.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/85403/ltcube_669859201_670118401_4FGL_J2335.4-0128_daily_bin1661.fits
.....................!
real 193.02
user 187.58
sys 5.01

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/85403/ft1_filtered_4FGL_J2335.4-0128_daily_bin1661.fits scfile=/scratch/kocevski/85403/ft2_4FGL_J2335.4-0128_daily_bin1661.fits outfile=/scratch/kocevski/85403/cmap_669859201_670118401_4FGL_J2335.4-0128_daily_bin1661.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/85403/ft1_filtered_4FGL_J2335.4-0128_daily_bin1661.fits scfile=/scratch/kocevski/85403/ft2_4FGL_J2335.4-0128_daily_bin1661.fits outfile=/scratch/kocevski/85403/cmap_HighResolution_669859201_670118401_4FGL_J2335.4-0128_daily_bin1661.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/85403/ft1_filtered_4FGL_J2335.4-0128_daily_bin1661.fits evtable="EVENTS" scfile=/scratch/kocevski/85403/ft2_4FGL_J2335.4-0128_daily_bin1661.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/85403/Model_4FGL_J2335.4-0128_daily_bin1661.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/85403/ft1_filtered_4FGL_J2335.4-0128_daily_bin1661.fits.....................!
real 64.82
user 63.53
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    87.678       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.1284       1.0000         .10000E-03   10000.    
     5 'norm      '    3.6764       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    10.356       1.0000         .10000E-03   10000.    
     8 'norm      '    14.889       1.0000         .10000E-03   10000.    
     9 'Prefactor '    61.047       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.1157       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10598E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.929       1.0000         .10000E-03   10000.    
    13 'norm      '    .10236E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .13214E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.711       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.192       1.0000         .10000E-03   10000.    
    21 'norm      '    9.3052       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10738E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10258E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .32109E-01   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .24681E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    22.973       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .77637       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3623       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5330E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6725.919     FROM MIGRAD    STATUS=CONVERGED    129 CALLS     3224 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.1877       -.66489E-08** at limit **
   2  Prefactor     .10000E-03    18.575        .47308E-06** at limit **
   3  Prefactor     87.709        2.8920       -.13793E-06    .25764E-02
   4  Prefactor     7.1284        2.7439       -.15119E-06   -.23508E-02
   5  norm          3.6705        4.2204       -.28297E-05    .31225E-03
   6  Prefactor     .10000E-03    5.6337       -.45403E-05** at limit **
   7  norm          10.358        4.1591        .55203E-05    .19470E-02
   8  norm          14.887        1.0172        .99983E-07    .59365E-04
   9  Prefactor     61.038        1.4769       -.47888E-06    .45493E-03
  10  Prefactor     8.1144        1.0208        .40977E-06    .41930E-04
  11  Prefactor     .10001E-03    36.588        .62629E-04** at limit **
  12  Prefactor     18.930        1.1564       -.87327E-06    .50390E-04
  13  norm          .10000E-03    1.1114       -.51597E-07** at limit **
  14  norm          .10000E-03    8.3051        .98184E-07** at limit **
  15  Prefactor     11.711        1.0516       -.72487E-06   -.51246E-03
  16  Prefactor     .10001E-03    34.111       -.42832E-04** at limit **
  17  norm          .10000E-03    4.2650        .12587E-06** at limit **
  18  Prefactor     .10008E-03    56.202       -.48062E-04** at limit **
  19  Prefactor     .10000E-03    5.4774        .22015E-05** at limit **
  20  Prefactor     13.192        1.0074       -.47066E-07    .47012E-04
  21  norm          9.3044        1.0071       -.18657E-06    .60528E-04
  22  Prefactor     .10471E-03    50.634        .17490E-04** at limit **
  23  Prefactor     .10000E-03    5.7637        .26774E-05** at limit **
  24  Prefactor     .10016E-03    351.05       -.90352E-04** at limit **
  25  Prefactor     .10479E-03    62.602        .57403E-04** at limit **
  26  Prefactor     22.974        1.0556        .10174E-06   -.16286E-03
  27  Prefactor     .10000E-03    2.8171        .54785E-07** at limit **
  28  Normalizat    .77622        .25789        .32975E-05    .22432E-03
  29  Prefactor     1.3624        .19045        .54809E-06    .29946E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 87.709
  Prefactor  = 7.12841
  norm       = 3.67045
  Prefactor  = 0.0001
  norm       = 10.3578
  norm       = 14.887
  Prefactor  = 61.0382
  Prefactor  = 8.11439
  Prefactor  = 0.000100008
  Prefactor  = 18.9296
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 11.7114
  Prefactor  = 0.000100012
  norm       = 0.0001
  Prefactor  = 0.000100082
  Prefactor  = 0.0001
  Prefactor  = 13.1918
  norm       = 9.30441
  Prefactor  = 0.00010471
  Prefactor  = 0.000100001
  Prefactor  = 0.000100156
  Prefactor  = 0.000104787
  Prefactor  = 22.9744
  Prefactor  = 0.0001
  Normalizat = 0.776219
  Prefactor  = 1.36239
 **********
 **   18 **HESSE 
 **********

 FCN=   6725.919     FROM HESSE     STATUS=OK           633 CALLS     3857 TOTAL
                     EDM=   .74E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.1743        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.571        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     87.709        34.311        .10727E-02   -1.3832    
   4  Prefactor     7.1284        7.7871        .37561E-02   -1.5174    
   5  norm          3.6705        4.9077        .52663E-02   -1.5325    
   6  Prefactor     .10000E-03    5.6321        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10.358        5.7902        .31126E-02   -1.5064    
   8  norm          14.887        15.522        .25950E-02   -1.4936    
   9  Prefactor     61.038        47.011        .12838E-02   -1.4144    
  10  Prefactor     8.1144        14.148        .35184E-02   -1.5138    
  11  Prefactor     .10001E-03    37.589        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     18.930        13.244        .23015E-02   -1.4838    
  13  norm          .10000E-03    .51987        .21764E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    8.1983        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.711        9.9386        .29265E-02   -1.5023    
  16  Prefactor     .10001E-03    34.496        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.2431        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10008E-03    58.139        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.4642        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.192        23.902        .27571E-02   -1.4981    
  21  norm          9.3044        14.175        .32845E-02   -1.5098    
  22  Prefactor     .10471E-03    94.985        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.5939        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10016E-03    35.488        .13333       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10479E-03    16.954        .11472       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     22.974        20.911        .20893E-02   -1.4749    
  27  Prefactor     .10000E-03    2.8065        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .77622        .23821        .84404E-01   -1.0096    
  29  Prefactor     1.3624        .16611        .49053E-01   -.81470    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.39066e-08
Minuit parameter uncertainties:
  1  4.89063e-05
  2  0.000199997
  3  34.3187
  4  7.78818
  5  4.90824
  6  7.76463e-05
  7  5.79047
  8  15.5262
  9  47.0401
  10  14.1535
  11  0.00111622
  12  13.2457
  13  1.0761e-05
  14  0.000117507
  15  9.93998
  16  0.00127454
  17  2.31961e-05
  18  0.00436907
  19  5.93322e-05
  20  23.9194
  21  14.1803
  22  0.0423691
  23  0.000121757
  24  0.00470934
  25  0.0180231
  26  20.9179
  27  3.19846e-05
  28  0.238531
  29  0.166173
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  9.304e+00  1.418e+01  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.362e+00  1.662e-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.762e-01  2.385e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.76
Ra Dec: 353.869 -1.476
Photon Flux Upper Limit: 6.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.81e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/85403/likelihoodResults_669859201_670118401_4FGL_J2335.4-0128_daily_bin1661.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) = 6725.87267905
delta logL = 0.0465712615505

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6725.86567113
delta logL = 0.0535791848761

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.174       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9437       1.0000          .0000       5.0000    
     3 'Normalizat'    .78182       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3606       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=   6725.866     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      222 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.184        49.308        .29962E-02    .15348E-03
   2  alpha         1.9436        3.3798        .42519       -.84538E-06
   3  Normalizat    .78175        .23030        .84122E-01    .30073E-04
   4  Prefactor     1.3606        .16580        .49076E-01    .57414E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 11.1844
  alpha      = 1.94357
  Normalizat = 0.781751
  Prefactor  = 1.3606
 **********
 **   18 **HESSE 
 **********

 FCN=   6725.866     FROM HESSE     STATUS=OK            33 CALLS      255 TOTAL
                     EDM=   .60E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.184        16.739        .59924E-03   -1.5039    
   2  alpha         1.9436        1.5312        .48128E-01   -.22445    
   3  Normalizat    .78175        .25279        .37252E-03   -1.0075    
   4  Prefactor     1.3606        .18978        .21694E-03   -.81522    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.03203e-12
Minuit parameter uncertainties:
  1  16.7461
  2  1.65563
  3  0.253174
  4  0.18988
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/85403': 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) = 6725.86567088
delta logL = 0.0535794388916

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.118e+01  1.675e+01  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  1.944e+00  1.656e+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.361e+00  1.899e-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.818e-01  2.532e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.76
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/85403/cmap_HighResolution_669859201_670118401_4FGL_J2335.4-0128_daily_bin1661.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.81e-05', job_status='DONE', photon_flux_upper_limit='6.76e-08', time_completed='2022-03-28 00:54:36.081863', job_id='85403', GAL2='1.36', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1648454076.08', return_code2='0', ts='0.76', comment='SUCCESS', return_code='0', GAL='1.36', dlogl='5.36e-02', ts2='0.87', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='1661' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar 28 00:54:36 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0188>
Subject: Job 85403: <4FGL_J2335.4-0128_daily_bin1661> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin1661> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Mar 28 00:40:45 2022
Job was executed on host(s) <bullet0188>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar 28 00:40:47 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar 28 00:40:47 2022
Terminated at Mon Mar 28 00:54:36 2022
Results reported at Mon Mar 28 00:54:36 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin1661 353.869 -1.476 669859201 670118401 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 :                                   758.14 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             325.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   829 sec.
    Turnaround time :                            831 sec.

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

