/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 126 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 = 7474
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0120.4-2701_daily_bin396
RA = 20.1227, Dec = -27.0229
tmin = 341971201, tmax = 342230401
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='545823', job_status='RUN', time_executed='2021-08-13 23:21:56.642811', time_epoch_executed='1628922116.64' WHERE source_name='4FGL J0120.4-2701' and cadence='daily' and bin_id='396'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/545823

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/545823/ft1_4FGL_J0120.4-2701_daily_bin396.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/545823/ft2_4FGL_J0120.4-2701_daily_bin396.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/545823/ft1_4FGL_J0120.4-2701_daily_bin396.fits outfile=/scratch/kocevski/545823/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin396.fits ra=20.1227 dec=-27.0229 rad=12.0 tmin=341971201.0 tmax=342230401.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.86
user 3.22
sys 5.48

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/545823/ft2_4FGL_J0120.4-2701_daily_bin396.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/545823/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin396.fits evtable="EVENTS" outfile="/scratch/kocevski/545823/ft1_filtered_4FGL_J0120.4-2701_daily_bin396.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.87
user 0.34
sys 5.44

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/545823/ft1_filtered_4FGL_J0120.4-2701_daily_bin396.fits" evtable="EVENTS" scfile=/scratch/kocevski/545823/ft2_4FGL_J0120.4-2701_daily_bin396.fits sctable="SC_DATA" outfile=/scratch/kocevski/545823/ltcube_341971201_342230401_4FGL_J0120.4-2701_daily_bin396.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/545823/ft2_4FGL_J0120.4-2701_daily_bin396.fits
.....................!
real 19.27
user 12.90
sys 6.25

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/545823/ft1_filtered_4FGL_J0120.4-2701_daily_bin396.fits evtable="EVENTS" scfile=/scratch/kocevski/545823/ft2_4FGL_J0120.4-2701_daily_bin396.fits sctable="SC_DATA" expcube=/scratch/kocevski/545823/ltcube_341971201_342230401_4FGL_J0120.4-2701_daily_bin396.fits outfile=/scratch/kocevski/545823/expmap_341971201_342230401_4FGL_J0120.4-2701_daily_bin396.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/545823/ltcube_341971201_342230401_4FGL_J0120.4-2701_daily_bin396.fits
.....................!
real 198.31
user 185.78
sys 11.39

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/545823/ft1_filtered_4FGL_J0120.4-2701_daily_bin396.fits scfile=/scratch/kocevski/545823/ft2_4FGL_J0120.4-2701_daily_bin396.fits outfile=/scratch/kocevski/545823/cmap_341971201_342230401_4FGL_J0120.4-2701_daily_bin396.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.76
user 0.39
sys 5.28

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/545823/ft1_filtered_4FGL_J0120.4-2701_daily_bin396.fits scfile=/scratch/kocevski/545823/ft2_4FGL_J0120.4-2701_daily_bin396.fits outfile=/scratch/kocevski/545823/cmap_HighResolution_341971201_342230401_4FGL_J0120.4-2701_daily_bin396.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.78
user 0.39
sys 5.31

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/545823/ft1_filtered_4FGL_J0120.4-2701_daily_bin396.fits evtable="EVENTS" scfile=/scratch/kocevski/545823/ft2_4FGL_J0120.4-2701_daily_bin396.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/545823/Model_4FGL_J0120.4-2701_daily_bin396.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/545823/ft1_filtered_4FGL_J0120.4-2701_daily_bin396.fits.....................!
real 54.05
user 45.75
sys 8.04

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.6887       1.0000         .10000E-03   10000.    
     4 'norm      '    2.8188       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.6930       1.0000         .10000E-03   10000.    
     9 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.8957       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.4656       1.0000         .10000E-03   10000.    
    13 'norm      '    1.6870       1.0000         .10000E-03   10000.    
    14 'norm      '    3.8345       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.0453       1.0000         .10000E-03   10000.    
    16 'norm      '    .17368       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0199       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .82905       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5670E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5623.455     FROM MIGRAD    STATUS=CONVERGED     82 CALLS     1394 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.4562       -.26252E-06** at limit **
   2  Prefactor     .10000E-03    23.734       -.65709E-05** at limit **
   3  norm          4.6881        1.0087       -.65077E-08    .30628E-04
   4  norm          2.8188        2.3312       -.31686E-06    .91141E-05
   5  Prefactor     .10000E-03    6.3220       -.48548E-05** at limit **
   6  Prefactor     .10000E-03    2.8072        .35963E-06** at limit **
   7  Prefactor     .10000E-03    1.2576        .95120E-07** at limit **
   8  Prefactor     8.6930        1.0217        .44473E-08    .47584E-04
   9  norm          .10000E-03    .67273        .15319E-06** at limit **
  10  norm          3.8958        2.0653       -.26354E-08    .45370E-04
  11  Prefactor     .10000E-03    4.5461       -.49080E-05** at limit **
  12  Prefactor     1.4656        2.7672       -.11397E-05    .11844E-02
  13  norm          1.6869        1.1778        .22430E-06    .95626E-04
  14  norm          3.8345        2.0346        .21204E-06   -.63838E-04
  15  Prefactor     2.0454        1.8012        .23051E-05    .26225E-02
  16  norm          .17233        .42450       -.49449E-06    .33211E-04
  17  Prefactor     .10000E-03    18.013        .61441E-05** at limit **
  18  Prefactor     .10000E-03    5.0153        .85220E-05** at limit **
  19  Normalizat    1.0199        .17942        .74076E-06    .26454E-05
  20  Prefactor     .82901        .21223       -.13033E-05    .20551E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.68809
  norm       = 2.81881
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.69296
  norm       = 0.0001
  norm       = 3.89576
  Prefactor  = 0.0001
  Prefactor  = 1.4656
  norm       = 1.68693
  norm       = 3.83447
  Prefactor  = 2.04541
  norm       = 0.172332
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.01991
  Prefactor  = 0.829015
 **********
 **   18 **HESSE 
 **********

 FCN=   5623.455     FROM HESSE     STATUS=OK           337 CALLS     1731 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.4214        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    23.793        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.6881        8.2164        .46461E-02   -1.5275    
   4  norm          2.8188        2.3296        .60564E-02   -1.5372    
   5  Prefactor     .10000E-03    6.1900        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.8065        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.2411        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.6930        7.1736        .33988E-02   -1.5118    
   9  norm          .10000E-03    .66895        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.8958        2.0634        .51105E-02   -1.5313    
  11  Prefactor     .10000E-03    4.6112        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.4656        3.2371        .88799E-02   -1.5466    
  13  norm          1.6869        1.1844        .81044E-02   -1.5448    
  14  norm          3.8345        2.0589        .51526E-02   -1.5316    
  15  Prefactor     2.0454        2.8504        .72277E-02   -1.5422    
  16  norm          .17233        1.3338        .53152E-01   -1.5625    
  17  Prefactor     .10000E-03    18.060        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.2038        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0199        .15337        .43371E-01   -.92367    
  20  Prefactor     .82901        .17970        .44094E-01   -.98668    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.44033e-09
