aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 153 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 = 7657
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0145.0-2732_daily_bin1670
RA = 26.2585, Dec = -27.5363
tmin = 672192001, tmax = 672451201
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='862360', job_status='RUN', time_executed='2022-04-24 00:14:49.802495', time_epoch_executed='1650784489.8' WHERE source_name='4FGL J0145.0-2732' and cadence='daily' and bin_id='1670'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/862360

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/862360/ft1_4FGL_J0145.0-2732_daily_bin1670.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/862360/ft2_4FGL_J0145.0-2732_daily_bin1670.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/862360/ft1_4FGL_J0145.0-2732_daily_bin1670.fits outfile=/scratch/kocevski/862360/ft1_filteredMKT_4FGL_J0145.0-2732_daily_bin1670.fits ra=26.2585 dec=-27.5363 rad=12.0 tmin=672192001.0 tmax=672451201.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.05
user 4.81
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/862360/ft2_4FGL_J0145.0-2732_daily_bin1670.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/862360/ft2_4FGL_J0145.0-2732_daily_bin1670.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/862360/ft1_filteredMKT_4FGL_J0145.0-2732_daily_bin1670.fits evtable="EVENTS" outfile="/scratch/kocevski/862360/ft1_filtered_4FGL_J0145.0-2732_daily_bin1670.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 381

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/862360/ft1_filtered_4FGL_J0145.0-2732_daily_bin1670.fits" evtable="EVENTS" scfile=/scratch/kocevski/862360/ft2_4FGL_J0145.0-2732_daily_bin1670.fits sctable="SC_DATA" outfile=/scratch/kocevski/862360/ltcube_672192001_672451201_4FGL_J0145.0-2732_daily_bin1670.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/862360/ft2_4FGL_J0145.0-2732_daily_bin1670.fits
.....................!
real 12.71
user 12.35
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/862360/ft1_filtered_4FGL_J0145.0-2732_daily_bin1670.fits evtable="EVENTS" scfile=/scratch/kocevski/862360/ft2_4FGL_J0145.0-2732_daily_bin1670.fits sctable="SC_DATA" expcube=/scratch/kocevski/862360/ltcube_672192001_672451201_4FGL_J0145.0-2732_daily_bin1670.fits outfile=/scratch/kocevski/862360/expmap_672192001_672451201_4FGL_J0145.0-2732_daily_bin1670.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/862360/ltcube_672192001_672451201_4FGL_J0145.0-2732_daily_bin1670.fits
.....................!
real 190.46
user 185.35
sys 4.71

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
Added 175 point sources and 0 extended sources

Setting source of interest to:
4FGL J0145.0-2732 @ 26.2585 -27.5363

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/862360/ft1_filtered_4FGL_J0145.0-2732_daily_bin1670.fits scfile=/scratch/kocevski/862360/ft2_4FGL_J0145.0-2732_daily_bin1670.fits outfile=/scratch/kocevski/862360/cmap_672192001_672451201_4FGL_J0145.0-2732_daily_bin1670.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=26.2585 yref=-27.5363 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/862360/ft1_filtered_4FGL_J0145.0-2732_daily_bin1670.fits scfile=/scratch/kocevski/862360/ft2_4FGL_J0145.0-2732_daily_bin1670.fits outfile=/scratch/kocevski/862360/cmap_HighResolution_672192001_672451201_4FGL_J0145.0-2732_daily_bin1670.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=26.2585 yref=-27.5363 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.63
user 0.37
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/862360/ft1_filtered_4FGL_J0145.0-2732_daily_bin1670.fits evtable="EVENTS" scfile=/scratch/kocevski/862360/ft2_4FGL_J0145.0-2732_daily_bin1670.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/862360/Model_4FGL_J0145.0-2732_daily_bin1670.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 GAL_V02
Working on...
/scratch/kocevski/862360/ft1_filtered_4FGL_J0145.0-2732_daily_bin1670.fits.....................!
real 39.14
user 37.77
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/862360/ft1_filtered_4FGL_J0145.0-2732_daily_bin1670.fits', '/scratch/kocevski/862360/ft2_4FGL_J0145.0-2732_daily_bin1670.fits', expMap='/scratch/kocevski/862360/expmap_672192001_672451201_4FGL_J0145.0-2732_daily_bin1670.fits', expCube='/scratch/kocevski/862360/ltcube_672192001_672451201_4FGL_J0145.0-2732_daily_bin1670.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/862360/Model_4FGL_J0145.0-2732_daily_bin1670.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0145.0-2732'

4FGL J0145.0-2732
   Spectrum: LogParabola
