/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 3 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 = 7400
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0159.5+1046_daily_bin138
RA = 29.8858, Dec = 10.7737
tmin = 275097601, tmax = 275356801
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='995509', job_status='RUN', time_executed='2021-08-15 00:29:13.957592', time_epoch_executed='1629012553.96' WHERE source_name='4FGL J0159.5+1046' and cadence='daily' and bin_id='138'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/995509

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/995509/ft1_4FGL_J0159.5+1046_daily_bin138.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/995509/ft2_4FGL_J0159.5+1046_daily_bin138.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/995509/ft1_4FGL_J0159.5+1046_daily_bin138.fits outfile=/scratch/kocevski/995509/ft1_filteredMKT_4FGL_J0159.5+1046_daily_bin138.fits ra=29.8858 dec=10.7737 rad=12.0 tmin=275097601.0 tmax=275356801.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 6.28
user 4.66
sys 1.52

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/995509/ft2_4FGL_J0159.5+1046_daily_bin138.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/995509/ft1_filteredMKT_4FGL_J0159.5+1046_daily_bin138.fits evtable="EVENTS" outfile="/scratch/kocevski/995509/ft1_filtered_4FGL_J0159.5+1046_daily_bin138.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.85
user 0.34
sys 1.44

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/995509/ft1_filtered_4FGL_J0159.5+1046_daily_bin138.fits" evtable="EVENTS" scfile=/scratch/kocevski/995509/ft2_4FGL_J0159.5+1046_daily_bin138.fits sctable="SC_DATA" outfile=/scratch/kocevski/995509/ltcube_275097601_275356801_4FGL_J0159.5+1046_daily_bin138.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/995509/ft2_4FGL_J0159.5+1046_daily_bin138.fits
.....................!
real 14.16
user 12.16
sys 1.85

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/995509/ft1_filtered_4FGL_J0159.5+1046_daily_bin138.fits evtable="EVENTS" scfile=/scratch/kocevski/995509/ft2_4FGL_J0159.5+1046_daily_bin138.fits sctable="SC_DATA" expcube=/scratch/kocevski/995509/ltcube_275097601_275356801_4FGL_J0159.5+1046_daily_bin138.fits outfile=/scratch/kocevski/995509/expmap_275097601_275356801_4FGL_J0159.5+1046_daily_bin138.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/995509/ltcube_275097601_275356801_4FGL_J0159.5+1046_daily_bin138.fits
.....................!
real 192.35
user 185.59
sys 6.19

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/995509/ft1_filtered_4FGL_J0159.5+1046_daily_bin138.fits scfile=/scratch/kocevski/995509/ft2_4FGL_J0159.5+1046_daily_bin138.fits outfile=/scratch/kocevski/995509/cmap_275097601_275356801_4FGL_J0159.5+1046_daily_bin138.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 1.90
user 0.39
sys 1.44

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/995509/ft1_filtered_4FGL_J0159.5+1046_daily_bin138.fits scfile=/scratch/kocevski/995509/ft2_4FGL_J0159.5+1046_daily_bin138.fits outfile=/scratch/kocevski/995509/cmap_HighResolution_275097601_275356801_4FGL_J0159.5+1046_daily_bin138.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 1.85
user 0.42
sys 1.40

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/995509/ft1_filtered_4FGL_J0159.5+1046_daily_bin138.fits', '/scratch/kocevski/995509/ft2_4FGL_J0159.5+1046_daily_bin138.fits', expMap='/scratch/kocevski/995509/expmap_275097601_275356801_4FGL_J0159.5+1046_daily_bin138.fits', expCube='/scratch/kocevski/995509/ltcube_275097601_275356801_4FGL_J0159.5+1046_daily_bin138.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/995509/Model_4FGL_J0159.5+1046_daily_bin138.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/995509/ft1_filtered_4FGL_J0159.5+1046_daily_bin138.fits
Spacecraft file(s): /scratch/kocevski/995509/ft2_4FGL_J0159.5+1046_daily_bin138.fits
Exposure map: /scratch/kocevski/995509/expmap_275097601_275356801_4FGL_J0159.5+1046_daily_bin138.fits
Exposure cube: /scratch/kocevski/995509/ltcube_275097601_275356801_4FGL_J0159.5+1046_daily_bin138.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/995509/Model_4FGL_J0159.5+1046_daily_bin138.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) = 6227.08965814

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.573       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.2652       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    17.103       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.4399       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .20417E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    18.706       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.2799       1.0000         .10000E-03   10000.    
    10 'norm      '    .88009       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .69047       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .17791E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10382E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    62.332       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.980       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10806E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.102       1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.341       1.0000         .10000E-03   10000.    
    19 'norm      '    .91396       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12728E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10468E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1074       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .80183       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6227.085     FROM MIGRAD    STATUS=CONVERGED    599 CALLS     2909 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    7.4263        .14276E-05** at limit **
   2  Prefactor     16.632        42.654        .15294E-05    .10599E-03
   3  Prefactor     6.2647        10.244        .55407E-05    .51815E-03
   4  Prefactor     .10000E-03    3.2037       -.25956E-07** at limit **
   5  norm          17.103        18.371        .16709E-06    .87303E-05
   6  Prefactor     8.4437        6.9777        .31106E-07   -.13552E-03
   7  Prefactor     .10000E-03    1.5804       -.23423E-06** at limit **
   8  norm          18.700        6.9429        .13069E-07   -.26239E-04
   9  Prefactor     2.2813        2.0994        .49480E-07    .19980E-03
  10  norm          .87991        .87691        .77954E-07    .27951E-03
  11  Prefactor     .69599        16.668       -.31605E-05    .38003E-03
  12  Prefactor     .10391E-03    33.216        .54185E-05** at limit **
  13  Prefactor     .10000E-03    1.9660        .55002E-07** at limit **
  14  Prefactor     62.401        81.518        .12497E-05    .19645E-03
  15  Prefactor     12.971        7.9584        .28473E-07   -.15339E-03
  16  Prefactor     .10000E-03    22.363        .95072E-06** at limit **
  17  Prefactor     13.102        10.870        .32876E-07    .36695E-04
  18  Prefactor     14.339        11.801        .10615E-06   -.14121E-03
  19  norm          .91436        .56686        .21793E-07   -.62242E-03
  20  Prefactor     .10000E-03    24.415       -.93357E-07** at limit **
  21  Prefactor     .10000E-03    19.245       -.11350E-06** at limit **
  22  norm          .10000E-03    3.9185        .13961E-07** at limit **
  23  Prefactor     .10000E-03    26.673       -.57597E-06** at limit **
  24  Normalizat    1.1077        .18547       -.90818E-06   -.13495E-03
  25  Prefactor     .80158        .11262       -.18070E-06   -.29742E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100027
  Prefactor  = 16.6323
  Prefactor  = 6.2647
  Prefactor  = 0.0001
  norm       = 17.1035
  Prefactor  = 8.44366
  Prefactor  = 0.0001
  norm       = 18.6999
  Prefactor  = 2.28131
  norm       = 0.879906
  Prefactor  = 0.695989
  Prefactor  = 0.000103907
  Prefactor  = 0.0001
  Prefactor  = 62.4008
  Prefactor  = 12.9714
  Prefactor  = 0.000100001
  Prefactor  = 13.1015
  Prefactor  = 14.3393
  norm       = 0.91436
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.10774
  Prefactor  = 0.801581
 **********
 **   18 **HESSE 
 **********

 FCN=   6227.085     FROM HESSE     STATUS=OK           437 CALLS     3346 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    32.475        .40667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.632        42.714        .98384E-04   -1.4892    
   3  Prefactor     6.2647        10.422        .80186E-03   -1.5207    
   4  Prefactor     .10000E-03    3.2808        .13791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          17.103        18.365        .96845E-04   -1.4881    
   6  Prefactor     8.4437        6.9732        .13799E-03   -1.5127    
   7  Prefactor     .10000E-03    3.4636        .19030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          18.700        6.9317        .92605E-04   -1.4843    
   9  Prefactor     2.2813        2.0859        .10453E-03   -1.5406    
  10  norm          .87991        .83634        .71088E-03   -1.5520    
  11  Prefactor     .69599        103.15        .56740E-02   -1.5541    
  12  Prefactor     .10391E-03    260.75        .77397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.9694        .10804E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     62.401        81.424        .50825E-04   -1.4126    
  15  Prefactor     12.971        7.9498        .11118E-03   -1.4987    
  16  Prefactor     .10000E-03    22.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.102        10.864        .11066E-03   -1.4984    
  18  Prefactor     14.339        11.849        .10577E-03   -1.4950    
  19  norm          .91436        .56927        .41970E-04   -1.5517    
  20  Prefactor     .10000E-03    24.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    19.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    3.9234        .15254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    26.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1077        .20684        .28093E-03   -.89504    
  25  Prefactor     .80158        .12706        .19833E-03   -.99670    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.25453e-08
