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


Performing analysis on: 4FGL_J0125.3-2548_daily_bin1362
RA = 21.3474, Dec = -25.8074
tmin = 592358401, tmax = 592617601
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='563498', job_status='RUN', time_executed='2021-08-14 00:18:03.101837', time_epoch_executed='1628925483.1' WHERE source_name='4FGL J0125.3-2548' and cadence='daily' and bin_id='1362'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/563498

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/563498/ft1_4FGL_J0125.3-2548_daily_bin1362.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/563498/ft2_4FGL_J0125.3-2548_daily_bin1362.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/563498/ft1_4FGL_J0125.3-2548_daily_bin1362.fits outfile=/scratch/kocevski/563498/ft1_filteredMKT_4FGL_J0125.3-2548_daily_bin1362.fits ra=21.3474 dec=-25.8074 rad=12.0 tmin=592358401.0 tmax=592617601.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.48
user 3.28
sys 2.14

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/563498/ft2_4FGL_J0125.3-2548_daily_bin1362.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/563498/ft1_filteredMKT_4FGL_J0125.3-2548_daily_bin1362.fits evtable="EVENTS" outfile="/scratch/kocevski/563498/ft1_filtered_4FGL_J0125.3-2548_daily_bin1362.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 2.48
user 0.32
sys 2.08

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/563498/ft1_filtered_4FGL_J0125.3-2548_daily_bin1362.fits" evtable="EVENTS" scfile=/scratch/kocevski/563498/ft2_4FGL_J0125.3-2548_daily_bin1362.fits sctable="SC_DATA" outfile=/scratch/kocevski/563498/ltcube_592358401_592617601_4FGL_J0125.3-2548_daily_bin1362.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/563498/ft2_4FGL_J0125.3-2548_daily_bin1362.fits
.....................!
real 14.77
user 12.08
sys 2.50

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/563498/ft1_filtered_4FGL_J0125.3-2548_daily_bin1362.fits evtable="EVENTS" scfile=/scratch/kocevski/563498/ft2_4FGL_J0125.3-2548_daily_bin1362.fits sctable="SC_DATA" expcube=/scratch/kocevski/563498/ltcube_592358401_592617601_4FGL_J0125.3-2548_daily_bin1362.fits outfile=/scratch/kocevski/563498/expmap_592358401_592617601_4FGL_J0125.3-2548_daily_bin1362.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/563498/ltcube_592358401_592617601_4FGL_J0125.3-2548_daily_bin1362.fits
.....................!
real 193.61
user 185.37
sys 7.79

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/563498/ft1_filtered_4FGL_J0125.3-2548_daily_bin1362.fits scfile=/scratch/kocevski/563498/ft2_4FGL_J0125.3-2548_daily_bin1362.fits outfile=/scratch/kocevski/563498/cmap_592358401_592617601_4FGL_J0125.3-2548_daily_bin1362.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 2.48
user 0.37
sys 2.06

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/563498/ft1_filtered_4FGL_J0125.3-2548_daily_bin1362.fits scfile=/scratch/kocevski/563498/ft2_4FGL_J0125.3-2548_daily_bin1362.fits outfile=/scratch/kocevski/563498/cmap_HighResolution_592358401_592617601_4FGL_J0125.3-2548_daily_bin1362.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 2.45
user 0.39
sys 2.03

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/563498/ft1_filtered_4FGL_J0125.3-2548_daily_bin1362.fits evtable="EVENTS" scfile=/scratch/kocevski/563498/ft2_4FGL_J0125.3-2548_daily_bin1362.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/563498/Model_4FGL_J0125.3-2548_daily_bin1362.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/563498/ft1_filtered_4FGL_J0125.3-2548_daily_bin1362.fits.....................!
real 45.71
user 41.82
sys 3.70

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/563498/ft1_filtered_4FGL_J0125.3-2548_daily_bin1362.fits', '/scratch/kocevski/563498/ft2_4FGL_J0125.3-2548_daily_bin1362.fits', expMap='/scratch/kocevski/563498/expmap_592358401_592617601_4FGL_J0125.3-2548_daily_bin1362.fits', expCube='/scratch/kocevski/563498/ltcube_592358401_592617601_4FGL_J0125.3-2548_daily_bin1362.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/563498/Model_4FGL_J0125.3-2548_daily_bin1362.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/563498/ft1_filtered_4FGL_J0125.3-2548_daily_bin1362.fits
Spacecraft file(s): /scratch/kocevski/563498/ft2_4FGL_J0125.3-2548_daily_bin1362.fits
Exposure map: /scratch/kocevski/563498/expmap_592358401_592617601_4FGL_J0125.3-2548_daily_bin1362.fits
Exposure cube: /scratch/kocevski/563498/ltcube_592358401_592617601_4FGL_J0125.3-2548_daily_bin1362.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/563498/Model_4FGL_J0125.3-2548_daily_bin1362.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) = 5004.80220099

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.1287       1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.343       1.0000         .10000E-03   10000.    
     3 'norm      '    .10234E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.6241       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.4165       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.1017       1.0000         .10000E-03   10000.    
     9 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    27.644       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10645E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    1.0229       1.0000         .10000E-03   10000.    
    14 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.7934       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.8670       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0485       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .76962       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=   5004.670     FROM MIGRAD    STATUS=CONVERGED    408 CALLS     1771 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.1294        5.5530        .26402E-07    .66949E-05
   2  Prefactor     15.428        105.89       -.16216E-04   -.15914E-04
   3  norm          .10000E-03    5.0127        .56381E-06** at limit **
   4  norm          3.6239        2.8949       -.15738E-07    .12425E-04
   5  Prefactor     .10000E-03    1.3954        .30744E-07** at limit **
   6  Prefactor     .10000E-03    2.4119       -.80072E-09** at limit **
   7  Prefactor     1.4161        3.3526       -.39050E-08   -.12788E-05
   8  Prefactor     6.1180        9.4076       -.53014E-06   -.21617E-03
   9  norm          .10000E-03    1.6304        .31025E-06** at limit **
  10  norm          .10000E-03    .98356       -.44292E-06** at limit **
  11  Prefactor     27.637        15.908        .69819E-06    .42446E-04
  12  Prefactor     .10006E-03    2.3408        .98715E-06** at limit **
  13  norm          1.0228        1.0184        .37617E-08   -.10071E-03
  14  norm          .10000E-03    .61025       -.62250E-07** at limit **
  15  Prefactor     .10000E-03    2.3011       -.13796E-06** at limit **
  16  norm          .10000E-03    .84631       -.57444E-07** at limit **
  17  Prefactor     2.7988        31.598       -.16716E-05   -.36665E-05
  18  Prefactor     2.8667        7.1506        .24620E-05    .15720E-03
  19  Normalizat    1.0485        .15931       -.36487E-06   -.73635E-04
  20  Prefactor     .76960        .18341        .10094E-05   -.40067E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.12936
  Prefactor  = 15.4278
  norm       = 0.0001
  norm       = 3.62387
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.41608
  Prefactor  = 6.11798
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 27.6368
  Prefactor  = 0.00010006
  norm       = 1.02284
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.79877
  Prefactor  = 2.86665
  Normalizat = 1.04852
  Prefactor  = 0.769604
 **********
 **   18 **HESSE 
 **********

 FCN=   5004.670     FROM HESSE     STATUS=OK           297 CALLS     2068 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.1294        5.5522        .14257E-03   -1.5174    
   2  Prefactor     15.428        105.78        .10225E-03   -1.4922    
   3  norm          .10000E-03    5.0339        .15495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.6239        2.8939        .10418E-03   -1.5327    
   5  Prefactor     .10000E-03    1.3969        .81609E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.4128        .10730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.4161        3.3415        .18897E-03   -1.5470    
   8  Prefactor     6.1180        9.1396        .16253E-03   -1.5213    
   9  norm          .10000E-03    1.6647        .17466E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.5794        .13412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     27.637        15.778        .76196E-04   -1.4656    
  12  Prefactor     .10006E-03    14.011        .18634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.0228        .97852        .68666E-03   -1.5506    
  14  norm          .10000E-03    .61731        .53936E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.3998        .20953E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .85203        .63532E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.7988        31.539        .24343E-03   -1.5373    
  18  Prefactor     2.8667        7.1956        .12004E-02   -1.5369    
  19  Normalizat    1.0485        .18413        .19711E-03   -.91422    
  20  Prefactor     .76960        .21213        .26636E-03   -1.0086    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.65786e-09
