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


Performing analysis on: 4FGL_J0120.4-2701_daily_bin1545
RA = 20.1227, Dec = -27.0229
tmin = 639792001, tmax = 640051201
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='550343', job_status='RUN', time_executed='2021-08-13 23:34:51.098787', time_epoch_executed='1628922891.1' WHERE source_name='4FGL J0120.4-2701' and cadence='daily' and bin_id='1545'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/550343

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/550343/ft1_4FGL_J0120.4-2701_daily_bin1545.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/550343/ft2_4FGL_J0120.4-2701_daily_bin1545.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/550343/ft1_4FGL_J0120.4-2701_daily_bin1545.fits outfile=/scratch/kocevski/550343/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1545.fits ra=20.1227 dec=-27.0229 rad=12.0 tmin=639792001.0 tmax=640051201.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 12.41
user 3.28
sys 9.04

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/550343/ft2_4FGL_J0120.4-2701_daily_bin1545.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/550343/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1545.fits evtable="EVENTS" outfile="/scratch/kocevski/550343/ft1_filtered_4FGL_J0120.4-2701_daily_bin1545.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.31
user 0.36
sys 8.87

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/550343/ft1_filtered_4FGL_J0120.4-2701_daily_bin1545.fits" evtable="EVENTS" scfile=/scratch/kocevski/550343/ft2_4FGL_J0120.4-2701_daily_bin1545.fits sctable="SC_DATA" outfile=/scratch/kocevski/550343/ltcube_639792001_640051201_4FGL_J0120.4-2701_daily_bin1545.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/550343/ft2_4FGL_J0120.4-2701_daily_bin1545.fits
.....................!
real 24.25
user 13.96
sys 10.19

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/550343/ft1_filtered_4FGL_J0120.4-2701_daily_bin1545.fits evtable="EVENTS" scfile=/scratch/kocevski/550343/ft2_4FGL_J0120.4-2701_daily_bin1545.fits sctable="SC_DATA" expcube=/scratch/kocevski/550343/ltcube_639792001_640051201_4FGL_J0120.4-2701_daily_bin1545.fits outfile=/scratch/kocevski/550343/expmap_639792001_640051201_4FGL_J0120.4-2701_daily_bin1545.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/550343/ltcube_639792001_640051201_4FGL_J0120.4-2701_daily_bin1545.fits
.....................!
real 203.21
user 185.52
sys 17.25

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/550343/ft1_filtered_4FGL_J0120.4-2701_daily_bin1545.fits scfile=/scratch/kocevski/550343/ft2_4FGL_J0120.4-2701_daily_bin1545.fits outfile=/scratch/kocevski/550343/cmap_639792001_640051201_4FGL_J0120.4-2701_daily_bin1545.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.24
user 0.38
sys 8.79

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/550343/ft1_filtered_4FGL_J0120.4-2701_daily_bin1545.fits scfile=/scratch/kocevski/550343/ft2_4FGL_J0120.4-2701_daily_bin1545.fits outfile=/scratch/kocevski/550343/cmap_HighResolution_639792001_640051201_4FGL_J0120.4-2701_daily_bin1545.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.21
user 0.39
sys 8.70

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/550343/ft1_filtered_4FGL_J0120.4-2701_daily_bin1545.fits evtable="EVENTS" scfile=/scratch/kocevski/550343/ft2_4FGL_J0120.4-2701_daily_bin1545.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/550343/Model_4FGL_J0120.4-2701_daily_bin1545.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/550343/ft1_filtered_4FGL_J0120.4-2701_daily_bin1545.fits.....................!
real 59.57
user 46.81
sys 12.62

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    33.528       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .75762E-01   1.0000         .10000E-03   10000.    
     4 'norm      '    2.6081       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.7404       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.7528       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.167       1.0000         .10000E-03   10000.    
     9 'norm      '    .10090E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.4356       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.6498       1.0000         .10000E-03   10000.    
    13 'norm      '    3.6459       1.0000         .10000E-03   10000.    
    14 'norm      '    .28823E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.7406       1.0000         .10000E-03   10000.    
    16 'norm      '    1.9486       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.9596       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1951       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .55745       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=   5606.314     FROM MIGRAD    STATUS=CONVERGED    439 CALLS     1815 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          33.528        8.2863        .15749E-06    .21531E-05
   2  Prefactor     .10003E-03    63.156       -.39700E-05** at limit **
   3  norm          .16853        9.8915        .75849E-05   -.84451E-03
   4  norm          2.6084        2.1005        .55386E-07    .52673E-05
   5  Prefactor     9.7395        6.6857        .96225E-07    .13655E-03
   6  Prefactor     .10000E-03    4.7936        .17694E-06** at limit **
   7  Prefactor     1.7532        2.0758        .13486E-06    .40681E-04
   8  Prefactor     12.167        9.3819       -.25519E-06    .36218E-04
   9  norm          .10000E-03    1.6596        .90485E-06** at limit **
  10  norm          2.4359        2.0704        .34880E-07    .38486E-04
  11  Prefactor     .10000E-03    3.5950        .49403E-08** at limit **
  12  Prefactor     4.6502        4.6931        .25432E-06   -.13900E-04
  13  norm          3.6461        1.6050        .89138E-07    .30649E-04
  14  norm          .10000E-03    1.0083       -.32522E-06** at limit **
  15  Prefactor     1.7416        4.0117        .41794E-06    .14744E-03
  16  norm          1.9490        3.2141        .44245E-05    .13933E-02
  17  Prefactor     .10000E-03    37.832        .32648E-06** at limit **
  18  Prefactor     7.9601        8.3321        .85726E-07   -.11955E-03
  19  Normalizat    1.1951        .17230       -.26862E-05    .12028E-03
  20  Prefactor     .55723        .18283        .18586E-05    .90627E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 33.5281
  Prefactor  = 0.000100027
  norm       = 0.168529
  norm       = 2.6084
  Prefactor  = 9.73949
  Prefactor  = 0.0001
  Prefactor  = 1.75316
  Prefactor  = 12.1665
  norm       = 0.000100001
  norm       = 2.43587
  Prefactor  = 0.0001
  Prefactor  = 4.6502
  norm       = 3.64613
  norm       = 0.000100002
  Prefactor  = 1.74158
  norm       = 1.94901
  Prefactor  = 0.000100001
  Prefactor  = 7.96012
  Normalizat = 1.19512
  Prefactor  = 0.557225
 **********
 **   18 **HESSE 
 **********

 FCN=   5606.314     FROM HESSE     STATUS=OK           301 CALLS     2116 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          33.528        8.2936        .69205E-04   -1.4549    
   2  Prefactor     .10003E-03    64.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .16853        57.660        .33485E-02   -1.5626    
   4  norm          2.6084        2.0997        .94560E-04   -1.5385    
   5  Prefactor     9.7395        6.6846        .12840E-03   -1.5084    
   6  Prefactor     .10000E-03    4.8056        .16007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.7532        2.0654        .11326E-03   -1.5443    
   8  Prefactor     12.167        9.3360        .11484E-03   -1.5010    
   9  norm          .10000E-03    1.7102        .18805E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.4359        2.0615        .95956E-04   -1.5396    
  11  Prefactor     .10000E-03    3.5964        .13864E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.6502        4.6438        .14803E-03   -1.5277    
  13  norm          3.6461        1.6051        .60373E-04   -1.5326    
  14  norm          .10000E-03    8.2099        .14197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.7416        4.0049        .21359E-03   -1.5444    
  16  norm          1.9490        3.3009        .81723E-03   -1.5429    
  17  Prefactor     .10000E-03    37.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.9601        8.3334        .14212E-03   -1.5144    
  19  Normalizat    1.1951        .19372        .19780E-03   -.86754    
  20  Prefactor     .55723        .20739        .31972E-03   -1.0942    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71718e-08
