/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 90 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 = 7525
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0654.4+4514_daily_bin811
RA = 103.606, Dec = 45.2446
tmin = 449539201, tmax = 449798401
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='961345', job_status='RUN', time_executed='2021-08-26 10:12:39.324727', time_epoch_executed='1629997959.32' WHERE source_name='4FGL J0654.4+4514' and cadence='daily' and bin_id='811'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/961345

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/961345/ft1_4FGL_J0654.4+4514_daily_bin811.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/961345/ft2_4FGL_J0654.4+4514_daily_bin811.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/961345/ft1_4FGL_J0654.4+4514_daily_bin811.fits outfile=/scratch/kocevski/961345/ft1_filteredMKT_4FGL_J0654.4+4514_daily_bin811.fits ra=103.606 dec=45.2446 rad=12.0 tmin=449539201.0 tmax=449798401.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 5.68
user 3.92
sys 0.70

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/961345/ft2_4FGL_J0654.4+4514_daily_bin811.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/961345/ft2_4FGL_J0654.4+4514_daily_bin811.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/961345/ft1_filteredMKT_4FGL_J0654.4+4514_daily_bin811.fits evtable="EVENTS" outfile="/scratch/kocevski/961345/ft1_filtered_4FGL_J0654.4+4514_daily_bin811.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 0.90
user 0.27
sys 0.61

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/961345/ft1_filtered_4FGL_J0654.4+4514_daily_bin811.fits" evtable="EVENTS" scfile=/scratch/kocevski/961345/ft2_4FGL_J0654.4+4514_daily_bin811.fits sctable="SC_DATA" outfile=/scratch/kocevski/961345/ltcube_449539201_449798401_4FGL_J0654.4+4514_daily_bin811.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/961345/ft2_4FGL_J0654.4+4514_daily_bin811.fits
.....................!
real 9.93
user 9.02
sys 0.83

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/961345/ft1_filtered_4FGL_J0654.4+4514_daily_bin811.fits evtable="EVENTS" scfile=/scratch/kocevski/961345/ft2_4FGL_J0654.4+4514_daily_bin811.fits sctable="SC_DATA" expcube=/scratch/kocevski/961345/ltcube_449539201_449798401_4FGL_J0654.4+4514_daily_bin811.fits outfile=/scratch/kocevski/961345/expmap_449539201_449798401_4FGL_J0654.4+4514_daily_bin811.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/961345/ltcube_449539201_449798401_4FGL_J0654.4+4514_daily_bin811.fits
.....................!
real 142.96
user 138.20
sys 3.94

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 174 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.4+4514 @ 103.606 45.2446

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/961345/ft1_filtered_4FGL_J0654.4+4514_daily_bin811.fits scfile=/scratch/kocevski/961345/ft2_4FGL_J0654.4+4514_daily_bin811.fits outfile=/scratch/kocevski/961345/cmap_449539201_449798401_4FGL_J0654.4+4514_daily_bin811.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.606 yref=45.2446 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 0.93
user 0.30
sys 0.60

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/961345/ft1_filtered_4FGL_J0654.4+4514_daily_bin811.fits scfile=/scratch/kocevski/961345/ft2_4FGL_J0654.4+4514_daily_bin811.fits outfile=/scratch/kocevski/961345/cmap_HighResolution_449539201_449798401_4FGL_J0654.4+4514_daily_bin811.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.606 yref=45.2446 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.21
user 0.31
sys 0.60

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/961345/ft1_filtered_4FGL_J0654.4+4514_daily_bin811.fits evtable="EVENTS" scfile=/scratch/kocevski/961345/ft2_4FGL_J0654.4+4514_daily_bin811.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/961345/Model_4FGL_J0654.4+4514_daily_bin811.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/961345/ft1_filtered_4FGL_J0654.4+4514_daily_bin811.fits....................!
real 117.88
user 115.52
sys 1.60

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/961345/ft1_filtered_4FGL_J0654.4+4514_daily_bin811.fits', '/scratch/kocevski/961345/ft2_4FGL_J0654.4+4514_daily_bin811.fits', expMap='/scratch/kocevski/961345/expmap_449539201_449798401_4FGL_J0654.4+4514_daily_bin811.fits', expCube='/scratch/kocevski/961345/ltcube_449539201_449798401_4FGL_J0654.4+4514_daily_bin811.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/961345/Model_4FGL_J0654.4+4514_daily_bin811.xml', optimizer='MINUIT')

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

4FGL J0654.4+4514
   Spectrum: LogParabola
