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


Performing analysis on: 4FGL_J0120.4-2701_daily_bin1454
RA = 20.1227, Dec = -27.0229
tmin = 616204801, tmax = 616464001
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='550202', job_status='RUN', time_executed='2021-08-13 23:33:48.732885', time_epoch_executed='1628922828.73' WHERE source_name='4FGL J0120.4-2701' and cadence='daily' and bin_id='1454'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/550202

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/550202/ft1_4FGL_J0120.4-2701_daily_bin1454.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/550202/ft2_4FGL_J0120.4-2701_daily_bin1454.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/550202/ft1_4FGL_J0120.4-2701_daily_bin1454.fits outfile=/scratch/kocevski/550202/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1454.fits ra=20.1227 dec=-27.0229 rad=12.0 tmin=616204801.0 tmax=616464001.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.46
user 3.74
sys 8.58

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/550202/ft1_filtered_4FGL_J0120.4-2701_daily_bin1454.fits" evtable="EVENTS" scfile=/scratch/kocevski/550202/ft2_4FGL_J0120.4-2701_daily_bin1454.fits sctable="SC_DATA" outfile=/scratch/kocevski/550202/ltcube_616204801_616464001_4FGL_J0120.4-2701_daily_bin1454.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/550202/ft2_4FGL_J0120.4-2701_daily_bin1454.fits
.....................!
real 23.19
user 13.40
sys 9.58

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/550202/ft1_filtered_4FGL_J0120.4-2701_daily_bin1454.fits evtable="EVENTS" scfile=/scratch/kocevski/550202/ft2_4FGL_J0120.4-2701_daily_bin1454.fits sctable="SC_DATA" expcube=/scratch/kocevski/550202/ltcube_616204801_616464001_4FGL_J0120.4-2701_daily_bin1454.fits outfile=/scratch/kocevski/550202/expmap_616204801_616464001_4FGL_J0120.4-2701_daily_bin1454.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/550202/ltcube_616204801_616464001_4FGL_J0120.4-2701_daily_bin1454.fits
.....................!
real 202.25
user 184.79
sys 16.27

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/550202/ft1_filtered_4FGL_J0120.4-2701_daily_bin1454.fits scfile=/scratch/kocevski/550202/ft2_4FGL_J0120.4-2701_daily_bin1454.fits outfile=/scratch/kocevski/550202/cmap_616204801_616464001_4FGL_J0120.4-2701_daily_bin1454.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.69
user 0.37
sys 8.23

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/550202/ft1_filtered_4FGL_J0120.4-2701_daily_bin1454.fits scfile=/scratch/kocevski/550202/ft2_4FGL_J0120.4-2701_daily_bin1454.fits outfile=/scratch/kocevski/550202/cmap_HighResolution_616204801_616464001_4FGL_J0120.4-2701_daily_bin1454.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.66
user 0.39
sys 8.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/550202/ft1_filtered_4FGL_J0120.4-2701_daily_bin1454.fits evtable="EVENTS" scfile=/scratch/kocevski/550202/ft2_4FGL_J0120.4-2701_daily_bin1454.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/550202/Model_4FGL_J0120.4-2701_daily_bin1454.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/550202/ft1_filtered_4FGL_J0120.4-2701_daily_bin1454.fits.....................!
real 62.14
user 49.35
sys 11.87

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.500       1.0000         .10000E-03   10000.    
     2 'Prefactor '    60.269       1.0000         .10000E-03   10000.    
     3 'norm      '    15.754       1.0000         .10000E-03   10000.    
     4 'norm      '    1.3241       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .28548E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.492       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .88680       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.179       1.0000         .10000E-03   10000.    
     9 'norm      '    .10146E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.5729       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .27742E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.6135       1.0000         .10000E-03   10000.    
    13 'norm      '    1.2679       1.0000         .10000E-03   10000.    
    14 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.7496       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10931E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.0807       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .89296       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .78426       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=   6434.039     FROM MIGRAD    STATUS=CONVERGED    456 CALLS     2090 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.506        5.3692       -.14895E-06   -.11482E-03
   2  Prefactor     59.456        86.227       -.30670E-06   -.11456E-04
   3  norm          15.783        12.475        .14752E-05    .10943E-03
   4  norm          1.3260        1.8622        .90817E-07   -.10341E-03
   5  Prefactor     .10000E-03    3.4140        .51908E-06** at limit **
   6  Prefactor     10.474        9.5338        .84621E-06    .16543E-04
   7  Prefactor     .88469        2.3551        .56278E-06   -.29321E-03
   8  Prefactor     12.201        8.7106       -.13095E-05   -.99180E-03
   9  norm          .10000E-03    1.4600        .18923E-05** at limit **
  10  norm          1.5711        1.7430        .11763E-07   -.21627E-03
  11  Prefactor     .10000E-03    11.351       -.31739E-06** at limit **
  12  Prefactor     3.6162        3.6148       -.38969E-06   -.93806E-03
  13  norm          1.2673        1.0383        .81888E-07   -.33591E-03
  14  norm          .10000E-03    .51652        .33060E-07** at limit **
  15  Prefactor     8.7471        3.7100        .81902E-07   -.53062E-04
  16  norm          .10000E-03    .80631       -.33678E-08** at limit **
  17  Prefactor     .10000E-03    11.634        .91309E-07** at limit **
  18  Prefactor     4.0825        4.5209       -.15924E-06   -.20477E-04
  19  Normalizat    .89317        .13768       -.74592E-06   -.33895E-03
  20  Prefactor     .78414        .15753       -.34254E-06   -.27467E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 11.5062
  Prefactor  = 59.4564
  norm       = 15.783
  norm       = 1.32597
  Prefactor  = 0.000100003
  Prefactor  = 10.4742
  Prefactor  = 0.884695
  Prefactor  = 12.2014
  norm       = 0.000100002
  norm       = 1.57111
  Prefactor  = 0.0001
  Prefactor  = 3.61619
  norm       = 1.26733
  norm       = 0.0001
  Prefactor  = 8.74708
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.08249
  Normalizat = 0.893169
  Prefactor  = 0.78414
 **********
 **   18 **HESSE 
 **********

 FCN=   6434.039     FROM HESSE     STATUS=OK           301 CALLS     2391 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.506        5.3715        .11813E-03   -1.5029    
   2  Prefactor     59.456        86.418        .51682E-04   -1.4164    
   3  norm          15.783        12.511        .10091E-03   -1.4913    
   4  norm          1.3260        1.8325        .12573E-03   -1.5478    
   5  Prefactor     .10000E-03    6.5450        .28173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.474        9.5079        .12370E-03   -1.5061    
   7  Prefactor     .88469        2.3147        .19049E-03   -1.5520    
   8  Prefactor     12.201        9.1518        .11479E-03   -1.5009    
   9  norm          .10000E-03    2.1643        .17313E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.5711        1.7251        .10664E-03   -1.5457    
  11  Prefactor     .10000E-03    11.527        .21422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.6162        3.6109        .13919E-03   -1.5328    
  13  norm          1.2673        1.0245        .70601E-04   -1.5483    
  14  norm          .10000E-03    .83010        .11148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.7471        3.7113        .96724E-04   -1.5116    
  16  norm          .10000E-03    .82184        .70268E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.0825        4.5219        .17486E-03   -1.5304    
  19  Normalizat    .89317        .16055        .20335E-03   -.96701    
  20  Prefactor     .78414        .18452        .25682E-03   -1.0032    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99884e-09
