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


Performing analysis on: 4FGL_J0125.3-2548_daily_bin1076
RA = 21.3474, Dec = -25.8074
tmin = 518227201, tmax = 518486401
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='561465', job_status='RUN', time_executed='2021-08-14 00:09:25.815820', time_epoch_executed='1628924965.82' WHERE source_name='4FGL J0125.3-2548' and cadence='daily' and bin_id='1076'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/561465

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/561465/ft1_4FGL_J0125.3-2548_daily_bin1076.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/561465/ft2_4FGL_J0125.3-2548_daily_bin1076.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/561465/ft1_4FGL_J0125.3-2548_daily_bin1076.fits outfile=/scratch/kocevski/561465/ft1_filteredMKT_4FGL_J0125.3-2548_daily_bin1076.fits ra=21.3474 dec=-25.8074 rad=12.0 tmin=518227201.0 tmax=518486401.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.59
user 3.40
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/561465/ft1_filtered_4FGL_J0125.3-2548_daily_bin1076.fits" evtable="EVENTS" scfile=/scratch/kocevski/561465/ft2_4FGL_J0125.3-2548_daily_bin1076.fits sctable="SC_DATA" outfile=/scratch/kocevski/561465/ltcube_518227201_518486401_4FGL_J0125.3-2548_daily_bin1076.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/561465/ft2_4FGL_J0125.3-2548_daily_bin1076.fits
.....................!
real 12.71
user 12.29
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/561465/ft1_filtered_4FGL_J0125.3-2548_daily_bin1076.fits evtable="EVENTS" scfile=/scratch/kocevski/561465/ft2_4FGL_J0125.3-2548_daily_bin1076.fits sctable="SC_DATA" expcube=/scratch/kocevski/561465/ltcube_518227201_518486401_4FGL_J0125.3-2548_daily_bin1076.fits outfile=/scratch/kocevski/561465/expmap_518227201_518486401_4FGL_J0125.3-2548_daily_bin1076.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/561465/ltcube_518227201_518486401_4FGL_J0125.3-2548_daily_bin1076.fits
.....................!
real 191.09
user 185.70
sys 4.22

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/561465/ft1_filtered_4FGL_J0125.3-2548_daily_bin1076.fits scfile=/scratch/kocevski/561465/ft2_4FGL_J0125.3-2548_daily_bin1076.fits outfile=/scratch/kocevski/561465/cmap_518227201_518486401_4FGL_J0125.3-2548_daily_bin1076.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/561465/ft1_filtered_4FGL_J0125.3-2548_daily_bin1076.fits scfile=/scratch/kocevski/561465/ft2_4FGL_J0125.3-2548_daily_bin1076.fits outfile=/scratch/kocevski/561465/cmap_HighResolution_518227201_518486401_4FGL_J0125.3-2548_daily_bin1076.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/561465/ft1_filtered_4FGL_J0125.3-2548_daily_bin1076.fits evtable="EVENTS" scfile=/scratch/kocevski/561465/ft2_4FGL_J0125.3-2548_daily_bin1076.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/561465/Model_4FGL_J0125.3-2548_daily_bin1076.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/561465/ft1_filtered_4FGL_J0125.3-2548_daily_bin1076.fits.....................!
real 38.41
user 37.14
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.0607       1.0000         .10000E-03   10000.    
     2 'Prefactor '    51.795       1.0000         .10000E-03   10000.    
     3 'norm      '    18.139       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.248       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.8010       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.9455       1.0000         .10000E-03   10000.    
    14 'norm      '    .24115E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.4978       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    45.902       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.2816       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .96628       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0343       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=   4163.062     FROM MIGRAD    STATUS=CONVERGED    411 CALLS     2030 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.0585        7.2996        .72722E-06   -.15291E-03
   2  Prefactor     51.758        99.878       -.50476E-04    .57818E-05
   3  norm          18.135        21.230       -.46311E-05    .57933E-05
   4  norm          .10000E-03    1.2055        .11018E-06** at limit **
   5  Prefactor     .10000E-03    2.5639        .93008E-06** at limit **
   6  Prefactor     .10000E-03    6.8825        .44512E-06** at limit **
   7  Prefactor     15.245        6.2924       -.14374E-06   -.50543E-05
   8  Prefactor     .10000E-03    3.2702       -.96727E-07** at limit **
   9  norm          .10000E-03    .98863       -.48674E-06** at limit **
  10  norm          5.8013        2.9958       -.10106E-06    .16897E-03
  11  Prefactor     .10000E-03    7.1928       -.84543E-06** at limit **
  12  Prefactor     .10000E-03    4.0995       -.75641E-06** at limit **
  13  norm          1.9451        1.6046       -.19513E-06   -.12392E-03
  14  norm          .10000E-03    1.2633       -.39434E-06** at limit **
  15  Prefactor     3.4955        5.9386       -.11906E-05   -.35338E-03
  16  norm          .10000E-03    1.4137        .61730E-07** at limit **
  17  Prefactor     45.907        42.720        .75096E-05    .25454E-04
  18  Prefactor     7.2749        16.033       -.91397E-05   -.38377E-04
  19  Normalizat    .96667        .20058        .23561E-05    .13950E-03
  20  Prefactor     1.0342        .23161        .17558E-05    .13282E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.05848
  Prefactor  = 51.758
  norm       = 18.1353
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.2453
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.80127
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.94513
  norm       = 0.000100003
  Prefactor  = 3.49547
  norm       = 0.0001
  Prefactor  = 45.9073
  Prefactor  = 7.27494
  Normalizat = 0.966673
  Prefactor  = 1.03417
 **********
 **   18 **HESSE 
 **********

 FCN=   4163.062     FROM HESSE     STATUS=OK           295 CALLS     2325 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.0585        7.2901        .17874E-03   -1.5258    
   2  Prefactor     51.758        99.830        .55727E-04   -1.4268    
   3  norm          18.135        21.264        .94040E-04   -1.4856    
   4  norm          .10000E-03    1.2079        .69177E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.5703        .10090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.8960        .16530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.245        6.2978        .99589E-04   -1.4927    
   8  Prefactor     .10000E-03    3.2747        .11394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.0046        .62616E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.8013        2.9966        .77779E-04   -1.5226    
  11  Prefactor     .10000E-03    7.2027        .16900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.1862        .12741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.9451        1.5963        .70658E-04   -1.5429    
  14  norm          .10000E-03    4.5584        .24321E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.4955        5.9459        .19572E-03   -1.5334    
  16  norm          .10000E-03    1.4279        .74871E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     45.907        42.729        .59179E-04   -1.4352    
  18  Prefactor     7.2749        16.085        .14864E-03   -1.5168    
  19  Normalizat    .96667        .24192        .23449E-03   -.94155    
  20  Prefactor     1.0342        .27843        .26625E-03   -.91599    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67425e-10