246         norm:  2.496e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
247        alpha:  2.183e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
248         beta:  8.026e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
249           Eb:  9.087e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/961345/ft1_filtered_4FGL_J0654.4+4514_daily_bin811.fits
Spacecraft file(s): /scratch/kocevski/961345/ft2_4FGL_J0654.4+4514_daily_bin811.fits
Exposure map: /scratch/kocevski/961345/expmap_449539201_449798401_4FGL_J0654.4+4514_daily_bin811.fits
Exposure cube: /scratch/kocevski/961345/ltcube_449539201_449798401_4FGL_J0654.4+4514_daily_bin811.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/961345/Model_4FGL_J0654.4+4514_daily_bin811.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) = 10238.7862299

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.400       1.0000         .10000E-03   10000.    
     2 'norm      '    2.6177       1.0000         .10000E-03   10000.    
     3 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.678       1.0000         .10000E-03   10000.    
     6 'norm      '    3.9951       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.6882       1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.904       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    30.594       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.340       1.0000         .10000E-03   10000.    
    17 'norm      '    3.6677       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .85043       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0764       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10238.79     FROM MIGRAD    STATUS=CONVERGED    404 CALLS     2016 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.400        27.778        .24004E-02   -.21364E-03
   2  norm          2.6178        2.5360        .63023E-02    .62640E-03
   3  norm          .10000E-03    1.9496        .90712E-02** at limit **
   4  Prefactor     .10001E-03    5.2034        .90712E-02** at limit **
   5  Prefactor     27.678        37.586        .19037E-02    .19287E-03
   6  norm          3.9956        3.5592        .50444E-02    .60543E-03
   7  norm          .10000E-03    1.5938        .90712E-02** at limit **
   8  Prefactor     .10000E-03    33.072        .90712E-02** at limit **
   9  norm          .10001E-03    4.3089        .90712E-02** at limit **
  10  Prefactor     8.6890        5.6265        .33998E-02    .46853E-03
  11  Prefactor     24.906        19.314        .20068E-02   -.13172E-02
  12  norm          .10000E-03    7.3139        .90712E-02** at limit **
  13  Prefactor     .10000E-03    3.0230        .90712E-02** at limit **
  14  Prefactor     30.595        27.770        .18109E-02   -.10658E-02
  15  Prefactor     .10002E-03    4.7080        .90712E-02** at limit **
  16  Prefactor     24.337        16.140        .20298E-02    .10552E-02
  17  norm          3.6677        2.1926        .52728E-02   -.11733E-03
  18  Prefactor     .10000E-03    11.886        .90712E-02** at limit **
  19  Normalizat    .85037        .18559        .90179E-01   -.50422E-04
  20  Prefactor     1.0764        .77740E-01    .38562E-01   -.14445E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.4005
  norm       = 2.61783
  norm       = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 27.6782
  norm       = 3.99561
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100005
  Prefactor  = 8.68903
  Prefactor  = 24.9063
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 30.5953
  Prefactor  = 0.000100022
  Prefactor  = 24.3371
  norm       = 3.66769
  Prefactor  = 0.0001
  Normalizat = 0.850375
  Prefactor  = 1.07638
 **********
 **   18 **HESSE 
 **********

 FCN=   10238.79     FROM HESSE     STATUS=OK           283 CALLS     2299 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.400        27.784        .96016E-04   -1.4873    
   2  norm          2.6178        2.5322        .15241E-03   -1.5384    
   3  norm          .10000E-03    2.0217        .27575E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    5.2708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     27.678        37.607        .76149E-04   -1.4655    
   6  norm          3.9956        3.5546        .17317E-03   -1.5308    
   7  norm          .10000E-03    1.6108        .12470E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    33.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10001E-03    4.4195        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.6890        5.6212        .13599E-03   -1.5118    
  11  Prefactor     24.906        19.288        .80270E-04   -1.4709    
  12  norm          .10000E-03    7.4442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.0244        .17182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     30.595        27.812        .72438E-04   -1.4601    
  15  Prefactor     .10002E-03    4.7306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     24.337        16.166        .81193E-04   -1.4721    
  17  norm          3.6677        2.1933        .11282E-03   -1.5325    
  18  Prefactor     .10000E-03    12.233        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .85037        .20345        .39943E-03   -.98226    
  20  Prefactor     1.0764        .85548E-01    .15650E-03   -.90225    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44124e-08
Minuit parameter uncertainties:
  1  27.805
  2  2.53232
  3  1.33173e-07
  4  0.000458968
  5  37.639
  6  3.55477
  7  1.41257e-06
  8  8.67166e-05
  9  0.000304487
  10  5.62154
  11  19.2928
  12  0.000147077
  13  5.80326e-06
  14  27.8234
  15  0.000643081
  16  16.1691
  17  2.19335
  18  0.000100501
  19  0.203629
  20  0.0855587
