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


Performing analysis on: 4FGL_J0259.0+0552_daily_bin1603
RA = 44.7519, Dec = 5.878
tmin = 654825601, tmax = 655084801
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='912865', job_status='RUN', time_executed='2021-10-05 00:01:09.707035', time_epoch_executed='1633417269.71' WHERE source_name='4FGL J0259.0+0552' and cadence='daily' and bin_id='1603'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/912865

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/912865/ft1_4FGL_J0259.0+0552_daily_bin1603.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/912865/ft2_4FGL_J0259.0+0552_daily_bin1603.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/912865/ft1_4FGL_J0259.0+0552_daily_bin1603.fits outfile=/scratch/kocevski/912865/ft1_filteredMKT_4FGL_J0259.0+0552_daily_bin1603.fits ra=44.7519 dec=5.878 rad=12.0 tmin=654825601.0 tmax=655084801.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.08
user 2.81
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/912865/ft1_filtered_4FGL_J0259.0+0552_daily_bin1603.fits" evtable="EVENTS" scfile=/scratch/kocevski/912865/ft2_4FGL_J0259.0+0552_daily_bin1603.fits sctable="SC_DATA" outfile=/scratch/kocevski/912865/ltcube_654825601_655084801_4FGL_J0259.0+0552_daily_bin1603.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/912865/ft2_4FGL_J0259.0+0552_daily_bin1603.fits
.....................!
real 16.50
user 16.11
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/912865/ft1_filtered_4FGL_J0259.0+0552_daily_bin1603.fits evtable="EVENTS" scfile=/scratch/kocevski/912865/ft2_4FGL_J0259.0+0552_daily_bin1603.fits sctable="SC_DATA" expcube=/scratch/kocevski/912865/ltcube_654825601_655084801_4FGL_J0259.0+0552_daily_bin1603.fits outfile=/scratch/kocevski/912865/expmap_654825601_655084801_4FGL_J0259.0+0552_daily_bin1603.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/912865/ltcube_654825601_655084801_4FGL_J0259.0+0552_daily_bin1603.fits
.....................!
real 194.31
user 188.47
sys 5.44

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/912865/ft1_filtered_4FGL_J0259.0+0552_daily_bin1603.fits scfile=/scratch/kocevski/912865/ft2_4FGL_J0259.0+0552_daily_bin1603.fits outfile=/scratch/kocevski/912865/cmap_654825601_655084801_4FGL_J0259.0+0552_daily_bin1603.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 0.60
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/912865/ft1_filtered_4FGL_J0259.0+0552_daily_bin1603.fits scfile=/scratch/kocevski/912865/ft2_4FGL_J0259.0+0552_daily_bin1603.fits outfile=/scratch/kocevski/912865/cmap_HighResolution_654825601_655084801_4FGL_J0259.0+0552_daily_bin1603.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 0.61
user 0.42
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/912865/ft1_filtered_4FGL_J0259.0+0552_daily_bin1603.fits', '/scratch/kocevski/912865/ft2_4FGL_J0259.0+0552_daily_bin1603.fits', expMap='/scratch/kocevski/912865/expmap_654825601_655084801_4FGL_J0259.0+0552_daily_bin1603.fits', expCube='/scratch/kocevski/912865/ltcube_654825601_655084801_4FGL_J0259.0+0552_daily_bin1603.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/912865/Model_4FGL_J0259.0+0552_daily_bin1603.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/912865/ft1_filtered_4FGL_J0259.0+0552_daily_bin1603.fits
Spacecraft file(s): /scratch/kocevski/912865/ft2_4FGL_J0259.0+0552_daily_bin1603.fits
Exposure map: /scratch/kocevski/912865/expmap_654825601_655084801_4FGL_J0259.0+0552_daily_bin1603.fits
Exposure cube: /scratch/kocevski/912865/ltcube_654825601_655084801_4FGL_J0259.0+0552_daily_bin1603.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/912865/Model_4FGL_J0259.0+0552_daily_bin1603.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) = 2392.05922222

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10103E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    124.99       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13555E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10580E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    143.49       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.092       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    9.2061       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    34.320       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .17975       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2855       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=   2392.056     FROM MIGRAD    STATUS=CONVERGED    641 CALLS     3796 TOTAL
                     EDM=   .29E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 17.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.2580        .30243E-07** at limit **
   2  norm          .10000E-03    9.2705        .18875E-06** at limit **
   3  Prefactor     124.99        148.37        .32249E-06    .15471E-04
   4  Prefactor     .10000E-03    42.782       -.36513E-08** at limit **
   5  Prefactor     .10000E-03    341.91       -.77970E-07** at limit **
   6  Prefactor     .10000E-03    40.536        .69650E-07** at limit **
   7  Prefactor     .10000E-03    50.608       -.24258E-07** at limit **
   8  Prefactor     .10000E-03    35.163        .16745E-06** at limit **
   9  Prefactor     .10000E-03    21.602        .78862E-09** at limit **
  10  norm          .10000E-03    1.8602        .89060E-07** at limit **
  11  Prefactor     .10000E-03    60.721        .17778E-06** at limit **
  12  Prefactor     143.53        102.76        .97479E-06    .45302E-04
  13  norm          .10000E-03    22.415        .64433E-08** at limit **
  14  Prefactor     .10000E-03    41.598       -.23725E-07** at limit **
  15  Prefactor     18.033        435.58        .57427E-05   -.24377E-05
  16  Prefactor     .10000E-03    27.305        .38307E-07** at limit **
  17  Prefactor     .10000E-03    6.5089        .35103E-07** at limit **
  18  norm          .10000E-03    11.687        .41117E-07** at limit **
  19  norm          9.2058        12.549        .16951E-06   -.67283E-04
  20  Prefactor     .10000E-03    5.1888        .14927E-07** at limit **
  21  norm          34.316        24.348        .10970E-06   -.54279E-04
  22  Prefactor     .10000E-03    12.926       -.37472E-07** at limit **
  23  Prefactor     .10000E-03    14.450        .10037E-06** at limit **
  24  Prefactor     .10000E-03    9.8351        .38619E-07** at limit **
  25  Prefactor     .10000E-03    27.268        .15728E-06** at limit **
  26  Normalizat    .17967        .43167       -.14615E-04   -.80659E-05
  27  Prefactor     1.2855        .17730        .21719E-05   -.56317E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 124.991
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 143.534
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.033
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.20585
  Prefactor  = 0.0001
  norm       = 34.3159
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.179666
  Prefactor  = 1.28549
 **********
 **   18 **HESSE 
 **********

 FCN=   2392.056     FROM HESSE     STATUS=OK           474 CALLS     4270 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.2585        .14535E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    9.7058        .29103E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     124.99        148.38        .18003E-03   -1.3467    
   4  Prefactor     .10000E-03    42.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    341.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    40.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    50.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    35.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    21.617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.4033        .12995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    60.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     143.53        103.11        .16817E-03   -1.3306    
  13  norm          .10000E-03    22.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    41.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.033        440.11        .94163E-04   -1.4858    
  16  Prefactor     .10000E-03    27.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.5146        .12187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    11.685        .16330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          9.2058        12.557        .13209E-03   -1.5101    
  20  Prefactor     .10000E-03    5.1949        .10881E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          34.316        24.424        .68403E-04   -1.4536    
  22  Prefactor     .10000E-03    12.925        .17172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    14.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    9.8752        .14969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    27.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .17967        .44697        .91025E-02   -1.3094    
  27  Prefactor     1.2855        .18215        .14892E-03   -.83739    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60509e-09
