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 221 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 = 17252
number of fields = 31
RA_SUN column already exists. File will not be modified.DDone.


Performing analysis on: 4FGL_J0146.0-6746_weekly_bin715
RA = 26.5182, Dec = -67.7748
tmin = 671414401, tmax = 672019201
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='933646', job_status='RUN', time_executed='2022-04-19 02:24:12.421126', time_epoch_executed='1650360252.42' WHERE source_name='4FGL J0146.0-6746' and cadence='weekly' and bin_id='715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/933646

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/933646/ft1_4FGL_J0146.0-6746_weekly_bin715.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/933646/ft2_4FGL_J0146.0-6746_weekly_bin715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/933646/ft1_4FGL_J0146.0-6746_weekly_bin715.fits outfile=/scratch/kocevski/933646/ft1_filteredMKT_4FGL_J0146.0-6746_weekly_bin715.fits ra=26.5182 dec=-67.7748 rad=12.0 tmin=671414401.0 tmax=672019201.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 7.67
user 7.34
sys 0.30

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/933646/ft2_4FGL_J0146.0-6746_weekly_bin715.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/933646/ft2_4FGL_J0146.0-6746_weekly_bin715.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/933646/ft1_filteredMKT_4FGL_J0146.0-6746_weekly_bin715.fits evtable="EVENTS" outfile="/scratch/kocevski/933646/ft1_filtered_4FGL_J0146.0-6746_weekly_bin715.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.55
user 0.37
sys 0.16

Number of photons that the gtmktime cut: 1545

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/933646/ft1_filtered_4FGL_J0146.0-6746_weekly_bin715.fits" evtable="EVENTS" scfile=/scratch/kocevski/933646/ft2_4FGL_J0146.0-6746_weekly_bin715.fits sctable="SC_DATA" outfile=/scratch/kocevski/933646/ltcube_671414401_672019201_4FGL_J0146.0-6746_weekly_bin715.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/933646/ft2_4FGL_J0146.0-6746_weekly_bin715.fits
.....................!
real 27.72
user 27.32
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/933646/ft1_filtered_4FGL_J0146.0-6746_weekly_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/933646/ft2_4FGL_J0146.0-6746_weekly_bin715.fits sctable="SC_DATA" expcube=/scratch/kocevski/933646/ltcube_671414401_672019201_4FGL_J0146.0-6746_weekly_bin715.fits outfile=/scratch/kocevski/933646/expmap_671414401_672019201_4FGL_J0146.0-6746_weekly_bin715.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/933646/ltcube_671414401_672019201_4FGL_J0146.0-6746_weekly_bin715.fits
.....................!
real 191.56
user 185.65
sys 5.54

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 SMC-Galaxy in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/SMC-Galaxy.fits is the correct path to the extended template.
Extended source LMC-FarWest in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-FarWest.fits is the correct path to the extended template.
Extended source LMC-Galaxy in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-Galaxy.fits is the correct path to the extended template.
Extended source LMC-30DorWest in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-30DorWest.fits is the correct path to the extended template.
Extended source LMC-North in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-North.fits is the correct path to the extended template.
Added 190 point sources and 5 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 J0146.0-6746 @ 26.5182 -67.7748

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/933646/ft1_filtered_4FGL_J0146.0-6746_weekly_bin715.fits scfile=/scratch/kocevski/933646/ft2_4FGL_J0146.0-6746_weekly_bin715.fits outfile=/scratch/kocevski/933646/cmap_671414401_672019201_4FGL_J0146.0-6746_weekly_bin715.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.5182 yref=-67.7748 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.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/933646/ft1_filtered_4FGL_J0146.0-6746_weekly_bin715.fits scfile=/scratch/kocevski/933646/ft2_4FGL_J0146.0-6746_weekly_bin715.fits outfile=/scratch/kocevski/933646/cmap_HighResolution_671414401_672019201_4FGL_J0146.0-6746_weekly_bin715.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.5182 yref=-67.7748 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.58
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/933646/ft1_filtered_4FGL_J0146.0-6746_weekly_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/933646/ft2_4FGL_J0146.0-6746_weekly_bin715.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/933646/Model_4FGL_J0146.0-6746_weekly_bin715.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
adding source LMC-30DorWest
adding source LMC-FarWest
adding source LMC-Galaxy
adding source LMC-North
adding source SMC-Galaxy
Working on...
/scratch/kocevski/933646/ft1_filtered_4FGL_J0146.0-6746_weekly_bin715.fits.....................!
real 13158.02
user 13125.24
sys 2.09

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/933646/ft1_filtered_4FGL_J0146.0-6746_weekly_bin715.fits', '/scratch/kocevski/933646/ft2_4FGL_J0146.0-6746_weekly_bin715.fits', expMap='/scratch/kocevski/933646/expmap_671414401_672019201_4FGL_J0146.0-6746_weekly_bin715.fits', expCube='/scratch/kocevski/933646/ltcube_671414401_672019201_4FGL_J0146.0-6746_weekly_bin715.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/933646/Model_4FGL_J0146.0-6746_weekly_bin715.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0146.0-6746'

