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


Performing analysis on: 4FGL_J0159.3-4523_daily_bin1721
RA = 29.8254, Dec = -45.3847
tmin = 685411201, tmax = 685670401
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='48819', job_status='RUN', time_executed='2022-09-24 00:07:29.046332', time_epoch_executed='1664003249.05' WHERE source_name='4FGL J0159.3-4523' and cadence='daily' and bin_id='1721'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/48819

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/48819/ft1_4FGL_J0159.3-4523_daily_bin1721.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/48819/ft2_4FGL_J0159.3-4523_daily_bin1721.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/48819/ft1_4FGL_J0159.3-4523_daily_bin1721.fits outfile=/scratch/kocevski/48819/ft1_filteredMKT_4FGL_J0159.3-4523_daily_bin1721.fits ra=29.8254 dec=-45.3847 rad=12.0 tmin=685411201.0 tmax=685670401.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 5.26
user 4.97
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/48819/ft2_4FGL_J0159.3-4523_daily_bin1721.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/48819/ft2_4FGL_J0159.3-4523_daily_bin1721.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/48819/ft1_filteredMKT_4FGL_J0159.3-4523_daily_bin1721.fits evtable="EVENTS" outfile="/scratch/kocevski/48819/ft1_filtered_4FGL_J0159.3-4523_daily_bin1721.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.35
sys 0.14

Number of photons that the gtmktime cut: 570

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/48819/ft1_filtered_4FGL_J0159.3-4523_daily_bin1721.fits" evtable="EVENTS" scfile=/scratch/kocevski/48819/ft2_4FGL_J0159.3-4523_daily_bin1721.fits sctable="SC_DATA" outfile=/scratch/kocevski/48819/ltcube_685411201_685670401_4FGL_J0159.3-4523_daily_bin1721.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/48819/ft2_4FGL_J0159.3-4523_daily_bin1721.fits
.....................!
real 13.06
user 12.69
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/48819/ft1_filtered_4FGL_J0159.3-4523_daily_bin1721.fits evtable="EVENTS" scfile=/scratch/kocevski/48819/ft2_4FGL_J0159.3-4523_daily_bin1721.fits sctable="SC_DATA" expcube=/scratch/kocevski/48819/ltcube_685411201_685670401_4FGL_J0159.3-4523_daily_bin1721.fits outfile=/scratch/kocevski/48819/expmap_685411201_685670401_4FGL_J0159.3-4523_daily_bin1721.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/48819/ltcube_685411201_685670401_4FGL_J0159.3-4523_daily_bin1721.fits
.....................!
real 191.61
user 185.92
sys 5.27

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 183 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 J0159.3-4523 @ 29.8254 -45.3847

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/48819/ft1_filtered_4FGL_J0159.3-4523_daily_bin1721.fits scfile=/scratch/kocevski/48819/ft2_4FGL_J0159.3-4523_daily_bin1721.fits outfile=/scratch/kocevski/48819/cmap_685411201_685670401_4FGL_J0159.3-4523_daily_bin1721.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=29.8254 yref=-45.3847 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/48819/ft1_filtered_4FGL_J0159.3-4523_daily_bin1721.fits scfile=/scratch/kocevski/48819/ft2_4FGL_J0159.3-4523_daily_bin1721.fits outfile=/scratch/kocevski/48819/cmap_HighResolution_685411201_685670401_4FGL_J0159.3-4523_daily_bin1721.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=29.8254 yref=-45.3847 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/48819/ft1_filtered_4FGL_J0159.3-4523_daily_bin1721.fits evtable="EVENTS" scfile=/scratch/kocevski/48819/ft2_4FGL_J0159.3-4523_daily_bin1721.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/48819/Model_4FGL_J0159.3-4523_daily_bin1721.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/48819/ft1_filtered_4FGL_J0159.3-4523_daily_bin1721.fits.....................!
real 117.49
user 116.06
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/48819/ft1_filtered_4FGL_J0159.3-4523_daily_bin1721.fits', '/scratch/kocevski/48819/ft2_4FGL_J0159.3-4523_daily_bin1721.fits', expMap='/scratch/kocevski/48819/expmap_685411201_685670401_4FGL_J0159.3-4523_daily_bin1721.fits', expCube='/scratch/kocevski/48819/ltcube_685411201_685670401_4FGL_J0159.3-4523_daily_bin1721.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/48819/Model_4FGL_J0159.3-4523_daily_bin1721.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0159.3-4523'

4FGL J0159.3-4523
   Spectrum: PowerLaw
