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


Performing analysis on: 4FGL_J0335.1-4459_daily_bin1005
RA = 53.7846, Dec = -44.9916
tmin = 499824001, tmax = 500083201
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='673967', job_status='RUN', time_executed='2021-08-18 19:04:39.299586', time_epoch_executed='1629338679.3' WHERE source_name='4FGL J0335.1-4459' and cadence='daily' and bin_id='1005'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/673967

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/673967/ft1_4FGL_J0335.1-4459_daily_bin1005.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/673967/ft2_4FGL_J0335.1-4459_daily_bin1005.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/673967/ft1_4FGL_J0335.1-4459_daily_bin1005.fits outfile=/scratch/kocevski/673967/ft1_filteredMKT_4FGL_J0335.1-4459_daily_bin1005.fits ra=53.7846 dec=-44.9916 rad=12.0 tmin=499824001.0 tmax=500083201.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 14.37
user 4.97
sys 9.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/673967/ft2_4FGL_J0335.1-4459_daily_bin1005.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/673967/ft2_4FGL_J0335.1-4459_daily_bin1005.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/673967/ft1_filteredMKT_4FGL_J0335.1-4459_daily_bin1005.fits evtable="EVENTS" outfile="/scratch/kocevski/673967/ft1_filtered_4FGL_J0335.1-4459_daily_bin1005.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 9.41
user 0.35
sys 8.87

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/673967/ft1_filtered_4FGL_J0335.1-4459_daily_bin1005.fits" evtable="EVENTS" scfile=/scratch/kocevski/673967/ft2_4FGL_J0335.1-4459_daily_bin1005.fits sctable="SC_DATA" outfile=/scratch/kocevski/673967/ltcube_499824001_500083201_4FGL_J0335.1-4459_daily_bin1005.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/673967/ft2_4FGL_J0335.1-4459_daily_bin1005.fits
.....................!
real 28.32
user 15.23
sys 10.11

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/673967/ft1_filtered_4FGL_J0335.1-4459_daily_bin1005.fits evtable="EVENTS" scfile=/scratch/kocevski/673967/ft2_4FGL_J0335.1-4459_daily_bin1005.fits sctable="SC_DATA" expcube=/scratch/kocevski/673967/ltcube_499824001_500083201_4FGL_J0335.1-4459_daily_bin1005.fits outfile=/scratch/kocevski/673967/expmap_499824001_500083201_4FGL_J0335.1-4459_daily_bin1005.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/673967/ltcube_499824001_500083201_4FGL_J0335.1-4459_daily_bin1005.fits
.....................!
real 201.25
user 185.08
sys 15.42

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
Extended source Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Added 189 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0335.1-4459 @ 53.7846 -44.9916

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/673967/ft1_filtered_4FGL_J0335.1-4459_daily_bin1005.fits scfile=/scratch/kocevski/673967/ft2_4FGL_J0335.1-4459_daily_bin1005.fits outfile=/scratch/kocevski/673967/cmap_499824001_500083201_4FGL_J0335.1-4459_daily_bin1005.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=53.7846 yref=-44.9916 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 9.32
user 0.38
sys 8.69

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/673967/ft1_filtered_4FGL_J0335.1-4459_daily_bin1005.fits scfile=/scratch/kocevski/673967/ft2_4FGL_J0335.1-4459_daily_bin1005.fits outfile=/scratch/kocevski/673967/cmap_HighResolution_499824001_500083201_4FGL_J0335.1-4459_daily_bin1005.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=53.7846 yref=-44.9916 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 9.28
user 0.39
sys 8.69

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/673967/ft1_filtered_4FGL_J0335.1-4459_daily_bin1005.fits evtable="EVENTS" scfile=/scratch/kocevski/673967/ft2_4FGL_J0335.1-4459_daily_bin1005.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/673967/Model_4FGL_J0335.1-4459_daily_bin1005.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/673967/ft1_filtered_4FGL_J0335.1-4459_daily_bin1005.fits.....................!
real 88.12
user 74.34
sys 12.59

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/673967/ft1_filtered_4FGL_J0335.1-4459_daily_bin1005.fits', '/scratch/kocevski/673967/ft2_4FGL_J0335.1-4459_daily_bin1005.fits', expMap='/scratch/kocevski/673967/expmap_499824001_500083201_4FGL_J0335.1-4459_daily_bin1005.fits', expCube='/scratch/kocevski/673967/ltcube_499824001_500083201_4FGL_J0335.1-4459_daily_bin1005.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/673967/Model_4FGL_J0335.1-4459_daily_bin1005.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0335.1-4459'