Minuit parameter uncertainties:
  1  0.0018766
  2  42.7924
  3  10.4252
  4  2.2445e-06
  5  18.3708
  6  6.97387
  7  3.07592e-05
  8  6.93202
  9  2.08594
  10  0.83635
  11  16.9747
  12  0.0641131
  13  1.63687e-06
  14  81.5698
  15  7.95045
  16  0.0002641
  17  10.8659
  18  11.8505
  19  0.569278
  20  8.30544e-06
  21  3.09818e-05
  22  1.43318e-06
  23  0.000243879
  24  0.206994
  25  0.127106
Done.

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

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  8.444e+00  6.974e+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:  8.016e-01  1.271e-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:  1.108e+00  2.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.25
Ra Dec: 29.886 10.774
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 3.92e-08 +/- 3.23e-08
Energy Flux (Fixed Index): 2.74e-05 +/- 2.27e-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) = 6226.97152427
delta logL = 0.11339373579

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6226.96315097
delta logL = 0.121767034495

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3442       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2960       1.0000          .0000       10.000    
     3 'Normalizat'    1.0924       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80532       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6226.963     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      292 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3419        8.1110        .71597E-03   -.12989E-03
   2  Index         2.2949        .71585        .61161E-02    .51417E-03
   3  Normalizat    1.0927        .20627        .28250E-03   -.21611E-04
   4  Prefactor     .80513        .12460        .19787E-03    .29072E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.34187
  Index      = 2.29486
  Normalizat = 1.09271
  Prefactor  = 0.805128
 **********
 **   18 **HESSE 
 **********

 FCN=   6226.963     FROM HESSE     STATUS=OK            25 CALLS      317 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3419        7.1738        .28639E-04   -1.5204    
   2  Index         2.2949        .63322        .12232E-02   -.57166    
   3  Normalizat    1.0927        .20565        .11300E-04   -.89986    
   4  Prefactor     .80513        .12448        .79149E-05   -.99540    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45773e-11
