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


Performing analysis on: 4FGL_J0120.4-2701_daily_bin1361
RA = 20.1227, Dec = -27.0229
tmin = 592099201, tmax = 592358401
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='549255', job_status='RUN', time_executed='2021-08-13 23:32:03.522780', time_epoch_executed='1628922723.52' WHERE source_name='4FGL J0120.4-2701' and cadence='daily' and bin_id='1361'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/549255

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/549255/ft1_4FGL_J0120.4-2701_daily_bin1361.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/549255/ft2_4FGL_J0120.4-2701_daily_bin1361.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/549255/ft1_4FGL_J0120.4-2701_daily_bin1361.fits outfile=/scratch/kocevski/549255/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1361.fits ra=20.1227 dec=-27.0229 rad=12.0 tmin=592099201.0 tmax=592358401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 9.72
user 3.29
sys 6.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/549255/ft2_4FGL_J0120.4-2701_daily_bin1361.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/549255/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1361.fits evtable="EVENTS" outfile="/scratch/kocevski/549255/ft1_filtered_4FGL_J0120.4-2701_daily_bin1361.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 6.72
user 0.36
sys 6.25

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/549255/ft1_filtered_4FGL_J0120.4-2701_daily_bin1361.fits" evtable="EVENTS" scfile=/scratch/kocevski/549255/ft2_4FGL_J0120.4-2701_daily_bin1361.fits sctable="SC_DATA" outfile=/scratch/kocevski/549255/ltcube_592099201_592358401_4FGL_J0120.4-2701_daily_bin1361.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/549255/ft2_4FGL_J0120.4-2701_daily_bin1361.fits
.....................!
real 20.82
user 13.54
sys 7.13

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/549255/ft1_filtered_4FGL_J0120.4-2701_daily_bin1361.fits evtable="EVENTS" scfile=/scratch/kocevski/549255/ft2_4FGL_J0120.4-2701_daily_bin1361.fits sctable="SC_DATA" expcube=/scratch/kocevski/549255/ltcube_592099201_592358401_4FGL_J0120.4-2701_daily_bin1361.fits outfile=/scratch/kocevski/549255/expmap_592099201_592358401_4FGL_J0120.4-2701_daily_bin1361.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/549255/ltcube_592099201_592358401_4FGL_J0120.4-2701_daily_bin1361.fits
.....................!
real 200.56
user 187.14
sys 12.60

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/549255/ft1_filtered_4FGL_J0120.4-2701_daily_bin1361.fits scfile=/scratch/kocevski/549255/ft2_4FGL_J0120.4-2701_daily_bin1361.fits outfile=/scratch/kocevski/549255/cmap_592099201_592358401_4FGL_J0120.4-2701_daily_bin1361.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=20.1227 yref=-27.0229 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 6.56
user 0.39
sys 6.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/549255/ft1_filtered_4FGL_J0120.4-2701_daily_bin1361.fits scfile=/scratch/kocevski/549255/ft2_4FGL_J0120.4-2701_daily_bin1361.fits outfile=/scratch/kocevski/549255/cmap_HighResolution_592099201_592358401_4FGL_J0120.4-2701_daily_bin1361.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=20.1227 yref=-27.0229 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 6.56
user 0.40
sys 6.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/549255/ft1_filtered_4FGL_J0120.4-2701_daily_bin1361.fits evtable="EVENTS" scfile=/scratch/kocevski/549255/ft2_4FGL_J0120.4-2701_daily_bin1361.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/549255/Model_4FGL_J0120.4-2701_daily_bin1361.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/549255/ft1_filtered_4FGL_J0120.4-2701_daily_bin1361.fits......................!
real 45.38
user 36.77
sys 8.49

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.340       1.0000         .10000E-03   10000.    
     2 'Prefactor '    141.73       1.0000         .10000E-03   10000.    
     3 'norm      '    .10586E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.1762       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.123       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.003       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.667       1.0000         .10000E-03   10000.    
     9 'norm      '    .10492E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.5938       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.683       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10971E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.0930       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .68017       1.0000         .10000E-03   10000.    
    16 'norm      '    .13805E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .64022       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .97650       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=   4049.171     FROM MIGRAD    STATUS=CONVERGED    410 CALLS     2123 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.340        7.6653        .51663E-06   -.77106E-05
   2  Prefactor     141.64        128.52       -.73867E-04   -.21385E-04
   3  norm          .10000E-03    5.4580        .97985E-05** at limit **
   4  norm          4.1763        3.0906       -.38237E-07   -.10651E-04
   5  Prefactor     13.125        9.9099        .79834E-06    .17228E-03
   6  Prefactor     .10000E-03    16.321       -.37629E-05** at limit **
   7  Prefactor     13.003        4.8168        .34332E-06    .78632E-04
   8  Prefactor     14.672        13.755        .21088E-05    .28293E-03
   9  norm          .10000E-03    2.9820       -.26043E-06** at limit **
  10  norm          2.5939        2.3848       -.17302E-06    .17895E-03
  11  Prefactor     16.683        15.974        .31059E-06    .15179E-03
  12  Prefactor     .10000E-03    5.9541       -.43257E-05** at limit **
  13  norm          1.0928        1.6300       -.49164E-06   -.55400E-03
  14  norm          .10000E-03    .69104       -.10071E-06** at limit **
  15  Prefactor     .68099        2.6169       -.16554E-05   -.10226E-02
  16  norm          .10001E-03    1.2087       -.52971E-06** at limit **
  17  Prefactor     .10000E-03    16.913        .57020E-05** at limit **
  18  Prefactor     .10000E-03    5.1671       -.53630E-05** at limit **
  19  Normalizat    .64027        .17747        .36842E-05    .34539E-03
  20  Prefactor     .97643        .20343        .17541E-05    .34579E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 11.3399
  Prefactor  = 141.638
  norm       = 0.000100001
  norm       = 4.17628
  Prefactor  = 13.1248
  Prefactor  = 0.0001
  Prefactor  = 13.003
  Prefactor  = 14.6723
  norm       = 0.0001
  norm       = 2.59392
  Prefactor  = 16.6832
  Prefactor  = 0.0001
  norm       = 1.09285
  norm       = 0.0001
  Prefactor  = 0.680991
  norm       = 0.000100014
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.640266
  Prefactor  = 0.97643
 **********
 **   18 **HESSE 
 **********

 FCN=   4049.171     FROM HESSE     STATUS=OK           295 CALLS     2418 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.340        7.6596        .11897E-03   -1.5034    
   2  Prefactor     141.64        128.51        .16920E-03   -1.3322    
   3  norm          .10000E-03    5.5030        .14575E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.1763        3.0896        .93247E-04   -1.5299    
   5  Prefactor     13.125        9.9029        .11057E-03   -1.4983    
   6  Prefactor     .10000E-03    16.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.003        4.8181        .80913E-04   -1.4987    
   8  Prefactor     14.672        13.536        .10458E-03   -1.4942    
   9  norm          .10000E-03    3.0127        .21123E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.5939        2.3871        .87847E-04   -1.5386    
  11  Prefactor     16.683        15.930        .98058E-04   -1.4891    
  12  Prefactor     .10000E-03    6.2048        .30222E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.0928        1.6008        .92993E-04   -1.5499    
  14  norm          .10000E-03    .69766        .51617E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .68099        2.6122        .19386E-03   -1.5543    
  16  norm          .10001E-03    29.604        .13451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    16.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.1963        .14126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .64027        .20645        .23501E-03   -1.0630    
  20  Prefactor     .97643        .23890        .23147E-03   -.93519    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2233e-09