Minuit parameter uncertainties:
  1  1.62363e-06
  2  0.000191287
  3  8.21838
  4  2.3297
  5  7.57452e-05
  6  1.0615e-05
  7  1.22344e-06
  8  7.17429
  9  2.00236e-06
  10  2.06346
  11  7.86483e-05
  12  3.23753
  13  1.18444
  14  2.05889
  15  2.8506
  16  0.95862
  17  0.000134043
  18  0.000142227
  19  0.153436
  20  0.179826
Done.

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

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  3.896e+00  2.063e+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.290e-01  1.798e-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.020e+00  1.534e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 21.17
Ra Dec: 20.123 -27.023
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 3.38e-08 +/- 1.79e-08
Energy Flux (Fixed Index): 3.28e-05 +/- 1.74e-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) = 5623.41403196
delta logL = 0.0413614881363

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5623.41369655
delta logL = 0.0416968964482

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8496       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6905       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0243       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82730       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=   5623.414     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      198 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8496        3.0199        .51421E-02   -.13588E-02
   2  alpha         1.6905        .53860        .29829       -.53433E-05
   3  Normalizat    1.0243        .15095        .42787E-01    .39153E-05
   4  Prefactor     .82729        .17966        .44071E-01    .15747E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.84962
  alpha      = 1.6905
  Normalizat = 1.02428
  Prefactor  = 0.827295
 **********
 **   18 **HESSE 
 **********

 FCN=   5623.414     FROM HESSE     STATUS=OK            33 CALLS      231 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8496        2.1162        .77544E-04   -1.5316    
   2  alpha         1.6905        .43307        .11464E-01   -.32974    
   3  Normalizat    1.0243        .17743        .20163E-03   -.92222    
   4  Prefactor     .82729        .21176        .26461E-03   -.98730    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.846e-10
Minuit parameter uncertainties:
  1  2.11622
  2  0.435523
  3  0.177534
  4  0.211969
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/545823': 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) = 5623.41369655
delta logL = 0.0416968973232

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  3.850e+00  2.116e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.690e+00  4.355e-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.273e-01  2.120e-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.024e+00  1.775e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 21.25
Ra Dec: 20.123 -27.023
Photon Index (Free Index): 1.69 +/- 0.44
Photon Flux (Free Index): 2.91e-08 +/- 2.20e-08
Energy Flux (Free Index): 3.91e-05 +/- 3.31e-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/545823/cmap_HighResolution_341971201_342230401_4FGL_J0120.4-2701_daily_bin396.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.38e-08', energy_flux2='3.91e-05', photon_flux_error='1.79e-08', dlogl='4.17e-02', energy_flux='3.28e-05', photon_flux2='2.91e-08', job_status='DONE', time_completed='2021-08-13 23:31:23.201404', photon_index_error2='0.44', photon_index2='1.69', ts='21.17', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='3.31e-05', EG='1.02', time_epoch_completed='1628922683.2', return_code='0', job_id='545823', GAL2='0.83', EG2='1.02', return_code2='0', energy_flux_error='1.74e-05', photon_flux_error2='2.20e-08', ts2='21.25', photon_index='1.82' WHERE bin_id='396' AND source_name='4FGL J0120.4-2701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 23:31:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 545823: <4FGL_J0120.4-2701_daily_bin396> in cluster <slac> Done

Job <4FGL_J0120.4-2701_daily_bin396> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Fri Aug 13 23:15:31 2021
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 23:18:17 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:18:17 2021
Terminated at Fri Aug 13 23:31:24 2021
Results reported at Fri Aug 13 23:31:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0120.4-2701_daily_bin396 20.1227 -27.0229 341971201 342230401 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 :                                   645.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   787 sec.
    Turnaround time :                            953 sec.

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

