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


Performing analysis on: 4FGL_J0120.4-2701_daily_bin1606
RA = 20.1227, Dec = -27.0229
tmin = 655603201, tmax = 655862401
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='139409', job_status='RUN', time_executed='2021-12-07 12:08:26.629337', time_epoch_executed='1638907706.63' WHERE source_name='4FGL J0120.4-2701' and cadence='daily' and bin_id='1606'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/139409

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/139409/ft1_4FGL_J0120.4-2701_daily_bin1606.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/139409/ft2_4FGL_J0120.4-2701_daily_bin1606.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/139409/ft1_4FGL_J0120.4-2701_daily_bin1606.fits outfile=/scratch/kocevski/139409/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1606.fits ra=20.1227 dec=-27.0229 rad=12.0 tmin=655603201.0 tmax=655862401.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.28
user 4.02
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/139409/ft2_4FGL_J0120.4-2701_daily_bin1606.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/139409/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1606.fits evtable="EVENTS" outfile="/scratch/kocevski/139409/ft1_filtered_4FGL_J0120.4-2701_daily_bin1606.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.50
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/139409/ft1_filtered_4FGL_J0120.4-2701_daily_bin1606.fits" evtable="EVENTS" scfile=/scratch/kocevski/139409/ft2_4FGL_J0120.4-2701_daily_bin1606.fits sctable="SC_DATA" outfile=/scratch/kocevski/139409/ltcube_655603201_655862401_4FGL_J0120.4-2701_daily_bin1606.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/139409/ft2_4FGL_J0120.4-2701_daily_bin1606.fits
.....................!
real 13.56
user 13.17
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/139409/ft1_filtered_4FGL_J0120.4-2701_daily_bin1606.fits evtable="EVENTS" scfile=/scratch/kocevski/139409/ft2_4FGL_J0120.4-2701_daily_bin1606.fits sctable="SC_DATA" expcube=/scratch/kocevski/139409/ltcube_655603201_655862401_4FGL_J0120.4-2701_daily_bin1606.fits outfile=/scratch/kocevski/139409/expmap_655603201_655862401_4FGL_J0120.4-2701_daily_bin1606.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/139409/ltcube_655603201_655862401_4FGL_J0120.4-2701_daily_bin1606.fits
.....................!
real 192.76
user 186.96
sys 4.93

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/139409/ft1_filtered_4FGL_J0120.4-2701_daily_bin1606.fits scfile=/scratch/kocevski/139409/ft2_4FGL_J0120.4-2701_daily_bin1606.fits outfile=/scratch/kocevski/139409/cmap_655603201_655862401_4FGL_J0120.4-2701_daily_bin1606.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/139409/ft1_filtered_4FGL_J0120.4-2701_daily_bin1606.fits scfile=/scratch/kocevski/139409/ft2_4FGL_J0120.4-2701_daily_bin1606.fits outfile=/scratch/kocevski/139409/cmap_HighResolution_655603201_655862401_4FGL_J0120.4-2701_daily_bin1606.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/139409/ft1_filtered_4FGL_J0120.4-2701_daily_bin1606.fits evtable="EVENTS" scfile=/scratch/kocevski/139409/ft2_4FGL_J0120.4-2701_daily_bin1606.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/139409/Model_4FGL_J0120.4-2701_daily_bin1606.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/139409/ft1_filtered_4FGL_J0120.4-2701_daily_bin1606.fits......................!
real 37.42
user 36.05
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.5089       1.0000         .10000E-03   10000.    
     2 'Prefactor '    142.39       1.0000         .10000E-03   10000.    
     3 'norm      '    .10273E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    6.1928       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10651E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .75475       1.0000         .10000E-03   10000.    
    10 'norm      '    1.5406       1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.139       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.5096       1.0000         .10000E-03   10000.    
    13 'norm      '    1.2899       1.0000         .10000E-03   10000.    
    14 'norm      '    .19496E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .64849       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.897       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .79464       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .98926       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5670E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3726.448     FROM MIGRAD    STATUS=CONVERGED    411 CALLS     2152 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.5110        7.7735        .73732E-07   -.15396E-04
   2  Prefactor     142.56        177.72       -.19041E-05    .99968E-05
   3  norm          .10000E-03    22.509        .49973E-05** at limit **
   4  norm          6.1911        4.5778        .97203E-07    .59816E-04
   5  Prefactor     .10000E-03    2.5620        .14481E-06** at limit **
   6  Prefactor     .10000E-03    5.0568        .69961E-07** at limit **
   7  Prefactor     .10000E-03    2.9409       -.78958E-06** at limit **
   8  Prefactor     .10000E-03    10.571       -.55808E-07** at limit **
   9  norm          .75341        2.0740        .13944E-05    .55074E-03
  10  norm          1.5406        1.5402       -.13644E-07   -.10873E-05
  11  Prefactor     29.146        17.745       -.17582E-07    .41960E-04
  12  Prefactor     2.5096        4.5810       -.20796E-06   -.10242E-03
  13  norm          1.2901        1.6052        .46639E-07   -.72940E-04
  14  norm          .10003E-03    1.4897       -.62599E-06** at limit **
  15  Prefactor     .10000E-03    1.2996       -.84655E-07** at limit **
  16  norm          .65119        3.5285        .99100E-06    .55919E-04
  17  Prefactor     .10000E-03    19.838       -.10714E-06** at limit **
  18  Prefactor     15.882        15.071        .47487E-07   -.46784E-04
  19  Normalizat    .79455        .19777       -.84247E-06    .10308E-03
  20  Prefactor     .98924        .22474        .53487E-06    .51150E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.51099
  Prefactor  = 142.561
  norm       = 0.0001
  norm       = 6.19111
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.753409
  norm       = 1.54063
  Prefactor  = 29.1461
  Prefactor  = 2.50961
  norm       = 1.2901
  norm       = 0.000100033
  Prefactor  = 0.0001
  norm       = 0.651195
  Prefactor  = 0.0001
  Prefactor  = 15.8818
  Normalizat = 0.794547
  Prefactor  = 0.98924
 **********
 **   18 **HESSE 
 **********

 FCN=   3726.448     FROM HESSE     STATUS=OK           299 CALLS     2451 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.5110        7.7675        .12996E-03   -1.5091    
   2  Prefactor     142.56        177.20        .16881E-03   -1.3314    
   3  norm          .10000E-03    21.805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.1911        4.5757        .10731E-03   -1.5210    
   5  Prefactor     .10000E-03    2.5638        .95381E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.0614        .13405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.7512        .19542E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .75341        2.0087        .14772E-02   -1.5534    
  10  norm          1.5406        1.5566        .73559E-04   -1.5460    
  11  Prefactor     29.146        17.690        .74220E-04   -1.4628    
  12  Prefactor     2.5096        4.4884        .16206E-03   -1.5391    
  13  norm          1.2901        1.5734        .82977E-04   -1.5481    
  14  norm          .10003E-03    10.282        .13647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.3058        .67934E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .65119        3.4935        .21143E-03   -1.5547    
  17  Prefactor     .10000E-03    19.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.882        15.060        .10045E-03   -1.4911    
  19  Normalizat    .79455        .23154        .23137E-03   -1.0027    
  20  Prefactor     .98924        .26677        .24298E-03   -.93089    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.72301e-09
