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


Performing analysis on: 4FGL_J0120.4-2701_daily_bin1555
RA = 20.1227, Dec = -27.0229
tmin = 642384001, tmax = 642643201
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='550359', job_status='RUN', time_executed='2021-08-13 23:34:43.464812', time_epoch_executed='1628922883.46' WHERE source_name='4FGL J0120.4-2701' and cadence='daily' and bin_id='1555'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/550359

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/550359/ft1_4FGL_J0120.4-2701_daily_bin1555.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/550359/ft2_4FGL_J0120.4-2701_daily_bin1555.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/550359/ft1_4FGL_J0120.4-2701_daily_bin1555.fits outfile=/scratch/kocevski/550359/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1555.fits ra=20.1227 dec=-27.0229 rad=12.0 tmin=642384001.0 tmax=642643201.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.83
user 3.41
sys 5.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/550359/ft2_4FGL_J0120.4-2701_daily_bin1555.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/550359/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1555.fits evtable="EVENTS" outfile="/scratch/kocevski/550359/ft1_filtered_4FGL_J0120.4-2701_daily_bin1555.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.58
user 0.34
sys 5.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/550359/ft1_filtered_4FGL_J0120.4-2701_daily_bin1555.fits" evtable="EVENTS" scfile=/scratch/kocevski/550359/ft2_4FGL_J0120.4-2701_daily_bin1555.fits sctable="SC_DATA" outfile=/scratch/kocevski/550359/ltcube_642384001_642643201_4FGL_J0120.4-2701_daily_bin1555.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/550359/ft2_4FGL_J0120.4-2701_daily_bin1555.fits
.....................!
real 18.33
user 12.75
sys 5.48

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/550359/ft1_filtered_4FGL_J0120.4-2701_daily_bin1555.fits evtable="EVENTS" scfile=/scratch/kocevski/550359/ft2_4FGL_J0120.4-2701_daily_bin1555.fits sctable="SC_DATA" expcube=/scratch/kocevski/550359/ltcube_642384001_642643201_4FGL_J0120.4-2701_daily_bin1555.fits outfile=/scratch/kocevski/550359/expmap_642384001_642643201_4FGL_J0120.4-2701_daily_bin1555.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/550359/ltcube_642384001_642643201_4FGL_J0120.4-2701_daily_bin1555.fits
.....................!
real 198.17
user 186.13
sys 11.36

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/550359/ft1_filtered_4FGL_J0120.4-2701_daily_bin1555.fits scfile=/scratch/kocevski/550359/ft2_4FGL_J0120.4-2701_daily_bin1555.fits outfile=/scratch/kocevski/550359/cmap_642384001_642643201_4FGL_J0120.4-2701_daily_bin1555.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.49
user 0.37
sys 5.05

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/550359/ft1_filtered_4FGL_J0120.4-2701_daily_bin1555.fits scfile=/scratch/kocevski/550359/ft2_4FGL_J0120.4-2701_daily_bin1555.fits outfile=/scratch/kocevski/550359/cmap_HighResolution_642384001_642643201_4FGL_J0120.4-2701_daily_bin1555.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.52
user 0.39
sys 5.07

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/550359/ft1_filtered_4FGL_J0120.4-2701_daily_bin1555.fits evtable="EVENTS" scfile=/scratch/kocevski/550359/ft2_4FGL_J0120.4-2701_daily_bin1555.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/550359/Model_4FGL_J0120.4-2701_daily_bin1555.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/550359/ft1_filtered_4FGL_J0120.4-2701_daily_bin1555.fits.....................!
real 53.73
user 45.53
sys 7.76

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/550359/ft1_filtered_4FGL_J0120.4-2701_daily_bin1555.fits', '/scratch/kocevski/550359/ft2_4FGL_J0120.4-2701_daily_bin1555.fits', expMap='/scratch/kocevski/550359/expmap_642384001_642643201_4FGL_J0120.4-2701_daily_bin1555.fits', expCube='/scratch/kocevski/550359/ltcube_642384001_642643201_4FGL_J0120.4-2701_daily_bin1555.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/550359/Model_4FGL_J0120.4-2701_daily_bin1555.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/550359/ft1_filtered_4FGL_J0120.4-2701_daily_bin1555.fits
Spacecraft file(s): /scratch/kocevski/550359/ft2_4FGL_J0120.4-2701_daily_bin1555.fits
Exposure map: /scratch/kocevski/550359/expmap_642384001_642643201_4FGL_J0120.4-2701_daily_bin1555.fits
Exposure cube: /scratch/kocevski/550359/ltcube_642384001_642643201_4FGL_J0120.4-2701_daily_bin1555.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/550359/Model_4FGL_J0120.4-2701_daily_bin1555.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) = 5501.12021395

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    37.440       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    15.628       1.0000         .10000E-03   10000.    
     4 'norm      '    4.8348       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.2779       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.2867       1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.769       1.0000         .10000E-03   10000.    
     9 'norm      '    .10615E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.5430       1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.595       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .29173E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.169       1.0000         .10000E-03   10000.    
    16 'norm      '    .15313E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    70.199       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.6664       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .94815       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .93810       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=   5501.116     FROM MIGRAD    STATUS=CONVERGED    431 CALLS     2081 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          37.440        10.127        .16375E-02   -.17066E-03
   2  Prefactor     .10000E-03    63.430        .90712E-02** at limit **
   3  norm          15.626        12.543        .25329E-02   -.64000E-03
   4  norm          4.8347        2.9880        .45738E-02    .10151E-03
   5  Prefactor     6.2781        7.1759        .40052E-02    .14501E-02
   6  Prefactor     .10000E-03    3.5788        .90712E-02** at limit **
   7  Prefactor     2.2868        2.2560        .67869E-02    .14136E-03
   8  Prefactor     24.766        13.858        .20122E-02   -.19186E-03
   9  norm          .10000E-03    1.9522        .32937E-01** at limit **
  10  norm          4.5430        2.5384        .47218E-02    .26702E-04
  11  Prefactor     18.596        14.708        .23220E-02    .31996E-03
  12  Prefactor     .10000E-03    2.3906        .72586E-01** at limit **
  13  norm          .10000E-03    .61515        .32434E-01** at limit **
  14  norm          .10000E-03    1.2612        .90712E-02** at limit **
  15  Prefactor     18.169        5.9010        .23491E-02    .44379E-02
  16  norm          .10000E-03    1.4360        .50374E-01** at limit **
  17  Prefactor     70.200        54.730        .11978E-02   -.77447E-03
  18  Prefactor     6.6668        8.0065        .38854E-02   -.40899E-03
  19  Normalizat    .94805        .18181        .45514E-01    .15301E-04
  20  Prefactor     .93822        .20478        .45489E-01    .65390E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 37.4396
  Prefactor  = 0.0001
  norm       = 15.6265
  norm       = 4.83475
  Prefactor  = 6.27813
  Prefactor  = 0.0001
  Prefactor  = 2.28675
  Prefactor  = 24.7659
  norm       = 0.0001
  norm       = 4.54296
  Prefactor  = 18.5964
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 18.1693
  norm       = 0.0001
  Prefactor  = 70.1996
  Prefactor  = 6.6668
  Normalizat = 0.948053
  Prefactor  = 0.938219
 **********
 **   18 **HESSE 
 **********

 FCN=   5501.116     FROM HESSE     STATUS=OK           293 CALLS     2374 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          37.440        10.119        .65501E-04   -1.4483    
   2  Prefactor     .10000E-03    63.461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          15.626        12.541        .10131E-03   -1.4917    
   4  norm          4.8347        2.9876        .97804E-04   -1.5268    
   5  Prefactor     6.2781        7.1733        .16021E-03   -1.5207    
   6  Prefactor     .10000E-03    3.5808        .13702E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.2868        2.2539        .10723E-03   -1.5406    
   8  Prefactor     24.766        12.508        .80489E-04   -1.4712    
   9  norm          .10000E-03    3.2183        .18163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.5430        2.5385        .84012E-04   -1.5282    
  11  Prefactor     18.596        14.665        .92879E-04   -1.4845    
  12  Prefactor     .10000E-03    27.661        .21233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.0536        .11214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.3167        .16231E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.169        5.9078        .93964E-04   -1.4855    
  16  norm          .10000E-03    7.3767        .16984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     70.200        54.710        .47911E-04   -1.4030    
  18  Prefactor     6.6668        8.0011        .15542E-03   -1.5192    
  19  Normalizat    .94805        .20948        .23829E-03   -.94792    
  20  Prefactor     .93822        .23805        .28103E-03   -.94818    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.18865e-09
