aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 11 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 = 7470
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0120.4-2701_daily_bin1680
RA = 20.1227, Dec = -27.0229
tmin = 674784001, tmax = 675043201
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='580362', job_status='RUN', time_executed='2022-05-24 00:10:04.700693', time_epoch_executed='1653376204.7' WHERE source_name='4FGL J0120.4-2701' and cadence='daily' and bin_id='1680'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/580362

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/580362/ft1_4FGL_J0120.4-2701_daily_bin1680.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/580362/ft2_4FGL_J0120.4-2701_daily_bin1680.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/580362/ft1_4FGL_J0120.4-2701_daily_bin1680.fits outfile=/scratch/kocevski/580362/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1680.fits ra=20.1227 dec=-27.0229 rad=12.0 tmin=674784001.0 tmax=675043201.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.64
user 3.33
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/580362/ft2_4FGL_J0120.4-2701_daily_bin1680.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/580362/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1680.fits evtable="EVENTS" outfile="/scratch/kocevski/580362/ft1_filtered_4FGL_J0120.4-2701_daily_bin1680.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.52
user 0.35
sys 0.15

Number of photons that the gtmktime cut: 491

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/580362/ft1_filtered_4FGL_J0120.4-2701_daily_bin1680.fits" evtable="EVENTS" scfile=/scratch/kocevski/580362/ft2_4FGL_J0120.4-2701_daily_bin1680.fits sctable="SC_DATA" outfile=/scratch/kocevski/580362/ltcube_674784001_675043201_4FGL_J0120.4-2701_daily_bin1680.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/580362/ft2_4FGL_J0120.4-2701_daily_bin1680.fits
.....................!
real 15.87
user 15.38
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/580362/ft1_filtered_4FGL_J0120.4-2701_daily_bin1680.fits evtable="EVENTS" scfile=/scratch/kocevski/580362/ft2_4FGL_J0120.4-2701_daily_bin1680.fits sctable="SC_DATA" expcube=/scratch/kocevski/580362/ltcube_674784001_675043201_4FGL_J0120.4-2701_daily_bin1680.fits outfile=/scratch/kocevski/580362/expmap_674784001_675043201_4FGL_J0120.4-2701_daily_bin1680.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/580362/ltcube_674784001_675043201_4FGL_J0120.4-2701_daily_bin1680.fits
.....................!
real 193.20
user 186.54
sys 5.35

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/580362/ft1_filtered_4FGL_J0120.4-2701_daily_bin1680.fits scfile=/scratch/kocevski/580362/ft2_4FGL_J0120.4-2701_daily_bin1680.fits outfile=/scratch/kocevski/580362/cmap_674784001_675043201_4FGL_J0120.4-2701_daily_bin1680.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/580362/ft1_filtered_4FGL_J0120.4-2701_daily_bin1680.fits scfile=/scratch/kocevski/580362/ft2_4FGL_J0120.4-2701_daily_bin1680.fits outfile=/scratch/kocevski/580362/cmap_HighResolution_674784001_675043201_4FGL_J0120.4-2701_daily_bin1680.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/580362/ft1_filtered_4FGL_J0120.4-2701_daily_bin1680.fits evtable="EVENTS" scfile=/scratch/kocevski/580362/ft2_4FGL_J0120.4-2701_daily_bin1680.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/580362/Model_4FGL_J0120.4-2701_daily_bin1680.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/580362/ft1_filtered_4FGL_J0120.4-2701_daily_bin1680.fits.....................!
real 46.42
user 44.41
sys 1.36

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.8818       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.8893       1.0000         .10000E-03   10000.    
     4 'norm      '    .28199       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.7249       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.6260       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.0970       1.0000         .10000E-03   10000.    
     9 'norm      '    .71089       1.0000         .10000E-03   10000.    
    10 'norm      '    1.2027       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.9426       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10658E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .12004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .16829       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    32.800       1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.006       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .91233       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .73915       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5670E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5450.400     FROM MIGRAD    STATUS=CONVERGED     56 CALLS     2318 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.8809        3.0193        .23087E-05   -.26374E-02
   2  Prefactor     .10000E-03    33.724       -.67413E-06** at limit **
   3  norm          8.8892        1.0404        .23990E-06   -.39577E-03
   4  norm          .28200        1.0726       -.49230E-05   -.38047E-02
   5  Prefactor     5.7229        3.2138        .32475E-05   -.25876E-02
   6  Prefactor     9.6271        1.3424        .73166E-06   -.11933E-02
   7  Prefactor     .10000E-03    1.6316       -.11663E-06** at limit **
   8  Prefactor     6.0976        1.6319       -.13188E-05    .13234E-02
   9  norm          .71093        1.0125        .47336E-06    .37029E-03
  10  norm          1.2028        1.4965       -.46551E-07   -.61293E-04
  11  Prefactor     7.9435        1.0552       -.29017E-06    .87056E-03
  12  Prefactor     .10000E-03    3.2729       -.22240E-06** at limit **
  13  norm          .10000E-03    3.0475        .25362E-06** at limit **
  14  norm          .16861        .40955        .45310E-06    .15718E-03
  15  Prefactor     .10000E-03    2.1974       -.74929E-07** at limit **
  16  norm          .10000E-03    .99626       -.68461E-07** at limit **
  17  Prefactor     32.802        1.1428        .23654E-06   -.32597E-02
  18  Prefactor     14.004        1.1264        .33646E-06   -.17089E-02
  19  Normalizat    .91250        .16259       -.16585E-05   -.26312E-04
  20  Prefactor     .73898        .19257        .12739E-05   -.39081E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.88095
  Prefactor  = 0.0001
  norm       = 8.88925
  norm       = 0.282002
  Prefactor  = 5.72293
  Prefactor  = 9.62714
  Prefactor  = 0.0001
  Prefactor  = 6.09761
  norm       = 0.710932
  norm       = 1.20278
  Prefactor  = 7.94348
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.168613
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 32.8017
  Prefactor  = 14.0042
  Normalizat = 0.9125
  Prefactor  = 0.738977
 **********
 **   18 **HESSE 
 **********

 FCN=   5450.400     FROM HESSE     STATUS=OK           353 CALLS     2671 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.8809        5.7190        .31868E-02   -1.5079    
   2  Prefactor     .10000E-03    33.709        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.8892        7.2814        .33609E-02   -1.5112    
   4  norm          .28200        2.1864        .10346E-01   -1.5602    
   5  Prefactor     5.7229        7.0924        .41968E-02   -1.5229    
   6  Prefactor     9.6271        15.145        .32291E-02   -1.5087    
   7  Prefactor     .10000E-03    1.5890        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.0976        5.8772        .40649E-02   -1.5214    
   9  norm          .71093        1.0819        .12104E-02   -1.5539    
  10  norm          1.2028        1.7065        .22704E-01   -1.5489    
  11  Prefactor     7.9435        9.2557        .35568E-02   -1.5144    
  12  Prefactor     .10000E-03    3.1507        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .50429        .29239E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .16861        1.1652        .25744E-01   -1.5626    
  15  Prefactor     .10000E-03    2.1109        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .98051        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     32.802        25.960        .17492E-02   -1.4562    
  18  Prefactor     14.004        9.6845        .26756E-02   -1.4959    
  19  Normalizat    .91250        .14026        .45059E-01   -.96022    
  20  Prefactor     .73898        .16319        .42920E-01   -1.0202    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.66363e-08
