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


Performing analysis on: 4FGL_J0259.0+0552_daily_bin1196
RA = 44.7519, Dec = 5.878
tmin = 549331201, tmax = 549590401
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='993675', job_status='RUN', time_executed='2021-08-17 06:13:41.379781', time_epoch_executed='1629206021.38' WHERE source_name='4FGL J0259.0+0552' and cadence='daily' and bin_id='1196'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993675

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993675/ft1_4FGL_J0259.0+0552_daily_bin1196.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993675/ft2_4FGL_J0259.0+0552_daily_bin1196.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993675/ft1_4FGL_J0259.0+0552_daily_bin1196.fits outfile=/scratch/kocevski/993675/ft1_filteredMKT_4FGL_J0259.0+0552_daily_bin1196.fits ra=44.7519 dec=5.878 rad=12.0 tmin=549331201.0 tmax=549590401.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 5.99
user 2.63
sys 2.65

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/993675/ft2_4FGL_J0259.0+0552_daily_bin1196.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/993675/ft2_4FGL_J0259.0+0552_daily_bin1196.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/993675/ft1_filteredMKT_4FGL_J0259.0+0552_daily_bin1196.fits evtable="EVENTS" outfile="/scratch/kocevski/993675/ft1_filtered_4FGL_J0259.0+0552_daily_bin1196.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 3.62
user 0.35
sys 2.62

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/993675/ft1_filtered_4FGL_J0259.0+0552_daily_bin1196.fits" evtable="EVENTS" scfile=/scratch/kocevski/993675/ft2_4FGL_J0259.0+0552_daily_bin1196.fits sctable="SC_DATA" outfile=/scratch/kocevski/993675/ltcube_549331201_549590401_4FGL_J0259.0+0552_daily_bin1196.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/993675/ft2_4FGL_J0259.0+0552_daily_bin1196.fits
.....................!
real 17.76
user 14.15
sys 3.12

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993675/ft1_filtered_4FGL_J0259.0+0552_daily_bin1196.fits evtable="EVENTS" scfile=/scratch/kocevski/993675/ft2_4FGL_J0259.0+0552_daily_bin1196.fits sctable="SC_DATA" expcube=/scratch/kocevski/993675/ltcube_549331201_549590401_4FGL_J0259.0+0552_daily_bin1196.fits outfile=/scratch/kocevski/993675/expmap_549331201_549590401_4FGL_J0259.0+0552_daily_bin1196.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/993675/ltcube_549331201_549590401_4FGL_J0259.0+0552_daily_bin1196.fits
.....................!
real 200.68
user 188.79
sys 7.67

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.0+0552 @ 44.7519 5.878

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/993675/ft1_filtered_4FGL_J0259.0+0552_daily_bin1196.fits scfile=/scratch/kocevski/993675/ft2_4FGL_J0259.0+0552_daily_bin1196.fits outfile=/scratch/kocevski/993675/cmap_549331201_549590401_4FGL_J0259.0+0552_daily_bin1196.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.7519 yref=5.878 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 3.70
user 0.39
sys 2.55

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/993675/ft1_filtered_4FGL_J0259.0+0552_daily_bin1196.fits scfile=/scratch/kocevski/993675/ft2_4FGL_J0259.0+0552_daily_bin1196.fits outfile=/scratch/kocevski/993675/cmap_HighResolution_549331201_549590401_4FGL_J0259.0+0552_daily_bin1196.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.7519 yref=5.878 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 3.63
user 0.40
sys 2.53

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/993675/ft1_filtered_4FGL_J0259.0+0552_daily_bin1196.fits evtable="EVENTS" scfile=/scratch/kocevski/993675/ft2_4FGL_J0259.0+0552_daily_bin1196.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/993675/Model_4FGL_J0259.0+0552_daily_bin1196.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/993675/ft1_filtered_4FGL_J0259.0+0552_daily_bin1196.fits.....................!
real 61.60
user 52.22
sys 4.46

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/993675/ft1_filtered_4FGL_J0259.0+0552_daily_bin1196.fits', '/scratch/kocevski/993675/ft2_4FGL_J0259.0+0552_daily_bin1196.fits', expMap='/scratch/kocevski/993675/expmap_549331201_549590401_4FGL_J0259.0+0552_daily_bin1196.fits', expCube='/scratch/kocevski/993675/ltcube_549331201_549590401_4FGL_J0259.0+0552_daily_bin1196.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/993675/Model_4FGL_J0259.0+0552_daily_bin1196.xml', optimizer='MINUIT')

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

4FGL J0259.0+0552
   Spectrum: LogParabola
