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


Performing analysis on: 4FGL_J0259.0+0552_daily_bin1427
RA = 44.7519, Dec = 5.878
tmin = 609206401, tmax = 609465601
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='995311', job_status='RUN', time_executed='2021-08-17 06:17:22.117277', time_epoch_executed='1629206242.12' WHERE source_name='4FGL J0259.0+0552' and cadence='daily' and bin_id='1427'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/995311

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/995311/ft1_4FGL_J0259.0+0552_daily_bin1427.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/995311/ft2_4FGL_J0259.0+0552_daily_bin1427.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/995311/ft1_4FGL_J0259.0+0552_daily_bin1427.fits outfile=/scratch/kocevski/995311/ft1_filteredMKT_4FGL_J0259.0+0552_daily_bin1427.fits ra=44.7519 dec=5.878 rad=12.0 tmin=609206401.0 tmax=609465601.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.39
user 2.78
sys 1.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/995311/ft2_4FGL_J0259.0+0552_daily_bin1427.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/995311/ft1_filteredMKT_4FGL_J0259.0+0552_daily_bin1427.fits evtable="EVENTS" outfile="/scratch/kocevski/995311/ft1_filtered_4FGL_J0259.0+0552_daily_bin1427.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 2.14
user 0.32
sys 1.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/995311/ft1_filtered_4FGL_J0259.0+0552_daily_bin1427.fits" evtable="EVENTS" scfile=/scratch/kocevski/995311/ft2_4FGL_J0259.0+0552_daily_bin1427.fits sctable="SC_DATA" outfile=/scratch/kocevski/995311/ltcube_609206401_609465601_4FGL_J0259.0+0552_daily_bin1427.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/995311/ft2_4FGL_J0259.0+0552_daily_bin1427.fits
.....................!
real 15.21
user 12.99
sys 1.62

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/995311/ft1_filtered_4FGL_J0259.0+0552_daily_bin1427.fits evtable="EVENTS" scfile=/scratch/kocevski/995311/ft2_4FGL_J0259.0+0552_daily_bin1427.fits sctable="SC_DATA" expcube=/scratch/kocevski/995311/ltcube_609206401_609465601_4FGL_J0259.0+0552_daily_bin1427.fits outfile=/scratch/kocevski/995311/expmap_609206401_609465601_4FGL_J0259.0+0552_daily_bin1427.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/995311/ltcube_609206401_609465601_4FGL_J0259.0+0552_daily_bin1427.fits
.....................!
real 197.46
user 185.24
sys 6.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/995311/ft1_filtered_4FGL_J0259.0+0552_daily_bin1427.fits scfile=/scratch/kocevski/995311/ft2_4FGL_J0259.0+0552_daily_bin1427.fits outfile=/scratch/kocevski/995311/cmap_609206401_609465601_4FGL_J0259.0+0552_daily_bin1427.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.55
user 0.38
sys 1.21

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/995311/ft1_filtered_4FGL_J0259.0+0552_daily_bin1427.fits scfile=/scratch/kocevski/995311/ft2_4FGL_J0259.0+0552_daily_bin1427.fits outfile=/scratch/kocevski/995311/cmap_HighResolution_609206401_609465601_4FGL_J0259.0+0552_daily_bin1427.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.07
user 0.37
sys 1.22

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10596E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.5515       1.0000         .10000E-03   10000.    
     3 'Prefactor '    570.97       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    514.75       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    111.88       1.0000         .10000E-03   10000.    
    10 'norm      '    .10757E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.4508       1.0000         .10000E-03   10000.    
    14 'Prefactor '    250.36       1.0000         .10000E-03   10000.    
    15 'Prefactor '    202.51       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.8376       1.0000         .10000E-03   10000.    
    18 'norm      '    .76381E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    .29026       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.2179       1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    23.256       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .10002E-01   1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.4061       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=   2901.280     FROM MIGRAD    STATUS=CONVERGED    620 CALLS     3334 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10011E-03    338.05       -.22571E-04** at limit **
   2  norm          1.5522        3.3846       -.14007E-06    .26029E-03
   3  Prefactor     570.54        464.89       -.36828E-05    .86691E-04
   4  Prefactor     .10000E-03    265.18       -.59149E-06** at limit **
   5  Prefactor     514.53        612.29       -.28786E-05    .19872E-04
   6  Prefactor     .10000E-03    111.13        .49108E-06** at limit **
   7  Prefactor     .10000E-03    150.15       -.22944E-05** at limit **
   8  Prefactor     .10000E-03    85.283       -.10414E-05** at limit **
   9  Prefactor     111.88        162.76       -.49142E-06    .46298E-04
  10  norm          .10000E-03    11.047        .87404E-06** at limit **
  11  Prefactor     .10000E-03    176.85        .46226E-06** at limit **
  12  Prefactor     .10000E-03    130.63       -.25311E-05** at limit **
  13  norm          7.4406        412.81       -.12651E-05    .29581E-04
  14  Prefactor     250.48        462.53        .17025E-05    .58164E-04
  15  Prefactor     202.50        182.11        .30413E-05    .91311E-04
  16  Prefactor     .10000E-03    86.226        .34060E-07** at limit **
  17  Prefactor     8.8348        19.631        .24662E-06    .15293E-03
  18  norm          .10000E-03    216.75       -.16688E-05** at limit **
  19  norm          .29233        16.591       -.53173E-06    .42884E-04
  20  Prefactor     2.2188        7.1495        .57196E-06    .76227E-05
  21  norm          .10000E-03    45.727        .33623E-06** at limit **
  22  Prefactor     .10000E-03    18.133       -.12864E-07** at limit **
  23  Prefactor     .10000E-03    24.301       -.40192E-08** at limit **
  24  Prefactor     23.257        20.018        .60282E-07    .21331E-03
  25  Prefactor     .10000E-03    24.003       -.37997E-07** at limit **
  26  Normalizat    .10000E-01    .17409       -.15018E-04** at limit **
  27  Prefactor     1.4062        .11688        .18509E-05    .87689E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100107
  norm       = 1.55215
  Prefactor  = 570.542
  Prefactor  = 0.000100001
  Prefactor  = 514.528
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 111.878
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 7.44058
  Prefactor  = 250.481
  Prefactor  = 202.502
  Prefactor  = 0.0001
  Prefactor  = 8.83484
  norm       = 0.0001
  norm       = 0.292328
  Prefactor  = 2.21883
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.257
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.40622
 **********
 **   18 **HESSE 
 **********

 FCN=   2901.280     FROM HESSE     STATUS=OK           478 CALLS     3812 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10011E-03    304.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.5522        3.3296        .14138E-03   -1.5459    
   3  Prefactor     570.54        455.80        .86197E-04   -1.0884    
   4  Prefactor     .10000E-03    266.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     514.53        611.19        .90512E-04   -1.1131    
   6  Prefactor     .10000E-03    111.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    150.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    85.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     111.88        161.18        .19015E-03   -1.3589    
  10  norm          .10000E-03    11.036        .34460E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    176.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    131.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.4406        398.65        .14693E-03   -1.5162    
  14  Prefactor     250.48        456.88        .12801E-03   -1.2529    
  15  Prefactor     202.50        183.11        .28398E-04   -1.2852    
  16  Prefactor     .10000E-03    86.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.8348        19.591        .13483E-03   -1.5113    
  18  norm          .10000E-03    223.77        .37112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .29233        139.50        .40590E-02   -1.5600    
  20  Prefactor     2.2188        7.1094        .24996E-03   -1.5410    
  21  norm          .10000E-03    46.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    18.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    24.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     23.257        20.111        .83062E-04   -1.4743    
  25  Prefactor     .10000E-03    24.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .10000E-01    .30234        .12686E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.4062        .12238        .15590E-03   -.80201    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48208e-09