4FGL J0335.1-4459
   Spectrum: PowerLaw
301    Prefactor:  9.020e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  1.981e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  2.173e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/673967/ft1_filtered_4FGL_J0335.1-4459_daily_bin1005.fits
Spacecraft file(s): /scratch/kocevski/673967/ft2_4FGL_J0335.1-4459_daily_bin1005.fits
Exposure map: /scratch/kocevski/673967/expmap_499824001_500083201_4FGL_J0335.1-4459_daily_bin1005.fits
Exposure cube: /scratch/kocevski/673967/ltcube_499824001_500083201_4FGL_J0335.1-4459_daily_bin1005.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/673967/Model_4FGL_J0335.1-4459_daily_bin1005.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) = 3417.00861824

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.7938       1.0000         .10000E-03   10000.    
     3 'Prefactor '    160.29       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11736E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.640       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.2895       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.0043       1.0000         .10000E-03   10000.    
    12 'norm      '    1.3061       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.1323       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.780       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.4432       1.0000         .10000E-03   10000.    
    23 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1591       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87666       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6090E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3416.966     FROM MIGRAD    STATUS=CONVERGED    588 CALLS     2864 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.490        .64386E-06** at limit **
   2  norm          3.7946        2.2044       -.28631E-07    .10942E-03
   3  Prefactor     160.16        290.27       -.10764E-03    .14216E-05
   4  Prefactor     .10000E-03    9.9213        .26392E-06** at limit **
   5  Prefactor     15.640        22.340        .22134E-07    .18266E-03
   6  Prefactor     1.0657        275.98       -.72875E-04   -.10236E-04
   7  Prefactor     .10000E-03    6.3389        .43099E-06** at limit **
   8  Prefactor     .10000E-03    11.939        .70531E-06** at limit **
   9  Prefactor     .10000E-03    95.312       -.41324E-04** at limit **
  10  Prefactor     .10000E-03    15.537       -.97688E-06** at limit **
  11  norm          4.0042        3.8503       -.12012E-06   -.30268E-04
  12  norm          1.3061        1.2052       -.16483E-06   -.37613E-03
  13  Prefactor     .10000E-03    117.11        .74315E-04** at limit **
  14  Prefactor     .10000E-03    17.827        .30862E-06** at limit **
  15  norm          .10000E-03    .13182       -.14269E-07** at limit **
  16  norm          7.1318        8.6592       -.67675E-06   -.62140E-04
  17  Prefactor     .10000E-03    11.762       -.53687E-05** at limit **
  18  Prefactor     .10000E-03    12.056        .48138E-05** at limit **
  19  Prefactor     .10000E-03    6.1697        .24416E-07** at limit **
  20  norm          .10000E-03    2.3766       -.15570E-06** at limit **
  21  Prefactor     19.781        16.199        .13742E-05   -.31067E-04
  22  Prefactor     9.4436        4.1480       -.13615E-06   -.21129E-04
  23  norm          .10000E-03    4.2220       -.44140E-07** at limit **
  24  Normalizat    1.1587        .23484       -.14114E-05    .26769E-03
  25  Prefactor     .87715        .26302        .66923E-05    .42354E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.79456
  Prefactor  = 160.156
  Prefactor  = 0.0001
  Prefactor  = 15.6403
  Prefactor  = 1.06575
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.00415
  norm       = 1.30605
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.13182
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 19.7806
  Prefactor  = 9.44357
  norm       = 0.0001
  Normalizat = 1.15875
  Prefactor  = 0.877152
 **********
 **   18 **HESSE 
 **********

 FCN=   3416.966     FROM HESSE     STATUS=OK           425 CALLS     3289 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.7946        2.2025        .63144E-04   -1.5318    
   3  Prefactor     160.16        290.34        .15925E-03   -1.3170    
   4  Prefactor     .10000E-03    10.028        .17948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.640        22.276        .10128E-03   -1.4917    
   6  Prefactor     1.0657        288.94        .39006E-02   -1.5501    
   7  Prefactor     .10000E-03    6.3513        .14361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    95.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.0042        3.8473        .10878E-03   -1.5308    
  12  norm          1.3061        1.1850        .58806E-04   -1.5479    
  13  Prefactor     .10000E-03    117.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    17.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .13838        .41287E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.1318        8.6378        .15020E-03   -1.5174    
  17  Prefactor     .10000E-03    11.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.1720        .14180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.3807        .88008E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     19.781        16.218        .90058E-04   -1.4818    
  22  Prefactor     9.4436        4.1488        .76461E-04   -1.5093    
  23  norm          .10000E-03    4.2262        .11730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1587        .28575        .23137E-03   -.87887    
  25  Prefactor     .87715        .31810        .29425E-03   -.96944    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37276e-09
