/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 217 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J0343.2-2529_daily_bin1713
RA = 55.8136, Dec = -25.4943
tmin = 683337601, tmax = 683596801
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='15995', job_status='RUN', time_executed='2022-09-16 11:00:51.780215', time_epoch_executed='1663351251.78' WHERE source_name='4FGL J0343.2-2529' and cadence='daily' and bin_id='1713'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/15995

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/15995/ft1_4FGL_J0343.2-2529_daily_bin1713.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/15995/ft2_4FGL_J0343.2-2529_daily_bin1713.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/15995/ft1_4FGL_J0343.2-2529_daily_bin1713.fits outfile=/scratch/kocevski/15995/ft1_filteredMKT_4FGL_J0343.2-2529_daily_bin1713.fits ra=55.8136 dec=-25.4943 rad=12.0 tmin=683337601.0 tmax=683596801.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.55
user 3.26
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/15995/ft2_4FGL_J0343.2-2529_daily_bin1713.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/15995/ft2_4FGL_J0343.2-2529_daily_bin1713.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/15995/ft1_filteredMKT_4FGL_J0343.2-2529_daily_bin1713.fits evtable="EVENTS" outfile="/scratch/kocevski/15995/ft1_filtered_4FGL_J0343.2-2529_daily_bin1713.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.52
user 0.33
sys 0.17

Number of photons that the gtmktime cut: 557

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/15995/ft1_filtered_4FGL_J0343.2-2529_daily_bin1713.fits" evtable="EVENTS" scfile=/scratch/kocevski/15995/ft2_4FGL_J0343.2-2529_daily_bin1713.fits sctable="SC_DATA" outfile=/scratch/kocevski/15995/ltcube_683337601_683596801_4FGL_J0343.2-2529_daily_bin1713.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/15995/ft2_4FGL_J0343.2-2529_daily_bin1713.fits
.....................!
real 14.81
user 14.42
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/15995/ft1_filtered_4FGL_J0343.2-2529_daily_bin1713.fits evtable="EVENTS" scfile=/scratch/kocevski/15995/ft2_4FGL_J0343.2-2529_daily_bin1713.fits sctable="SC_DATA" expcube=/scratch/kocevski/15995/ltcube_683337601_683596801_4FGL_J0343.2-2529_daily_bin1713.fits outfile=/scratch/kocevski/15995/expmap_683337601_683596801_4FGL_J0343.2-2529_daily_bin1713.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/15995/ltcube_683337601_683596801_4FGL_J0343.2-2529_daily_bin1713.fits
.....................!
real 191.58
user 186.67
sys 4.50

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_8years/Templates/FornaxA.fits is the correct path to the extended template.
Added 154 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 J0343.2-2529 @ 55.8136 -25.4943

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/15995/ft1_filtered_4FGL_J0343.2-2529_daily_bin1713.fits scfile=/scratch/kocevski/15995/ft2_4FGL_J0343.2-2529_daily_bin1713.fits outfile=/scratch/kocevski/15995/cmap_683337601_683596801_4FGL_J0343.2-2529_daily_bin1713.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=55.8136 yref=-25.4943 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.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/15995/ft1_filtered_4FGL_J0343.2-2529_daily_bin1713.fits scfile=/scratch/kocevski/15995/ft2_4FGL_J0343.2-2529_daily_bin1713.fits outfile=/scratch/kocevski/15995/cmap_HighResolution_683337601_683596801_4FGL_J0343.2-2529_daily_bin1713.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=55.8136 yref=-25.4943 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/15995/ft1_filtered_4FGL_J0343.2-2529_daily_bin1713.fits evtable="EVENTS" scfile=/scratch/kocevski/15995/ft2_4FGL_J0343.2-2529_daily_bin1713.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/15995/Model_4FGL_J0343.2-2529_daily_bin1713.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/15995/ft1_filtered_4FGL_J0343.2-2529_daily_bin1713.fits.....................!
real 135.21
user 133.69
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/15995/ft1_filtered_4FGL_J0343.2-2529_daily_bin1713.fits', '/scratch/kocevski/15995/ft2_4FGL_J0343.2-2529_daily_bin1713.fits', expMap='/scratch/kocevski/15995/expmap_683337601_683596801_4FGL_J0343.2-2529_daily_bin1713.fits', expCube='/scratch/kocevski/15995/ltcube_683337601_683596801_4FGL_J0343.2-2529_daily_bin1713.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/15995/Model_4FGL_J0343.2-2529_daily_bin1713.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0343.2-2529'

4FGL J0343.2-2529
   Spectrum: PowerLaw