285         norm:  1.939e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        alpha:  1.870e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
287         beta:  1.393e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
288           Eb:  2.098e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/993675/ft1_filtered_4FGL_J0259.0+0552_daily_bin1196.fits
Spacecraft file(s): /scratch/kocevski/993675/ft2_4FGL_J0259.0+0552_daily_bin1196.fits
Exposure map: /scratch/kocevski/993675/expmap_549331201_549590401_4FGL_J0259.0+0552_daily_bin1196.fits
Exposure cube: /scratch/kocevski/993675/ltcube_549331201_549590401_4FGL_J0259.0+0552_daily_bin1196.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/993675/Model_4FGL_J0259.0+0552_daily_bin1196.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) = 3537.70114137

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9019       1.0000         .10000E-03   10000.    
     2 'norm      '    .82235       1.0000         .10000E-03   10000.    
     3 'Prefactor '    52.970       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    200.25       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .55931       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10334E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.853       1.0000         .10000E-03   10000.    
    10 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    41.395       1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.326       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.317       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.1801       1.0000         .10000E-03   10000.    
    21 'norm      '    21.275       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .84699       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .98717       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3537.688     FROM MIGRAD    STATUS=CONVERGED    653 CALLS     3311 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9018        3.9045        .21270E-07    .17832E-03
   2  norm          .82217        .94471        .93628E-07    .58476E-03
   3  Prefactor     52.964        42.669        .36452E-07    .65642E-04
   4  Prefactor     .10010E-03    10.950       -.40622E-06** at limit **
   5  Prefactor     200.28        145.13        .17931E-05    .34045E-04
   6  Prefactor     .54101        156.47       -.22114E-04    .27591E-04
   7  Prefactor     .10000E-03    79.239        .19577E-05** at limit **
   8  Prefactor     .10000E-03    6.7931        .60469E-07** at limit **
   9  Prefactor     15.859        15.579       -.81480E-06   -.18456E-03
  10  norm          .10000E-03    .47211        .12543E-06** at limit **
  11  Prefactor     41.459        97.262        .10837E-04    .36883E-04
  12  Prefactor     18.313        29.488       -.20933E-06    .38458E-04
  13  norm          .10000E-03    14.262       -.25507E-06** at limit **
  14  Prefactor     .10000E-03    46.316       -.38055E-06** at limit **
  15  Prefactor     23.303        67.394       -.54727E-06    .29095E-04
  16  Prefactor     .10000E-03    25.079        .14509E-06** at limit **
  17  Prefactor     .10000E-03    8.0369        .25563E-06** at limit **
  18  norm          .10000E-03    5.7441        .22202E-07** at limit **
  19  norm          .10000E-03    3.1005        .12213E-06** at limit **
  20  Prefactor     4.1806        7.9292       -.15099E-05    .33416E-04
  21  norm          21.283        22.350       -.70580E-06   -.44217E-04
  22  Prefactor     .10000E-03    8.1641        .72548E-07** at limit **
  23  Prefactor     .10000E-03    11.534        .38300E-07** at limit **
  24  Prefactor     .10000E-03    10.284        .19054E-06** at limit **
  25  Prefactor     .10000E-03    23.180        .17362E-06** at limit **
  26  Normalizat    .84740        .31739       -.76418E-06    .88829E-04
  27  Prefactor     .98701        .14870        .99022E-06    .10779E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.90182
  norm       = 0.822166
  Prefactor  = 52.964
  Prefactor  = 0.000100103
  Prefactor  = 200.283
  Prefactor  = 0.541013
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 15.8586
  norm       = 0.0001
  Prefactor  = 41.459
  Prefactor  = 18.3131
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 23.3034
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.18056
  norm       = 21.2827
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.847402
  Prefactor  = 0.987013
 **********
 **   18 **HESSE 
 **********

 FCN=   3537.688     FROM HESSE     STATUS=OK           484 CALLS     3795 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9018        3.8881        .10839E-03   -1.5313    
   2  norm          .82217        .89703        .59398E-03   -1.5527    
   3  Prefactor     52.964        42.656        .55108E-04   -1.4251    
   4  Prefactor     .10010E-03    43.543        .34338E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     200.28        145.19        .14277E-03   -1.2868    
   6  Prefactor     .54101        178.26        .45995E-02   -1.5561    
   7  Prefactor     .10000E-03    80.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.8019        .15140E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.859        15.517        .10059E-03   -1.4911    
  10  norm          .10000E-03    .62950        .77820E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     41.459        100.42        .62305E-04   -1.4419    
  12  Prefactor     18.313        29.677        .93559E-04   -1.4852    
  13  norm          .10000E-03    14.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    46.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     23.303        67.607        .82952E-04   -1.4742    
  16  Prefactor     .10000E-03    25.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.2669        .32935E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.7454        .13923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.1080        .10229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.1806        7.8469        .98562E-03   -1.5299    
  21  norm          21.283        22.556        .86837E-04   -1.4785    
  22  Prefactor     .10000E-03    8.1678        .16600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    11.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    10.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    23.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .84740        .34520        .39079E-03   -.98334    
  27  Prefactor     .98701        .16296        .17839E-03   -.93164    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64358e-09
