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


Performing analysis on: 4FGL_J0120.4-2701_daily_bin1257
RA = 20.1227, Dec = -27.0229
tmin = 565142401, tmax = 565401601
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='549139', job_status='RUN', time_executed='2021-08-13 23:31:17.691288', time_epoch_executed='1628922677.69' WHERE source_name='4FGL J0120.4-2701' and cadence='daily' and bin_id='1257'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/549139

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/549139/ft1_4FGL_J0120.4-2701_daily_bin1257.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/549139/ft2_4FGL_J0120.4-2701_daily_bin1257.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/549139/ft1_4FGL_J0120.4-2701_daily_bin1257.fits outfile=/scratch/kocevski/549139/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1257.fits ra=20.1227 dec=-27.0229 rad=12.0 tmin=565142401.0 tmax=565401601.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 9.18
user 3.30
sys 5.74

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/549139/ft1_filtered_4FGL_J0120.4-2701_daily_bin1257.fits" evtable="EVENTS" scfile=/scratch/kocevski/549139/ft2_4FGL_J0120.4-2701_daily_bin1257.fits sctable="SC_DATA" outfile=/scratch/kocevski/549139/ltcube_565142401_565401601_4FGL_J0120.4-2701_daily_bin1257.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/549139/ft2_4FGL_J0120.4-2701_daily_bin1257.fits
.....................!
real 19.73
user 13.02
sys 6.57

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/549139/ft1_filtered_4FGL_J0120.4-2701_daily_bin1257.fits evtable="EVENTS" scfile=/scratch/kocevski/549139/ft2_4FGL_J0120.4-2701_daily_bin1257.fits sctable="SC_DATA" expcube=/scratch/kocevski/549139/ltcube_565142401_565401601_4FGL_J0120.4-2701_daily_bin1257.fits outfile=/scratch/kocevski/549139/expmap_565142401_565401601_4FGL_J0120.4-2701_daily_bin1257.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/549139/ltcube_565142401_565401601_4FGL_J0120.4-2701_daily_bin1257.fits
.....................!
real 198.97
user 185.55
sys 12.95

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/549139/ft1_filtered_4FGL_J0120.4-2701_daily_bin1257.fits scfile=/scratch/kocevski/549139/ft2_4FGL_J0120.4-2701_daily_bin1257.fits outfile=/scratch/kocevski/549139/cmap_565142401_565401601_4FGL_J0120.4-2701_daily_bin1257.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 6.02
user 0.39
sys 5.59

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/549139/ft1_filtered_4FGL_J0120.4-2701_daily_bin1257.fits scfile=/scratch/kocevski/549139/ft2_4FGL_J0120.4-2701_daily_bin1257.fits outfile=/scratch/kocevski/549139/cmap_HighResolution_565142401_565401601_4FGL_J0120.4-2701_daily_bin1257.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.97
user 0.39
sys 5.55

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/549139/ft1_filtered_4FGL_J0120.4-2701_daily_bin1257.fits evtable="EVENTS" scfile=/scratch/kocevski/549139/ft2_4FGL_J0120.4-2701_daily_bin1257.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/549139/Model_4FGL_J0120.4-2701_daily_bin1257.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/549139/ft1_filtered_4FGL_J0120.4-2701_daily_bin1257.fits.....................!
real 55.25
user 46.66
sys 8.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.336       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    9.0623       1.0000         .10000E-03   10000.    
     4 'norm      '    4.4069       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9288       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.4943       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.9452       1.0000         .10000E-03   10000.    
     9 'norm      '    1.4729       1.0000         .10000E-03   10000.    
    10 'norm      '    4.0275       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.988       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .98603       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .93612       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=   6000.940     FROM MIGRAD    STATUS=CONVERGED    408 CALLS     2026 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.336        6.7002       -.16074E-06   -.45672E-04
   2  Prefactor     .10000E-03    40.974       -.12831E-06** at limit **
   3  norm          9.0632        10.314       -.30894E-06   -.20942E-04
   4  norm          4.4068        2.8825       -.15839E-08   -.82452E-04
   5  Prefactor     1.9289        6.0566        .36032E-05   -.74550E-03
   6  Prefactor     .10000E-03    13.790        .75860E-07** at limit **
   7  Prefactor     2.4938        3.2867       -.61995E-06   -.59529E-03
   8  Prefactor     4.9576        14.254       -.13240E-05   -.21292E-03
   9  norm          1.4695        2.8953       -.34977E-07   -.74778E-03
  10  norm          4.0277        2.0317        .60882E-06    .78428E-05
  11  Prefactor     .10000E-03    9.5133       -.17074E-06** at limit **
  12  Prefactor     .10000E-03    2.7080        .16503E-07** at limit **
  13  norm          .10000E-03    .52782       -.91166E-08** at limit **
  14  norm          .10000E-03    .41196        .67198E-08** at limit **
  15  Prefactor     .10000E-03    1.3433       -.60869E-07** at limit **
  16  norm          .10000E-03    .88434        .20623E-07** at limit **
  17  Prefactor     21.976        30.174       -.16627E-04   -.21651E-05
  18  Prefactor     .10000E-03    2.4709        .36009E-07** at limit **
  19  Normalizat    .98606        .14900        .49339E-06   -.69987E-04
  20  Prefactor     .93614        .17512        .20203E-06   -.22506E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 17.336
  Prefactor  = 0.0001
  norm       = 9.06318
  norm       = 4.40681
  Prefactor  = 1.92889
  Prefactor  = 0.000100001
  Prefactor  = 2.49384
  Prefactor  = 4.95764
  norm       = 1.46947
  norm       = 4.02768
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 21.9757
  Prefactor  = 0.0001
  Normalizat = 0.98606
  Prefactor  = 0.936137
 **********
 **   18 **HESSE 
 **********

 FCN=   6000.940     FROM HESSE     STATUS=OK           295 CALLS     2321 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.336        6.7021        .96192E-04   -1.4875    
   2  Prefactor     .10000E-03    40.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.0632        10.313        .13314E-03   -1.5106    
   4  norm          4.4068        2.8818        .10299E-03   -1.5288    
   5  Prefactor     1.9289        5.8211        .29909E-03   -1.5430    
   6  Prefactor     .10000E-03    13.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.4938        3.2904        .15346E-03   -1.5392    
   8  Prefactor     4.9576        13.741        .18086E-03   -1.5263    
   9  norm          1.4695        2.7503        .11799E-03   -1.5466    
  10  norm          4.0277        2.0335        .76180E-04   -1.5307    
  11  Prefactor     .10000E-03    9.5981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.7774        .24788E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .92262        .10853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .41512        .48541E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.3585        .87646E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .89610        .71092E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     21.976        30.446        .85420E-04   -1.4770    
  18  Prefactor     .10000E-03    2.4732        .11892E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .98606        .17478        .21032E-03   -.93499    
  20  Prefactor     .93614        .20544        .25895E-03   -.94890    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27928e-09
