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


Performing analysis on: 4FGL_J0259.4+0746_daily_bin451
RA = 44.8578, Dec = 7.7833
tmin = 356227201, tmax = 356486401
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='998968', job_status='RUN', time_executed='2021-08-17 06:31:45.530414', time_epoch_executed='1629207105.53' WHERE source_name='4FGL J0259.4+0746' and cadence='daily' and bin_id='451'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/998968

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/998968/ft1_4FGL_J0259.4+0746_daily_bin451.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...
fmerge4.1 : Error, missing column list names, file /scratch/kocevski/998968/ft2_filtered_0009.fits
fmerge4.1 : Fatal error!
FCCMPL: not found in table: RA_SUN
FCCMPL: not found in table: DEC_SUN

Merged file saved to:
/scratch/kocevski/998968/ft2_4FGL_J0259.4+0746_daily_bin451.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/998968/ft1_4FGL_J0259.4+0746_daily_bin451.fits outfile=/scratch/kocevski/998968/ft1_filteredMKT_4FGL_J0259.4+0746_daily_bin451.fits ra=44.8578 dec=7.7833 rad=12.0 tmin=356227201.0 tmax=356486401.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 3.74
user 2.38
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/998968/ft2_4FGL_J0259.4+0746_daily_bin451.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/998968/ft2_4FGL_J0259.4+0746_daily_bin451.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/998968/ft1_filteredMKT_4FGL_J0259.4+0746_daily_bin451.fits evtable="EVENTS" outfile="/scratch/kocevski/998968/ft1_filtered_4FGL_J0259.4+0746_daily_bin451.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.20
user 0.30
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/998968/ft1_filtered_4FGL_J0259.4+0746_daily_bin451.fits" evtable="EVENTS" scfile=/scratch/kocevski/998968/ft2_4FGL_J0259.4+0746_daily_bin451.fits sctable="SC_DATA" outfile=/scratch/kocevski/998968/ltcube_356227201_356486401_4FGL_J0259.4+0746_daily_bin451.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/998968/ft2_4FGL_J0259.4+0746_daily_bin451.fits
.....................!
real 4.11
user 2.76
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/998968/ft1_filtered_4FGL_J0259.4+0746_daily_bin451.fits evtable="EVENTS" scfile=/scratch/kocevski/998968/ft2_4FGL_J0259.4+0746_daily_bin451.fits sctable="SC_DATA" expcube=/scratch/kocevski/998968/ltcube_356227201_356486401_4FGL_J0259.4+0746_daily_bin451.fits outfile=/scratch/kocevski/998968/expmap_356227201_356486401_4FGL_J0259.4+0746_daily_bin451.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/998968/ltcube_356227201_356486401_4FGL_J0259.4+0746_daily_bin451.fits
.....................!
real 160.75
user 152.14
sys 4.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 157 point sources and 0 extended sources

Setting source of interest to:
4FGL J0259.4+0746 @ 44.8578 7.7833

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/998968/ft1_filtered_4FGL_J0259.4+0746_daily_bin451.fits scfile=/scratch/kocevski/998968/ft2_4FGL_J0259.4+0746_daily_bin451.fits outfile=/scratch/kocevski/998968/cmap_356227201_356486401_4FGL_J0259.4+0746_daily_bin451.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=44.8578 yref=7.7833 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
gtbin: WARNING: Spacecraft data ceases before end of last GTI.
gtbin: WARNING: EXPOSURE keyword calculation may not be accurate.
real 0.79
user 0.31
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/998968/ft1_filtered_4FGL_J0259.4+0746_daily_bin451.fits scfile=/scratch/kocevski/998968/ft2_4FGL_J0259.4+0746_daily_bin451.fits outfile=/scratch/kocevski/998968/cmap_HighResolution_356227201_356486401_4FGL_J0259.4+0746_daily_bin451.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=44.8578 yref=7.7833 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
gtbin: WARNING: Spacecraft data ceases before end of last GTI.
gtbin: WARNING: EXPOSURE keyword calculation may not be accurate.
real 0.48
user 0.32
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/998968/ft1_filtered_4FGL_J0259.4+0746_daily_bin451.fits evtable="EVENTS" scfile=/scratch/kocevski/998968/ft2_4FGL_J0259.4+0746_daily_bin451.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/998968/Model_4FGL_J0259.4+0746_daily_bin451.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/998968/ft1_filtered_4FGL_J0259.4+0746_daily_bin451.fits....................!
real 25.48
user 21.50
sys 1.10

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/998968/ft1_filtered_4FGL_J0259.4+0746_daily_bin451.fits', '/scratch/kocevski/998968/ft2_4FGL_J0259.4+0746_daily_bin451.fits', expMap='/scratch/kocevski/998968/expmap_356227201_356486401_4FGL_J0259.4+0746_daily_bin451.fits', expCube='/scratch/kocevski/998968/ltcube_356227201_356486401_4FGL_J0259.4+0746_daily_bin451.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/998968/Model_4FGL_J0259.4+0746_daily_bin451.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0259.4+0746'

