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


Performing analysis on: 4FGL_J0120.4-2701_daily_bin1408
RA = 20.1227, Dec = -27.0229
tmin = 604281601, tmax = 604540801
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='550131', job_status='RUN', time_executed='2021-08-13 23:32:26.423178', time_epoch_executed='1628922746.42' WHERE source_name='4FGL J0120.4-2701' and cadence='daily' and bin_id='1408'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/550131

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/550131/ft1_4FGL_J0120.4-2701_daily_bin1408.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/550131/ft2_4FGL_J0120.4-2701_daily_bin1408.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/550131/ft1_4FGL_J0120.4-2701_daily_bin1408.fits outfile=/scratch/kocevski/550131/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1408.fits ra=20.1227 dec=-27.0229 rad=12.0 tmin=604281601.0 tmax=604540801.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 4.26
user 2.78
sys 1.44

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/550131/ft2_4FGL_J0120.4-2701_daily_bin1408.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/550131/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1408.fits evtable="EVENTS" outfile="/scratch/kocevski/550131/ft1_filtered_4FGL_J0120.4-2701_daily_bin1408.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 1.72
user 0.30
sys 1.38

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/550131/ft1_filtered_4FGL_J0120.4-2701_daily_bin1408.fits" evtable="EVENTS" scfile=/scratch/kocevski/550131/ft2_4FGL_J0120.4-2701_daily_bin1408.fits sctable="SC_DATA" outfile=/scratch/kocevski/550131/ltcube_604281601_604540801_4FGL_J0120.4-2701_daily_bin1408.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/550131/ft2_4FGL_J0120.4-2701_daily_bin1408.fits
.....................!
real 12.75
user 11.13
sys 1.55

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/550131/ft1_filtered_4FGL_J0120.4-2701_daily_bin1408.fits evtable="EVENTS" scfile=/scratch/kocevski/550131/ft2_4FGL_J0120.4-2701_daily_bin1408.fits sctable="SC_DATA" expcube=/scratch/kocevski/550131/ltcube_604281601_604540801_4FGL_J0120.4-2701_daily_bin1408.fits outfile=/scratch/kocevski/550131/expmap_604281601_604540801_4FGL_J0120.4-2701_daily_bin1408.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/550131/ltcube_604281601_604540801_4FGL_J0120.4-2701_daily_bin1408.fits
.....................!
real 157.65
user 151.04
sys 5.68

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/550131/ft1_filtered_4FGL_J0120.4-2701_daily_bin1408.fits scfile=/scratch/kocevski/550131/ft2_4FGL_J0120.4-2701_daily_bin1408.fits outfile=/scratch/kocevski/550131/cmap_604281601_604540801_4FGL_J0120.4-2701_daily_bin1408.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 1.72
user 0.35
sys 1.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/550131/ft1_filtered_4FGL_J0120.4-2701_daily_bin1408.fits scfile=/scratch/kocevski/550131/ft2_4FGL_J0120.4-2701_daily_bin1408.fits outfile=/scratch/kocevski/550131/cmap_HighResolution_604281601_604540801_4FGL_J0120.4-2701_daily_bin1408.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 1.75
user 0.35
sys 1.38

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/550131/ft1_filtered_4FGL_J0120.4-2701_daily_bin1408.fits evtable="EVENTS" scfile=/scratch/kocevski/550131/ft2_4FGL_J0120.4-2701_daily_bin1408.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/550131/Model_4FGL_J0120.4-2701_daily_bin1408.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/550131/ft1_filtered_4FGL_J0120.4-2701_daily_bin1408.fits.....................!
real 34.10
user 31.14
sys 2.65

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    33.636       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10835E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .49682E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.406       1.0000         .10000E-03   10000.    
     9 'norm      '    .10898E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.8147       1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.600       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10173E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.729       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    37.771       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0659       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1273       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=   3973.854     FROM MIGRAD    STATUS=CONVERGED    453 CALLS     2128 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          33.636        12.151        .20383E-06    .99942E-04
   2  Prefactor     .10000E-03    65.042       -.27379E-06** at limit **
   3  norm          .10000E-03    9.1031       -.15076E-06** at limit **
   4  norm          .10000E-03    2.4764        .11443E-06** at limit **
   5  Prefactor     .10000E-03    14.609        .27249E-06** at limit **
   6  Prefactor     .10000E-03    14.297       -.34780E-06** at limit **
   7  Prefactor     .10012E-03    3.1428       -.21232E-06** at limit **
   8  Prefactor     20.381        16.295        .18393E-06    .19112E-03
   9  norm          .10000E-03    3.5673       -.10554E-05** at limit **
  10  norm          1.8139        2.7980        .18152E-06    .18687E-04
  11  Prefactor     22.604        22.900       -.39428E-06   -.54367E-06
  12  Prefactor     .10000E-03    3.4842        .54993E-07** at limit **
  13  norm          .10000E-03    .80319       -.18270E-07** at limit **
  14  norm          .10000E-03    1.2613       -.40092E-07** at limit **
  15  Prefactor     10.728        7.7059        .66867E-06   -.29486E-03
  16  norm          .10000E-03    1.1851        .19031E-07** at limit **
  17  Prefactor     37.786        39.829        .33617E-05    .14180E-03
  18  Prefactor     .10000E-03    10.058        .14451E-06** at limit **
  19  Normalizat    1.0661        .22856       -.16977E-06    .15383E-03
  20  Prefactor     1.1270        .25560        .37183E-06    .12522E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 33.6362
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100115
  Prefactor  = 20.3811
  norm       = 0.000100002
  norm       = 1.81393
  Prefactor  = 22.6041
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10.728
  norm       = 0.0001
  Prefactor  = 37.7865
  Prefactor  = 0.0001
  Normalizat = 1.06608
  Prefactor  = 1.12703
 **********
 **   18 **HESSE 
 **********

 FCN=   3973.854     FROM HESSE     STATUS=OK           297 CALLS     2425 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          33.636        12.162        .69094E-04   -1.4547    
   2  Prefactor     .10000E-03    65.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    9.1345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    5.0171        .19249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.984        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10012E-03    7.0746        .37099E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.381        15.990        .88666E-04   -1.4805    
   9  norm          .10000E-03    5.4604        .20299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.8139        2.7688        .12168E-03   -1.5439    
  11  Prefactor     22.604        22.902        .84256E-04   -1.4757    
  12  Prefactor     .10000E-03    3.5120        .11484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.6273        .10992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.2875        .69085E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.728        8.0132        .61159E-03   -1.5053    
  16  norm          .10000E-03    1.1908        .67000E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     37.786        41.560        .32607E-03   -1.4478    
  18  Prefactor     .10000E-03    10.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0661        .27251        .24823E-03   -.90848    
  20  Prefactor     1.1270        .30379        .27708E-03   -.88607    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.86886e-10
