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


Performing analysis on: 4FGL_J0120.4-2701_daily_bin1246
RA = 20.1227, Dec = -27.0229
tmin = 562291201, tmax = 562550401
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='549123', job_status='RUN', time_executed='2021-08-13 23:33:05.848763', time_epoch_executed='1628922785.85' WHERE source_name='4FGL J0120.4-2701' and cadence='daily' and bin_id='1246'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/549123

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/549123/ft1_4FGL_J0120.4-2701_daily_bin1246.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/549123/ft2_4FGL_J0120.4-2701_daily_bin1246.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/549123/ft1_4FGL_J0120.4-2701_daily_bin1246.fits outfile=/scratch/kocevski/549123/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1246.fits ra=20.1227 dec=-27.0229 rad=12.0 tmin=562291201.0 tmax=562550401.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.63
user 3.36
sys 8.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/549123/ft1_filtered_4FGL_J0120.4-2701_daily_bin1246.fits" evtable="EVENTS" scfile=/scratch/kocevski/549123/ft2_4FGL_J0120.4-2701_daily_bin1246.fits sctable="SC_DATA" outfile=/scratch/kocevski/549123/ltcube_562291201_562550401_4FGL_J0120.4-2701_daily_bin1246.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/549123/ft2_4FGL_J0120.4-2701_daily_bin1246.fits
.....................!
real 22.10
user 12.73
sys 9.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/549123/ft1_filtered_4FGL_J0120.4-2701_daily_bin1246.fits evtable="EVENTS" scfile=/scratch/kocevski/549123/ft2_4FGL_J0120.4-2701_daily_bin1246.fits sctable="SC_DATA" expcube=/scratch/kocevski/549123/ltcube_562291201_562550401_4FGL_J0120.4-2701_daily_bin1246.fits outfile=/scratch/kocevski/549123/expmap_562291201_562550401_4FGL_J0120.4-2701_daily_bin1246.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/549123/ltcube_562291201_562550401_4FGL_J0120.4-2701_daily_bin1246.fits
.....................!
real 202.04
user 186.37
sys 15.28

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/549123/ft1_filtered_4FGL_J0120.4-2701_daily_bin1246.fits scfile=/scratch/kocevski/549123/ft2_4FGL_J0120.4-2701_daily_bin1246.fits outfile=/scratch/kocevski/549123/cmap_562291201_562550401_4FGL_J0120.4-2701_daily_bin1246.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 9.04
user 0.42
sys 8.58

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/549123/ft1_filtered_4FGL_J0120.4-2701_daily_bin1246.fits scfile=/scratch/kocevski/549123/ft2_4FGL_J0120.4-2701_daily_bin1246.fits outfile=/scratch/kocevski/549123/cmap_HighResolution_562291201_562550401_4FGL_J0120.4-2701_daily_bin1246.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 8.62
user 0.39
sys 8.19

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/549123/ft1_filtered_4FGL_J0120.4-2701_daily_bin1246.fits evtable="EVENTS" scfile=/scratch/kocevski/549123/ft2_4FGL_J0120.4-2701_daily_bin1246.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/549123/Model_4FGL_J0120.4-2701_daily_bin1246.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/549123/ft1_filtered_4FGL_J0120.4-2701_daily_bin1246.fits....................!
real 26.30
user 14.68
sys 11.54

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/549123/ft1_filtered_4FGL_J0120.4-2701_daily_bin1246.fits', '/scratch/kocevski/549123/ft2_4FGL_J0120.4-2701_daily_bin1246.fits', expMap='/scratch/kocevski/549123/expmap_562291201_562550401_4FGL_J0120.4-2701_daily_bin1246.fits', expCube='/scratch/kocevski/549123/ltcube_562291201_562550401_4FGL_J0120.4-2701_daily_bin1246.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/549123/Model_4FGL_J0120.4-2701_daily_bin1246.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/549123/ft1_filtered_4FGL_J0120.4-2701_daily_bin1246.fits
Spacecraft file(s): /scratch/kocevski/549123/ft2_4FGL_J0120.4-2701_daily_bin1246.fits
Exposure map: /scratch/kocevski/549123/expmap_562291201_562550401_4FGL_J0120.4-2701_daily_bin1246.fits
Exposure cube: /scratch/kocevski/549123/ltcube_562291201_562550401_4FGL_J0120.4-2701_daily_bin1246.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/549123/Model_4FGL_J0120.4-2701_daily_bin1246.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 279.011054743

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 276.964908059

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1312.8       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.2539       1.0000         .10000E-03   10000.    
     3 'norm      '    .10767E-01   1.0000         .10000E-03   10000.    
     4 'norm      '    1.6133       1.0000         .10000E-03   10000.    
     5 'Prefactor '    113.16       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15313E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.2175       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13969E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .23064E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11537E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.8843       1.0000         .10000E-03   10000.    
    14 'norm      '    .11382E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.1071       1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    379.63       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .16497E-02   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .36156       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.3424       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   276.9641     FROM MIGRAD    STATUS=CONVERGED    149 CALLS      500 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1312.8        1294.0        .29611E-03   -.21220E-02
   2  Prefactor     .11640E-03    7431.3        .34886E-02** at limit **
   3  norm          .10000E-03    696.75        .90768E-02** at limit **
   4  norm          1.6133        1.0586         .0000         .0000    
   5  Prefactor     113.74        1.0025        .54866E-06    .44201E-02
   6  Prefactor     .10001E-03    .26149       -.33042E-04** at limit **
   7  Prefactor     1.2175        1.1285         .0000         .0000    
   8  Prefactor     .10000E-03    .20571       -.27455E-05** at limit **
   9  norm          .10000E-03    .20571       -.77569E-05** at limit **
  10  norm          .10000E-03    .20571        .13744E-04** at limit **
  11  Prefactor     .10000E-03    .20875        .39903E-04** at limit **
  12  Prefactor     .10000E-03    .20571       -.52909E-05** at limit **
  13  norm          1.8816        1.0397       -.75346E-06    .58134E-04
  14  norm          .10000E-03    .20571        .57879E-05** at limit **
  15  Prefactor     1.1071        1.1830         .0000         .0000    
  16  norm          .10000E-03    .20571        .83533E-06** at limit **
  17  Prefactor     379.95        1.0004        .17373E-06    .21759E-02
  18  Prefactor     .10000E-03    .25995       -.37036E-04** at limit **
  19  Normalizat    .36038        .67432        .30154E-03    .12352E-04
  20  Prefactor     1.3448        1.0703       -.62876E-04    .57864E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1312.78
  Prefactor  = 0.000116402
  norm       = 0.0001
  norm       = 1.61331
  Prefactor  = 113.735
  Prefactor  = 0.000100005
  Prefactor  = 1.21749
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.88162
  norm       = 0.0001
  Prefactor  = 1.10712
  norm       = 0.0001
  Prefactor  = 379.948
  Prefactor  = 0.000100001
  Normalizat = 0.360385
  Prefactor  = 1.34478
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   276.9641     FROM HESSE     STATUS=FAILED        15 CALLS      515 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1312.8        1294.0        .29611E-03   -.82928    
   2  Prefactor     .11640E-03    7431.3        .34886E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    696.75        .90768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          575.69        573.90         .0000       -1.5454    
   5  Prefactor     113.74        1.0025        .54866E-06   -1.3571    
   6  Prefactor     .10001E-03    .26149       -.33042E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.2175        1.1285         .0000       -1.5487    
   8  Prefactor     .10000E-03    .20571       -.27455E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .20571       -.77569E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .20571        .13744E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .20875        .39903E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .20571       -.52909E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.8816        1.0397       -.75346E-06   -1.5434    
  14  norm          .10000E-03    .20571        .57879E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.1071        1.1830         .0000       -1.5498    
  16  norm          .10000E-03    .20571        .83533E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     379.95        1.0004        .17373E-06   -1.1784    
  18  Prefactor     .10000E-03    .25995       -.37036E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .36038        .67432        .30154E-03   -1.1940    
  20  Prefactor     1.3448        1.0703       -.62876E-04   -.81985    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.4913e-10
