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


Performing analysis on: 4FGL_J0125.3-2548_daily_bin1234
RA = 21.3474, Dec = -25.8074
tmin = 559180801, tmax = 559440001
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='561693', job_status='RUN', time_executed='2021-08-14 00:11:52.917592', time_epoch_executed='1628925112.92' WHERE source_name='4FGL J0125.3-2548' and cadence='daily' and bin_id='1234'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/561693

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/561693/ft1_4FGL_J0125.3-2548_daily_bin1234.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/561693/ft2_4FGL_J0125.3-2548_daily_bin1234.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/561693/ft1_4FGL_J0125.3-2548_daily_bin1234.fits outfile=/scratch/kocevski/561693/ft1_filteredMKT_4FGL_J0125.3-2548_daily_bin1234.fits ra=21.3474 dec=-25.8074 rad=12.0 tmin=559180801.0 tmax=559440001.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 11.94
user 3.38
sys 8.41

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/561693/ft1_filtered_4FGL_J0125.3-2548_daily_bin1234.fits" evtable="EVENTS" scfile=/scratch/kocevski/561693/ft2_4FGL_J0125.3-2548_daily_bin1234.fits sctable="SC_DATA" outfile=/scratch/kocevski/561693/ltcube_559180801_559440001_4FGL_J0125.3-2548_daily_bin1234.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/561693/ft2_4FGL_J0125.3-2548_daily_bin1234.fits
.....................!
real 21.96
user 12.26
sys 9.50

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/561693/ft1_filtered_4FGL_J0125.3-2548_daily_bin1234.fits evtable="EVENTS" scfile=/scratch/kocevski/561693/ft2_4FGL_J0125.3-2548_daily_bin1234.fits sctable="SC_DATA" expcube=/scratch/kocevski/561693/ltcube_559180801_559440001_4FGL_J0125.3-2548_daily_bin1234.fits outfile=/scratch/kocevski/561693/expmap_559180801_559440001_4FGL_J0125.3-2548_daily_bin1234.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/561693/ltcube_559180801_559440001_4FGL_J0125.3-2548_daily_bin1234.fits
.....................!
real 202.67
user 185.91
sys 15.89

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/561693/ft1_filtered_4FGL_J0125.3-2548_daily_bin1234.fits scfile=/scratch/kocevski/561693/ft2_4FGL_J0125.3-2548_daily_bin1234.fits outfile=/scratch/kocevski/561693/cmap_559180801_559440001_4FGL_J0125.3-2548_daily_bin1234.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.02

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/561693/ft1_filtered_4FGL_J0125.3-2548_daily_bin1234.fits scfile=/scratch/kocevski/561693/ft2_4FGL_J0125.3-2548_daily_bin1234.fits outfile=/scratch/kocevski/561693/cmap_HighResolution_559180801_559440001_4FGL_J0125.3-2548_daily_bin1234.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 8.65
user 0.39
sys 8.19

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/561693/ft1_filtered_4FGL_J0125.3-2548_daily_bin1234.fits evtable="EVENTS" scfile=/scratch/kocevski/561693/ft2_4FGL_J0125.3-2548_daily_bin1234.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/561693/Model_4FGL_J0125.3-2548_daily_bin1234.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/561693/ft1_filtered_4FGL_J0125.3-2548_daily_bin1234.fits.....................!
real 45.01
user 32.88
sys 11.89

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.641       1.0000         .10000E-03   10000.    
     2 'Prefactor '    56.643       1.0000         .10000E-03   10000.    
     3 'norm      '    5.0996       1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.6919       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    8.5118       1.0000         .10000E-03   10000.    
    10 'norm      '    .10268E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.463       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11648E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .15415E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    .31230       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .11655E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2703       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .62340       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=   3303.751     FROM MIGRAD    STATUS=CONVERGED    431 CALLS     2080 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.643        9.5503        .17951E-06   -.40581E-04
   2  Prefactor     56.805        168.41        .21114E-03    .15593E-04
   3  norm          5.0960        17.767       -.38706E-04   -.24103E-03
   4  norm          .10000E-03    4.9300        .49884E-05** at limit **
   5  Prefactor     .10000E-03    4.4762       -.34173E-05** at limit **
   6  Prefactor     .10000E-03    14.767       -.62194E-05** at limit **
   7  Prefactor     9.6941        10.890        .12910E-05   -.13322E-03
   8  Prefactor     .10000E-03    11.870        .20221E-05** at limit **
   9  norm          8.5106        3.5046       -.10986E-06   -.15350E-02
  10  norm          .10000E-03    3.5516       -.23294E-05** at limit **
  11  Prefactor     28.466        27.095        .59235E-05    .30023E-03
  12  Prefactor     .10002E-03    3.9837        .17681E-05** at limit **
  13  norm          .10188E-03    .72420        .14306E-05** at limit **
  14  norm          .31225        2.3099        .32383E-06   -.71393E-03
  15  Prefactor     .10000E-03    12.293       -.51928E-06** at limit **
  16  norm          .10000E-03    2.2935        .13030E-05** at limit **
  17  Prefactor     .10000E-03    48.563       -.10095E-04** at limit **
  18  Prefactor     .10000E-03    8.4524        .10578E-05** at limit **
  19  Normalizat    1.2703        .24046       -.11707E-04   -.50673E-03
  20  Prefactor     .62333        .25261        .20142E-06   -.63091E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 19.6429
  Prefactor  = 56.8045
  norm       = 5.096
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.69412
  Prefactor  = 0.0001
  norm       = 8.51061
  norm       = 0.000100002
  Prefactor  = 28.4661
  Prefactor  = 0.000100018
  norm       = 0.000101876
  norm       = 0.312247
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.27026
  Prefactor  = 0.623328
 **********
 **   18 **HESSE 
 **********

 FCN=   3303.751     FROM HESSE     STATUS=OK           293 CALLS     2373 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.643        9.5441        .90374E-04   -1.4821    
   2  Prefactor     56.805        168.23        .26651E-03   -1.4199    
   3  norm          5.0960        17.799        .17804E-03   -1.5256    
   4  norm          .10000E-03    5.0146        .12464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.5030        .11875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.6941        10.875        .12872E-03   -1.5085    
   8  Prefactor     .10000E-03    11.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          8.5106        3.4324        .64608E-04   -1.5124    
  10  norm          .10000E-03    5.5083        .19638E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     28.466        25.319        .75095E-04   -1.4640    
  12  Prefactor     .10002E-03    16.912        .21200E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10188E-03    48.528        .91319E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .31225        3.7378        .16174E-02   -1.5596    
  15  Prefactor     .10000E-03    12.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.2587        .16847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    48.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.4821        .16322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2703        .27042        .20811E-03   -.84459    
  20  Prefactor     .62333        .28979        .31712E-03   -1.0661    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.96029e-08