285    Prefactor:  3.419e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
286        Index:  2.729e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  7.560e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/48819/ft1_filtered_4FGL_J0159.3-4523_daily_bin1721.fits
Spacecraft file(s): /scratch/kocevski/48819/ft2_4FGL_J0159.3-4523_daily_bin1721.fits
Exposure map: /scratch/kocevski/48819/expmap_685411201_685670401_4FGL_J0159.3-4523_daily_bin1721.fits
Exposure cube: /scratch/kocevski/48819/ltcube_685411201_685670401_4FGL_J0159.3-4523_daily_bin1721.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/48819/Model_4FGL_J0159.3-4523_daily_bin1721.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) = 6169.60658198

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    55.499       1.0000          .0000       .10000E+07
     2 'Prefactor '    11.179       1.0000          .0000       .10000E+07
     3 'Prefactor '    5.2880       1.0000          .0000       .10000E+07
     4 'Prefactor '    .47424E-05   1.0000          .0000       .10000E+07
     5 'norm      '    .29223       1.0000          .0000       .10000E+07
     6 'norm      '    .21993E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .68739       1.0000          .0000       .10000E+07
     8 'Prefactor '    .11121       1.0000          .0000       .10000E+07
     9 'Prefactor '    4.2115       1.0000          .0000       .10000E+07
    10 'norm      '    3.3627       1.0000          .0000       .10000E+07
    11 'Prefactor '    27.395       1.0000          .0000       .10000E+07
    12 'Prefactor '    .40521E-03   1.0000          .0000       .10000E+07
    13 'norm      '    .96505       1.0000          .0000       .10000E+07
    14 'norm      '    .18031       1.0000          .0000       .10000E+07
    15 'Prefactor '    1.8806       1.0000          .0000       .10000E+07
    16 'Prefactor '    .36728E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    12.722       1.0000          .0000       .10000E+07
    18 'norm      '    .11351E-05   1.0000          .0000       .10000E+07
    19 'Normalizat'    .79968       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0736       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5820E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6169.603     FROM MIGRAD    STATUS=CONVERGED    143 CALLS     1543 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          55.497        2.4822        .37459E-08    .63103E-01
   2  Prefactor     10.895        22.482        .14207E-06   -.25041E-01
   3  Prefactor     5.3113        3.5783        .13347E-08    .10440E-02
   4  Prefactor      .0000        1.9149       -.19114E-07** at limit **
   5  norm           .0000        24.655        .33828E-07** at limit **
   6  norm          .41656E-06    266.48       -.20223E-05** at limit **
   7  Prefactor     .68568        .92173       -.27229E-07   -.22905E-01
   8  Prefactor     .63008E-04    14.825        .45172E-06** at limit **
   9  Prefactor     4.2029        3.9216       -.41334E-09   -.36825E-03
  10  norm          3.3653        1.5575       -.18685E-08   -.10690E-02
  11  Prefactor     27.533        16.122        .52610E-07   -.25102E-02
  12  Prefactor      .0000        8.2334       -.48071E-08** at limit **
  13  norm          .97276        1.8295       -.35796E-09   -.45994E-03
  14  norm          .17646        3.1807        .11885E-07** at limit **
  15  Prefactor     1.8565        17.789        .62866E-07   -.63997E-04
  16  Prefactor     .27756E-09    7.7045       -.58187E-07** at limit **
  17  Prefactor     12.917        13.823       -.13876E-06   -.41406E-01
  18  norm           .0000        .62875        .17888E-08** at limit **
  19  Normalizat    .79974        .19163       -.69385E-06   -.40389E-04
  20  Prefactor     1.0737        .21186        .11275E-06   -.36390E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 55.4968
  Prefactor  = 10.8949
  Prefactor  = 5.31134
  Prefactor  = 0
  norm       = 0
  norm       = 4.16556e-07
  Prefactor  = 0.685683
  Prefactor  = 6.30079e-05
  Prefactor  = 4.20289
  norm       = 3.36532
  Prefactor  = 27.5333
  Prefactor  = 0
  norm       = 0.972757
  norm       = 0.176457
  Prefactor  = 1.85655
  Prefactor  = 2.77556e-10
  Prefactor  = 12.9175
  norm       = 0
  Normalizat = 0.799742
  Prefactor  = 1.07374
 **********
 **   18 **HESSE 
 **********

 FCN=   6169.603     FROM HESSE     STATUS=OK           345 CALLS     1888 TOTAL
                     EDM=   .46E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          55.497        13.208        .13424E-03   -1.5559    
   2  Prefactor     10.895        26.456        .29939E-03   -1.5642    
   3  Prefactor     5.3113        3.5991        .43684E-03   -1.5662    
   4  Prefactor      .0000        1.9166        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        24.644        .10322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .41656E-06    3.1643        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .68568        17.480        .61738E-03   -1.5691    
   8  Prefactor     .63008E-04    14.095        .13638E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.2029        3.9267        .49081E-03   -1.5667    
  10  norm          3.3653        1.5640        .55160E-03   -1.5671    
  11  Prefactor     27.533        16.376        .19109E-03   -1.5603    
  12  Prefactor      .0000        8.3676        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .97276        1.8397        .42524E-03   -1.5688    
  14  norm          .17646        1.3722        .29915E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.8565        19.044        .75883E-03   -1.5681    
  16  Prefactor     .27756E-09    7.7929        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.917        26.402        .28058E-03   -1.5636    
  18  norm           .0000        .61668        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .79974        .16745        .43606E-01   -1.0008    
  20  Prefactor     1.0737        .18146        .38689E-01   -.90310    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.58733e-07