Done.

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

Extracting fit parameters...

4FGL J0654.4+4514
   Spectrum: LogParabola
246         norm:  1.000e-04  1.413e-06  1.000e-04  1.000e+04 ( 1.000e-12)
247        alpha:  2.183e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
248         beta:  8.026e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
249           Eb:  9.087e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  1.076e+00  8.556e-02  0.000e+00  1.000e+01 ( 1.000e+00)
573        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
574        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
571   Normalization:  8.504e-01  2.036e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 103.606 45.245
Photon Flux Upper Limit: 5.65e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.47e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/961345/likelihoodResults_449539201_449798401_4FGL_J0654.4+4514_daily_bin811.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) = 10238.7888621
delta logL = -0.00295595776879

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10238.785906
delta logL = 1.19929609355e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1934       1.0000          .0000       5.0000    
     3 'Normalizat'    .85037       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0764       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   10238.78     FROM MIGRAD    STATUS=FAILED       129 CALLS      275 TOTAL
                     EDM=   .60E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .54352E-02    1.6449        .59212E-02    .98920E-02
   2  alpha         5.0000        3.4583        .16620    ** at limit **
   3  Normalizat    .84302        .57102E-01    .39943E-03    .34553E-04
   4  Prefactor     1.0780        .20624E-01    .15650E-03    .59133E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   10238.78     FROM SIMPLEX   STATUS=UNCHANGED    146 CALLS      421 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .54352E-02    1.6449        .33998E-06    .98920E-02
   2  alpha         5.0000        3.4583        .44243E-01** at limit **
   3  Normalizat    .84302        .57102E-01    .80484E-07    .34553E-04
   4  Prefactor     1.0780        .20624E-01    .67416E-08    .59133E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10238.78     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      452 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .54351E-02    .94648E-01    .31168E-03    .17816E-02
   2  alpha         5.0000        2.5099        .66479E-02** at limit **
   3  Normalizat    .84302        .20171        .15977E-04    .28747E-04
   4  Prefactor     1.0780        .85101E-01    .62599E-05    .53757E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00543511
  alpha      = 5
  Normalizat = 0.84302
  Prefactor  = 1.07801
 **********
 **   18 **HESSE 
 **********

 FCN=   10238.78     FROM HESSE     STATUS=OK            25 CALLS      477 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .54351E-02    .93177E-01    .12467E-04   -1.5693    
   2  alpha         5.0000        2.5100        .13296E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .84302        .19978        .31954E-05   -.98492    
   4  Prefactor     1.0780        .84841E-01    .12520E-05   -.90173    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17038e-11
Minuit parameter uncertainties:
  1  0.0445919
  2  0.000278334
  3  0.199951
  4  0.0848513
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/961345': 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) = 10238.7782145
delta logL = 0.00769160009986

Extracting fit parameters...

4FGL J0654.4+4514
   Spectrum: LogParabola
246         norm:  5.435e-03  4.459e-02  1.000e-04  1.000e+04 ( 1.000e-12)
247        alpha:  5.000e+00  2.783e-04  0.000e+00  5.000e+00 ( 1.000e+00)
248         beta:  8.026e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
249           Eb:  9.087e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  1.078e+00  8.485e-02  0.000e+00  1.000e+01 ( 1.000e+00)
573        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
574        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
571   Normalization:  8.430e-01  2.000e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 103.606 45.245

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/961345/cmap_HighResolution_449539201_449798401_4FGL_J0654.4+4514_daily_bin811.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.47e-05', job_status='DONE', photon_flux_upper_limit='5.65e-08', time_completed='2021-08-26 10:23:59.802368', job_id='961345', GAL2='1.08', fit_tolerance='1e-08', EG2='0.84', EG='0.85', time_epoch_completed='1629998639.8', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='7.69e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='811' AND source_name='4FGL J0654.4+4514' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 10:23:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 961345: <4FGL_J0654.4+4514_daily_bin811> in cluster <slac> Done

Job <4FGL_J0654.4+4514_daily_bin811> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Aug 26 10:10:35 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 10:10:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 26 10:10:36 2021
Terminated at Thu Aug 26 10:24:00 2021
Results reported at Thu Aug 26 10:24:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0654.4+4514_daily_bin811 103.606 45.2446 449539201 449798401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0654.4+4514 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   682.45 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             315.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   804 sec.
    Turnaround time :                            805 sec.

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

