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


Performing analysis on: 4FGL_J0159.5+1046_daily_bin1601
RA = 29.8858, Dec = 10.7737
tmin = 654307201, tmax = 654566401
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='539572', job_status='RUN', time_executed='2021-09-29 00:08:32.461611', time_epoch_executed='1632899312.46' WHERE source_name='4FGL J0159.5+1046' and cadence='daily' and bin_id='1601'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/539572

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/539572/ft1_4FGL_J0159.5+1046_daily_bin1601.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/539572/ft2_4FGL_J0159.5+1046_daily_bin1601.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/539572/ft1_4FGL_J0159.5+1046_daily_bin1601.fits outfile=/scratch/kocevski/539572/ft1_filteredMKT_4FGL_J0159.5+1046_daily_bin1601.fits ra=29.8858 dec=10.7737 rad=12.0 tmin=654307201.0 tmax=654566401.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.27
user 4.02
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/539572/ft2_4FGL_J0159.5+1046_daily_bin1601.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/539572/ft2_4FGL_J0159.5+1046_daily_bin1601.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/539572/ft1_filteredMKT_4FGL_J0159.5+1046_daily_bin1601.fits evtable="EVENTS" outfile="/scratch/kocevski/539572/ft1_filtered_4FGL_J0159.5+1046_daily_bin1601.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/539572/ft1_filtered_4FGL_J0159.5+1046_daily_bin1601.fits" evtable="EVENTS" scfile=/scratch/kocevski/539572/ft2_4FGL_J0159.5+1046_daily_bin1601.fits sctable="SC_DATA" outfile=/scratch/kocevski/539572/ltcube_654307201_654566401_4FGL_J0159.5+1046_daily_bin1601.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/539572/ft2_4FGL_J0159.5+1046_daily_bin1601.fits
.....................!
real 11.85
user 11.50
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/539572/ft1_filtered_4FGL_J0159.5+1046_daily_bin1601.fits evtable="EVENTS" scfile=/scratch/kocevski/539572/ft2_4FGL_J0159.5+1046_daily_bin1601.fits sctable="SC_DATA" expcube=/scratch/kocevski/539572/ltcube_654307201_654566401_4FGL_J0159.5+1046_daily_bin1601.fits outfile=/scratch/kocevski/539572/expmap_654307201_654566401_4FGL_J0159.5+1046_daily_bin1601.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/539572/ltcube_654307201_654566401_4FGL_J0159.5+1046_daily_bin1601.fits
.....................!
real 192.16
user 186.42
sys 5.41

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 170 point sources and 0 extended sources

