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


Performing analysis on: 4FGL_J0120.4-2701_daily_bin468
RA = 20.1227, Dec = -27.0229
tmin = 360633601, tmax = 360892801
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='545926', job_status='RUN', time_executed='2021-08-13 23:21:35.242889', time_epoch_executed='1628922095.24' WHERE source_name='4FGL J0120.4-2701' and cadence='daily' and bin_id='468'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/545926

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/545926/ft1_4FGL_J0120.4-2701_daily_bin468.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/545926/ft2_4FGL_J0120.4-2701_daily_bin468.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/545926/ft1_4FGL_J0120.4-2701_daily_bin468.fits outfile=/scratch/kocevski/545926/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin468.fits ra=20.1227 dec=-27.0229 rad=12.0 tmin=360633601.0 tmax=360892801.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.18
user 3.09
sys 0.92

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/545926/ft2_4FGL_J0120.4-2701_daily_bin468.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/545926/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin468.fits evtable="EVENTS" outfile="/scratch/kocevski/545926/ft1_filtered_4FGL_J0120.4-2701_daily_bin468.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.29
user 0.32
sys 0.85

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/545926/ft1_filtered_4FGL_J0120.4-2701_daily_bin468.fits" evtable="EVENTS" scfile=/scratch/kocevski/545926/ft2_4FGL_J0120.4-2701_daily_bin468.fits sctable="SC_DATA" outfile=/scratch/kocevski/545926/ltcube_360633601_360892801_4FGL_J0120.4-2701_daily_bin468.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/545926/ft2_4FGL_J0120.4-2701_daily_bin468.fits
.....................!
real 13.66
user 12.37
sys 1.12

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/545926/ft1_filtered_4FGL_J0120.4-2701_daily_bin468.fits evtable="EVENTS" scfile=/scratch/kocevski/545926/ft2_4FGL_J0120.4-2701_daily_bin468.fits sctable="SC_DATA" expcube=/scratch/kocevski/545926/ltcube_360633601_360892801_4FGL_J0120.4-2701_daily_bin468.fits outfile=/scratch/kocevski/545926/expmap_360633601_360892801_4FGL_J0120.4-2701_daily_bin468.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/545926/ltcube_360633601_360892801_4FGL_J0120.4-2701_daily_bin468.fits
.....................!
real 194.53
user 185.41
sys 6.55

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/545926/ft1_filtered_4FGL_J0120.4-2701_daily_bin468.fits scfile=/scratch/kocevski/545926/ft2_4FGL_J0120.4-2701_daily_bin468.fits outfile=/scratch/kocevski/545926/cmap_360633601_360892801_4FGL_J0120.4-2701_daily_bin468.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.24
user 0.39
sys 0.84

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/545926/ft1_filtered_4FGL_J0120.4-2701_daily_bin468.fits scfile=/scratch/kocevski/545926/ft2_4FGL_J0120.4-2701_daily_bin468.fits outfile=/scratch/kocevski/545926/cmap_HighResolution_360633601_360892801_4FGL_J0120.4-2701_daily_bin468.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.28
user 0.39
sys 0.86

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/545926/ft1_filtered_4FGL_J0120.4-2701_daily_bin468.fits evtable="EVENTS" scfile=/scratch/kocevski/545926/ft2_4FGL_J0120.4-2701_daily_bin468.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/545926/Model_4FGL_J0120.4-2701_daily_bin468.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/545926/ft1_filtered_4FGL_J0120.4-2701_daily_bin468.fits.....................!
real 48.81
user 45.97
sys 2.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.8643       1.0000         .10000E-03   10000.    
     2 'Prefactor '    32.501       1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.8076       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .74497       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.6056       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.680       1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.187       1.0000         .10000E-03   10000.    
     9 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.3088       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.448       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.2288       1.0000         .10000E-03   10000.    
    13 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.9324       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .15752E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.4540       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10119E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    29.622       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .74947       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1557       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=   5670.019     FROM MIGRAD    STATUS=CONVERGED    742 CALLS     2477 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.8641        5.3291        .12969E-03    .29016E-04
   2  Prefactor     32.498        51.643        .70286E-04    .28080E-04
   3  norm          .10000E-03    3.9487        .14609E-02** at limit **
   4  norm          2.8076        2.3961        .10464E-03   -.28792E-04
   5  Prefactor     .74396        7.8456        .37971E-03    .52217E-04
   6  Prefactor     3.6106        13.253        .21279E-03    .40444E-04
   7  Prefactor     14.680        4.8004        .89734E-04    .24958E-04
   8  Prefactor     15.210        9.3867        .10277E-03   -.10066E-04
   9  norm          .10000E-03    4.6039        .15468E-02** at limit **
  10  norm          4.3086        2.4991        .86658E-04    .21192E-03
  11  Prefactor     10.448        10.167        .12396E-03    .15866E-04
  12  Prefactor     4.2295        4.4273        .14984E-03    .56904E-05
  13  norm          .10000E-03    1.3907        .12586E-02** at limit **
  14  norm          5.9321        2.6353        .76571E-04   -.31313E-03
  15  Prefactor     .10000E-03    6.1322        .24248E-02** at limit **
  16  norm          3.4535        3.3015        .12520E-03   -.12204E-03
  17  Prefactor     .10000E-03    427.68        .98532E-02** at limit **
  18  Prefactor     29.617        15.860        .73614E-04    .47103E-04
  19  Normalizat    .74949        .20527        .25397E-03    .55462E-04
  20  Prefactor     1.1557        .23730        .25150E-03    .33134E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.86413
  Prefactor  = 32.4983
  norm       = 0.0001
  norm       = 2.80756
  Prefactor  = 0.743962
  Prefactor  = 3.61058
  Prefactor  = 14.6804
  Prefactor  = 15.2099
  norm       = 0.0001
  norm       = 4.30857
  Prefactor  = 10.4478
  Prefactor  = 4.22953
  norm       = 0.0001
  norm       = 5.93212
  Prefactor  = 0.0001
  norm       = 3.45348
  Prefactor  = 0.000100002
  Prefactor  = 29.6174
  Normalizat = 0.749495
  Prefactor  = 1.15566
 **********
 **   18 **HESSE 
 **********

 FCN=   5670.019     FROM HESSE     STATUS=OK           273 CALLS     2750 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.8641        5.3289        .51875E-05   -1.5112    
   2  Prefactor     32.498        51.643        .14057E-04   -1.4567    
   3  norm          .10000E-03    3.9488        .29217E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.8076        2.3961        .41855E-05   -1.5373    
   5  Prefactor     .74396        7.8228        .15188E-04   -1.5535    
   6  Prefactor     3.6106        13.235        .85117E-05   -1.5328    
   7  Prefactor     14.680        4.8003        .35894E-05   -1.4941    
   8  Prefactor     15.210        9.3640        .41110E-05   -1.4928    
   9  norm          .10000E-03    4.6070        .30936E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.3086        2.4989        .17332E-04   -1.5293    
  11  Prefactor     10.448        10.167        .49584E-05   -1.5061    
  12  Prefactor     4.2295        4.4268        .59937E-05   -1.5297    
  13  norm          .10000E-03    1.3946        .25172E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.9321        2.6350        .30628E-05   -1.5221    
  15  Prefactor     .10000E-03    6.1646        .48497E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.4535        3.3012        .50082E-05   -1.5336    
  17  Prefactor     .10000E-03    444.96        .39413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     29.617        15.852        .29446E-05   -1.4619    
  19  Normalizat    .74949        .20546        .10159E-04   -1.0197    
  20  Prefactor     1.1557        .23756        .10060E-04   -.87707    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35164e-10