Minuit parameter uncertainties:
  1  9.5448
  2  169.664
  3  17.8176
  4  3.46041e-05
  5  1.73768e-05
  6  7.06376e-05
  7  10.8771
  8  4.06282e-05
  9  3.43251
  10  0.000204971
  11  25.3286
  12  0.00111001
  13  0.0191008
  14  2.16049
  15  0.000112705
  16  6.32868e-06
  17  0.000256261
  18  6.97181e-05
  19  0.270718
  20  0.29049
Done.

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

Extracting fit parameters...

4FGL J0125.3-2548
   Spectrum: PowerLaw
264    Prefactor:  2.847e+01  2.533e+01  1.000e-04  1.000e+04 ( 1.000e-13)
265        Index:  2.224e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
266        Scale:  1.184e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  6.233e-01  2.905e-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.270e+00  2.707e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.81
Ra Dec: 21.347 -25.807
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 5.67e-08 +/- 5.04e-08
Energy Flux (Fixed Index): 2.44e-05 +/- 2.17e-05

TS (Fixed Index): 1.81
Ra Dec: 21.347 -25.807
Photon Flux Upper Limit: 1.67e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.27e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/561693/likelihoodResults_559180801_559440001_4FGL_J0125.3-2548_daily_bin1234.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): 0
logL (Free Index) = 3303.37448298
delta logL = 0.376047824825

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3303.36190467
delta logL = 0.388626137255

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.478       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9108       1.0000          .0000       10.000    
     3 'Normalizat'    1.2200       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66156       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=   3303.362     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      291 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.483        25.998        .10527E-03   -.59400E-05
   2  Index         2.9102        1.0328        .42858E-02    .34454E-04
   3  Normalizat    1.2204        .27227        .21146E-03   -.10935E-03
   4  Prefactor     .66099        .29513        .30858E-03    .46070E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.4835
  Index      = 2.91021
  Normalizat = 1.22035
  Prefactor  = 0.660994
 **********
 **   18 **HESSE 
 **********

 FCN=   3303.362     FROM HESSE     STATUS=OK            25 CALLS      316 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.483        21.695        .42106E-05   -1.4947    
   2  Index         2.9102        .86286        .17143E-03   -.43120    
   3  Normalizat    1.2204        .27100        .42292E-04   -.85976    
   4  Prefactor     .66099        .29377        .12343E-04   -1.0508    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43891e-10
Minuit parameter uncertainties:
  1  21.7065
  2  0.868139
  3  0.271311
  4  0.294454
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/561693': 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) = 3303.36190198
delta logL = 0.388628832208

Extracting fit parameters...

4FGL J0125.3-2548
   Spectrum: PowerLaw
264    Prefactor:  1.448e+01  2.171e+01  1.000e-04  1.000e+04 ( 1.000e-13)
265        Index:  2.910e+00  8.681e-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:  6.610e-01  2.945e-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.220e+00  2.713e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.62
Ra Dec: 21.347 -25.807
Photon Index (Free Index): 2.91 +/- 0.87
Photon Flux (Free Index): 1.01e-07 +/- 8.45e-08
Energy Flux (Free Index): 2.11e-05 +/- 1.58e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/561693/cmap_HighResolution_559180801_559440001_4FGL_J0125.3-2548_daily_bin1234.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.27e-02', comment='SUCCESS', photon_flux='5.67e-08', energy_flux2='2.11e-05', photon_flux_error='5.04e-08', dlogl='3.89e-01', energy_flux='2.44e-05', photon_flux2='1.01e-07', job_status='DONE', time_completed='2021-08-14 00:21:45.024364', photon_index_error2='0.87', photon_index2='2.91', ts='1.81', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', photon_flux_upper_limit='1.67e-07', energy_flux_error2='1.58e-05', EG='1.27', time_epoch_completed='1628925705.02', return_code='0', job_id='561693', GAL2='0.66', EG2='1.22', return_code2='0', energy_flux_error='2.17e-05', photon_flux_error2='8.45e-08', ts2='2.62', photon_index='2.22' WHERE bin_id='1234' AND source_name='4FGL J0125.3-2548' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 00:21:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0193>
Subject: Job 561693: <4FGL_J0125.3-2548_daily_bin1234> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0125.3-2548_daily_bin1234 21.3474 -25.8074 559180801 559440001 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 :                                   715.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             228.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            951 sec.

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