Minuit parameter uncertainties:
  1  5.37173
  2  86.6009
  3  12.5128
  4  1.83257
  5  0.000280108
  6  9.50931
  7  2.31492
  8  9.1529
  9  0.000121239
  10  1.72516
  11  7.56449e-06
  12  3.6111
  13  1.02451
  14  1.16105e-05
  15  3.71141
  16  3.3085e-06
  17  1.24766e-05
  18  4.52228
  19  0.16064
  20  0.18467
Done.

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

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  1.571e+00  1.725e+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:  7.841e-01  1.847e-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:  8.932e-01  1.606e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.54
Ra Dec: 20.123 -27.023
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 1.36e-08 +/- 1.50e-08
Energy Flux (Fixed Index): 1.32e-05 +/- 1.45e-05

TS (Fixed Index): 1.54
Ra Dec: 20.123 -27.023
Photon Flux Upper Limit: 5.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.04e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/550202/likelihoodResults_616204801_616464001_4FGL_J0120.4-2701_daily_bin1454.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6433.98150504
delta logL = 0.057735608013

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6433.98060651
delta logL = 0.0586341394173

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6190       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0839       1.0000          .0000       5.0000    
     3 'Normalizat'    .88737       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78610       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=   6433.981     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      227 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6176        38.125        .83166E-02    .88689E-03
   2  alpha         2.0828        3.3830        .41896        .10424E-03
   3  Normalizat    .88714        .41429E-01    .44740E-01    .92491E-03
   4  Prefactor     .78644        .44688E-01    .43536E-01    .35641E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.6176
  alpha      = 2.08282
  Normalizat = 0.887137
  Prefactor  = 0.786443
 **********
 **   18 **HESSE 
 **********

 FCN=   6433.981     FROM HESSE     STATUS=OK            29 CALLS      256 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6176        1.6753        .97896E-04   -1.5454    
   2  alpha         2.0828        .75664        .15125E-01   -.16766    
   3  Normalizat    .88714        .15436        .20394E-03   -.96914    
   4  Prefactor     .78644        .18352        .25643E-03   -1.0023    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37235e-09
Minuit parameter uncertainties:
  1  1.67535
  2  0.769059
  3  0.154434
  4  0.183662
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/550202': 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) = 6433.98060285
delta logL = 0.0586377930376

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  1.618e+00  1.675e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.083e+00  7.691e-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:  7.864e-01  1.837e-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:  8.871e-01  1.544e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.65
Ra Dec: 20.123 -27.023
Photon Index (Free Index): 2.08 +/- 0.77
Photon Flux (Free Index): 1.99e-08 +/- 2.55e-08
Energy Flux (Free Index): 1.09e-05 +/- 1.27e-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/550202/cmap_HighResolution_616204801_616464001_4FGL_J0120.4-2701_daily_bin1454.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.04e-05', comment='SUCCESS', photon_flux='1.36e-08', energy_flux2='1.09e-05', photon_flux_error='1.50e-08', dlogl='5.86e-02', energy_flux='1.32e-05', photon_flux2='1.99e-08', job_status='DONE', time_completed='2021-08-13 23:46:05.760294', photon_index_error2='0.77', photon_index2='2.08', ts='1.54', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='5.19e-08', energy_flux_error2='1.27e-05', EG='0.89', time_epoch_completed='1628923565.76', return_code='0', job_id='550202', GAL2='0.79', EG2='0.89', return_code2='0', energy_flux_error='1.45e-05', photon_flux_error2='2.55e-08', ts2='1.65', photon_index='1.82' WHERE bin_id='1454' AND source_name='4FGL J0120.4-2701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 23:46:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0162>
Subject: Job 550202: <4FGL_J0120.4-2701_daily_bin1454> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0120.4-2701_daily_bin1454 20.1227 -27.0229 616204801 616464001 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 :                                   855.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             232.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            936 sec.

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

