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


Performing analysis on: 4FGL_J0120.4-2701_daily_bin1054
RA = 20.1227, Dec = -27.0229
tmin = 512524801, tmax = 512784001
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='548843', job_status='RUN', time_executed='2021-08-13 23:27:42.338436', time_epoch_executed='1628922462.34' WHERE source_name='4FGL J0120.4-2701' and cadence='daily' and bin_id='1054'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/548843

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/548843/ft1_4FGL_J0120.4-2701_daily_bin1054.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/548843/ft2_4FGL_J0120.4-2701_daily_bin1054.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/548843/ft1_4FGL_J0120.4-2701_daily_bin1054.fits outfile=/scratch/kocevski/548843/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1054.fits ra=20.1227 dec=-27.0229 rad=12.0 tmin=512524801.0 tmax=512784001.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 6.35
user 3.44
sys 2.84

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/548843/ft1_filtered_4FGL_J0120.4-2701_daily_bin1054.fits" evtable="EVENTS" scfile=/scratch/kocevski/548843/ft2_4FGL_J0120.4-2701_daily_bin1054.fits sctable="SC_DATA" outfile=/scratch/kocevski/548843/ltcube_512524801_512784001_4FGL_J0120.4-2701_daily_bin1054.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/548843/ft2_4FGL_J0120.4-2701_daily_bin1054.fits
.....................!
real 15.49
user 12.12
sys 3.25

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/548843/ft1_filtered_4FGL_J0120.4-2701_daily_bin1054.fits evtable="EVENTS" scfile=/scratch/kocevski/548843/ft2_4FGL_J0120.4-2701_daily_bin1054.fits sctable="SC_DATA" expcube=/scratch/kocevski/548843/ltcube_512524801_512784001_4FGL_J0120.4-2701_daily_bin1054.fits outfile=/scratch/kocevski/548843/expmap_512524801_512784001_4FGL_J0120.4-2701_daily_bin1054.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/548843/ltcube_512524801_512784001_4FGL_J0120.4-2701_daily_bin1054.fits
.....................!
real 197.45
user 187.83
sys 8.80

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/548843/ft1_filtered_4FGL_J0120.4-2701_daily_bin1054.fits scfile=/scratch/kocevski/548843/ft2_4FGL_J0120.4-2701_daily_bin1054.fits outfile=/scratch/kocevski/548843/cmap_512524801_512784001_4FGL_J0120.4-2701_daily_bin1054.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 3.14
user 0.37
sys 2.74

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/548843/ft1_filtered_4FGL_J0120.4-2701_daily_bin1054.fits scfile=/scratch/kocevski/548843/ft2_4FGL_J0120.4-2701_daily_bin1054.fits outfile=/scratch/kocevski/548843/cmap_HighResolution_512524801_512784001_4FGL_J0120.4-2701_daily_bin1054.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 3.14
user 0.39
sys 2.70

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/548843/ft1_filtered_4FGL_J0120.4-2701_daily_bin1054.fits evtable="EVENTS" scfile=/scratch/kocevski/548843/ft2_4FGL_J0120.4-2701_daily_bin1054.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/548843/Model_4FGL_J0120.4-2701_daily_bin1054.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/548843/ft1_filtered_4FGL_J0120.4-2701_daily_bin1054.fits......................!
real 40.49
user 35.72
sys 4.66

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.656       1.0000         .10000E-03   10000.    
     2 'Prefactor '    88.349       1.0000         .10000E-03   10000.    
     3 'norm      '    21.973       1.0000         .10000E-03   10000.    
     4 'norm      '    .10637E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.9796       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.793       1.0000         .10000E-03   10000.    
     8 'Prefactor '    34.279       1.0000         .10000E-03   10000.    
     9 'norm      '    .10664E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.2682       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.0422       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10319E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.0160       1.0000         .10000E-03   10000.    
    16 'norm      '    .94233E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    103.84       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .97021       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .74764       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=   3846.403     FROM MIGRAD    STATUS=CONVERGED    434 CALLS     1814 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          20.657        9.0501       -.64003E-07    .49407E-04
   2  Prefactor     88.350        98.125       -.22459E-06    .66669E-05
   3  norm          21.973        14.341       -.36100E-08    .25700E-04
   4  norm          .10000E-03    2.9032       -.97175E-09** at limit **
   5  Prefactor     4.9796        8.9542        .77823E-07    .12347E-04
   6  Prefactor     .10000E-03    15.696       -.89737E-06** at limit **
   7  Prefactor     13.794        5.1758       -.50380E-07   -.10133E-05
   8  Prefactor     34.280        18.312       -.60828E-06    .65889E-04
   9  norm          .10000E-03    2.6256        .15248E-05** at limit **
  10  norm          .10000E-03    .67170       -.16686E-06** at limit **
  11  Prefactor     7.2712        12.756        .20888E-06    .20114E-04
  12  Prefactor     6.0539        7.9072        .95783E-06    .35355E-03
  13  norm          .10000E-03    .71414        .86672E-07** at limit **
  14  norm          .10000E-03    2.7285       -.17492E-05** at limit **
  15  Prefactor     2.0161        3.3598        .14257E-06    .28993E-04
  16  norm          .35210E-01    2.4121        .36033E-06   -.34708E-03
  17  Prefactor     103.83        76.857        .72891E-06    .47834E-04
  18  Prefactor     .10000E-03    5.7243       -.13551E-06** at limit **
  19  Normalizat    .97009        .20674        .10632E-05    .21987E-03
  20  Prefactor     .74771        .22266       -.38807E-06    .17629E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 20.6573
  Prefactor  = 88.3499
  norm       = 21.9731
  norm       = 0.0001
  Prefactor  = 4.97956
  Prefactor  = 0.0001
  Prefactor  = 13.7942
  Prefactor  = 34.2797
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.27117
  Prefactor  = 6.05395
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.01614
  norm       = 0.0352096
  Prefactor  = 103.83
  Prefactor  = 0.0001
  Normalizat = 0.970091
  Prefactor  = 0.747712
 **********
 **   18 **HESSE 
 **********

 FCN=   3846.403     FROM HESSE     STATUS=OK           295 CALLS     2109 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          20.657        9.0776        .88127E-04   -1.4799    
   2  Prefactor     88.350        98.187        .42746E-04   -1.3825    
   3  norm          21.973        14.341        .85449E-04   -1.4770    
   4  norm          .10000E-03    3.0210        .20623E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.9796        8.9783        .18022E-03   -1.5262    
   6  Prefactor     .10000E-03    15.854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.794        5.1879        .82962E-04   -1.4965    
   8  Prefactor     34.280        18.445        .68444E-04   -1.4536    
   9  norm          .10000E-03    2.5788        .96105E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .67310        .49651E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.2712        12.683        .14878E-03   -1.5169    
  12  Prefactor     6.0539        8.0478        .16334E-03   -1.5216    
  13  norm          .10000E-03    .73084        .10214E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.6514        .17484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.0161        3.3365        .14167E-03   -1.5424    
  16  norm          .35210E-01    109.63        .17376E-02   -1.5670    
  17  Prefactor     103.83        77.196        .39460E-04   -1.3666    
  18  Prefactor     .10000E-03    5.7281        .14493E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .97009        .25526        .22217E-03   -.94039    
  20  Prefactor     .74771        .26758        .28306E-03   -1.0169    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.57581e-09
