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


Performing analysis on: 4FGL_J0120.4-2701_daily_bin1042
RA = 20.1227, Dec = -27.0229
tmin = 509414401, tmax = 509673601
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='548825', job_status='RUN', time_executed='2021-08-13 23:29:45.233802', time_epoch_executed='1628922585.23' WHERE source_name='4FGL J0120.4-2701' and cadence='daily' and bin_id='1042'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/548825

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/548825/ft1_4FGL_J0120.4-2701_daily_bin1042.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/548825/ft2_4FGL_J0120.4-2701_daily_bin1042.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/548825/ft1_4FGL_J0120.4-2701_daily_bin1042.fits outfile=/scratch/kocevski/548825/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1042.fits ra=20.1227 dec=-27.0229 rad=12.0 tmin=509414401.0 tmax=509673601.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 11.58
user 3.43
sys 8.06

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/548825/ft1_filtered_4FGL_J0120.4-2701_daily_bin1042.fits" evtable="EVENTS" scfile=/scratch/kocevski/548825/ft2_4FGL_J0120.4-2701_daily_bin1042.fits sctable="SC_DATA" outfile=/scratch/kocevski/548825/ltcube_509414401_509673601_4FGL_J0120.4-2701_daily_bin1042.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/548825/ft2_4FGL_J0120.4-2701_daily_bin1042.fits
.....................!
real 25.26
user 14.85
sys 10.25

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/548825/ft1_filtered_4FGL_J0120.4-2701_daily_bin1042.fits evtable="EVENTS" scfile=/scratch/kocevski/548825/ft2_4FGL_J0120.4-2701_daily_bin1042.fits sctable="SC_DATA" expcube=/scratch/kocevski/548825/ltcube_509414401_509673601_4FGL_J0120.4-2701_daily_bin1042.fits outfile=/scratch/kocevski/548825/expmap_509414401_509673601_4FGL_J0120.4-2701_daily_bin1042.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/548825/ltcube_509414401_509673601_4FGL_J0120.4-2701_daily_bin1042.fits
.....................!
real 202.01
user 185.22
sys 16.09

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/548825/ft1_filtered_4FGL_J0120.4-2701_daily_bin1042.fits scfile=/scratch/kocevski/548825/ft2_4FGL_J0120.4-2701_daily_bin1042.fits outfile=/scratch/kocevski/548825/cmap_509414401_509673601_4FGL_J0120.4-2701_daily_bin1042.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 8.98
user 0.37
sys 8.53

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/548825/ft1_filtered_4FGL_J0120.4-2701_daily_bin1042.fits scfile=/scratch/kocevski/548825/ft2_4FGL_J0120.4-2701_daily_bin1042.fits outfile=/scratch/kocevski/548825/cmap_HighResolution_509414401_509673601_4FGL_J0120.4-2701_daily_bin1042.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 9.17
user 0.40
sys 8.72

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/548825/ft1_filtered_4FGL_J0120.4-2701_daily_bin1042.fits evtable="EVENTS" scfile=/scratch/kocevski/548825/ft2_4FGL_J0120.4-2701_daily_bin1042.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/548825/Model_4FGL_J0120.4-2701_daily_bin1042.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/548825/ft1_filtered_4FGL_J0120.4-2701_daily_bin1042.fits.....................!
real 53.06
user 40.31
sys 12.56

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    25.764       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    11.924       1.0000         .10000E-03   10000.    
     4 'norm      '    8.9022       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .17456E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.963       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.4164       1.0000         .10000E-03   10000.    
     9 'norm      '    .10405E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.0402       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.0942       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .37265       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.4728       1.0000         .10000E-03   10000.    
    16 'norm      '    1.9186       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.3323       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1830       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .69948       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=   4582.398     FROM MIGRAD    STATUS=CONVERGED    436 CALLS     1810 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          25.765        9.2193        .14905E-06    .28806E-04
   2  Prefactor     .10000E-03    41.457        .51245E-06** at limit **
   3  norm          11.927        13.163       -.10423E-05    .39390E-05
   4  norm          8.9012        5.4699       -.66965E-06   -.12813E-04
   5  Prefactor     .10001E-03    7.9634       -.35651E-06** at limit **
   6  Prefactor     .10000E-03    6.1934        .11513E-06** at limit **
   7  Prefactor     14.962        5.7349       -.48330E-06   -.49470E-05
   8  Prefactor     2.4183        4.3620        .28050E-06   -.83520E-03
   9  norm          .10000E-03    1.2728       -.15097E-06** at limit **
  10  norm          2.0404        1.8879        .20921E-07    .27763E-04
  11  Prefactor     2.0961        14.307       -.82141E-08   -.31920E-03
  12  Prefactor     .10000E-03    3.4548       -.13295E-06** at limit **
  13  norm          .10000E-03    .39848        .18613E-08** at limit **
  14  norm          .37228        1.4099        .15174E-06   -.97962E-04
  15  Prefactor     5.4720        4.4491       -.15179E-06   -.21585E-05
  16  norm          1.9182        2.3869       -.10372E-07   -.13601E-04
  17  Prefactor     .10000E-03    11.549       -.33652E-06** at limit **
  18  Prefactor     6.3288        10.193       -.58841E-05   -.40265E-04
  19  Normalizat    1.1832        .19373        .68603E-06    .43071E-04
  20  Prefactor     .69951        .21553        .36088E-06    .47185E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 25.7646
  Prefactor  = 0.0001
  norm       = 11.9266
  norm       = 8.90117
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 14.9618
  Prefactor  = 2.41826
  norm       = 0.0001
  norm       = 2.04036
  Prefactor  = 2.09614
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.372281
  Prefactor  = 5.47195
  norm       = 1.91821
  Prefactor  = 0.0001
  Prefactor  = 6.32883
  Normalizat = 1.18318
  Prefactor  = 0.699514
 **********
 **   18 **HESSE 
 **********

 FCN=   4582.398     FROM HESSE     STATUS=OK           305 CALLS     2115 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          25.765        9.2248        .78922E-04   -1.4692    
   2  Prefactor     .10000E-03    41.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          11.927        13.169        .11601E-03   -1.5017    
   4  norm          8.9012        5.4779        .11857E-03   -1.5111    
   5  Prefactor     .10001E-03    10.864        .51916E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.2048        .16448E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.962        5.7453        .96196E-04   -1.4934    
   8  Prefactor     2.4183        6.0910        .12856E-02   -1.5397    
   9  norm          .10000E-03    1.3187        .14864E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.0404        1.8855        .86548E-04   -1.5422    
  11  Prefactor     2.0961        24.055        .14262E-02   -1.5418    
  12  Prefactor     .10000E-03    3.6166        .24554E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .40299        .41710E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .37228        1.3777        .14923E-03   -1.5586    
  15  Prefactor     5.4720        4.4504        .12412E-03   -1.5240    
  16  norm          1.9182        2.3681        .11214E-03   -1.5431    
  17  Prefactor     .10000E-03    11.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.3288        10.216        .15951E-03   -1.5205    
  19  Normalizat    1.1832        .22476        .21431E-03   -.87124    
  20  Prefactor     .69951        .24997        .30647E-03   -1.0355    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06164e-09