Minuit parameter uncertainties:
  1  1327.96
  2  0.625062
  3  0.000192727
  4  1.0586
  5  1.00254
  6  7.42991e-05
  7  1.12854
  8  7.1493e-06
  9  4.4319e-06
  10  3.92805e-06
  11  2.4123e-05
  12  2.51392e-06
  13  1.03968
  14  5.21773e-06
  15  1.18305
  16  5.72254e-07
  17  1.00041
  18  3.70183e-05
  19  0.690445
  20  1.08864
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 276.964093061

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  1.000e-04  3.928e-06  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.816e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
265         beta:  5.214e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
266           Eb:  1.130e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
564    Prefactor:  1.345e+00  1.089e+00  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:  3.604e-01  6.904e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 20.123 -27.023
Photon Flux Upper Limit: 1.78e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/549123/likelihoodResults_562291201_562550401_4FGL_J0120.4-2701_daily_bin1246.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) = 276.964134608
delta logL = -4.15474829083e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 276.950019666
delta logL = 0.0140733951828

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14709       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .30935       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3796       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=   276.9500     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      289 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .14661        234.18        .82991E-02    .16519E-03
   2  alpha         5.0000        3.9606        .46267    ** at limit **
   3  Normalizat    .30919        .95242        .10172        .41151E-05
   4  Prefactor     1.3793        .53463        .57849E-01    .41941E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.14661
  alpha      = 5
  Normalizat = 0.309187
  Prefactor  = 1.37931
 **********
 **   18 **HESSE 
 **********

 FCN=   276.9500     FROM HESSE     STATUS=OK            31 CALLS      320 TOTAL
                     EDM=   .63E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .14661        1.4422        .36383E-04   -1.5631    
   2  alpha         5.0000        4.9894        .55465E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .30919        .91137        .45102E-03   -1.2229    
   4  Prefactor     1.3793        1.0556        .25575E-03   -.80979    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.32606e-13