248    Prefactor:  1.449e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
249        Index:  2.537e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
250        Scale:  7.195e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/15995/ft1_filtered_4FGL_J0343.2-2529_daily_bin1713.fits
Spacecraft file(s): /scratch/kocevski/15995/ft2_4FGL_J0343.2-2529_daily_bin1713.fits
Exposure map: /scratch/kocevski/15995/expmap_683337601_683596801_4FGL_J0343.2-2529_daily_bin1713.fits
Exposure cube: /scratch/kocevski/15995/ltcube_683337601_683596801_4FGL_J0343.2-2529_daily_bin1713.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/15995/Model_4FGL_J0343.2-2529_daily_bin1713.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) = 6131.67467708

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .45621       1.0000          .0000       .10000E+07
     2 'norm      '    .56577E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    67.702       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.6766       1.0000          .0000       .10000E+07
     5 'Prefactor '    .53638E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .98556E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .65519E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .69098       1.0000          .0000       .10000E+07
     9 'Prefactor '    .59851E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    6.6491       1.0000          .0000       .10000E+07
    11 'Prefactor '    .22278E-04   1.0000          .0000       .10000E+07
    12 'norm      '    3.1016       1.0000          .0000       .10000E+07
    13 'Prefactor '    .61215E-01   1.0000          .0000       .10000E+07
    14 'norm      '    .10242E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    34.772       1.0000          .0000       .10000E+07
    16 'Prefactor '    .14400E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    2.7906       1.0000          .0000       .10000E+07
    18 'norm      '    .44595E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .83441E-02   1.0000          .0000       .10000E+07
    20 'norm      '    .65826       1.0000          .0000       .10000E+07
    21 'Prefactor '    .16941E-04   1.0000          .0000       .10000E+07
    22 'Normalizat'    .89484       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .89454       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4920E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6131.672     FROM MIGRAD    STATUS=CONVERGED    181 CALLS     1900 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .45097        2.0246       -.10398E-06   -.12792E-03
   2  norm           .0000        1.0256       -.31835E-07** at limit **
   3  Prefactor     67.642        14.259       -.48901E-06    .70962E-01
   4  Prefactor     2.6765        2.8592       -.68630E-07   -.19930E-02
   5  Prefactor     .42633E-07    11.051        .55296E-06** at limit **
   6  Prefactor     .27756E-09    8.2453       -.14664E-06** at limit **
   7  Prefactor     .11134E-05    9.3598       -.12853E-05** at limit **
   8  Prefactor     .71270        2.4638        .40126E-06   -.69821E-03
   9  Prefactor     .22093E-07    5.2643       -.22044E-05** at limit **
  10  Prefactor     6.6192        4.3309       -.30891E-06    .12146E-02
  11  Prefactor     .55511E-10    5.2926        .16802E-06** at limit **
  12  norm          3.1027        .93724       -.37025E-07   -.45589E-02
  13  Prefactor      .0000        27.340        .19112E-07** at limit **
  14  norm          .55511E-10    2.5974        .28325E-07** at limit **
  15  Prefactor     34.535        50.775       -.18254E-05   -.71546E-02
  16  Prefactor     .10753E-06    12.495       -.54420E-06** at limit **
  17  Prefactor     2.7894        2.2756       -.73824E-08   -.22134E-03
  18  norm          .20206E-07    5.0737        .18541E-05** at limit **
  19  Prefactor     .91865E-06    11.585        .33241E-06** at limit **
  20  norm          .65850        .33488        .27478E-08   -.91470E-02
  21  Prefactor     .55511E-10    2.3944        .77970E-07** at limit **
  22  Normalizat    .89497        .17652        .41796E-05    .19531E-03
  23  Prefactor     .89446        .17078       -.43176E-06    .21180E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.450974
  norm       = 0
  Prefactor  = 67.6419
  Prefactor  = 2.67654
  Prefactor  = 4.26326e-08
  Prefactor  = 2.77556e-10
  Prefactor  = 1.11339e-06
  Prefactor  = 0.712704
  Prefactor  = 2.20934e-08
  Prefactor  = 6.61918
  Prefactor  = 5.55112e-11
  norm       = 3.10272
  Prefactor  = 0
  norm       = 5.55112e-11
  Prefactor  = 34.5352
  Prefactor  = 1.07525e-07
  Prefactor  = 2.7894
  norm       = 2.02061e-08
  Prefactor  = 9.18654e-07
  norm       = 0.658503
  Prefactor  = 5.55112e-11
  Normalizat = 0.894973
  Prefactor  = 0.894463
 **********
 **   18 **HESSE 
 **********

 FCN=   6131.672     FROM HESSE     STATUS=OK           416 CALLS     2316 TOTAL
                     EDM=   .74E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .45097        2.0424        .83243E-03   -1.5695    
   2  norm           .0000        1.0248        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     67.642        90.057        .12154E-03   -1.5543    
   4  Prefactor     2.6765        2.8628        .62261E-03   -1.5675    
   5  Prefactor     .42633E-07    11.285        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .27756E-09    8.2486        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .11134E-05    17.644        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .71270        2.5497        .61444E-03   -1.5691    
   9  Prefactor     .22093E-07    5.3271        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.6192        4.3954        .38892E-03   -1.5657    
  11  Prefactor     .55511E-10    5.2930        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.1027        .93577        .57555E-03   -1.5673    
  13  Prefactor      .0000        26.223        .15119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .55511E-10    .76891        .21374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     34.535        52.090        .16960E-03   -1.5590    
  16  Prefactor     .10753E-06    13.221        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.7894        2.2925        .60882E-03   -1.5675    
  18  norm          .20206E-07    5.1808        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .91865E-06    18.512        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .65850        .33753        .64163E-03   -1.5692    
  21  Prefactor     .55511E-10    2.3732        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .89497        .15243        .44836E-01   -.96637    
  23  Prefactor     .89446        .14740        .44935E-01   -.96335    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.40322e-07
