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


Performing analysis on: 4FGL_J0120.4-2701_daily_bin1525
RA = 20.1227, Dec = -27.0229
tmin = 634608001, tmax = 634867201
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='550312', job_status='RUN', time_executed='2021-08-13 23:32:41.178943', time_epoch_executed='1628922761.18' WHERE source_name='4FGL J0120.4-2701' and cadence='daily' and bin_id='1525'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/550312

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/550312/ft1_4FGL_J0120.4-2701_daily_bin1525.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/550312/ft2_4FGL_J0120.4-2701_daily_bin1525.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/550312/ft1_4FGL_J0120.4-2701_daily_bin1525.fits outfile=/scratch/kocevski/550312/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1525.fits ra=20.1227 dec=-27.0229 rad=12.0 tmin=634608001.0 tmax=634867201.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 3.12
user 2.90
sys 0.19

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/550312/ft1_filtered_4FGL_J0120.4-2701_daily_bin1525.fits" evtable="EVENTS" scfile=/scratch/kocevski/550312/ft2_4FGL_J0120.4-2701_daily_bin1525.fits sctable="SC_DATA" outfile=/scratch/kocevski/550312/ltcube_634608001_634867201_4FGL_J0120.4-2701_daily_bin1525.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/550312/ft2_4FGL_J0120.4-2701_daily_bin1525.fits
.....................!
real 14.16
user 13.73
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/550312/ft1_filtered_4FGL_J0120.4-2701_daily_bin1525.fits evtable="EVENTS" scfile=/scratch/kocevski/550312/ft2_4FGL_J0120.4-2701_daily_bin1525.fits sctable="SC_DATA" expcube=/scratch/kocevski/550312/ltcube_634608001_634867201_4FGL_J0120.4-2701_daily_bin1525.fits outfile=/scratch/kocevski/550312/expmap_634608001_634867201_4FGL_J0120.4-2701_daily_bin1525.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/550312/ltcube_634608001_634867201_4FGL_J0120.4-2701_daily_bin1525.fits
.....................!
real 192.44
user 186.14
sys 5.18

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/550312/ft1_filtered_4FGL_J0120.4-2701_daily_bin1525.fits scfile=/scratch/kocevski/550312/ft2_4FGL_J0120.4-2701_daily_bin1525.fits outfile=/scratch/kocevski/550312/cmap_634608001_634867201_4FGL_J0120.4-2701_daily_bin1525.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 0.55
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/550312/ft1_filtered_4FGL_J0120.4-2701_daily_bin1525.fits scfile=/scratch/kocevski/550312/ft2_4FGL_J0120.4-2701_daily_bin1525.fits outfile=/scratch/kocevski/550312/cmap_HighResolution_634608001_634867201_4FGL_J0120.4-2701_daily_bin1525.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 0.54
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/550312/ft1_filtered_4FGL_J0120.4-2701_daily_bin1525.fits evtable="EVENTS" scfile=/scratch/kocevski/550312/ft2_4FGL_J0120.4-2701_daily_bin1525.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/550312/Model_4FGL_J0120.4-2701_daily_bin1525.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/550312/ft1_filtered_4FGL_J0120.4-2701_daily_bin1525.fits.....................!
real 50.21
user 48.89
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    98.146       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10414E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    27.831       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.2709       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.2928       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.1796       1.0000         .10000E-03   10000.    
     9 'norm      '    1.9669       1.0000         .10000E-03   10000.    
    10 'norm      '    1.8114       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12431E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.8671       1.0000         .10000E-03   10000.    
    14 'norm      '    .28901       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .17124E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .32293E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.1912       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .89967       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .89155       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6103.840     FROM MIGRAD    STATUS=CONVERGED    436 CALLS     1850 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          98.149        14.440         .0000        .57416E-03
   2  Prefactor     .10000E-03    77.393         .0000    ** at limit **
   3  norm          27.830        15.297         .0000       -.38033E-03
   4  norm          .10000E-03    .90845         .0000    ** at limit **
   5  Prefactor     6.2718        7.8430         .0000       -.65708E-03
   6  Prefactor     .10000E-03    8.1399         .0000    ** at limit **
   7  Prefactor     3.2929        2.7829         .0000        .12149E-03
   8  Prefactor     6.1806        10.306         .0000       -.25315E-03
   9  norm          1.9670        2.5450         .0000        .53643E-03
  10  norm          1.8113        1.6833         .0000        .95629E-04
  11  Prefactor     .10000E-03    8.3631         .0000    ** at limit **
  12  Prefactor     .10000E-03    1.4702         .0000    ** at limit **
  13  norm          3.8675        1.4411         .0000        .14890E-03
  14  norm          .28994        1.1419         .0000        .13696E-02
  15  Prefactor     .10000E-03    2.9511         .0000    ** at limit **
  16  norm          .10000E-03    .92918         .0000    ** at limit **
  17  Prefactor     .10000E-03    10.885         .0000    ** at limit **
  18  Prefactor     2.1917        10.236         .0000        .71810E-02
  19  Normalizat    .89946        .15659         .0000        .33468E-04
  20  Prefactor     .89164        .17632         .0000        .33568E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 98.1485
  Prefactor  = 0.0001
  norm       = 27.8297
  norm       = 0.0001
  Prefactor  = 6.27179
  Prefactor  = 0.0001
  Prefactor  = 3.29287
  Prefactor  = 6.18061
  norm       = 1.96704
  norm       = 1.8113
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.86755
  norm       = 0.289941
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.19173
  Normalizat = 0.899458
  Prefactor  = 0.891638
 **********
 **   18 **HESSE 
 **********

 FCN=   6103.840     FROM HESSE     STATUS=OK           299 CALLS     2149 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          98.149        14.437        .40576E-04   -1.3723    
   2  Prefactor     .10000E-03    77.458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          27.830        15.296        .75940E-04   -1.4652    
   4  norm          .10000E-03    .91067        .72716E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.2718        7.8385        .16030E-03   -1.5207    
   6  Prefactor     .10000E-03    8.1817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.2929        2.7789        .11545E-03   -1.5345    
   8  Prefactor     6.1806        10.460        .16149E-03   -1.5211    
   9  norm          1.9670        2.5637        .10153E-03   -1.5427    
  10  norm          1.8113        1.6655        .93785E-04   -1.5439    
  11  Prefactor     .10000E-03    33.704        .42270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.4837        .92371E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.8675        1.4411        .54761E-04   -1.5315    
  14  norm          .28994        1.8609        .15188E-02   -1.5600    
  15  Prefactor     .10000E-03    3.0844        .26177E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    9.5094        .14460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.1917        10.255        .13901E-02   -1.5412    
  19  Normalizat    .89946        .18080        .22568E-03   -.96479    
  20  Prefactor     .89164        .20511        .26808E-03   -.96434    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33011e-08