Minuit parameter uncertainties:
  1  2.40904e-05
  2  2.20259
  3  292.996
  4  1.14255e-05
  5  22.2881
  6  35.2678
  7  0.000114081
  8  8.07959e-07
  9  1.31856e-06
  10  8.3081e-06
  11  3.84751
  12  1.18503
  13  0.000291113
  14  2.89848e-05
  15  7.86553e-07
  16  8.63928
  17  1.31444e-05
  18  1.02854e-05
  19  8.66747e-06
  20  2.65618e-06
  21  16.222
  22  4.14889
  23  2.43676e-06
  24  0.286137
  25  0.318769
Done.

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

Extracting fit parameters...

4FGL J0335.1-4459
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  2.911e-04  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  1.981e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  2.173e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  8.772e-01  3.188e-01  0.000e+00  1.000e+01 ( 1.000e+00)
607        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
608        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
602   Normalization:  1.159e+00  2.861e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 53.785 -44.992
Photon Flux Upper Limit: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/673967/likelihoodResults_499824001_500083201_4FGL_J0335.1-4459_daily_bin1005.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) = 3416.96577208
delta logL = -4.05888986279e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3416.96573156
delta logL = -6.45500222163e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9442       1.0000          .0000       10.000    
     3 'Normalizat'    1.1587       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87715       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6090E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3416.966     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      250 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006E-03    1400.8        .90712E-02** at limit **
   2  Index         2.0280        8.1854        .50000       -.80585E-05
   3  Normalizat    1.1587        .18963E-01    .52332E-01    .96521E-05
   4  Prefactor     .87716        .21394E-01    .66518E-01    .69824E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100058
  Index      = 2.028
  Normalizat = 1.15874
  Prefactor  = 0.877156
 **********
 **   18 **HESSE 
 **********

 FCN=   3416.966     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      283 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10006E-03    7183.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0280        5.3647        .50000       -.63652    
   3  Normalizat    1.1587        .36703E-01    .23138E-03   -.87887    
   4  Prefactor     .87716        .41373E-01    .29425E-03   -.96944    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.79442e-08
Minuit parameter uncertainties:
  1  0.034867
  2  24.5745
  3  0.0367037
  4  0.0413743
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/673967': 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): 102
logL (Free Index) = 3416.9657314
delta logL = 8.72773853189e-08

Extracting fit parameters...

4FGL J0335.1-4459
   Spectrum: PowerLaw
301    Prefactor:  1.001e-04  3.487e-02  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.028e+00  2.457e+01  0.000e+00  1.000e+01 (-1.000e+00)
303        Scale:  2.173e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  8.772e-01  4.137e-02  0.000e+00  1.000e+01 ( 1.000e+00)
607        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
608        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
602   Normalization:  1.159e+00  3.670e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 53.785 -44.992

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/673967/cmap_HighResolution_499824001_500083201_4FGL_J0335.1-4459_daily_bin1005.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.61e-03', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-08-18 19:16:58.127851', job_id='673967', GAL2='0.88', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1629339418.13', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='8.73e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='1005' AND source_name='4FGL J0335.1-4459' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 18 19:16:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 673967: <4FGL_J0335.1-4459_daily_bin1005> in cluster <slac> Done

Job <4FGL_J0335.1-4459_daily_bin1005> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Wed Aug 18 19:00:48 2021
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 18 19:00:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Aug 18 19:00:49 2021
Terminated at Wed Aug 18 19:17:00 2021
Results reported at Wed Aug 18 19:17:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0335.1-4459_daily_bin1005 53.7846 -44.9916 499824001 500083201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0335.1-4459 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   863.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            972 sec.

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

