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


Performing analysis on: 4FGL_J0120.4-2701_daily_bin1585
RA = 20.1227, Dec = -27.0229
tmin = 650160001, tmax = 650419201
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='550406', job_status='RUN', time_executed='2021-08-13 23:34:53.287989', time_epoch_executed='1628922893.29' WHERE source_name='4FGL J0120.4-2701' and cadence='daily' and bin_id='1585'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/550406

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/550406/ft1_4FGL_J0120.4-2701_daily_bin1585.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/550406/ft2_4FGL_J0120.4-2701_daily_bin1585.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/550406/ft1_4FGL_J0120.4-2701_daily_bin1585.fits outfile=/scratch/kocevski/550406/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1585.fits ra=20.1227 dec=-27.0229 rad=12.0 tmin=650160001.0 tmax=650419201.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.78
user 4.13
sys 4.45

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/550406/ft1_filtered_4FGL_J0120.4-2701_daily_bin1585.fits" evtable="EVENTS" scfile=/scratch/kocevski/550406/ft2_4FGL_J0120.4-2701_daily_bin1585.fits sctable="SC_DATA" outfile=/scratch/kocevski/550406/ltcube_650160001_650419201_4FGL_J0120.4-2701_daily_bin1585.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/550406/ft2_4FGL_J0120.4-2701_daily_bin1585.fits
.....................!
real 18.66
user 13.58
sys 4.95

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/550406/ft1_filtered_4FGL_J0120.4-2701_daily_bin1585.fits evtable="EVENTS" scfile=/scratch/kocevski/550406/ft2_4FGL_J0120.4-2701_daily_bin1585.fits sctable="SC_DATA" expcube=/scratch/kocevski/550406/ltcube_650160001_650419201_4FGL_J0120.4-2701_daily_bin1585.fits outfile=/scratch/kocevski/550406/expmap_650160001_650419201_4FGL_J0120.4-2701_daily_bin1585.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/550406/ltcube_650160001_650419201_4FGL_J0120.4-2701_daily_bin1585.fits
.....................!
real 198.58
user 187.27
sys 10.73

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/550406/ft1_filtered_4FGL_J0120.4-2701_daily_bin1585.fits scfile=/scratch/kocevski/550406/ft2_4FGL_J0120.4-2701_daily_bin1585.fits outfile=/scratch/kocevski/550406/cmap_650160001_650419201_4FGL_J0120.4-2701_daily_bin1585.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 4.61
user 0.37
sys 4.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/550406/ft1_filtered_4FGL_J0120.4-2701_daily_bin1585.fits scfile=/scratch/kocevski/550406/ft2_4FGL_J0120.4-2701_daily_bin1585.fits outfile=/scratch/kocevski/550406/cmap_HighResolution_650160001_650419201_4FGL_J0120.4-2701_daily_bin1585.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 4.57
user 0.38
sys 4.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/550406/ft1_filtered_4FGL_J0120.4-2701_daily_bin1585.fits evtable="EVENTS" scfile=/scratch/kocevski/550406/ft2_4FGL_J0120.4-2701_daily_bin1585.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/550406/Model_4FGL_J0120.4-2701_daily_bin1585.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/550406/ft1_filtered_4FGL_J0120.4-2701_daily_bin1585.fits.....................!
real 47.31
user 40.40
sys 6.63

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    21.013       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10247E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.1527       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.196       1.0000         .10000E-03   10000.    
     9 'norm      '    .23682       1.0000         .10000E-03   10000.    
    10 'norm      '    4.7690       1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.637       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.947       1.0000         .10000E-03   10000.    
    16 'norm      '    2.8968       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10889E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.6195       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .42864       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=   4472.393     FROM MIGRAD    STATUS=CONVERGED    420 CALLS     2063 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.013        10.105       -.49256E-06    .60136E-04
   2  Prefactor     .10000E-03    33.573        .10403E-04** at limit **
   3  norm          .10000E-03    4.7551       -.39379E-07** at limit **
   4  norm          .10000E-03    2.8435       -.82650E-07** at limit **
   5  Prefactor     .10000E-03    7.1463        .13774E-06** at limit **
   6  Prefactor     2.1578        28.595       -.44653E-05   -.64765E-04
   7  Prefactor     .10000E-03    2.4731       -.88580E-07** at limit **
   8  Prefactor     13.195        21.849        .94842E-06    .25673E-03
   9  norm          .23453        3.7412       -.78363E-06    .25084E-04
  10  norm          4.7691        2.9283       -.89690E-07    .17833E-03
  11  Prefactor     28.633        19.575       -.15857E-06    .87854E-04
  12  Prefactor     .10000E-03    5.8306       -.11049E-06** at limit **
  13  norm          .10000E-03    .80165       -.86010E-07** at limit **
  14  norm          .10000E-03    .92432        .76050E-07** at limit **
  15  Prefactor     17.946        7.0546       -.12826E-05    .30039E-03
  16  norm          2.8966        2.8675       -.70136E-07   -.70996E-04
  17  Prefactor     .10000E-03    32.699       -.97568E-05** at limit **
  18  Prefactor     .10000E-03    73.352       -.14871E-05** at limit **
  19  Normalizat    1.6196        .22025        .16145E-05    .14641E-03
  20  Prefactor     .42849        .23366       -.12010E-06    .88428E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 21.0126
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.15782
  Prefactor  = 0.0001
  Prefactor  = 13.1953
  norm       = 0.234531
  norm       = 4.76909
  Prefactor  = 28.6334
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 17.9456
  norm       = 2.89662
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.6196
  Prefactor  = 0.428492
 **********
 **   18 **HESSE 
 **********

 FCN=   4472.393     FROM HESSE     STATUS=OK           289 CALLS     2352 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.013        10.117        .87376E-04   -1.4791    
   2  Prefactor     .10000E-03    32.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.7583        .14243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.8871        .11008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.2036        .17429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.1578        29.270        .28081E-03   -1.5414    
   7  Prefactor     .10000E-03    2.5168        .10267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.195        26.110        .11027E-03   -1.4981    
   9  norm          .23453        25.116        .17457E-02   -1.5611    
  10  norm          4.7691        2.9214        .85280E-04   -1.5271    
  11  Prefactor     28.633        19.549        .74866E-04   -1.4637    
  12  Prefactor     .10000E-03    5.9229        .15708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .82294        .11688E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .93024        .62743E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     17.946        7.0446        .94542E-04   -1.4860    
  16  norm          2.8966        2.8648        .10853E-03   -1.5368    
  17  Prefactor     .10000E-03    32.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    76.456        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.6196        .24757        .20509E-03   -.74471    
  20  Prefactor     .42849        .25730        .40431E-03   -1.1538    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.56135e-10
