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


Performing analysis on: 4FGL_J0259.0+0552_daily_bin1277
RA = 44.7519, Dec = 5.878
tmin = 570326401, tmax = 570585601
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='993796', job_status='RUN', time_executed='2021-08-17 06:16:17.442918', time_epoch_executed='1629206177.44' WHERE source_name='4FGL J0259.0+0552' and cadence='daily' and bin_id='1277'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993796

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993796/ft1_4FGL_J0259.0+0552_daily_bin1277.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993796/ft2_4FGL_J0259.0+0552_daily_bin1277.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993796/ft1_4FGL_J0259.0+0552_daily_bin1277.fits outfile=/scratch/kocevski/993796/ft1_filteredMKT_4FGL_J0259.0+0552_daily_bin1277.fits ra=44.7519 dec=5.878 rad=12.0 tmin=570326401.0 tmax=570585601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.83
user 3.26
sys 1.02

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/993796/ft2_4FGL_J0259.0+0552_daily_bin1277.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/993796/ft1_filteredMKT_4FGL_J0259.0+0552_daily_bin1277.fits evtable="EVENTS" outfile="/scratch/kocevski/993796/ft1_filtered_4FGL_J0259.0+0552_daily_bin1277.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.64
user 0.33
sys 1.05

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/993796/ft1_filtered_4FGL_J0259.0+0552_daily_bin1277.fits" evtable="EVENTS" scfile=/scratch/kocevski/993796/ft2_4FGL_J0259.0+0552_daily_bin1277.fits sctable="SC_DATA" outfile=/scratch/kocevski/993796/ltcube_570326401_570585601_4FGL_J0259.0+0552_daily_bin1277.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/993796/ft2_4FGL_J0259.0+0552_daily_bin1277.fits
.....................!
real 15.36
user 13.83
sys 1.22

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993796/ft1_filtered_4FGL_J0259.0+0552_daily_bin1277.fits evtable="EVENTS" scfile=/scratch/kocevski/993796/ft2_4FGL_J0259.0+0552_daily_bin1277.fits sctable="SC_DATA" expcube=/scratch/kocevski/993796/ltcube_570326401_570585601_4FGL_J0259.0+0552_daily_bin1277.fits outfile=/scratch/kocevski/993796/expmap_570326401_570585601_4FGL_J0259.0+0552_daily_bin1277.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/993796/ltcube_570326401_570585601_4FGL_J0259.0+0552_daily_bin1277.fits
.....................!
real 194.63
user 186.08
sys 6.21

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/993796/ft1_filtered_4FGL_J0259.0+0552_daily_bin1277.fits scfile=/scratch/kocevski/993796/ft2_4FGL_J0259.0+0552_daily_bin1277.fits outfile=/scratch/kocevski/993796/cmap_570326401_570585601_4FGL_J0259.0+0552_daily_bin1277.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 1.67
user 0.38
sys 1.01

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/993796/ft1_filtered_4FGL_J0259.0+0552_daily_bin1277.fits scfile=/scratch/kocevski/993796/ft2_4FGL_J0259.0+0552_daily_bin1277.fits outfile=/scratch/kocevski/993796/cmap_HighResolution_570326401_570585601_4FGL_J0259.0+0552_daily_bin1277.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 1.70
user 0.38
sys 1.03

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .77692       1.0000         .10000E-03   10000.    
     2 'norm      '    1.1520       1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.911       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8626       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11111E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.603       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    28.786       1.0000         .10000E-03   10000.    
    13 'norm      '    21.208       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10319E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11032E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .82110       1.0000         .10000E-03   10000.    
    21 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.658       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10213E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.6378       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .44743       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1133       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=   3959.212     FROM MIGRAD    STATUS=CONVERGED    681 CALLS     3360 TOTAL
                     EDM=   .33E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .77744        6.7361       -.10555E-05    .30786E-04
   2  norm          1.1521        1.4162       -.22019E-07    .24656E-04
   3  Prefactor     17.931        54.576       -.33248E-06    .23007E-04
   4  Prefactor     1.8641        6.3038        .18341E-05    .16779E-03
   5  Prefactor     .10000E-03    50.822       -.10955E-05** at limit **
   6  Prefactor     .10000E-03    3.7048        .78730E-07** at limit **
   7  Prefactor     .10000E-03    36.472       -.14740E-05** at limit **
   8  Prefactor     21.606        22.304        .72944E-06    .37631E-04
   9  Prefactor     .10000E-03    4.6227        .10274E-06** at limit **
  10  norm          .10000E-03    .18065        .32701E-07** at limit **
  11  Prefactor     .10000E-03    94.933        .69159E-05** at limit **
  12  Prefactor     28.803        42.462       -.87610E-06    .27379E-05
  13  norm          21.209        19.052        .19883E-06    .10666E-04
  14  Prefactor     .10000E-03    18.814        .84716E-07** at limit **
  15  Prefactor     .10000E-03    144.51       -.77285E-05** at limit **
  16  Prefactor     .10001E-03    136.17       -.10178E-04** at limit **
  17  Prefactor     .10000E-03    9.0622       -.53089E-07** at limit **
  18  norm          .10000E-03    6.8243       -.10431E-07** at limit **
  19  norm          .10000E-03    2.8201        .25445E-07** at limit **
  20  Prefactor     .81236        7.4457        .67794E-06   -.30361E-04
  21  norm          .10000E-03    5.9716        .25836E-07** at limit **
  22  Prefactor     11.657        29.890       -.26017E-05    .38800E-05
  23  Prefactor     .10000E-03    140.85       -.72649E-05** at limit **
  24  Prefactor     .10000E-03    2.1065        .74514E-08** at limit **
  25  Prefactor     1.6522        113.95        .22605E-05    .54182E-05
  26  Normalizat    .44683        .33301       -.86918E-06    .12129E-04
  27  Prefactor     1.1134        .12047       -.12275E-07    .12088E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.777444
  norm       = 1.15213
  Prefactor  = 17.9309
  Prefactor  = 1.86414
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.6056
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.8026
  norm       = 21.2086
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.812361
  norm       = 0.0001
  Prefactor  = 11.6568
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 1.65222
  Normalizat = 0.44683
  Prefactor  = 1.11335
 **********
 **   18 **HESSE 
 **********

 FCN=   3959.212     FROM HESSE     STATUS=OK           490 CALLS     3850 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .77744        6.7108        .29644E-03   -1.5532    
   2  norm          1.1521        1.3984        .80531E-04   -1.5493    
   3  Prefactor     17.931        54.012        .94637E-04   -1.4861    
   4  Prefactor     1.8641        10.521        .15265E-02   -1.5435    
   5  Prefactor     .10000E-03    50.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.7099        .11827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    36.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     21.606        22.273        .86176E-04   -1.4778    
   9  Prefactor     .10000E-03    4.6300        .13212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .18154        .26106E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    96.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     28.803        42.283        .74673E-04   -1.4634    
  13  norm          21.209        19.027        .86975E-04   -1.4787    
  14  Prefactor     .10000E-03    18.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    145.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    199.51        .66027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.1931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    6.8283        .16055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.8383        .10318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .81236        27.356        .31943E-02   -1.5528    
  21  norm          .10000E-03    5.9998        .15014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.657        29.784        .11733E-03   -1.5025    
  23  Prefactor     .10000E-03    139.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2.1087        .89188E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.6522        113.18        .33024E-03   -1.5451    
  26  Normalizat    .44683        .32647        .55598E-03   -1.1495    
  27  Prefactor     1.1134        .12183        .14486E-03   -.89041    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17385e-08
