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


Performing analysis on: 4FGL_J0120.4-2701_daily_bin1050
RA = 20.1227, Dec = -27.0229
tmin = 511488001, tmax = 511747201
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='548837', job_status='RUN', time_executed='2021-08-13 23:29:36.278197', time_epoch_executed='1628922576.28' WHERE source_name='4FGL J0120.4-2701' and cadence='daily' and bin_id='1050'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/548837

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/548837/ft1_4FGL_J0120.4-2701_daily_bin1050.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/548837/ft2_4FGL_J0120.4-2701_daily_bin1050.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/548837/ft1_4FGL_J0120.4-2701_daily_bin1050.fits outfile=/scratch/kocevski/548837/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1050.fits ra=20.1227 dec=-27.0229 rad=12.0 tmin=511488001.0 tmax=511747201.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 8.26
user 3.28
sys 4.91

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/548837/ft2_4FGL_J0120.4-2701_daily_bin1050.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/548837/ft2_4FGL_J0120.4-2701_daily_bin1050.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/548837/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1050.fits evtable="EVENTS" outfile="/scratch/kocevski/548837/ft1_filtered_4FGL_J0120.4-2701_daily_bin1050.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 5.25
user 0.35
sys 4.79

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/548837/ft1_filtered_4FGL_J0120.4-2701_daily_bin1050.fits" evtable="EVENTS" scfile=/scratch/kocevski/548837/ft2_4FGL_J0120.4-2701_daily_bin1050.fits sctable="SC_DATA" outfile=/scratch/kocevski/548837/ltcube_511488001_511747201_4FGL_J0120.4-2701_daily_bin1050.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/548837/ft2_4FGL_J0120.4-2701_daily_bin1050.fits
.....................!
real 18.84
user 13.06
sys 5.61

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/548837/ft1_filtered_4FGL_J0120.4-2701_daily_bin1050.fits evtable="EVENTS" scfile=/scratch/kocevski/548837/ft2_4FGL_J0120.4-2701_daily_bin1050.fits sctable="SC_DATA" expcube=/scratch/kocevski/548837/ltcube_511488001_511747201_4FGL_J0120.4-2701_daily_bin1050.fits outfile=/scratch/kocevski/548837/expmap_511488001_511747201_4FGL_J0120.4-2701_daily_bin1050.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/548837/ltcube_511488001_511747201_4FGL_J0120.4-2701_daily_bin1050.fits
.....................!
real 198.53
user 185.99
sys 11.19

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