4FGL J0146.0-6746
   Spectrum: PowerLaw
168    Prefactor:  1.171e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
169        Index:  2.062e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
170        Scale:  1.872e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/933646/ft1_filtered_4FGL_J0146.0-6746_weekly_bin715.fits
Spacecraft file(s): /scratch/kocevski/933646/ft2_4FGL_J0146.0-6746_weekly_bin715.fits
Exposure map: /scratch/kocevski/933646/expmap_671414401_672019201_4FGL_J0146.0-6746_weekly_bin715.fits
Exposure cube: /scratch/kocevski/933646/ltcube_671414401_672019201_4FGL_J0146.0-6746_weekly_bin715.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/933646/Model_4FGL_J0146.0-6746_weekly_bin715.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) = 16483.0649445

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27199       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10571E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.0851       1.0000         .10000E-03   10000.    
     4 'norm      '    .16174       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .49898       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12061       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.1493       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.1894       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.4610       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    8.9499       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.119       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.606       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12474E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.5244       1.0000         .10000E-03   10000.    
    18 'norm      '    1.1529       1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.926       1.0000         .10000E-03   10000.    
    20 'Prefactor '    24.254       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1369       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .92903       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6270E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   16483.06     FROM MIGRAD    STATUS=CONVERGED    513 CALLS     2859 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .25886        3.3968         .0000       -.13790E-02
   2  Prefactor     .10000E-03    7.1100         .0000    ** at limit **
   3  Prefactor     2.0849        2.9467         .0000        .16583E-02
   4  norm          .16104        1.7582         .0000        .11888E-02
   5  Prefactor     .50012        1.6907         .0000        .16342E-02
   6  Prefactor     .10000E-03    26.874         .0000    ** at limit **
   7  Prefactor     .12165        .94707         .0000        .28521E-02
   8  Prefactor     1.1495        1.5943         .0000        .22496E-04
   9  Prefactor     4.1899        2.3479         .0000        .15310E-02
  10  Prefactor     1.4611        4.2226         .0000        .43130E-01
  11  Prefactor     .10000E-03    10.875         .0000    ** at limit **
  12  norm          8.9508        7.4991         .0000       -.24384E-03
  13  Prefactor     .10000E-03    .60599         .0000    ** at limit **
  14  Prefactor     12.119        8.8616         .0000        .46839E-03
  15  Prefactor     13.603        41.832         .0000        .10885E-02
  16  Prefactor     .10008E-03    7.3639         .0000    ** at limit **
  17  norm          5.5232        4.4512         .0000       -.27655E-02
  18  norm          1.1529        .76286         .0000        .72177E-03
  19  Prefactor     15.923        25.553         .0000        .49292E-03
  20  Prefactor     24.256        32.106         .0000       -.60221E-03
  21  Normalizat    1.1369        .11503         .0000        .49082E-04
  22  Prefactor     .92899        .88173E-01     .0000        .28743E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.258863
  Prefactor  = 0.0001
  Prefactor  = 2.08487
  norm       = 0.16104
  Prefactor  = 0.500121
  Prefactor  = 0.0001
  Prefactor  = 0.121653
  Prefactor  = 1.14954
  Prefactor  = 4.1899
  Prefactor  = 1.46106
  Prefactor  = 0.0001
  norm       = 8.95081
  Prefactor  = 0.0001
  Prefactor  = 12.1185
  Prefactor  = 13.6035
  Prefactor  = 0.000100078
  norm       = 5.5232
  norm       = 1.15292
  Prefactor  = 15.9225
  Prefactor  = 24.2565
  Normalizat = 1.13686
  Prefactor  = 0.928992
 **********
 **   18 **HESSE 
 **********

 FCN=   16483.06     FROM HESSE     STATUS=OK           366 CALLS     3225 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .25886        61.199        .44291E-02   -1.5606    
   2  Prefactor     .10000E-03    7.3847        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.0849        2.9428        .25128E-03   -1.5419    
   4  norm          .16104        11.365        .33156E-02   -1.5628    
   5  Prefactor     .50012        5.7321        .28994E-02   -1.5567    
   6  Prefactor     .10000E-03    26.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .12165        3.7799        .24286E-02   -1.5638    
   8  Prefactor     1.1495        1.5561        .18492E-03   -1.5494    
   9  Prefactor     4.1899        2.3389        .13574E-03   -1.5299    
  10  Prefactor     1.4611        4.1863        .17798E-02   -1.5466    
  11  Prefactor     .10000E-03    10.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.9508        7.4924        .13398E-03   -1.5110    
  13  Prefactor     .10000E-03    1.0223        .19080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.119        8.8604        .11507E-03   -1.5012    
  15  Prefactor     13.603        41.304        .10859E-03   -1.4970    
  16  Prefactor     .10008E-03    8.1774        .11321       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.5232        4.3918        .17094E-03   -1.5238    
  18  norm          1.1529        .74266        .76858E-04   -1.5493    
  19  Prefactor     15.923        25.544        .10036E-03   -1.4910    
  20  Prefactor     24.256        32.112        .81337E-04   -1.4723    
  21  Normalizat    1.1369        .13740        .24671E-03   -.88577    
  22  Prefactor     .92899        .10515        .21972E-03   -.95135    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34485e-07
