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


Performing analysis on: 4FGL_J0654.3+5042_daily_bin808
RA = 103.596, Dec = 50.7027
tmin = 448761601, tmax = 449020801
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='950116', job_status='RUN', time_executed='2021-08-26 09:36:04.673188', time_epoch_executed='1629995764.67' WHERE source_name='4FGL J0654.3+5042' and cadence='daily' and bin_id='808'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950116

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950116/ft1_4FGL_J0654.3+5042_daily_bin808.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950116/ft2_4FGL_J0654.3+5042_daily_bin808.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950116/ft1_4FGL_J0654.3+5042_daily_bin808.fits outfile=/scratch/kocevski/950116/ft1_filteredMKT_4FGL_J0654.3+5042_daily_bin808.fits ra=103.596 dec=50.7027 rad=12.0 tmin=448761601.0 tmax=449020801.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 6.41
user 5.46
sys 0.92

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/950116/ft2_4FGL_J0654.3+5042_daily_bin808.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/950116/ft2_4FGL_J0654.3+5042_daily_bin808.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/950116/ft1_filteredMKT_4FGL_J0654.3+5042_daily_bin808.fits evtable="EVENTS" outfile="/scratch/kocevski/950116/ft1_filtered_4FGL_J0654.3+5042_daily_bin808.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.21
user 0.35
sys 0.83

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/950116/ft1_filtered_4FGL_J0654.3+5042_daily_bin808.fits" evtable="EVENTS" scfile=/scratch/kocevski/950116/ft2_4FGL_J0654.3+5042_daily_bin808.fits sctable="SC_DATA" outfile=/scratch/kocevski/950116/ltcube_448761601_449020801_4FGL_J0654.3+5042_daily_bin808.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/950116/ft2_4FGL_J0654.3+5042_daily_bin808.fits
.....................!
real 12.62
user 11.47
sys 1.09

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950116/ft1_filtered_4FGL_J0654.3+5042_daily_bin808.fits evtable="EVENTS" scfile=/scratch/kocevski/950116/ft2_4FGL_J0654.3+5042_daily_bin808.fits sctable="SC_DATA" expcube=/scratch/kocevski/950116/ltcube_448761601_449020801_4FGL_J0654.3+5042_daily_bin808.fits outfile=/scratch/kocevski/950116/expmap_448761601_449020801_4FGL_J0654.3+5042_daily_bin808.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/950116/ltcube_448761601_449020801_4FGL_J0654.3+5042_daily_bin808.fits
.....................!
real 191.40
user 185.91
sys 5.11

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
Extended source HB 9 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/HB9.fits is the correct path to the extended template.
Added 191 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0654.3+5042 @ 103.596 50.7027

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/950116/ft1_filtered_4FGL_J0654.3+5042_daily_bin808.fits scfile=/scratch/kocevski/950116/ft2_4FGL_J0654.3+5042_daily_bin808.fits outfile=/scratch/kocevski/950116/cmap_448761601_449020801_4FGL_J0654.3+5042_daily_bin808.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=103.596 yref=50.7027 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.26
user 0.37
sys 0.85

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/950116/ft1_filtered_4FGL_J0654.3+5042_daily_bin808.fits scfile=/scratch/kocevski/950116/ft2_4FGL_J0654.3+5042_daily_bin808.fits outfile=/scratch/kocevski/950116/cmap_HighResolution_448761601_449020801_4FGL_J0654.3+5042_daily_bin808.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=103.596 yref=50.7027 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.24
user 0.39
sys 0.84

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/950116/ft1_filtered_4FGL_J0654.3+5042_daily_bin808.fits evtable="EVENTS" scfile=/scratch/kocevski/950116/ft2_4FGL_J0654.3+5042_daily_bin808.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/950116/Model_4FGL_J0654.3+5042_daily_bin808.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
adding source HB 9
Working on...
/scratch/kocevski/950116/ft1_filtered_4FGL_J0654.3+5042_daily_bin808.fits.....................!
real 149.98
user 147.46
sys 2.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/950116/ft1_filtered_4FGL_J0654.3+5042_daily_bin808.fits', '/scratch/kocevski/950116/ft2_4FGL_J0654.3+5042_daily_bin808.fits', expMap='/scratch/kocevski/950116/expmap_448761601_449020801_4FGL_J0654.3+5042_daily_bin808.fits', expCube='/scratch/kocevski/950116/ltcube_448761601_449020801_4FGL_J0654.3+5042_daily_bin808.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/950116/Model_4FGL_J0654.3+5042_daily_bin808.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0654.3+5042'

4FGL J0654.3+5042
   Spectrum: LogParabola
