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


Performing analysis on: 4FGL_J0654.4+4514_daily_bin1405
RA = 103.606, Dec = 45.2446
tmin = 603504001, tmax = 603763201
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='963730', job_status='RUN', time_executed='2021-08-26 10:21:43.892078', time_epoch_executed='1629998503.89' WHERE source_name='4FGL J0654.4+4514' and cadence='daily' and bin_id='1405'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/963730

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/963730/ft1_4FGL_J0654.4+4514_daily_bin1405.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/963730/ft2_4FGL_J0654.4+4514_daily_bin1405.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/963730/ft1_4FGL_J0654.4+4514_daily_bin1405.fits outfile=/scratch/kocevski/963730/ft1_filteredMKT_4FGL_J0654.4+4514_daily_bin1405.fits ra=103.606 dec=45.2446 rad=12.0 tmin=603504001.0 tmax=603763201.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 3.38
user 2.50
sys 0.81

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/963730/ft2_4FGL_J0654.4+4514_daily_bin1405.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/963730/ft1_filteredMKT_4FGL_J0654.4+4514_daily_bin1405.fits evtable="EVENTS" outfile="/scratch/kocevski/963730/ft1_filtered_4FGL_J0654.4+4514_daily_bin1405.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.20
user 0.33
sys 0.77

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/963730/ft1_filtered_4FGL_J0654.4+4514_daily_bin1405.fits" evtable="EVENTS" scfile=/scratch/kocevski/963730/ft2_4FGL_J0654.4+4514_daily_bin1405.fits sctable="SC_DATA" outfile=/scratch/kocevski/963730/ltcube_603504001_603763201_4FGL_J0654.4+4514_daily_bin1405.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/963730/ft2_4FGL_J0654.4+4514_daily_bin1405.fits
.....................!
real 13.43
user 12.30
sys 1.02

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/963730/ft1_filtered_4FGL_J0654.4+4514_daily_bin1405.fits evtable="EVENTS" scfile=/scratch/kocevski/963730/ft2_4FGL_J0654.4+4514_daily_bin1405.fits sctable="SC_DATA" expcube=/scratch/kocevski/963730/ltcube_603504001_603763201_4FGL_J0654.4+4514_daily_bin1405.fits outfile=/scratch/kocevski/963730/expmap_603504001_603763201_4FGL_J0654.4+4514_daily_bin1405.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/963730/ltcube_603504001_603763201_4FGL_J0654.4+4514_daily_bin1405.fits
.....................!
real 193.68
user 187.10
sys 6.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 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/963730/ft1_filtered_4FGL_J0654.4+4514_daily_bin1405.fits scfile=/scratch/kocevski/963730/ft2_4FGL_J0654.4+4514_daily_bin1405.fits outfile=/scratch/kocevski/963730/cmap_603504001_603763201_4FGL_J0654.4+4514_daily_bin1405.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 1.13
user 0.37
sys 0.74

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/963730/ft1_filtered_4FGL_J0654.4+4514_daily_bin1405.fits scfile=/scratch/kocevski/963730/ft2_4FGL_J0654.4+4514_daily_bin1405.fits outfile=/scratch/kocevski/963730/cmap_HighResolution_603504001_603763201_4FGL_J0654.4+4514_daily_bin1405.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.14
user 0.38
sys 0.75

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/963730/ft1_filtered_4FGL_J0654.4+4514_daily_bin1405.fits', '/scratch/kocevski/963730/ft2_4FGL_J0654.4+4514_daily_bin1405.fits', expMap='/scratch/kocevski/963730/expmap_603504001_603763201_4FGL_J0654.4+4514_daily_bin1405.fits', expCube='/scratch/kocevski/963730/ltcube_603504001_603763201_4FGL_J0654.4+4514_daily_bin1405.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/963730/Model_4FGL_J0654.4+4514_daily_bin1405.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/963730/ft1_filtered_4FGL_J0654.4+4514_daily_bin1405.fits
Spacecraft file(s): /scratch/kocevski/963730/ft2_4FGL_J0654.4+4514_daily_bin1405.fits
Exposure map: /scratch/kocevski/963730/expmap_603504001_603763201_4FGL_J0654.4+4514_daily_bin1405.fits
Exposure cube: /scratch/kocevski/963730/ltcube_603504001_603763201_4FGL_J0654.4+4514_daily_bin1405.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/963730/Model_4FGL_J0654.4+4514_daily_bin1405.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) = 4872.19395389

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    72.295       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    11.647       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10387E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10345       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.7967       1.0000         .10000E-03   10000.    
    12 'norm      '    8.4254       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2647       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .79421       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.

 FCN=   4872.155     FROM MIGRAD    STATUS=CONVERGED    436 CALLS     1728 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     72.291        48.127       -.13196E-05    .58051E-05
   2  norm          .10000E-03    .73922       -.11343E-06** at limit **
   3  norm          11.647        4.8070       -.75361E-07   -.63700E-04
   4  Prefactor     .10000E-03    6.6545       -.41600E-06** at limit **
   5  Prefactor     .10000E-03    24.961       -.33617E-04** at limit **
   6  norm          .10000E-03    3.7461        .84084E-07** at limit **
   7  norm          .10000E-03    10.265       -.68841E-07** at limit **
   8  Prefactor     .10000E-03    22.861        .24071E-04** at limit **
   9  norm          .15085        8.7015       -.10437E-05    .36084E-03
  10  Prefactor     .10000E-03    33.171        .21919E-04** at limit **
  11  Prefactor     6.7561        62.126       -.16462E-04   -.51359E-04
  12  norm          8.4267        13.511       -.62336E-06   -.13475E-03
  13  Prefactor     .10000E-03    17.764       -.15389E-05** at limit **
  14  Prefactor     .10000E-03    81.072        .75548E-05** at limit **
  15  Prefactor     .10000E-03    60.106       -.40174E-04** at limit **
  16  Prefactor     .10000E-03    84.318        .24980E-04** at limit **
  17  norm          .10000E-03    11.370        .14233E-06** at limit **
  18  Prefactor     .10000E-03    329.29       -.46915E-04** at limit **
  19  Normalizat    1.2649        .28662        .20541E-05   -.12669E-03
  20  Prefactor     .79414        .95152E-01   -.18216E-06   -.20653E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 72.2906
  norm       = 0.0001
  norm       = 11.6473
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.150847
  Prefactor  = 0.0001
  Prefactor  = 6.75609
  norm       = 8.42673
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.26486
  Prefactor  = 0.794138
 **********
 **   18 **HESSE 
 **********

 FCN=   4872.155     FROM HESSE     STATUS=OK           283 CALLS     2011 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     72.291        48.145        .47216E-04   -1.4005    
   2  norm          .10000E-03    .74145        .58598E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          11.647        4.8181        .94109E-04   -1.5025    
   4  Prefactor     .10000E-03    6.6927        .17582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    24.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.7789        .13187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    10.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    22.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .15085        94.858        .36471E-02   -1.5630    
  10  Prefactor     .10000E-03    33.834        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.7561        62.872        .15390E-03   -1.5188    
  12  norm          8.4267        13.512        .13811E-03   -1.5127    
  13  Prefactor     .10000E-03    17.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    81.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    60.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    84.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    11.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    329.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2649        .32672        .37049E-03   -.84622    
  20  Prefactor     .79414        .10892        .15355E-03   -.99945    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.06401e-09
