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


Performing analysis on: 4FGL_J0120.4-2701_daily_bin1399
RA = 20.1227, Dec = -27.0229
tmin = 601948801, tmax = 602208001
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='550117', job_status='RUN', time_executed='2021-08-13 23:32:42.251648', time_epoch_executed='1628922762.25' WHERE source_name='4FGL J0120.4-2701' and cadence='daily' and bin_id='1399'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/550117

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/550117/ft1_4FGL_J0120.4-2701_daily_bin1399.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/550117/ft2_4FGL_J0120.4-2701_daily_bin1399.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/550117/ft1_4FGL_J0120.4-2701_daily_bin1399.fits outfile=/scratch/kocevski/550117/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1399.fits ra=20.1227 dec=-27.0229 rad=12.0 tmin=601948801.0 tmax=602208001.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 5.88
user 3.59
sys 2.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/550117/ft1_filtered_4FGL_J0120.4-2701_daily_bin1399.fits" evtable="EVENTS" scfile=/scratch/kocevski/550117/ft2_4FGL_J0120.4-2701_daily_bin1399.fits sctable="SC_DATA" outfile=/scratch/kocevski/550117/ltcube_601948801_602208001_4FGL_J0120.4-2701_daily_bin1399.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/550117/ft2_4FGL_J0120.4-2701_daily_bin1399.fits
.....................!
real 15.10
user 12.49
sys 2.52

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/550117/ft1_filtered_4FGL_J0120.4-2701_daily_bin1399.fits evtable="EVENTS" scfile=/scratch/kocevski/550117/ft2_4FGL_J0120.4-2701_daily_bin1399.fits sctable="SC_DATA" expcube=/scratch/kocevski/550117/ltcube_601948801_602208001_4FGL_J0120.4-2701_daily_bin1399.fits outfile=/scratch/kocevski/550117/expmap_601948801_602208001_4FGL_J0120.4-2701_daily_bin1399.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/550117/ltcube_601948801_602208001_4FGL_J0120.4-2701_daily_bin1399.fits
.....................!
real 192.29
user 185.26
sys 6.56

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/550117/ft1_filtered_4FGL_J0120.4-2701_daily_bin1399.fits scfile=/scratch/kocevski/550117/ft2_4FGL_J0120.4-2701_daily_bin1399.fits outfile=/scratch/kocevski/550117/cmap_601948801_602208001_4FGL_J0120.4-2701_daily_bin1399.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 2.50
user 0.39
sys 2.06

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/550117/ft1_filtered_4FGL_J0120.4-2701_daily_bin1399.fits scfile=/scratch/kocevski/550117/ft2_4FGL_J0120.4-2701_daily_bin1399.fits outfile=/scratch/kocevski/550117/cmap_HighResolution_601948801_602208001_4FGL_J0120.4-2701_daily_bin1399.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 2.34
user 0.40
sys 1.85

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/550117/ft1_filtered_4FGL_J0120.4-2701_daily_bin1399.fits evtable="EVENTS" scfile=/scratch/kocevski/550117/ft2_4FGL_J0120.4-2701_daily_bin1399.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/550117/Model_4FGL_J0120.4-2701_daily_bin1399.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/550117/ft1_filtered_4FGL_J0120.4-2701_daily_bin1399.fits.....................!
real 54.61
user 50.02
sys 3.84

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/550117/ft1_filtered_4FGL_J0120.4-2701_daily_bin1399.fits', '/scratch/kocevski/550117/ft2_4FGL_J0120.4-2701_daily_bin1399.fits', expMap='/scratch/kocevski/550117/expmap_601948801_602208001_4FGL_J0120.4-2701_daily_bin1399.fits', expCube='/scratch/kocevski/550117/ltcube_601948801_602208001_4FGL_J0120.4-2701_daily_bin1399.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/550117/Model_4FGL_J0120.4-2701_daily_bin1399.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/550117/ft1_filtered_4FGL_J0120.4-2701_daily_bin1399.fits
Spacecraft file(s): /scratch/kocevski/550117/ft2_4FGL_J0120.4-2701_daily_bin1399.fits
Exposure map: /scratch/kocevski/550117/expmap_601948801_602208001_4FGL_J0120.4-2701_daily_bin1399.fits
Exposure cube: /scratch/kocevski/550117/ltcube_601948801_602208001_4FGL_J0120.4-2701_daily_bin1399.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/550117/Model_4FGL_J0120.4-2701_daily_bin1399.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6346.46959879

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    41.495       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .98442E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    9.9956       1.0000         .10000E-03   10000.    
     4 'norm      '    .59572       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.8538       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10532E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.9877       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.1117       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.6646       1.0000         .10000E-03   10000.    
    13 'norm      '    .10521E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10143E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .33136       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0306       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .81896       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5670E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6345.478     FROM MIGRAD    STATUS=CONVERGED     87 CALLS     1484 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          41.492        4.9933        .62097E-05    .28499E-02
   2  Prefactor     .10030E-03    312.67       -.12314E-03** at limit **
   3  norm          9.9871        7.7043        .19949E-04   -.26655E-02
   4  norm          .59380        1.4805        .24157E-05    .76404E-03
   5  Prefactor     1.8482        1.9954       -.70757E-05   -.38147E-02
   6  Prefactor     .10001E-03    2.6335        .91683E-05** at limit **
   7  Prefactor     .10000E-03    4.9542        .63438E-05** at limit **
   8  Prefactor     .10002E-03    1.6281        .45015E-06** at limit **
   9  norm          .10000E-03    1.4236       -.31097E-06** at limit **
  10  norm          3.9877        1.9613        .25598E-07   -.62443E-04
  11  Prefactor     5.1130        1.0390        .10927E-05    .54220E-03
  12  Prefactor     1.6657        3.7394        .16875E-04    .48130E-03
  13  norm          .10000E-03    3.8760       -.16110E-04** at limit **
  14  norm          .10000E-03    1.9413       -.54453E-05** at limit **
  15  Prefactor     .10000E-03    1.9234        .46809E-05** at limit **
  16  norm          .32847        .65694       -.20126E-05   -.45268E-03
  17  Prefactor     .10000E-03    9.8582       -.16863E-05** at limit **
  18  Prefactor     .10000E-03    2.1222        .14873E-05** at limit **
  19  Normalizat    1.0307        .15989       -.80637E-05   -.10704E-04
  20  Prefactor     .81898        .18809       -.14569E-06   -.10417E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 41.4915
  Prefactor  = 0.000100301
  norm       = 9.98706
  norm       = 0.593798
  Prefactor  = 1.84823
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.000100018
  norm       = 0.0001
  norm       = 3.98765
  Prefactor  = 5.11302
  Prefactor  = 1.66573
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.328468
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.03074
  Prefactor  = 0.818982
 **********
 **   18 **HESSE 
 **********

 FCN=   6345.478     FROM HESSE     STATUS=OK           363 CALLS     1847 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          41.492        9.0486        .15557E-02   -1.4419    
   2  Prefactor     .10030E-03    309.66        .90722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.9871        9.5310        .31685E-02   -1.5076    
   4  norm          .59380        1.6473        .35360E-01   -1.5554    
   5  Prefactor     1.8482        6.3508        .76540E-02   -1.5436    
   6  Prefactor     .10001E-03    3.7290        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.3112        .29546E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10002E-03    3.7954        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .97326        .29843E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.9877        1.9672        .50493E-02   -1.5309    
  11  Prefactor     5.1130        6.5392        .44457E-02   -1.5256    
  12  Prefactor     1.6657        4.0125        .81721E-02   -1.5450    
  13  norm          .10000E-03    .45641        .30919E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.0881        .28651E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.8602        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .32847        1.3825        .48703E-01   -1.5593    
  17  Prefactor     .10000E-03    9.8643        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.1215        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0307        .14457        .42107E-01   -.92008    
  20  Prefactor     .81898        .16258        .43963E-01   -.99032    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.0881e-08
