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


Performing analysis on: 4FGL_J0120.4-2701_daily_bin1615
RA = 20.1227, Dec = -27.0229
tmin = 657936001, tmax = 658195201
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='139421', job_status='RUN', time_executed='2021-12-07 12:08:17.278113', time_epoch_executed='1638907697.28' WHERE source_name='4FGL J0120.4-2701' and cadence='daily' and bin_id='1615'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/139421

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/139421/ft1_4FGL_J0120.4-2701_daily_bin1615.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/139421/ft2_4FGL_J0120.4-2701_daily_bin1615.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/139421/ft1_4FGL_J0120.4-2701_daily_bin1615.fits outfile=/scratch/kocevski/139421/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1615.fits ra=20.1227 dec=-27.0229 rad=12.0 tmin=657936001.0 tmax=658195201.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 4.22
user 3.92
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/139421/ft2_4FGL_J0120.4-2701_daily_bin1615.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/139421/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1615.fits evtable="EVENTS" outfile="/scratch/kocevski/139421/ft1_filtered_4FGL_J0120.4-2701_daily_bin1615.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.53
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/139421/ft1_filtered_4FGL_J0120.4-2701_daily_bin1615.fits" evtable="EVENTS" scfile=/scratch/kocevski/139421/ft2_4FGL_J0120.4-2701_daily_bin1615.fits sctable="SC_DATA" outfile=/scratch/kocevski/139421/ltcube_657936001_658195201_4FGL_J0120.4-2701_daily_bin1615.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/139421/ft2_4FGL_J0120.4-2701_daily_bin1615.fits
.....................!
real 16.83
user 16.33
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/139421/ft1_filtered_4FGL_J0120.4-2701_daily_bin1615.fits evtable="EVENTS" scfile=/scratch/kocevski/139421/ft2_4FGL_J0120.4-2701_daily_bin1615.fits sctable="SC_DATA" expcube=/scratch/kocevski/139421/ltcube_657936001_658195201_4FGL_J0120.4-2701_daily_bin1615.fits outfile=/scratch/kocevski/139421/expmap_657936001_658195201_4FGL_J0120.4-2701_daily_bin1615.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/139421/ltcube_657936001_658195201_4FGL_J0120.4-2701_daily_bin1615.fits
.....................!
real 194.12
user 187.18
sys 4.84

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/139421/ft1_filtered_4FGL_J0120.4-2701_daily_bin1615.fits scfile=/scratch/kocevski/139421/ft2_4FGL_J0120.4-2701_daily_bin1615.fits outfile=/scratch/kocevski/139421/cmap_657936001_658195201_4FGL_J0120.4-2701_daily_bin1615.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.61
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/139421/ft1_filtered_4FGL_J0120.4-2701_daily_bin1615.fits scfile=/scratch/kocevski/139421/ft2_4FGL_J0120.4-2701_daily_bin1615.fits outfile=/scratch/kocevski/139421/cmap_HighResolution_657936001_658195201_4FGL_J0120.4-2701_daily_bin1615.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.57
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/139421/ft1_filtered_4FGL_J0120.4-2701_daily_bin1615.fits evtable="EVENTS" scfile=/scratch/kocevski/139421/ft2_4FGL_J0120.4-2701_daily_bin1615.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/139421/Model_4FGL_J0120.4-2701_daily_bin1615.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/139421/ft1_filtered_4FGL_J0120.4-2701_daily_bin1615.fits.....................!
real 46.69
user 44.89
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.4762       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    10.529       1.0000         .10000E-03   10000.    
     4 'norm      '    1.1924       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.488       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.8226       1.0000         .10000E-03   10000.    
    10 'norm      '    3.1478       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .61970E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.1367       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.9886       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.5487       1.0000         .10000E-03   10000.    
    18 'Prefactor '    26.803       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1742       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .40857       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=   5333.255     FROM MIGRAD    STATUS=CONVERGED    428 CALLS     1814 TOTAL
                     EDM=   .35E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.4761        4.7447       -.29541E-06   -.20245E-04
   2  Prefactor     .10000E-03    62.245       -.14796E-05** at limit **
   3  norm          10.529        7.7610        .95277E-07    .99085E-05
   4  norm          1.1924        1.2056        .17833E-06   -.17236E-04
   5  Prefactor     11.487        7.1505       -.97367E-07   -.37869E-04
   6  Prefactor     .10000E-03    10.430        .76993E-06** at limit **
   7  Prefactor     .10000E-03    1.2560       -.26968E-06** at limit **
   8  Prefactor     .10000E-03    7.8899        .71490E-06** at limit **
   9  norm          3.8235        2.0689       -.25723E-06   -.24801E-03
  10  norm          3.1479        1.9640        .83328E-07   -.22466E-04
  11  Prefactor     .10000E-03    4.6045        .28818E-07** at limit **
  12  Prefactor     .10000E-03    16.008        .26377E-05** at limit **
  13  norm          2.1369        1.4424       -.27530E-06   -.13923E-03
  14  norm          .10000E-03    1.0451        .56441E-06** at limit **
  15  Prefactor     .10000E-03    1.5738       -.15398E-06** at limit **
  16  norm          1.9885        1.5996        .19278E-06   -.15821E-05
  17  Prefactor     5.4835        28.486        .23842E-05    .11177E-04
  18  Prefactor     26.804        13.456        .36616E-06    .20869E-04
  19  Normalizat    1.1742        .15761        .11201E-05   -.11881E-03
  20  Prefactor     .40859        .17469       -.15559E-05    .94119E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.47608
  Prefactor  = 0.0001
  norm       = 10.5293
  norm       = 1.1924
  Prefactor  = 11.4874
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.82348
  norm       = 3.14791
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.13685
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.98848
  Prefactor  = 5.48347
  Prefactor  = 26.8037
  Normalizat = 1.17418
  Prefactor  = 0.408594
 **********
 **   18 **HESSE 
 **********

 FCN=   5333.255     FROM HESSE     STATUS=OK           297 CALLS     2111 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.4761        4.7380        .12223E-03   -1.5161    
   2  Prefactor     .10000E-03    62.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          10.529        7.7630        .12347E-03   -1.5059    
   4  norm          1.1924        1.2294        .78532E-04   -1.5490    
   5  Prefactor     11.487        7.1448        .11820E-03   -1.5030    
   6  Prefactor     .10000E-03    10.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.2818        .79971E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.0424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.8235        2.0446        .73534E-04   -1.5317    
  10  norm          3.1479        1.9669        .78313E-04   -1.5353    
  11  Prefactor     .10000E-03    4.6100        .15302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.845        .19468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.1369        1.4377        .68919E-04   -1.5416    
  14  norm          .10000E-03    1.0608        .14424E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.8083        .17747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.9885        1.5991        .80328E-04   -1.5426    
  17  Prefactor     5.4835        28.734        .17056E-03   -1.5240    
  18  Prefactor     26.804        13.466        .77380E-04   -1.4672    
  19  Normalizat    1.1742        .17040        .17707E-03   -.87404    
  20  Prefactor     .40859        .19024        .32866E-03   -1.1637    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.87011e-11