Minuit parameter uncertainties:
  1  7.29135
  2  100.155
  3  21.2728
  4  2.70048e-06
  5  7.24536e-06
  6  5.96624e-06
  7  6.29808
  8  4.56907e-06
  9  1.68881e-06
  10  2.99665
  11  7.06766e-06
  12  6.9403e-06
  13  1.59638
  14  0.000226758
  15  5.94693
  16  5.76304e-06
  17  42.7579
  18  16.0944
  19  0.242195
  20  0.278821
Done.

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

Extracting fit parameters...

4FGL J0125.3-2548
   Spectrum: PowerLaw
264    Prefactor:  1.000e-04  7.068e-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.034e+00  2.788e-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:  9.667e-01  2.422e-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: 6.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/561465/likelihoodResults_518227201_518486401_4FGL_J0125.3-2548_daily_bin1076.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) = 4163.06275486
delta logL = -0.00066025889555

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4163.06209459
delta logL = 1.16106093628e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2156       1.0000          .0000       10.000    
     3 'Normalizat'    .96668       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0342       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=   4163.062     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      243 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10051E-03    126.76        .16944E-02** at limit **
   2  Index         2.1707        6.0844        .50000        .77304E-05
   3  Normalizat    .96667        .20744E-01    .23449E-03    .29089E-06
   4  Prefactor     1.0342        .24386E-01    .26625E-03    .34160E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010051
  Index      = 2.17069
  Normalizat = 0.966673
  Prefactor  = 1.03417
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10051E-03    529.50        .33888E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1707        8.9034        .50000       -.60148    
   3  Normalizat    .96667        .45931E-01    .93797E-05   -.94155    
   4  Prefactor     1.0342        .53988E-01    .10650E-04   -.91599    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.4648e-08
Minuit parameter uncertainties:
  1  0.0331659
  2  1233.97
  3  0.0459329
  4  0.0539903
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/561465': 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) = 4163.06209452
delta logL = 7.51060724724e-08

Extracting fit parameters...

4FGL J0125.3-2548
   Spectrum: PowerLaw
264    Prefactor:  1.005e-04  3.317e-02  1.000e-04  1.000e+04 ( 1.000e-13)
265        Index:  2.171e+00  1.234e+03  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.034e+00  5.399e-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:  9.667e-01  4.593e-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/561465/cmap_HighResolution_518227201_518486401_4FGL_J0125.3-2548_daily_bin1076.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.02e-03', job_status='DONE', photon_flux_upper_limit='6.58e-08', time_completed='2021-08-14 00:17:46.372535', job_id='561465', GAL2='1.03', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1628925466.37', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='7.51e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1076' AND source_name='4FGL J0125.3-2548' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 00:17:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 561465: <4FGL_J0125.3-2548_daily_bin1076> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0125.3-2548_daily_bin1076 21.3474 -25.8074 518227201 518486401 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 :                                   496.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             252.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   664 sec.
    Turnaround time :                            725 sec.

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