Minuit parameter uncertainties:
  1  13.2076
  2  26.4559
  3  3.59906
  4  7.35938e-06
  5  8.29348e-06
  6  0.0022961
  7  6.92416
  8  0.059602
  9  3.92674
  10  1.56403
  11  16.3763
  12  2.66999e-07
  13  1.83967
  14  0.984129
  15  11.8923
  16  9.31294e-05
  17  26.4026
  18  2.96395e-07
  19  0.167554
  20  0.181565
Done.

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

Extracting fit parameters...

4FGL J0159.3-4523
   Spectrum: PowerLaw
285    Prefactor:  6.301e-05  5.960e-02  0.000e+00  1.000e+06 ( 1.000e-13)
286        Index:  2.729e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  7.560e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  1.074e+00  1.816e-01  0.000e+00  1.000e+01 ( 1.000e+00)
580        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
581        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  7.997e-01  1.676e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 29.825 -45.385
Photon Flux Upper Limit: 7.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/48819/likelihoodResults_685411201_685670401_4FGL_J0159.3-4523_daily_bin1721.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) = 6169.60488761
delta logL = -0.00173360595545

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6169.49361984
delta logL = 0.109534163301

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.2688       1.0000          .0000       .10000E+07
     2 'Index     '    1.5825       1.0000          .0000       10.000    
     3 'Normalizat'    .80188       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0667       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5820E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6169.494     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      232 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.3063        23.353        .32895E-03   -.13560E-02
   2  Index         1.5808        1.0733        .28931E-01    .74982E-04
   3  Normalizat    .80160        .15740        .43635E-01    .10584E-04
   4  Prefactor     1.0670        .17984        .39015E-01    .10250E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.30626
  Index      = 1.58082
  Normalizat = 0.801597
  Prefactor  = 1.06699
 **********
 **   18 **HESSE 
 **********

 FCN=   6169.494     FROM HESSE     STATUS=OK            31 CALLS      263 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.3063        24.538        .13158E-04   -1.5647    
   2  Index         1.5808        1.1316        .11573E-02   -.75301    
   3  Normalizat    .80160        .18322        .24206E-03   -1.0001    
   4  Prefactor     1.0670        .20944        .24150E-03   -.90528    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06006e-09
Minuit parameter uncertainties:
  1  24.5385
  2  1.15061
  3  0.18336
  4  0.209596
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/48819': 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) = 6169.49361457
delta logL = 0.109539435416

Extracting fit parameters...

4FGL J0159.3-4523
   Spectrum: PowerLaw
285    Prefactor:  9.306e+00  2.454e+01  0.000e+00  1.000e+06 ( 1.000e-13)
286        Index:  1.581e+00  1.151e+00  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  7.560e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  1.067e+00  2.096e-01  0.000e+00  1.000e+01 ( 1.000e+00)
580        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
581        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  8.016e-01  1.834e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 29.825 -45.385

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/48819/cmap_HighResolution_685411201_685670401_4FGL_J0159.3-4523_daily_bin1721.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.73e-03', job_status='DONE', photon_flux_upper_limit='7.26e-08', time_completed='2022-09-24 00:18:03.707385', job_id='48819', GAL2='1.07', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1664003883.71', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='1.10e-01', ts2='0.22', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='1721' AND source_name='4FGL J0159.3-4523' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 24 00:18:03 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0144>
Subject: Job 48819: <4FGL_J0159.3-4523_daily_bin1721> in cluster <slac> Done

Job <4FGL_J0159.3-4523_daily_bin1721> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 24 00:05:08 2022
Job was executed on host(s) <bullet0144>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 24 00:05:40 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 24 00:05:40 2022
Terminated at Sat Sep 24 00:18:04 2022
Results reported at Sat Sep 24 00:18:04 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0159.3-4523_daily_bin1721 29.8254 -45.3847 685411201 685670401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0159.3-4523 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   636.26 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             313.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   743 sec.
    Turnaround time :                            776 sec.

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

