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


Performing analysis on: 4FGL_J0120.4-2701_daily_bin1022
RA = 20.1227, Dec = -27.0229
tmin = 504230401, tmax = 504489601
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='548796', job_status='RUN', time_executed='2021-08-13 23:28:23.495711', time_epoch_executed='1628922503.5' WHERE source_name='4FGL J0120.4-2701' and cadence='daily' and bin_id='1022'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/548796

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/548796/ft1_4FGL_J0120.4-2701_daily_bin1022.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/548796/ft2_4FGL_J0120.4-2701_daily_bin1022.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/548796/ft1_4FGL_J0120.4-2701_daily_bin1022.fits outfile=/scratch/kocevski/548796/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1022.fits ra=20.1227 dec=-27.0229 rad=12.0 tmin=504230401.0 tmax=504489601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 12.14
user 3.40
sys 8.66

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/548796/ft2_4FGL_J0120.4-2701_daily_bin1022.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/548796/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1022.fits evtable="EVENTS" outfile="/scratch/kocevski/548796/ft1_filtered_4FGL_J0120.4-2701_daily_bin1022.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 9.04
user 0.33
sys 8.64

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/548796/ft1_filtered_4FGL_J0120.4-2701_daily_bin1022.fits" evtable="EVENTS" scfile=/scratch/kocevski/548796/ft2_4FGL_J0120.4-2701_daily_bin1022.fits sctable="SC_DATA" outfile=/scratch/kocevski/548796/ltcube_504230401_504489601_4FGL_J0120.4-2701_daily_bin1022.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/548796/ft2_4FGL_J0120.4-2701_daily_bin1022.fits
.....................!
real 24.28
user 15.31
sys 8.85

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/548796/ft1_filtered_4FGL_J0120.4-2701_daily_bin1022.fits evtable="EVENTS" scfile=/scratch/kocevski/548796/ft2_4FGL_J0120.4-2701_daily_bin1022.fits sctable="SC_DATA" expcube=/scratch/kocevski/548796/ltcube_504230401_504489601_4FGL_J0120.4-2701_daily_bin1022.fits outfile=/scratch/kocevski/548796/expmap_504230401_504489601_4FGL_J0120.4-2701_daily_bin1022.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/548796/ltcube_504230401_504489601_4FGL_J0120.4-2701_daily_bin1022.fits
.....................!
real 202.87
user 186.09
sys 15.63

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/548796/ft1_filtered_4FGL_J0120.4-2701_daily_bin1022.fits scfile=/scratch/kocevski/548796/ft2_4FGL_J0120.4-2701_daily_bin1022.fits outfile=/scratch/kocevski/548796/cmap_504230401_504489601_4FGL_J0120.4-2701_daily_bin1022.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 8.91
user 0.37
sys 8.40

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/548796/ft1_filtered_4FGL_J0120.4-2701_daily_bin1022.fits scfile=/scratch/kocevski/548796/ft2_4FGL_J0120.4-2701_daily_bin1022.fits outfile=/scratch/kocevski/548796/cmap_HighResolution_504230401_504489601_4FGL_J0120.4-2701_daily_bin1022.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 8.82
user 0.40
sys 8.30

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/548796/ft1_filtered_4FGL_J0120.4-2701_daily_bin1022.fits evtable="EVENTS" scfile=/scratch/kocevski/548796/ft2_4FGL_J0120.4-2701_daily_bin1022.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/548796/Model_4FGL_J0120.4-2701_daily_bin1022.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/548796/ft1_filtered_4FGL_J0120.4-2701_daily_bin1022.fits.....................!
real 50.28
user 36.63
sys 12.59

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.4352       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    17.372       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .92773E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10290E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .11875E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.5788       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.8693       1.0000         .10000E-03   10000.    
    13 'norm      '    .19612E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .93113       1.0000         .10000E-03   10000.    
    16 'norm      '    .79442       1.0000         .10000E-03   10000.    
    17 'Prefactor '    41.845       1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.492       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3331       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .58417       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3898.186     FROM MIGRAD    STATUS=CONVERGED    449 CALLS     2134 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.4347        6.4639       -.41886E-06    .57556E-04
   2  Prefactor     .10000E-03    67.007        .78743E-07** at limit **
   3  norm          17.369        14.894        .34471E-06   -.21618E-05
   4  norm          .10000E-03    1.4153       -.17582E-07** at limit **
   5  Prefactor     .10000E-03    5.9431       -.61020E-06** at limit **
   6  Prefactor     .10000E-03    19.910        .26783E-06** at limit **
   7  Prefactor     .10000E-03    3.0940       -.52456E-06** at limit **
   8  Prefactor     .10000E-03    12.371       -.47552E-08** at limit **
   9  norm          .10000E-03    1.6414        .14619E-06** at limit **
  10  norm          1.5787        1.5292        .82837E-08    .19855E-03
  11  Prefactor     .10000E-03    5.1760        .90405E-09** at limit **
  12  Prefactor     5.8727        5.7617       -.34616E-06   -.19498E-03
  13  norm          .22097E-01    .69947       -.74408E-07   -.33454E-03
  14  norm          .10000E-03    .74616        .27014E-07** at limit **
  15  Prefactor     .93199        5.5524       -.15734E-05   -.18753E-03
  16  norm          .79593        3.1868       -.79164E-06   -.71935E-03
  17  Prefactor     41.832        54.884       -.15264E-04    .16156E-03
  18  Prefactor     17.494        18.118        .41985E-06   -.37723E-03
  19  Normalizat    1.3330        .21591        .14310E-05    .34527E-03
  20  Prefactor     .58424        .23086        .53933E-06    .20947E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.43474
  Prefactor  = 0.0001
  norm       = 17.3693
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.000100005
  norm       = 1.57874
  Prefactor  = 0.0001
  Prefactor  = 5.87271
  norm       = 0.0220975
  norm       = 0.0001
  Prefactor  = 0.931988
  norm       = 0.795928
  Prefactor  = 41.832
  Prefactor  = 17.4938
  Normalizat = 1.33305
  Prefactor  = 0.584245
 **********
 **   18 **HESSE 
 **********

 FCN=   3898.186     FROM HESSE     STATUS=OK           299 CALLS     2433 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.4347        6.4709        .12722E-03   -1.5094    
   2  Prefactor     .10000E-03    67.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          17.369        14.875        .96093E-04   -1.4874    
   4  norm          .10000E-03    1.4205        .72528E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    25.893        .28726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.426        .20749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.612        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    14.701        .14453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.5787        1.5475        .74043E-04   -1.5457    
  11  Prefactor     .10000E-03    5.1794        .13873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.8727        5.4417        .13250E-03   -1.5223    
  13  norm          .22097E-01    11.397        .10096E-02   -1.5678    
  14  norm          .10000E-03    .75096        .52638E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .93199        10.103        .27198E-02   -1.5515    
  16  norm          .79593        3.3974        .21433E-03   -1.5530    
  17  Prefactor     41.832        52.378        .61970E-04   -1.4414    
  18  Prefactor     17.494        18.092        .47882E-03   -1.4871    
  19  Normalizat    1.3330        .24468        .19610E-03   -.82585    
  20  Prefactor     .58424        .26495        .31957E-03   -1.0825    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77504e-09
