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


Performing analysis on: 4FGL_J0120.4-2701_daily_bin1382
RA = 20.1227, Dec = -27.0229
tmin = 597542401, tmax = 597801601
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='550091', job_status='RUN', time_executed='2021-08-13 23:33:06.369644', time_epoch_executed='1628922786.37' WHERE source_name='4FGL J0120.4-2701' and cadence='daily' and bin_id='1382'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/550091

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/550091/ft1_4FGL_J0120.4-2701_daily_bin1382.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/550091/ft2_4FGL_J0120.4-2701_daily_bin1382.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/550091/ft1_4FGL_J0120.4-2701_daily_bin1382.fits outfile=/scratch/kocevski/550091/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1382.fits ra=20.1227 dec=-27.0229 rad=12.0 tmin=597542401.0 tmax=597801601.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 9.71
user 3.33
sys 6.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/550091/ft1_filtered_4FGL_J0120.4-2701_daily_bin1382.fits" evtable="EVENTS" scfile=/scratch/kocevski/550091/ft2_4FGL_J0120.4-2701_daily_bin1382.fits sctable="SC_DATA" outfile=/scratch/kocevski/550091/ltcube_597542401_597801601_4FGL_J0120.4-2701_daily_bin1382.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/550091/ft2_4FGL_J0120.4-2701_daily_bin1382.fits
.....................!
real 19.64
user 12.82
sys 6.65

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/550091/ft1_filtered_4FGL_J0120.4-2701_daily_bin1382.fits evtable="EVENTS" scfile=/scratch/kocevski/550091/ft2_4FGL_J0120.4-2701_daily_bin1382.fits sctable="SC_DATA" expcube=/scratch/kocevski/550091/ltcube_597542401_597801601_4FGL_J0120.4-2701_daily_bin1382.fits outfile=/scratch/kocevski/550091/expmap_597542401_597801601_4FGL_J0120.4-2701_daily_bin1382.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/550091/ltcube_597542401_597801601_4FGL_J0120.4-2701_daily_bin1382.fits
.....................!
real 201.16
user 186.35
sys 13.33

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/550091/ft1_filtered_4FGL_J0120.4-2701_daily_bin1382.fits scfile=/scratch/kocevski/550091/ft2_4FGL_J0120.4-2701_daily_bin1382.fits outfile=/scratch/kocevski/550091/cmap_597542401_597801601_4FGL_J0120.4-2701_daily_bin1382.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 6.75
user 0.40
sys 6.29

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/550091/ft1_filtered_4FGL_J0120.4-2701_daily_bin1382.fits scfile=/scratch/kocevski/550091/ft2_4FGL_J0120.4-2701_daily_bin1382.fits outfile=/scratch/kocevski/550091/cmap_HighResolution_597542401_597801601_4FGL_J0120.4-2701_daily_bin1382.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 6.72
user 0.38
sys 6.30

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/550091/ft1_filtered_4FGL_J0120.4-2701_daily_bin1382.fits evtable="EVENTS" scfile=/scratch/kocevski/550091/ft2_4FGL_J0120.4-2701_daily_bin1382.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/550091/Model_4FGL_J0120.4-2701_daily_bin1382.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/550091/ft1_filtered_4FGL_J0120.4-2701_daily_bin1382.fits.....................!
real 60.86
user 51.08
sys 9.36

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    41.665       1.0000         .10000E-03   10000.    
     2 'Prefactor '    34.483       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.2589       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .60957E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.5464       1.0000         .10000E-03   10000.    
     9 'norm      '    .68799E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    1.1134       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.9024       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .92764       1.0000         .10000E-03   10000.    
    14 'norm      '    .19148E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.041       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    29.363       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.587       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .80427       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .89765       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=   6661.329     FROM MIGRAD    STATUS=CONVERGED    429 CALLS     2104 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          41.665        8.1707       -.11376E-06    .93861E-04
   2  Prefactor     34.458        81.136       -.40276E-04    .10334E-04
   3  norm          .10000E-03    15.441        .23442E-05** at limit **
   4  norm          2.2590        2.0430       -.99464E-07    .14848E-05
   5  Prefactor     .10000E-03    1.1079        .30672E-07** at limit **
   6  Prefactor     .10000E-03    10.672       -.98010E-05** at limit **
   7  Prefactor     .50228E-01    1.2424       -.10196E-05    .11389E-02
   8  Prefactor     3.5048        5.2059        .13573E-05    .30790E-03
   9  norm          .84847E-01    .99200       -.96721E-06    .13177E-02
  10  norm          1.1129        .96356       -.43202E-09    .55161E-03
  11  Prefactor     5.9022        8.1098        .14312E-06    .37478E-04
  12  Prefactor     .10000E-03    1.4255       -.22580E-07** at limit **
  13  norm          .92761        .98116       -.20398E-06   -.86139E-03
  14  norm          .10015E-03    .65234        .32135E-06** at limit **
  15  Prefactor     13.041        4.4108        .36847E-06    .20889E-03
  16  norm          .10000E-03    1.1504       -.70334E-07** at limit **
  17  Prefactor     29.361        31.564       -.39455E-05   -.85018E-05
  18  Prefactor     15.586        10.036       -.36425E-06   -.26300E-04
  19  Normalizat    .80439        .13718        .21146E-05    .50551E-03
  20  Prefactor     .89759        .15959        .29713E-06    .49067E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 41.6646
  Prefactor  = 34.4585
  norm       = 0.000100001
  norm       = 2.25897
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0502277
  Prefactor  = 3.5048
  norm       = 0.0848472
  norm       = 1.11287
  Prefactor  = 5.90222
  Prefactor  = 0.0001
  norm       = 0.927612
  norm       = 0.00010015
  Prefactor  = 13.0412
  norm       = 0.0001
  Prefactor  = 29.3608
  Prefactor  = 15.5855
  Normalizat = 0.804385
  Prefactor  = 0.897586
 **********
 **   18 **HESSE 
 **********

 FCN=   6661.329     FROM HESSE     STATUS=OK           301 CALLS     2405 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          41.665        8.1772        .62103E-04   -1.4416    
   2  Prefactor     34.458        81.630        .68242E-04   -1.4533    
   3  norm          .10000E-03    15.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.2590        2.0380        .10756E-03   -1.5407    
   5  Prefactor     .10000E-03    1.1097        .83887E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.875        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .50228E-01    34.909        .17117E-02   -1.5663    
   8  Prefactor     3.5048        8.0842        .19132E-03   -1.5334    
   9  norm          .84847E-01    13.427        .13534E-02   -1.5650    
  10  norm          1.1129        1.0849        .72169E-03   -1.5497    
  11  Prefactor     5.9022        8.0892        .16529E-03   -1.5222    
  12  Prefactor     .10000E-03    1.4528        .94945E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .92761        .94909        .79692E-03   -1.5515    
  14  norm          .10015E-03    10.557        .12529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.041        4.4086        .95131E-04   -1.4986    
  16  norm          .10000E-03    1.1880        .17066E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     29.361        31.571        .73937E-04   -1.4624    
  18  Prefactor     15.586        10.046        .10145E-03   -1.4918    
  19  Normalizat    .80439        .16096        .21462E-03   -.99906    
  20  Prefactor     .89759        .18828        .24738E-03   -.96226    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.16816e-08