Minuit parameter uncertainties:
  1  5.5526
  2  80.9994
  3  4.33931e-05
  4  2.89405
  5  1.09511e-06
  6  7.23955e-07
  7  3.34191
  8  9.14164
  9  3.751e-06
  10  1.4922e-06
  11  15.7802
  12  0.00183375
  13  0.978531
  14  2.47375e-06
  15  4.60574e-06
  16  2.04686e-06
  17  18.8028
  18  7.19776
  19  0.184237
  20  0.212358
Done.

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

Extracting fit parameters...

4FGL J0125.3-2548
   Spectrum: PowerLaw
264    Prefactor:  2.764e+01  1.578e+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:  7.696e-01  2.124e-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.049e+00  1.842e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.85
Ra Dec: 21.347 -25.807
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 5.50e-08 +/- 3.14e-08
Energy Flux (Fixed Index): 2.37e-05 +/- 1.35e-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) = 5004.51374994
delta logL = 0.155999041405

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5004.51354432
delta logL = 0.156204659865

Fit tolerance = 1e-08

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

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

 FCN=   5004.514     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      264 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.219        505.21        .17121E-02    .93394E-04
   2  Index         1.9843        5.9468        .14446        .60495E-04
   3  Normalizat    1.0592        .11155        .39980E-01    .58166E-06
   4  Prefactor     .76090        .10929        .43206E-01    .12173E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.2189
  Index      = 1.98434
  Normalizat = 1.05922
  Prefactor  = 0.760899
 **********
 **   18 **HESSE 
 **********

 FCN=   5004.514     FROM HESSE     STATUS=OK            33 CALLS      297 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.219        21.555        .34242E-03   -1.4537    
   2  Index         1.9843        .41291        .55684E-02   -.64742    
   3  Normalizat    1.0592        .18061        .19623E-03   -.91072    
   4  Prefactor     .76090        .21197        .26767E-03   -1.0119    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.87216e-12
