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


Performing analysis on: 4FGL_J0120.4-2701_daily_bin1251
RA = 20.1227, Dec = -27.0229
tmin = 563587201, tmax = 563846401
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='549131', job_status='RUN', time_executed='2021-08-13 23:30:49.820726', time_epoch_executed='1628922649.82' WHERE source_name='4FGL J0120.4-2701' and cadence='daily' and bin_id='1251'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/549131

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/549131/ft1_4FGL_J0120.4-2701_daily_bin1251.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/549131/ft2_4FGL_J0120.4-2701_daily_bin1251.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/549131/ft1_4FGL_J0120.4-2701_daily_bin1251.fits outfile=/scratch/kocevski/549131/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1251.fits ra=20.1227 dec=-27.0229 rad=12.0 tmin=563587201.0 tmax=563846401.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 6.00
user 2.56
sys 3.31

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/549131/ft1_filtered_4FGL_J0120.4-2701_daily_bin1251.fits" evtable="EVENTS" scfile=/scratch/kocevski/549131/ft2_4FGL_J0120.4-2701_daily_bin1251.fits sctable="SC_DATA" outfile=/scratch/kocevski/549131/ltcube_563587201_563846401_4FGL_J0120.4-2701_daily_bin1251.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/549131/ft2_4FGL_J0120.4-2701_daily_bin1251.fits
.....................!
real 16.91
user 13.01
sys 3.83

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/549131/ft1_filtered_4FGL_J0120.4-2701_daily_bin1251.fits evtable="EVENTS" scfile=/scratch/kocevski/549131/ft2_4FGL_J0120.4-2701_daily_bin1251.fits sctable="SC_DATA" expcube=/scratch/kocevski/549131/ltcube_563587201_563846401_4FGL_J0120.4-2701_daily_bin1251.fits outfile=/scratch/kocevski/549131/expmap_563587201_563846401_4FGL_J0120.4-2701_daily_bin1251.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/549131/ltcube_563587201_563846401_4FGL_J0120.4-2701_daily_bin1251.fits
.....................!
real 195.69
user 185.51
sys 9.65

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/549131/ft1_filtered_4FGL_J0120.4-2701_daily_bin1251.fits scfile=/scratch/kocevski/549131/ft2_4FGL_J0120.4-2701_daily_bin1251.fits outfile=/scratch/kocevski/549131/cmap_563587201_563846401_4FGL_J0120.4-2701_daily_bin1251.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 3.66
user 0.38
sys 3.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/549131/ft1_filtered_4FGL_J0120.4-2701_daily_bin1251.fits scfile=/scratch/kocevski/549131/ft2_4FGL_J0120.4-2701_daily_bin1251.fits outfile=/scratch/kocevski/549131/cmap_HighResolution_563587201_563846401_4FGL_J0120.4-2701_daily_bin1251.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 3.68
user 0.37
sys 3.29

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/549131/ft1_filtered_4FGL_J0120.4-2701_daily_bin1251.fits evtable="EVENTS" scfile=/scratch/kocevski/549131/ft2_4FGL_J0120.4-2701_daily_bin1251.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/549131/Model_4FGL_J0120.4-2701_daily_bin1251.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/549131/ft1_filtered_4FGL_J0120.4-2701_daily_bin1251.fits.....................!
real 42.02
user 36.46
sys 5.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.337       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.3189       1.0000         .10000E-03   10000.    
     4 'norm      '    2.2722       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11672E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.8866       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.5361       1.0000         .10000E-03   10000.    
    13 'norm      '    1.9003       1.0000         .10000E-03   10000.    
    14 'norm      '    .37580E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.3235       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.408       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3728       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .59877       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=   4104.894     FROM MIGRAD    STATUS=CONVERGED    428 CALLS     1758 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.336        7.7060        .24773E-02   -.83467E-04
   2  Prefactor     .10008E-03    71.555        .90712E-02** at limit **
   3  norm          5.3176        10.730        .43566E-02    .13635E-02
   4  norm          2.2723        2.9807        .68110E-02    .22017E-03
   5  Prefactor     .10000E-03    3.6061        .90712E-02** at limit **
   6  Prefactor     .10000E-03    12.062        .90712E-02** at limit **
   7  Prefactor     .10000E-03    3.1590        .37849E-01** at limit **
   8  Prefactor     .10000E-03    13.622        .90712E-02** at limit **
   9  norm          .10000E-03    1.5900        .90712E-02** at limit **
  10  norm          3.8864        2.9326        .51167E-02    .68893E-04
  11  Prefactor     .10000E-03    12.323        .90712E-02** at limit **
  12  Prefactor     4.5385        6.5930        .47255E-02    .27863E-03
  13  norm          1.9003        1.7723        .75428E-02   -.22541E-04
  14  norm          .28467E-01    1.5833        .58736E-01   -.85902E-03
  15  Prefactor     .10000E-03    3.0785        .90712E-02** at limit **
  16  norm          3.3243        3.2303        .55510E-02    .16869E-03
  17  Prefactor     .10000E-03    23.296        .90712E-02** at limit **
  18  Prefactor     14.398        16.535        .26380E-02   -.69321E-03
  19  Normalizat    1.3731        .20089        .45907E-01    .61806E-05
  20  Prefactor     .59845        .21408        .72659E-01    .75523E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 16.3357
  Prefactor  = 0.000100082
  norm       = 5.31762
  norm       = 2.27233
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.88644
  Prefactor  = 0.000100004
  Prefactor  = 4.53847
  norm       = 1.90025
  norm       = 0.0284673
  Prefactor  = 0.0001
  norm       = 3.3243
  Prefactor  = 0.000100001
  Prefactor  = 14.3984
  Normalizat = 1.37307
  Prefactor  = 0.598453
 **********
 **   18 **HESSE 
 **********

 FCN=   4104.894     FROM HESSE     STATUS=OK           295 CALLS     2053 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.336        7.7050        .99092E-04   -1.4899    
   2  Prefactor     .10008E-03    71.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.3176        10.721        .87133E-03   -1.5247    
   4  norm          2.2723        2.9636        .12185E-03   -1.5406    
   5  Prefactor     .10000E-03    3.6154        .11880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.9975        .21731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.6042        .78710E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.8864        2.9278        .92015E-04   -1.5314    
  11  Prefactor     .10000E-03    12.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.5385        6.5867        .18603E-03   -1.5282    
  13  norm          1.9003        1.7788        .80032E-04   -1.5432    
  14  norm          .28467E-01    65.285        .15066E-02   -1.5674    
  15  Prefactor     .10000E-03    3.1581        .21938E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.3243        3.2477        .10805E-03   -1.5343    
  17  Prefactor     .10000E-03    23.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.398        16.558        .10552E-03   -1.4949    
  19  Normalizat    1.3731        .23442        .20293E-03   -.81411    
  20  Prefactor     .59845        .24805        .32166E-03   -1.0765    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79797e-08