Minuit parameter uncertainties:
  1  3.88837
  2  0.897042
  3  42.6804
  4  0.00424033
  5  145.454
  6  19.6984
  7  0.000778957
  8  3.26741e-06
  9  15.5213
  10  1.09485e-06
  11  100.838
  12  29.7009
  13  0.000121891
  14  0.000305455
  15  67.8305
  16  0.000175131
  17  1.70213e-05
  18  4.45568e-06
  19  8.74844e-06
  20  7.8488
  21  22.5649
  22  3.54795e-05
  23  0.000127885
  24  5.05637e-05
  25  3.45826e-05
  26  0.346105
  27  0.163039
Done.

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

Extracting fit parameters...

4FGL J0259.0+0552
   Spectrum: LogParabola
285         norm:  1.000e-04  4.456e-06  1.000e-04  1.000e+04 ( 1.000e-13)
286        alpha:  1.870e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
287         beta:  1.393e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
288           Eb:  2.098e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
494    Prefactor:  9.870e-01  1.630e-01  0.000e+00  1.000e+01 ( 1.000e+00)
495        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
496        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
493   Normalization:  8.474e-01  3.461e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 44.752 5.878
Photon Flux Upper Limit: 6.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.52e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/993675/likelihoodResults_549331201_549590401_4FGL_J0259.0+0552_daily_bin1196.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) = 3537.68881917
delta logL = -0.000819621480332

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3537.68799952
delta logL = 3.67199390894e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8578       1.0000          .0000       5.0000    
     3 'Normalizat'    .84740       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98701       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4970E+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=   3537.688     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      241 TOTAL
                     EDM=   .21E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    244.88        .14008E-01** at limit **
   2  alpha         1.4732        3.8486        .17206        .52530E-08
   3  Normalizat    .84740        .53857E-01    .39079E-03    .12364E-05
   4  Prefactor     .98701        .26556E-01    .17840E-03    .36006E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.47322
  Normalizat = 0.847401
  Prefactor  = 0.987013
 **********
 **   18 **HESSE 
 **********

 FCN=   3537.688     FROM HESSE     STATUS=OK            23 CALLS      264 TOTAL
                     EDM=   .65E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.3975        .14673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4732        4.2596        .68823E-02   -.42324    
   3  Normalizat    .84740        .30735        .15631E-04   -.98334    
   4  Prefactor     .98701        .15178        .71358E-05   -.93164    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.45538e-13
Minuit parameter uncertainties:
  1  5.58981e-06
  2  296.394
  3  0.307981
  4  0.151846
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993675': 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) = 3537.68799869
delta logL = 8.67202288646e-07

Extracting fit parameters...

4FGL J0259.0+0552
   Spectrum: LogParabola
285         norm:  1.000e-04  5.590e-06  1.000e-04  1.000e+04 ( 1.000e-13)
286        alpha:  1.473e+00  2.964e+02  0.000e+00  5.000e+00 ( 1.000e+00)
287         beta:  1.393e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
288           Eb:  2.098e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
494    Prefactor:  9.870e-01  1.518e-01  0.000e+00  1.000e+01 ( 1.000e+00)
495        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
496        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
493   Normalization:  8.474e-01  3.080e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 44.752 5.878

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/993675/cmap_HighResolution_549331201_549590401_4FGL_J0259.0+0552_daily_bin1196.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.52e-05', job_status='DONE', photon_flux_upper_limit='6.09e-08', time_completed='2021-08-17 06:23:49.427816', job_id='993675', GAL2='0.99', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1629206629.43', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='8.67e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.87' WHERE bin_id='1196' AND source_name='4FGL J0259.0+0552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 06:23:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 993675: <4FGL_J0259.0+0552_daily_bin1196> in cluster <slac> Done

Job <4FGL_J0259.0+0552_daily_bin1196> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Tue Aug 17 06:11:04 2021
Job was executed on host(s) <bullet0295>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 06:11:44 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:11:44 2021
Terminated at Tue Aug 17 06:23:50 2021
Results reported at Tue Aug 17 06:23:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0259.0+0552_daily_bin1196 44.7519 5.878 549331201 549590401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0259.0+0552 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   621.41 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             257.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   726 sec.
    Turnaround time :                            766 sec.

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

