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


Performing analysis on: 4FGL_J0159.3-4523_daily_bin1652
RA = 29.8254, Dec = -45.3847
tmin = 667526401, tmax = 667785601
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='727200', job_status='RUN', time_executed='2022-03-01 00:11:48.287474', time_epoch_executed='1646122308.29' WHERE source_name='4FGL J0159.3-4523' and cadence='daily' and bin_id='1652'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/727200

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/727200/ft1_4FGL_J0159.3-4523_daily_bin1652.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/727200/ft2_4FGL_J0159.3-4523_daily_bin1652.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/727200/ft1_4FGL_J0159.3-4523_daily_bin1652.fits outfile=/scratch/kocevski/727200/ft1_filteredMKT_4FGL_J0159.3-4523_daily_bin1652.fits ra=29.8254 dec=-45.3847 rad=12.0 tmin=667526401.0 tmax=667785601.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 4.58
user 4.31
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/727200/ft2_4FGL_J0159.3-4523_daily_bin1652.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/727200/ft1_filteredMKT_4FGL_J0159.3-4523_daily_bin1652.fits evtable="EVENTS" outfile="/scratch/kocevski/727200/ft1_filtered_4FGL_J0159.3-4523_daily_bin1652.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.33
sys 0.16
Number of photons that survived the gtmktime cut: 466

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/727200/ft1_filtered_4FGL_J0159.3-4523_daily_bin1652.fits" evtable="EVENTS" scfile=/scratch/kocevski/727200/ft2_4FGL_J0159.3-4523_daily_bin1652.fits sctable="SC_DATA" outfile=/scratch/kocevski/727200/ltcube_667526401_667785601_4FGL_J0159.3-4523_daily_bin1652.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/727200/ft2_4FGL_J0159.3-4523_daily_bin1652.fits
.....................!
real 14.87
user 14.49
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/727200/ft1_filtered_4FGL_J0159.3-4523_daily_bin1652.fits evtable="EVENTS" scfile=/scratch/kocevski/727200/ft2_4FGL_J0159.3-4523_daily_bin1652.fits sctable="SC_DATA" expcube=/scratch/kocevski/727200/ltcube_667526401_667785601_4FGL_J0159.3-4523_daily_bin1652.fits outfile=/scratch/kocevski/727200/expmap_667526401_667785601_4FGL_J0159.3-4523_daily_bin1652.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/727200/ltcube_667526401_667785601_4FGL_J0159.3-4523_daily_bin1652.fits
.....................!
real 191.31
user 185.85
sys 5.05

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/727200/ft1_filtered_4FGL_J0159.3-4523_daily_bin1652.fits scfile=/scratch/kocevski/727200/ft2_4FGL_J0159.3-4523_daily_bin1652.fits outfile=/scratch/kocevski/727200/cmap_667526401_667785601_4FGL_J0159.3-4523_daily_bin1652.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.54
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/727200/ft1_filtered_4FGL_J0159.3-4523_daily_bin1652.fits scfile=/scratch/kocevski/727200/ft2_4FGL_J0159.3-4523_daily_bin1652.fits outfile=/scratch/kocevski/727200/cmap_HighResolution_667526401_667785601_4FGL_J0159.3-4523_daily_bin1652.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.36
sys 0.19

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/727200/ft1_filtered_4FGL_J0159.3-4523_daily_bin1652.fits evtable="EVENTS" scfile=/scratch/kocevski/727200/ft2_4FGL_J0159.3-4523_daily_bin1652.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/727200/Model_4FGL_J0159.3-4523_daily_bin1652.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/727200/ft1_filtered_4FGL_J0159.3-4523_daily_bin1652.fits.....................!
real 99.14
user 97.63
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/727200/ft1_filtered_4FGL_J0159.3-4523_daily_bin1652.fits', '/scratch/kocevski/727200/ft2_4FGL_J0159.3-4523_daily_bin1652.fits', expMap='/scratch/kocevski/727200/expmap_667526401_667785601_4FGL_J0159.3-4523_daily_bin1652.fits', expCube='/scratch/kocevski/727200/ltcube_667526401_667785601_4FGL_J0159.3-4523_daily_bin1652.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/727200/Model_4FGL_J0159.3-4523_daily_bin1652.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/727200/ft1_filtered_4FGL_J0159.3-4523_daily_bin1652.fits
Spacecraft file(s): /scratch/kocevski/727200/ft2_4FGL_J0159.3-4523_daily_bin1652.fits
Exposure map: /scratch/kocevski/727200/expmap_667526401_667785601_4FGL_J0159.3-4523_daily_bin1652.fits
Exposure cube: /scratch/kocevski/727200/ltcube_667526401_667785601_4FGL_J0159.3-4523_daily_bin1652.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/727200/Model_4FGL_J0159.3-4523_daily_bin1652.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) = 5179.67425472

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .16898E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9817       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .17747       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.1571       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.1797       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.839       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.1109       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13048E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.743       1.0000         .10000E-03   10000.    
    15 'norm      '    .10792E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .11077E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .93295       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.3893       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.

 FCN=   5179.671     FROM MIGRAD    STATUS=CONVERGED    508 CALLS     2464 TOTAL
                     EDM=   .91E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.185        .12786E-06** at limit **
   2  Prefactor     .10000E-03    10.206       -.22902E-07** at limit **
   3  norm          .10000E-03    11.179        .48024E-06** at limit **
   4  Prefactor     .10000E-03    14.615       -.81642E-07** at limit **
   5  Prefactor     1.9817        4.4084        .52669E-06   -.54439E-04
   6  Prefactor     .16621        6.6914        .39137E-06   -.10460E-03
   7  norm          .10000E-03    47.361        .12170E-05** at limit **
   8  norm          4.1586        4.3000       -.37750E-07   -.14804E-04
   9  Prefactor     5.1799        8.2139        .20998E-05   -.11466E-03
  10  Prefactor     16.817        33.039       -.57135E-06   -.90452E-04
  11  Prefactor     .10000E-03    4.4618        .78882E-07** at limit **
  12  norm          1.1107        1.0370        .16274E-07   -.30487E-04
  13  Prefactor     .10000E-03    41.675       -.30576E-05** at limit **
  14  Prefactor     27.672        26.241       -.11750E-05   -.46502E-04
  15  norm          .10000E-03    1.3618        .55312E-07** at limit **
  16  norm          .10000E-03    1.9937        .71949E-07** at limit **
  17  Prefactor     .10000E-03    5.3329       -.18405E-07** at limit **
  18  Prefactor     .10000E-03    13.390       -.17035E-06** at limit **
  19  Prefactor     .10000E-03    22.501        .17293E-06** at limit **
  20  norm          .10000E-03    .36425        .65229E-08** at limit **
  21  Normalizat    .93269        .19185        .57521E-07   -.55352E-04
  22  Prefactor     1.3897        .21297       -.42408E-06   -.28857E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.98173
  Prefactor  = 0.166214
  norm       = 0.000100003
  norm       = 4.1586
  Prefactor  = 5.17987
  Prefactor  = 16.817
  Prefactor  = 0.0001
  norm       = 1.11069
  Prefactor  = 0.0001
  Prefactor  = 27.6722
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.932686
  Prefactor  = 1.38971
 **********
 **   18 **HESSE 
 **********

 FCN=   5179.671     FROM HESSE     STATUS=OK           346 CALLS     2810 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    11.685        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.9817        4.3977        .21608E-03   -1.5426    
   6  Prefactor     .16621        54.631        .34607E-02   -1.5626    
   7  norm          .10000E-03    48.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.1586        4.3588        .14014E-03   -1.5300    
   9  Prefactor     5.1799        8.3473        .88318E-03   -1.5253    
  10  Prefactor     16.817        33.242        .97603E-04   -1.4888    
  11  Prefactor     .10000E-03    4.6002        .29661E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.1107        1.0334        .68261E-04   -1.5497    
  13  Prefactor     .10000E-03    40.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     27.672        25.765        .76061E-04   -1.4655    
  15  norm          .10000E-03    4.7603        .16217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.8950        .19683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.3521        .16230E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    22.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .37281        .42395E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .93269        .22922        .25429E-03   -.95321    
  22  Prefactor     1.3897        .25535        .24191E-03   -.80677    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.74188e-08