Minuit parameter uncertainties:
  1  6.47136
  2  4.14244e-05
  3  14.8779
  4  1.99386e-06
  5  3.5585e-05
  6  3.51198e-05
  7  0.000431843
  8  2.08054e-05
  9  0.000541516
  10  1.5475
  11  1.48102e-07
  12  5.4422
  13  1.00161
  14  2.29505e-06
  15  6.13804
  16  3.28893
  17  52.4361
  18  18.098
  19  0.244896
  20  0.265522
Done.

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

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  1.579e+00  1.547e+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:  5.842e-01  2.655e-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:  1.333e+00  2.449e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.71
Ra Dec: 20.123 -27.023
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 1.37e-08 +/- 1.34e-08
Energy Flux (Fixed Index): 1.33e-05 +/- 1.30e-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) = 3897.61170214
delta logL = 0.574510077566

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3897.50786876
delta logL = 0.678343461505

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .85843       1.0000         .10000E-03   10000.    
     2 'alpha     '    .97760       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3382       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58438       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=   3897.508     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      207 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .85851        .87292        .12656E-01   -.89823E-03
   2  alpha         .97735        .48566        .32579       -.23560E-04
   3  Normalizat    1.3382        .20388        .32154E-01    .17389E-04
   4  Prefactor     .58440        .22992        .72185E-01    .92800E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.858511
  alpha      = 0.977348
  Normalizat = 1.33822
  Prefactor  = 0.584404
 **********
 **   18 **HESSE 
 **********

 FCN=   3897.508     FROM HESSE     STATUS=OK            35 CALLS      242 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .85851        1.2531        .52790E-03   -1.5523    
   2  alpha         .97735        .66832        .13865E-01   -.65488    
   3  Normalizat    1.3382        .23299        .19577E-03   -.82433    
   4  Prefactor     .58440        .26209        .31955E-03   -1.0825    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12896e-10
Minuit parameter uncertainties:
  1  1.25313
  2  0.681663
  3  0.233176
  4  0.262636
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/548796': 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) = 3897.50786855
delta logL = 0.678343670571

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  8.585e-01  1.253e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  9.773e-01  6.817e-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:  5.844e-01  2.626e-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:  1.338e+00  2.332e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.07
Ra Dec: 20.123 -27.023
Photon Index (Free Index): 0.98 +/- 0.68
Photon Flux (Free Index): 5.43e-09 +/- 6.22e-09
Energy Flux (Free Index): 5.48e-05 +/- 8.33e-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/548796/cmap_HighResolution_504230401_504489601_4FGL_J0120.4-2701_daily_bin1022.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.37e-08', energy_flux2='5.48e-05', photon_flux_error='1.34e-08', dlogl='6.78e-01', energy_flux='1.33e-05', photon_flux2='5.43e-09', job_status='DONE', time_completed='2021-08-13 23:38:20.663297', photon_index_error2='0.68', photon_index2='0.98', ts='6.71', fit_tolerance='1e-08', GAL='0.58', photon_index_error='0.00', energy_flux_error2='8.33e-05', EG='1.33', time_epoch_completed='1628923100.66', return_code='0', job_id='548796', GAL2='0.58', EG2='1.34', return_code2='0', energy_flux_error='1.30e-05', photon_flux_error2='6.22e-09', ts2='8.07', photon_index='1.82' WHERE bin_id='1022' AND source_name='4FGL J0120.4-2701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 23:38:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0176>
Subject: Job 548796: <4FGL_J0120.4-2701_daily_bin1022> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0120.4-2701_daily_bin1022 20.1227 -27.0229 504230401 504489601 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 :                                   722.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             260.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            777 sec.

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