Minuit parameter uncertainties:
  1  4.73824
  2  5.31041e-05
  3  7.76372
  4  1.22941
  5  7.14536
  6  3.73534e-06
  7  2.62883e-06
  8  3.98426e-05
  9  2.0446
  10  1.9669
  11  3.80506e-06
  12  3.87999e-06
  13  1.43772
  14  2.90717e-06
  15  1.09129e-05
  16  1.59914
  17  25.1236
  18  13.467
  19  0.170482
  20  0.190537
Done.

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

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  3.148e+00  1.967e+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:  4.086e-01  1.905e-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.174e+00  1.705e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 18.48
Ra Dec: 20.123 -27.023
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 2.73e-08 +/- 1.71e-08
Energy Flux (Fixed Index): 2.65e-05 +/- 1.66e-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) = 5328.85803416
delta logL = 4.39658070748

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5328.60930949
delta logL = 4.64530537464

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10015       1.0000         .10000E-03   10000.    
     2 'alpha     '    .86279E-04   1.0000          .0000       5.0000    
     3 'Normalizat'    1.1920       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .40763       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=   5328.609     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      307 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10034        .14115        .36078E-02   -.31722E-02
   2  alpha         .51575E-11    .90242        .46269    ** at limit **
   3  Normalizat    1.1917        .14934        .35091E-01    .84736E-04
   4  Prefactor     .40789        .17110        .74312E-01    .10139E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.100336
  alpha      = 5.15754e-12
  Normalizat = 1.19172
  Prefactor  = 0.407886
 **********
 **   18 **HESSE 
 **********

 FCN=   5328.609     FROM HESSE     STATUS=OK            37 CALLS      344 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10034        .99018E-01    .15229E-03   -1.5645    
   2  alpha         .51575E-11    .37782        .50000       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1917        .16645        .17596E-03   -.86859    
   4  Prefactor     .40789        .19016        .32910E-03   -1.1641    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.43071e-11
Minuit parameter uncertainties:
  1  0.0990185
  2  2.82829e-06
  3  0.166523
  4  0.190452
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/139421': 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) = 5328.60930053
delta logL = 4.64531433327

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  1.003e-01  9.902e-02  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  5.158e-12  2.828e-06  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:  4.079e-01  1.905e-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.192e+00  1.665e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 27.75
Ra Dec: 20.123 -27.023
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 5.27e-09 +/- 5.20e-09
Energy Flux (Free Index): 2.21e-04 +/- 2.18e-04

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/139421/cmap_HighResolution_657936001_658195201_4FGL_J0120.4-2701_daily_bin1615.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.73e-08', energy_flux2='2.21e-04', photon_flux_error='1.71e-08', dlogl='4.65e+00', energy_flux='2.65e-05', photon_flux2='5.27e-09', job_status='DONE', time_completed='2021-12-07 12:16:58.345887', photon_index_error2='0.00', photon_index2='0.00', ts='18.48', fit_tolerance='1e-08', GAL='0.41', photon_index_error='0.00', energy_flux_error2='2.18e-04', EG='1.17', time_epoch_completed='1638908218.35', return_code='0', job_id='139421', GAL2='0.41', EG2='1.19', return_code2='0', energy_flux_error='1.66e-05', photon_flux_error2='5.20e-09', ts2='27.75', photon_index='1.82' WHERE bin_id='1615' AND source_name='4FGL J0120.4-2701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 12:16:58 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0011>
Subject: Job 139421: <4FGL_J0120.4-2701_daily_bin1615> in cluster <slac> Done

Job <4FGL_J0120.4-2701_daily_bin1615> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Dec  7 12:05:16 2021
Job was executed on host(s) <bullet0011>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 12:05:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 12:05:40 2021
Terminated at Tue Dec  7 12:16:59 2021
Results reported at Tue Dec  7 12:16:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0120.4-2701_daily_bin1615 20.1227 -27.0229 657936001 658195201 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 :                                   516.09 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             276.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   680 sec.
    Turnaround time :                            703 sec.

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