Minuit parameter uncertainties:
  1  5.32922
  2  51.7138
  3  1.35187e-06
  4  2.39613
  5  4.82538
  6  13.2458
  7  4.80039
  8  9.36486
  9  8.26765e-05
  10  2.49894
  11  10.1685
  12  4.42717
  13  3.86675e-05
  14  2.63508
  15  4.78943e-05
  16  3.30141
  17  0.0016533
  18  15.8543
  19  0.205675
  20  0.237774
Done.

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

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  4.309e+00  2.499e+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.156e+00  2.378e-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:  7.495e-01  2.057e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.14
Ra Dec: 20.123 -27.023
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 3.74e-08 +/- 2.17e-08
Energy Flux (Fixed Index): 3.63e-05 +/- 2.10e-05

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) = 5669.86767719
delta logL = 0.151750096023

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5669.85621565
delta logL = 0.163211636417

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9446       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5511       1.0000          .0000       5.0000    
     3 'Normalizat'    .75747       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1544       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=   5669.856     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      205 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9454        2.4808        .50777E-02    .13316E-04
   2  alpha         1.5514        .38727        .29983       -.28345E-04
   3  Normalizat    .75745        .16416        .43053E-01    .20200E-04
   4  Prefactor     1.1544        .19822        .56935E-01    .56482E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.94536
  alpha      = 1.55139
  Normalizat = 0.757451
  Prefactor  = 1.15441
 **********
 **   18 **HESSE 
 **********

 FCN=   5669.856     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .30E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9454        2.6746        .88486E-04   -1.5311    
   2  alpha         1.5514        .46375        .11869E-01   -.38920    
   3  Normalizat    .75745        .19472        .25286E-03   -1.0167    
   4  Prefactor     1.1544        .23556        .25176E-03   -.87746    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03061e-12
Minuit parameter uncertainties:
  1  2.67467
  2  0.466912
  3  0.194899
  4  0.235773
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/545926': 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) = 5669.8562154
delta logL = 0.163211886836

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  3.945e+00  2.675e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.551e+00  4.669e-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:  1.154e+00  2.358e-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:  7.575e-01  1.949e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.46
Ra Dec: 20.123 -27.023
Photon Index (Free Index): 1.55 +/- 0.47
Photon Flux (Free Index): 2.63e-08 +/- 2.37e-08
Energy Flux (Free Index): 5.22e-05 +/- 4.78e-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/545926/cmap_HighResolution_360633601_360892801_4FGL_J0120.4-2701_daily_bin468.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.74e-08', energy_flux2='5.22e-05', photon_flux_error='2.17e-08', dlogl='1.63e-01', energy_flux='3.63e-05', photon_flux2='2.63e-08', job_status='DONE', time_completed='2021-08-13 23:31:02.674596', photon_index_error2='0.47', photon_index2='1.55', ts='13.14', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='4.78e-05', EG='0.75', time_epoch_completed='1628922662.67', return_code='0', job_id='545926', GAL2='1.15', EG2='0.76', return_code2='0', energy_flux_error='2.10e-05', photon_flux_error2='2.37e-08', ts2='13.46', photon_index='1.82' WHERE bin_id='468' AND source_name='4FGL J0120.4-2701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 23:31:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 545926: <4FGL_J0120.4-2701_daily_bin468> in cluster <slac> Done

Job <4FGL_J0120.4-2701_daily_bin468> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Fri Aug 13 23:15:38 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 23:19:08 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:19:08 2021
Terminated at Fri Aug 13 23:31:03 2021
Results reported at Fri Aug 13 23:31:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0120.4-2701_daily_bin468 20.1227 -27.0229 360633601 360892801 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 :                                   571.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             232.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   715 sec.
    Turnaround time :                            925 sec.

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