Minuit parameter uncertainties:
  1  10.1199
  2  0.000185876
  3  12.5431
  4  2.98766
  5  7.17423
  6  3.49057e-06
  7  2.25398
  8  12.5093
  9  4.75777e-06
  10  2.53861
  11  14.6679
  12  0.00029458
  13  2.63131e-06
  14  3.4404e-07
  15  5.90801
  16  7.73052e-06
  17  54.7489
  18  8.00235
  19  0.209664
  20  0.23832
Done.

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

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  4.543e+00  2.539e+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.382e-01  2.383e-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.481e-01  2.097e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.16
Ra Dec: 20.123 -27.023
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 3.94e-08 +/- 2.20e-08
Energy Flux (Fixed Index): 3.82e-05 +/- 2.14e-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) = 5501.06756346
delta logL = 0.048713473564

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5501.06696493
delta logL = 0.0493120052397

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4675       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6783       1.0000          .0000       5.0000    
     3 'Normalizat'    .95330       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93619       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=   5501.067     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      196 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4675        3.1601        .47626E-02    .54222E-02
   2  alpha         1.6783        .47829        .29572       -.17839E-04
   3  Normalizat    .95335        .17427        .45579E-01    .95636E-05
   4  Prefactor     .93615        .20442        .45465E-01    .11956E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.4675
  alpha      = 1.67827
  Normalizat = 0.953349
  Prefactor  = 0.936148
 **********
 **   18 **HESSE 
 **********

 FCN=   5501.067     FROM HESSE     STATUS=OK            31 CALLS      227 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4675        2.5588        .85711E-04   -1.5285    
   2  alpha         1.6783        .43493        .11588E-01   -.33492    
   3  Normalizat    .95335        .20148        .23775E-03   -.94610    
   4  Prefactor     .93615        .23707        .28137E-03   -.94889    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.34271e-09