4FGL J0259.4+0746
   Spectrum: LogParabola
290         norm:  2.751e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.122e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
292         beta:  6.205e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  9.541e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/998968/ft1_filtered_4FGL_J0259.4+0746_daily_bin451.fits
Spacecraft file(s): /scratch/kocevski/998968/ft2_4FGL_J0259.4+0746_daily_bin451.fits
Exposure map: /scratch/kocevski/998968/expmap_356227201_356486401_4FGL_J0259.4+0746_daily_bin451.fits
Exposure cube: /scratch/kocevski/998968/ltcube_356227201_356486401_4FGL_J0259.4+0746_daily_bin451.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/998968/Model_4FGL_J0259.4+0746_daily_bin451.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) = 1296.10047548

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8392       1.0000         .10000E-03   10000.    
     2 'norm      '    4.4275       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.5805       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.037       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.877       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10880E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .99236E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.754       1.0000         .10000E-03   10000.    
    16 'Prefactor '    99.851       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    31.868       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-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 '    75.420       1.0000         .10000E-03   10000.    
    27 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .29096       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3173       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1296.074     FROM MIGRAD    STATUS=CONVERGED    698 CALLS     3617 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8386        7.6848        .14471E-06    .26108E-04
   2  norm          4.4260        4.8548        .43678E-06    .21107E-04
   3  Prefactor     .10000E-03    29.096       -.21021E-06** at limit **
   4  Prefactor     .10000E-03    15.134        .11012E-06** at limit **
   5  Prefactor     .10000E-03    104.89        .43331E-07** at limit **
   6  Prefactor     5.5657        22.576        .92332E-06    .83952E-04
   7  Prefactor     14.007        46.105        .12214E-05   -.10106E-04
   8  Prefactor     11.870        27.237        .28187E-06    .22279E-04
   9  Prefactor     .10000E-03    64.850        .28550E-06** at limit **
  10  norm          .10000E-03    .73667        .68352E-07** at limit **
  11  Prefactor     .10000E-03    552.83       -.25439E-05** at limit **
  12  Prefactor     .10000E-03    25.017        .85286E-07** at limit **
  13  norm          .10000E-03    13.089        .74085E-08** at limit **
  14  Prefactor     .10000E-03    73.329        .55455E-06** at limit **
  15  Prefactor     22.748        137.19       -.27057E-05    .62534E-04
  16  Prefactor     99.819        198.63        .33957E-05   -.27042E-05
  17  Prefactor     .10000E-03    67.439        .15412E-06** at limit **
  18  Prefactor     .10000E-03    10.559        .62331E-07** at limit **
  19  norm          .10000E-03    18.782       -.23105E-07** at limit **
  20  norm          .10000E-03    7.1154        .51735E-07** at limit **
  21  Prefactor     .10000E-03    7.3014        .22317E-07** at limit **
  22  norm          31.864        25.679        .18811E-06    .28409E-04
  23  Prefactor     .10000E-03    19.500        .22295E-07** at limit **
  24  Prefactor     .10000E-03    24.050        .96581E-07** at limit **
  25  Prefactor     .10000E-03    12.822       -.94102E-08** at limit **
  26  Prefactor     75.417        53.774        .27012E-06    .78184E-05
  27  norm          .10000E-03    19.953       -.83324E-07** at limit **
  28  Normalizat    .29150        .61201       -.21357E-04    .14193E-04
  29  Prefactor     1.3171        .25708        .38113E-05    .95326E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.83859
  norm       = 4.426
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.5657
  Prefactor  = 14.0072
  Prefactor  = 11.8702
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.7485
  Prefactor  = 99.819
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 31.8643
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 75.4169
  norm       = 0.0001
  Normalizat = 0.291497
  Prefactor  = 1.31709
 **********
 **   18 **HESSE 
 **********

 FCN=   1296.074     FROM HESSE     STATUS=OK           537 CALLS     4154 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8386        7.6873        .96020E-04   -1.5148    
   2  norm          4.4260        4.8538        .77335E-04   -1.5287    
   3  Prefactor     .10000E-03    29.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.148        .13672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    104.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.5657        22.220        .17006E-03   -1.5236    
   7  Prefactor     14.007        46.092        .10691E-03   -1.4959    
   8  Prefactor     11.870        27.244        .11624E-03   -1.5019    
   9  Prefactor     .10000E-03    65.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .75323        .30175E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    549.94        .20767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    25.035        .17597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    13.090        .12724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    73.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     22.748        128.03        .83971E-04   -1.4754    
  16  Prefactor     99.819        198.63        .20116E-03   -1.3706    
  17  Prefactor     .10000E-03    67.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.580        .11428E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    18.789        .15244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    7.1301        .93802E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.3031        .95027E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          31.864        25.742        .70979E-04   -1.4578    
  23  Prefactor     .10000E-03    19.506        .15533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    24.053        .17251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    12.845        .12592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     75.417        53.875        .46235E-04   -1.3969    
  27  norm          .10000E-03    20.010        .15713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .29150        .61011        .70920E-03   -1.2335    
  29  Prefactor     1.3171        .25662        .15441E-03   -.82800    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24442e-10