290         norm:  1.960e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
291        alpha:  2.480e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
292         beta:  9.678e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  3.266e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/862360/ft1_filtered_4FGL_J0145.0-2732_daily_bin1670.fits
Spacecraft file(s): /scratch/kocevski/862360/ft2_4FGL_J0145.0-2732_daily_bin1670.fits
Exposure map: /scratch/kocevski/862360/expmap_672192001_672451201_4FGL_J0145.0-2732_daily_bin1670.fits
Exposure cube: /scratch/kocevski/862360/ltcube_672192001_672451201_4FGL_J0145.0-2732_daily_bin1670.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/862360/Model_4FGL_J0145.0-2732_daily_bin1670.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) = 4229.85706627

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.0369       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.5064       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.0457       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.9229       1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.524       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.3068       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.304       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.760       1.0000         .10000E-03   10000.    
    14 'norm      '    1.7594       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.4581       1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.970       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .69963E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10409E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0392       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .81289       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5540E+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=   4229.808     FROM MIGRAD    STATUS=CONVERGED    913 CALLS     2960 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.7551        .16518E-03** at limit **
   2  Prefactor     3.0508        8.3732        .23284E-03   -.17880E-03
   3  Prefactor     8.4871        16.804        .13744E-03   -.80481E-04
   4  Prefactor     2.0452        3.6300        .15703E-03   -.41412E-04
   5  Prefactor     .10000E-03    3.9616        .12622E-02** at limit **
   6  norm          .10000E-03    .92724        .60783E-03** at limit **
   7  norm          2.9228        2.5183        .91197E-04   -.10908E-03
   8  Prefactor     15.536        16.416        .10165E-03   -.16552E-04
   9  Prefactor     .10000E-03    4.2270        .25781E-03** at limit **
  10  norm          2.3069        1.6928        .69785E-04   -.70051E-04
  11  Prefactor     14.365        29.418        .10590E-03   -.10735E-05
  12  norm          .10000E-03    .60964        .49424E-03** at limit **
  13  Prefactor     12.759        6.4531        .10676E-03   -.70177E-04
  14  norm          1.7587        2.8544        .13361E-03   -.15826E-04
  15  Prefactor     .10000E-03    15.379        .18142E-02** at limit **
  16  norm          4.4579        3.0770        .91870E-04   -.66576E-04
  17  Prefactor     25.965        15.017        .78609E-04   -.11133E-03
  18  Prefactor     .10000E-03    10.656        .36285E-03** at limit **
  19  Prefactor     .10000E-03    5.5414        .14882E-02** at limit **
  20  Prefactor     .10001E-03    60.265        .14876    ** at limit **
  21  Prefactor     .10000E-03    27.937        .18142E-02** at limit **
  22  Normalizat    1.0392        .23715        .21683E-03   -.24321E-03
  23  Prefactor     .81287        .25265        .27777E-03   -.23718E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 3.0508
  Prefactor  = 8.48714
  Prefactor  = 2.04519
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.92283
  Prefactor  = 15.536
  Prefactor  = 0.0001
  norm       = 2.30693
  Prefactor  = 14.3651
  norm       = 0.0001
  Prefactor  = 12.7587
  norm       = 1.75874
  Prefactor  = 0.0001
  norm       = 4.45795
  Prefactor  = 25.9647
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Normalizat = 1.03916
  Prefactor  = 0.812866
 **********
 **   18 **HESSE 
 **********

 FCN=   4229.808     FROM HESSE     STATUS=OK           356 CALLS     3316 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.7551        .33037E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.0508        8.3671        .93137E-05   -1.5359    
   3  Prefactor     8.4871        16.793        .54978E-05   -1.5125    
   4  Prefactor     2.0452        3.6298        .62811E-05   -1.5422    
   5  Prefactor     .10000E-03    3.9618        .25244E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .92729        .12157E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.9228        2.5182        .36479E-05   -1.5366    
   8  Prefactor     15.536        16.414        .40661E-05   -1.4919    
   9  Prefactor     .10000E-03    4.2270        .51561E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.3069        1.6928        .27914E-05   -1.5404    
  11  Prefactor     14.365        29.414        .42361E-05   -1.4950    
  12  norm          .10000E-03    .60965        .98849E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.759        6.4529        .42703E-05   -1.4993    
  14  norm          1.7587        2.8542        .53444E-05   -1.5443    
  15  Prefactor     .10000E-03    15.379        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.4579        3.0770        .36748E-05   -1.5286    
  17  Prefactor     25.965        15.017        .15722E-04   -1.4688    
  18  Prefactor     .10000E-03    10.657        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.5427        .29763E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    60.508        .14830       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    27.938        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0392        .23733        .43366E-04   -.91730    
  23  Prefactor     .81287        .25287        .55553E-04   -.99256    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93534e-10