Minuit parameter uncertainties:
  1  0.91936
  2  3.11538e-06
  3  0.961691
  4  1.07284
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/549123': 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) = 276.950018892
delta logL = 0.0140741690311

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  1.466e-01  9.194e-01  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  5.000e+00  3.115e-06  0.000e+00  5.000e+00 ( 1.000e+00)
265         beta:  5.214e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
266           Eb:  1.130e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
564    Prefactor:  1.379e+00  1.073e+00  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:  3.092e-01  9.617e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 20.123 -27.023

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/549123/cmap_HighResolution_562291201_562550401_4FGL_J0120.4-2701_daily_bin1246.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.73e-03', job_status='DONE', photon_flux_upper_limit='1.78e-06', time_completed='2021-08-13 23:40:34.868179', job_id='549123', GAL2='1.38', fit_tolerance='1e-08', EG2='0.31', EG='0.36', time_epoch_completed='1628923234.87', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.34', dlogl='1.41e-02', ts2='0.03', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='1246' AND source_name='4FGL J0120.4-2701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 23:40:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0171>
Subject: Job 549123: <4FGL_J0120.4-2701_daily_bin1246> in cluster <slac> Done

Job <4FGL_J0120.4-2701_daily_bin1246> 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) <bullet0171>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 23:27:55 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:55 2021
Terminated at Fri Aug 13 23:40:36 2021
Results reported at Fri Aug 13 23:40:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0120.4-2701_daily_bin1246 20.1227 -27.0229 562291201 562550401 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 :                                   572.47 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             187.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   38 MB
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   761 sec.
    Turnaround time :                            888 sec.

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