Minuit parameter uncertainties:
  1  2.55882
  2  0.43743
  3  0.201637
  4  0.237337
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/550359': 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) = 5501.0669649
delta logL = 0.0493120366873

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  4.468e+00  2.559e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.678e+00  4.374e-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.361e-01  2.373e-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.533e-01  2.016e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.26
Ra Dec: 20.123 -27.023
Photon Index (Free Index): 1.68 +/- 0.44
Photon Flux (Free Index): 3.33e-08 +/- 2.60e-08
Energy Flux (Free Index): 4.63e-05 +/- 3.98e-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/550359/cmap_HighResolution_642384001_642643201_4FGL_J0120.4-2701_daily_bin1555.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.94e-08', energy_flux2='4.63e-05', photon_flux_error='2.20e-08', dlogl='4.93e-02', energy_flux='3.82e-05', photon_flux2='3.33e-08', job_status='DONE', time_completed='2021-08-13 23:44:44.752127', photon_index_error2='0.44', photon_index2='1.68', ts='14.16', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='3.98e-05', EG='0.95', time_epoch_completed='1628923484.75', return_code='0', job_id='550359', GAL2='0.94', EG2='0.95', return_code2='0', energy_flux_error='2.14e-05', photon_flux_error2='2.60e-08', ts2='14.26', photon_index='1.82' WHERE bin_id='1555' AND source_name='4FGL J0120.4-2701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 23:44:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0212>
Subject: Job 550359: <4FGL_J0120.4-2701_daily_bin1555> in cluster <slac> Done

Job <4FGL_J0120.4-2701_daily_bin1555> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Aug 13 23:30:43 2021
Job was executed on host(s) <bullet0212>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 23:32:11 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:32:11 2021
Terminated at Fri Aug 13 23:44:46 2021
Results reported at Fri Aug 13 23:44:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0120.4-2701_daily_bin1555 20.1227 -27.0229 642384001 642643201 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 :                                   673.40 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             269.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   754 sec.
    Turnaround time :                            843 sec.

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

