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


Performing analysis on: 4FGL_J0120.4-2701_daily_bin1133
RA = 20.1227, Dec = -27.0229
tmin = 533001601, tmax = 533260801
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='548958', job_status='RUN', time_executed='2021-08-13 23:28:05.702612', time_epoch_executed='1628922485.7' WHERE source_name='4FGL J0120.4-2701' and cadence='daily' and bin_id='1133'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/548958

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/548958/ft1_4FGL_J0120.4-2701_daily_bin1133.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/548958/ft2_4FGL_J0120.4-2701_daily_bin1133.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/548958/ft1_4FGL_J0120.4-2701_daily_bin1133.fits outfile=/scratch/kocevski/548958/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1133.fits ra=20.1227 dec=-27.0229 rad=12.0 tmin=533001601.0 tmax=533260801.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 3.54
user 3.33
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/548958/ft1_filtered_4FGL_J0120.4-2701_daily_bin1133.fits" evtable="EVENTS" scfile=/scratch/kocevski/548958/ft2_4FGL_J0120.4-2701_daily_bin1133.fits sctable="SC_DATA" outfile=/scratch/kocevski/548958/ltcube_533001601_533260801_4FGL_J0120.4-2701_daily_bin1133.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/548958/ft2_4FGL_J0120.4-2701_daily_bin1133.fits
.....................!
real 12.97
user 12.62
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/548958/ft1_filtered_4FGL_J0120.4-2701_daily_bin1133.fits evtable="EVENTS" scfile=/scratch/kocevski/548958/ft2_4FGL_J0120.4-2701_daily_bin1133.fits sctable="SC_DATA" expcube=/scratch/kocevski/548958/ltcube_533001601_533260801_4FGL_J0120.4-2701_daily_bin1133.fits outfile=/scratch/kocevski/548958/expmap_533001601_533260801_4FGL_J0120.4-2701_daily_bin1133.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/548958/ltcube_533001601_533260801_4FGL_J0120.4-2701_daily_bin1133.fits
.....................!
real 192.84
user 187.67
sys 4.80

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/548958/ft1_filtered_4FGL_J0120.4-2701_daily_bin1133.fits scfile=/scratch/kocevski/548958/ft2_4FGL_J0120.4-2701_daily_bin1133.fits outfile=/scratch/kocevski/548958/cmap_533001601_533260801_4FGL_J0120.4-2701_daily_bin1133.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 0.54
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/548958/ft1_filtered_4FGL_J0120.4-2701_daily_bin1133.fits scfile=/scratch/kocevski/548958/ft2_4FGL_J0120.4-2701_daily_bin1133.fits outfile=/scratch/kocevski/548958/cmap_HighResolution_533001601_533260801_4FGL_J0120.4-2701_daily_bin1133.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 0.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/548958/ft1_filtered_4FGL_J0120.4-2701_daily_bin1133.fits evtable="EVENTS" scfile=/scratch/kocevski/548958/ft2_4FGL_J0120.4-2701_daily_bin1133.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/548958/Model_4FGL_J0120.4-2701_daily_bin1133.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/548958/ft1_filtered_4FGL_J0120.4-2701_daily_bin1133.fits.....................!
real 46.77
user 45.48
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    39.169       1.0000         .10000E-03   10000.    
     2 'Prefactor '    90.004       1.0000         .10000E-03   10000.    
     3 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10348E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.1461       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    7.7144       1.0000         .10000E-03   10000.    
    10 'norm      '    .72450       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15385E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    9.2154       1.0000         .10000E-03   10000.    
    14 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12272E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .80609       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0882       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=   5726.962     FROM MIGRAD    STATUS=CONVERGED    734 CALLS     2386 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          39.169        9.4849        .64044E-04    .19278E-04
   2  Prefactor     89.981        112.04        .42355E-04   -.84283E-05
   3  norm          .10000E-03    5.4517        .17248E-02** at limit **
   4  norm          .10000E-03    2.9510        .18923E-02** at limit **
   5  Prefactor     .10000E-03    3.3803        .13535E-02** at limit **
   6  Prefactor     3.1450        11.182        .11427E-02    .10081E-03
   7  Prefactor     .10000E-03    1.2661        .16350E-03** at limit **
   8  Prefactor     .10000E-03    10.205        .18142E-02** at limit **
   9  norm          7.7155        2.9124        .76035E-04    .16503E-02
  10  norm          .72447        1.3592        .14164E-02    .84660E-03
  11  Prefactor     .10001E-03    83.916        .40924E-02** at limit **
  12  Prefactor     .10000E-03    3.1404        .25789E-03** at limit **
  13  norm          9.2154        2.0329        .48947E-04    .37836E-03
  14  norm          .10000E-03    .80813        .13117E-03** at limit **
  15  Prefactor     .10002E-03    8.8949        .19069E-02** at limit **
  16  norm          .10000E-03    1.2544        .81886E-03** at limit **
  17  Prefactor     .10000E-03    44.193        .18142E-02** at limit **
  18  Prefactor     .10000E-03    4.0068        .14777E-02** at limit **
  19  Normalizat    .80599        .19237        .23694E-03    .30937E-03
  20  Prefactor     1.0884        .22863        .25024E-03    .39177E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 39.1693
  Prefactor  = 89.981
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.14496
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.71547
  norm       = 0.72447
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  norm       = 9.21539
  norm       = 0.0001
  Prefactor  = 0.000100017
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.805987
  Prefactor  = 1.08839
 **********
 **   18 **HESSE 
 **********

 FCN=   5726.962     FROM HESSE     STATUS=OK           275 CALLS     2661 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          39.169        9.4848        .12809E-04   -1.4455    
   2  Prefactor     89.981        112.02        .84709E-05   -1.3808    
   3  norm          .10000E-03    5.4518        .34496E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.9589        .37846E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.3808        .27071E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.1450        11.169        .45707E-04   -1.5353    
   7  Prefactor     .10000E-03    1.2662        .32699E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.206        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.7155        2.9118        .15207E-04   -1.5152    
  10  norm          .72447        1.3573        .56654E-04   -1.5538    
  11  Prefactor     .10001E-03    85.950        .16370E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.1405        .51579E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          9.2154        2.0329        .19579E-05   -1.5101    
  14  norm          .10000E-03    .80814        .26235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10002E-03    8.9568        .38139E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.2546        .16377E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    44.198        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.0070        .29554E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .80599        .19248        .47389E-04   -.99847    
  20  Prefactor     1.0884        .22886        .50048E-04   -.89838    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60109e-09