Minuit parameter uncertainties:
  1  12.1627
  2  4.19846e-05
  3  9.09641e-06
  4  3.1315e-05
  5  2.69765e-05
  6  2.22941e-05
  7  0.0018051
  8  15.993
  9  0.00023213
  10  2.76899
  11  22.9104
  12  1.03751e-05
  13  1.97932e-06
  14  8.45769e-07
  15  8.01401
  16  6.4476e-07
  17  41.5917
  18  6.84789e-06
  19  0.272864
  20  0.304262
Done.

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

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  1.814e+00  2.769e+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:  1.127e+00  3.043e-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.066e+00  2.729e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/550131/likelihoodResults_604281601_604540801_4FGL_J0120.4-2701_daily_bin1408.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) = 3973.62810356
delta logL = 0.226019305132

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3973.62207506
delta logL = 0.232047802205

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5731       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4643       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0473       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1370       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=   3973.622     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      247 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5708        2.5395        .89346E-04   -.14989E-03
   2  alpha         2.4646        1.0634        .15700E-01   -.78442E-05
   3  Normalizat    1.0473        .26759        .25006E-03   -.62694E-04
   4  Prefactor     1.1371        .30476        .27585E-03   -.82735E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.57078
  alpha      = 2.46458
  Normalizat = 1.04734
  Prefactor  = 1.13715
 **********
 **   18 **HESSE 
 **********

 FCN=   3973.622     FROM HESSE     STATUS=OK            25 CALLS      272 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5708        2.3766        .35738E-05   -1.5457    
   2  alpha         2.4646        .99843        .62802E-03   -.14169E-01
   3  Normalizat    1.0473        .26746        .10003E-04   -.91461    
   4  Prefactor     1.1371        .30473        .11034E-04   -.88288    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.92962e-11
Minuit parameter uncertainties:
  1  2.37679
  2  1.02709
  3  0.267802
  4  0.3052
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/550131': 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) = 3973.62207379
delta logL = 0.232049078094

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  1.571e+00  2.377e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.465e+00  1.027e+00  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.137e+00  3.052e-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.047e+00  2.678e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.10
Ra Dec: 20.123 -27.023
Photon Index (Free Index): 2.46 +/- 1.03
Photon Flux (Free Index): 3.54e-08 +/- 4.93e-08
Energy Flux (Free Index): 1.11e-05 +/- 1.35e-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/550131/cmap_HighResolution_604281601_604540801_4FGL_J0120.4-2701_daily_bin1408.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.56e-05', comment='SUCCESS', energy_flux2='1.11e-05', dlogl='2.32e-01', photon_flux2='3.54e-08', job_status='DONE', time_completed='2021-08-13 23:39:44.891479', photon_index_error2='1.03', photon_index2='2.46', ts='0.64', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='7.79e-08', energy_flux_error2='1.35e-05', EG='1.07', time_epoch_completed='1628923184.89', return_code='0', job_id='550131', GAL2='1.14', EG2='1.05', return_code2='0', photon_flux_error2='4.93e-08', ts2='1.10', photon_index='1.82' WHERE bin_id='1408' AND source_name='4FGL J0120.4-2701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 23:39:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0135>
Subject: Job 550131: <4FGL_J0120.4-2701_daily_bin1408> in cluster <slac> Done

Job <4FGL_J0120.4-2701_daily_bin1408> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Aug 13 23:30:25 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 23:30:49 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:30:49 2021
Terminated at Fri Aug 13 23:39:45 2021
Results reported at Fri Aug 13 23:39:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0120.4-2701_daily_bin1408 20.1227 -27.0229 604281601 604540801 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 :                                   447.02 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             253.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   536 sec.
    Turnaround time :                            560 sec.

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

