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


Performing analysis on: 4FGL_J0120.4-2701_daily_bin1011
RA = 20.1227, Dec = -27.0229
tmin = 501379201, tmax = 501638401
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='547775', job_status='RUN', time_executed='2021-08-13 23:28:17.165134', time_epoch_executed='1628922497.17' WHERE source_name='4FGL J0120.4-2701' and cadence='daily' and bin_id='1011'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/547775

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/547775/ft1_4FGL_J0120.4-2701_daily_bin1011.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/547775/ft2_4FGL_J0120.4-2701_daily_bin1011.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/547775/ft1_4FGL_J0120.4-2701_daily_bin1011.fits outfile=/scratch/kocevski/547775/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1011.fits ra=20.1227 dec=-27.0229 rad=12.0 tmin=501379201.0 tmax=501638401.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 7.82
user 2.83
sys 4.92

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/547775/ft2_4FGL_J0120.4-2701_daily_bin1011.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/547775/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1011.fits evtable="EVENTS" outfile="/scratch/kocevski/547775/ft1_filtered_4FGL_J0120.4-2701_daily_bin1011.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 5.17
user 0.30
sys 4.84

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/547775/ft1_filtered_4FGL_J0120.4-2701_daily_bin1011.fits" evtable="EVENTS" scfile=/scratch/kocevski/547775/ft2_4FGL_J0120.4-2701_daily_bin1011.fits sctable="SC_DATA" outfile=/scratch/kocevski/547775/ltcube_501379201_501638401_4FGL_J0120.4-2701_daily_bin1011.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/547775/ft2_4FGL_J0120.4-2701_daily_bin1011.fits
.....................!
real 21.52
user 15.70
sys 5.76

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/547775/ft1_filtered_4FGL_J0120.4-2701_daily_bin1011.fits evtable="EVENTS" scfile=/scratch/kocevski/547775/ft2_4FGL_J0120.4-2701_daily_bin1011.fits sctable="SC_DATA" expcube=/scratch/kocevski/547775/ltcube_501379201_501638401_4FGL_J0120.4-2701_daily_bin1011.fits outfile=/scratch/kocevski/547775/expmap_501379201_501638401_4FGL_J0120.4-2701_daily_bin1011.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/547775/ltcube_501379201_501638401_4FGL_J0120.4-2701_daily_bin1011.fits
.....................!
real 164.96
user 153.69
sys 10.96

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/547775/ft1_filtered_4FGL_J0120.4-2701_daily_bin1011.fits scfile=/scratch/kocevski/547775/ft2_4FGL_J0120.4-2701_daily_bin1011.fits outfile=/scratch/kocevski/547775/cmap_501379201_501638401_4FGL_J0120.4-2701_daily_bin1011.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 4.84
user 0.32
sys 4.50

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/547775/ft1_filtered_4FGL_J0120.4-2701_daily_bin1011.fits scfile=/scratch/kocevski/547775/ft2_4FGL_J0120.4-2701_daily_bin1011.fits outfile=/scratch/kocevski/547775/cmap_HighResolution_501379201_501638401_4FGL_J0120.4-2701_daily_bin1011.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 4.82
user 0.32
sys 4.48

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/547775/ft1_filtered_4FGL_J0120.4-2701_daily_bin1011.fits evtable="EVENTS" scfile=/scratch/kocevski/547775/ft2_4FGL_J0120.4-2701_daily_bin1011.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/547775/Model_4FGL_J0120.4-2701_daily_bin1011.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/547775/ft1_filtered_4FGL_J0120.4-2701_daily_bin1011.fits.....................!
real 45.06
user 37.67
sys 7.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .58150       1.0000         .10000E-03   10000.    
     3 'norm      '    .38480E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    1.2148       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10975E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10865E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.1045       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.8281       1.0000         .10000E-03   10000.    
    10 'norm      '    2.6818       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.824       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .84031       1.0000         .10000E-03   10000.    
    14 'norm      '    .95684       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.1734       1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .26742E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .24307E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .74595       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .97686       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=   5637.810     FROM MIGRAD    STATUS=CONVERGED    443 CALLS     1815 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.3921       -.31678E-07** at limit **
   2  Prefactor     .25835        53.586       -.14945E-05    .68816E-04
   3  norm          .10028E-03    6.9483       -.10647E-05** at limit **
   4  norm          1.2145        1.3314        .37827E-07    .16023E-03
   5  Prefactor     .10000E-03    2.8171        .10028E-06** at limit **
   6  Prefactor     .10000E-03    2.9992        .52465E-07** at limit **
   7  Prefactor     2.1055        2.2601       -.81846E-07   -.41912E-03
   8  Prefactor     .10000E-03    6.7627        .12716E-06** at limit **
   9  norm          2.8284        1.7561       -.69073E-07   -.69082E-04
  10  norm          2.6823        2.1042       -.41706E-06   -.11919E-03
  11  Prefactor     10.831        12.084        .56778E-05    .23436E-04
  12  Prefactor     .10000E-03    1.6966        .93634E-07** at limit **
  13  norm          .84030        1.1625       -.17541E-06   -.10683E-02
  14  norm          .95655        1.5590       -.84695E-06   -.21738E-02
  15  Prefactor     5.1748        3.1062        .12339E-06   -.20740E-03
  16  norm          .10000E-03    .90352       -.36747E-07** at limit **
  17  Prefactor     .10000E-03    72.679        .76864E-04** at limit **
  18  Prefactor     .10000E-03    27.183       -.12967E-06** at limit **
  19  Normalizat    .74602        .13378       -.35923E-06   -.21460E-03
  20  Prefactor     .97688        .16165       -.24416E-06   -.16456E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.258355
  norm       = 0.000100278
  norm       = 1.21455
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.10551
  Prefactor  = 0.0001
  norm       = 2.82843
  norm       = 2.6823
  Prefactor  = 10.8307
  Prefactor  = 0.0001
  norm       = 0.840298
  norm       = 0.95655
  Prefactor  = 5.17478
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.746023
  Prefactor  = 0.976878
 **********
 **   18 **HESSE 
 **********

 FCN=   5637.810     FROM HESSE     STATUS=OK           303 CALLS     2118 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.3977        .86508E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .25835        52.180        .16477       -1.5606    
   3  norm          .10028E-03    55.615        .36907E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.2145        1.3357        .88398E-04   -1.5488    
   5  Prefactor     .10000E-03    2.8504        .12301E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.0029        .12698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.1055        2.2463        .11272E-03   -1.5418    
   8  Prefactor     .10000E-03    6.8321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.8284        1.7448        .75185E-04   -1.5372    
  10  norm          2.6823        2.1018        .90901E-04   -1.5380    
  11  Prefactor     10.831        12.063        .12178E-03   -1.5050    
  12  Prefactor     .10000E-03    1.7170        .95302E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .84030        1.1366        .90591E-04   -1.5525    
  14  norm          .95655        1.4413        .11294E-02   -1.5512    
  15  Prefactor     5.1748        3.1030        .98994E-04   -1.5253    
  16  norm          .10000E-03    .92290        .69614E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    71.916        .21438E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    28.305        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .74602        .15579        .20892E-03   -1.0210    
  20  Prefactor     .97688        .18962        .22682E-03   -.93504    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.11739e-09