Minuit parameter uncertainties:
  1  7.35755e-06
  2  4.88184e-05
  3  148.821
  4  8.6203e-05
  5  0.000492382
  6  8.04593e-05
  7  0.000163787
  8  4.28011e-05
  9  2.12988e-05
  10  1.54674e-05
  11  0.00010945
  12  103.238
  13  5.44177e-05
  14  4.64653e-05
  15  179.674
  16  1.49684e-05
  17  1.06352e-05
  18  6.19367e-06
  19  12.5606
  20  3.81903e-06
  21  24.4312
  22  3.05356e-05
  23  2.13604e-05
  24  1.78816e-05
  25  2.69149e-05
  26  0.45642
  27  0.182245
Done.

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

Extracting fit parameters...

4FGL J0259.0+0552
   Spectrum: LogParabola
285         norm:  1.000e-04  6.194e-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:  1.285e+00  1.822e-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:  1.797e-01  4.564e-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: 1.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.33e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/912865/likelihoodResults_654825601_655084801_4FGL_J0259.0+0552_daily_bin1603.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) = 2392.05618199
delta logL = -0.000387354134546

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2392.05579462
delta logL = 1.96359906113e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8566       1.0000          .0000       5.0000    
     3 'Normalizat'    .17970       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2855       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   2392.056     FROM MIGRAD    STATUS=FAILED        92 CALLS      243 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    417.81        .16460E-01** at limit **
   2  alpha         1.4392        3.9802        .17209        .46046E-07
   3  Normalizat    .17967        .65936E-01    .91021E-02    .20503E-03
   4  Prefactor     1.2855        .27193E-01    .14892E-03    .10648E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   2392.056     FROM SIMPLEX   STATUS=UNCHANGED    174 CALLS      417 TOTAL
                     EDM=   .85E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    417.81        .51855E-03** at limit **
   2  alpha         1.4392        3.9802        .35690E-05    .46046E-07
   3  Normalizat    .17967        .65936E-01    .20721E-06    .20503E-03
   4  Prefactor     1.2855        .27193E-01    .23249E-07    .10648E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2392.056     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      445 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    13.578        .17450E-02** at limit **
   2  alpha         1.4451        4.2124        .68836E-02    .12321E-06
   3  Normalizat    .17967        .41149        .36409E-03    .19913E-03
   4  Prefactor     1.2855        .17256        .29784E-04    .10630E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100007
  alpha      = 1.44515
  Normalizat = 0.179675
  Prefactor  = 1.28549
 **********
 **   18 **HESSE 
 **********

 FCN=   2392.056     FROM HESSE     STATUS=OK            23 CALLS      468 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    13.345        .34900E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4451        2.9535        .13767E-02   -.43558    
   3  Normalizat    .17967        .41123        .72817E-04   -1.3094    
   4  Prefactor     1.2855        .17245        .59569E-05   -.83739    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53046e-09
