/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 236 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 = 7410
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0124.8-0625_daily_bin390
RA = 21.2178, Dec = -6.4328
tmin = 340416001, tmax = 340675201
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='551987', job_status='RUN', time_executed='2021-08-13 23:41:07.210234', time_epoch_executed='1628923267.21' WHERE source_name='4FGL J0124.8-0625' and cadence='daily' and bin_id='390'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/551987

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

Retrieving the FT1 file...

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

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

Retrieving 53 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/551987/ft1_4FGL_J0124.8-0625_daily_bin390.fits


Retrieving the FT1 file...

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

Retrieving 53 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/551987/ft2_4FGL_J0124.8-0625_daily_bin390.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/551987/ft1_4FGL_J0124.8-0625_daily_bin390.fits outfile=/scratch/kocevski/551987/ft1_filteredMKT_4FGL_J0124.8-0625_daily_bin390.fits ra=21.2178 dec=-6.4328 rad=12.0 tmin=340416001.0 tmax=340675201.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 6.84
user 6.49
sys 0.33

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/551987/ft2_4FGL_J0124.8-0625_daily_bin390.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/551987/ft2_4FGL_J0124.8-0625_daily_bin390.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/551987/ft1_filteredMKT_4FGL_J0124.8-0625_daily_bin390.fits evtable="EVENTS" outfile="/scratch/kocevski/551987/ft1_filtered_4FGL_J0124.8-0625_daily_bin390.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.57
user 0.35
sys 0.21

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/551987/ft1_filtered_4FGL_J0124.8-0625_daily_bin390.fits" evtable="EVENTS" scfile=/scratch/kocevski/551987/ft2_4FGL_J0124.8-0625_daily_bin390.fits sctable="SC_DATA" outfile=/scratch/kocevski/551987/ltcube_340416001_340675201_4FGL_J0124.8-0625_daily_bin390.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/551987/ft2_4FGL_J0124.8-0625_daily_bin390.fits
.....................!
real 12.75
user 12.31
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/551987/ft1_filtered_4FGL_J0124.8-0625_daily_bin390.fits evtable="EVENTS" scfile=/scratch/kocevski/551987/ft2_4FGL_J0124.8-0625_daily_bin390.fits sctable="SC_DATA" expcube=/scratch/kocevski/551987/ltcube_340416001_340675201_4FGL_J0124.8-0625_daily_bin390.fits outfile=/scratch/kocevski/551987/expmap_340416001_340675201_4FGL_J0124.8-0625_daily_bin390.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/551987/ltcube_340416001_340675201_4FGL_J0124.8-0625_daily_bin390.fits
.....................!
real 190.56
user 185.25
sys 4.94

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 184 point sources and 0 extended sources

Setting source of interest to:
4FGL J0124.8-0625 @ 21.2178 -6.4328

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/551987/ft1_filtered_4FGL_J0124.8-0625_daily_bin390.fits scfile=/scratch/kocevski/551987/ft2_4FGL_J0124.8-0625_daily_bin390.fits outfile=/scratch/kocevski/551987/cmap_340416001_340675201_4FGL_J0124.8-0625_daily_bin390.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.2178 yref=-6.4328 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.64
user 0.39
sys 0.20

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/551987/ft1_filtered_4FGL_J0124.8-0625_daily_bin390.fits scfile=/scratch/kocevski/551987/ft2_4FGL_J0124.8-0625_daily_bin390.fits outfile=/scratch/kocevski/551987/cmap_HighResolution_340416001_340675201_4FGL_J0124.8-0625_daily_bin390.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.2178 yref=-6.4328 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.61
user 0.41
sys 0.20

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/551987/ft1_filtered_4FGL_J0124.8-0625_daily_bin390.fits evtable="EVENTS" scfile=/scratch/kocevski/551987/ft2_4FGL_J0124.8-0625_daily_bin390.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/551987/Model_4FGL_J0124.8-0625_daily_bin390.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/551987/ft1_filtered_4FGL_J0124.8-0625_daily_bin390.fits.....................!
real 53.45
user 52.10
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/551987/ft1_filtered_4FGL_J0124.8-0625_daily_bin390.fits', '/scratch/kocevski/551987/ft2_4FGL_J0124.8-0625_daily_bin390.fits', expMap='/scratch/kocevski/551987/expmap_340416001_340675201_4FGL_J0124.8-0625_daily_bin390.fits', expCube='/scratch/kocevski/551987/ltcube_340416001_340675201_4FGL_J0124.8-0625_daily_bin390.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/551987/Model_4FGL_J0124.8-0625_daily_bin390.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0124.8-0625'

4FGL J0124.8-0625
   Spectrum: PowerLaw
