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


Performing analysis on: 4FGL_J0259.0+0552_daily_bin1197
RA = 44.7519, Dec = 5.878
tmin = 549590401, tmax = 549849601
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='993676', job_status='RUN', time_executed='2021-08-17 06:16:46.754092', time_epoch_executed='1629206206.75' WHERE source_name='4FGL J0259.0+0552' and cadence='daily' and bin_id='1197'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993676

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993676/ft1_4FGL_J0259.0+0552_daily_bin1197.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993676/ft2_4FGL_J0259.0+0552_daily_bin1197.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993676/ft1_4FGL_J0259.0+0552_daily_bin1197.fits outfile=/scratch/kocevski/993676/ft1_filteredMKT_4FGL_J0259.0+0552_daily_bin1197.fits ra=44.7519 dec=5.878 rad=12.0 tmin=549590401.0 tmax=549849601.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 7.55
user 2.52
sys 4.45

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/993676/ft2_4FGL_J0259.0+0552_daily_bin1197.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/993676/ft1_filteredMKT_4FGL_J0259.0+0552_daily_bin1197.fits evtable="EVENTS" outfile="/scratch/kocevski/993676/ft1_filtered_4FGL_J0259.0+0552_daily_bin1197.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 5.33
user 0.34
sys 4.42

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/993676/ft1_filtered_4FGL_J0259.0+0552_daily_bin1197.fits" evtable="EVENTS" scfile=/scratch/kocevski/993676/ft2_4FGL_J0259.0+0552_daily_bin1197.fits sctable="SC_DATA" outfile=/scratch/kocevski/993676/ltcube_549590401_549849601_4FGL_J0259.0+0552_daily_bin1197.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/993676/ft2_4FGL_J0259.0+0552_daily_bin1197.fits
.....................!
real 18.76
user 13.21
sys 5.06

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993676/ft1_filtered_4FGL_J0259.0+0552_daily_bin1197.fits evtable="EVENTS" scfile=/scratch/kocevski/993676/ft2_4FGL_J0259.0+0552_daily_bin1197.fits sctable="SC_DATA" expcube=/scratch/kocevski/993676/ltcube_549590401_549849601_4FGL_J0259.0+0552_daily_bin1197.fits outfile=/scratch/kocevski/993676/expmap_549590401_549849601_4FGL_J0259.0+0552_daily_bin1197.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/993676/ltcube_549590401_549849601_4FGL_J0259.0+0552_daily_bin1197.fits
.....................!
real 198.24
user 185.66
sys 10.51

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/993676/ft1_filtered_4FGL_J0259.0+0552_daily_bin1197.fits scfile=/scratch/kocevski/993676/ft2_4FGL_J0259.0+0552_daily_bin1197.fits outfile=/scratch/kocevski/993676/cmap_549590401_549849601_4FGL_J0259.0+0552_daily_bin1197.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 6.10
user 0.37
sys 4.29

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/993676/ft1_filtered_4FGL_J0259.0+0552_daily_bin1197.fits scfile=/scratch/kocevski/993676/ft2_4FGL_J0259.0+0552_daily_bin1197.fits outfile=/scratch/kocevski/993676/cmap_HighResolution_549590401_549849601_4FGL_J0259.0+0552_daily_bin1197.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 5.17
user 0.39
sys 4.31

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.9392       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.6264       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    156.61       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.632       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10260E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10471E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    61.195       1.0000         .10000E-03   10000.    
    13 'norm      '    9.4206       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.605       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    30.029       1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.743       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11465E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .31880       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0111       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=   2950.711     FROM MIGRAD    STATUS=CONVERGED    627 CALLS     3223 TOTAL
                     EDM=   .67E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9419        5.5925       -.52327E-06    .19957E-03
   2  norm          .10000E-03    .36829       -.24678E-07** at limit **
   3  Prefactor     4.5482        43.896       -.60151E-04   -.28339E-04
   4  Prefactor     .10000E-03    4.2390        .11214E-06** at limit **
   5  Prefactor     156.65        159.60        .31789E-04    .21469E-04
   6  Prefactor     12.635        15.138       -.16949E-05   -.89980E-04
   7  Prefactor     .10000E-03    35.345       -.12160E-04** at limit **
   8  Prefactor     .10000E-03    27.179        .51633E-05** at limit **
   9  Prefactor     .10000E-03    12.127        .52039E-05** at limit **
  10  norm          .10000E-03    .41894        .17299E-07** at limit **
  11  Prefactor     .10000E-03    32.079       -.83603E-05** at limit **
  12  Prefactor     61.198        35.246        .42996E-05    .83925E-04
  13  norm          9.4221        15.467       -.52484E-06   -.45857E-04
  14  Prefactor     .10000E-03    24.021        .14570E-04** at limit **
  15  Prefactor     .10000E-03    52.252        .24803E-04** at limit **
  16  Prefactor     .10000E-03    37.113       -.12490E-04** at limit **
  17  Prefactor     10.605        13.087       -.56336E-06   -.32446E-04
  18  norm          .10000E-03    11.369       -.37206E-05** at limit **
  19  norm          30.030        13.450       -.86675E-07   -.32154E-05
  20  Prefactor     14.741        12.620       -.20731E-07    .51837E-05
  21  norm          .10000E-03    7.5072        .11923E-06** at limit **
  22  Prefactor     .10000E-03    17.510       -.78457E-05** at limit **
  23  Prefactor     .10000E-03    44.014        .89627E-07** at limit **
  24  Prefactor     .10000E-03    6.7586        .22091E-06** at limit **
  25  Prefactor     .10000E-03    92.432        .11341E-04** at limit **
  26  Normalizat    .31891        .32078        .43948E-05   -.36224E-05
  27  Prefactor     1.0110        .15826       -.32406E-06    .13279E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.94187
  norm       = 0.0001
  Prefactor  = 4.54821
  Prefactor  = 0.0001
  Prefactor  = 156.652
  Prefactor  = 12.6348
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 61.1984
  norm       = 9.42207
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.605
  norm       = 0.0001
  norm       = 30.0297
  Prefactor  = 14.7409
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.31891
  Prefactor  = 1.01102
 **********
 **   18 **HESSE 
 **********

 FCN=   2950.711     FROM HESSE     STATUS=OK           480 CALLS     3703 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.9419        5.5718        .86437E-04   -1.5077    
   2  norm          .10000E-03    .38114        .64300E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.5482        43.925        .18712E-03   -1.5281    
   4  Prefactor     .10000E-03    4.2409        .10920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     156.65        159.49        .16108E-03   -1.3198    
   6  Prefactor     12.635        15.068        .11270E-03   -1.4997    
   7  Prefactor     .10000E-03    35.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    27.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .42648        .34294E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    32.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     61.198        34.887        .51292E-04   -1.4142    
  13  norm          9.4221        15.466        .13057E-03   -1.5094    
  14  Prefactor     .10000E-03    24.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    52.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    37.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.605        13.051        .12303E-03   -1.5057    
  18  norm          .10000E-03    11.380        .17887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          30.030        13.477        .73114E-04   -1.4611    
  20  Prefactor     14.741        12.602        .10431E-03   -1.4940    
  21  norm          .10000E-03    7.5134        .14536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    17.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    44.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    6.7661        .13792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    93.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .31891        .30535        .54833E-03   -1.2173    
  27  Prefactor     1.0110        .15779        .16560E-03   -.92363    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33481e-10
