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


Performing analysis on: 4FGL_J0159.0+3313_daily_bin1322
RA = 29.7665, Dec = 33.2175
tmin = 581990401, tmax = 582249601
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='981848', job_status='RUN', time_executed='2021-08-14 23:53:50.666139', time_epoch_executed='1629010430.67' WHERE source_name='4FGL J0159.0+3313' and cadence='daily' and bin_id='1322'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/981848

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/981848/ft1_4FGL_J0159.0+3313_daily_bin1322.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/981848/ft2_4FGL_J0159.0+3313_daily_bin1322.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/981848/ft1_4FGL_J0159.0+3313_daily_bin1322.fits outfile=/scratch/kocevski/981848/ft1_filteredMKT_4FGL_J0159.0+3313_daily_bin1322.fits ra=29.7665 dec=33.2175 rad=12.0 tmin=581990401.0 tmax=582249601.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.73
user 2.18
sys 2.48

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/981848/ft2_4FGL_J0159.0+3313_daily_bin1322.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/981848/ft2_4FGL_J0159.0+3313_daily_bin1322.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/981848/ft1_filteredMKT_4FGL_J0159.0+3313_daily_bin1322.fits evtable="EVENTS" outfile="/scratch/kocevski/981848/ft1_filtered_4FGL_J0159.0+3313_daily_bin1322.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 2.68
user 0.35
sys 2.24

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/981848/ft1_filtered_4FGL_J0159.0+3313_daily_bin1322.fits" evtable="EVENTS" scfile=/scratch/kocevski/981848/ft2_4FGL_J0159.0+3313_daily_bin1322.fits sctable="SC_DATA" outfile=/scratch/kocevski/981848/ltcube_581990401_582249601_4FGL_J0159.0+3313_daily_bin1322.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/981848/ft2_4FGL_J0159.0+3313_daily_bin1322.fits
.....................!
real 17.02
user 14.04
sys 2.90

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/981848/ft1_filtered_4FGL_J0159.0+3313_daily_bin1322.fits evtable="EVENTS" scfile=/scratch/kocevski/981848/ft2_4FGL_J0159.0+3313_daily_bin1322.fits sctable="SC_DATA" expcube=/scratch/kocevski/981848/ltcube_581990401_582249601_4FGL_J0159.0+3313_daily_bin1322.fits outfile=/scratch/kocevski/981848/expmap_581990401_582249601_4FGL_J0159.0+3313_daily_bin1322.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/981848/ltcube_581990401_582249601_4FGL_J0159.0+3313_daily_bin1322.fits
.....................!
real 193.77
user 185.70
sys 7.62

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

Setting source of interest to:
4FGL J0159.0+3313 @ 29.7665 33.2175

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/981848/ft1_filtered_4FGL_J0159.0+3313_daily_bin1322.fits scfile=/scratch/kocevski/981848/ft2_4FGL_J0159.0+3313_daily_bin1322.fits outfile=/scratch/kocevski/981848/cmap_581990401_582249601_4FGL_J0159.0+3313_daily_bin1322.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.7665 yref=33.2175 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 2.82
user 0.39
sys 2.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/981848/ft1_filtered_4FGL_J0159.0+3313_daily_bin1322.fits scfile=/scratch/kocevski/981848/ft2_4FGL_J0159.0+3313_daily_bin1322.fits outfile=/scratch/kocevski/981848/cmap_HighResolution_581990401_582249601_4FGL_J0159.0+3313_daily_bin1322.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.7665 yref=33.2175 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 2.82
user 0.39
sys 2.37

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/981848/ft1_filtered_4FGL_J0159.0+3313_daily_bin1322.fits evtable="EVENTS" scfile=/scratch/kocevski/981848/ft2_4FGL_J0159.0+3313_daily_bin1322.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/981848/Model_4FGL_J0159.0+3313_daily_bin1322.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/981848/ft1_filtered_4FGL_J0159.0+3313_daily_bin1322.fits.....................!
real 54.49
user 49.47
sys 4.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/981848/ft1_filtered_4FGL_J0159.0+3313_daily_bin1322.fits', '/scratch/kocevski/981848/ft2_4FGL_J0159.0+3313_daily_bin1322.fits', expMap='/scratch/kocevski/981848/expmap_581990401_582249601_4FGL_J0159.0+3313_daily_bin1322.fits', expCube='/scratch/kocevski/981848/ltcube_581990401_582249601_4FGL_J0159.0+3313_daily_bin1322.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/981848/Model_4FGL_J0159.0+3313_daily_bin1322.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0159.0+3313'