Setting source of interest to:
4FGL J0120.4-2701 @ 20.1227 -27.0229

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/548837/ft1_filtered_4FGL_J0120.4-2701_daily_bin1050.fits scfile=/scratch/kocevski/548837/ft2_4FGL_J0120.4-2701_daily_bin1050.fits outfile=/scratch/kocevski/548837/cmap_511488001_511747201_4FGL_J0120.4-2701_daily_bin1050.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=20.1227 yref=-27.0229 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 5.21
user 0.39
sys 4.72

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/548837/ft1_filtered_4FGL_J0120.4-2701_daily_bin1050.fits scfile=/scratch/kocevski/548837/ft2_4FGL_J0120.4-2701_daily_bin1050.fits outfile=/scratch/kocevski/548837/cmap_HighResolution_511488001_511747201_4FGL_J0120.4-2701_daily_bin1050.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=20.1227 yref=-27.0229 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 5.22
user 0.39
sys 4.74

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/548837/ft1_filtered_4FGL_J0120.4-2701_daily_bin1050.fits evtable="EVENTS" scfile=/scratch/kocevski/548837/ft2_4FGL_J0120.4-2701_daily_bin1050.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/548837/Model_4FGL_J0120.4-2701_daily_bin1050.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/548837/ft1_filtered_4FGL_J0120.4-2701_daily_bin1050.fits.....................!
real 57.13
user 49.54
sys 7.33

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/548837/ft1_filtered_4FGL_J0120.4-2701_daily_bin1050.fits', '/scratch/kocevski/548837/ft2_4FGL_J0120.4-2701_daily_bin1050.fits', expMap='/scratch/kocevski/548837/expmap_511488001_511747201_4FGL_J0120.4-2701_daily_bin1050.fits', expCube='/scratch/kocevski/548837/ltcube_511488001_511747201_4FGL_J0120.4-2701_daily_bin1050.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/548837/Model_4FGL_J0120.4-2701_daily_bin1050.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0120.4-2701'

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  2.525e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.816e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
265         beta:  5.214e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
266           Eb:  1.130e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/548837/ft1_filtered_4FGL_J0120.4-2701_daily_bin1050.fits
Spacecraft file(s): /scratch/kocevski/548837/ft2_4FGL_J0120.4-2701_daily_bin1050.fits
Exposure map: /scratch/kocevski/548837/expmap_511488001_511747201_4FGL_J0120.4-2701_daily_bin1050.fits
Exposure cube: /scratch/kocevski/548837/ltcube_511488001_511747201_4FGL_J0120.4-2701_daily_bin1050.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/548837/Model_4FGL_J0120.4-2701_daily_bin1050.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) = 6254.62060824

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.809       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .14605E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.2228       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.9972       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.6029       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.4765       1.0000         .10000E-03   10000.    
     9 'norm      '    .79328       1.0000         .10000E-03   10000.    
    10 'norm      '    1.2793       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.2638       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.0332       1.0000         .10000E-03   10000.    
    16 'norm      '    2.1418       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.663       1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.852       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .97981       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .92160       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5670E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6254.618     FROM MIGRAD    STATUS=CONVERGED     74 CALLS     1706 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.810        1.1282        .65791E-06    .23492E-02
   2  Prefactor     .10000E-03    66.610       -.17078E-04** at limit **
   3  norm          .10000E-03    4.1883        .22225E-05** at limit **
   4  norm          .10000E-03    5.2353       -.11463E-05** at limit **
   5  Prefactor     7.2234        1.7420        .27733E-05    .59340E-02
   6  Prefactor     3.9955        1.2738        .20657E-05    .79575E-03
   7  Prefactor     1.6032        3.1201        .40716E-05   -.56988E-03
   8  Prefactor     7.4529        12.964        .25893E-04    .32412E-04
   9  norm          .79886        2.8972       -.13019E-04    .14894E-02
  10  norm          1.2794        1.2118        .50601E-07    .62299E-03
  11  Prefactor     .10000E-03    3.9327       -.16518E-05** at limit **
  12  Prefactor     .10000E-03    2.2032        .50066E-06** at limit **
  13  norm          1.2640        1.1560        .49073E-07   -.32646E-04
  14  norm          .10000E-03    .72112       -.22390E-07** at limit **
  15  Prefactor     1.0341        3.1779        .26934E-05   -.17239E-03
  16  norm          2.1424        2.6997        .55497E-06    .51701E-03
  17  Prefactor     10.665        1.0240        .31701E-06   -.46835E-03
  18  Prefactor     17.853        2.3678       -.28287E-05   -.62450E-03
  19  Normalizat    .97980        .17717       -.55264E-05    .23025E-04
  20  Prefactor     .92149        .20460        .11167E-05   -.10794E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 15.8098
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.22344
  Prefactor  = 3.99555
  Prefactor  = 1.60317
  Prefactor  = 7.45294
  norm       = 0.798859
  norm       = 1.27937
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.264
  norm       = 0.0001
  Prefactor  = 1.03412
  norm       = 2.14241
  Prefactor  = 10.6648
  Prefactor  = 17.8533
  Normalizat = 0.979803
  Prefactor  = 0.921488
 **********
 **   18 **HESSE 
 **********

 FCN=   6254.618     FROM HESSE     STATUS=OK           341 CALLS     2047 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.810        5.9567        .25183E-02   -1.4913    
   2  Prefactor     .10000E-03    66.693        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.1809        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.9201        .34203E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.2234        6.7228        .37312E-02   -1.5170    
   6  Prefactor     3.9955        13.570        .50431E-02   -1.5308    
   7  Prefactor     1.6032        3.1633        .83697E-02   -1.5455    
   8  Prefactor     7.4529        16.088        .36668E-02   -1.5162    
   9  norm          .79886        3.9792        .12415E-01   -1.5529    
  10  norm          1.2794        1.2021        .98133E-02   -1.5482    
  11  Prefactor     .10000E-03    3.9255        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.1634        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.2640        1.1590        .99107E-03   -1.5483    
  14  norm          .10000E-03    .69690        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.0341        3.1986        .12440E-01   -1.5505    
  16  norm          2.1424        2.7156        .70405E-02   -1.5415    
  17  Prefactor     10.665        35.105        .30674E-02   -1.5055    
  18  Prefactor     17.853        13.724        .23698E-02   -1.4863    
  19  Normalizat    .97980        .15394        .45913E-01   -.93710    
  20  Prefactor     .92149        .17498        .45280E-01   -.95394    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.84633e-08