250         norm:  2.530e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
251        alpha:  2.128e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
252         beta:  8.007e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
253           Eb:  8.361e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/950116/ft1_filtered_4FGL_J0654.3+5042_daily_bin808.fits
Spacecraft file(s): /scratch/kocevski/950116/ft2_4FGL_J0654.3+5042_daily_bin808.fits
Exposure map: /scratch/kocevski/950116/expmap_448761601_449020801_4FGL_J0654.3+5042_daily_bin808.fits
Exposure cube: /scratch/kocevski/950116/ltcube_448761601_449020801_4FGL_J0654.3+5042_daily_bin808.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/950116/Model_4FGL_J0654.3+5042_daily_bin808.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) = 9635.79842513

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.7627       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.402       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.1630       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.241       1.0000         .10000E-03   10000.    
     8 'norm      '    8.0406       1.0000         .10000E-03   10000.    
     9 'norm      '    .85551E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.5333       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .93906       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    18.963       1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.727       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.8876       1.0000         .10000E-03   10000.    
    19 'norm      '    2.0596       1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.749       1.0000         .10000E-03   10000.    
    21 'Prefactor '    26.613       1.0000         .10000E-03   10000.    
    22 'norm      '    3.2407       1.0000         .10000E-03   10000.    
    23 'norm      '    .23366       1.0000         .10000E-03   10000.    
    24 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .71640       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1413       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9635.770     FROM MIGRAD    STATUS=CONVERGED    625 CALLS     2720 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.099       -.68392E-06** at limit **
   2  norm          .10000E-03    .78313       -.22296E-06** at limit **
   3  norm          3.7626        2.6103       -.36449E-07   -.22734E-05
   4  Prefactor     11.401        8.6570        .49843E-08    .48300E-05
   5  Prefactor     6.1624        5.8958       -.44424E-07    .73889E-05
   6  Prefactor     .10000E-03    7.3480        .45783E-06** at limit **
   7  Prefactor     11.193        38.403        .52379E-05    .11913E-04
   8  norm          8.0404        4.2863        .15411E-06    .17640E-04
   9  norm          .10077E-03    1.7283        .31827E-06** at limit **
  10  Prefactor     .10000E-03    14.370       -.81927E-06** at limit **
  11  norm          1.5337        3.1651        .83072E-07   -.64467E-05
  12  Prefactor     .10000E-03    6.0693        .50066E-06** at limit **
  13  Prefactor     .10000E-03    4.2650       -.19497E-06** at limit **
  14  Prefactor     .93451        17.665        .94999E-06    .32748E-04
  15  Prefactor     .10000E-03    5.8483       -.69308E-08** at limit **
  16  norm          18.960        9.2452        .18217E-06    .43697E-05
  17  Prefactor     15.726        19.045       -.44133E-07    .14025E-05
  18  Prefactor     1.8500        47.214       -.12609E-05   -.38308E-05
  19  norm          2.0597        .89562        .26228E-07    .50368E-04
  20  Prefactor     12.748        13.157        .19131E-06    .17487E-04
  21  Prefactor     26.610        19.878        .88108E-07    .60634E-05
  22  norm          3.2404        2.3588       -.21924E-07    .33035E-05
  23  norm          .19974        7.8519       -.51793E-06   -.44179E-04
  24  norm          .10000E-03    1.4048       -.32462E-06** at limit **
  25  Normalizat    .71653        .19931        .21090E-06    .21418E-04
  26  Prefactor     1.1413        .88360E-01    .28659E-06    .54766E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.76259
  Prefactor  = 11.4014
  Prefactor  = 6.16242
  Prefactor  = 0.0001
  Prefactor  = 11.1934
  norm       = 8.04037
  norm       = 0.000100774
  Prefactor  = 0.0001
  norm       = 1.53369
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.934513
  Prefactor  = 0.0001
  norm       = 18.9604
  Prefactor  = 15.7257
  Prefactor  = 1.85001
  norm       = 2.05972
  Prefactor  = 12.748
  Prefactor  = 26.6097
  norm       = 3.24043
  norm       = 0.199742
  norm       = 0.0001
  Normalizat = 0.716535
  Prefactor  = 1.14128
 **********
 **   18 **HESSE 
 **********

 FCN=   9635.770     FROM HESSE     STATUS=OK           478 CALLS     3198 TOTAL
                     EDM=   .76E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .79873        .84893E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.7626        2.6127        .12865E-03   -1.5320    
   4  Prefactor     11.401        8.6565        .11864E-03   -1.5033    
   5  Prefactor     6.1624        5.9016        .80856E-03   -1.5211    
   6  Prefactor     .10000E-03    7.3406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.193        38.155        .11949E-03   -1.5039    
   8  norm          8.0404        4.2812        .14140E-03   -1.5141    
   9  norm          .10077E-03    2.9259        .40641E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.5337        3.1259        .24012E-03   -1.5460    
  12  Prefactor     .10000E-03    6.0657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.3575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .93451        23.060        .25897E-02   -1.5515    
  15  Prefactor     .10000E-03    5.8574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          18.960        9.2375        .91975E-04   -1.4837    
  17  Prefactor     15.726        19.047        .10099E-03   -1.4915    
  18  Prefactor     1.8500        47.302        .30291E-03   -1.5436    
  19  norm          2.0597        .89208        .58650E-04   -1.5421    
  20  Prefactor     12.748        13.093        .11219E-03   -1.4994    
  21  Prefactor     26.610        19.922        .77655E-04   -1.4676    
  22  norm          3.2404        2.3558        .12190E-03   -1.5348    
  23  norm          .19974        20.204        .34319E-02   -1.5619    
  24  norm          .10000E-03    1.4612        .22624E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .71653        .21608        .41584E-03   -1.0324    
  26  Prefactor     1.1413        .96421E-01    .15956E-03   -.88158    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.58103e-08
