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


Performing analysis on: 4FGL_J0259.0+0552_daily_bin1229
RA = 44.7519, Dec = 5.878
tmin = 557884801, tmax = 558144001
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='993729', job_status='RUN', time_executed='2021-08-17 06:16:53.632475', time_epoch_executed='1629206213.63' WHERE source_name='4FGL J0259.0+0552' and cadence='daily' and bin_id='1229'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993729

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993729/ft1_4FGL_J0259.0+0552_daily_bin1229.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993729/ft2_4FGL_J0259.0+0552_daily_bin1229.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993729/ft1_4FGL_J0259.0+0552_daily_bin1229.fits outfile=/scratch/kocevski/993729/ft1_filteredMKT_4FGL_J0259.0+0552_daily_bin1229.fits ra=44.7519 dec=5.878 rad=12.0 tmin=557884801.0 tmax=558144001.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 10.72
user 3.78
sys 6.40

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/993729/ft1_filtered_4FGL_J0259.0+0552_daily_bin1229.fits" evtable="EVENTS" scfile=/scratch/kocevski/993729/ft2_4FGL_J0259.0+0552_daily_bin1229.fits sctable="SC_DATA" outfile=/scratch/kocevski/993729/ltcube_557884801_558144001_4FGL_J0259.0+0552_daily_bin1229.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/993729/ft2_4FGL_J0259.0+0552_daily_bin1229.fits
.....................!
real 23.15
user 13.75
sys 7.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993729/ft1_filtered_4FGL_J0259.0+0552_daily_bin1229.fits evtable="EVENTS" scfile=/scratch/kocevski/993729/ft2_4FGL_J0259.0+0552_daily_bin1229.fits sctable="SC_DATA" expcube=/scratch/kocevski/993729/ltcube_557884801_558144001_4FGL_J0259.0+0552_daily_bin1229.fits outfile=/scratch/kocevski/993729/expmap_557884801_558144001_4FGL_J0259.0+0552_daily_bin1229.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/993729/ltcube_557884801_558144001_4FGL_J0259.0+0552_daily_bin1229.fits
.....................!
real 206.71
user 186.48
sys 13.14

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/993729/ft1_filtered_4FGL_J0259.0+0552_daily_bin1229.fits scfile=/scratch/kocevski/993729/ft2_4FGL_J0259.0+0552_daily_bin1229.fits outfile=/scratch/kocevski/993729/cmap_557884801_558144001_4FGL_J0259.0+0552_daily_bin1229.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 8.24
user 0.39
sys 6.30

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/993729/ft1_filtered_4FGL_J0259.0+0552_daily_bin1229.fits scfile=/scratch/kocevski/993729/ft2_4FGL_J0259.0+0552_daily_bin1229.fits outfile=/scratch/kocevski/993729/cmap_HighResolution_557884801_558144001_4FGL_J0259.0+0552_daily_bin1229.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 7.11
user 0.38
sys 6.36

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8350       1.0000         .10000E-03   10000.    
     2 'norm      '    .88855       1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.349       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.1590       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.3360       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.442       1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    137.01       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    23.368       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    79.502       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .25637E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .13890E-01   1.0000         .10000E-03   10000.    
    25 'Prefactor '    78.715       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2469       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2102.754     FROM MIGRAD    STATUS=CONVERGED    120 CALLS     2828 TOTAL
                     EDM=   .82E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8346        4.9664        .95345E-06    .72299E-05
   2  norm          .88848        1.0019       -.10429E-05   -.56853E-04
   3  Prefactor     26.346        1.1185       -.16067E-06   -.15461E-03
   4  Prefactor     .10000E-03    58.269        .13896E-04** at limit **
   5  Prefactor     .10051E-03    62.876       -.13161E-04** at limit **
   6  Prefactor     6.1465        2.0393       -.12122E-05   -.28503E-03
   7  Prefactor     8.3343        1.0544       -.48849E-07   -.13337E-03
   8  Prefactor     .10000E-03    8.9672       -.33085E-05** at limit **
   9  Prefactor     .10000E-03    20.169       -.30027E-05** at limit **
  10  norm          .10000E-03    1.8127       -.64926E-06** at limit **
  11  Prefactor     .10060E-03    47.704       -.92711E-05** at limit **
  12  Prefactor     29.434        1.6180       -.39727E-06   -.45199E-03
  13  norm          .10002E-03    15.430        .94656E-06** at limit **
  14  Prefactor     .10001E-03    67.049        .56968E-05** at limit **
  15  Prefactor     .10005E-03    13.733        .54158E-05** at limit **
  16  Prefactor     137.01        2.1567        .25557E-06   -.17954E-02
  17  Prefactor     .10000E-03    8.0199       -.14510E-05** at limit **
  18  norm          23.367        1.0287       -.72511E-07    .44112E-04
  19  norm          .10009E-03    8.3273        .54152E-05** at limit **
  20  Prefactor     .10000E-03    11.300        .37968E-05** at limit **
  21  norm          .10000E-03    9.9109       -.17012E-05** at limit **
  22  Prefactor     79.498        1.4555       -.19550E-06    .12636E-03
  23  Prefactor     .10601E-03    7.1294       -.89687E-05** at limit **
  24  Prefactor     .10020E-03    529.94       -.78842E-04** at limit **
  25  Prefactor     78.704        2.7811       -.47442E-06    .11282E-02
  26  Normalizat    .10000E-01    1.5192        .37072E-04** at limit **
  27  Prefactor     1.2469        .12036       -.12422E-05    .47252E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.83456
  norm       = 0.88848
  Prefactor  = 26.3458
  Prefactor  = 0.000100001
  Prefactor  = 0.000100513
  Prefactor  = 6.14649
  Prefactor  = 8.33434
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.000100597
  Prefactor  = 29.434
  norm       = 0.00010002
  Prefactor  = 0.000100011
  Prefactor  = 0.000100046
  Prefactor  = 137.014
  Prefactor  = 0.0001
  norm       = 23.3666
  norm       = 0.000100088
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 79.4975
  Prefactor  = 0.000106005
  Prefactor  = 0.000100201
  Prefactor  = 78.7038
  Normalizat = 0.01
  Prefactor  = 1.24687
 **********
 **   18 **HESSE 
 **********

 FCN=   2102.754     FROM HESSE     STATUS=OK           540 CALLS     3368 TOTAL
                     EDM=   .95E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8346        5.0305        .60378E-02   -1.5371    
   2  norm          .88848        1.0294        .10664E-01   -1.5519    
   3  Prefactor     26.346        38.185        .19511E-02   -1.4681    
   4  Prefactor     .10000E-03    58.401        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10051E-03    110.36        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.1465        51.781        .40441E-02   -1.5212    
   7  Prefactor     8.3343        36.820        .34713E-02   -1.5131    
   8  Prefactor     .10000E-03    8.9641        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    20.641        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.7889        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10060E-03    102.64        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     29.434        36.344        .18460E-02   -1.4622    
  13  norm          .10002E-03    17.586        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    69.681        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10005E-03    19.164        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     137.01        150.63        .86026E-03   -1.3362    
  17  Prefactor     .10000E-03    7.9960        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          23.367        32.857        .20715E-02   -1.4741    
  19  norm          .10009E-03    17.980        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.219        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    9.9085        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     79.498        47.765        .11260E-02   -1.3922    
  23  Prefactor     .10601E-03    458.74        .10727E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10020E-03    39.475        .90923E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     78.704        69.238        .11316E-02   -1.3931    
  26  Normalizat    .10000E-01    .31227        .32094       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.2469        .18382        .33607E-01   -.84901    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.54785e-08