Minuit parameter uncertainties:
  1  7.96712
  2  3.72514e-07
  3  2.94299
  4  2.70547
  5  3.38636
  6  8.61795e-05
  7  1.35576
  8  1.55619
  9  2.33894
  10  4.18712
  11  2.42481e-05
  12  7.49317
  13  9.53872e-06
  14  8.86133
  15  41.3913
  16  0.00159468
  17  4.39201
  18  0.74267
  19  25.5616
  20  32.1345
  21  0.137441
  22  0.105172
Done.

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

Extracting fit parameters...

4FGL J0146.0-6746
   Spectrum: PowerLaw
168    Prefactor:  1.150e+00  1.556e+00  1.000e-04  1.000e+04 ( 1.000e-13)
169        Index:  2.062e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
170        Scale:  1.872e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  9.290e-01  1.052e-01  0.000e+00  1.000e+01 ( 1.000e+00)
607        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
608        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
605   Normalization:  1.137e+00  1.374e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.18
Ra Dec: 26.518 -67.775
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 4.55e-09 +/- 6.16e-09
Energy Flux (Fixed Index): 2.71e-06 +/- 3.68e-06

TS (Fixed Index): 1.18
Ra Dec: 26.518 -67.775
Photon Flux Upper Limit: 2.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/933646/likelihoodResults_671414401_672019201_4FGL_J0146.0-6746_weekly_bin715.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) = 16482.9232841
delta logL = 0.136706932433

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 16482.9076989
delta logL = 0.152292113202

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4573       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5728       1.0000          .0000       10.000    
     3 'Normalizat'    1.1393       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92794       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6270E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   16482.91     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      223 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4573        21.432        .89144E-02    .51094E-03
   2  Index         1.5728        1.6958        .50000        .59818E-04
   3  Normalizat    1.1393        .18685E-01    .55740E-01   -.53494E-03
   4  Prefactor     .92795        .14513E-01    .45360E-01   -.57985E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.45728
  Index      = 1.57282
  Normalizat = 1.13928
  Prefactor  = 0.927949
 **********
 **   18 **HESSE 
 **********

 FCN=   16482.91     FROM HESSE     STATUS=OK            29 CALLS      252 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4573        1.8584        .19438E-03   -1.5467    
   2  Index         1.5728        .80873        .10164E-01   -.75520    
   3  Normalizat    1.1393        .12584        .24648E-03   -.88500    
   4  Prefactor     .92795        .10296        .21983E-03   -.95171    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.33815e-10
