/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 85 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 = 7379
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0125.3-2548_daily_bin1052
RA = 21.3474, Dec = -25.8074
tmin = 512006401, tmax = 512265601
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='561430', job_status='RUN', time_executed='2021-08-14 00:08:23.375290', time_epoch_executed='1628924903.38' WHERE source_name='4FGL J0125.3-2548' and cadence='daily' and bin_id='1052'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/561430

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/561430/ft1_4FGL_J0125.3-2548_daily_bin1052.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/561430/ft2_4FGL_J0125.3-2548_daily_bin1052.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/561430/ft1_4FGL_J0125.3-2548_daily_bin1052.fits outfile=/scratch/kocevski/561430/ft1_filteredMKT_4FGL_J0125.3-2548_daily_bin1052.fits ra=21.3474 dec=-25.8074 rad=12.0 tmin=512006401.0 tmax=512265601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.21
user 3.30
sys 0.89

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/561430/ft2_4FGL_J0125.3-2548_daily_bin1052.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/561430/ft1_filteredMKT_4FGL_J0125.3-2548_daily_bin1052.fits evtable="EVENTS" outfile="/scratch/kocevski/561430/ft1_filtered_4FGL_J0125.3-2548_daily_bin1052.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 1.22
user 0.34
sys 0.87

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/561430/ft1_filtered_4FGL_J0125.3-2548_daily_bin1052.fits" evtable="EVENTS" scfile=/scratch/kocevski/561430/ft2_4FGL_J0125.3-2548_daily_bin1052.fits sctable="SC_DATA" outfile=/scratch/kocevski/561430/ltcube_512006401_512265601_4FGL_J0125.3-2548_daily_bin1052.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/561430/ft2_4FGL_J0125.3-2548_daily_bin1052.fits
.....................!
real 14.24
user 13.04
sys 1.14

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/561430/ft1_filtered_4FGL_J0125.3-2548_daily_bin1052.fits evtable="EVENTS" scfile=/scratch/kocevski/561430/ft2_4FGL_J0125.3-2548_daily_bin1052.fits sctable="SC_DATA" expcube=/scratch/kocevski/561430/ltcube_512006401_512265601_4FGL_J0125.3-2548_daily_bin1052.fits outfile=/scratch/kocevski/561430/expmap_512006401_512265601_4FGL_J0125.3-2548_daily_bin1052.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/561430/ltcube_512006401_512265601_4FGL_J0125.3-2548_daily_bin1052.fits
.....................!
real 191.66
user 186.05
sys 5.09

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/561430/ft1_filtered_4FGL_J0125.3-2548_daily_bin1052.fits scfile=/scratch/kocevski/561430/ft2_4FGL_J0125.3-2548_daily_bin1052.fits outfile=/scratch/kocevski/561430/cmap_512006401_512265601_4FGL_J0125.3-2548_daily_bin1052.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 1.24
user 0.39
sys 0.83

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/561430/ft1_filtered_4FGL_J0125.3-2548_daily_bin1052.fits scfile=/scratch/kocevski/561430/ft2_4FGL_J0125.3-2548_daily_bin1052.fits outfile=/scratch/kocevski/561430/cmap_HighResolution_512006401_512265601_4FGL_J0125.3-2548_daily_bin1052.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 1.27
user 0.39
sys 0.86

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/561430/ft1_filtered_4FGL_J0125.3-2548_daily_bin1052.fits evtable="EVENTS" scfile=/scratch/kocevski/561430/ft2_4FGL_J0125.3-2548_daily_bin1052.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/561430/Model_4FGL_J0125.3-2548_daily_bin1052.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/561430/ft1_filtered_4FGL_J0125.3-2548_daily_bin1052.fits.....................!
real 44.85
user 42.62
sys 2.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    21.163       1.0000         .10000E-03   10000.    
     2 'Prefactor '    105.44       1.0000         .10000E-03   10000.    
     3 'norm      '    10.109       1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.0886       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.0458       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.3221       1.0000         .10000E-03   10000.    
     9 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10080E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10167E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.7189       1.0000         .10000E-03   10000.    
    16 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .16641E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.8127       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .80276       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1467       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=   5092.236     FROM MIGRAD    STATUS=CONVERGED    462 CALLS     2058 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.177        7.3314        .22792E-06   -.23466E-04
   2  Prefactor     105.00        106.66       -.43354E-05   -.82864E-05
   3  norm          10.142        11.117        .40794E-05   -.67413E-05
   4  norm          .10000E-03    1.0475        .55712E-07** at limit **
   5  Prefactor     .10000E-03    2.6719        .47120E-07** at limit **
   6  Prefactor     4.1811        12.171       -.72473E-06   -.13425E-03
   7  Prefactor     3.0461        2.7161        .14821E-06   -.98335E-04
   8  Prefactor     4.3212        6.3362        .11670E-06   -.25637E-03
   9  norm          .10000E-03    1.0287       -.10398E-07** at limit **
  10  norm          .10000E-03    1.1120        .82546E-07** at limit **
  11  Prefactor     .10000E-03    4.4615        .42010E-09** at limit **
  12  Prefactor     .10000E-03    1.1771        .31463E-07** at limit **
  13  norm          .10000E-03    .81509        .19711E-06** at limit **
  14  norm          .10000E-03    1.2665        .98982E-07** at limit **
  15  Prefactor     7.7203        4.3048        .14007E-06   -.48749E-04
  16  norm          .10000E-03    1.0227       -.14161E-07** at limit **
  17  Prefactor     .10000E-03    45.480       -.23833E-04** at limit **
  18  Prefactor     2.7684        19.120        .29220E-04   -.70018E-04
  19  Normalizat    .80271        .16350       -.12979E-05   -.21512E-03
  20  Prefactor     1.1466        .19273       -.16863E-05   -.12155E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 21.1769
  Prefactor  = 104.998
  norm       = 10.1424
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.18113
  Prefactor  = 3.0461
  Prefactor  = 4.32124
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.72034
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 2.76843
  Normalizat = 0.802706
  Prefactor  = 1.14663
 **********
 **   18 **HESSE 
 **********

 FCN=   5092.236     FROM HESSE     STATUS=OK           291 CALLS     2349 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.177        7.3301        .87068E-04   -1.4787    
   2  Prefactor     105.00        106.72        .39162E-04   -1.3655    
   3  norm          10.142        11.117        .12602E-03   -1.5071    
   4  norm          .10000E-03    1.0557        .71315E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.6891        .11379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.1811        12.130        .19938E-03   -1.5299    
   7  Prefactor     3.0461        2.7141        .10720E-03   -1.5359    
   8  Prefactor     4.3212        6.2435        .19377E-03   -1.5292    
   9  norm          .10000E-03    1.0405        .13945E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.1467        .14673E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.4690        .14719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.1829        .75582E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.4545        .12404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.4904        .15482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.7203        4.3045        .10676E-03   -1.5152    
  16  norm          .10000E-03    1.0374        .70432E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    46.309        .20387E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.7684        18.622        .24254E-03   -1.5375    
  19  Normalizat    .80271        .19280        .23070E-03   -.99968    
  20  Prefactor     1.1466        .22952        .23796E-03   -.87990    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.09212e-10