Minuit parameter uncertainties:
  1  9.07822
  2  98.3684
  3  14.343
  4  3.21308e-06
  5  8.98071
  6  4.95275e-05
  7  5.18808
  8  18.4477
  9  1.21702e-05
  10  1.33233e-06
  11  12.6879
  12  8.04925
  13  1.07445e-06
  14  8.25704e-05
  15  3.33681
  16  3.93101
  17  77.2713
  18  5.35454e-06
  19  0.255579
  20  0.26804
Done.

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

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  1.000e-04  1.332e-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:  7.477e-01  2.680e-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.701e-01  2.556e-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: 3.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.25e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/548843/likelihoodResults_512524801_512784001_4FGL_J0120.4-2701_daily_bin1054.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) = 3846.4026859
delta logL = -8.34681031847e-07

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3846.40268494
delta logL = 1.24799043988e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8065       1.0000          .0000       5.0000    
     3 'Normalizat'    .97011       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74769       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3846.403     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      240 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    137.69        .49719E-03** at limit **
   2  alpha         1.6913        3.0900        .50000       -.40927E-07
   3  Normalizat    .97009        .11166        .22217E-03   -.92108E-06
   4  Prefactor     .74771        .12694        .28306E-03    .21286E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.69128
  Normalizat = 0.97009
  Prefactor  = 0.747711
 **********
 **   18 **HESSE 
 **********

 FCN=   3846.403     FROM HESSE     STATUS=OK            29 CALLS      269 TOTAL
                     EDM=   .30E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .74551        .99437E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6913        3.3339        .50000       -.32941    
   3  Normalizat    .97009        .23232        .88868E-05   -.94039    
   4  Prefactor     .74771        .26397        .11323E-04   -1.0169    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.00041e-12
Minuit parameter uncertainties:
  1  1.00155e-06
  2  77.5773
  3  0.23256
  4  0.264416
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/548843': 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) = 3846.40268416
delta logL = 9.11838014872e-07

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  1.000e-04  1.002e-06  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.691e+00  7.758e+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.477e-01  2.644e-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.701e-01  2.326e-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/548843/cmap_HighResolution_512524801_512784001_4FGL_J0120.4-2701_daily_bin1054.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.25e-05', job_status='DONE', photon_flux_upper_limit='3.35e-08', time_completed='2021-08-13 23:36:28.318333', job_id='548843', GAL2='0.75', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1628922988.32', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='9.12e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='1054' AND source_name='4FGL J0120.4-2701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 23:36:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0022>
Subject: Job 548843: <4FGL_J0120.4-2701_daily_bin1054> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0120.4-2701_daily_bin1054 20.1227 -27.0229 512524801 512784001 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 :                                   561.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             273.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   630 sec.
    Turnaround time :                            660 sec.

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

