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


Performing analysis on: 4FGL_J0125.3-2548_daily_bin1681
RA = 21.3474, Dec = -25.8074
tmin = 675043201, tmax = 675302401
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='740792', job_status='RUN', time_executed='2022-05-27 00:11:09.832563', time_epoch_executed='1653635469.83' WHERE source_name='4FGL J0125.3-2548' and cadence='daily' and bin_id='1681'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/740792

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/740792/ft1_4FGL_J0125.3-2548_daily_bin1681.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/740792/ft2_4FGL_J0125.3-2548_daily_bin1681.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/740792/ft1_4FGL_J0125.3-2548_daily_bin1681.fits outfile=/scratch/kocevski/740792/ft1_filteredMKT_4FGL_J0125.3-2548_daily_bin1681.fits ra=21.3474 dec=-25.8074 rad=12.0 tmin=675043201.0 tmax=675302401.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.64
user 3.35
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/740792/ft2_4FGL_J0125.3-2548_daily_bin1681.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/740792/ft2_4FGL_J0125.3-2548_daily_bin1681.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/740792/ft1_filteredMKT_4FGL_J0125.3-2548_daily_bin1681.fits evtable="EVENTS" outfile="/scratch/kocevski/740792/ft1_filtered_4FGL_J0125.3-2548_daily_bin1681.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.53
user 0.35
sys 0.16

Number of photons that the gtmktime cut: 620

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/740792/ft1_filtered_4FGL_J0125.3-2548_daily_bin1681.fits" evtable="EVENTS" scfile=/scratch/kocevski/740792/ft2_4FGL_J0125.3-2548_daily_bin1681.fits sctable="SC_DATA" outfile=/scratch/kocevski/740792/ltcube_675043201_675302401_4FGL_J0125.3-2548_daily_bin1681.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/740792/ft2_4FGL_J0125.3-2548_daily_bin1681.fits
.....................!
real 15.69
user 15.28
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/740792/ft1_filtered_4FGL_J0125.3-2548_daily_bin1681.fits evtable="EVENTS" scfile=/scratch/kocevski/740792/ft2_4FGL_J0125.3-2548_daily_bin1681.fits sctable="SC_DATA" expcube=/scratch/kocevski/740792/ltcube_675043201_675302401_4FGL_J0125.3-2548_daily_bin1681.fits outfile=/scratch/kocevski/740792/expmap_675043201_675302401_4FGL_J0125.3-2548_daily_bin1681.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/740792/ltcube_675043201_675302401_4FGL_J0125.3-2548_daily_bin1681.fits
.....................!
real 192.31
user 186.89
sys 4.85

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

Setting source of interest to:
4FGL J0125.3-2548 @ 21.3474 -25.8074

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/740792/ft1_filtered_4FGL_J0125.3-2548_daily_bin1681.fits scfile=/scratch/kocevski/740792/ft2_4FGL_J0125.3-2548_daily_bin1681.fits outfile=/scratch/kocevski/740792/cmap_675043201_675302401_4FGL_J0125.3-2548_daily_bin1681.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=21.3474 yref=-25.8074 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/740792/ft1_filtered_4FGL_J0125.3-2548_daily_bin1681.fits scfile=/scratch/kocevski/740792/ft2_4FGL_J0125.3-2548_daily_bin1681.fits outfile=/scratch/kocevski/740792/cmap_HighResolution_675043201_675302401_4FGL_J0125.3-2548_daily_bin1681.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=21.3474 yref=-25.8074 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.56
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/740792/ft1_filtered_4FGL_J0125.3-2548_daily_bin1681.fits evtable="EVENTS" scfile=/scratch/kocevski/740792/ft2_4FGL_J0125.3-2548_daily_bin1681.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/740792/Model_4FGL_J0125.3-2548_daily_bin1681.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/740792/ft1_filtered_4FGL_J0125.3-2548_daily_bin1681.fits....................!
real 56.06
user 54.17
sys 1.41

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/740792/ft1_filtered_4FGL_J0125.3-2548_daily_bin1681.fits', '/scratch/kocevski/740792/ft2_4FGL_J0125.3-2548_daily_bin1681.fits', expMap='/scratch/kocevski/740792/expmap_675043201_675302401_4FGL_J0125.3-2548_daily_bin1681.fits', expCube='/scratch/kocevski/740792/ltcube_675043201_675302401_4FGL_J0125.3-2548_daily_bin1681.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/740792/Model_4FGL_J0125.3-2548_daily_bin1681.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0125.3-2548'

4FGL J0125.3-2548
   Spectrum: PowerLaw
