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


Performing analysis on: 4FGL_J0120.4-2701_daily_bin1539
RA = 20.1227, Dec = -27.0229
tmin = 638236801, tmax = 638496001
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='550334', job_status='RUN', time_executed='2021-08-13 23:35:43.096648', time_epoch_executed='1628922943.1' WHERE source_name='4FGL J0120.4-2701' and cadence='daily' and bin_id='1539'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/550334

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/550334/ft1_4FGL_J0120.4-2701_daily_bin1539.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/550334/ft2_4FGL_J0120.4-2701_daily_bin1539.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/550334/ft1_4FGL_J0120.4-2701_daily_bin1539.fits outfile=/scratch/kocevski/550334/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1539.fits ra=20.1227 dec=-27.0229 rad=12.0 tmin=638236801.0 tmax=638496001.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 4.30
user 2.79
sys 1.43

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/550334/ft2_4FGL_J0120.4-2701_daily_bin1539.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/550334/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1539.fits evtable="EVENTS" outfile="/scratch/kocevski/550334/ft1_filtered_4FGL_J0120.4-2701_daily_bin1539.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 1.74
user 0.28
sys 1.43

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/550334/ft1_filtered_4FGL_J0120.4-2701_daily_bin1539.fits" evtable="EVENTS" scfile=/scratch/kocevski/550334/ft2_4FGL_J0120.4-2701_daily_bin1539.fits sctable="SC_DATA" outfile=/scratch/kocevski/550334/ltcube_638236801_638496001_4FGL_J0120.4-2701_daily_bin1539.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/550334/ft2_4FGL_J0120.4-2701_daily_bin1539.fits
.....................!
real 12.85
user 11.09
sys 1.71

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/550334/ft1_filtered_4FGL_J0120.4-2701_daily_bin1539.fits evtable="EVENTS" scfile=/scratch/kocevski/550334/ft2_4FGL_J0120.4-2701_daily_bin1539.fits sctable="SC_DATA" expcube=/scratch/kocevski/550334/ltcube_638236801_638496001_4FGL_J0120.4-2701_daily_bin1539.fits outfile=/scratch/kocevski/550334/expmap_638236801_638496001_4FGL_J0120.4-2701_daily_bin1539.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/550334/ltcube_638236801_638496001_4FGL_J0120.4-2701_daily_bin1539.fits
.....................!
real 158.00
user 151.75
sys 5.87

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/550334/ft1_filtered_4FGL_J0120.4-2701_daily_bin1539.fits scfile=/scratch/kocevski/550334/ft2_4FGL_J0120.4-2701_daily_bin1539.fits outfile=/scratch/kocevski/550334/cmap_638236801_638496001_4FGL_J0120.4-2701_daily_bin1539.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 1.73
user 0.31
sys 1.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/550334/ft1_filtered_4FGL_J0120.4-2701_daily_bin1539.fits scfile=/scratch/kocevski/550334/ft2_4FGL_J0120.4-2701_daily_bin1539.fits outfile=/scratch/kocevski/550334/cmap_HighResolution_638236801_638496001_4FGL_J0120.4-2701_daily_bin1539.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 1.74
user 0.33
sys 1.40

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/550334/ft1_filtered_4FGL_J0120.4-2701_daily_bin1539.fits evtable="EVENTS" scfile=/scratch/kocevski/550334/ft2_4FGL_J0120.4-2701_daily_bin1539.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/550334/Model_4FGL_J0120.4-2701_daily_bin1539.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/550334/ft1_filtered_4FGL_J0120.4-2701_daily_bin1539.fits.....................!
real 40.06
user 37.24
sys 2.73

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    33.609       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.9985       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .35597E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.707       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.1241       1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.119       1.0000         .10000E-03   10000.    
     9 'norm      '    .20121E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .33281       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.7586       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11071E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10111E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.583       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.807       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .80935       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .96251       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=   5674.543     FROM MIGRAD    STATUS=CONVERGED    460 CALLS     1849 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          33.610        8.9233        .17280E-02    .20531E-03
   2  Prefactor     .10000E-03    47.656        .90712E-02** at limit **
   3  norm          .10000E-03    6.1486        .90712E-02** at limit **
   4  norm          2.9986        2.2688        .58604E-02   -.15024E-03
   5  Prefactor     .10001E-03    2.9890        .72502E-01** at limit **
   6  Prefactor     23.708        13.109        .20567E-02    .77394E-03
   7  Prefactor     2.1249        2.7684        .70736E-02    .52382E-03
   8  Prefactor     15.107        8.8265        .25752E-02    .41353E-04
   9  norm          .10000E-03    1.4322        .27203E-01** at limit **
  10  norm          .33286        1.5371        .32684E-01    .11132E-02
  11  Prefactor     .10000E-03    6.5126        .90712E-02** at limit **
  12  Prefactor     1.7583        3.0827        .79001E-02    .61747E-03
  13  norm          .10000E-03    .36825        .90712E-02** at limit **
  14  norm          .10000E-03    .59499        .90712E-02** at limit **
  15  Prefactor     .10000E-03    1.7187        .63497E-01** at limit **
  16  norm          .10000E-03    1.1051        .31290E-01** at limit **
  17  Prefactor     22.568        28.645        .21072E-02    .13844E-02
  18  Prefactor     15.807        9.7484        .25185E-02    .54645E-03
  19  Normalizat    .80918        .15139        .43732E-01   -.40474E-03
  20  Prefactor     .96266        .17900        .45797E-01   -.38284E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 33.6097
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 2.99859
  Prefactor  = 0.00010001
  Prefactor  = 23.7079
  Prefactor  = 2.12486
  Prefactor  = 15.1066
  norm       = 0.0001
  norm       = 0.332863
  Prefactor  = 0.0001
  Prefactor  = 1.75832
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 22.568
  Prefactor  = 15.8073
  Normalizat = 0.809175
  Prefactor  = 0.962661
 **********
 **   18 **HESSE 
 **********

 FCN=   5674.543     FROM HESSE     STATUS=OK           299 CALLS     2148 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          33.610        8.9158        .69122E-04   -1.4548    
   2  Prefactor     .10000E-03    47.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    6.1613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.9986        2.2669        .95925E-04   -1.5362    
   5  Prefactor     .10001E-03    5.7627        .43374E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     23.708        13.006        .82269E-04   -1.4734    
   7  Prefactor     2.1249        2.7570        .13644E-03   -1.5416    
   8  Prefactor     15.107        8.4219        .10301E-03   -1.4930    
   9  norm          .10000E-03    3.3628        .16439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .33286        2.6108        .17472E-02   -1.5593    
  11  Prefactor     .10000E-03    6.5361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.7583        3.0171        .16246E-03   -1.5443    
  13  norm          .10000E-03    .38499        .89219E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .60696        .56669E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    29.225        .18895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.7399        .15259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     22.568        28.631        .84288E-04   -1.4757    
  18  Prefactor     15.807        9.7464        .10074E-03   -1.4913    
  19  Normalizat    .80918        .17756        .21899E-03   -.99729    
  20  Prefactor     .96266        .21235        .24594E-03   -.93985    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.07748e-08