Minuit parameter uncertainties:
  1  8.29386
  2  0.00264656
  3  6.23873
  4  2.09973
  5  6.68506
  6  8.07619e-06
  7  2.06553
  8  9.33714
  9  7.60139e-05
  10  2.0616
  11  4.41312e-07
  12  4.64415
  13  1.60508
  14  0.000286403
  15  4.00547
  16  3.30117
  17  0.00041733
  18  8.33465
  19  0.193839
  20  0.207669
Done.

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

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  2.436e+00  2.062e+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:  5.572e-01  2.077e-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.195e+00  1.938e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.46
Ra Dec: 20.123 -27.023
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 2.11e-08 +/- 1.79e-08
Energy Flux (Fixed Index): 2.05e-05 +/- 1.74e-05

TS (Fixed Index): 2.46
Ra Dec: 20.123 -27.023
Photon Flux Upper Limit: 6.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.25e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/550343/likelihoodResults_639792001_640051201_4FGL_J0120.4-2701_daily_bin1545.txt

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) = 5605.84522307
delta logL = 0.469079351054

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5605.8352408
delta logL = 0.479061612793

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9219       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4302       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1728       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57008       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5670E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5605.835     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      290 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9221        1.9832        .71370E-04   -.10465E-03
   2  alpha         2.4303        .68776        .11047E-01   -.88916E-05
   3  Normalizat    1.1729        .18161        .19930E-03    .11851E-03
   4  Prefactor     .56997        .20587        .31617E-03    .10384E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.92206
  alpha      = 2.43026
  Normalizat = 1.17289
  Prefactor  = 0.569969
 **********
 **   18 **HESSE 
 **********

 FCN=   5605.835     FROM HESSE     STATUS=OK            25 CALLS      315 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9221        1.8715        .28548E-05   -1.5431    
   2  alpha         2.4303        .64950        .44188E-03   -.27899E-01
   3  Normalizat    1.1729        .18151        .39860E-04   -.87445    
   4  Prefactor     .56997        .20581        .12647E-04   -1.0887    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.52929e-11