Minuit parameter uncertainties:
  1  9.48512
  2  112.28
  3  4.71374e-05
  4  2.02059e-05
  5  1.27419e-05
  6  11.1763
  7  4.71706e-06
  8  6.25331e-05
  9  2.91183
  10  1.35734
  11  0.00152351
  12  1.58134e-05
  13  2.03291
  14  4.04584e-06
  15  0.000783034
  16  9.23484e-06
  17  4.07649e-05
  18  1.0153e-05
  19  0.192645
  20  0.229064
Done.

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

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  7.245e-01  1.357e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.816e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
265         beta:  5.214e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
266           Eb:  1.130e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
564    Prefactor:  1.088e+00  2.291e-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:  8.060e-01  1.926e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/548958/likelihoodResults_533001601_533260801_4FGL_J0120.4-2701_daily_bin1133.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) = 5726.95525897
delta logL = 0.00635318609693

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5726.95522767
delta logL = 0.00638448291375

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .71741       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9448       1.0000          .0000       5.0000    
     3 'Normalizat'    .80481       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0890       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=   5726.955     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      250 TOTAL
                     EDM=   .91E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .71743        1.3652        .13770E-02    .17188E-03
   2  alpha         1.9449        1.1402        .28030E-01    .38965E-05
   3  Normalizat    .80481        .18812        .23710E-03   -.82950E-05
   4  Prefactor     1.0890        .22860        .25017E-03   -.12633E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.717433
  alpha      = 1.9449
  Normalizat = 0.804814
  Prefactor  = 1.08904
 **********
 **   18 **HESSE 
 **********

 FCN=   5726.955     FROM HESSE     STATUS=OK            25 CALLS      275 TOTAL
                     EDM=   .34E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .71743        1.3374        .55081E-04   -1.5539    
   2  alpha         1.9449        1.1200        .11212E-02   -.22391    
   3  Normalizat    .80481        .18827        .94841E-05   -.99890    
   4  Prefactor     1.0890        .22881        .10007E-04   -.89818    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.4016e-12
Minuit parameter uncertainties:
  1  1.33749
  2  1.16374
  3  0.188418
  4  0.229013
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/548958': 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) = 5726.95522767
delta logL = 0.00638448924656

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  7.174e-01  1.337e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.945e+00  1.164e+00  0.000e+00  5.000e+00 ( 1.000e+00)
265         beta:  5.214e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
266           Eb:  1.130e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
564    Prefactor:  1.089e+00  2.290e-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:  8.048e-01  1.884e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.44
Ra Dec: 20.123 -27.023

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/548958/cmap_HighResolution_533001601_533260801_4FGL_J0120.4-2701_daily_bin1133.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.33e-05', job_status='DONE', photon_flux_upper_limit='4.46e-08', time_completed='2021-08-13 23:38:13.389731', job_id='548958', GAL2='1.09', fit_tolerance='1e-08', EG2='0.80', EG='0.81', time_epoch_completed='1628923093.39', return_code2='0', ts='0.44', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='6.38e-03', ts2='0.45', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='1133' AND source_name='4FGL J0120.4-2701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 23:38:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 548958: <4FGL_J0120.4-2701_daily_bin1133> in cluster <slac> Done

Job <4FGL_J0120.4-2701_daily_bin1133> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Fri Aug 13 23:25:36 2021
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 23:26:46 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:26:46 2021
Terminated at Fri Aug 13 23:38:13 2021
Results reported at Fri Aug 13 23:38:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0120.4-2701_daily_bin1133 20.1227 -27.0229 533001601 533260801 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 :                                   603.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   687 sec.
    Turnaround time :                            757 sec.

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