Minuit parameter uncertainties:
  1  5.95689
  2  0.000358291
  3  2.95485e-05
  4  2.04707e-05
  5  6.72348
  6  13.5806
  7  3.16362
  8  16.0974
  9  3.566
  10  1.20216
  11  3.24551e-06
  12  1.00769e-05
  13  1.15903
  14  8.07406e-07
  15  3.1991
  16  2.71575
  17  35.1733
  18  13.7261
  19  0.15401
  20  0.175083
Done.

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

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  1.279e+00  1.202e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.816e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
265         beta:  5.214e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
266           Eb:  1.130e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
564    Prefactor:  9.215e-01  1.751e-01  0.000e+00  1.000e+01 ( 1.000e+00)
565        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
566        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
563   Normalization:  9.798e-01  1.540e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.27
Ra Dec: 20.123 -27.023
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 1.11e-08 +/- 1.04e-08
Energy Flux (Fixed Index): 1.08e-05 +/- 1.01e-05

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) = 6253.01507541
delta logL = 1.6026276025

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6252.97274529
delta logL = 1.6449577252

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .21060       1.0000         .10000E-03   10000.    
     2 'alpha     '    .49066       1.0000          .0000       5.0000    
     3 'Normalizat'    .98141       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92685       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5670E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6252.973     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      223 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .20951        .21652        .79884E-02   -.36595E-03
   2  alpha         .48904        .45651        .40271       -.13774E-04
   3  Normalizat    .98118        .14442        .45934E-01    .66879E-06
   4  Prefactor     .92709        .17385        .45346E-01   -.16413E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.209512
  alpha      = 0.489045
  Normalizat = 0.981185
  Prefactor  = 0.927094
 **********
 **   18 **HESSE 
 **********

 FCN=   6252.973     FROM HESSE     STATUS=OK            35 CALLS      258 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .20951        .46025        .29605E-03   -1.5616    
   2  alpha         .48904        .71933        .19548E-01   -.93463    
   3  Normalizat    .98118        .16947        .21283E-03   -.93663    
   4  Prefactor     .92709        .20400        .26148E-03   -.95201    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4973e-10
Minuit parameter uncertainties:
  1  0.460254
  2  0.75091
  3  0.169567
  4  0.204167
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/548837': 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) = 6252.97274203
delta logL = 1.64496099061

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  2.095e-01  4.603e-01  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  4.890e-01  7.509e-01  0.000e+00  5.000e+00 ( 1.000e+00)
265         beta:  5.214e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
266           Eb:  1.130e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
564    Prefactor:  9.271e-01  2.042e-01  0.000e+00  1.000e+01 ( 1.000e+00)
565        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
566        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
563   Normalization:  9.812e-01  1.696e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.55
Ra Dec: 20.123 -27.023
Photon Index (Free Index): 0.49 +/- 0.75
Photon Flux (Free Index): 2.81e-09 +/- 2.90e-09
Energy Flux (Free Index): 7.26e-05 +/- 9.24e-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/548837/cmap_HighResolution_511488001_511747201_4FGL_J0120.4-2701_daily_bin1050.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.11e-08', energy_flux2='7.26e-05', photon_flux_error='1.04e-08', dlogl='1.64e+00', energy_flux='1.08e-05', photon_flux2='2.81e-09', job_status='DONE', time_completed='2021-08-13 23:39:44.278205', photon_index_error2='0.75', photon_index2='0.49', ts='10.27', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='9.24e-05', EG='0.98', time_epoch_completed='1628923184.28', return_code='0', job_id='548837', GAL2='0.93', EG2='0.98', return_code2='0', energy_flux_error='1.01e-05', photon_flux_error2='2.90e-09', ts2='13.55', photon_index='1.82' WHERE bin_id='1050' AND source_name='4FGL J0120.4-2701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 23:39:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0291>
Subject: Job 548837: <4FGL_J0120.4-2701_daily_bin1050> in cluster <slac> Done

Job <4FGL_J0120.4-2701_daily_bin1050> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Fri Aug 13 23:25:28 2021
Job was executed on host(s) <bullet0291>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 23:25:57 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:25:57 2021
Terminated at Fri Aug 13 23:39:45 2021
Results reported at Fri Aug 13 23:39:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0120.4-2701_daily_bin1050 20.1227 -27.0229 511488001 511747201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0120.4-2701 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   671.44 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             247.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   829 sec.
    Turnaround time :                            857 sec.

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