Minuit parameter uncertainties:
  1  6.70244
  2  1.83235e-05
  3  10.3152
  4  2.88188
  5  5.82277
  6  0.000173962
  7  3.29067
  8  13.7494
  9  2.7505
  10  2.03358
  11  4.22963e-05
  12  4.0976e-06
  13  1.41651e-06
  14  3.09765e-07
  15  7.97883e-07
  16  2.29933e-06
  17  30.467
  18  1.06428e-05
  19  0.174878
  20  0.205616
Done.

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

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  4.028e+00  2.034e+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:  9.361e-01  2.056e-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:  9.861e-01  1.749e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.70
Ra Dec: 20.123 -27.023
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 3.49e-08 +/- 1.76e-08
Energy Flux (Fixed Index): 3.39e-05 +/- 1.71e-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) = 6000.90925498
delta logL = 0.0311571617322

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6000.90920498
delta logL = 0.0312071602793

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0338       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7199       1.0000          .0000       5.0000    
     3 'Normalizat'    .98862       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93571       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=   6000.909     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      199 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0421        3.2053        .50194E-02   -.77219E-04
   2  alpha         1.7196        .53484        .27581        .21654E-05
   3  Normalizat    .98886        .14495        .46024E-01    .67646E-05
   4  Prefactor     .93532        .17423        .45459E-01    .11539E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.04213
  alpha      = 1.71958
  Normalizat = 0.988857
  Prefactor  = 0.935324
 **********
 **   18 **HESSE 
 **********

 FCN=   6000.909     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .17E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0421        2.0725        .77570E-04   -1.5306    
   2  alpha         1.7196        .38431        .10967E-01   -.31747    
   3  Normalizat    .98886        .16893        .21008E-03   -.93405    
   4  Prefactor     .93532        .20381        .25908E-03   -.94917    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71841e-14
Minuit parameter uncertainties:
  1  2.07257
  2  0.386006
  3  0.169024
  4  0.203975
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/549139': 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) = 6000.90919479
delta logL = 0.0312173471993

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  4.042e+00  2.073e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.720e+00  3.860e-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:  9.353e-01  2.040e-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:  9.889e-01  1.690e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.75
Ra Dec: 20.123 -27.023
Photon Index (Free Index): 1.72 +/- 0.39
Photon Flux (Free Index): 3.15e-08 +/- 2.09e-08
Energy Flux (Free Index): 3.91e-05 +/- 3.09e-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/549139/cmap_HighResolution_565142401_565401601_4FGL_J0120.4-2701_daily_bin1257.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.49e-08', energy_flux2='3.91e-05', photon_flux_error='1.76e-08', dlogl='3.12e-02', energy_flux='3.39e-05', photon_flux2='3.15e-08', job_status='DONE', time_completed='2021-08-13 23:41:43.051332', photon_index_error2='0.39', photon_index2='1.72', ts='15.70', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='3.09e-05', EG='0.99', time_epoch_completed='1628923303.05', return_code='0', job_id='549139', GAL2='0.94', EG2='0.99', return_code2='0', energy_flux_error='1.71e-05', photon_flux_error2='2.09e-08', ts2='15.75', photon_index='1.82' WHERE bin_id='1257' AND source_name='4FGL J0120.4-2701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 23:41:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0187>
Subject: Job 549139: <4FGL_J0120.4-2701_daily_bin1257> in cluster <slac> Done

Job <4FGL_J0120.4-2701_daily_bin1257> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Fri Aug 13 23:25:48 2021
Job was executed on host(s) <bullet0187>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 23:27:59 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:27:59 2021
Terminated at Fri Aug 13 23:41:44 2021
Results reported at Fri Aug 13 23:41:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0120.4-2701_daily_bin1257 20.1227 -27.0229 565142401 565401601 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.27 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             223.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            956 sec.

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