Minuit parameter uncertainties:
  1  3.16639e-05
  2  1.3189e-05
  3  5.70099e-05
  4  2.99083e-05
  5  4.39846
  6  6.03047
  7  0.000810631
  8  4.35913
  9  8.34917
  10  33.2785
  11  2.60985e-06
  12  1.03343
  13  0.00026344
  14  25.7754
  15  7.30773e-06
  16  6.54935e-06
  17  4.99461e-06
  18  6.53469e-05
  19  7.75863e-05
  20  5.71255e-07
  21  0.229465
  22  0.255587
Done.

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

Extracting fit parameters...

4FGL J0159.3-4523
   Spectrum: PowerLaw
285    Prefactor:  1.682e+01  3.328e+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:  1.390e+00  2.556e-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:  9.327e-01  2.295e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.34
Ra Dec: 29.825 -45.385
Photon Flux Upper Limit: 1.29e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.02e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/727200/likelihoodResults_667526401_667785601_4FGL_J0159.3-4523_daily_bin1652.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) = 5179.48406718
delta logL = 0.18738607629

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5179.46815958
delta logL = 0.20329367967

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.0119       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5631       1.0000          .0000       10.000    
     3 'Normalizat'    .90144       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4120       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=   5179.468     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      310 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.9989        30.843        .13351E-03   -.55569E-03
   2  Index         3.5631        1.9898        .81332E-02   -.92553E-04
   3  Normalizat    .90187        .23430        .25808E-03   -.35241E-05
   4  Prefactor     1.4116        .25842        .24029E-03    .42694E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.99889
  Index      = 3.56314
  Normalizat = 0.901869
  Prefactor  = 1.41156
 **********
 **   18 **HESSE 
 **********

 FCN=   5179.468     FROM HESSE     STATUS=OK            25 CALLS      335 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.9989        21.231        .53405E-05   -1.5108    
   2  Index         3.5631        1.3870        .32533E-03   -.29148    
   3  Normalizat    .90187        .23450        .10323E-04   -.96394    
   4  Prefactor     1.4116        .25833        .48057E-04   -.80048    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.262e-09