Minuit parameter uncertainties:
  1  10.118
  2  0.000422871
  3  5.86523e-07
  4  6.03986e-06
  5  2.0588e-05
  6  15.9036
  7  2.63238e-06
  8  26.1329
  9  4.85514
  10  2.92146
  11  19.5537
  12  5.10774e-06
  13  2.87144e-06
  14  1.95362e-06
  15  7.0449
  16  2.86493
  17  0.000369743
  18  0.000168759
  19  0.247757
  20  0.258
Done.

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

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  4.769e+00  2.921e+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.285e-01  2.580e-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.620e+00  2.478e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.18
Ra Dec: 20.123 -27.023
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 4.13e-08 +/- 2.53e-08
Energy Flux (Fixed Index): 4.01e-05 +/- 2.46e-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) = 4472.37455373
delta logL = 0.0187657391507

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4472.3744097
delta logL = 0.0189097729544

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.7694       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7328       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6223       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .42751       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=   4472.374     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      198 TOTAL
                     EDM=   .92E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.7831        3.6163        .46058E-02   -.29019E-04
   2  alpha         1.7328        .48954        .26330        .13792E-05
   3  Normalizat    1.6222        .21464        .46373E-01    .28657E-04
   4  Prefactor     .42751        .23263        .91333E-01    .36185E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.78305
  alpha      = 1.73278
  Normalizat = 1.62224
  Prefactor  = 0.427511
 **********
 **   18 **HESSE 
 **********

 FCN=   4472.374     FROM HESSE     STATUS=OK            33 CALLS      231 TOTAL
                     EDM=   .32E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.7831        2.8974        .86080E-04   -1.5271    
   2  alpha         1.7328        .42406        .10762E-01   -.31192    
   3  Normalizat    1.6222        .23457        .20498E-03   -.74399    
   4  Prefactor     .42751        .25362        .40480E-03   -1.1543    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.21544e-12
Minuit parameter uncertainties:
  1  2.89746
  2  0.426336
  3  0.234733
  4  0.254285
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/550406': 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) = 4472.37439844
delta logL = 0.0189210288909

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  4.783e+00  2.897e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.733e+00  4.263e-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:  4.275e-01  2.543e-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.622e+00  2.347e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.23
Ra Dec: 20.123 -27.023
Photon Index (Free Index): 1.73 +/- 0.43
Photon Flux (Free Index): 3.78e-08 +/- 2.89e-08
Energy Flux (Free Index): 4.53e-05 +/- 4.04e-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/550406/cmap_HighResolution_650160001_650419201_4FGL_J0120.4-2701_daily_bin1585.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.13e-08', energy_flux2='4.53e-05', photon_flux_error='2.53e-08', dlogl='1.89e-02', energy_flux='4.01e-05', photon_flux2='3.78e-08', job_status='DONE', time_completed='2021-08-13 23:44:17.127265', photon_index_error2='0.43', photon_index2='1.73', ts='9.18', fit_tolerance='1e-08', GAL='0.43', photon_index_error='0.00', energy_flux_error2='4.04e-05', EG='1.62', time_epoch_completed='1628923457.13', return_code='0', job_id='550406', GAL2='0.43', EG2='1.62', return_code2='0', energy_flux_error='2.46e-05', photon_flux_error2='2.89e-08', ts2='9.23', photon_index='1.82' WHERE bin_id='1585' AND source_name='4FGL J0120.4-2701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 23:44:17 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0120.4-2701_daily_bin1585 20.1227 -27.0229 650160001 650419201 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 :                                   613.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             221.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   706 sec.
    Turnaround time :                            811 sec.

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