Minuit parameter uncertainties:
  1  2.48799e-06
  2  8.37027
  3  16.8021
  4  3.63015
  5  2.16674e-06
  6  1.35439e-06
  7  2.51827
  8  16.4192
  9  3.79096e-05
  10  1.69282
  11  29.4432
  12  3.86439e-06
  13  6.45328
  14  2.85442
  15  3.71319e-06
  16  3.07712
  17  15.019
  18  4.81766e-06
  19  1.19004e-05
  20  0.0013362
  21  3.8037e-05
  22  0.237572
  23  0.253235
Done.

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

Extracting fit parameters...

4FGL J0145.0-2732
   Spectrum: LogParabola
290         norm:  1.759e+00  2.854e+00  1.000e-04  1.000e+04 ( 1.000e-11)
291        alpha:  2.480e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
292         beta:  9.678e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  3.266e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
551    Prefactor:  8.129e-01  2.532e-01  0.000e+00  1.000e+01 ( 1.000e+00)
552        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
553        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
550   Normalization:  1.039e+00  2.376e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.48
Ra Dec: 26.259 -27.536
Photon Flux Upper Limit: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.70e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/862360/likelihoodResults_672192001_672451201_4FGL_J0145.0-2732_daily_bin1670.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) = 4229.78102113
delta logL = 0.026528111478

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4229.7805113
delta logL = 0.0270379395934

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7840       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7674       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0339       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81692       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5540E+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=   4229.781     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      265 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7841        2.8109        .12700E-03   -.59081E-05
   2  alpha         2.7674        1.2379        .29292E-01   -.11236E-05
   3  Normalizat    1.0338        .22077        .21733E-03   -.75852E-05
   4  Prefactor     .81697        .25131        .27691E-03   -.18105E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.78413
  alpha      = 2.76743
  Normalizat = 1.03383
  Prefactor  = 0.816966
 **********
 **   18 **HESSE 
 **********

 FCN=   4229.781     FROM HESSE     STATUS=OK            25 CALLS      290 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7841        2.7769        .50800E-05   -1.5441    
   2  alpha         2.7674        1.2244        .11717E-02    .10718    
   3  Normalizat    1.0338        .22109        .86931E-05   -.91905    
   4  Prefactor     .81697        .25158        .11077E-04   -.99106    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53302e-12
Minuit parameter uncertainties:
  1  2.77705
  2  1.2803
  3  0.221292
  4  0.251938
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/862360': 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) = 4229.78051128
delta logL = 0.0270379586173

Extracting fit parameters...

4FGL J0145.0-2732
   Spectrum: LogParabola
290         norm:  1.784e+00  2.777e+00  1.000e-04  1.000e+04 ( 1.000e-11)
291        alpha:  2.767e+00  1.280e+00  0.000e+00  5.000e+00 ( 1.000e+00)
292         beta:  9.678e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  3.266e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
551    Prefactor:  8.170e-01  2.519e-01  0.000e+00  1.000e+01 ( 1.000e+00)
552        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
553        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
550   Normalization:  1.034e+00  2.213e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.48
Ra Dec: 26.259 -27.536

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/862360/cmap_HighResolution_672192001_672451201_4FGL_J0145.0-2732_daily_bin1670.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.70e-05', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2022-04-24 00:24:18.492599', job_id='862360', GAL2='0.82', fit_tolerance='1e-08', EG2='1.03', EG='1.04', time_epoch_completed='1650785058.49', return_code2='0', ts='0.48', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='2.70e-02', ts2='0.53', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='1670' AND source_name='4FGL J0145.0-2732' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Apr 24 00:24:18 PDT 2022



------------------------------------------------------------
Sender: LSF System <lsf@bullet0192>
Subject: Job 862360: <4FGL_J0145.0-2732_daily_bin1670> in cluster <slac> Done

Job <4FGL_J0145.0-2732_daily_bin1670> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Apr 24 00:08:26 2022
Job was executed on host(s) <bullet0192>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr 24 00:12:08 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Apr 24 00:12:08 2022
Terminated at Sun Apr 24 00:24:19 2022
Results reported at Sun Apr 24 00:24:19 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0145.0-2732_daily_bin1670 26.2585 -27.5363 672192001 672451201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0145.0-2732 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   571.00 sec.
    Max Memory :                                 617 MB
    Average Memory :                             236.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   730 sec.
    Turnaround time :                            953 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 862294: <4FGL_J0145.0-2732_daily_bin1670> in cluster <slac> Done

Job <4FGL_J0145.0-2732_daily_bin1670> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Apr 24 00:08:23 2022
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr 24 00:11:52 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Apr 24 00:11:52 2022
Terminated at Sun Apr 24 00:24:19 2022
Results reported at Sun Apr 24 00:24:19 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0145.0-2732_daily_bin1670 26.2585 -27.5363 672192001 672451201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0145.0-2732 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   571.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             238.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   746 sec.
    Turnaround time :                            956 sec.

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