Minuit parameter uncertainties:
  1  5.57212
  2  2.75151e-06
  3  28.2955
  4  1.26994e-05
  5  159.934
  6  15.0724
  7  0.000248795
  8  0.000271541
  9  1.09715e-05
  10  6.82239e-07
  11  1.03521e-05
  12  34.899
  13  15.4727
  14  1.00807e-05
  15  8.06633e-05
  16  7.44626e-06
  17  13.0545
  18  8.53502e-07
  19  13.4787
  20  12.6045
  21  4.74139e-06
  22  1.67644e-05
  23  5.10005e-05
  24  4.09471e-06
  25  0.000218525
  26  0.306957
  27  0.157864
Done.

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

Extracting fit parameters...

4FGL J0259.0+0552
   Spectrum: LogParabola
285         norm:  1.000e-04  8.535e-07  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.011e+00  1.579e-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:  3.189e-01  3.070e-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: 9.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 9.97e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/993676/likelihoodResults_549590401_549849601_4FGL_J0259.0+0552_daily_bin1197.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) = 2950.71144981
delta logL = -0.000417520435803

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2950.71103232
delta logL = -2.69565134658e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8879       1.0000          .0000       5.0000    
     3 'Normalizat'    .31902       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0110       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.

 FCN=   2950.711     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      198 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    13.294        .90712E-02** at limit **
   2  alpha         1.9062        3.4108        .42830       -.77657E-05
   3  Normalizat    .31891        .28866        .12368        .26974E-04
   4  Prefactor     1.0110        .15336        .43187E-01   -.13346E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.90619
  Normalizat = 0.31891
  Prefactor  = 1.01102
 **********
 **   18 **HESSE 
 **********

 FCN=   2950.711     FROM HESSE     STATUS=OK            33 CALLS      231 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    11.735        .18120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9062        3.3871        .50000       -.23982    
   3  Normalizat    .31891        .28438        .54832E-03   -1.2173    
   4  Prefactor     1.0110        .15157        .16560E-03   -.92363    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.61787e-11
Minuit parameter uncertainties:
  1  3.82855e-05
  2  2.43971
  3  0.285681
  4  0.151632
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993676': 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) = 2950.71103218
delta logL = 1.13129317469e-07

Extracting fit parameters...

4FGL J0259.0+0552
   Spectrum: LogParabola
285         norm:  1.000e-04  3.829e-05  1.000e-04  1.000e+04 ( 1.000e-13)
286        alpha:  1.906e+00  2.440e+00  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.011e+00  1.516e-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:  3.189e-01  2.857e-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/993676/cmap_HighResolution_549590401_549849601_4FGL_J0259.0+0552_daily_bin1197.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.97e-05', job_status='DONE', photon_flux_upper_limit='9.30e-08', time_completed='2021-08-17 06:26:21.519989', job_id='993676', GAL2='1.01', fit_tolerance='1e-08', EG2='0.32', EG='0.32', time_epoch_completed='1629206781.52', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='1.13e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.87' WHERE bin_id='1197' AND source_name='4FGL J0259.0+0552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 06:26:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 993676: <4FGL_J0259.0+0552_daily_bin1197> in cluster <slac> Done

Job <4FGL_J0259.0+0552_daily_bin1197> 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) <bullet0163>, 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:26:23 2021
Results reported at Tue Aug 17 06:26:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0259.0+0552_daily_bin1197 44.7519 5.878 549590401 549849601 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 :                                   623.51 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             223.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            919 sec.

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