Minuit parameter uncertainties:
  1  9.22534
  2  3.14753e-06
  3  13.1719
  4  5.47816
  5  0.000564712
  6  1.77002e-06
  7  5.7455
  8  6.09256
  9  2.81672e-06
  10  1.88553
  11  14.2086
  12  6.25324e-06
  13  5.73206e-07
  14  1.37786
  15  4.45067
  16  2.36825
  17  1.1973e-05
  18  10.2187
  19  0.224941
  20  0.250374
Done.

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

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  2.040e+00  1.886e+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:  6.995e-01  2.504e-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.183e+00  2.249e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.86
Ra Dec: 20.123 -27.023
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 1.77e-08 +/- 1.63e-08
Energy Flux (Fixed Index): 1.72e-05 +/- 1.59e-05

TS (Fixed Index): 2.86
Ra Dec: 20.123 -27.023
Photon Flux Upper Limit: 6.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.20e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/548825/likelihoodResults_509414401_509673601_4FGL_J0120.4-2701_daily_bin1042.txt

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) = 4582.38780317
delta logL = 0.01021196906

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4582.38678002
delta logL = 0.0112351170392

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9572       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9364       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1811       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70072       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=   4582.387     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      190 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9567        60.533        .74138E-02    .34892E-04
   2  alpha         1.9355        2.7597        .42557        .13096E-04
   3  Normalizat    1.1812        .94411E-01    .35372E-01    .41876E-05
   4  Prefactor     .70070        .84343E-01    .69200E-01    .21274E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.95671
  alpha      = 1.93548
  Normalizat = 1.18116
  Prefactor  = 0.700698
 **********
 **   18 **HESSE 
 **********

 FCN=   4582.387     FROM HESSE     STATUS=OK            33 CALLS      223 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9567        1.9454        .84077E-04   -1.5428    
   2  alpha         1.9355        .80667        .15578E-01   -.22777    
   3  Normalizat    1.1812        .21843        .21447E-03   -.87187    
   4  Prefactor     .70070        .24667        .30623E-03   -1.0350    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31343e-12
Minuit parameter uncertainties:
  1  1.94543
  2  0.822198
  3  0.218598
  4  0.247055
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/548825': 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) = 4582.38677904
delta logL = 0.0112360952489

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  1.957e+00  1.945e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.935e+00  8.222e-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:  7.007e-01  2.471e-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.181e+00  2.186e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.88
Ra Dec: 20.123 -27.023
Photon Index (Free Index): 1.94 +/- 0.82
Photon Flux (Free Index): 1.97e-08 +/- 2.24e-08
Energy Flux (Free Index): 1.45e-05 +/- 2.10e-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/548825/cmap_HighResolution_509414401_509673601_4FGL_J0120.4-2701_daily_bin1042.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.20e-05', comment='SUCCESS', photon_flux='1.77e-08', energy_flux2='1.45e-05', photon_flux_error='1.63e-08', dlogl='1.12e-02', energy_flux='1.72e-05', photon_flux2='1.97e-08', job_status='DONE', time_completed='2021-08-13 23:40:29.061658', photon_index_error2='0.82', photon_index2='1.94', ts='2.86', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', photon_flux_upper_limit='6.38e-08', energy_flux_error2='2.10e-05', EG='1.18', time_epoch_completed='1628923229.06', return_code='0', job_id='548825', GAL2='0.70', EG2='1.18', return_code2='0', energy_flux_error='1.59e-05', photon_flux_error2='2.24e-08', ts2='2.88', photon_index='1.82' WHERE bin_id='1042' AND source_name='4FGL J0120.4-2701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 23:40:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0139>
Subject: Job 548825: <4FGL_J0120.4-2701_daily_bin1042> in cluster <slac> Done

Job <4FGL_J0120.4-2701_daily_bin1042> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Fri Aug 13 23:25:28 2021
Job was executed on host(s) <bullet0139>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 23:25:50 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:25:50 2021
Terminated at Fri Aug 13 23:40:31 2021
Results reported at Fri Aug 13 23:40:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0120.4-2701_daily_bin1042 20.1227 -27.0229 509414401 509673601 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 :                                   773.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             241.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            903 sec.

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