Setting source of interest to:
4FGL J0159.5+1046 @ 29.8858 10.7737

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/539572/ft1_filtered_4FGL_J0159.5+1046_daily_bin1601.fits scfile=/scratch/kocevski/539572/ft2_4FGL_J0159.5+1046_daily_bin1601.fits outfile=/scratch/kocevski/539572/cmap_654307201_654566401_4FGL_J0159.5+1046_daily_bin1601.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=29.8858 yref=10.7737 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.54
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/539572/ft1_filtered_4FGL_J0159.5+1046_daily_bin1601.fits scfile=/scratch/kocevski/539572/ft2_4FGL_J0159.5+1046_daily_bin1601.fits outfile=/scratch/kocevski/539572/cmap_HighResolution_654307201_654566401_4FGL_J0159.5+1046_daily_bin1601.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=29.8858 yref=10.7737 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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/539572/ft1_filtered_4FGL_J0159.5+1046_daily_bin1601.fits evtable="EVENTS" scfile=/scratch/kocevski/539572/ft2_4FGL_J0159.5+1046_daily_bin1601.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/539572/Model_4FGL_J0159.5+1046_daily_bin1601.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/539572/ft1_filtered_4FGL_J0159.5+1046_daily_bin1601.fits.....................!
real 76.01
user 74.55
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/539572/ft1_filtered_4FGL_J0159.5+1046_daily_bin1601.fits', '/scratch/kocevski/539572/ft2_4FGL_J0159.5+1046_daily_bin1601.fits', expMap='/scratch/kocevski/539572/expmap_654307201_654566401_4FGL_J0159.5+1046_daily_bin1601.fits', expCube='/scratch/kocevski/539572/ltcube_654307201_654566401_4FGL_J0159.5+1046_daily_bin1601.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/539572/Model_4FGL_J0159.5+1046_daily_bin1601.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0159.5+1046'

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  2.134e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
220        Index:  1.995e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/539572/ft1_filtered_4FGL_J0159.5+1046_daily_bin1601.fits
Spacecraft file(s): /scratch/kocevski/539572/ft2_4FGL_J0159.5+1046_daily_bin1601.fits
Exposure map: /scratch/kocevski/539572/expmap_654307201_654566401_4FGL_J0159.5+1046_daily_bin1601.fits
Exposure cube: /scratch/kocevski/539572/ltcube_654307201_654566401_4FGL_J0159.5+1046_daily_bin1601.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/539572/Model_4FGL_J0159.5+1046_daily_bin1601.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) = 6305.73115516

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    101.72       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.662       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.4757       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.0666       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .19447E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    12.335       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.2682       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.286       1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.170       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .15986E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    62.342       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12753E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.012       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.7687       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .78368E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    1.3317       1.0000         .10000E-03   10000.    
    20 'Prefactor '    38.861       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .63323E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    13.317       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .82602       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0464       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6305.702     FROM MIGRAD    STATUS=CONVERGED    131 CALLS     2496 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.6945       -.36115E-06** at limit **
   2  Prefactor     101.79        10.192       -.99394E-07    .72556E-03
   3  Prefactor     10.664        1.7568        .16925E-06    .41989E-02
   4  Prefactor     .10000E-03    3.2171        .29840E-07** at limit **
   5  norm          2.4682        1.5230       -.42497E-06   -.18925E-03
   6  Prefactor     4.0668        4.0298        .11940E-06   -.99493E-05
   7  Prefactor     .10000E-03    7.8923        .28134E-06** at limit **
   8  norm          12.339        6.5307       -.14425E-05    .19861E-03
   9  Prefactor     .10000E-03    1.2645        .37310E-06** at limit **
  10  norm          2.2680        1.1125        .92569E-07    .43612E-04
  11  Prefactor     16.286        2.3523        .25338E-06    .15624E-02
  12  Prefactor     19.210        21.820       -.29503E-05   -.81510E-03
  13  Prefactor     .10000E-03    74.422       -.12801E-04** at limit **
  14  Prefactor     62.353        2.5438        .70711E-07   -.58814E-03
  15  Prefactor     .10000E-03    17.101       -.15430E-05** at limit **
  16  Prefactor     21.013        1.5032        .64419E-07    .13931E-02
  17  Prefactor     9.7691        9.5442       -.43045E-06   -.40370E-03
  18  Prefactor     .10000E-03    1471.0        .78131E-05** at limit **
  19  norm          1.3336        .65968        .10407E-05    .23538E-03
  20  Prefactor     38.879        13.322        .10019E-05   -.24316E-03
  21  Prefactor     .10299E-03    159.57        .15080E-04** at limit **
  22  norm          13.331        13.257       -.16369E-06    .97552E-04
  23  Prefactor     .10000E-03    26.660        .62292E-05** at limit **
  24  Normalizat    .82610        .22335       -.25022E-05   -.15910E-04
  25  Prefactor     1.0465        .14525        .11723E-05   -.85034E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 101.795
  Prefactor  = 10.6636
  Prefactor  = 0.0001
  norm       = 2.46822
  Prefactor  = 4.06683
  Prefactor  = 0.0001
  norm       = 12.3387
  Prefactor  = 0.0001
  norm       = 2.26801
  Prefactor  = 16.2858
  Prefactor  = 19.2103
  Prefactor  = 0.0001
  Prefactor  = 62.3529
  Prefactor  = 0.0001
  Prefactor  = 21.0128
  Prefactor  = 9.76914
  Prefactor  = 0.000100001
  norm       = 1.33362
  Prefactor  = 38.8786
  Prefactor  = 0.000102993
  norm       = 13.3308
  Prefactor  = 0.0001
  Normalizat = 0.826102
  Prefactor  = 1.04653
 **********
 **   18 **HESSE 
 **********

 FCN=   6305.702     FROM HESSE     STATUS=OK           507 CALLS     3003 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.6861        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     101.79        63.657        .99658E-03   -1.3687    
   3  Prefactor     10.664        10.764        .30675E-02   -1.5055    
   4  Prefactor     .10000E-03    3.1864        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.4682        32.587        .64963E-02   -1.5394    
   6  Prefactor     4.0668        4.0354        .49985E-02   -1.5305    
   7  Prefactor     .10000E-03    1.2663        .54981E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          12.339        6.5976        .28514E-02   -1.5005    
   9  Prefactor     .10000E-03    1.2421        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.2680        1.1178        .68176E-02   -1.5407    
  11  Prefactor     16.286        25.817        .24812E-02   -1.4901    
  12  Prefactor     19.210        33.425        .22870E-02   -1.4831    
  13  Prefactor     .10000E-03    6.0605        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     62.353        94.720        .12705E-02   -1.4127    
  15  Prefactor     .10000E-03    16.636        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     21.013        24.160        .21845E-02   -1.4791    
  17  Prefactor     9.7691        9.7994        .32053E-02   -1.5083    
  18  Prefactor     .10000E-03    11.482        .94076E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.3336        .74222        .95118E-02   -1.5477    
  20  Prefactor     38.879        38.306        .16074E-02   -1.4460    
  21  Prefactor     .10299E-03    19.152        .12403       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          13.331        13.486        .27441E-02   -1.4978    
  23  Prefactor     .10000E-03    26.664        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .82610        .20272        .73902E-01   -.99108    
  25  Prefactor     1.0465        .12938        .40123E-01   -.91194    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.9562e-08
