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


Performing analysis on: 4FGL_J0120.4-2701_daily_bin1574
RA = 20.1227, Dec = -27.0229
tmin = 647308801, tmax = 647568001
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='550388', job_status='RUN', time_executed='2021-08-13 23:35:54.201642', time_epoch_executed='1628922954.2' WHERE source_name='4FGL J0120.4-2701' and cadence='daily' and bin_id='1574'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/550388

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/550388/ft1_4FGL_J0120.4-2701_daily_bin1574.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/550388/ft2_4FGL_J0120.4-2701_daily_bin1574.fits


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

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

Done.
real 8.75
user 3.36
sys 5.29

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/550388/ft1_filtered_4FGL_J0120.4-2701_daily_bin1574.fits" evtable="EVENTS" scfile=/scratch/kocevski/550388/ft2_4FGL_J0120.4-2701_daily_bin1574.fits sctable="SC_DATA" outfile=/scratch/kocevski/550388/ltcube_647308801_647568001_4FGL_J0120.4-2701_daily_bin1574.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/550388/ft2_4FGL_J0120.4-2701_daily_bin1574.fits
.....................!
real 19.11
user 13.01
sys 6.00

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/550388/ft1_filtered_4FGL_J0120.4-2701_daily_bin1574.fits evtable="EVENTS" scfile=/scratch/kocevski/550388/ft2_4FGL_J0120.4-2701_daily_bin1574.fits sctable="SC_DATA" expcube=/scratch/kocevski/550388/ltcube_647308801_647568001_4FGL_J0120.4-2701_daily_bin1574.fits outfile=/scratch/kocevski/550388/expmap_647308801_647568001_4FGL_J0120.4-2701_daily_bin1574.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/550388/ltcube_647308801_647568001_4FGL_J0120.4-2701_daily_bin1574.fits
.....................!
real 197.85
user 185.61
sys 11.72

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/550388/ft1_filtered_4FGL_J0120.4-2701_daily_bin1574.fits scfile=/scratch/kocevski/550388/ft2_4FGL_J0120.4-2701_daily_bin1574.fits outfile=/scratch/kocevski/550388/cmap_647308801_647568001_4FGL_J0120.4-2701_daily_bin1574.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=20.1227 yref=-27.0229 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 5.27
user 0.39
sys 4.83

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/550388/ft1_filtered_4FGL_J0120.4-2701_daily_bin1574.fits scfile=/scratch/kocevski/550388/ft2_4FGL_J0120.4-2701_daily_bin1574.fits outfile=/scratch/kocevski/550388/cmap_HighResolution_647308801_647568001_4FGL_J0120.4-2701_daily_bin1574.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=20.1227 yref=-27.0229 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 5.54
user 0.39
sys 5.09

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/550388/ft1_filtered_4FGL_J0120.4-2701_daily_bin1574.fits evtable="EVENTS" scfile=/scratch/kocevski/550388/ft2_4FGL_J0120.4-2701_daily_bin1574.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/550388/Model_4FGL_J0120.4-2701_daily_bin1574.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/550388/ft1_filtered_4FGL_J0120.4-2701_daily_bin1574.fits.....................!
real 56.96
user 48.65
sys 7.75

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    38.174       1.0000         .10000E-03   10000.    
     2 'Prefactor '    44.234       1.0000         .10000E-03   10000.    
     3 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.5643       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.0345       1.0000         .10000E-03   10000.    
     8 'Prefactor '    26.055       1.0000         .10000E-03   10000.    
     9 'norm      '    1.6252       1.0000         .10000E-03   10000.    
    10 'norm      '    4.0189       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.3749       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .27507       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.0443       1.0000         .10000E-03   10000.    
    16 'norm      '    .14662E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.185       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .69749       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2328       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=   6440.940     FROM MIGRAD    STATUS=CONVERGED    398 CALLS     2003 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          38.174        8.7954       -.93438E-07    .17911E-04
   2  Prefactor     44.216        78.255       -.26155E-04    .18462E-05
   3  norm          .10000E-03    5.8408        .36473E-06** at limit **
   4  norm          1.5644        1.8016       -.13918E-06   -.66778E-04
   5  Prefactor     .10000E-03    1.7736       -.10118E-07** at limit **
   6  Prefactor     .10000E-03    7.4924        .14334E-06** at limit **
   7  Prefactor     2.0346        2.3133       -.27639E-06   -.41834E-03
   8  Prefactor     26.056        10.777        .78210E-06    .57578E-04
   9  norm          1.6248        1.7687       -.27874E-06   -.20853E-03
  10  norm          4.0188        2.2840       -.80304E-07   -.43441E-04
  11  Prefactor     8.3738        11.200       -.98011E-06   -.50169E-04
  12  Prefactor     .10000E-03    .72878       -.87047E-08** at limit **
  13  norm          .27514        .83282       -.80678E-06   -.24003E-02
  14  norm          .10000E-03    .51462        .15460E-07** at limit **
  15  Prefactor     6.0444        3.8812       -.47773E-06   -.19123E-03
  16  norm          .10000E-03    1.0183        .10724E-06** at limit **
  17  Prefactor     14.175        29.259       -.21849E-04   -.60379E-05
  18  Prefactor     .10000E-03    7.3824       -.36430E-06** at limit **
  19  Normalizat    .69751        .15156        .23703E-05    .12036E-04
  20  Prefactor     1.2327        .18179        .69424E-06    .69708E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 38.1742
  Prefactor  = 44.2164
  norm       = 0.0001
  norm       = 1.56445
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.03464
  Prefactor  = 26.0564
  norm       = 1.62481
  norm       = 4.01879
  Prefactor  = 8.37378
  Prefactor  = 0.0001
  norm       = 0.275141
  norm       = 0.0001
  Prefactor  = 6.0444
  norm       = 0.000100001
  Prefactor  = 14.1752
  Prefactor  = 0.0001
  Normalizat = 0.697508
  Prefactor  = 1.23267
 **********
 **   18 **HESSE 
 **********

 FCN=   6440.940     FROM HESSE     STATUS=OK           295 CALLS     2298 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          38.174        8.7920        .64870E-04   -1.4471    
   2  Prefactor     44.216        77.993        .60280E-04   -1.4377    
   3  norm          .10000E-03    5.8692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.5644        1.7955        .11240E-03   -1.5458    
   5  Prefactor     .10000E-03    1.7818        .10436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.5804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.0346        2.3018        .12558E-03   -1.5423    
   8  Prefactor     26.056        10.712        .78481E-04   -1.4687    
   9  norm          1.6248        1.7508        .97949E-04   -1.5453    
  10  norm          4.0188        2.2818        .87060E-04   -1.5307    
  11  Prefactor     8.3738        11.191        .13853E-03   -1.5129    
  12  Prefactor     .10000E-03    .73018        .66891E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .27514        .85047        .12440E-03   -1.5603    
  14  norm          .10000E-03    .52173        .56174E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.0444        3.8819        .12147E-03   -1.5216    
  16  norm          .10000E-03    12.344        .15458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     14.175        29.091        .10635E-03   -1.4955    
  18  Prefactor     .10000E-03    7.4937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .69751        .17826        .25180E-03   -1.0399    
  20  Prefactor     1.2327        .21654        .23970E-03   -.85332    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78553e-09