Minuit parameter uncertainties:
  1  7.66021
  2  128.765
  3  0.0001331
  4  3.08976
  5  9.90417
  6  5.39736e-05
  7  4.81824
  8  13.5386
  9  3.79575e-05
  10  2.38715
  11  15.9336
  12  2.83805e-05
  13  1.60089
  14  4.0793e-06
  15  2.61261
  16  0.00129168
  17  2.36991e-05
  18  1.00521e-05
  19  0.206695
  20  0.239161
Done.

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

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  2.594e+00  2.387e+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:  9.764e-01  2.392e-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.403e-01  2.067e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.70
Ra Dec: 20.123 -27.023
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 2.25e-08 +/- 2.07e-08
Energy Flux (Fixed Index): 2.18e-05 +/- 2.01e-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) = 4048.25450693
delta logL = 0.916775525207

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4047.38048805
delta logL = 1.79079439694

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13051       1.0000         .10000E-03   10000.    
     2 'alpha     '    .20834       1.0000          .0000       5.0000    
     3 'Normalizat'    .64252       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98944       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=   4047.380     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      227 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13028        .22456        .50652E-02   -.10809E-02
   2  alpha         .20678        .63004        .43552        .36224E-04
   3  Normalizat    .64268        .16825        .41518E-01   -.44783E-04
   4  Prefactor     .98959        .20262        .46135E-01   -.70383E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.130277
  alpha      = 0.20678
  Normalizat = 0.642684
  Prefactor  = 0.989586
 **********
 **   18 **HESSE 
 **********

 FCN=   4047.380     FROM HESSE     STATUS=OK            35 CALLS      262 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .13028        .39478        .20600E-03   -1.5636    
   2  alpha         .20678        .93472        .22680E-01   -1.1612    
   3  Normalizat    .64268        .19784        .23475E-03   -1.0620    
   4  Prefactor     .98959        .23832        .23035E-03   -.93077    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.906e-11