Minuit parameter uncertainties:
  1  7.1748
  2  0.635635
  3  0.205798
  4  0.124528
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/995509': 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) = 6226.96314478
delta logL = 0.121773227001

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  6.342e+00  7.175e+00  1.000e-04  1.000e+04 ( 1.000e-13)
220        Index:  2.295e+00  6.356e-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:  8.051e-01  1.245e-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:  1.093e+00  2.058e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.49
Ra Dec: 29.886 10.774
Photon Index (Free Index): 2.29 +/- 0.64
Photon Flux (Free Index): 5.70e-08 +/- 5.55e-08
Energy Flux (Free Index): 2.17e-05 +/- 1.84e-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/995509/cmap_HighResolution_275097601_275356801_4FGL_J0159.5+1046_daily_bin138.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.92e-08', energy_flux2='2.17e-05', photon_flux_error='3.23e-08', dlogl='1.22e-01', energy_flux='2.74e-05', photon_flux2='5.70e-08', job_status='DONE', time_completed='2021-08-15 00:40:36.790163', photon_index_error2='0.64', photon_index2='2.29', ts='4.25', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='1.84e-05', EG='1.11', time_epoch_completed='1629013236.79', return_code='0', job_id='995509', GAL2='0.81', EG2='1.09', return_code2='0', energy_flux_error='2.27e-05', photon_flux_error2='5.55e-08', ts2='4.49', photon_index='1.99' WHERE bin_id='138' AND source_name='4FGL J0159.5+1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 00:40:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0119>
Subject: Job 995509: <4FGL_J0159.5+1046_daily_bin138> in cluster <slac> Done

Job <4FGL_J0159.5+1046_daily_bin138> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 15 00:25:24 2021
Job was executed on host(s) <bullet0119>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 00:28:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 00:28:39 2021
Terminated at Sun Aug 15 00:40:39 2021
Results reported at Sun Aug 15 00:40:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0159.5+1046_daily_bin138 29.8858 10.7737 275097601 275356801 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 :                                   694.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             336.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   719 sec.
    Turnaround time :                            915 sec.

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