Minuit parameter uncertainties:
  1  5.03124
  2  1.02942
  3  38.2202
  4  0.000399979
  5  0.0150756
  6  35.7218
  7  35.0716
  8  3.91054e-06
  9  0.000557949
  10  5.01153e-07
  11  0.0156793
  12  36.3716
  13  0.00117437
  14  0.0017464
  15  0.0018802
  16  151.051
  17  1.11037e-06
  18  32.8822
  19  0.00251736
  20  8.96419e-06
  21  3.13979e-06
  22  47.7876
  23  0.105791
  24  0.00563385
  25  69.3091
  26  3.01841e-07
  27  0.183915
Done.

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

Extracting fit parameters...

4FGL J0259.0+0552
   Spectrum: LogParabola
285         norm:  2.337e+01  3.288e+01  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.247e+00  1.839e-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  3.018e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.72
Ra Dec: 44.752 5.878
Photon Flux Upper Limit: 1.98e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.13e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/993729/likelihoodResults_557884801_558144001_4FGL_J0259.0+0552_daily_bin1229.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) = 2102.74254153
delta logL = 0.0112212124068

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2102.74097228
delta logL = 0.012790459466

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    21.824       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0587       1.0000          .0000       5.0000    
     3 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2434       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=   2102.741     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      275 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.828        34.750        .85740E-04   -.49723E-05
   2  alpha         2.0583        1.1509        .14155E-01    .86958E-04
   3  Normalizat    .10000E-01    1.5129        .11006E-01** at limit **
   4  Prefactor     1.2433        .12278        .15940E-03   -.42329E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 21.8283
  alpha      = 2.0583
  Normalizat = 0.01
  Prefactor  = 1.24332
 **********
 **   18 **HESSE 
 **********

 FCN=   2102.741     FROM HESSE     STATUS=OK            25 CALLS      300 TOTAL
                     EDM=   .64E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.828        33.559        .34296E-05   -1.4773    
   2  alpha         2.0583        1.1139        .28310E-02   -.17761    
   3  Normalizat    .10000E-01    1.5188        .22011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2433        .12237        .63761E-05   -.85008    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.44034e-12
Minuit parameter uncertainties:
  1  33.5876
  2  1.15598
  3  6.15842e-06
  4  0.122399
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993729': 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) = 2102.74097189
delta logL = 0.012790853571

Extracting fit parameters...

4FGL J0259.0+0552
   Spectrum: LogParabola
285         norm:  2.183e+01  3.359e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        alpha:  2.058e+00  1.156e+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.243e+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  6.158e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.72
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/993729/cmap_HighResolution_557884801_558144001_4FGL_J0259.0+0552_daily_bin1229.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.13e-04', job_status='DONE', photon_flux_upper_limit='1.98e-07', time_completed='2021-08-17 06:26:15.025102', job_id='993729', GAL2='1.24', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629206775.03', return_code2='0', ts='0.72', comment='SUCCESS', return_code='0', GAL='1.25', dlogl='1.28e-02', ts2='0.74', photon_index_error='0.00', photon_index='1.87' WHERE bin_id='1229' AND source_name='4FGL J0259.0+0552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 06:26:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 993729: <4FGL_J0259.0+0552_daily_bin1229> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0259.0+0552_daily_bin1229 44.7519 5.878 557884801 558144001 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 :                                   634.19 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             241.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            908 sec.

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

