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


Performing analysis on: 4FGL_J0159.3-4523_daily_bin1599
RA = 29.8254, Dec = -45.3847
tmin = 653788801, tmax = 654048001
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='947723', job_status='RUN', time_executed='2021-09-23 00:07:15.276139', time_epoch_executed='1632380835.28' WHERE source_name='4FGL J0159.3-4523' and cadence='daily' and bin_id='1599'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/947723

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/947723/ft1_4FGL_J0159.3-4523_daily_bin1599.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/947723/ft2_4FGL_J0159.3-4523_daily_bin1599.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/947723/ft1_4FGL_J0159.3-4523_daily_bin1599.fits outfile=/scratch/kocevski/947723/ft1_filteredMKT_4FGL_J0159.3-4523_daily_bin1599.fits ra=29.8254 dec=-45.3847 rad=12.0 tmin=653788801.0 tmax=654048001.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.93
user 3.68
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/947723/ft1_filtered_4FGL_J0159.3-4523_daily_bin1599.fits" evtable="EVENTS" scfile=/scratch/kocevski/947723/ft2_4FGL_J0159.3-4523_daily_bin1599.fits sctable="SC_DATA" outfile=/scratch/kocevski/947723/ltcube_653788801_654048001_4FGL_J0159.3-4523_daily_bin1599.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/947723/ft2_4FGL_J0159.3-4523_daily_bin1599.fits
.....................!
real 15.20
user 14.84
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/947723/ft1_filtered_4FGL_J0159.3-4523_daily_bin1599.fits evtable="EVENTS" scfile=/scratch/kocevski/947723/ft2_4FGL_J0159.3-4523_daily_bin1599.fits sctable="SC_DATA" expcube=/scratch/kocevski/947723/ltcube_653788801_654048001_4FGL_J0159.3-4523_daily_bin1599.fits outfile=/scratch/kocevski/947723/expmap_653788801_654048001_4FGL_J0159.3-4523_daily_bin1599.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/947723/ltcube_653788801_654048001_4FGL_J0159.3-4523_daily_bin1599.fits
.....................!
real 193.01
user 188.25
sys 4.38

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 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/947723/ft1_filtered_4FGL_J0159.3-4523_daily_bin1599.fits scfile=/scratch/kocevski/947723/ft2_4FGL_J0159.3-4523_daily_bin1599.fits outfile=/scratch/kocevski/947723/cmap_653788801_654048001_4FGL_J0159.3-4523_daily_bin1599.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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/947723/ft1_filtered_4FGL_J0159.3-4523_daily_bin1599.fits scfile=/scratch/kocevski/947723/ft2_4FGL_J0159.3-4523_daily_bin1599.fits outfile=/scratch/kocevski/947723/cmap_HighResolution_653788801_654048001_4FGL_J0159.3-4523_daily_bin1599.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.57
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/947723/ft1_filtered_4FGL_J0159.3-4523_daily_bin1599.fits evtable="EVENTS" scfile=/scratch/kocevski/947723/ft2_4FGL_J0159.3-4523_daily_bin1599.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/947723/Model_4FGL_J0159.3-4523_daily_bin1599.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/947723/ft1_filtered_4FGL_J0159.3-4523_daily_bin1599.fits....................!
real 100.19
user 98.75
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/947723/ft1_filtered_4FGL_J0159.3-4523_daily_bin1599.fits', '/scratch/kocevski/947723/ft2_4FGL_J0159.3-4523_daily_bin1599.fits', expMap='/scratch/kocevski/947723/expmap_653788801_654048001_4FGL_J0159.3-4523_daily_bin1599.fits', expCube='/scratch/kocevski/947723/ltcube_653788801_654048001_4FGL_J0159.3-4523_daily_bin1599.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/947723/Model_4FGL_J0159.3-4523_daily_bin1599.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  1.000e-04  1.000e+04 ( 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/947723/ft1_filtered_4FGL_J0159.3-4523_daily_bin1599.fits
Spacecraft file(s): /scratch/kocevski/947723/ft2_4FGL_J0159.3-4523_daily_bin1599.fits
Exposure map: /scratch/kocevski/947723/expmap_653788801_654048001_4FGL_J0159.3-4523_daily_bin1599.fits
Exposure cube: /scratch/kocevski/947723/ltcube_653788801_654048001_4FGL_J0159.3-4523_daily_bin1599.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/947723/Model_4FGL_J0159.3-4523_daily_bin1599.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) = 5055.36364948

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31013       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .70311E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.240       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.7939       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.5898       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.467       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.4479       1.0000         .10000E-03   10000.    
    12 'norm      '    .69855       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.7983       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.0088       1.0000         .10000E-03   10000.    
    16 'norm      '    .12826E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.873       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    43.048       1.0000         .10000E-03   10000.    
    20 'norm      '    .99937E-01   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .85555       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .89442       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5055.357     FROM MIGRAD    STATUS=FAILED       879 CALLS     2798 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .24571        16.359        .89313E-01    .17143E-03
   2  Prefactor     .10000E-03    8.0325        .18142E-02** at limit **
   3  norm          .10011E-03    6.9140        .53647E-01** at limit **
   4  Prefactor     .10000E-03    8.9837        .18142E-02** at limit **
   5  Prefactor     23.240        5.9980        .83089E-04   -.46099E-03
   6  Prefactor     .10000E-03    4.6778        .14858E-02** at limit **
   7  norm          .10000E-03    17.256        .18142E-02** at limit **
   8  norm          7.7941        5.7223        .62285E-03   -.53626E-04
   9  Prefactor     2.5897        8.1594        .12678E-02    .14886E-04
  10  Prefactor     10.461        31.575        .12384E-03    .65635E-04
  11  Prefactor     2.4477        2.4421        .10713E-03   -.16767E-04
  12  norm          .69857        .82233        .69985E-03    .12352E-02
  13  Prefactor     1.7894        25.251        .15589E-02    .20340E-04
  14  Prefactor     .10000E-03    40.342        .18142E-02** at limit **
  15  norm          5.0087        2.3142        .71269E-04   -.14676E-04
  16  norm          .10000E-03    3.6314        .19505E-02** at limit **
  17  Prefactor     18.870        12.973        .92193E-04   -.20680E-03
  18  Prefactor     .10000E-03    28.216        .18142E-02** at limit **
  19  Prefactor     43.040        62.778        .61101E-04   -.20277E-03
  20  norm          .99368E-01    1.5479        .11360E-02    .61061E-02
  21  Normalizat    .85570        .20882        .22280E-03   -.68024E-03
  22  Prefactor     .89427        .22219        .24303E-03   -.80412E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5055.357     FROM SIMPLEX   STATUS=PROGRESS    1054 CALLS     3852 TOTAL
                     EDM=   .20E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .24580        16.359        .96661E-06   -1.5609    
   2  Prefactor     .10000E-03    8.0325        .41618E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10011E-03    6.9140        .46421E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.9837        .56185E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     23.240        5.9980        .48945E-06   -1.4743    
   6  Prefactor     .10000E-03    4.6778        .25355E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    17.256        .53760E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.7941        5.7223        .50300E-06   -1.5150    
   9  Prefactor     2.5897        8.1594        .51201E-06   -1.5386    
  10  Prefactor     10.461        31.575        .51285E-06   -1.5061    
  11  Prefactor     2.4477        2.4421        .51257E-06   -1.5395    
  12  norm          .69857        .82233        .51673E-06   -1.5541    
  13  Prefactor     1.7894        25.251        .53482E-06   -1.5440    
  14  Prefactor     .10000E-03    40.342        .10269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.0087        2.3142        .50652E-06   -1.5260    
  16  norm          .10000E-03    3.6314        .30275E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.870        12.973        .49231E-06   -1.4839    
  18  Prefactor     .10000E-03    28.216        .56531E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     43.040        62.778        .47946E-06   -1.4395    
  20  norm          .99368E-01    1.5479        .51949E-06   -1.5645    
  21  Normalizat    .85570        .20882        .32565E-06   -.98035    
  22  Prefactor     .89427        .22219        .32009E-06   -.96342    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5055.357     FROM MIGRAD    STATUS=CONVERGED    351 CALLS     4203 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .24579        15.905        .91475E-01    .19732E-03
   2  Prefactor     .10000E-03    8.0330        .36285E-03** at limit **
   3  norm          .10011E-03    6.7398        .54700E-01** at limit **
   4  Prefactor     .10000E-03    8.9840        .36285E-03** at limit **
   5  Prefactor     23.240        5.9977        .16618E-04   -.41047E-06
   6  Prefactor     .10000E-03    4.6802        .29717E-03** at limit **
   7  norm          .10000E-03    17.256        .36285E-03** at limit **
   8  norm          7.7941        5.7245        .24914E-04   -.37418E-05
   9  Prefactor     2.5897        8.1564        .50712E-04   -.11209E-05
  10  Prefactor     10.461        31.583        .49538E-05   -.91798E-06
  11  Prefactor     2.4477        2.4420        .42853E-05   -.37141E-05
  12  norm          .69857        .82209        .13997E-03   -.88532E-05
  13  Prefactor     1.7893        25.101        .62354E-04   -.18232E-05
  14  Prefactor     .10000E-03    40.347        .36285E-03** at limit **
  15  norm          5.0087        2.3141        .28508E-05   -.23928E-05
  16  norm          .10000E-03    3.6400        .39009E-03** at limit **
  17  Prefactor     18.870        12.930        .36877E-05   -.36994E-05
  18  Prefactor     .10000E-03    28.218        .36285E-03** at limit **
  19  Prefactor     43.040        62.767        .12220E-04   -.55819E-05
  20  norm          .99371E-01    1.5394        .22720E-03    .24668E-03
  21  Normalizat    .85569        .20889        .44559E-04   -.28677E-04
  22  Prefactor     .89427        .22239        .48606E-04   -.23483E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.245788
  Prefactor  = 0.0001
  norm       = 0.000100106
  Prefactor  = 0.0001
  Prefactor  = 23.2401
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.7941
  Prefactor  = 2.58965
  Prefactor  = 10.461
  Prefactor  = 2.44773
  norm       = 0.698565
  Prefactor  = 1.78934
  Prefactor  = 0.0001
  norm       = 5.00874
  norm       = 0.0001
  Prefactor  = 18.87
  Prefactor  = 0.0001
  Prefactor  = 43.0405
  norm       = 0.0993709
  Normalizat = 0.855694
  Prefactor  = 0.89427
 **********
 **   18 **HESSE 
 **********

 FCN=   5055.357     FROM HESSE     STATUS=OK           342 CALLS     4545 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .24579        15.975        .91131E-01   -1.5609    
   2  Prefactor     .10000E-03    8.0330        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10011E-03    6.7783        .54461E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.9841        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     23.240        5.9977        .33236E-05   -1.4743    
   6  Prefactor     .10000E-03    4.6803        .59433E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    17.256        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.7941        5.7245        .49828E-05   -1.5150    
   9  Prefactor     2.5897        8.1603        .20285E-05   -1.5386    
  10  Prefactor     10.461        31.600        .99076E-06   -1.5061    
  11  Prefactor     2.4477        2.4429        .85706E-06   -1.5395    
  12  norm          .69857        .82205        .55988E-05   -1.5541    
  13  Prefactor     1.7893        25.132        .24942E-05   -1.5440    
  14  Prefactor     .10000E-03    40.347        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.0087        2.3149        .57015E-06   -1.5260    
  16  norm          .10000E-03    3.6404        .78019E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.870        12.933        .73755E-06   -1.4839    
  18  Prefactor     .10000E-03    28.218        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     43.040        62.781        .24441E-05   -1.4395    
  20  norm          .99371E-01    1.5369        .45440E-04   -1.5645    
  21  Normalizat    .85569        .20889        .89119E-05   -.98035    
  22  Prefactor     .89427        .22241        .97213E-05   -.96342    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.04846e-10