Minuit parameter uncertainties:
  1  1.85848
  2  0.815534
  3  0.125875
  4  0.102981
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/933646': 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) = 16482.9076989
delta logL = 0.152292130115

Extracting fit parameters...

4FGL J0146.0-6746
   Spectrum: PowerLaw
168    Prefactor:  1.457e+00  1.858e+00  1.000e-04  1.000e+04 ( 1.000e-13)
169        Index:  1.573e+00  8.155e-01  0.000e+00  1.000e+01 (-1.000e+00)
170        Scale:  1.872e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  9.279e-01  1.030e-01  0.000e+00  1.000e+01 ( 1.000e+00)
607        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
608        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
605   Normalization:  1.139e+00  1.259e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.49
Ra Dec: 26.518 -67.775
Photon Index (Free Index): 1.57 +/- 0.82
Photon Flux (Free Index): 2.50e-09 +/- 4.20e-09
Energy Flux (Free Index): 6.20e-06 +/- 1.28e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/933646/cmap_HighResolution_671414401_672019201_4FGL_J0146.0-6746_weekly_bin715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.97e-03', comment='SUCCESS', photon_flux='4.55e-09', energy_flux2='6.20e-06', photon_flux_error='6.16e-09', dlogl='1.52e-01', energy_flux='2.71e-06', photon_flux2='2.50e-09', job_status='DONE', time_completed='2022-04-19 06:26:44.771056', photon_index_error2='0.82', photon_index2='1.57', ts='1.18', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='2.61e-08', energy_flux_error2='1.28e-05', EG='1.14', time_epoch_completed='1650374804.77', return_code='0', job_id='933646', GAL2='0.93', EG2='1.14', return_code2='0', energy_flux_error='3.68e-06', photon_flux_error2='4.20e-09', ts2='1.49', photon_index='2.06' WHERE bin_id='715' AND source_name='4FGL J0146.0-6746' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Apr 19 06:26:44 PDT 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 929957: <4FGL_J0146.0-6746_weekly_bin715> in cluster <slac> Done

Job <4FGL_J0146.0-6746_weekly_bin715> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Apr 19 00:05:30 2022
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 01:45:51 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 01:45:51 2022
Terminated at Tue Apr 19 05:48:59 2022
Results reported at Tue Apr 19 05:48:59 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0146.0-6746_weekly_bin715 26.5182 -67.7748 671414401 672019201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0146.0-6746 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   14504.00 sec.
    Max Memory :                                 1104 MB
    Average Memory :                             598.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   14588 sec.
    Turnaround time :                            20609 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0192>
Subject: Job 933646: <4FGL_J0146.0-6746_weekly_bin715> in cluster <slac> Done

Job <4FGL_J0146.0-6746_weekly_bin715> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Apr 19 00:16:21 2022
Job was executed on host(s) <bullet0192>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:20:22 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 02:20:22 2022
Terminated at Tue Apr 19 06:26:45 2022
Results reported at Tue Apr 19 06:26:45 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0146.0-6746_weekly_bin715 26.5182 -67.7748 671414401 672019201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0146.0-6746 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   14530.00 sec.
    Max Memory :                                 631 MB
    Average Memory :                             588.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   14783 sec.
    Turnaround time :                            22224 sec.

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