Minuit parameter uncertainties:
  1  1.91943
  2  6.85041e-06
  3  90.0586
  4  2.8628
  5  0.00138748
  6  9.81476e-05
  7  0.00886443
  8  2.54966
  9  0.000686483
  10  4.39539
  11  2.94172e-05
  12  0.935766
  13  1.39043e-05
  14  1.31054e-05
  15  52.0908
  16  0.00238435
  17  2.2925
  18  0.00064734
  19  0.00824779
  20  0.337529
  21  1.92686e-05
  22  0.152503
  23  0.147465
Done.

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

Extracting fit parameters...

4FGL J0343.2-2529
   Spectrum: PowerLaw
248    Prefactor:  2.209e-08  6.865e-04  0.000e+00  1.000e+06 ( 1.000e-12)
249        Index:  2.537e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
250        Scale:  7.195e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
489    Prefactor:  8.945e-01  1.475e-01  0.000e+00  1.000e+01 ( 1.000e+00)
490        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
491        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
485   Normalization:  8.950e-01  1.525e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 55.814 -25.494
Photon Flux Upper Limit: 7.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/15995/likelihoodResults_683337601_683596801_4FGL_J0343.2-2529_daily_bin1713.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) = 6131.67302622
delta logL = -0.000926535298277

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6129.52311839
delta logL = 2.1489812945

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19156E-04   1.0000          .0000       .10000E+07
     2 'Index     '    9.9999       1.0000          .0000       10.000    
     3 'Normalizat'    .80031       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95884       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4920E+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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6131.672     FROM MIGRAD    STATUS=CONVERGED    130 CALLS      549 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        10.010        .16847E-04** at limit **
   2  Index         2.6804        3.7272       -.28976E-04     .0000    
   3  Normalizat    .89497        .84843E-01    .16606E-07    .62763E-03
   4  Prefactor     .89446        .85960E-01   -.44412E-08   -.67867E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.68041
  Normalizat = 0.894972
  Prefactor  = 0.894461
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6131.672     FROM HESSE     STATUS=FAILED         9 CALLS      558 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        10.010        .16847E-04   -7.8540    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.1379        3.7272       -.28976E-04   -291.69    
   3  Normalizat    .89497        .84843E-01    .16606E-07   -39.874    
   4  Prefactor     .89446        .85960E-01   -.44412E-08   -13.530    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.19143e-10
Minuit parameter uncertainties:
  1  6.6026e-06
  2  4.42939
  3  0.0848553
  4  0.0859732
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/15995': 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): 101
logL (Free Index) = 6131.67209968
delta logL = 1.86082615983e-09

Extracting fit parameters...

4FGL J0343.2-2529
   Spectrum: PowerLaw
248    Prefactor:  0.000e+00  6.603e-06  0.000e+00  1.000e+06 ( 1.000e-12)
249        Index:  2.680e+00  4.429e+00  0.000e+00  1.000e+01 (-1.000e+00)
250        Scale:  7.195e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
489    Prefactor:  8.945e-01  8.597e-02  0.000e+00  1.000e+01 ( 1.000e+00)
490        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
491        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
485   Normalization:  8.950e-01  8.486e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 55.814 -25.494

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/15995/cmap_HighResolution_683337601_683596801_4FGL_J0343.2-2529_daily_bin1713.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.15e-03', job_status='DONE', photon_flux_upper_limit='7.89e-08', time_completed='2022-09-16 11:11:54.151819', job_id='15995', GAL2='0.89', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1663351914.15', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='1.86e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='1713' AND source_name='4FGL J0343.2-2529' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 11:11:54 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0138>
Subject: Job 15995: <4FGL_J0343.2-2529_daily_bin1713> in cluster <slac> Done

Job <4FGL_J0343.2-2529_daily_bin1713> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Fri Sep 16 10:55:31 2022
Job was executed on host(s) <bullet0138>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 10:57:05 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 10:57:05 2022
Terminated at Fri Sep 16 11:11:54 2022
Results reported at Fri Sep 16 11:11:54 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0343.2-2529_daily_bin1713 55.8136 -25.4943 683337601 683596801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0343.2-2529 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   664.26 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             331.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            983 sec.

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