Minuit parameter uncertainties:
  1  9.04894
  2  0.0194094
  3  9.5325
  4  1.64739
  5  6.35314
  6  0.000326641
  7  3.17737e-05
  8  0.000528908
  9  2.54271e-06
  10  1.96725
  11  6.54007
  12  4.01318
  13  3.09985e-05
  14  1.54931e-05
  15  5.89303e-06
  16  1.34758
  17  0.000166361
  18  4.15369e-05
  19  0.144623
  20  0.16268
Done.

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

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  3.988e+00  1.967e+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:  8.190e-01  1.627e-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.031e+00  1.446e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.30
Ra Dec: 20.123 -27.023
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 3.46e-08 +/- 1.71e-08
Energy Flux (Fixed Index): 3.36e-05 +/- 1.66e-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) = 6344.99076695
delta logL = 0.48760914987

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6344.98509484
delta logL = 0.493281259699

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.7651       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4485       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0410       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81471       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=   6344.985     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      201 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7651        1.9469        .52016E-02    .90687E-03
   2  alpha         1.4485        .31295        .25784       -.26254E-04
   3  Normalizat    1.0410        .13584        .41200E-01    .25576E-04
   4  Prefactor     .81471        .16206        .43908E-01   -.84010E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.76508
  alpha      = 1.44849
  Normalizat = 1.04104
  Prefactor  = 0.81471
 **********
 **   18 **HESSE 
 **********

 FCN=   6344.985     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.7651        2.0847        .77320E-04   -1.5320    
   2  alpha         1.4485        .35795        .10654E-01   -.43411    
   3  Normalizat    1.0410        .15672        .19976E-03   -.91668    
   4  Prefactor     .81471        .18705        .26513E-03   -.99188    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.00216e-10
Minuit parameter uncertainties:
  1  2.08472
  2  0.359453
  3  0.156794
  4  0.187193
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/550117': 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) = 6344.98509484
delta logL = 0.493281261427

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  3.765e+00  2.085e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.448e+00  3.595e-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:  8.147e-01  1.872e-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.041e+00  1.568e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.29
Ra Dec: 20.123 -27.023
Photon Index (Free Index): 1.45 +/- 0.36
Photon Flux (Free Index): 2.34e-08 +/- 1.54e-08
Energy Flux (Free Index): 6.28e-05 +/- 5.19e-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/550117/cmap_HighResolution_601948801_602208001_4FGL_J0120.4-2701_daily_bin1399.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.46e-08', energy_flux2='6.28e-05', photon_flux_error='1.71e-08', dlogl='4.93e-01', energy_flux='3.36e-05', photon_flux2='2.34e-08', job_status='DONE', time_completed='2021-08-13 23:42:04.252381', photon_index_error2='0.36', photon_index2='1.45', ts='17.30', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='5.19e-05', EG='1.03', time_epoch_completed='1628923324.25', return_code='0', job_id='550117', GAL2='0.81', EG2='1.04', return_code2='0', energy_flux_error='1.66e-05', photon_flux_error2='1.54e-08', ts2='18.29', photon_index='1.82' WHERE bin_id='1399' AND source_name='4FGL J0120.4-2701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 23:42:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 550117: <4FGL_J0120.4-2701_daily_bin1399> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0120.4-2701_daily_bin1399 20.1227 -27.0229 601948801 602208001 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 :                                   578.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   682 sec.
    Turnaround time :                            700 sec.

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