Minuit parameter uncertainties:
  1  1.17995e-06
  2  63.6997
  3  10.7655
  4  3.07026e-06
  5  17.9484
  6  4.03565
  7  2.37252e-06
  8  6.59795
  9  4.69016e-07
  10  1.11783
  11  25.8342
  12  33.4576
  13  4.39633e-05
  14  94.95
  15  1.74268e-06
  16  24.1713
  17  9.80104
  18  0.000173928
  19  0.742224
  20  38.3299
  21  0.0151466
  22  13.4892
  23  7.92977e-05
  24  0.202907
  25  0.129414
Done.

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

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  4.067e+00  4.036e+00  1.000e-04  1.000e+04 ( 1.000e-13)
220        Index:  1.995e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.047e+00  1.294e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  8.261e-01  2.029e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.50
Ra Dec: 29.886 10.774
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 1.89e-08 +/- 1.87e-08
Energy Flux (Fixed Index): 1.32e-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) = 6304.57773858
delta logL = 1.12408741089

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6304.55985769
delta logL = 1.14196830269

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2230       1.0000         .10000E-03   10000.    
     2 'Index     '    .96227       1.0000          .0000       10.000    
     3 'Normalizat'    .83918       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0439       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6304.560     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      206 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2174        3.2490        .56412E-02    .32065E-03
   2  Index         .96118        .47880        .28795       -.13493E-03
   3  Normalizat    .83913        .19392        .73368E-01    .47616E-04
   4  Prefactor     1.0439        .12518        .40281E-01    .19307E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.21736
  Index      = 0.961177
  Normalizat = 0.839132
  Prefactor  = 1.04392
 **********
 **   18 **HESSE 
 **********

 FCN=   6304.560     FROM HESSE     STATUS=OK            29 CALLS      235 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2174        4.3035        .13923E-03   -1.5349    
   2  Index         .96118        .64002        .12533E-02   -.94035    
   3  Normalizat    .83913        .22016        .32469E-03   -.98633    
   4  Prefactor     1.0439        .14243        .18887E-03   -.91280    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.07246e-10
Minuit parameter uncertainties:
  1  4.30394
  2  0.645163
  3  0.220397
  4  0.142485
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/539572': 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) = 6304.55985622
delta logL = 1.14196977178

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  3.217e+00  4.304e+00  1.000e-04  1.000e+04 ( 1.000e-13)
220        Index:  9.612e-01  6.452e-01  0.000e+00  1.000e+01 (-1.000e+00)
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.044e+00  1.425e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  8.391e-01  2.204e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.78
Ra Dec: 29.886 10.774
Photon Index (Free Index): 0.96 +/- 0.65
Photon Flux (Free Index): 4.90e-09 +/- 5.59e-09
Energy Flux (Free Index): 7.78e-05 +/- 1.09e-04

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/539572/cmap_HighResolution_654307201_654566401_4FGL_J0159.5+1046_daily_bin1601.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.89e-08', energy_flux2='7.78e-05', photon_flux_error='1.87e-08', dlogl='1.14e+00', energy_flux='1.32e-05', photon_flux2='4.90e-09', job_status='DONE', time_completed='2021-09-29 00:19:18.487818', photon_index_error2='0.65', photon_index2='0.96', ts='6.50', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='1.09e-04', EG='0.83', time_epoch_completed='1632899958.49', return_code='0', job_id='539572', GAL2='1.04', EG2='0.84', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='5.59e-09', ts2='8.78', photon_index='1.99' WHERE bin_id='1601' AND source_name='4FGL J0159.5+1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:19:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 539572: <4FGL_J0159.5+1046_daily_bin1601> in cluster <slac> Done

Job <4FGL_J0159.5+1046_daily_bin1601> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 00:05:14 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 00:05:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 00:05:16 2021
Terminated at Wed Sep 29 00:19:19 2021
Results reported at Wed Sep 29 00:19:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0159.5+1046_daily_bin1601 29.8858 10.7737 654307201 654566401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0159.5+1046 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   648.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            845 sec.

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

