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


Performing analysis on: 4FGL_J0125.3-2548_daily_bin1458
RA = 21.3474, Dec = -25.8074
tmin = 617241601, tmax = 617500801
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='563653', job_status='RUN', time_executed='2021-08-14 00:17:23.957085', time_epoch_executed='1628925443.96' WHERE source_name='4FGL J0125.3-2548' and cadence='daily' and bin_id='1458'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/563653

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/563653/ft1_4FGL_J0125.3-2548_daily_bin1458.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/563653/ft2_4FGL_J0125.3-2548_daily_bin1458.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/563653/ft1_4FGL_J0125.3-2548_daily_bin1458.fits outfile=/scratch/kocevski/563653/ft1_filteredMKT_4FGL_J0125.3-2548_daily_bin1458.fits ra=21.3474 dec=-25.8074 rad=12.0 tmin=617241601.0 tmax=617500801.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.83
user 2.70
sys 1.11

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/563653/ft2_4FGL_J0125.3-2548_daily_bin1458.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/563653/ft1_filteredMKT_4FGL_J0125.3-2548_daily_bin1458.fits evtable="EVENTS" outfile="/scratch/kocevski/563653/ft1_filtered_4FGL_J0125.3-2548_daily_bin1458.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.42
user 0.33
sys 1.04

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/563653/ft1_filtered_4FGL_J0125.3-2548_daily_bin1458.fits" evtable="EVENTS" scfile=/scratch/kocevski/563653/ft2_4FGL_J0125.3-2548_daily_bin1458.fits sctable="SC_DATA" outfile=/scratch/kocevski/563653/ltcube_617241601_617500801_4FGL_J0125.3-2548_daily_bin1458.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/563653/ft2_4FGL_J0125.3-2548_daily_bin1458.fits
.....................!
real 14.53
user 13.06
sys 1.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/563653/ft1_filtered_4FGL_J0125.3-2548_daily_bin1458.fits evtable="EVENTS" scfile=/scratch/kocevski/563653/ft2_4FGL_J0125.3-2548_daily_bin1458.fits sctable="SC_DATA" expcube=/scratch/kocevski/563653/ltcube_617241601_617500801_4FGL_J0125.3-2548_daily_bin1458.fits outfile=/scratch/kocevski/563653/expmap_617241601_617500801_4FGL_J0125.3-2548_daily_bin1458.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/563653/ltcube_617241601_617500801_4FGL_J0125.3-2548_daily_bin1458.fits
.....................!
real 192.33
user 185.22
sys 6.53

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/563653/ft1_filtered_4FGL_J0125.3-2548_daily_bin1458.fits scfile=/scratch/kocevski/563653/ft2_4FGL_J0125.3-2548_daily_bin1458.fits outfile=/scratch/kocevski/563653/cmap_617241601_617500801_4FGL_J0125.3-2548_daily_bin1458.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.42
user 0.38
sys 1.03

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/563653/ft1_filtered_4FGL_J0125.3-2548_daily_bin1458.fits scfile=/scratch/kocevski/563653/ft2_4FGL_J0125.3-2548_daily_bin1458.fits outfile=/scratch/kocevski/563653/cmap_HighResolution_617241601_617500801_4FGL_J0125.3-2548_daily_bin1458.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.43
user 0.39
sys 1.02

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/563653/ft1_filtered_4FGL_J0125.3-2548_daily_bin1458.fits evtable="EVENTS" scfile=/scratch/kocevski/563653/ft2_4FGL_J0125.3-2548_daily_bin1458.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/563653/Model_4FGL_J0125.3-2548_daily_bin1458.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/563653/ft1_filtered_4FGL_J0125.3-2548_daily_bin1458.fits.....................!
real 42.86
user 40.38
sys 2.39

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    34.635       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10985E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    8.4638       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .35493E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.7888       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13662E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.8074       1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .11179       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10451E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .60839       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.018       1.0000         .10000E-03   10000.    
    16 'norm      '    .69545       1.0000         .10000E-03   10000.    
    17 'Prefactor '    31.060       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .76044       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.3653       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=   4598.652     FROM MIGRAD    STATUS=CONVERGED    443 CALLS     1835 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          34.636        12.307        .88358E-07   -.18508E-03
   2  Prefactor     .10001E-03    76.686        .16035E-05** at limit **
   3  norm          .10000E-03    6.2257        .32986E-07** at limit **
   4  norm          8.4623        4.8574        .22950E-07   -.24350E-03
   5  Prefactor     .10004E-03    10.856        .40028E-05** at limit **
   6  Prefactor     4.8521        16.534       -.24229E-05   -.36439E-03
   7  Prefactor     .10401E-03    2.5026       -.75154E-06** at limit **
   8  Prefactor     3.8068        6.7802        .34180E-06   -.71738E-04
   9  norm          .10000E-03    .82540        .93585E-07** at limit **
  10  norm          .10781        2.3670        .11810E-05   -.51265E-03
  11  Prefactor     .10000E-03    13.582        .64384E-06** at limit **
  12  Prefactor     .10000E-03    1.8712        .14085E-06** at limit **
  13  norm          .10000E-03    .34942       -.76569E-08** at limit **
  14  norm          .60714        1.7168        .63598E-06    .28403E-03
  15  Prefactor     11.017        5.1780        .10163E-06    .10403E-03
  16  norm          .69380        2.7187        .15674E-05    .36559E-03
  17  Prefactor     31.033        34.396       -.52889E-06   -.15936E-03
  18  Prefactor     .10000E-03    5.9230       -.17616E-06** at limit **
  19  Normalizat    .76070        .19392       -.28745E-05   -.58856E-03
  20  Prefactor     1.3653        .22693        .10325E-05   -.55291E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 34.6356
  Prefactor  = 0.000100006
  norm       = 0.0001
  norm       = 8.46233
  Prefactor  = 0.000100037
  Prefactor  = 4.85209
  Prefactor  = 0.000104007
  Prefactor  = 3.80676
  norm       = 0.0001
  norm       = 0.107812
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.607136
  Prefactor  = 11.0169
  norm       = 0.693798
  Prefactor  = 31.033
  Prefactor  = 0.0001
  Normalizat = 0.760702
  Prefactor  = 1.36527
 **********
 **   18 **HESSE 
 **********

 FCN=   4598.652     FROM HESSE     STATUS=OK           299 CALLS     2134 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          34.636        12.307        .68093E-04   -1.4530    
   2  Prefactor     .10001E-03    76.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    6.2363        .16526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.4623        4.8562        .10929E-03   -1.5126    
   5  Prefactor     .10004E-03    21.109        .32253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.8521        16.631        .18385E-03   -1.5267    
   7  Prefactor     .10401E-03    4.8045        .33500E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.8068        6.7439        .20686E-03   -1.5318    
   9  norm          .10000E-03    .82859        .60065E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10781        5.9669        .18119E-02   -1.5642    
  11  Prefactor     .10000E-03    13.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.8842        .90580E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .35569        .39118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .60714        1.6711        .14151E-03   -1.5552    
  15  Prefactor     11.017        5.1792        .10232E-03   -1.5044    
  16  norm          .69380        2.7398        .20740E-03   -1.5541    
  17  Prefactor     31.033        34.358        .71894E-04   -1.4593    
  18  Prefactor     .10000E-03    5.9421        .16113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .76070        .22641        .25642E-03   -1.0154    
  20  Prefactor     1.3653        .26615        .24174E-03   -.81386    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.46401e-09