Minuit parameter uncertainties:
  1  8.91617
  2  0.000331965
  3  3.7678e-05
  4  2.267
  5  0.000476286
  6  13.0079
  7  2.75721
  8  8.42258
  9  4.96994e-05
  10  1.86428
  11  6.78857e-05
  12  3.01738
  13  5.62513e-06
  14  9.96628e-06
  15  0.000220125
  16  1.28017e-05
  17  28.6482
  18  9.74735
  19  0.177683
  20  0.212536
Done.

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

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  3.329e-01  1.864e+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.627e-01  2.125e-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.092e-01  1.777e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/550334/likelihoodResults_638236801_638496001_4FGL_J0120.4-2701_daily_bin1539.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) = 5674.27459293
delta logL = 0.267954019278

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5674.24591618
delta logL = 0.296630775295

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .56457       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7866       1.0000          .0000       5.0000    
     3 'Normalizat'    .79112       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96979       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=   5674.246     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      207 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .56671        13.074        .11532E-01    .14053E-02
   2  alpha         2.7862        3.8152        .41499        .41996E-04
   3  Normalizat    .79105        .26449E-01    .43494E-01   -.54611E-04
   4  Prefactor     .96968        .32321E-01    .45888E-01   -.17010E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.566709
  alpha      = 2.78624
  Normalizat = 0.791049
  Prefactor  = 0.969675
 **********
 **   18 **HESSE 
 **********

 FCN=   5674.246     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .56671        1.5659        .76765E-04   -1.5557    
   2  alpha         2.7862        1.4003        .14121E-01    .11475    
   3  Normalizat    .79105        .17535        .22111E-03   -1.0040    
   4  Prefactor     .96968        .21222        .24496E-03   -.93747    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.32364e-11
Minuit parameter uncertainties:
  1  1.56599
  2  1.48764
  3  0.17548
  4  0.212404
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/550334': 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) = 5674.2459123
delta logL = 0.296634650434

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  5.667e-01  1.566e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.786e+00  1.488e+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:  9.697e-01  2.124e-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.910e-01  1.755e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
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/550334/cmap_HighResolution_638236801_638496001_4FGL_J0120.4-2701_daily_bin1539.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.53e-05', job_status='DONE', photon_flux_upper_limit='4.66e-08', time_completed='2021-08-13 23:43:53.723152', job_id='550334', GAL2='0.97', fit_tolerance='1e-08', EG2='0.79', EG='0.81', time_epoch_completed='1628923433.72', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='2.97e-01', ts2='0.63', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='1539' AND source_name='4FGL J0120.4-2701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 23:43:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0135>
Subject: Job 550334: <4FGL_J0120.4-2701_daily_bin1539> in cluster <slac> Done

Job <4FGL_J0120.4-2701_daily_bin1539> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Aug 13 23:30:41 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 23:32:02 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 13 23:32:02 2021
Terminated at Fri Aug 13 23:43:54 2021
Results reported at Fri Aug 13 23:43:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0120.4-2701_daily_bin1539 20.1227 -27.0229 638236801 638496001 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 :                                   503.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             267.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   712 sec.
    Turnaround time :                            793 sec.

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