Minuit parameter uncertainties:
  1  7.33038
  2  106.919
  3  11.1192
  4  3.21333e-06
  5  1.10557e-05
  6  12.1375
  7  2.7142
  8  6.24441
  9  3.84368e-06
  10  6.63893e-06
  11  6.90327e-06
  12  2.72839e-06
  13  2.06485e-05
  14  1.63648e-05
  15  4.30471
  16  4.06198e-07
  17  0.00061467
  18  14.3662
  19  0.19296
  20  0.22972
Done.

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

Extracting fit parameters...

4FGL J0125.3-2548
   Spectrum: PowerLaw
264    Prefactor:  1.000e-04  6.903e-06  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:  1.147e+00  2.297e-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:  8.027e-01  1.930e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 21.347 -25.807
Photon Flux Upper Limit: 4.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/561430/likelihoodResults_512006401_512265601_4FGL_J0125.3-2548_daily_bin1052.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): 102
logL (Free Index) = 5092.23702375
delta logL = -0.00106017806047

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5092.23596349
delta logL = 8.62073648022e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2040       1.0000          .0000       10.000    
     3 'Normalizat'    .80270       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1466       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=   5092.236     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      243 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10235E-03    4.5274        .14948E-01** at limit **
   2  Index         2.1139        6.7609        .50000        .27837E-04
   3  Normalizat    .80271        .38710E-02    .23070E-03    .14438E-04
   4  Prefactor     1.1466        .47114E-02    .23796E-03    .32965E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102348
  Index      = 2.11386
  Normalizat = 0.802708
  Prefactor  = 1.14663
 **********
 **   18 **HESSE 
 **********

 FCN=   5092.236     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10235E-03    78.258        .15304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1139        6.0185        .50000       -.61533    
   3  Normalizat    .80271        .16337E-01    .92282E-05   -.99968    
   4  Prefactor     1.1466        .19885E-01    .95183E-05   -.87990    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.66308e-08
Minuit parameter uncertainties:
  1  0.0271469
  2  413.643
  3  0.0163375
  4  0.0198847
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/561430': 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): 102
logL (Free Index) = 5092.23596295
delta logL = 6.20339960733e-07

Extracting fit parameters...

4FGL J0125.3-2548
   Spectrum: PowerLaw
264    Prefactor:  1.023e-04  2.715e-02  1.000e-04  1.000e+04 ( 1.000e-13)
265        Index:  2.114e+00  4.136e+02  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:  1.147e+00  1.988e-02  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:  8.027e-01  1.634e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 21.347 -25.807

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/561430/cmap_HighResolution_512006401_512265601_4FGL_J0125.3-2548_daily_bin1052.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.27e-03', job_status='DONE', photon_flux_upper_limit='4.29e-08', time_completed='2021-08-14 00:17:48.240135', job_id='561430', GAL2='1.15', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1628925468.24', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='6.20e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1052' AND source_name='4FGL J0125.3-2548' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 00:17:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 561430: <4FGL_J0125.3-2548_daily_bin1052> in cluster <slac> Done

Job <4FGL_J0125.3-2548_daily_bin1052> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sat Aug 14 00:05:39 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 00:06:32 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:06:32 2021
Terminated at Sat Aug 14 00:17:49 2021
Results reported at Sat Aug 14 00:17:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0125.3-2548_daily_bin1052 21.3474 -25.8074 512006401 512265601 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 :                                   569.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   676 sec.
    Turnaround time :                            730 sec.

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