Minuit parameter uncertainties:
  1  0.00059075
  2  418.994
  3  0.418525
  4  0.172523
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/912865': 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) = 2392.0557941
delta logL = 5.30281795363e-07

Extracting fit parameters...

4FGL J0259.0+0552
   Spectrum: LogParabola
285         norm:  1.000e-04  5.908e-04  1.000e-04  1.000e+04 ( 1.000e-13)
286        alpha:  1.445e+00  4.190e+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:  1.285e+00  1.725e-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:  1.797e-01  4.185e-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/912865/cmap_HighResolution_654825601_655084801_4FGL_J0259.0+0552_daily_bin1603.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.33e-04', job_status='DONE', photon_flux_upper_limit='1.24e-07', time_completed='2021-10-05 00:09:32.683941', job_id='912865', GAL2='1.29', fit_tolerance='1e-08', EG2='0.18', EG='0.18', time_epoch_completed='1633417772.68', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.29', dlogl='5.30e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.87' WHERE bin_id='1603' AND source_name='4FGL J0259.0+0552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Oct  5 00:09:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 912865: <4FGL_J0259.0+0552_daily_bin1603> in cluster <slac> Done

Job <4FGL_J0259.0+0552_daily_bin1603> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Oct  5 00:00:46 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct  5 00:00:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct  5 00:00:48 2021
Terminated at Tue Oct  5 00:09:33 2021
Results reported at Tue Oct  5 00:09:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0259.0+0552_daily_bin1603 44.7519 5.878 654825601 655084801 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 :                                   499.28 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             377.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   525 sec.
    Turnaround time :                            527 sec.

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