4FGL J0159.0+3313
   Spectrum: PowerLaw
265    Prefactor:  1.345e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  1.985e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
267        Scale:  3.553e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/981848/ft1_filtered_4FGL_J0159.0+3313_daily_bin1322.fits
Spacecraft file(s): /scratch/kocevski/981848/ft2_4FGL_J0159.0+3313_daily_bin1322.fits
Exposure map: /scratch/kocevski/981848/expmap_581990401_582249601_4FGL_J0159.0+3313_daily_bin1322.fits
Exposure cube: /scratch/kocevski/981848/ltcube_581990401_582249601_4FGL_J0159.0+3313_daily_bin1322.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/981848/Model_4FGL_J0159.0+3313_daily_bin1322.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) = 4298.30955137

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .43512E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.7883       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.9493       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    47.496       1.0000         .10000E-03   10000.    
     8 'norm      '    2.5831       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.9626       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.6595       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.0477       1.0000         .10000E-03   10000.    
    12 'Prefactor '    42.533       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.2580       1.0000         .10000E-03   10000.    
    14 'norm      '    1.3213       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.7746       1.0000         .10000E-03   10000.    
    18 'norm      '    .13896E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.9658       1.0000         .10000E-03   10000.    
    21 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .64186       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    5.9277       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10688E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .66412       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3107       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4298.300     FROM MIGRAD    STATUS=CONVERGED    741 CALLS     3733 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .61822        .31473E-06** at limit **
   2  Prefactor     .10000E-03    549.64        .93870E-05** at limit **
   3  Prefactor     5.7884        9.0347        .60017E-07   -.19634E-03
   4  Prefactor     5.9368        15.981        .55008E-06   -.15094E-04
   5  norm          .10000E-03    .70931        .58834E-07** at limit **
   6  Prefactor     .10000E-03    21.687        .83790E-07** at limit **
   7  Prefactor     47.684        143.88        .26254E-05   -.20778E-04
   8  norm          2.5829        1.1511       -.16630E-07    .90919E-04
   9  Prefactor     9.9647        12.528       -.82274E-08   -.58226E-05
  10  Prefactor     3.6605        12.816       -.89909E-07   -.16720E-04
  11  Prefactor     3.0493        6.1762       -.18899E-07   -.89782E-04
  12  Prefactor     42.544        42.332       -.21362E-06   -.22466E-05
  13  Prefactor     6.2659        527.65       -.11169E-06   -.13340E-05
  14  norm          1.3206        4.5605        .19460E-06   -.10899E-03
  15  Prefactor     .10000E-03    77.331        .51116E-06** at limit **
  16  Prefactor     .10000E-03    8.5332        .49630E-07** at limit **
  17  Prefactor     7.7751        7.8573        .14241E-07   -.90271E-05
  18  norm          .10000E-03    49.207       -.26994E-05** at limit **
  19  Prefactor     .10000E-03    10.595        .25405E-06** at limit **
  20  norm          1.9660        1.3737       -.49112E-06   -.79833E-03
  21  norm          .10000E-03    55.585       -.35819E-06** at limit **
  22  norm          .64189        .56983        .12354E-08   -.40786E-04
  23  Prefactor     .10000E-03    5.8916        .19690E-06** at limit **
  24  norm          .10000E-03    12.329        .25721E-06** at limit **
  25  Prefactor     .10000E-03    41.542        .48289E-06** at limit **
  26  norm          5.9288        5.0185        .45311E-07   -.40896E-04
  27  Prefactor     .10000E-03    176.57        .73449E-06** at limit **
  28  Normalizat    .66393        .34512       -.51446E-06   -.67654E-04
  29  Prefactor     1.3107        .18669       -.49014E-07   -.11378E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.78842
  Prefactor  = 5.93679
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 47.6838
  norm       = 2.58294
  Prefactor  = 9.96467
  Prefactor  = 3.66054
  Prefactor  = 3.04928
  Prefactor  = 42.5442
  Prefactor  = 6.26592
  norm       = 1.32057
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.77506
  norm       = 0.000100002
  Prefactor  = 0.0001
  norm       = 1.96603
  norm       = 0.0001
  norm       = 0.641894
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.9288
  Prefactor  = 0.0001
  Normalizat = 0.66393
  Prefactor  = 1.31074
 **********
 **   18 **HESSE 
 **********

 FCN=   4298.300     FROM HESSE     STATUS=OK           561 CALLS     4294 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .77153        .95736E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    539.81        .38776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.7884        8.9929        .16694E-03   -1.5227    
   4  Prefactor     5.9368        15.869        .16463E-03   -1.5221    
   5  norm          .10000E-03    .71904        .53903E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    21.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     47.684        143.84        .29091E-03   -1.4326    
   8  norm          2.5829        1.1512        .42388E-04   -1.5387    
   9  Prefactor     9.9647        12.521        .12695E-03   -1.5077    
  10  Prefactor     3.6605        12.753        .21116E-03   -1.5325    
  11  Prefactor     3.0493        6.1178        .20811E-03   -1.5359    
  12  Prefactor     42.544        42.213        .61468E-04   -1.4403    
  13  Prefactor     6.2659        521.50        .16047E-03   -1.5207    
  14  norm          1.3206        4.5445        .25024E-03   -1.5478    
  15  Prefactor     .10000E-03    77.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.6007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.7751        7.8582        .14381E-03   -1.5150    
  18  norm          .10000E-03    48.597        .31915E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.9660        1.3636        .60057E-04   -1.5428    
  21  norm          .10000E-03    55.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .64189        .57955        .45210E-04   -1.5548    
  23  Prefactor     .10000E-03    5.9276        .15540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    12.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    41.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          5.9288        5.0134        .12645E-03   -1.5221    
  27  Prefactor     .10000E-03    176.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .66393        .36672        .43185E-03   -1.0533    
  29  Prefactor     1.3107        .20344        .18910E-03   -.82988    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.75315e-10
