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


Performing analysis on: 4FGL_J0125.3-2548_daily_bin1094
RA = 21.3474, Dec = -25.8074
tmin = 522892801, tmax = 523152001
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='561491', job_status='RUN', time_executed='2021-08-14 00:11:25.246979', time_epoch_executed='1628925085.25' WHERE source_name='4FGL J0125.3-2548' and cadence='daily' and bin_id='1094'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/561491

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/561491/ft1_4FGL_J0125.3-2548_daily_bin1094.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/561491/ft2_4FGL_J0125.3-2548_daily_bin1094.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/561491/ft1_4FGL_J0125.3-2548_daily_bin1094.fits outfile=/scratch/kocevski/561491/ft1_filteredMKT_4FGL_J0125.3-2548_daily_bin1094.fits ra=21.3474 dec=-25.8074 rad=12.0 tmin=522892801.0 tmax=523152001.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 12.70
user 3.50
sys 9.13

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/561491/ft1_filtered_4FGL_J0125.3-2548_daily_bin1094.fits" evtable="EVENTS" scfile=/scratch/kocevski/561491/ft2_4FGL_J0125.3-2548_daily_bin1094.fits sctable="SC_DATA" outfile=/scratch/kocevski/561491/ltcube_522892801_523152001_4FGL_J0125.3-2548_daily_bin1094.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/561491/ft2_4FGL_J0125.3-2548_daily_bin1094.fits
.....................!
real 26.92
user 16.51
sys 10.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/561491/ft1_filtered_4FGL_J0125.3-2548_daily_bin1094.fits evtable="EVENTS" scfile=/scratch/kocevski/561491/ft2_4FGL_J0125.3-2548_daily_bin1094.fits sctable="SC_DATA" expcube=/scratch/kocevski/561491/ltcube_522892801_523152001_4FGL_J0125.3-2548_daily_bin1094.fits outfile=/scratch/kocevski/561491/expmap_522892801_523152001_4FGL_J0125.3-2548_daily_bin1094.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/561491/ltcube_522892801_523152001_4FGL_J0125.3-2548_daily_bin1094.fits
.....................!
real 203.67
user 187.93
sys 15.25

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/561491/ft1_filtered_4FGL_J0125.3-2548_daily_bin1094.fits scfile=/scratch/kocevski/561491/ft2_4FGL_J0125.3-2548_daily_bin1094.fits outfile=/scratch/kocevski/561491/cmap_522892801_523152001_4FGL_J0125.3-2548_daily_bin1094.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 8.47
user 0.38
sys 8.03

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/561491/ft1_filtered_4FGL_J0125.3-2548_daily_bin1094.fits scfile=/scratch/kocevski/561491/ft2_4FGL_J0125.3-2548_daily_bin1094.fits outfile=/scratch/kocevski/561491/cmap_HighResolution_522892801_523152001_4FGL_J0125.3-2548_daily_bin1094.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 9.37
user 0.39
sys 8.91

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/561491/ft1_filtered_4FGL_J0125.3-2548_daily_bin1094.fits evtable="EVENTS" scfile=/scratch/kocevski/561491/ft2_4FGL_J0125.3-2548_daily_bin1094.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/561491/Model_4FGL_J0125.3-2548_daily_bin1094.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/561491/ft1_filtered_4FGL_J0125.3-2548_daily_bin1094.fits.....................!
real 50.16
user 37.09
sys 12.89

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.045       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .64557E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    11.451       1.0000         .10000E-03   10000.    
     4 'norm      '    .11064E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.8038       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .58493       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .25198E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.2868       1.0000         .10000E-03   10000.    
    14 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.2097       1.0000         .10000E-03   10000.    
    16 'norm      '    .77800       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12800E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2269       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .73383       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=   4023.954     FROM MIGRAD    STATUS=CONVERGED    449 CALLS     1826 TOTAL
                     EDM=   .17E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.048        10.009       -.20911E-06   -.31237E-04
   2  Prefactor     .10000E-03    402.87        .23534E-04** at limit **
   3  norm          11.446        10.733        .39079E-06   -.21948E-04
   4  norm          .10000E-03    1.9171       -.55286E-07** at limit **
   5  Prefactor     2.8042        5.5086        .19893E-05    .29325E-05
   6  Prefactor     .10000E-03    4.8695        .85188E-07** at limit **
   7  Prefactor     .58997        3.5719        .31312E-06   -.10110E-03
   8  Prefactor     .10000E-03    10.709       -.97791E-08** at limit **
   9  norm          .10000E-03    1.0928        .15340E-07** at limit **
  10  norm          .10000E-03    .74675       -.82726E-08** at limit **
  11  Prefactor     .10000E-03    10.244        .21357E-06** at limit **
  12  Prefactor     .10000E-03    3.9394        .27432E-06** at limit **
  13  norm          2.2876        1.7588        .35291E-07   -.35962E-04
  14  norm          .10000E-03    1.4209       -.15452E-06** at limit **
  15  Prefactor     4.2106        4.0790        .13581E-07   -.12400E-04
  16  norm          .77263        2.9336        .36800E-06   -.52766E-04
  17  Prefactor     .10000E-03    137.26       -.25147E-05** at limit **
  18  Prefactor     .10000E-03    4.0356       -.30082E-06** at limit **
  19  Normalizat    1.2267        .20168       -.75888E-06   -.79612E-04
  20  Prefactor     .73370        .21396        .39878E-06   -.61317E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 15.0481
  Prefactor  = 0.0001
  norm       = 11.4459
  norm       = 0.0001
  Prefactor  = 2.8042
  Prefactor  = 0.0001
  Prefactor  = 0.589968
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 2.28764
  norm       = 0.0001
  Prefactor  = 4.21061
  norm       = 0.772635
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.22671
  Prefactor  = 0.733696
 **********
 **   18 **HESSE 
 **********

 FCN=   4023.954     FROM HESSE     STATUS=OK           297 CALLS     2123 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.048        10.003        .10326E-03   -1.4932    
   2  Prefactor     .10000E-03    403.32        .21025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          11.446        10.718        .11839E-03   -1.5031    
   4  norm          .10000E-03    3.0066        .17081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.8042        5.5162        .10081E-02   -1.5373    
   6  Prefactor     .10000E-03    4.8745        .13671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .58997        12.457        .22100E-02   -1.5554    
   8  Prefactor     .10000E-03    11.044        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.1267        .12938E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .74844        .53521E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    51.546        .38796E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.0312        .24546E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.2876        1.7519        .69585E-04   -1.5405    
  14  norm          .10000E-03    2.9000        .14513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.2106        4.0729        .12223E-03   -1.5298    
  16  norm          .77263        4.0673        .19202E-02   -1.5532    
  17  Prefactor     .10000E-03    140.26        .20591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.0422        .12447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2267        .22958        .20176E-03   -.85781    
  20  Prefactor     .73370        .24610        .28716E-03   -1.0222    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97443e-08
