/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 126 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7453
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0120.4-2701_daily_bin1349
RA = 20.1227, Dec = -27.0229
tmin = 588988801, tmax = 589248001
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='549243', job_status='RUN', time_executed='2021-08-13 23:32:42.045728', time_epoch_executed='1628922762.05' WHERE source_name='4FGL J0120.4-2701' and cadence='daily' and bin_id='1349'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/549243

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/549243/ft1_4FGL_J0120.4-2701_daily_bin1349.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/549243/ft2_4FGL_J0120.4-2701_daily_bin1349.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/549243/ft1_4FGL_J0120.4-2701_daily_bin1349.fits outfile=/scratch/kocevski/549243/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1349.fits ra=20.1227 dec=-27.0229 rad=12.0 tmin=588988801.0 tmax=589248001.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.18
user 2.90
sys 5.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/549243/ft1_filtered_4FGL_J0120.4-2701_daily_bin1349.fits" evtable="EVENTS" scfile=/scratch/kocevski/549243/ft2_4FGL_J0120.4-2701_daily_bin1349.fits sctable="SC_DATA" outfile=/scratch/kocevski/549243/ltcube_588988801_589248001_4FGL_J0120.4-2701_daily_bin1349.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/549243/ft2_4FGL_J0120.4-2701_daily_bin1349.fits
.....................!
real 20.88
user 14.36
sys 6.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/549243/ft1_filtered_4FGL_J0120.4-2701_daily_bin1349.fits evtable="EVENTS" scfile=/scratch/kocevski/549243/ft2_4FGL_J0120.4-2701_daily_bin1349.fits sctable="SC_DATA" expcube=/scratch/kocevski/549243/ltcube_588988801_589248001_4FGL_J0120.4-2701_daily_bin1349.fits outfile=/scratch/kocevski/549243/expmap_588988801_589248001_4FGL_J0120.4-2701_daily_bin1349.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/549243/ltcube_588988801_589248001_4FGL_J0120.4-2701_daily_bin1349.fits
.....................!
real 197.50
user 186.22
sys 10.91

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/549243/ft1_filtered_4FGL_J0120.4-2701_daily_bin1349.fits scfile=/scratch/kocevski/549243/ft2_4FGL_J0120.4-2701_daily_bin1349.fits outfile=/scratch/kocevski/549243/cmap_588988801_589248001_4FGL_J0120.4-2701_daily_bin1349.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=20.1227 yref=-27.0229 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 5.95
user 0.38
sys 5.53

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/549243/ft1_filtered_4FGL_J0120.4-2701_daily_bin1349.fits scfile=/scratch/kocevski/549243/ft2_4FGL_J0120.4-2701_daily_bin1349.fits outfile=/scratch/kocevski/549243/cmap_HighResolution_588988801_589248001_4FGL_J0120.4-2701_daily_bin1349.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.54
user 0.38
sys 5.11

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/549243/ft1_filtered_4FGL_J0120.4-2701_daily_bin1349.fits evtable="EVENTS" scfile=/scratch/kocevski/549243/ft2_4FGL_J0120.4-2701_daily_bin1349.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/549243/Model_4FGL_J0120.4-2701_daily_bin1349.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/549243/ft1_filtered_4FGL_J0120.4-2701_daily_bin1349.fits.....................!
real 35.97
user 27.53
sys 8.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    37.399       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .56650E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.677       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.1969       1.0000         .10000E-03   10000.    
    10 'norm      '    .21432E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.9403       1.0000         .10000E-03   10000.    
    13 'norm      '    .10678E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .89268       1.0000         .10000E-03   10000.    
    16 'norm      '    .10173E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.6299       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0223       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .97307       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=   2594.869     FROM MIGRAD    STATUS=CONVERGED    441 CALLS     2073 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          37.388        24.806        .68721E-05   -.14545E-04
   2  Prefactor     .10000E-03    296.94        .17723E-04** at limit **
   3  norm          .10000E-03    9.6657       -.98999E-06** at limit **
   4  norm          .10000E-03    2.1167        .13131E-06** at limit **
   5  Prefactor     .10000E-03    6.7224       -.60017E-06** at limit **
   6  Prefactor     .10000E-03    15.294       -.10352E-04** at limit **
   7  Prefactor     23.678        9.9282        .12186E-05   -.10823E-03
   8  Prefactor     .10000E-03    30.118        .19385E-05** at limit **
   9  norm          6.1954        4.7635        .55208E-06   -.27265E-03
  10  norm          .10022E-03    2.2139        .69542E-06** at limit **
  11  Prefactor     .10000E-03    8.3004        .10405E-05** at limit **
  12  Prefactor     7.9409        7.1420       -.11715E-06   -.19382E-03
  13  norm          .10000E-03    1.9711        .86957E-06** at limit **
  14  norm          .10000E-03    2.5037        .41084E-08** at limit **
  15  Prefactor     .89219        7.7763        .36522E-05   -.46742E-03
  16  norm          .10000E-03    2.5160       -.12916E-07** at limit **
  17  Prefactor     9.6947        75.885        .96704E-04   -.21979E-04
  18  Prefactor     .10000E-03    14.648        .10524E-04** at limit **
  19  Normalizat    1.0220        .26467       -.30005E-05   -.40701E-03
  20  Prefactor     .97342        .29858       -.89056E-05   -.25902E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 37.3883
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.6778
  Prefactor  = 0.0001
  norm       = 6.19543
  norm       = 0.000100219
  Prefactor  = 0.0001
  Prefactor  = 7.94091
  norm       = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.892193
  norm       = 0.0001
  Prefactor  = 9.69472
  Prefactor  = 0.000100001
  Normalizat = 1.02202
  Prefactor  = 0.973421
 **********
 **   18 **HESSE 
 **********

 FCN=   2594.869     FROM HESSE     STATUS=OK           297 CALLS     2370 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          37.388        24.802        .65537E-04   -1.4484    
   2  Prefactor     .10000E-03    297.59        .21094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    9.6663        .15470E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.1184        .72383E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.7347        .12898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     23.678        9.9398        .82320E-04   -1.4734    
   8  Prefactor     .10000E-03    30.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.1954        4.7470        .89429E-04   -1.5210    
  10  norm          .10022E-03    4.8688        .27087E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.3063        .14334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.9409        7.1486        .11834E-03   -1.5144    
  13  norm          .10000E-03    3.1077        .13693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.5993        .15707E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .89219        7.8324        .26463E-03   -1.5519    
  16  norm          .10000E-03    4.5303        .15597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.6947        75.393        .12914E-03   -1.5085    
  18  Prefactor     .10000E-03    14.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0220        .30773        .23523E-03   -.92296    
  20  Prefactor     .97342        .34897        .27616E-03   -.93621    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65071e-09
