/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 20 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 = 7440
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0120.4-2701_daily_bin1122
RA = 20.1227, Dec = -27.0229
tmin = 530150401, tmax = 530409601
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='548942', job_status='RUN', time_executed='2021-08-13 23:29:25.649587', time_epoch_executed='1628922565.65' WHERE source_name='4FGL J0120.4-2701' and cadence='daily' and bin_id='1122'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/548942

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/548942/ft1_4FGL_J0120.4-2701_daily_bin1122.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/548942/ft2_4FGL_J0120.4-2701_daily_bin1122.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/548942/ft1_4FGL_J0120.4-2701_daily_bin1122.fits outfile=/scratch/kocevski/548942/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1122.fits ra=20.1227 dec=-27.0229 rad=12.0 tmin=530150401.0 tmax=530409601.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 11.87
user 3.31
sys 8.46

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/548942/ft1_filtered_4FGL_J0120.4-2701_daily_bin1122.fits" evtable="EVENTS" scfile=/scratch/kocevski/548942/ft2_4FGL_J0120.4-2701_daily_bin1122.fits sctable="SC_DATA" outfile=/scratch/kocevski/548942/ltcube_530150401_530409601_4FGL_J0120.4-2701_daily_bin1122.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/548942/ft2_4FGL_J0120.4-2701_daily_bin1122.fits
.....................!
real 24.31
user 14.56
sys 9.61

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/548942/ft1_filtered_4FGL_J0120.4-2701_daily_bin1122.fits evtable="EVENTS" scfile=/scratch/kocevski/548942/ft2_4FGL_J0120.4-2701_daily_bin1122.fits sctable="SC_DATA" expcube=/scratch/kocevski/548942/ltcube_530150401_530409601_4FGL_J0120.4-2701_daily_bin1122.fits outfile=/scratch/kocevski/548942/expmap_530150401_530409601_4FGL_J0120.4-2701_daily_bin1122.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/548942/ltcube_530150401_530409601_4FGL_J0120.4-2701_daily_bin1122.fits
.....................!
real 202.74
user 186.23
sys 15.91

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/548942/ft1_filtered_4FGL_J0120.4-2701_daily_bin1122.fits scfile=/scratch/kocevski/548942/ft2_4FGL_J0120.4-2701_daily_bin1122.fits outfile=/scratch/kocevski/548942/cmap_530150401_530409601_4FGL_J0120.4-2701_daily_bin1122.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 8.67
user 0.38
sys 8.24

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/548942/ft1_filtered_4FGL_J0120.4-2701_daily_bin1122.fits scfile=/scratch/kocevski/548942/ft2_4FGL_J0120.4-2701_daily_bin1122.fits outfile=/scratch/kocevski/548942/cmap_HighResolution_530150401_530409601_4FGL_J0120.4-2701_daily_bin1122.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 8.77
user 0.37
sys 8.34

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/548942/ft1_filtered_4FGL_J0120.4-2701_daily_bin1122.fits evtable="EVENTS" scfile=/scratch/kocevski/548942/ft2_4FGL_J0120.4-2701_daily_bin1122.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/548942/Model_4FGL_J0120.4-2701_daily_bin1122.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/548942/ft1_filtered_4FGL_J0120.4-2701_daily_bin1122.fits.....................!
real 56.07
user 43.57
sys 11.96

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.650       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10252E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    20.584       1.0000         .10000E-03   10000.    
     4 'norm      '    3.8344       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.5104       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.7929       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    33.889       1.0000         .10000E-03   10000.    
     9 'norm      '    .61613       1.0000         .10000E-03   10000.    
    10 'norm      '    2.8675       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .17092E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .11698       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.734       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.3014       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .61683       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1699       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=   5028.570     FROM MIGRAD    STATUS=CONVERGED    432 CALLS     2606 TOTAL
                     EDM=   .97E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.651        6.6689       -.95973E-06   -.12748E-03
   2  Prefactor     .10000E-03    41.296       -.10336E-05** at limit **
   3  norm          20.583        13.588       -.44667E-07   -.23246E-06
   4  norm          3.8344        2.8591       -.41365E-07   -.17835E-04
   5  Prefactor     6.5107        8.6243       -.16565E-05   -.14295E-03
   6  Prefactor     6.7917        17.000       -.75501E-06   -.22482E-04
   7  Prefactor     .10000E-03    1.3347        .79365E-08** at limit **
   8  Prefactor     33.896        19.174       -.17932E-05   -.97581E-04
   9  norm          .61384        5.3414        .22715E-05   -.13639E-03
  10  norm          2.8675        2.1661       -.32806E-08    .51211E-04
  11  Prefactor     .10000E-03    29.505        .85008E-06** at limit **
  12  Prefactor     .10000E-03    1.2507       -.45467E-07** at limit **
  13  norm          .10000E-03    .67949        .10527E-07** at limit **
  14  norm          .10000E-03    .80119       -.68858E-08** at limit **
  15  Prefactor     .10000E-03    1.2109        .30445E-07** at limit **
  16  norm          .11639        1.6787       -.54606E-06    .43685E-03
  17  Prefactor     11.732        36.298       -.14879E-05    .15488E-05
  18  Prefactor     5.3017        8.3573        .14212E-06   -.75133E-05
  19  Normalizat    .61673        .15828        .86669E-06    .47338E-04
  20  Prefactor     1.1700        .18722       -.43744E-06    .10227E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 14.6505
  Prefactor  = 0.0001
  norm       = 20.5833
  norm       = 3.8344
  Prefactor  = 6.51065
  Prefactor  = 6.79165
  Prefactor  = 0.0001
  Prefactor  = 33.896
  norm       = 0.613835
  norm       = 2.8675
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.116391
  Prefactor  = 11.7322
  Prefactor  = 5.30172
  Normalizat = 0.616729
  Prefactor  = 1.17004
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.651        6.7098        .10464E-03   -1.4942    
   2  Prefactor     .10000E-03    41.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          20.583        13.586        .88282E-04   -1.4800    
   4  norm          3.8344        2.8587        .10012E-03   -1.5316    
   5  Prefactor     6.5107        8.6236        .15729E-03   -1.5198    
   6  Prefactor     6.7917        16.739        .15395E-03   -1.5187    
   7  Prefactor     .10000E-03    1.3645        .79964E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     33.896        22.112        .68836E-04   -1.4543    
   9  norm          .61384        9.1644        .18025E-02   -1.5551    
  10  norm          2.8675        2.1612        .86436E-04   -1.5369    
  11  Prefactor     .10000E-03    30.411        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.2546        .77369E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.4195        .11216E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .81186        .61916E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.0570        .15176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .11639        4.3718        .17304E-02   -1.5640    
  17  Prefactor     11.732        36.321        .11695E-03   -1.5023    
  18  Prefactor     5.3017        8.3463        .17456E-03   -1.5247    
  19  Normalizat    .61673        .18487        .24435E-03   -1.0728    
  20  Prefactor     1.1700        .22137        .22442E-03   -.87258    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.23838e-08