264    Prefactor:  4.298e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
265        Index:  2.224e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
266        Scale:  1.184e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/740792/ft1_filtered_4FGL_J0125.3-2548_daily_bin1681.fits
Spacecraft file(s): /scratch/kocevski/740792/ft2_4FGL_J0125.3-2548_daily_bin1681.fits
Exposure map: /scratch/kocevski/740792/expmap_675043201_675302401_4FGL_J0125.3-2548_daily_bin1681.fits
Exposure cube: /scratch/kocevski/740792/ltcube_675043201_675302401_4FGL_J0125.3-2548_daily_bin1681.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/740792/Model_4FGL_J0125.3-2548_daily_bin1681.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) = 6745.22221492

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    57.931       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .65308E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    9.6500       1.0000         .10000E-03   10000.    
     4 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12272E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.6835       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.3135       1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.5648       1.0000         .10000E-03   10000.    
    11 'Prefactor '    31.848       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.2440       1.0000         .10000E-03   10000.    
    13 'norm      '    2.3499       1.0000         .10000E-03   10000.    
    14 'norm      '    .50988E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10084E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .38830E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13998E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1031       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .62852       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6745.220     FROM MIGRAD    STATUS=CONVERGED    411 CALLS     2031 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          57.938        9.5523        .94698E-07    .16259E-03
   2  Prefactor     .10000E-03    26.002       -.18448E-05** at limit **
   3  norm          9.7131        9.2347       -.79353E-07   -.17712E-04
   4  norm          .10000E-03    .90358        .94570E-08** at limit **
   5  Prefactor     .10000E-03    1.6670        .99546E-08** at limit **
   6  Prefactor     .10000E-03    11.162       -.29552E-07** at limit **
   7  Prefactor     1.6849        2.5346       -.13871E-07   -.42137E-03
   8  Prefactor     1.3431        5.4203        .23413E-05   -.14332E-03
   9  norm          .10000E-03    .88170       -.61369E-06** at limit **
  10  norm          4.5639        2.2996       -.14721E-06    .80619E-04
  11  Prefactor     31.858        17.278        .12036E-05    .54528E-03
  12  Prefactor     5.2416        4.0063       -.99260E-07    .50264E-03
  13  norm          2.3500        1.1828        .86344E-08    .16657E-04
  14  norm          .60625E-01    .86200       -.35184E-06    .11258E-02
  15  Prefactor     .10000E-03    1.6832        .23732E-08** at limit **
  16  norm          .10000E-03    .90690        .22065E-07** at limit **
  17  Prefactor     .10000E-03    17.077        .68100E-06** at limit **
  18  Prefactor     .10000E-03    11.115       -.12272E-06** at limit **
  19  Normalizat    1.1029        .14526       -.29660E-06    .39103E-03
  20  Prefactor     .62848        .16357        .37434E-07    .16216E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 57.9375
  Prefactor  = 0.000100001
  norm       = 9.7131
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.68486
  Prefactor  = 1.34306
  norm       = 0.0001
  norm       = 4.56394
  Prefactor  = 31.8576
  Prefactor  = 5.24156
  norm       = 2.35005
  norm       = 0.0606254
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.1029
  Prefactor  = 0.628476
 **********
 **   18 **HESSE 
 **********

 FCN=   6745.220     FROM HESSE     STATUS=OK           291 CALLS     2322 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          57.938        9.5538        .52709E-04   -1.4184    
   2  Prefactor     .10000E-03    26.239        .21018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.7131        9.2391        .12900E-03   -1.5085    
   4  norm          .10000E-03    .91480        .76226E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.6746        .10354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.6849        2.5639        .15671E-03   -1.5448    
   8  Prefactor     1.3431        6.7376        .38449E-03   -1.5476    
   9  norm          .10000E-03    1.3723        .14728E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.5639        2.3059        .83181E-04   -1.5281    
  11  Prefactor     31.858        17.909        .71001E-04   -1.4579    
  12  Prefactor     5.2416        3.9643        .12857E-03   -1.5250    
  13  norm          2.3500        1.1797        .60726E-04   -1.5401    
  14  norm          .60625E-01    15.907        .13388E-02   -1.5659    
  15  Prefactor     .10000E-03    1.7089        .10402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .92611        .76285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.136        .21277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1029        .17016        .20096E-03   -.89659    
  20  Prefactor     .62848        .18995        .30170E-03   -1.0640    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.04161e-09