Minuit parameter uncertainties:
  1  4.56868
  2  1.39846
  3  54.1598
  4  8.85918
  5  1.12478e-05
  6  7.49214e-08
  7  4.23078e-06
  8  22.282
  9  9.65185e-08
  10  2.98803e-08
  11  0.000228755
  12  42.3267
  13  19.0327
  14  1.38452e-06
  15  0.000362973
  16  0.00320815
  17  1.07828e-05
  18  4.45526e-07
  19  4.58481e-07
  20  9.43236
  21  1.40941e-07
  22  29.8215
  23  0.000600488
  24  9.33481e-10
  25  27.4032
  26  0.327879
  27  0.121857
Done.

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

Extracting fit parameters...

4FGL J0259.0+0552
   Spectrum: LogParabola
285         norm:  1.000e-04  4.455e-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.113e+00  1.219e-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:  4.468e-01  3.279e-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.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.23e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/993796/likelihoodResults_570326401_570585601_4FGL_J0259.0+0552_daily_bin1277.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) = 3959.21317243
delta logL = -0.000690698601375

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3959.21248171
delta logL = 1.53436303663e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8546       1.0000          .0000       5.0000    
     3 'Normalizat'    .44681       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1134       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=   3959.212     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      243 TOTAL
                     EDM=   .98E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    224.61        .16207E-01** at limit **
   2  alpha         1.4823        2.8335        .17214       -.23115E-07
   3  Normalizat    .44683        .45908E-01    .55599E-03    .36213E-04
   4  Prefactor     1.1134        .18503E-01    .14486E-03    .15440E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.48226
  Normalizat = 0.44683
  Prefactor  = 1.11335
 **********
 **   18 **HESSE 
 **********

 FCN=   3959.212     FROM HESSE     STATUS=OK            23 CALLS      266 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.7571        .17083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4823        2.7842        .68855E-02   -.41927    
   3  Normalizat    .44683        .29556        .22240E-04   -1.1495    
   4  Prefactor     1.1134        .11950        .28973E-04   -.89041    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.42841e-11
Minuit parameter uncertainties:
  1  1.80547e-05
  2  301.908
  3  0.296596
  4  0.119528
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993796': 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) = 3959.21248087
delta logL = 8.57256054587e-07

Extracting fit parameters...

4FGL J0259.0+0552
   Spectrum: LogParabola
285         norm:  1.000e-04  1.805e-05  1.000e-04  1.000e+04 ( 1.000e-13)
286        alpha:  1.482e+00  3.019e+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.113e+00  1.195e-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:  4.468e-01  2.966e-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/993796/cmap_HighResolution_570326401_570585601_4FGL_J0259.0+0552_daily_bin1277.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.23e-05', job_status='DONE', photon_flux_upper_limit='6.75e-08', time_completed='2021-08-17 06:26:39.913120', job_id='993796', GAL2='1.11', fit_tolerance='1e-08', EG2='0.45', EG='0.45', time_epoch_completed='1629206799.91', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='8.57e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.87' WHERE bin_id='1277' AND source_name='4FGL J0259.0+0552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 06:26:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0044>
Subject: Job 993796: <4FGL_J0259.0+0552_daily_bin1277> in cluster <slac> Done

Job <4FGL_J0259.0+0552_daily_bin1277> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Tue Aug 17 06:11:12 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 06:13:02 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:13:02 2021
Terminated at Tue Aug 17 06:26:41 2021
Results reported at Tue Aug 17 06:26:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0259.0+0552_daily_bin1277 44.7519 5.878 570326401 570585601 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 :                                   610.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            929 sec.

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