Minuit parameter uncertainties:
  1  10.0043
  2  0.000436474
  3  10.7194
  4  3.05659e-06
  5  5.51717
  6  3.15633e-07
  7  5.42267
  8  1.04192e-05
  9  1.07122e-06
  10  2.28953e-07
  11  0.000588539
  12  2.89381e-06
  13  1.75194
  14  8.28102e-06
  15  4.07317
  16  3.54557
  17  8.91483e-06
  18  1.58511e-06
  19  0.229774
  20  0.246469
Done.

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

Extracting fit parameters...

4FGL J0125.3-2548
   Spectrum: PowerLaw
264    Prefactor:  1.000e-04  5.885e-04  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.337e-01  2.465e-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.227e+00  2.298e-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/561491/likelihoodResults_522892801_523152001_4FGL_J0125.3-2548_daily_bin1094.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) = 4023.95406663
delta logL = -9.17908246265e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4023.79512421
delta logL = 0.158850630162

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5116       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3984       1.0000          .0000       10.000    
     3 'Normalizat'    1.1953       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75137       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=   4023.795     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      316 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5108        96.023        .86965E-02    .56955E-03
   2  Index         3.3987        6.6963        .14162        .78915E-04
   3  Normalizat    1.1953        .46979E-01    .35008E-01    .15268E-06
   4  Prefactor     .75134        .52523E-01    .64198E-01    .12344E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.51077
  Index      = 3.39867
  Normalizat = 1.19531
  Prefactor  = 0.751336
 **********
 **   18 **HESSE 
 **********

 FCN=   4023.795     FROM HESSE     STATUS=OK            33 CALLS      349 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5108        11.671        .13844E-03   -1.5462    
   2  Index         3.3987        2.5394        .84278E-02   -.32601    
   3  Normalizat    1.1953        .22363        .20402E-03   -.86748    
   4  Prefactor     .75134        .24771        .28399E-03   -1.0155    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.3382e-08
Minuit parameter uncertainties:
  1  8.40015
  2  2.68013
  3  0.223809
  4  0.248076
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/561491': 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) = 4023.79512418
delta logL = 0.158850658036

Extracting fit parameters...

4FGL J0125.3-2548
   Spectrum: PowerLaw
264    Prefactor:  1.511e+00  8.400e+00  1.000e-04  1.000e+04 ( 1.000e-13)
265        Index:  3.399e+00  2.680e+00  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.513e-01  2.481e-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.195e+00  2.238e-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/561491/cmap_HighResolution_522892801_523152001_4FGL_J0125.3-2548_daily_bin1094.png

Cleaning up...

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

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:21:57.545676', job_id='561491', GAL2='0.75', fit_tolerance='1e-08', EG2='1.20', EG='1.23', time_epoch_completed='1628925717.55', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='1.59e-01', ts2='0.33', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1094' AND source_name='4FGL J0125.3-2548' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 00:21:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 561491: <4FGL_J0125.3-2548_daily_bin1094> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0125.3-2548_daily_bin1094 21.3474 -25.8074 522892801 523152001 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 :                                   766.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             223.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            976 sec.

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