309    Prefactor:  1.169e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.214e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
311        Scale:  1.539e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/551987/ft1_filtered_4FGL_J0124.8-0625_daily_bin390.fits
Spacecraft file(s): /scratch/kocevski/551987/ft2_4FGL_J0124.8-0625_daily_bin390.fits
Exposure map: /scratch/kocevski/551987/expmap_340416001_340675201_4FGL_J0124.8-0625_daily_bin390.fits
Exposure cube: /scratch/kocevski/551987/ltcube_340416001_340675201_4FGL_J0124.8-0625_daily_bin390.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/551987/Model_4FGL_J0124.8-0625_daily_bin390.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) = 5190.33824251

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4584       1.0000         .10000E-03   10000.    
     2 'norm      '    5.5641       1.0000         .10000E-03   10000.    
     3 'norm      '    7.3335       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    51.297       1.0000         .10000E-03   10000.    
     6 'Prefactor '    25.700       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12746E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    2.6169       1.0000         .10000E-03   10000.    
     9 'Prefactor '    35.757       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.1477       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    87.741       1.0000         .10000E-03   10000.    
    15 'norm      '    7.4139       1.0000         .10000E-03   10000.    
    16 'norm      '    .86237       1.0000         .10000E-03   10000.    
    17 'norm      '    5.6470       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .96276       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .77347       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5910E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5190.334     FROM MIGRAD    STATUS=CONVERGED    452 CALLS     2327 TOTAL
                     EDM=   .23E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4582        4.2455        .30245E-06    .18617E-04
   2  norm          5.5641        3.3454        .10159E-07    .52240E-07
   3  norm          7.3334        5.5696        .54526E-09   -.27809E-05
   4  Prefactor     .10000E-03    5.4795       -.10137E-08** at limit **
   5  Prefactor     51.296        34.085        .67595E-07   -.36559E-05
   6  Prefactor     25.700        27.674       -.79377E-08   -.42936E-05
   7  Prefactor     .10000E-03    398.02       -.96595E-05** at limit **
   8  norm          2.6183        1.5184       -.73611E-06   -.38855E-04
   9  Prefactor     35.754        36.206        .22934E-06   -.58984E-05
  10  Prefactor     .10000E-03    3.5363       -.14930E-07** at limit **
  11  Prefactor     .10000E-03    .94877        .17947E-06** at limit **
  12  Prefactor     6.1577        68.092        .24443E-05    .38832E-05
  13  Prefactor     .10000E-03    3.7713        .28322E-06** at limit **
  14  Prefactor     87.741        56.215       -.69474E-07   -.15944E-06
  15  norm          7.4341        28.804        .56196E-06    .95314E-05
  16  norm          .86236        1.0065        .14746E-06    .12585E-03
  17  norm          5.6471        5.6775        .32136E-06   -.93064E-05
  18  Prefactor     .10000E-03    50.336        .19241E-06** at limit **
  19  Prefactor     .10000E-03    1.6947       -.25744E-07** at limit **
  20  Prefactor     .10000E-03    2.7274       -.31509E-07** at limit **
  21  Normalizat    .96272        .17372       -.17838E-05    .19453E-04
  22  Prefactor     .77353        .15927        .78189E-06   -.84349E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.45821
  norm       = 5.56405
  norm       = 7.33337
  Prefactor  = 0.0001
  Prefactor  = 51.2962
  Prefactor  = 25.6997
  Prefactor  = 0.0001
  norm       = 2.61829
  Prefactor  = 35.7541
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.15768
  Prefactor  = 0.0001
  Prefactor  = 87.7411
  norm       = 7.43413
  norm       = 0.862359
  norm       = 5.64714
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.96272
  Prefactor  = 0.773535
 **********
 **   18 **HESSE 
 **********

 FCN=   5190.334     FROM HESSE     STATUS=OK           346 CALLS     2673 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4582        4.2237        .14664E-03   -1.5336    
   2  norm          5.5641        3.3459        .97734E-04   -1.5236    
   3  norm          7.3334        5.5602        .13771E-03   -1.5166    
   4  Prefactor     .10000E-03    5.4843        .16471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     51.296        34.080        .55995E-04   -1.4274    
   6  Prefactor     25.700        27.605        .79020E-04   -1.4694    
   7  Prefactor     .10000E-03    397.91        .20594E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.6183        1.5223        .64832E-04   -1.5384    
   9  Prefactor     35.754        36.197        .67019E-04   -1.4511    
  10  Prefactor     .10000E-03    3.5645        .13217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .95174        .68508E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.1577        67.189        .16192E-03   -1.5212    
  13  Prefactor     .10000E-03    3.7820        .13662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     87.741        56.216        .42892E-04   -1.3832    
  15  norm          7.4341        28.587        .14730E-03   -1.5163    
  16  norm          .86236        .96744        .75135E-03   -1.5522    
  17  norm          5.6471        5.6563        .15915E-03   -1.5233    
  18  Prefactor     .10000E-03    50.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.7039        .91581E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.7976        .23224E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .96272        .19536        .23125E-03   -.94290    
  22  Prefactor     .77353        .18008        .23978E-03   -1.0071    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.77809e-11