Minuit parameter uncertainties:
  1  2.60532e-05
  2  1.08457e-06
  3  2.61276
  4  8.65747
  5  5.90212
  6  1.07943e-06
  7  38.2385
  8  4.28134
  9  0.00300919
  10  1.98183e-05
  11  3.12622
  12  5.62548e-07
  13  1.57564e-05
  14  9.28787
  15  3.32151e-06
  16  9.23817
  17  19.054
  18  18.7254
  19  0.892082
  20  13.0964
  21  19.9268
  22  2.35582
  23  4.01817
  24  1.02115e-06
  25  0.21634
  26  0.0964355
Done.

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

Extracting fit parameters...

4FGL J0654.3+5042
   Spectrum: LogParabola
250         norm:  8.040e+00  4.281e+00  1.000e-04  1.000e+04 ( 1.000e-12)
251        alpha:  2.128e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
252         beta:  8.007e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
253           Eb:  8.361e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
622    Prefactor:  1.141e+00  9.644e-02  0.000e+00  1.000e+01 ( 1.000e+00)
623        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
624        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
621   Normalization:  7.165e-01  2.163e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.15
Ra Dec: 103.596 50.703
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 5.48e-08 +/- 2.91e-08
Energy Flux (Fixed Index): 2.55e-05 +/- 1.36e-05

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) = 9635.76957483
delta logL = 0.000785192405601

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9635.76949408
delta logL = 0.000865938263814

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.0714       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1027       1.0000          .0000       5.0000    
     3 'Normalizat'    .71859       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1408       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9635.769     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      278 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.0862        4.4812        .70562E-03   -.97958E-05
   2  alpha         2.1051        .54180        .15968E-01    .14073E-03
   3  Normalizat    .71810        .20245        .41541E-03    .45430E-05
   4  Prefactor     1.1409        .95173E-01    .15958E-03   -.35620E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 8.08623
  alpha      = 2.10506
  Normalizat = 0.718096
  Prefactor  = 1.1409
 **********
 **   18 **HESSE 
 **********

 FCN=   9635.769     FROM HESSE     STATUS=OK            27 CALLS      305 TOTAL
                     EDM=   .30E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.0862        4.4252        .28225E-04   -1.5139    
   2  alpha         2.1051        .53485        .31935E-02   -.15864    
   3  Normalizat    .71810        .20244        .16616E-04   -1.0318    
   4  Prefactor     1.1409        .95189E-01    .63832E-05   -.88170    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.95302e-12
Minuit parameter uncertainties:
  1  4.42539
  2  0.539121
  3  0.202651
  4  0.0952032
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950116': 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) = 9635.76947291
delta logL = 0.000887110527401

Extracting fit parameters...

4FGL J0654.3+5042
   Spectrum: LogParabola
250         norm:  8.086e+00  4.425e+00  1.000e-04  1.000e+04 ( 1.000e-12)
251        alpha:  2.105e+00  5.391e-01  0.000e+00  5.000e+00 ( 1.000e+00)
252         beta:  8.007e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
253           Eb:  8.361e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
622    Prefactor:  1.141e+00  9.520e-02  0.000e+00  1.000e+01 ( 1.000e+00)
623        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
624        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
621   Normalization:  7.181e-01  2.027e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.14
Ra Dec: 103.596 50.703
Photon Index (Free Index): 2.11 +/- 0.54
Photon Flux (Free Index): 5.36e-08 +/- 3.91e-08
Energy Flux (Free Index): 2.59e-05 +/- 1.64e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/950116/cmap_HighResolution_448761601_449020801_4FGL_J0654.3+5042_daily_bin808.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.48e-08', energy_flux2='2.59e-05', photon_flux_error='2.91e-08', dlogl='8.87e-04', energy_flux='2.55e-05', photon_flux2='5.36e-08', job_status='DONE', time_completed='2021-08-26 09:51:59.195155', photon_index_error2='0.54', photon_index2='2.11', ts='8.15', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='1.64e-05', EG='0.72', time_epoch_completed='1629996719.2', return_code='0', job_id='950116', GAL2='1.14', EG2='0.72', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='3.91e-08', ts2='8.14', photon_index='2.13' WHERE bin_id='808' AND source_name='4FGL J0654.3+5042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 09:51:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 950116: <4FGL_J0654.3+5042_daily_bin808> in cluster <slac> Done

Job <4FGL_J0654.3+5042_daily_bin808> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Aug 26 09:35:35 2021
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 09:35:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 26 09:35:37 2021
Terminated at Thu Aug 26 09:52:00 2021
Results reported at Thu Aug 26 09:52:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0654.3+5042_daily_bin808 103.596 50.7027 448761601 449020801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0654.3+5042 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   963.38 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             348.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   982 sec.
    Turnaround time :                            985 sec.

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

