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


Performing analysis on: 4FGL_J0120.4-2701_daily_bin1313
RA = 20.1227, Dec = -27.0229
tmin = 579657601, tmax = 579916801
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='549206', job_status='RUN', time_executed='2021-08-13 23:29:47.532147', time_epoch_executed='1628922587.53' WHERE source_name='4FGL J0120.4-2701' and cadence='daily' and bin_id='1313'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/549206

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/549206/ft1_4FGL_J0120.4-2701_daily_bin1313.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/549206/ft2_4FGL_J0120.4-2701_daily_bin1313.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/549206/ft1_4FGL_J0120.4-2701_daily_bin1313.fits outfile=/scratch/kocevski/549206/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1313.fits ra=20.1227 dec=-27.0229 rad=12.0 tmin=579657601.0 tmax=579916801.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.68
user 3.25
sys 1.40

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/549206/ft2_4FGL_J0120.4-2701_daily_bin1313.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/549206/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1313.fits evtable="EVENTS" outfile="/scratch/kocevski/549206/ft1_filtered_4FGL_J0120.4-2701_daily_bin1313.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.34
sys 1.36

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/549206/ft1_filtered_4FGL_J0120.4-2701_daily_bin1313.fits" evtable="EVENTS" scfile=/scratch/kocevski/549206/ft2_4FGL_J0120.4-2701_daily_bin1313.fits sctable="SC_DATA" outfile=/scratch/kocevski/549206/ltcube_579657601_579916801_4FGL_J0120.4-2701_daily_bin1313.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/549206/ft2_4FGL_J0120.4-2701_daily_bin1313.fits
.....................!
real 15.84
user 13.98
sys 1.69

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/549206/ft1_filtered_4FGL_J0120.4-2701_daily_bin1313.fits evtable="EVENTS" scfile=/scratch/kocevski/549206/ft2_4FGL_J0120.4-2701_daily_bin1313.fits sctable="SC_DATA" expcube=/scratch/kocevski/549206/ltcube_579657601_579916801_4FGL_J0120.4-2701_daily_bin1313.fits outfile=/scratch/kocevski/549206/expmap_579657601_579916801_4FGL_J0120.4-2701_daily_bin1313.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/549206/ltcube_579657601_579916801_4FGL_J0120.4-2701_daily_bin1313.fits
.....................!
real 193.39
user 186.44
sys 6.28

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/549206/ft1_filtered_4FGL_J0120.4-2701_daily_bin1313.fits scfile=/scratch/kocevski/549206/ft2_4FGL_J0120.4-2701_daily_bin1313.fits outfile=/scratch/kocevski/549206/cmap_579657601_579916801_4FGL_J0120.4-2701_daily_bin1313.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.75
user 0.41
sys 1.31

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/549206/ft1_filtered_4FGL_J0120.4-2701_daily_bin1313.fits scfile=/scratch/kocevski/549206/ft2_4FGL_J0120.4-2701_daily_bin1313.fits outfile=/scratch/kocevski/549206/cmap_HighResolution_579657601_579916801_4FGL_J0120.4-2701_daily_bin1313.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.40
sys 1.30

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/549206/ft1_filtered_4FGL_J0120.4-2701_daily_bin1313.fits evtable="EVENTS" scfile=/scratch/kocevski/549206/ft2_4FGL_J0120.4-2701_daily_bin1313.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/549206/Model_4FGL_J0120.4-2701_daily_bin1313.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/549206/ft1_filtered_4FGL_J0120.4-2701_daily_bin1313.fits.....................!
real 52.95
user 49.99
sys 2.83

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6149       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10518E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    19.060       1.0000         .10000E-03   10000.    
     4 'norm      '    .79731       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.4760       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.3211       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.382       1.0000         .10000E-03   10000.    
     9 'norm      '    .10248E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.8909       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12483       1.0000         .10000E-03   10000.    
    13 'norm      '    .37624       1.0000         .10000E-03   10000.    
    14 'norm      '    .10102E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9118       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.779       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .96394       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .81570       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=   6301.483     FROM MIGRAD    STATUS=CONVERGED     87 CALLS     1493 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6159        4.5203       -.33797E-06   -.36314E-03
   2  Prefactor     .10001E-03    57.175       -.63908E-06** at limit **
   3  norm          19.057        1.0403        .79561E-08    .14210E-03
   4  norm          .79727        1.7931       -.41761E-07   -.56064E-06
   5  Prefactor     1.4760        2.8016        .33558E-05    .13041E-02
   6  Prefactor     .10000E-03    2.3143       -.21624E-06** at limit **
   7  Prefactor     1.3219        2.3647        .19523E-06    .10230E-03
   8  Prefactor     13.368        7.0630       -.19467E-07    .47776E-02
   9  norm          .10000E-03    1.1456       -.52804E-07** at limit **
  10  norm          2.8909        1.7390       -.43837E-07   -.33946E-04
  11  Prefactor     .10000E-03    8.5560       -.97565E-06** at limit **
  12  Prefactor     .15230        8.9972       -.23918E-05    .16225E-02
  13  norm          .37625        .58407        .35613E-07   -.21298E-04
  14  norm          .10000E-03    1.3753       -.10969E-06** at limit **
  15  Prefactor     1.9122        2.0671        .44343E-07    .68212E-04
  16  norm          .10000E-03    1.2796       -.22702E-06** at limit **
  17  Prefactor     .10002E-03    14.171       -.67279E-06** at limit **
  18  Prefactor     14.783        1.2874       -.10287E-06    .11609E-02
  19  Normalizat    .96366        .15619       -.54311E-06   -.66843E-05
  20  Prefactor     .81587        .18903       -.17987E-07   -.86730E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.61589
  Prefactor  = 0.000100006
  norm       = 19.0573
  norm       = 0.797271
  Prefactor  = 1.47603
  Prefactor  = 0.0001
  Prefactor  = 1.32187
  Prefactor  = 13.368
  norm       = 0.0001
  norm       = 2.89087
  Prefactor  = 0.0001
  Prefactor  = 0.152296
  norm       = 0.376251
  norm       = 0.0001
  Prefactor  = 1.91218
  norm       = 0.0001
  Prefactor  = 0.000100022
  Prefactor  = 14.7833
  Normalizat = 0.963658
  Prefactor  = 0.81587
 **********
 **   18 **HESSE 
 **********

 FCN=   6301.483     FROM HESSE     STATUS=OK           355 CALLS     1848 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6159        4.5361        .53127E-02   -1.5328    
   2  Prefactor     .10001E-03    57.225        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          19.057        10.451        .22935E-02   -1.4835    
   4  norm          .79727        1.9683        .36236E-01   -1.5529    
   5  Prefactor     1.4760        2.8832        .88372E-02   -1.5465    
   6  Prefactor     .10000E-03    2.3102        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.3219        2.4033        .95699E-02   -1.5478    
   8  Prefactor     13.368        8.1575        .27373E-02   -1.4977    
   9  norm          .10000E-03    .76778        .36428E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.8909        1.7393        .59754E-02   -1.5368    
  11  Prefactor     .10000E-03    8.4524        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .15230        1.8331        .65771E-01   -1.5630    
  13  norm          .37625        .72148        .18099E-01   -1.5585    
  14  norm          .10000E-03    .87424        .28429E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.9122        2.0719        .75162E-02   -1.5431    
  16  norm          .10000E-03    1.2432        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10002E-03    14.995        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.783        12.296        .26046E-02   -1.4939    
  19  Normalizat    .96366        .13718        .45714E-01   -.94258    
  20  Prefactor     .81587        .16060        .43921E-01   -.99146    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04166e-07