Minuit parameter uncertainties:
  1  4.22405
  2  3.34601
  3  5.56055
  4  2.26324e-06
  5  34.0926
  6  27.6191
  7  0.000515732
  8  1.52236
  9  36.2193
  10  1.74905e-05
  11  2.29803e-07
  12  40.7385
  13  2.40975e-06
  14  56.2502
  15  28.6394
  16  0.967455
  17  5.65685
  18  5.20641e-05
  19  1.70914e-06
  20  6.21671e-06
  21  0.1955
  22  0.180212
Done.

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

Extracting fit parameters...

4FGL J0124.8-0625
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  2.410e-06  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.214e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
311        Scale:  1.539e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
588    Prefactor:  7.735e-01  1.802e-01  0.000e+00  1.000e+01 ( 1.000e+00)
589        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
590        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
587   Normalization:  9.627e-01  1.955e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 21.218 -6.433
Photon Flux Upper Limit: 6.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/551987/likelihoodResults_340416001_340675201_4FGL_J0124.8-0625_daily_bin390.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) = 5190.3352236
delta logL = -0.00125807195127

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5190.33396551
delta logL = 2.61588866124e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2018       1.0000          .0000       10.000    
     3 'Normalizat'    .96277       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77350       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5910E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5190.334     FROM MIGRAD    STATUS=FAILED        83 CALLS      231 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10122E-03    79.126        .13749E-02** at limit **
   2  Index         2.1323        8.1928        .50000        .22327E-04
   3  Normalizat    .96272        .19763E-01    .23125E-03    .16040E-03
   4  Prefactor     .77354        .18655E-01    .23978E-03    .14713E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5190.334     FROM SIMPLEX   STATUS=UNCHANGED    129 CALLS      360 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10122E-03    79.126        .35836E-03** at limit **
   2  Index         2.1323        8.1928        .27977E-03    .22327E-04
   3  Normalizat    .96272        .19763E-01    .26320E-05    .16040E-03
   4  Prefactor     .77354        .18655E-01    .36697E-05    .14713E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5190.334     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      403 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    74.368        .27499E-02** at limit **
   2  Index         1.8247        5.3286        .50000        .69053E-07
   3  Normalizat    .96272        .18464E-01    .46251E-04   -.13534E-02
   4  Prefactor     .77353        .17430E-01    .95910E-05   -.13058E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.82474
  Normalizat = 0.962717
  Prefactor  = 0.773534
 **********
 **   18 **HESSE 
 **********

 FCN=   5190.334     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      432 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    342.40        .54998E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8247        5.7274        .50000       -.68808    
   3  Normalizat    .96272        .43373E-01    .92501E-05   -.94290    
   4  Prefactor     .77353        .40937E-01    .19182E-05   -1.0071    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.19359e-09
Minuit parameter uncertainties:
  1  1.08467e-05
  2  1166.77
  3  0.0433742
  4  0.0409383
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/551987': 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) = 5190.33396419
delta logL = 1.33708363137e-06

Extracting fit parameters...

4FGL J0124.8-0625
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  1.085e-05  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  1.825e+00  1.167e+03  0.000e+00  1.000e+01 (-1.000e+00)
311        Scale:  1.539e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
588    Prefactor:  7.735e-01  4.094e-02  0.000e+00  1.000e+01 ( 1.000e+00)
589        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
590        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
587   Normalization:  9.627e-01  4.337e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 21.218 -6.433

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/551987/cmap_HighResolution_340416001_340675201_4FGL_J0124.8-0625_daily_bin390.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.58e-03', job_status='DONE', photon_flux_upper_limit='6.00e-08', time_completed='2021-08-13 23:51:28.010965', job_id='551987', GAL2='0.77', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1628923888.01', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='1.34e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='390' AND source_name='4FGL J0124.8-0625' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 23:51:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 551987: <4FGL_J0124.8-0625_daily_bin390> in cluster <slac> Done

Job <4FGL_J0124.8-0625_daily_bin390> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Fri Aug 13 23:35:53 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 23:37:03 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 13 23:37:03 2021
Terminated at Fri Aug 13 23:51:29 2021
Results reported at Fri Aug 13 23:51:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0124.8-0625_daily_bin390 21.2178 -6.4328 340416001 340675201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0124.8-0625 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   618.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             292.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            936 sec.

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