Minuit parameter uncertainties:
  1  24.8089
  2  0.000444673
  3  3.00697e-06
  4  2.89912e-06
  5  1.40468e-05
  6  5.01285e-05
  7  9.94047
  8  0.000121846
  9  4.74732
  10  0.00206718
  11  1.45851e-05
  12  7.14939
  13  0.000159445
  14  9.14271e-06
  15  5.28761
  16  3.46816e-05
  17  54.1653
  18  0.000257936
  19  0.308263
  20  0.349781
Done.

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

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  1.002e-04  2.067e-03  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.734e-01  3.498e-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.022e+00  3.083e-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: 7.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.38e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/549243/likelihoodResults_588988801_589248001_4FGL_J0120.4-2701_daily_bin1349.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): 102
logL (Free Index) = 2594.86863045
delta logL = -1.47005121107e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2594.86859631
delta logL = 1.94421891138e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .63400E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9689       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0221       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97330       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=   2594.869     FROM MIGRAD    STATUS=CONVERGED     74 CALLS      279 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .22638E-01    25.398        .50297E-01    .25172E-05
   2  alpha         1.9477        3.3585        .42391       -.41717E-05
   3  Normalizat    1.0222        .22885E-01    .43062E-01   -.27607E-05
   4  Prefactor     .97301        .26440E-01    .45933E-01    .85379E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0226381
  alpha      = 1.94766
  Normalizat = 1.02216
  Prefactor  = 0.973012
 **********
 **   18 **HESSE 
 **********

 FCN=   2594.869     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      314 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .22638E-01    8028.2        .14163E-02   -1.5678    
   2  alpha         1.9477        3.9915        .16657       -.22277    
   3  Normalizat    1.0222        .99368E-01    .23522E-03   -.92292    
   4  Prefactor     .97301        .14636        .27622E-03   -.93635    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.53886e-10
Minuit parameter uncertainties:
  1  26.8232
  2  103.441
  3  0.0993863
  4  0.146419
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/549243': 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): 102
logL (Free Index) = 2594.86857421
delta logL = 4.15419071942e-05

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  2.264e-02  2.682e+01  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.948e+00  1.034e+02  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.730e-01  1.464e-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.022e+00  9.939e-02  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/549243/cmap_HighResolution_588988801_589248001_4FGL_J0120.4-2701_daily_bin1349.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.38e-05', job_status='DONE', photon_flux_upper_limit='7.60e-08', time_completed='2021-08-13 23:41:24.851269', job_id='549243', GAL2='0.97', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1628923284.85', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='4.15e-05', ts2='0.00', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='1349' AND source_name='4FGL J0120.4-2701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 23:41:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 549243: <4FGL_J0120.4-2701_daily_bin1349> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0120.4-2701_daily_bin1349 20.1227 -27.0229 588988801 589248001 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 :                                   599.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             236.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   751 sec.
    Turnaround time :                            929 sec.

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

