/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 4 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_J0309.0+1029_daily_bin1606
RA = 47.2617, Dec = 10.4927
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='170926', job_status='RUN', time_executed='2021-12-07 13:50:40.064038', time_epoch_executed='1638913840.06' WHERE source_name='4FGL J0309.0+1029' and cadence='daily' and bin_id='1606'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/170926

Creating custom pfile directory:
/scratch/kocevski/170926/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/170926/ft1_4FGL_J0309.0+1029_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/170926/ft2_4FGL_J0309.0+1029_daily_bin1606.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/170926/ft1_4FGL_J0309.0+1029_daily_bin1606.fits outfile=/scratch/kocevski/170926/ft1_filteredMKT_4FGL_J0309.0+1029_daily_bin1606.fits ra=47.2617 dec=10.4927 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.43
user 4.16
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/170926/ft2_4FGL_J0309.0+1029_daily_bin1606.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/170926/ft2_4FGL_J0309.0+1029_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/170926/ft1_filteredMKT_4FGL_J0309.0+1029_daily_bin1606.fits evtable="EVENTS" outfile="/scratch/kocevski/170926/ft1_filtered_4FGL_J0309.0+1029_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.60
user 0.42
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/170926/ft1_filtered_4FGL_J0309.0+1029_daily_bin1606.fits" evtable="EVENTS" scfile=/scratch/kocevski/170926/ft2_4FGL_J0309.0+1029_daily_bin1606.fits sctable="SC_DATA" outfile=/scratch/kocevski/170926/ltcube_655603201_655862401_4FGL_J0309.0+1029_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/170926/ft2_4FGL_J0309.0+1029_daily_bin1606.fits
.....................!
real 18.51
user 18.08
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/170926/ft1_filtered_4FGL_J0309.0+1029_daily_bin1606.fits evtable="EVENTS" scfile=/scratch/kocevski/170926/ft2_4FGL_J0309.0+1029_daily_bin1606.fits sctable="SC_DATA" expcube=/scratch/kocevski/170926/ltcube_655603201_655862401_4FGL_J0309.0+1029_daily_bin1606.fits outfile=/scratch/kocevski/170926/expmap_655603201_655862401_4FGL_J0309.0+1029_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/170926/ltcube_655603201_655862401_4FGL_J0309.0+1029_daily_bin1606.fits
.....................!
real 198.31
user 192.47
sys 5.23

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

Setting source of interest to:
4FGL J0309.0+1029 @ 47.2617 10.4927

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/170926/ft1_filtered_4FGL_J0309.0+1029_daily_bin1606.fits scfile=/scratch/kocevski/170926/ft2_4FGL_J0309.0+1029_daily_bin1606.fits outfile=/scratch/kocevski/170926/cmap_655603201_655862401_4FGL_J0309.0+1029_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=47.2617 yref=10.4927 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.61
user 0.42
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/170926/ft1_filtered_4FGL_J0309.0+1029_daily_bin1606.fits scfile=/scratch/kocevski/170926/ft2_4FGL_J0309.0+1029_daily_bin1606.fits outfile=/scratch/kocevski/170926/cmap_HighResolution_655603201_655862401_4FGL_J0309.0+1029_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=47.2617 yref=10.4927 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.60
user 0.43
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/170926/ft1_filtered_4FGL_J0309.0+1029_daily_bin1606.fits evtable="EVENTS" scfile=/scratch/kocevski/170926/ft2_4FGL_J0309.0+1029_daily_bin1606.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/170926/Model_4FGL_J0309.0+1029_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/170926/ft1_filtered_4FGL_J0309.0+1029_daily_bin1606.fits.....................!
real 93.85
user 91.99
sys 1.58

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/170926/ft1_filtered_4FGL_J0309.0+1029_daily_bin1606.fits', '/scratch/kocevski/170926/ft2_4FGL_J0309.0+1029_daily_bin1606.fits', expMap='/scratch/kocevski/170926/expmap_655603201_655862401_4FGL_J0309.0+1029_daily_bin1606.fits', expCube='/scratch/kocevski/170926/ltcube_655603201_655862401_4FGL_J0309.0+1029_daily_bin1606.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/170926/Model_4FGL_J0309.0+1029_daily_bin1606.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0309.0+1029'

4FGL J0309.0+1029
   Spectrum: LogParabola