Minuit parameter uncertainties:
  1  21.5601
  2  0.413656
  3  0.180715
  4  0.212198
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/563498': 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) = 5004.51354195
delta logL = 0.156207026264

Extracting fit parameters...

4FGL J0125.3-2548
   Spectrum: PowerLaw
264    Prefactor:  3.422e+01  2.156e+01  1.000e-04  1.000e+04 ( 1.000e-13)
265        Index:  1.984e+00  4.137e-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:  7.609e-01  2.122e-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.059e+00  1.807e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.16
Ra Dec: 21.347 -25.807
Photon Index (Free Index): 1.98 +/- 0.41
Photon Flux (Free Index): 4.68e-08 +/- 3.12e-08
Energy Flux (Free Index): 3.37e-05 +/- 3.03e-05

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/563498/cmap_HighResolution_592358401_592617601_4FGL_J0125.3-2548_daily_bin1362.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.50e-08', energy_flux2='3.37e-05', photon_flux_error='3.14e-08', dlogl='1.56e-01', energy_flux='2.37e-05', photon_flux2='4.68e-08', job_status='DONE', time_completed='2021-08-14 00:26:41.222357', photon_index_error2='0.41', photon_index2='1.98', ts='6.85', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', energy_flux_error2='3.03e-05', EG='1.05', time_epoch_completed='1628926001.22', return_code='0', job_id='563498', GAL2='0.76', EG2='1.06', return_code2='0', energy_flux_error='1.35e-05', photon_flux_error2='3.12e-08', ts2='7.16', photon_index='2.22' WHERE bin_id='1362' AND source_name='4FGL J0125.3-2548' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 00:26:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 563498: <4FGL_J0125.3-2548_daily_bin1362> in cluster <slac> Done

Job <4FGL_J0125.3-2548_daily_bin1362> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 14 00:10:30 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 00:15:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 14 00:15:44 2021
Terminated at Sat Aug 14 00:26:42 2021
Results reported at Sat Aug 14 00:26:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0125.3-2548_daily_bin1362 21.3474 -25.8074 592358401 592617601 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 :                                   543.40 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             280.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   657 sec.
    Turnaround time :                            972 sec.

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