Minuit parameter uncertainties:
  1  4.53657
  2  0.0011959
  3  10.452
  4  1.96847
  5  2.88342
  6  1.01758e-07
  7  2.4035
  8  8.15815
  9  2.73991e-07
  10  1.73929
  11  1.78874e-06
  12  1.05644
  13  0.721497
  14  8.10243e-08
  15  2.072
  16  4.30899e-07
  17  0.0011453
  18  12.2979
  19  0.137234
  20  0.160688
Done.

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

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  2.891e+00  1.739e+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:  8.159e-01  1.607e-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.637e-01  1.372e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.83
Ra Dec: 20.123 -27.023
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 2.51e-08 +/- 1.51e-08
Energy Flux (Fixed Index): 2.43e-05 +/- 1.46e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6301.2765416
delta logL = 0.206811269156

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6301.26860816
delta logL = 0.214744708104

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7203       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5220       1.0000          .0000       5.0000    
     3 'Normalizat'    .96964       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81430       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=   6301.269     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      200 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7204        1.9338        .61730E-02    .15617E-04
   2  alpha         1.5221        .40521        .31609       -.21389E-04
   3  Normalizat    .96965        .13198        .45785E-01    .20324E-05
   4  Prefactor     .81430        .15937        .43903E-01    .14094E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.7204
  alpha      = 1.52209
  Normalizat = 0.969646
  Prefactor  = 0.814297
 **********
 **   18 **HESSE 
 **********

 FCN=   6301.269     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .57E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7204        1.9176        .82987E-04   -1.5378    
   2  alpha         1.5221        .44731        .12512E-01   -.40190    
   3  Normalizat    .96965        .15536        .19645E-03   -.94054    
   4  Prefactor     .81430        .18788        .25565E-03   -.99203    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.67642e-13
Minuit parameter uncertainties:
  1  1.91765
  2  0.450175
  3  0.155433
  4  0.188025
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/549206': 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) = 6301.26860815
delta logL = 0.214744718276

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
564    Prefactor:  8.143e-01  1.880e-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.696e-01  1.554e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.25
Ra Dec: 20.123 -27.023
Photon Index (Free Index): 1.52 +/- 0.45
Photon Flux (Free Index): 1.77e-08 +/- 1.56e-08
Energy Flux (Free Index): 3.83e-05 +/- 3.71e-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/549206/cmap_HighResolution_579657601_579916801_4FGL_J0120.4-2701_daily_bin1313.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.51e-08', energy_flux2='3.83e-05', photon_flux_error='1.51e-08', dlogl='2.15e-01', energy_flux='2.43e-05', photon_flux2='1.77e-08', job_status='DONE', time_completed='2021-08-13 23:38:47.237328', photon_index_error2='0.45', photon_index2='1.52', ts='15.83', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='3.71e-05', EG='0.96', time_epoch_completed='1628923127.24', return_code='0', job_id='549206', GAL2='0.81', EG2='0.97', return_code2='0', energy_flux_error='1.46e-05', photon_flux_error2='1.56e-08', ts2='16.25', photon_index='1.82' WHERE bin_id='1313' AND source_name='4FGL J0120.4-2701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 23:38:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0029>
Subject: Job 549206: <4FGL_J0120.4-2701_daily_bin1313> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0120.4-2701_daily_bin1313 20.1227 -27.0229 579657601 579916801 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 :                                   554.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             263.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   612 sec.
    Turnaround time :                            775 sec.

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