Minuit parameter uncertainties:
  1  7.70547
  2  0.00484996
  3  10.7253
  4  2.96383
  5  1.02958e-06
  6  0.000428654
  7  1.65173e-05
  8  7.86615e-06
  9  6.67549e-06
  10  2.92792
  11  0.000451842
  12  6.58771
  13  1.77886
  14  2.7247
  15  8.95386e-06
  16  3.2479
  17  0.000346405
  18  16.5632
  19  0.234601
  20  0.248508
Done.

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

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  3.886e+00  2.928e+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.985e-01  2.485e-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.373e+00  2.346e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.58
Ra Dec: 20.123 -27.023
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 3.37e-08 +/- 2.54e-08
Energy Flux (Fixed Index): 3.27e-05 +/- 2.46e-05

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

Saving results to:
/scratch/kocevski/549131/likelihoodResults_563587201_563846401_4FGL_J0120.4-2701_daily_bin1251.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) = 4104.56158101
delta logL = 0.332522494085

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4104.50998943
delta logL = 0.384114067157

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .65050       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6434       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2343       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70977       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=   4104.510     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      292 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .64865        5.8544        .61796E-02   -.11179E-04
   2  alpha         3.6453        4.0401        .18416        .32781E-04
   3  Normalizat    1.2341        .67756E-01    .34100E-01   -.28882E-04
   4  Prefactor     .70982        .72954E-01    .67362E-01    .57213E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.648653
  alpha      = 3.64531
  Normalizat = 1.23412
  Prefactor  = 0.709821
 **********
 **   18 **HESSE 
 **********

 FCN=   4104.510     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      323 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .64865        9.5442        .27660E-04   -1.5547    
   2  alpha         3.6453        4.3023        .77703E-02    .47588    
   3  Normalizat    1.2341        .24623        .21174E-03   -.85555    
   4  Prefactor     .70982        .26778        .29806E-03   -1.0314    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.50171e-10
Minuit parameter uncertainties:
  1  4.97686
  2  4.14685
  3  0.246463
  4  0.268263
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/549131': 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): 102
logL (Free Index) = 4104.50998855
delta logL = 0.384114952793

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  6.487e-01  4.977e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  3.645e+00  4.147e+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:  7.098e-01  2.683e-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.234e+00  2.465e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.53
Ra Dec: 20.123 -27.023
Photon Index (Free Index): 3.65 +/- 4.15
Photon Flux (Free Index): 1.36e-07 +/- 1.24e-07
Energy Flux (Free Index): 2.26e-05 +/- 1.45e-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/549131/cmap_HighResolution_563587201_563846401_4FGL_J0120.4-2701_daily_bin1251.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.21e-05', comment='SUCCESS', photon_flux='3.37e-08', energy_flux2='2.26e-05', photon_flux_error='2.54e-08', dlogl='3.84e-01', energy_flux='3.27e-05', photon_flux2='1.36e-07', job_status='DONE', time_completed='2021-08-13 23:39:47.312309', photon_index_error2='4.15', photon_index2='3.65', ts='3.58', fit_tolerance='1e-08', GAL='0.60', photon_index_error='0.00', photon_flux_upper_limit='9.48e-08', energy_flux_error2='1.45e-05', EG='1.37', time_epoch_completed='1628923187.31', return_code='0', job_id='549131', GAL2='0.71', EG2='1.23', return_code2='102', energy_flux_error='2.46e-05', photon_flux_error2='1.24e-07', ts2='4.53', photon_index='1.82' WHERE bin_id='1251' AND source_name='4FGL J0120.4-2701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 23:39:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 549131: <4FGL_J0120.4-2701_daily_bin1251> in cluster <slac> Done

Job <4FGL_J0120.4-2701_daily_bin1251> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Fri Aug 13 23:25:48 2021
Job was executed on host(s) <bullet0148>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 23:27:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 13 23:27:58 2021
Terminated at Fri Aug 13 23:39:48 2021
Results reported at Fri Aug 13 23:39:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0120.4-2701_daily_bin1251 20.1227 -27.0229 563587201 563846401 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 :                                   579.49 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   709 sec.
    Turnaround time :                            840 sec.

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

