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


Performing analysis on: 4FGL_J0343.2-2529_daily_bin1610
RA = 55.8136, Dec = -25.4943
tmin = 656640001, tmax = 656899201
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='176498', job_status='RUN', time_executed='2021-12-07 14:13:03.238335', time_epoch_executed='1638915183.24' WHERE source_name='4FGL J0343.2-2529' and cadence='daily' and bin_id='1610'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/176498

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/176498/ft1_4FGL_J0343.2-2529_daily_bin1610.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/176498/ft2_4FGL_J0343.2-2529_daily_bin1610.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/176498/ft1_4FGL_J0343.2-2529_daily_bin1610.fits outfile=/scratch/kocevski/176498/ft1_filteredMKT_4FGL_J0343.2-2529_daily_bin1610.fits ra=55.8136 dec=-25.4943 rad=12.0 tmin=656640001.0 tmax=656899201.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.68
user 3.44
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/176498/ft2_4FGL_J0343.2-2529_daily_bin1610.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/176498/ft1_filteredMKT_4FGL_J0343.2-2529_daily_bin1610.fits evtable="EVENTS" outfile="/scratch/kocevski/176498/ft1_filtered_4FGL_J0343.2-2529_daily_bin1610.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.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/176498/ft1_filtered_4FGL_J0343.2-2529_daily_bin1610.fits" evtable="EVENTS" scfile=/scratch/kocevski/176498/ft2_4FGL_J0343.2-2529_daily_bin1610.fits sctable="SC_DATA" outfile=/scratch/kocevski/176498/ltcube_656640001_656899201_4FGL_J0343.2-2529_daily_bin1610.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/176498/ft2_4FGL_J0343.2-2529_daily_bin1610.fits
.....................!
real 17.21
user 16.84
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/176498/ft1_filtered_4FGL_J0343.2-2529_daily_bin1610.fits evtable="EVENTS" scfile=/scratch/kocevski/176498/ft2_4FGL_J0343.2-2529_daily_bin1610.fits sctable="SC_DATA" expcube=/scratch/kocevski/176498/ltcube_656640001_656899201_4FGL_J0343.2-2529_daily_bin1610.fits outfile=/scratch/kocevski/176498/expmap_656640001_656899201_4FGL_J0343.2-2529_daily_bin1610.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/176498/ltcube_656640001_656899201_4FGL_J0343.2-2529_daily_bin1610.fits
.....................!
real 194.04
user 188.55
sys 4.81

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
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 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/176498/ft1_filtered_4FGL_J0343.2-2529_daily_bin1610.fits scfile=/scratch/kocevski/176498/ft2_4FGL_J0343.2-2529_daily_bin1610.fits outfile=/scratch/kocevski/176498/cmap_656640001_656899201_4FGL_J0343.2-2529_daily_bin1610.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.58
user 0.42
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/176498/ft1_filtered_4FGL_J0343.2-2529_daily_bin1610.fits scfile=/scratch/kocevski/176498/ft2_4FGL_J0343.2-2529_daily_bin1610.fits outfile=/scratch/kocevski/176498/cmap_HighResolution_656640001_656899201_4FGL_J0343.2-2529_daily_bin1610.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.57
user 0.40
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/176498/ft1_filtered_4FGL_J0343.2-2529_daily_bin1610.fits', '/scratch/kocevski/176498/ft2_4FGL_J0343.2-2529_daily_bin1610.fits', expMap='/scratch/kocevski/176498/expmap_656640001_656899201_4FGL_J0343.2-2529_daily_bin1610.fits', expCube='/scratch/kocevski/176498/ltcube_656640001_656899201_4FGL_J0343.2-2529_daily_bin1610.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/176498/Model_4FGL_J0343.2-2529_daily_bin1610.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  1.000e-04  1.000e+04 ( 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/176498/ft1_filtered_4FGL_J0343.2-2529_daily_bin1610.fits
Spacecraft file(s): /scratch/kocevski/176498/ft2_4FGL_J0343.2-2529_daily_bin1610.fits
Exposure map: /scratch/kocevski/176498/expmap_656640001_656899201_4FGL_J0343.2-2529_daily_bin1610.fits
Exposure cube: /scratch/kocevski/176498/ltcube_656640001_656899201_4FGL_J0343.2-2529_daily_bin1610.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/176498/Model_4FGL_J0343.2-2529_daily_bin1610.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) = 6807.23026802

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.900       1.0000         .10000E-03   10000.    
     2 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.708       1.0000         .10000E-03   10000.    
     4 'norm      '    7.0861       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.3388       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .58765E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.654       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.994       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .66614E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.6688       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.3193       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.4347       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.9453       1.0000         .10000E-03   10000.    
    21 'norm      '    4.6595       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.850       1.0000         .10000E-03   10000.    
    23 'norm      '    .97933       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.5445       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .74417       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0144       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.

 FCN=   6807.220     FROM MIGRAD    STATUS=CONVERGED    630 CALLS     3154 TOTAL
                     EDM=   .52E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.897        40.545       -.70261E-06   -.10943E-04
   2  norm          .10000E-03    1.2080        .29776E-07** at limit **
   3  Prefactor     11.707        10.969       -.63930E-07   -.11639E-04
   4  norm          7.0861        3.1433       -.72990E-07   -.93096E-04
   5  Prefactor     .10000E-03    74.243       -.56936E-05** at limit **
   6  Prefactor     6.3374        4.1817        .18293E-06    .65400E-04
   7  Prefactor     .10000E-03    53.561        .11679E-04** at limit **
   8  Prefactor     10.653        16.797       -.11903E-06   -.45281E-05
   9  Prefactor     12.987        24.846       -.62098E-06   -.26296E-05
  10  Prefactor     .10000E-03    16.792        .76701E-07** at limit **
  11  Prefactor     .56626E-01    .85446       -.25289E-06   -.19829E-03
  12  Prefactor     .10000E-03    1.3821        .46384E-07** at limit **
  13  Prefactor     .10000E-03    1.5776       -.19309E-08** at limit **
  14  Prefactor     .10000E-03    4.6622        .38463E-07** at limit **
  15  norm          3.6686        .98752       -.22585E-07   -.22485E-03
  16  Prefactor     .10000E-03    36.613       -.39547E-05** at limit **
  17  norm          1.3200        1.0962       -.41531E-07   -.10687E-03
  18  Prefactor     .10000E-03    51.844        .44575E-05** at limit **
  19  Prefactor     4.4246        18.199       -.36994E-05    .15909E-04
  20  Prefactor     5.9453        2.7294        .11152E-07    .62556E-04
  21  norm          4.6603        8.5231       -.16184E-06   -.11201E-04
  22  Prefactor     10.840        19.103       -.39248E-06   -.82162E-05
  23  norm          .97929        .35658       -.20373E-07   -.17248E-03
  24  Prefactor     3.5443        3.2623       -.48868E-07    .22412E-05
  25  Normalizat    .74416        .14909        .20357E-06    .16013E-04
  26  Prefactor     1.0145        .15008        .44783E-06    .15500E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.8975
  norm       = 0.0001
  Prefactor  = 11.707
  norm       = 7.08615
  Prefactor  = 0.0001
  Prefactor  = 6.33741
  Prefactor  = 0.0001
  Prefactor  = 10.6534
  Prefactor  = 12.9868
  Prefactor  = 0.0001
  Prefactor  = 0.056626
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.66864
  Prefactor  = 0.000100001
  norm       = 1.32002
  Prefactor  = 0.0001
  Prefactor  = 4.42463
  Prefactor  = 5.94526
  norm       = 4.66026
  Prefactor  = 10.8402
  norm       = 0.979286
  Prefactor  = 3.54431
  Normalizat = 0.744163
  Prefactor  = 1.0145
 **********
 **   18 **HESSE 
 **********

 FCN=   6807.220     FROM HESSE     STATUS=OK           472 CALLS     3626 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.897        40.553        .83704E-04   -1.4751    
   2  norm          .10000E-03    2.4133        .17482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.707        10.964        .11708E-03   -1.5024    
   4  norm          7.0861        3.1346        .93815E-04   -1.5176    
   5  Prefactor     .10000E-03    74.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.3374        4.0931        .12921E-03   -1.5204    
   7  Prefactor     .10000E-03    52.621        .39908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.653        16.793        .12275E-03   -1.5055    
   9  Prefactor     12.987        24.848        .11112E-03   -1.4987    
  10  Prefactor     .10000E-03    16.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .56626E-01    7.8718        .14002E-02   -1.5660    
  12  Prefactor     .10000E-03    1.4040        .94531E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.3812        .19849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.6753        .17398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.6686        .98756        .40381E-04   -1.5325    
  16  Prefactor     .10000E-03    37.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.3200        1.0701        .73138E-04   -1.5478    
  18  Prefactor     .10000E-03    52.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.4246        18.246        .95612E-03   -1.5287    
  20  Prefactor     5.9453        2.7225        .86801E-04   -1.5220    
  21  norm          4.6603        8.5032        .18644E-03   -1.5276    
  22  Prefactor     10.840        19.064        .12163E-03   -1.5049    
  23  norm          .97929        .35452        .28540E-04   -1.5510    
  24  Prefactor     3.5443        3.2538        .13636E-03   -1.5331    
  25  Normalizat    .74416        .16654        .25277E-03   -1.0217    
  26  Prefactor     1.0145        .16983        .22962E-03   -.92248    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93959e-08