Minuit parameter uncertainties:
  1  7.7683
  2  177.866
  3  0.000119557
  4  4.57596
  5  2.37567e-06
  6  3.62745e-07
  7  0.000158652
  8  7.0354e-05
  9  2.00884
  10  1.55666
  11  17.6933
  12  4.48898
  13  1.57345
  14  0.00116754
  15  1.15257e-06
  16  3.01665
  17  5.41603e-05
  18  15.0638
  19  0.231828
  20  0.267123
Done.

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

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  1.541e+00  1.557e+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.892e-01  2.671e-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.945e-01  2.318e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.13
Ra Dec: 20.123 -27.023
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 1.34e-08 +/- 1.35e-08
Energy Flux (Fixed Index): 1.30e-05 +/- 1.31e-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) = 3725.71197617
delta logL = 0.735568547081

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3725.54861258
delta logL = 0.898932137688

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .69821       1.0000         .10000E-03   10000.    
     2 'alpha     '    .85206       1.0000          .0000       5.0000    
     3 'Normalizat'    .80146       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98684       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=   3725.549     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      199 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .69769        .74484        .11370E-01   -.29834E-03
   2  alpha         .85158        .47142        .30729       -.20407E-04
   3  Normalizat    .80151        .19028        .43629E-01    .90618E-05
   4  Prefactor     .98672        .22196        .46102E-01    .49257E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.697691
  alpha      = 0.851581
  Normalizat = 0.801511
  Prefactor  = 0.986717
 **********
 **   18 **HESSE 
 **********

 FCN=   3725.549     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .47E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .69769        1.1203        .47025E-03   -1.5541    
   2  alpha         .85158        .66699        .13368E-02   -.71998    
   3  Normalizat    .80151        .22664        .23046E-03   -1.0001    
   4  Prefactor     .98672        .26440        .24327E-03   -.93174    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.65137e-13
Minuit parameter uncertainties:
  1  1.12032
  2  0.681843
  3  0.226904
  4  0.264743
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/139409': 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) = 3725.54861215
delta logL = 0.898932571979

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  6.977e-01  1.120e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  8.516e-01  6.818e-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:  9.867e-01  2.647e-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.015e-01  2.269e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.93
Ra Dec: 20.123 -27.023
Photon Index (Free Index): 0.85 +/- 0.68
Photon Flux (Free Index): 4.98e-09 +/- 5.51e-09
Energy Flux (Free Index): 6.74e-05 +/- 9.81e-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/139409/cmap_HighResolution_655603201_655862401_4FGL_J0120.4-2701_daily_bin1606.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.34e-08', energy_flux2='6.74e-05', photon_flux_error='1.35e-08', dlogl='8.99e-01', energy_flux='1.30e-05', photon_flux2='4.98e-09', job_status='DONE', time_completed='2021-12-07 12:16:06.721218', photon_index_error2='0.68', photon_index2='0.85', ts='5.13', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='9.81e-05', EG='0.79', time_epoch_completed='1638908166.72', return_code='0', job_id='139409', GAL2='0.99', EG2='0.80', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='5.51e-09', ts2='6.93', photon_index='1.82' WHERE bin_id='1606' AND source_name='4FGL J0120.4-2701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 12:16:06 PST 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0130>
Subject: Job 139409: <4FGL_J0120.4-2701_daily_bin1606> in cluster <slac> Done

Job <4FGL_J0120.4-2701_daily_bin1606> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Dec  7 12:05:15 2021
Job was executed on host(s) <bullet0130>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 12:05:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 12:05:34 2021
Terminated at Tue Dec  7 12:16:07 2021
Results reported at Tue Dec  7 12:16:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0120.4-2701_daily_bin1606 20.1227 -27.0229 655603201 655862401 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 :                                   459.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   633 sec.
    Turnaround time :                            652 sec.

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