Minuit parameter uncertainties:
  1  12.3078
  2  0.00137463
  3  4.89131e-06
  4  4.85642
  5  0.00175905
  6  16.6465
  7  0.00877626
  8  6.74523
  9  2.66045e-06
  10  1.60356
  11  7.0709e-05
  12  6.92048e-06
  13  4.05238e-07
  14  1.67127
  15  5.17946
  16  2.7403
  17  34.3802
  18  1.20481e-05
  19  0.226692
  20  0.266413
Done.

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

Extracting fit parameters...

4FGL J0125.3-2548
   Spectrum: PowerLaw
264    Prefactor:  1.000e-04  7.071e-05  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.365e+00  2.664e-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:  7.607e-01  2.267e-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: 7.65e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/563653/likelihoodResults_617241601_617500801_4FGL_J0125.3-2548_daily_bin1458.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) = 4598.65241944
delta logL = -0.000348949330146

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4598.65207031
delta logL = 1.80680217454e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2594       1.0000          .0000       10.000    
     3 'Normalizat'    .76071       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3652       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=   4598.652     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      248 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1345.0        .18142E-02** at limit **
   2  Index         2.2990        8.0218        .50000       -.25501E-04
   3  Normalizat    .76070        .49247E-01    .25643E-03    .38438E-04
   4  Prefactor     1.3653        .60530E-01    .24173E-03    .79931E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010001
  Index      = 2.299
  Normalizat = 0.760703
  Prefactor  = 1.36527
 **********
 **   18 **HESSE 
 **********

 FCN=   4598.652     FROM HESSE     STATUS=OK            29 CALLS      277 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    103.04        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2990        6.4120        .50000       -.57068    
   3  Normalizat    .76070        .21405        .10257E-04   -1.0154    
   4  Prefactor     1.3653        .26317        .48347E-04   -.81386    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.88525e-10
Minuit parameter uncertainties:
  1  0.00203971
  2  10.9211
  3  0.21429
  4  0.263429
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/563653': 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) = 4598.65207007
delta logL = 4.22778612119e-07

Extracting fit parameters...

4FGL J0125.3-2548
   Spectrum: PowerLaw
264    Prefactor:  1.000e-04  2.040e-03  1.000e-04  1.000e+04 ( 1.000e-13)
265        Index:  2.299e+00  1.092e+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:  1.365e+00  2.634e-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:  7.607e-01  2.143e-01  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/563653/cmap_HighResolution_617241601_617500801_4FGL_J0125.3-2548_daily_bin1458.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.84e-03', job_status='DONE', photon_flux_upper_limit='7.65e-08', time_completed='2021-08-14 00:26:16.473486', job_id='563653', GAL2='1.37', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1628925976.47', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.37', dlogl='4.23e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1458' AND source_name='4FGL J0125.3-2548' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 00:26:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0197>
Subject: Job 563653: <4FGL_J0125.3-2548_daily_bin1458> in cluster <slac> Done

Job <4FGL_J0125.3-2548_daily_bin1458> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 14 00:10:43 2021
Job was executed on host(s) <bullet0197>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 00:16:31 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:16:31 2021
Terminated at Sat Aug 14 00:26:17 2021
Results reported at Sat Aug 14 00:26:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0125.3-2548_daily_bin1458 21.3474 -25.8074 617241601 617500801 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 :                                   540.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   585 sec.
    Turnaround time :                            934 sec.

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