285         norm:  4.627e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
286        alpha:  2.226e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
287         beta:  1.147e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
288           Eb:  7.342e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/170926/ft1_filtered_4FGL_J0309.0+1029_daily_bin1606.fits
Spacecraft file(s): /scratch/kocevski/170926/ft2_4FGL_J0309.0+1029_daily_bin1606.fits
Exposure map: /scratch/kocevski/170926/expmap_655603201_655862401_4FGL_J0309.0+1029_daily_bin1606.fits
Exposure cube: /scratch/kocevski/170926/ltcube_655603201_655862401_4FGL_J0309.0+1029_daily_bin1606.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/170926/Model_4FGL_J0309.0+1029_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) = 6607.46272776

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13648E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11359E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.310       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.6878       1.0000         .10000E-03   10000.    
     8 'norm      '    .60585       1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.078       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    34.511       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    14.089       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.6351       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    6.9898       1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .88843       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .89862       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6607.454     FROM MIGRAD    STATUS=CONVERGED    737 CALLS     3827 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    72.142       -.24212E-05** at limit **
   2  Prefactor     .10000E-03    3.1089       -.91722E-07** at limit **
   3  Prefactor     .10000E-03    56.362        .86044E-06** at limit **
   4  Prefactor     .10000E-03    10.384       -.17193E-05** at limit **
   5  Prefactor     23.303        22.813       -.37734E-06   -.11823E-04
   6  Prefactor     .10000E-03    5.9916       -.10771E-06** at limit **
   7  Prefactor     5.6948        15.204        .76089E-05   -.80599E-04
   8  norm          .60608        .63557       -.40279E-06   -.66919E-03
   9  Prefactor     25.047        55.321       -.50828E-05   -.11548E-03
  10  Prefactor     .10000E-03    24.220       -.42340E-06** at limit **
  11  norm          34.513        19.044       -.33406E-07    .32265E-04
  12  Prefactor     .10000E-03    12.491        .23962E-06** at limit **
  13  Prefactor     .10000E-03    19.028       -.10445E-08** at limit **
  14  Prefactor     .10000E-03    21.490       -.81082E-07** at limit **
  15  Prefactor     .10000E-03    5.9934       -.44123E-07** at limit **
  16  norm          .10000E-03    5.2473        .18934E-06** at limit **
  17  norm          .10000E-03    4.6443       -.33044E-07** at limit **
  18  norm          14.089        6.3152        .25465E-08    .13243E-05
  19  Prefactor     .10000E-03    3.4713        .32570E-07** at limit **
  20  norm          3.6352        9.0435        .56630E-06   -.89670E-05
  21  Prefactor     .10000E-03    42.148        .97797E-06** at limit **
  22  Prefactor     .10000E-03    7.1751        .24585E-06** at limit **
  23  Prefactor     .10000E-03    24.871       -.40961E-06** at limit **
  24  Prefactor     .10000E-03    2.5957        .14310E-07** at limit **
  25  Prefactor     .10000E-03    2.3472        .15051E-07** at limit **
  26  Prefactor     .10000E-03    5.7594       -.73158E-07** at limit **
  27  Prefactor     6.9899        14.899        .34108E-06   -.37209E-05
  28  norm          .10000E-03    2.0136        .71738E-08** at limit **
  29  Normalizat    .88854        .24451       -.83694E-06    .14290E-04
  30  Prefactor     .89859        .83119E-01   -.12800E-06    .93973E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 23.3026
  Prefactor  = 0.0001
  Prefactor  = 5.6948
  norm       = 0.606083
  Prefactor  = 25.0475
  Prefactor  = 0.0001
  norm       = 34.5127
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 14.0887
  Prefactor  = 0.0001
  norm       = 3.63515
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.98986
  norm       = 0.0001
  Normalizat = 0.888545
  Prefactor  = 0.898589
 **********
 **   18 **HESSE 
 **********

 FCN=   6607.454     FROM HESSE     STATUS=OK           576 CALLS     4403 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    74.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.1121        .13997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    56.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     23.303        22.829        .82965E-04   -1.4742    
   6  Prefactor     .10000E-03    6.0067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.6948        15.292        .84214E-03   -1.5231    
   8  norm          .60608        .60604        .59557E-03   -1.5552    
   9  Prefactor     25.047        55.484        .79991E-04   -1.4707    
  10  Prefactor     .10000E-03    24.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          34.513        19.045        .68214E-04   -1.4532    
  12  Prefactor     .10000E-03    12.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    21.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.1346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.2659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.6477        .17109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          14.089        6.3121        .10671E-03   -1.4957    
  19  Prefactor     .10000E-03    3.5017        .14788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.6352        9.0397        .21189E-03   -1.5327    
  21  Prefactor     .10000E-03    42.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.2017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    25.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2.6085        .12787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.3591        .12162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    5.7665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     6.9899        14.891        .15174E-03   -1.5179    
  28  norm          .10000E-03    2.0144        .11265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .88854        .26580        .42445E-03   -.96864    
  30  Prefactor     .89859        .91173E-01    .14501E-03   -.96190    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.7904e-10