Minuit parameter uncertainties:
  1  2.60349e-05
  2  2.7306e-05
  3  8.99503
  4  15.8805
  5  8.92413e-07
  6  5.52115e-05
  7  144.909
  8  1.15116
  9  12.5241
  10  12.7629
  11  6.11902
  12  42.2424
  13  115.382
  14  4.54565
  15  0.000177948
  16  9.26012e-06
  17  7.8592
  18  0.000576143
  19  5.73145e-06
  20  1.36363
  21  0.000118675
  22  0.579553
  23  3.55166e-06
  24  1.22228e-05
  25  8.78648e-05
  26  5.01377
  27  0.000315074
  28  0.36808
  29  0.203566
Done.

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

Extracting fit parameters...

4FGL J0159.0+3313
   Spectrum: PowerLaw
265    Prefactor:  4.254e+01  4.224e+01  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  1.985e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
267        Scale:  3.553e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
591    Prefactor:  1.311e+00  2.036e-01  0.000e+00  1.000e+01 ( 1.000e+00)
592        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
593        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
590   Normalization:  6.639e-01  3.681e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.44
Ra Dec: 29.767 33.218
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 5.16e-08 +/- 5.12e-08
Energy Flux (Fixed Index): 3.70e-05 +/- 3.68e-05

TS (Fixed Index): 1.44
Ra Dec: 29.767 33.218
Photon Flux Upper Limit: 1.67e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.25e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/981848/likelihoodResults_581990401_582249601_4FGL_J0159.0+3313_daily_bin1322.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4297.6739816
delta logL = 0.626022541822

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4297.6499187
delta logL = 0.650085449437

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.9868       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8200       1.0000          .0000       10.000    
     3 'Normalizat'    .57759       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3405       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5940E+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=   4297.650     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      291 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.9924        620.69        .13126E-03    .53216E-03
   2  Index         2.8200        6.3438        .29404E-02    .17835E-03
   3  Normalizat    .57761        .54351        .46090E-03   -.21430E-03
   4  Prefactor     1.3405        .29348        .18716E-03   -.18188E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.99238
  Index      = 2.82001
  Normalizat = 0.577611
  Prefactor  = 1.3405
 **********
 **   18 **HESSE 
 **********

 FCN=   4297.650     FROM HESSE     STATUS=OK            25 CALLS      316 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.9924        20.517        .52502E-05   -1.5108    
   2  Index         2.8200        .82029        .11761E-03   -.45115    
   3  Normalizat    .57761        .34423        .18436E-04   -1.0894    
   4  Prefactor     1.3405        .20219        .37433E-04   -.82111    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.84795e-10
