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


Performing analysis on: 4FGL_J0120.4-2701_daily_bin1320
RA = 20.1227, Dec = -27.0229
tmin = 581472001, tmax = 581731201
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='549213', job_status='RUN', time_executed='2021-08-13 23:29:13.965741', time_epoch_executed='1628922553.97' WHERE source_name='4FGL J0120.4-2701' and cadence='daily' and bin_id='1320'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/549213

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/549213/ft1_4FGL_J0120.4-2701_daily_bin1320.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/549213/ft2_4FGL_J0120.4-2701_daily_bin1320.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/549213/ft1_4FGL_J0120.4-2701_daily_bin1320.fits outfile=/scratch/kocevski/549213/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1320.fits ra=20.1227 dec=-27.0229 rad=12.0 tmin=581472001.0 tmax=581731201.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 2.77
user 2.10
sys 0.64

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/549213/ft2_4FGL_J0120.4-2701_daily_bin1320.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/549213/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1320.fits evtable="EVENTS" outfile="/scratch/kocevski/549213/ft1_filtered_4FGL_J0120.4-2701_daily_bin1320.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 0.88
user 0.28
sys 0.58

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/549213/ft1_filtered_4FGL_J0120.4-2701_daily_bin1320.fits" evtable="EVENTS" scfile=/scratch/kocevski/549213/ft2_4FGL_J0120.4-2701_daily_bin1320.fits sctable="SC_DATA" outfile=/scratch/kocevski/549213/ltcube_581472001_581731201_4FGL_J0120.4-2701_daily_bin1320.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/549213/ft2_4FGL_J0120.4-2701_daily_bin1320.fits
.....................!
real 11.32
user 10.51
sys 0.78

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/549213/ft1_filtered_4FGL_J0120.4-2701_daily_bin1320.fits evtable="EVENTS" scfile=/scratch/kocevski/549213/ft2_4FGL_J0120.4-2701_daily_bin1320.fits sctable="SC_DATA" expcube=/scratch/kocevski/549213/ltcube_581472001_581731201_4FGL_J0120.4-2701_daily_bin1320.fits outfile=/scratch/kocevski/549213/expmap_581472001_581731201_4FGL_J0120.4-2701_daily_bin1320.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/549213/ltcube_581472001_581731201_4FGL_J0120.4-2701_daily_bin1320.fits
.....................!
real 157.29
user 152.87
sys 4.11

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/549213/ft1_filtered_4FGL_J0120.4-2701_daily_bin1320.fits scfile=/scratch/kocevski/549213/ft2_4FGL_J0120.4-2701_daily_bin1320.fits outfile=/scratch/kocevski/549213/cmap_581472001_581731201_4FGL_J0120.4-2701_daily_bin1320.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 0.94
user 0.33
sys 0.57

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/549213/ft1_filtered_4FGL_J0120.4-2701_daily_bin1320.fits scfile=/scratch/kocevski/549213/ft2_4FGL_J0120.4-2701_daily_bin1320.fits outfile=/scratch/kocevski/549213/cmap_HighResolution_581472001_581731201_4FGL_J0120.4-2701_daily_bin1320.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 0.90
user 0.33
sys 0.56

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/549213/ft1_filtered_4FGL_J0120.4-2701_daily_bin1320.fits evtable="EVENTS" scfile=/scratch/kocevski/549213/ft2_4FGL_J0120.4-2701_daily_bin1320.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/549213/Model_4FGL_J0120.4-2701_daily_bin1320.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/549213/ft1_filtered_4FGL_J0120.4-2701_daily_bin1320.fits.....................!
real 38.38
user 36.73
sys 1.57

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.675       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .59260E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.1067       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.2724       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .55493E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    2.5619       1.0000         .10000E-03   10000.    
    10 'norm      '    4.4625       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .43573       1.0000         .10000E-03   10000.    
    16 'norm      '    .44292       1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.239       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.7007       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0081       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1403       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=   5552.648     FROM MIGRAD    STATUS=CONVERGED    453 CALLS     2145 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.674        7.9718       -.12104E-05   -.81210E-03
   2  Prefactor     .10001E-03    97.170       -.94382E-05** at limit **
   3  norm          .10000E-03    6.3870        .15441E-06** at limit **
   4  norm          3.1064        2.1331        .20164E-06   -.18599E-02
   5  Prefactor     .10000E-03    2.3585        .19064E-07** at limit **
   6  Prefactor     .10000E-03    4.2438        .70729E-08** at limit **
   7  Prefactor     1.2722        3.0254       -.58586E-08   -.30075E-03
   8  Prefactor     .10046E-03    8.8216        .13319E-05** at limit **
   9  norm          2.5650        2.4621       -.11343E-06   -.96392E-03
  10  norm          4.4625        2.5551       -.12800E-07   -.10812E-03
  11  Prefactor     .10000E-03    11.578       -.16089E-09** at limit **
  12  Prefactor     .10000E-03    3.2545       -.10430E-06** at limit **
  13  norm          .10000E-03    .53609        .48149E-08** at limit **
  14  norm          .10000E-03    .69241       -.10242E-08** at limit **
  15  Prefactor     .43563        2.6808        .93705E-06   -.74078E-03
  16  norm          .43392        2.0053        .21335E-06   -.31129E-03
  17  Prefactor     15.236        25.664       -.10824E-05   -.58618E-04
  18  Prefactor     7.6990        13.504        .39299E-06   -.35751E-03
  19  Normalizat    1.0082        .17576       -.32392E-06   -.35444E-03
  20  Prefactor     1.1402        .19836        .23015E-06   -.26722E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 18.674
  Prefactor  = 0.00010001
  norm       = 0.000100001
  norm       = 3.10639
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.27215
  Prefactor  = 0.000100458
  norm       = 2.56498
  norm       = 4.46247
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.435628
  norm       = 0.433921
  Prefactor  = 15.2357
  Prefactor  = 7.69903
  Normalizat = 1.00821
  Prefactor  = 1.14019
 **********
 **   18 **HESSE 
 **********

 FCN=   5552.648     FROM HESSE     STATUS=OK           301 CALLS     2446 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.674        8.1391        .92681E-04   -1.4843    
   2  Prefactor     .10001E-03    98.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    59.628        .36640E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.1064        3.0663        .62547E-03   -1.5355    
   5  Prefactor     .10000E-03    2.3663        .11174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.2512        .14991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.2722        3.0272        .19193E-03   -1.5482    
   8  Prefactor     .10046E-03    102.11        .36015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.5650        2.2004        .97358E-04   -1.5388    
  10  norm          4.4625        2.5538        .87194E-04   -1.5285    
  11  Prefactor     .10000E-03    11.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.9173        .24794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .55771        .10648E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .69865        .60493E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .43563        10.950        .21748E-02   -1.5576    
  16  norm          .43392        6.9028        .19236E-02   -1.5576    
  17  Prefactor     15.236        25.665        .10260E-03   -1.4927    
  18  Prefactor     7.6990        14.975        .72253E-03   -1.5153    
  19  Normalizat    1.0082        .20827        .22878E-03   -.92756    
  20  Prefactor     1.1402        .23787        .25955E-03   -.88192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.28781e-09