Minuit parameter uncertainties:
  1  8.30263e-07
  2  7.34836
  3  0.00786468
  4  1.33569
  5  9.4603e-07
  6  4.49401e-06
  7  2.24638
  8  4.20744e-06
  9  1.74478
  10  2.1019
  11  12.0661
  12  4.91582e-06
  13  1.13665
  14  1.44131
  15  3.10308
  16  2.23453e-07
  17  0.00045518
  18  0.00012839
  19  0.155882
  20  0.189747
Done.

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

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  2.682e+00  2.102e+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.769e-01  1.897e-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:  7.460e-01  1.559e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.11
Ra Dec: 20.123 -27.023
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 2.33e-08 +/- 1.82e-08
Energy Flux (Fixed Index): 2.26e-05 +/- 1.77e-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) = 5637.76077099
delta logL = 0.0492337637415

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5637.75968525
delta logL = 0.0503195041665

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6082       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0099       1.0000          .0000       5.0000    
     3 'Normalizat'    .73973       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98052       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=   5637.760     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      204 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6079        54.228        .63147E-02    .33446E-03
   2  alpha         2.0100        2.7708        .27382        .66653E-05
   3  Normalizat    .73973        .85464E-01    .42819E-01   -.16355E-03
   4  Prefactor     .98051        .73501E-01    .46023E-01    .11192E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.60789
  alpha      = 2.00999
  Normalizat = 0.739733
  Prefactor  = 0.980515
 **********
 **   18 **HESSE 
 **********

 FCN=   5637.760     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6079        2.0168        .84790E-04   -1.5385    
   2  alpha         2.0100        .62695        .14391E-01   -.19728    
   3  Normalizat    .73973        .15465        .20968E-03   -1.0234    
   4  Prefactor     .98051        .18953        .22640E-03   -.93382    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.831e-10
Minuit parameter uncertainties:
  1  2.01689
  2  0.633991
  3  0.154739
  4  0.18966
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/547775': 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) = 5637.75968523
delta logL = 0.0503195217816

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  2.608e+00  2.017e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.010e+00  6.340e-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.805e-01  1.897e-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:  7.397e-01  1.547e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.20
Ra Dec: 20.123 -27.023
Photon Index (Free Index): 2.01 +/- 0.63
Photon Flux (Free Index): 2.90e-08 +/- 2.74e-08
Energy Flux (Free Index): 1.82e-05 +/- 1.80e-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/547775/cmap_HighResolution_501379201_501638401_4FGL_J0120.4-2701_daily_bin1011.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.33e-08', energy_flux2='1.82e-05', photon_flux_error='1.82e-08', dlogl='5.03e-02', energy_flux='2.26e-05', photon_flux2='2.90e-08', job_status='DONE', time_completed='2021-08-13 23:36:58.501857', photon_index_error2='0.63', photon_index2='2.01', ts='5.11', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='1.80e-05', EG='0.75', time_epoch_completed='1628923018.5', return_code='0', job_id='547775', GAL2='0.98', EG2='0.74', return_code2='0', energy_flux_error='1.77e-05', photon_flux_error2='2.74e-08', ts2='5.20', photon_index='1.82' WHERE bin_id='1011' AND source_name='4FGL J0120.4-2701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 23:36:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0026>
Subject: Job 547775: <4FGL_J0120.4-2701_daily_bin1011> in cluster <slac> Done

Job <4FGL_J0120.4-2701_daily_bin1011> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 13 23:21:13 2021
Job was executed on host(s) <bullet0026>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 23:25:28 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:25:28 2021
Terminated at Fri Aug 13 23:37:00 2021
Results reported at Fri Aug 13 23:37:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0120.4-2701_daily_bin1011 20.1227 -27.0229 501379201 501638401 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 :                                   597.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             259.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   692 sec.
    Turnaround time :                            947 sec.

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