Minuit parameter uncertainties:
  1  1.87151
  2  0.657039
  3  0.181609
  4  0.206085
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/550343': 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) = 5605.83524058
delta logL = 0.479061832884

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  1.922e+00  1.872e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.430e+00  6.570e-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:  5.700e-01  2.061e-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.173e+00  1.816e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.40
Ra Dec: 20.123 -27.023
Photon Index (Free Index): 2.43 +/- 0.66
Photon Flux (Free Index): 4.09e-08 +/- 3.41e-08
Energy Flux (Free Index): 1.34e-05 +/- 1.04e-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/550343/cmap_HighResolution_639792001_640051201_4FGL_J0120.4-2701_daily_bin1545.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.25e-05', comment='SUCCESS', photon_flux='2.11e-08', energy_flux2='1.34e-05', photon_flux_error='1.79e-08', dlogl='4.79e-01', energy_flux='2.05e-05', photon_flux2='4.09e-08', job_status='DONE', time_completed='2021-08-13 23:46:39.950597', photon_index_error2='0.66', photon_index2='2.43', ts='2.46', fit_tolerance='1e-08', GAL='0.56', photon_index_error='0.00', photon_flux_upper_limit='6.43e-08', energy_flux_error2='1.04e-05', EG='1.20', time_epoch_completed='1628923599.95', return_code='0', job_id='550343', GAL2='0.57', EG2='1.17', return_code2='0', energy_flux_error='1.74e-05', photon_flux_error2='3.41e-08', ts2='3.40', photon_index='1.82' WHERE bin_id='1545' AND source_name='4FGL J0120.4-2701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 23:46:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0045>
Subject: Job 550343: <4FGL_J0120.4-2701_daily_bin1545> in cluster <slac> Done

Job <4FGL_J0120.4-2701_daily_bin1545> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Aug 13 23:30:41 2021
Job was executed on host(s) <bullet0045>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 23:32:07 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:07 2021
Terminated at Fri Aug 13 23:46:42 2021
Results reported at Fri Aug 13 23:46:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0120.4-2701_daily_bin1545 20.1227 -27.0229 639792001 640051201 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 :                                   837.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   874 sec.
    Turnaround time :                            961 sec.

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