Minuit parameter uncertainties:
  1  40.6017
  2  2.70511e-05
  3  10.9655
  4  3.13469
  5  0.000136388
  6  4.09333
  7  0.000222416
  8  16.8002
  9  24.8681
  10  4.76005e-06
  11  1.33429
  12  1.35557e-07
  13  3.65718e-05
  14  6.52587e-08
  15  0.987567
  16  0.000348421
  17  1.07011
  18  9.11618e-05
  19  17.9795
  20  2.72257
  21  8.50535
  22  19.0751
  23  0.354521
  24  3.25395
  25  0.166657
  26  0.169924
Done.

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

Extracting fit parameters...

4FGL J0343.2-2529
   Spectrum: PowerLaw
248    Prefactor:  1.000e-04  1.356e-07  1.000e-04  1.000e+04 ( 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:  1.015e+00  1.699e-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:  7.442e-01  1.667e-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: 5.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/176498/likelihoodResults_656640001_656899201_4FGL_J0343.2-2529_daily_bin1610.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) = 6807.22321407
delta logL = -0.00338447952618

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6807.21982937
delta logL = 2.16652551899e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5130       1.0000          .0000       10.000    
     3 'Normalizat'    .74421       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0145       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.

 FCN=   6807.220     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      247 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.487        .96721E-02** at limit **
   2  Index         1.8772        6.7438        .50000       -.91391E-06
   3  Normalizat    .74416        .98008E-02    .25277E-03   -.67879E-03
   4  Prefactor     1.0145        .10315E-01    .22962E-03   -.70742E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.87719
  Normalizat = 0.744163
  Prefactor  = 1.0145
 **********
 **   18 **HESSE 
 **********

 FCN=   6807.220     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    432.25        .23023E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8772        8.8023        .50000       -.67457    
   3  Normalizat    .74416        .85830E-01    .50554E-04   -1.0217    
   4  Prefactor     1.0145        .90325E-01    .45924E-04   -.92248    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.06883e-08