Minuit parameter uncertainties:
  1  48.171
  2  6.30748e-07
  3  4.81829
  4  7.68686e-06
  5  1.11179e-05
  6  1.52625e-05
  7  4.52615e-05
  8  2.28747e-05
  9  7.57502
  10  0.000199435
  11  41.2769
  12  13.5171
  13  2.83089e-06
  14  0.000149659
  15  3.57552e-05
  16  7.74942e-07
  17  4.09781e-06
  18  2.14288e-05
  19  0.327255
  20  0.108945
Done.

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

Extracting fit parameters...

4FGL J0654.4+4514
   Spectrum: LogParabola
246         norm:  1.000e-04  4.526e-05  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:  7.941e-01  1.089e-01  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:  1.265e+00  3.273e-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: 1.67e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.33e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/963730/likelihoodResults_603504001_603763201_4FGL_J0654.4+4514_daily_bin1405.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) = 4872.15499789
delta logL = -0.000456426455457

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4868.54299669
delta logL = 3.61154477916

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .30308       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .87944       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87239       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=   4868.543     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      326 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .30315        2.9025        .36371E-02   -.11478E-02
   2  alpha         5.0000        2.5016        .46267    ** at limit **
   3  Normalizat    .87974        .25456        .97530E-01   -.29591E-05
   4  Prefactor     .87225        .84436E-01    .33239E-01   -.18747E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.30315
  alpha      = 5
  Normalizat = 0.879744
  Prefactor  = 0.87225
 **********
 **   18 **HESSE 
 **********

 FCN=   4868.543     FROM HESSE     STATUS=OK            35 CALLS      361 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .30315        .16977        .16222E-04   -1.5598    
   2  alpha         5.0000        .37603        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .87974        .34732        .43214E-03   -.97176    
   4  Prefactor     .87225        .11249        .14687E-03   -.97118    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.82952e-11
Minuit parameter uncertainties:
  1  0.169765
  2  1.74909e-05
  3  0.348203
  4  0.112518
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/963730': 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) = 4868.54299438
delta logL = 3.61154709052

Extracting fit parameters...

4FGL J0654.4+4514
   Spectrum: LogParabola
246         norm:  3.032e-01  1.698e-01  1.000e-04  1.000e+04 ( 1.000e-12)
247        alpha:  5.000e+00  1.749e-05  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:  8.723e-01  1.125e-01  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.797e-01  3.482e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.54
Ra Dec: 103.606 45.245
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 3.46e-07 +/- 1.93e-07
Energy Flux (Free Index): 4.71e-05 +/- 2.63e-05

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/963730/cmap_HighResolution_603504001_603763201_4FGL_J0654.4+4514_daily_bin1405.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.33e-05', comment='SUCCESS', energy_flux2='4.71e-05', dlogl='3.61e+00', photon_flux2='3.46e-07', job_status='DONE', time_completed='2021-08-26 10:31:23.226751', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='1.67e-07', energy_flux_error2='2.63e-05', EG='1.26', time_epoch_completed='1629999083.23', return_code='0', job_id='963730', GAL2='0.87', EG2='0.88', return_code2='0', photon_flux_error2='1.93e-07', ts2='8.54', photon_index='2.18' WHERE bin_id='1405' AND source_name='4FGL J0654.4+4514' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 10:31:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 963730: <4FGL_J0654.4+4514_daily_bin1405> in cluster <slac> Done

Job <4FGL_J0654.4+4514_daily_bin1405> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Aug 26 10:17:34 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 10:17:39 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:17:39 2021
Terminated at Thu Aug 26 10:31:24 2021
Results reported at Thu Aug 26 10:31:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0654.4+4514_daily_bin1405 103.606 45.2446 603504001 603763201 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 :                                   583.33 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             267.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   824 sec.
    Turnaround time :                            830 sec.

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