Minuit parameter uncertainties:
  1  0.394787
  2  0.932607
  3  0.198062
  4  0.238569
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/549255': 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) = 4047.38047768
delta logL = 1.79080476839

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  1.303e-01  3.948e-01  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.068e-01  9.326e-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:  9.896e-01  2.386e-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.427e-01  1.981e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.29
Ra Dec: 20.123 -27.023
Photon Index (Free Index): 0.21 +/- 0.93
Photon Flux (Free Index): 3.64e-09 +/- 3.69e-09
Energy Flux (Free Index): 1.30e-04 +/- 1.57e-04

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/549255/cmap_HighResolution_592099201_592358401_4FGL_J0120.4-2701_daily_bin1361.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.25e-08', energy_flux2='1.30e-04', photon_flux_error='2.07e-08', dlogl='1.79e+00', energy_flux='2.18e-05', photon_flux2='3.64e-09', job_status='DONE', time_completed='2021-08-13 23:41:52.507709', photon_index_error2='0.93', photon_index2='0.21', ts='12.70', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='1.57e-04', EG='0.64', time_epoch_completed='1628923312.51', return_code='0', job_id='549255', GAL2='0.99', EG2='0.64', return_code2='0', energy_flux_error='2.01e-05', photon_flux_error2='3.69e-09', ts2='16.29', photon_index='1.82' WHERE bin_id='1361' AND source_name='4FGL J0120.4-2701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 23:41:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0005>
Subject: Job 549255: <4FGL_J0120.4-2701_daily_bin1361> in cluster <slac> Done

Job <4FGL_J0120.4-2701_daily_bin1361> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Fri Aug 13 23:25:58 2021
Job was executed on host(s) <bullet0005>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 23:28:58 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:58 2021
Terminated at Fri Aug 13 23:41:54 2021
Results reported at Fri Aug 13 23:41:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0120.4-2701_daily_bin1361 20.1227 -27.0229 592099201 592358401 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 :                                   658.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             248.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   38 MB
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   775 sec.
    Turnaround time :                            956 sec.

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