Minuit parameter uncertainties:
  1  21.2483
  2  1.40717
  3  0.234769
  4  0.258566
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/727200': 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) = 5179.46815748
delta logL = 0.203295777

Extracting fit parameters...

4FGL J0159.3-4523
   Spectrum: PowerLaw
285    Prefactor:  8.999e+00  2.125e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  3.563e+00  1.407e+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.412e+00  2.586e-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:  9.019e-01  2.348e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.34
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/727200/cmap_HighResolution_667526401_667785601_4FGL_J0159.3-4523_daily_bin1652.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', job_status='DONE', photon_flux_upper_limit='1.29e-07', time_completed='2022-03-01 00:22:48.447720', job_id='727200', GAL2='1.41', fit_tolerance='1e-08', EG2='0.90', EG='0.93', time_epoch_completed='1646122968.45', return_code2='0', ts='0.34', comment='SUCCESS', return_code='0', GAL='1.39', dlogl='2.03e-01', ts2='0.78', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='1652' AND source_name='4FGL J0159.3-4523' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Mar  1 00:22:48 PST 2022




------------------------------------------------------------
Sender: LSF System <scs@bullet0016>
Subject: Job 726773: <4FGL_J0159.3-4523_daily_bin1652> in cluster <slac> Done

Job <4FGL_J0159.3-4523_daily_bin1652> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Mar  1 00:06:18 2022
Job was executed on host(s) <bullet0016>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar  1 00:07:56 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar  1 00:07:56 2022
Terminated at Tue Mar  1 00:22:12 2022
Results reported at Tue Mar  1 00:22:12 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0159.3-4523_daily_bin1652 29.8254 -45.3847 667526401 667785601 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 :                                   670.01 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             254.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   855 sec.
    Turnaround time :                            954 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 727200: <4FGL_J0159.3-4523_daily_bin1652> in cluster <slac> Done

Job <4FGL_J0159.3-4523_daily_bin1652> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Mar  1 00:06:48 2022
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar  1 00:11:24 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar  1 00:11:24 2022
Terminated at Tue Mar  1 00:22:49 2022
Results reported at Tue Mar  1 00:22:49 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0159.3-4523_daily_bin1652 29.8254 -45.3847 667526401 667785601 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 :                                   662.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             391.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   684 sec.
    Turnaround time :                            961 sec.

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