Minuit parameter uncertainties:
  1  9.55405
  2  0.000242368
  3  9.24045
  4  4.66248e-07
  5  7.907e-07
  6  3.24493e-05
  7  2.5641
  8  6.01716
  9  1.27134e-05
  10  2.30592
  11  17.9122
  12  3.96455
  13  1.17975
  14  1.96293
  15  9.03693e-07
  16  9.31634e-07
  17  7.77526e-05
  18  2.39226e-06
  19  0.170244
  20  0.190144
Done.

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

Extracting fit parameters...

4FGL J0125.3-2548
   Spectrum: PowerLaw
264    Prefactor:  3.186e+01  1.791e+01  1.000e-04  1.000e+04 ( 1.000e-13)
265        Index:  2.224e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
266        Scale:  1.184e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  6.285e-01  1.901e-01  0.000e+00  1.000e+01 ( 1.000e+00)
569        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
570        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
567   Normalization:  1.103e+00  1.702e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.00
Ra Dec: 21.347 -25.807
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 6.34e-08 +/- 3.56e-08
Energy Flux (Fixed Index): 2.73e-05 +/- 1.53e-05

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) = 6743.86748065
delta logL = 1.35249842171

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6743.85130323
delta logL = 1.36867584922

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.072       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0728       1.0000          .0000       10.000    
     3 'Normalizat'    1.0328       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68353       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+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=   6743.851     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      286 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.074        17.904        .11083E-03    .12863E-03
   2  Index         3.0729        .80402        .33637E-02    .10196E-03
   3  Normalizat    1.0329        .17176        .20629E-03    .70429E-04
   4  Prefactor     .68350        .19502        .29016E-03    .18454E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.0738
  Index      = 3.07292
  Normalizat = 1.03286
  Prefactor  = 0.683501
 **********
 **   18 **HESSE 
 **********

 FCN=   6743.851     FROM HESSE     STATUS=OK            25 CALLS      311 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.074        13.027        .44333E-05   -1.5013    
   2  Index         3.0729        .58563        .13455E-03   -.39566    
   3  Normalizat    1.0329        .17003        .82518E-05   -.91938    
   4  Prefactor     .68350        .19332        .11606E-04   -1.0418    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59818e-10
Minuit parameter uncertainties:
  1  13.0302
  2  0.587211
  3  0.170119
  4  0.193513
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/740792': 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) = 6743.8513029
delta logL = 1.36867617176

Extracting fit parameters...

4FGL J0125.3-2548
   Spectrum: PowerLaw
264    Prefactor:  1.207e+01  1.303e+01  1.000e-04  1.000e+04 ( 1.000e-13)
265        Index:  3.073e+00  5.872e-01  0.000e+00  1.000e+01 (-1.000e+00)
266        Scale:  1.184e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  6.835e-01  1.935e-01  0.000e+00  1.000e+01 ( 1.000e+00)
569        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
570        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
567   Normalization:  1.033e+00  1.701e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.01
Ra Dec: 21.347 -25.807
Photon Index (Free Index): 3.07 +/- 0.59
Photon Flux (Free Index): 1.16e-07 +/- 5.23e-08
Energy Flux (Free Index): 2.24e-05 +/- 9.54e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/740792/cmap_HighResolution_675043201_675302401_4FGL_J0125.3-2548_daily_bin1681.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.34e-08', energy_flux2='2.24e-05', photon_flux_error='3.56e-08', dlogl='1.37e+00', energy_flux='2.73e-05', photon_flux2='1.16e-07', job_status='DONE', time_completed='2022-05-27 00:20:54.292956', photon_index_error2='0.59', photon_index2='3.07', ts='6.00', fit_tolerance='1e-08', GAL='0.63', photon_index_error='0.00', energy_flux_error2='9.54e-06', EG='1.10', time_epoch_completed='1653636054.29', return_code='0', job_id='740792', GAL2='0.68', EG2='1.03', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='5.23e-08', ts2='9.01', photon_index='2.22' WHERE bin_id='1681' AND source_name='4FGL J0125.3-2548' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri May 27 00:20:54 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0191>
Subject: Job 740792: <4FGL_J0125.3-2548_daily_bin1681> in cluster <slac> Done

Job <4FGL_J0125.3-2548_daily_bin1681> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri May 27 00:04:53 2022
Job was executed on host(s) <bullet0191>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri May 27 00:10:05 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri May 27 00:10:05 2022
Terminated at Fri May 27 00:20:55 2022
Results reported at Fri May 27 00:20:55 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0125.3-2548_daily_bin1681 21.3474 -25.8074 675043201 675302401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0125.3-2548 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   582.62 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   649 sec.
    Turnaround time :                            962 sec.

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