Minuit parameter uncertainties:
  1  3.96341
  2  6.77402e-07
  3  0.0016981
  4  6.69222e-07
  5  5.99789
  6  6.88497e-07
  7  3.30822e-07
  8  5.72491
  9  8.16377
  10  31.6506
  11  2.44304
  12  0.822067
  13  13.4185
  14  3.05321e-06
  15  2.31491
  16  4.34461e-06
  17  12.9354
  18  5.33316e-06
  19  62.8771
  20  0.781229
  21  0.209091
  22  0.222632
Done.

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

Extracting fit parameters...

4FGL J0159.3-4523
   Spectrum: PowerLaw
285    Prefactor:  1.046e+01  3.165e+01  1.000e-04  1.000e+04 ( 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:  8.943e-01  2.226e-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.557e-01  2.091e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.16
Ra Dec: 29.825 -45.385
Photon Flux Upper Limit: 1.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/947723/likelihoodResults_653788801_654048001_4FGL_J0159.3-4523_daily_bin1599.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5055.33233028
delta logL = 0.0243396194292

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5055.32152774
delta logL = 0.0351421584419

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5055.322     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      243 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6798        51.032        .15531E-03    .38188E-03
   2  Index         3.2312        2.9139        .10888E-01    .13940E-03
   3  Normalizat    .84719        .20322        .22380E-03   -.35561E-03
   4  Prefactor     .90092        .22233        .24223E-03   -.55313E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.67977
  Index      = 3.23122
  Normalizat = 0.84719
  Prefactor  = 0.900915
 **********
 **   18 **HESSE 
 **********

 FCN=   5055.322     FROM HESSE     STATUS=OK            25 CALLS      268 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6798        24.504        .62125E-05   -1.5191    
   2  Index         3.2312        2.0157        .43550E-03   -.36158    
   3  Normalizat    .84719        .20353        .44760E-04   -.98341    
   4  Prefactor     .90092        .22224        .48447E-04   -.96109    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81776e-09
Minuit parameter uncertainties:
  1  24.5412
  2  2.08403
  3  0.203714
  4  0.222462
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/947723': 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) = 5055.32152745
delta logL = 0.0351424500459

Extracting fit parameters...

4FGL J0159.3-4523
   Spectrum: PowerLaw
285    Prefactor:  6.680e+00  2.454e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  3.231e+00  2.084e+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:  9.009e-01  2.225e-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.472e-01  2.037e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.16
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/947723/cmap_HighResolution_653788801_654048001_4FGL_J0159.3-4523_daily_bin1599.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.47e-03', job_status='DONE', photon_flux_upper_limit='1.07e-07', time_completed='2021-09-23 00:19:57.653104', job_id='947723', GAL2='0.90', fit_tolerance='1e-08', EG2='0.85', EG='0.86', time_epoch_completed='1632381597.65', return_code2='0', ts='0.16', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='3.51e-02', ts2='0.24', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='1599' AND source_name='4FGL J0159.3-4523' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 00:19:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 947723: <4FGL_J0159.3-4523_daily_bin1599> in cluster <slac> Done

Job <4FGL_J0159.3-4523_daily_bin1599> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep 23 00:06:34 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 00:07:00 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 23 00:07:00 2021
Terminated at Thu Sep 23 00:19:58 2021
Results reported at Thu Sep 23 00:19:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0159.3-4523_daily_bin1599 29.8254 -45.3847 653788801 654048001 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 :                                   764.28 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             352.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            804 sec.

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