Minuit parameter uncertainties:
  1  8.17742
  2  81.8963
  3  0.000303536
  4  2.03811
  5  2.43771e-06
  6  4.55743e-05
  7  2.64722
  8  8.0867
  9  2.13396
  10  1.08489
  11  8.09065
  12  1.90591e-06
  13  0.94911
  14  0.0025213
  15  4.40867
  16  8.70095e-06
  17  31.589
  18  10.0471
  19  0.161051
  20  0.188413
Done.

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

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  1.113e+00  1.085e+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:  8.976e-01  1.884e-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:  8.044e-01  1.611e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.68
Ra Dec: 20.123 -27.023
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 9.65e-09 +/- 9.40e-09
Energy Flux (Fixed Index): 9.37e-06 +/- 9.13e-06

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) = 6660.48421579
delta logL = 0.845128987459

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6660.46911528
delta logL = 0.860229494469

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .53747       1.0000         .10000E-03   10000.    
     2 'alpha     '    .91337       1.0000          .0000       5.0000    
     3 'Normalizat'    .81063       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89512       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=   6660.469     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      209 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .53749        .50809        .11423E-01   -.11410E-02
   2  alpha         .91331        .43065        .39094       -.52264E-04
   3  Normalizat    .81062        .13053        .43749E-01    .57822E-04
   4  Prefactor     .89512        .15909        .44943E-01   -.38724E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.537488
  alpha      = 0.913311
  Normalizat = 0.810624
  Prefactor  = 0.89512
 **********
 **   18 **HESSE 
 **********

 FCN=   6660.469     FROM HESSE     STATUS=OK            35 CALLS      244 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .53749        .77526        .51492E-03   -1.5561    
   2  alpha         .91331        .60728        .16702E-01   -.68759    
   3  Normalizat    .81062        .15404        .21384E-03   -.99676    
   4  Prefactor     .89512        .18777        .24767E-03   -.96312    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03933e-10
Minuit parameter uncertainties:
  1  0.775275
  2  0.617755
  3  0.154122
  4  0.187901
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/550091': 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) = 6660.46911527
delta logL = 0.860229506685

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  5.375e-01  7.753e-01  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  9.133e-01  6.178e-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:  8.951e-01  1.879e-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:  8.106e-01  1.541e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.39
Ra Dec: 20.123 -27.023
Photon Index (Free Index): 0.91 +/- 0.62
Photon Flux (Free Index): 3.59e-09 +/- 3.89e-09
Energy Flux (Free Index): 4.23e-05 +/- 5.86e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/550091/cmap_HighResolution_597542401_597801601_4FGL_J0120.4-2701_daily_bin1382.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.65e-09', energy_flux2='4.23e-05', photon_flux_error='9.40e-09', dlogl='8.60e-01', energy_flux='9.37e-06', photon_flux2='3.59e-09', job_status='DONE', time_completed='2021-08-13 23:44:26.313069', photon_index_error2='0.62', photon_index2='0.91', ts='7.68', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='5.86e-05', EG='0.80', time_epoch_completed='1628923466.31', return_code='0', job_id='550091', GAL2='0.90', EG2='0.81', return_code2='0', energy_flux_error='9.13e-06', photon_flux_error2='3.89e-09', ts2='9.39', photon_index='1.82' WHERE bin_id='1382' AND source_name='4FGL J0120.4-2701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 23:44:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0300>
Subject: Job 550091: <4FGL_J0120.4-2701_daily_bin1382> in cluster <slac> Done

Job <4FGL_J0120.4-2701_daily_bin1382> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Aug 13 23:30:22 2021
Job was executed on host(s) <bullet0300>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 23:30:29 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:29 2021
Terminated at Fri Aug 13 23:44:27 2021
Results reported at Fri Aug 13 23:44:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0120.4-2701_daily_bin1382 20.1227 -27.0229 597542401 597801601 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 :                                   758.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             302.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            845 sec.

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