Minuit parameter uncertainties:
  1  0.00132429
  2  1.22863e-06
  3  0.000651562
  4  0.000114509
  5  22.8372
  6  2.01781e-05
  7  15.3025
  8  0.606043
  9  55.5982
  10  0.000184161
  11  19.0488
  12  8.98069e-05
  13  0.000185227
  14  4.06777e-05
  15  1.11278e-05
  16  3.88773e-05
  17  8.3162e-06
  18  6.31239
  19  2.50787e-06
  20  9.04311
  21  0.00063329
  22  6.10855e-05
  23  0.00021902
  24  4.40196e-07
  25  5.827e-07
  26  2.01908e-05
  27  14.899
  28  4.51182e-07
  29  0.266193
  30  0.0911882
Done.

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

Extracting fit parameters...

4FGL J0309.0+1029
   Spectrum: LogParabola
285         norm:  3.635e+00  9.043e+00  1.000e-04  1.000e+04 ( 1.000e-12)
286        alpha:  2.226e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
287         beta:  1.147e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
288           Eb:  7.342e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  8.986e-01  9.119e-02  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  8.885e-01  2.662e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.19
Ra Dec: 47.262 10.493
Photon Flux Upper Limit: 1.42e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.56e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/170926/likelihoodResults_655603201_655862401_4FGL_J0309.0+1029_daily_bin1606.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) = 6607.4508646
delta logL = 0.00290032518205

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6607.45075442
delta logL = 0.0030105091837

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5243       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3336       1.0000          .0000       5.0000    
     3 'Normalizat'    .88735       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89871       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6607.451     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      278 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5243        9.3701        .10767E-02   -.69595E-04
   2  alpha         2.3335        1.3890        .36202E-01    .20480E-04
   3  Normalizat    .88723        .25996        .42472E-03   -.32121E-06
   4  Prefactor     .89874        .90869E-01    .14499E-03   -.78408E-07
                               ERR DEF=  .500    
Final values: 
  norm       = 3.5243
  alpha      = 2.33355
  Normalizat = 0.887231
  Prefactor  = 0.898743
 **********
 **   18 **HESSE 
 **********

 FCN=   6607.451     FROM HESSE     STATUS=OK            27 CALLS      305 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5243        8.9408        .43067E-04   -1.5332    
   2  alpha         2.3335        1.3335        .14481E-02   -.66630E-01
   3  Normalizat    .88723        .25990        .16989E-04   -.96910    
   4  Prefactor     .89874        .90811E-01    .57998E-05   -.96185    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34561e-10
Minuit parameter uncertainties:
  1  8.94418
  2  1.40693
  3  0.260269
  4  0.0908259
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/170926': 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) = 6607.45075431
delta logL = 0.00301061520076

Extracting fit parameters...

4FGL J0309.0+1029
   Spectrum: LogParabola
285         norm:  3.524e+00  8.944e+00  1.000e-04  1.000e+04 ( 1.000e-12)
286        alpha:  2.334e+00  1.407e+00  0.000e+00  5.000e+00 ( 1.000e+00)
287         beta:  1.147e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
288           Eb:  7.342e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  8.987e-01  9.083e-02  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  8.872e-01  2.603e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.19
Ra Dec: 47.262 10.493

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/170926/cmap_HighResolution_655603201_655862401_4FGL_J0309.0+1029_daily_bin1606.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.56e-05', job_status='DONE', photon_flux_upper_limit='1.42e-07', time_completed='2021-12-07 14:05:22.984939', job_id='170926', GAL2='0.90', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1638914722.99', return_code2='0', ts='0.19', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='3.01e-03', ts2='0.19', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1606' AND source_name='4FGL J0309.0+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 14:05:23 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 170926: <4FGL_J0309.0+1029_daily_bin1606> in cluster <slac> Done

Job <4FGL_J0309.0+1029_daily_bin1606> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Dec  7 13:50:14 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 13:50:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 13:50:30 2021
Terminated at Tue Dec  7 14:05:23 2021
Results reported at Tue Dec  7 14:05:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0309.0+1029_daily_bin1606 47.2617 10.4927 655603201 655862401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0309.0+1029 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   882.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             335.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            909 sec.

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

