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


Performing analysis on: 4FGL_J0120.4-2701_daily_bin1567
RA = 20.1227, Dec = -27.0229
tmin = 645494401, tmax = 645753601
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='550377', job_status='RUN', time_executed='2021-08-13 23:36:14.121300', time_epoch_executed='1628922974.12' WHERE source_name='4FGL J0120.4-2701' and cadence='daily' and bin_id='1567'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/550377

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/550377/ft1_4FGL_J0120.4-2701_daily_bin1567.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/550377/ft2_4FGL_J0120.4-2701_daily_bin1567.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/550377/ft1_4FGL_J0120.4-2701_daily_bin1567.fits outfile=/scratch/kocevski/550377/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1567.fits ra=20.1227 dec=-27.0229 rad=12.0 tmin=645494401.0 tmax=645753601.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.48
user 2.36
sys 8.97

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/550377/ft2_4FGL_J0120.4-2701_daily_bin1567.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/550377/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1567.fits evtable="EVENTS" outfile="/scratch/kocevski/550377/ft1_filtered_4FGL_J0120.4-2701_daily_bin1567.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 9.47
user 0.37
sys 9.00

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/550377/ft1_filtered_4FGL_J0120.4-2701_daily_bin1567.fits" evtable="EVENTS" scfile=/scratch/kocevski/550377/ft2_4FGL_J0120.4-2701_daily_bin1567.fits sctable="SC_DATA" outfile=/scratch/kocevski/550377/ltcube_645494401_645753601_4FGL_J0120.4-2701_daily_bin1567.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/550377/ft2_4FGL_J0120.4-2701_daily_bin1567.fits
.....................!
real 24.35
user 14.01
sys 10.13

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/550377/ft1_filtered_4FGL_J0120.4-2701_daily_bin1567.fits evtable="EVENTS" scfile=/scratch/kocevski/550377/ft2_4FGL_J0120.4-2701_daily_bin1567.fits sctable="SC_DATA" expcube=/scratch/kocevski/550377/ltcube_645494401_645753601_4FGL_J0120.4-2701_daily_bin1567.fits outfile=/scratch/kocevski/550377/expmap_645494401_645753601_4FGL_J0120.4-2701_daily_bin1567.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/550377/ltcube_645494401_645753601_4FGL_J0120.4-2701_daily_bin1567.fits
.....................!
real 203.98
user 185.90
sys 16.52

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/550377/ft1_filtered_4FGL_J0120.4-2701_daily_bin1567.fits scfile=/scratch/kocevski/550377/ft2_4FGL_J0120.4-2701_daily_bin1567.fits outfile=/scratch/kocevski/550377/cmap_645494401_645753601_4FGL_J0120.4-2701_daily_bin1567.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 9.18
user 0.39
sys 8.72

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/550377/ft1_filtered_4FGL_J0120.4-2701_daily_bin1567.fits scfile=/scratch/kocevski/550377/ft2_4FGL_J0120.4-2701_daily_bin1567.fits outfile=/scratch/kocevski/550377/cmap_HighResolution_645494401_645753601_4FGL_J0120.4-2701_daily_bin1567.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 9.16
user 0.40
sys 8.68

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/550377/ft1_filtered_4FGL_J0120.4-2701_daily_bin1567.fits evtable="EVENTS" scfile=/scratch/kocevski/550377/ft2_4FGL_J0120.4-2701_daily_bin1567.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/550377/Model_4FGL_J0120.4-2701_daily_bin1567.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/550377/ft1_filtered_4FGL_J0120.4-2701_daily_bin1567.fits.....................!
real 60.87
user 47.40
sys 12.68

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.682       1.0000         .10000E-03   10000.    
     2 'Prefactor '    91.021       1.0000         .10000E-03   10000.    
     3 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.5267       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .23282E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14456E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.8717       1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.003       1.0000         .10000E-03   10000.    
     9 'norm      '    .27846E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.6546       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.8699       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.2471       1.0000         .10000E-03   10000.    
    13 'norm      '    2.4630       1.0000         .10000E-03   10000.    
    14 'norm      '    .10217E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.815       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .32575E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.8980       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .69141       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.4367       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=   5636.043     FROM MIGRAD    STATUS=CONVERGED    435 CALLS     2094 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.680        6.3950       -.14636E-06   -.48331E-04
   2  Prefactor     90.984        105.58       -.30791E-05   -.26062E-04
   3  norm          .10000E-03    4.8796       -.18672E-06** at limit **
   4  norm          1.5265        2.1553        .84120E-07   -.88878E-04
   5  Prefactor     .10024E-03    8.9704       -.13828E-05** at limit **
   6  Prefactor     .10010E-03    11.029        .10272E-05** at limit **
   7  Prefactor     1.8710        3.0787        .15807E-06   -.11587E-03
   8  Prefactor     26.999        14.590        .78972E-06    .67357E-03
   9  norm          .10000E-03    1.8964       -.94478E-06** at limit **
  10  norm          3.6538        2.5875        .21238E-06   -.38554E-03
  11  Prefactor     3.8689        14.145       -.14438E-06   -.10199E-06
  12  Prefactor     3.2503        6.2433        .87248E-06    .24768E-03
  13  norm          2.4627        1.4759       -.16430E-07    .14313E-03
  14  norm          .10000E-03    1.2430       -.23141E-06** at limit **
  15  Prefactor     21.813        6.2002       -.61296E-07   -.35322E-04
  16  norm          .10000E-03    1.3147        .50774E-07** at limit **
  17  Prefactor     .10000E-03    73.005        .86200E-06** at limit **
  18  Prefactor     6.9022        11.117        .54726E-06    .60781E-04
  19  Normalizat    .69147        .18402        .90768E-06    .19210E-03
  20  Prefactor     1.4368        .21200       -.40609E-06    .26178E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 11.68
  Prefactor  = 90.984
  norm       = 0.0001
  norm       = 1.52652
  Prefactor  = 0.00010024
  Prefactor  = 0.000100102
  Prefactor  = 1.87099
  Prefactor  = 26.9988
  norm       = 0.0001
  norm       = 3.65383
  Prefactor  = 3.86894
  Prefactor  = 3.25028
  norm       = 2.46266
  norm       = 0.0001
  Prefactor  = 21.8132
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.90218
  Normalizat = 0.691469
  Prefactor  = 1.43679
 **********
 **   18 **HESSE 
 **********

 FCN=   5636.043     FROM HESSE     STATUS=OK           303 CALLS     2397 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.680        6.4052        .11721E-03   -1.5024    
   2  Prefactor     90.984        106.30        .21060E-03   -1.3797    
   3  norm          .10000E-03    4.8755        .16183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.5265        2.1242        .12716E-03   -1.5461    
   5  Prefactor     .10024E-03    74.930        .38792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10010E-03    55.898        .44172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.8710        3.0495        .16124E-03   -1.5434    
   8  Prefactor     26.999        14.321        .77094E-04   -1.4668    
   9  norm          .10000E-03    5.6102        .17827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.6538        2.5548        .47675E-03   -1.5326    
  11  Prefactor     3.8689        14.002        .20512E-03   -1.5315    
  12  Prefactor     3.2503        6.2622        .22125E-03   -1.5347    
  13  norm          2.4627        1.4729        .67774E-04   -1.5394    
  14  norm          .10000E-03    2.1299        .16057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     21.813        6.1996        .85758E-04   -1.4774    
  16  norm          .10000E-03    1.3277        .83958E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    73.260        .21355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.9022        11.073        .15276E-03   -1.5182    
  19  Normalizat    .69147        .21312        .28129E-03   -1.0423    
  20  Prefactor     1.4368        .25202        .24824E-03   -.79326    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.15307e-09