Minuit parameter uncertainties:
  1  5.71932
  2  1.06739e-05
  3  7.28209
  4  1.57025
  5  7.09348
  6  15.1511
  7  7.40555e-06
  8  5.87777
  9  1.0819
  10  1.70657
  11  9.25733
  12  0.000119224
  13  2.79362e-05
  14  0.886267
  15  4.43901e-06
  16  3.11561e-06
  17  25.9686
  18  9.68555
  19  0.14032
  20  0.163301
Done.

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

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  1.203e+00  1.707e+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:  7.390e-01  1.633e-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:  9.125e-01  1.403e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/580362/likelihoodResults_674784001_675043201_4FGL_J0120.4-2701_daily_bin1680.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) = 5450.31962616
delta logL = 0.0804792563058

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5450.3121454
delta logL = 0.0879600240296

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0198       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1980       1.0000          .0000       5.0000    
     3 'Normalizat'    .90756       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74254       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=   5450.312     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      206 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0176        27.772        .20019E-01    .13592E-02
   2  alpha         2.1990        3.4831        .41537        .47147E-04
   3  Normalizat    .90727        .30535E-01    .44998E-01    .14254E-02
   4  Prefactor     .74260        .35642E-01    .42965E-01    .77948E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.01757
  alpha      = 2.19902
  Normalizat = 0.907271
  Prefactor  = 0.742603
 **********
 **   18 **HESSE 
 **********

 FCN=   5450.312     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0176        1.6494        .94168E-03   -1.5506    
   2  alpha         2.1990        1.0517        .16829E-01   -.12068    
   3  Normalizat    .90727        .16180        .19310E-03   -.96205    
   4  Prefactor     .74260        .19250        .25087E-03   -1.0188    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69481e-09
Minuit parameter uncertainties:
  1  1.64952
  2  1.08608
  3  0.161883
  4  0.192676
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/580362': 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) = 5450.31213884
delta logL = 0.0879665798248

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  1.018e+00  1.650e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.199e+00  1.086e+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.426e-01  1.927e-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:  9.073e-01  1.619e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.13
Ra Dec: 20.123 -27.023
Photon Index (Free Index): 2.20 +/- 1.09
Photon Flux (Free Index): 1.49e-08 +/- 1.94e-08
Energy Flux (Free Index): 6.67e-06 +/- 1.11e-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/580362/cmap_HighResolution_674784001_675043201_4FGL_J0120.4-2701_daily_bin1680.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.42e-05', comment='SUCCESS', energy_flux2='6.67e-06', dlogl='8.80e-02', photon_flux2='1.49e-08', job_status='DONE', time_completed='2022-05-24 00:19:53.805367', photon_index_error2='1.09', photon_index2='2.20', ts='0.95', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', photon_flux_upper_limit='4.56e-08', energy_flux_error2='1.11e-05', EG='0.91', time_epoch_completed='1653376793.81', return_code='0', job_id='580362', GAL2='0.74', EG2='0.91', return_code2='0', photon_flux_error2='1.94e-08', ts2='1.13', photon_index='1.82' WHERE bin_id='1680' AND source_name='4FGL J0120.4-2701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue May 24 00:19:53 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 580362: <4FGL_J0120.4-2701_daily_bin1680> in cluster <slac> Done

Job <4FGL_J0120.4-2701_daily_bin1680> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue May 24 00:05:09 2022
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 00:09:38 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 24 00:09:38 2022
Terminated at Tue May 24 00:19:55 2022
Results reported at Tue May 24 00:19:55 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0120.4-2701_daily_bin1680 20.1227 -27.0229 674784001 675043201 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 :                                   587.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             369.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   616 sec.
    Turnaround time :                            886 sec.

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