Minuit parameter uncertainties:
  1  8.79234
  2  78.1733
  3  7.37355e-05
  4  1.79553
  5  1.17795e-06
  6  1.76253e-05
  7  2.30194
  8  10.7131
  9  1.75081
  10  2.28189
  11  11.1943
  12  6.80982e-07
  13  0.850507
  14  8.64405e-07
  15  3.88204
  16  0.00022224
  17  29.1202
  18  4.15438e-05
  19  0.178413
  20  0.216692
Done.

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

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  4.019e+00  2.282e+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:  1.233e+00  2.167e-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:  6.975e-01  1.784e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 18.75
Ra Dec: 20.123 -27.023
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 3.48e-08 +/- 1.98e-08
Energy Flux (Fixed Index): 3.38e-05 +/- 1.92e-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) = 6440.90624626
delta logL = 0.0339077565623

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6440.90537901
delta logL = 0.0347750095652

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0889       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9471       1.0000          .0000       5.0000    
     3 'Normalizat'    .69108       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2350       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=   6440.905     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      208 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0893        54.138        .49844E-02   -.36044E-04
   2  alpha         1.9469        2.9428        .25668        .19349E-04
   3  Normalizat    .69069        .16725        .42171E-01   -.13770E-04
   4  Prefactor     1.2355        .11626        .54141E-01    .12781E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.08927
  alpha      = 1.94691
  Normalizat = 0.690688
  Prefactor  = 1.23548
 **********
 **   18 **HESSE 
 **********

 FCN=   6440.905     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0893        2.1666        .82941E-04   -1.5304    
   2  alpha         1.9469        .48215        .12739E-01   -.22308    
   3  Normalizat    .69069        .17617        .25287E-03   -1.0426    
   4  Prefactor     1.2355        .21540        .23938E-03   -.85246    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.63611e-10
Minuit parameter uncertainties:
  1  2.16664
  2  0.485354
  3  0.17631
  4  0.215558
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/550388': 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) = 6440.90537617
delta logL = 0.034777843156

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  4.089e+00  2.167e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.947e+00  4.854e-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:  1.235e+00  2.156e-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:  6.907e-01  1.763e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.81
Ra Dec: 20.123 -27.023
Photon Index (Free Index): 1.95 +/- 0.49
Photon Flux (Free Index): 4.18e-08 +/- 3.36e-08
Energy Flux (Free Index): 2.99e-05 +/- 2.07e-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/550388/cmap_HighResolution_647308801_647568001_4FGL_J0120.4-2701_daily_bin1574.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.48e-08', energy_flux2='2.99e-05', photon_flux_error='1.98e-08', dlogl='3.48e-02', energy_flux='3.38e-05', photon_flux2='4.18e-08', job_status='DONE', time_completed='2021-08-13 23:46:18.970056', photon_index_error2='0.49', photon_index2='1.95', ts='18.75', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', energy_flux_error2='2.07e-05', EG='0.70', time_epoch_completed='1628923578.97', return_code='0', job_id='550388', GAL2='1.24', EG2='0.69', return_code2='0', energy_flux_error='1.92e-05', photon_flux_error2='3.36e-08', ts2='18.81', photon_index='1.82' WHERE bin_id='1574' AND source_name='4FGL J0120.4-2701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 23:46:19 PDT 2021


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

Job <4FGL_J0120.4-2701_daily_bin1574> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Aug 13 23:30:46 2021
Job was executed on host(s) <bullet0212>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 23:32:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 13 23:32:26 2021
Terminated at Fri Aug 13 23:46:20 2021
Results reported at Fri Aug 13 23:46:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0120.4-2701_daily_bin1574 20.1227 -27.0229 647308801 647568001 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 :                                   700.03 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             249.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   833 sec.
    Turnaround time :                            934 sec.

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