Minuit parameter uncertainties:
  1  6.40562
  2  106.527
  3  1.29127e-05
  4  2.12431
  5  0.00848904
  6  0.00478673
  7  3.04978
  8  14.3231
  9  6.93603e-05
  10  2.55486
  11  14.0136
  12  6.26347
  13  1.47288
  14  1.43191e-05
  15  6.19973
  16  3.67275e-06
  17  5.35098e-05
  18  11.0762
  19  0.213376
  20  0.252238
Done.

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

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  3.654e+00  2.555e+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.437e+00  2.522e-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.915e-01  2.134e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.03
Ra Dec: 20.123 -27.023
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 3.17e-08 +/- 2.21e-08
Energy Flux (Fixed Index): 3.08e-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) = 5636.00575709
delta logL = 0.0372214756444

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5636.00289402
delta logL = 0.0400845456088

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4765       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6600       1.0000          .0000       5.0000    
     3 'Normalizat'    .69681       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4353       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=   5636.003     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      206 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4755        3.4143        .54219E-02    .53739E-04
   2  alpha         1.6595        .60131        .35999       -.23715E-04
   3  Normalizat    .69680        .17334        .63356E-01    .10135E-04
   4  Prefactor     1.4353        .21101        .56178E-01   -.68141E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.47555
  alpha      = 1.65946
  Normalizat = 0.696804
  Prefactor  = 1.43535
 **********
 **   18 **HESSE 
 **********

 FCN=   5636.003     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .32E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4755        2.6426        .97043E-04   -1.5335    
   2  alpha         1.6595        .54331        .13503E-01   -.34290    
   3  Normalizat    .69680        .20368        .28029E-03   -1.0402    
   4  Prefactor     1.4353        .25033        .24839E-03   -.79367    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.15769e-12
Minuit parameter uncertainties:
  1  2.64274
  2  0.548254
  3  0.203902
  4  0.250546
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/550377': 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) = 5636.0028936
delta logL = 0.040084969869

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  3.476e+00  2.643e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.659e+00  5.483e-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.435e+00  2.505e-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.968e-01  2.039e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.10
Ra Dec: 20.123 -27.023
Photon Index (Free Index): 1.66 +/- 0.55
Photon Flux (Free Index): 2.55e-08 +/- 2.71e-08
Energy Flux (Free Index): 3.72e-05 +/- 3.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/550377/cmap_HighResolution_645494401_645753601_4FGL_J0120.4-2701_daily_bin1567.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.17e-08', energy_flux2='3.72e-05', photon_flux_error='2.21e-08', dlogl='4.01e-02', energy_flux='3.08e-05', photon_flux2='2.55e-08', job_status='DONE', time_completed='2021-08-13 23:47:19.567990', photon_index_error2='0.55', photon_index2='1.66', ts='7.03', fit_tolerance='1e-08', GAL='1.44', photon_index_error='0.00', energy_flux_error2='3.78e-05', EG='0.69', time_epoch_completed='1628923639.57', return_code='0', job_id='550377', GAL2='1.44', EG2='0.70', return_code2='0', energy_flux_error='2.15e-05', photon_flux_error2='2.71e-08', ts2='7.10', photon_index='1.82' WHERE bin_id='1567' AND source_name='4FGL J0120.4-2701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 23:47:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 550377: <4FGL_J0120.4-2701_daily_bin1567> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0120.4-2701_daily_bin1567 20.1227 -27.0229 645494401 645753601 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 :                                   795.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             246.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            996 sec.

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