Minuit parameter uncertainties:
  1  0.011462
  2  3.33005
  3  458.791
  4  0.00105092
  5  619.264
  6  0.00018026
  7  0.00160645
  8  3.20102e-05
  9  161.818
  10  9.30505e-05
  11  0.000258047
  12  0.00156196
  13  109.704
  14  463.658
  15  183.634
  16  0.000289315
  17  19.6055
  18  8.5149e-05
  19  12.7995
  20  7.11215
  21  0.000153307
  22  1.2647e-06
  23  1.3387e-05
  24  20.1173
  25  4.82513e-05
  26  1.63356e-06
  27  0.122406
Done.

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

Extracting fit parameters...

4FGL J0259.0+0552
   Spectrum: LogParabola
285         norm:  1.000e-04  8.515e-05  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.406e+00  1.224e-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.000e-02  1.634e-06  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.82e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.95e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/995311/likelihoodResults_609206401_609465601_4FGL_J0259.0+0552_daily_bin1427.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) = 2901.28043227
delta logL = -3.42841794918e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2901.28039775
delta logL = 2.32177626458e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .37482E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1314       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4062       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=   2901.280     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      303 TOTAL
                     EDM=   .41E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .30868E-03    14.537        .89316E-01** at limit **
   2  alpha         2.2003        3.5252        .50000       -.54321E-06
   3  Normalizat    .10000E-01    .21600E-03    .12709E-01** at limit **
   4  Prefactor     1.4062        .27416E-02    .15590E-03   -.21977E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000308676
  alpha      = 2.20025
  Normalizat = 0.01
  Prefactor  = 1.40622
 **********
 **   18 **HESSE 
 **********

 FCN=   2901.280     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      342 TOTAL
                     EDM=   .62E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .30868E-03    13.230        .92776E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2003        2.7049        .50000       -.12019    
   3  Normalizat    .10000E-01    .20882E-03    .25417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4062        .26932E-02    .31179E-04   -.80201    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.23208e-12
Minuit parameter uncertainties:
  1  0.105108
  2  101.176
  3  5.66528e-09
  4  0.00269324
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/995311': 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): 102
logL (Free Index) = 2901.2803977
delta logL = 2.79627329292e-07

Extracting fit parameters...

4FGL J0259.0+0552
   Spectrum: LogParabola
285         norm:  3.087e-04  1.051e-01  1.000e-04  1.000e+04 ( 1.000e-13)
286        alpha:  2.200e+00  1.012e+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.406e+00  2.693e-03  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.000e-02  5.665e-09  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/995311/cmap_HighResolution_609206401_609465601_4FGL_J0259.0+0552_daily_bin1427.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.95e-04', job_status='DONE', photon_flux_upper_limit='1.82e-07', time_completed='2021-08-17 06:26:56.347358', job_id='995311', GAL2='1.41', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629206816.35', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.41', dlogl='2.80e-07', ts2='0.00', photon_index_error='0.00', photon_index='1.87' WHERE bin_id='1427' AND source_name='4FGL J0259.0+0552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 06:26:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0016>
Subject: Job 995311: <4FGL_J0259.0+0552_daily_bin1427> in cluster <slac> Done

Job <4FGL_J0259.0+0552_daily_bin1427> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Aug 17 06:15:52 2021
Job was executed on host(s) <bullet0016>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 06:16:09 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:16:09 2021
Terminated at Tue Aug 17 06:26:57 2021
Results reported at Tue Aug 17 06:26:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0259.0+0552_daily_bin1427 44.7519 5.878 609206401 609465601 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 :                                   537.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             304.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   648 sec.
    Turnaround time :                            665 sec.

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