Minuit parameter uncertainties:
  1  14.4372
  2  0.000144176
  3  15.2978
  4  5.72981e-07
  5  7.8398
  6  1.18818e-06
  7  2.77896
  8  10.4632
  9  2.56381
  10  1.66554
  11  4.13747e-05
  12  1.36718e-07
  13  1.44112
  14  1.4689
  15  5.17951e-08
  16  6.62968e-06
  17  3.92681e-06
  18  9.48417
  19  0.180922
  20  0.205286
Done.

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

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  1.811e+00  1.666e+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:  8.916e-01  2.053e-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.995e-01  1.809e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.31
Ra Dec: 20.123 -27.023
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 1.57e-08 +/- 1.44e-08
Energy Flux (Fixed Index): 1.52e-05 +/- 1.40e-05

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

Saving results to:
/scratch/kocevski/550312/likelihoodResults_634608001_634867201_4FGL_J0120.4-2701_daily_bin1525.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) = 6103.839411
delta logL = 0.000511979523253

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6103.83939687
delta logL = 0.000526114426066

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8158       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8386       1.0000          .0000       5.0000    
     3 'Normalizat'    .89894       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89190       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=   6103.839     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      208 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8189        62.354        .77492E-02    .73982E-04
   2  alpha         1.8402        2.9683        .43138        .12955E-05
   3  Normalizat    .89897        .10357        .44888E-01    .99276E-05
   4  Prefactor     .89180        .80560E-01    .44902E-01    .19153E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.81887
  alpha      = 1.84024
  Normalizat = 0.89897
  Prefactor  = 0.891797
 **********
 **   18 **HESSE 
 **********

 FCN=   6103.839     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .38E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8189        1.6693        .93560E-04   -1.5438    
   2  alpha         1.8402        .72526        .17548E-01   -.26707    
   3  Normalizat    .89897        .17238        .22573E-03   -.96496    
   4  Prefactor     .89180        .20439        .26806E-03   -.96428    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.75991e-12
Minuit parameter uncertainties:
  1  1.66937
  2  0.736662
  3  0.172488
  4  0.204565
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/550312': 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) = 6103.83939308
delta logL = 0.000529898748027

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  1.819e+00  1.669e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.840e+00  7.367e-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:  8.918e-01  2.046e-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.990e-01  1.725e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.30
Ra Dec: 20.123 -27.023
Photon Index (Free Index): 1.84 +/- 0.74
Photon Flux (Free Index): 1.62e-08 +/- 2.16e-08
Energy Flux (Free Index): 1.49e-05 +/- 1.82e-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/550312/cmap_HighResolution_634608001_634867201_4FGL_J0120.4-2701_daily_bin1525.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.34e-05', comment='SUCCESS', photon_flux='1.57e-08', energy_flux2='1.49e-05', photon_flux_error='1.44e-08', dlogl='5.30e-04', energy_flux='1.52e-05', photon_flux2='1.62e-08', job_status='DONE', time_completed='2021-08-13 23:42:36.013502', photon_index_error2='0.74', photon_index2='1.84', ts='3.31', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='5.50e-08', energy_flux_error2='1.82e-05', EG='0.90', time_epoch_completed='1628923356.01', return_code='0', job_id='550312', GAL2='0.89', EG2='0.90', return_code2='0', energy_flux_error='1.40e-05', photon_flux_error2='2.16e-08', ts2='3.30', photon_index='1.82' WHERE bin_id='1525' AND source_name='4FGL J0120.4-2701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 23:42:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0129>
Subject: Job 550312: <4FGL_J0120.4-2701_daily_bin1525> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0120.4-2701_daily_bin1525 20.1227 -27.0229 634608001 634867201 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 :                                   582.17 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             313.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   639 sec.
    Turnaround time :                            717 sec.

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