Minuit parameter uncertainties:
  1  8.13956
  2  0.00203401
  3  0.000460351
  4  3.06644
  5  1.20348e-06
  6  3.14323e-07
  7  3.02756
  8  0.0136992
  9  2.20042
  10  2.55382
  11  2.16997e-06
  12  3.96433e-05
  13  2.44387e-07
  14  3.27833e-07
  15  4.36854
  16  3.46145
  17  25.6831
  18  14.9825
  19  0.208438
  20  0.238094
Done.

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

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  4.462e+00  2.554e+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.140e+00  2.381e-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.008e+00  2.084e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.54
Ra Dec: 20.123 -27.023
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 3.87e-08 +/- 2.21e-08
Energy Flux (Fixed Index): 3.76e-05 +/- 2.15e-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) = 5552.57359852
delta logL = 0.0745439831435

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5552.57146056
delta logL = 0.0766819397058

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3560       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0043       1.0000          .0000       5.0000    
     3 'Normalizat'    .99811       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1456       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=   5552.571     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      204 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3560        55.915        .48248E-02    .35801E-03
   2  alpha         2.0043        3.2412        .30537        .22033E-04
   3  Normalizat    .99810        .13280        .46143E-01    .80968E-05
   4  Prefactor     1.1456        .98754E-01    .58563E-01    .65812E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.35598
  alpha      = 2.00431
  Normalizat = 0.998105
  Prefactor  = 1.14559
 **********
 **   18 **HESSE 
 **********

 FCN=   5552.571     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3560        2.5181        .82783E-04   -1.5291    
   2  alpha         2.0043        .48668        .11103E-01   -.19960    
   3  Normalizat    .99810        .19713        .22977E-03   -.93094    
   4  Prefactor     1.1456        .23494        .25898E-03   -.88022    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.91226e-10
Minuit parameter uncertainties:
  1  2.51816
  2  0.489934
  3  0.197276
  4  0.235159
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/549213': 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) = 5552.57146056
delta logL = 0.0766819411938

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  4.356e+00  2.518e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.004e+00  4.899e-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.146e+00  2.352e-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.981e-01  1.973e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.67
Ra Dec: 20.123 -27.023
Photon Index (Free Index): 2.00 +/- 0.49
Photon Flux (Free Index): 4.81e-08 +/- 3.57e-08
Energy Flux (Free Index): 3.06e-05 +/- 2.27e-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/549213/cmap_HighResolution_581472001_581731201_4FGL_J0120.4-2701_daily_bin1320.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.87e-08', energy_flux2='3.06e-05', photon_flux_error='2.21e-08', dlogl='7.67e-02', energy_flux='3.76e-05', photon_flux2='4.81e-08', job_status='DONE', time_completed='2021-08-13 23:36:36.606719', photon_index_error2='0.49', photon_index2='2.00', ts='7.54', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='2.27e-05', EG='1.01', time_epoch_completed='1628922996.61', return_code='0', job_id='549213', GAL2='1.15', EG2='1.00', return_code2='0', energy_flux_error='2.15e-05', photon_flux_error2='3.57e-08', ts2='7.67', photon_index='1.82' WHERE bin_id='1320' AND source_name='4FGL J0120.4-2701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 23:36:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 549213: <4FGL_J0120.4-2701_daily_bin1320> in cluster <slac> Done

Job <4FGL_J0120.4-2701_daily_bin1320> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Fri Aug 13 23:25:54 2021
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 23:28:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 13 23:28:39 2021
Terminated at Fri Aug 13 23:36:37 2021
Results reported at Fri Aug 13 23:36:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0120.4-2701_daily_bin1320 20.1227 -27.0229 581472001 581731201 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 :                                   444.22 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             309.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   479 sec.
    Turnaround time :                            643 sec.

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