Minuit parameter uncertainties:
  1  6.7101
  2  3.71957e-06
  3  13.5885
  4  2.85884
  5  8.62527
  6  16.7506
  7  2.17146e-06
  8  22.1171
  9  4.74409
  10  2.16125
  11  6.31957e-05
  12  7.61957e-07
  13  5.70095e-05
  14  7.14969e-07
  15  1.10436e-05
  16  1.42615
  17  36.389
  18  8.34809
  19  0.185051
  20  0.221547
Done.

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

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  2.867e+00  2.161e+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.170e+00  2.215e-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:  6.167e-01  1.851e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.86
Ra Dec: 20.123 -27.023
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 2.49e-08 +/- 1.87e-08
Energy Flux (Fixed Index): 2.41e-05 +/- 1.82e-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) = 5028.30632471
delta logL = 0.264151817428

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5028.27933373
delta logL = 0.291142799172

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3111       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3423       1.0000          .0000       5.0000    
     3 'Normalizat'    .62351       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1705       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=   5028.279     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      204 TOTAL
                     EDM=   .93E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3100        1.8213        .67470E-02    .51277E-03
   2  alpha         1.3420        .42070        .33501       -.40146E-04
   3  Normalizat    .62360        .14998        .41260E-01    .16211E-04
   4  Prefactor     1.1705        .18549        .50777E-01   -.10007E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.31005
  alpha      = 1.34202
  Normalizat = 0.623599
  Prefactor  = 1.17047
 **********
 **   18 **HESSE 
 **********

 FCN=   5028.279     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3100        2.2731        .82644E-04   -1.5404    
   2  alpha         1.3420        .58622        .13173E-01   -.48160    
   3  Normalizat    .62360        .17646        .24313E-03   -1.0699    
   4  Prefactor     1.1705        .21860        .22448E-03   -.87245    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.93487e-11
Minuit parameter uncertainties:
  1  2.27318
  2  0.593281
  3  0.176617
  4  0.218767
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/548942': 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) = 5028.27933343
delta logL = 0.291143102086

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  2.310e+00  2.273e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.342e+00  5.933e-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.170e+00  2.188e-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:  6.236e-01  1.766e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.44
Ra Dec: 20.123 -27.023
Photon Index (Free Index): 1.34 +/- 0.59
Photon Flux (Free Index): 1.37e-08 +/- 1.52e-08
Energy Flux (Free Index): 5.03e-05 +/- 6.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/548942/cmap_HighResolution_530150401_530409601_4FGL_J0120.4-2701_daily_bin1122.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.49e-08', energy_flux2='5.03e-05', photon_flux_error='1.87e-08', dlogl='2.91e-01', energy_flux='2.41e-05', photon_flux2='1.37e-08', job_status='DONE', time_completed='2021-08-13 23:40:35.584487', photon_index_error2='0.59', photon_index2='1.34', ts='6.86', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', energy_flux_error2='6.27e-05', EG='0.62', time_epoch_completed='1628923235.58', return_code='0', job_id='548942', GAL2='1.17', EG2='0.62', return_code2='0', energy_flux_error='1.82e-05', photon_flux_error2='1.52e-08', ts2='7.44', photon_index='1.82' WHERE bin_id='1122' AND source_name='4FGL J0120.4-2701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 23:40:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 548942: <4FGL_J0120.4-2701_daily_bin1122> in cluster <slac> Done

Job <4FGL_J0120.4-2701_daily_bin1122> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Fri Aug 13 23:25:35 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 23:26: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:26:39 2021
Terminated at Fri Aug 13 23:40:37 2021
Results reported at Fri Aug 13 23:40:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0120.4-2701_daily_bin1122 20.1227 -27.0229 530150401 530409601 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 :                                   791.00 sec.
    Max Memory :                                 1254 MB
    Average Memory :                             230.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            902 sec.

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