Minuit parameter uncertainties:
  1  0.000102451
  2  848.166
  3  0.0858452
  4  0.0903383
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/176498': 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) = 6807.21981757
delta logL = 1.20160884762e-05

Extracting fit parameters...

4FGL J0343.2-2529
   Spectrum: PowerLaw
248    Prefactor:  1.000e-04  1.025e-04  1.000e-04  1.000e+04 ( 1.000e-12)
249        Index:  1.877e+00  8.482e+02  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:  1.014e+00  9.034e-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:  7.442e-01  8.585e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/176498/cmap_HighResolution_656640001_656899201_4FGL_J0343.2-2529_daily_bin1610.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.02e-03', job_status='DONE', photon_flux_upper_limit='5.16e-08', time_completed='2021-12-07 14:26:50.052820', job_id='176498', GAL2='1.01', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1638916010.05', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='1.20e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='1610' AND source_name='4FGL J0343.2-2529' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 14:26:50 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 176498: <4FGL_J0343.2-2529_daily_bin1610> in cluster <slac> Done

Job <4FGL_J0343.2-2529_daily_bin1610> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Dec  7 14:10:21 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 14:12:08 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 14:12:08 2021
Terminated at Tue Dec  7 14:26:50 2021
Results reported at Tue Dec  7 14:26:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0343.2-2529_daily_bin1610 55.8136 -25.4943 656640001 656899201 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 :                                   825.50 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             348.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            989 sec.

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