Minuit parameter uncertainties:
  1  7.68822
  2  4.85426
  3  5.17224e-06
  4  2.17604e-05
  5  0.000171607
  6  22.2531
  7  46.2095
  8  27.2721
  9  0.000152733
  10  2.44102e-06
  11  0.00228257
  12  5.59831e-05
  13  1.4954e-05
  14  0.00015655
  15  108.293
  16  199.972
  17  1.06253e-05
  18  3.1196e-06
  19  1.69405e-05
  20  7.46422e-07
  21  1.31411e-08
  22  25.7511
  23  9.86527e-06
  24  3.00948e-05
  25  1.22141e-05
  26  53.9101
  27  1.57164e-05
  28  0.624884
  29  0.256869
Done.

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

Extracting fit parameters...

4FGL J0259.4+0746
   Spectrum: LogParabola
290         norm:  1.000e-04  7.464e-07  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.122e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
292         beta:  6.205e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  9.541e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
495    Prefactor:  1.317e+00  2.569e-01  0.000e+00  1.000e+01 ( 1.000e+00)
496        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
497        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
494   Normalization:  2.915e-01  6.249e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 44.858 7.783
Photon Flux Upper Limit: 2.86e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.40e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/998968/likelihoodResults_356227201_356486401_4FGL_J0259.4+0746_daily_bin451.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): 102
logL (Free Index) = 1296.07482164
delta logL = -0.000651959059496

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1296.07416968
delta logL = 5.898073141e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1181       1.0000          .0000       5.0000    
     3 'Normalizat'    .29150       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3171       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4980E+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=   1296.074     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      234 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    747.23        .93864E-03** at limit **
   2  alpha         2.0097        3.2237        .50000        .11495E-06
   3  Normalizat    .29149        .17718        .70914E-03   -.18310E-03
   4  Prefactor     1.3171        .78997E-01    .15441E-03   -.82440E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 2.00972
  Normalizat = 0.29149
  Prefactor  = 1.31708
 **********
 **   18 **HESSE 
 **********

 FCN=   1296.074     FROM HESSE     STATUS=OK            29 CALLS      263 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    16.088        .18773E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0097        3.6429        .50000       -.19739    
   3  Normalizat    .29149        .54108        .28366E-04   -1.2335    
   4  Prefactor     1.3171        .24510        .30882E-04   -.82800    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63974e-09
Minuit parameter uncertainties:
  1  0.000239961
  2  367.223
  3  0.551234
  4  0.245315
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/998968': 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) = 1296.07416961
delta logL = 6.65136212774e-08

Extracting fit parameters...

4FGL J0259.4+0746
   Spectrum: LogParabola
290         norm:  1.000e-04  2.400e-04  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.010e+00  3.672e+02  0.000e+00  5.000e+00 ( 1.000e+00)
292         beta:  6.205e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  9.541e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
495    Prefactor:  1.317e+00  2.453e-01  0.000e+00  1.000e+01 ( 1.000e+00)
496        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
497        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
494   Normalization:  2.915e-01  5.512e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 44.858 7.783

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/998968/cmap_HighResolution_356227201_356486401_4FGL_J0259.4+0746_daily_bin451.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.40e-04', job_status='DONE', photon_flux_upper_limit='2.86e-07', time_completed='2021-08-17 06:37:39.515536', job_id='998968', GAL2='1.32', fit_tolerance='1e-08', EG2='0.29', EG='0.29', time_epoch_completed='1629207459.52', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.32', dlogl='6.65e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='451' AND source_name='4FGL J0259.4+0746' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 06:37:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 998968: <4FGL_J0259.4+0746_daily_bin451> in cluster <slac> Done

Job <4FGL_J0259.4+0746_daily_bin451> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 17 06:26:16 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 06:27:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 17 06:27:58 2021
Terminated at Tue Aug 17 06:37:40 2021
Results reported at Tue Aug 17 06:37:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0259.4+0746_daily_bin451 44.8578 7.7833 356227201 356486401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0259.4+0746 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   334.15 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             268.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   581 sec.
    Turnaround time :                            684 sec.

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