Minuit parameter uncertainties:
  1  20.5334
  2  0.824903
  3  0.345513
  4  0.202305
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/981848': 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) = 4297.64991818
delta logL = 0.650085966298

Extracting fit parameters...

4FGL J0159.0+3313
   Spectrum: PowerLaw
265    Prefactor:  8.992e+00  2.053e+01  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  2.820e+00  8.249e-01  0.000e+00  1.000e+01 (-1.000e+00)
267        Scale:  3.553e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
591    Prefactor:  1.340e+00  2.023e-01  0.000e+00  1.000e+01 ( 1.000e+00)
592        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
593        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
590   Normalization:  5.776e-01  3.455e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.83
Ra Dec: 29.767 33.218
Photon Index (Free Index): 2.82 +/- 0.82
Photon Flux (Free Index): 1.17e-07 +/- 9.11e-08
Energy Flux (Free Index): 2.58e-05 +/- 1.91e-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/981848/cmap_HighResolution_581990401_582249601_4FGL_J0159.0+3313_daily_bin1322.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.25e-02', comment='SUCCESS', photon_flux='5.16e-08', energy_flux2='2.58e-05', photon_flux_error='5.12e-08', dlogl='6.50e-01', energy_flux='3.70e-05', photon_flux2='1.17e-07', job_status='DONE', time_completed='2021-08-15 00:06:04.205301', photon_index_error2='0.82', photon_index2='2.82', ts='1.44', fit_tolerance='1e-08', GAL='1.31', photon_index_error='0.00', photon_flux_upper_limit='1.67e-07', energy_flux_error2='1.91e-05', EG='0.66', time_epoch_completed='1629011164.21', return_code='0', job_id='981848', GAL2='1.34', EG2='0.58', return_code2='0', energy_flux_error='3.68e-05', photon_flux_error2='9.11e-08', ts2='2.83', photon_index='1.98' WHERE bin_id='1322' AND source_name='4FGL J0159.0+3313' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 00:06:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0010>
Subject: Job 981848: <4FGL_J0159.0+3313_daily_bin1322> in cluster <slac> Done

Job <4FGL_J0159.0+3313_daily_bin1322> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Aug 14 23:50:18 2021
Job was executed on host(s) <bullet0010>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 23:50:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 14 23:50:38 2021
Terminated at Sun Aug 15 00:06:05 2021
Results reported at Sun Aug 15 00:06:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0159.0+3313_daily_bin1322 29.7665 33.2175 581990401 582249601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0159.0+3313 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   751.18 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             242.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   926 sec.
    Turnaround time :                            947 sec.

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

