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


Performing analysis on: 4FGL_J0654.4+4514_daily_bin1283
RA = 103.606, Dec = 45.2446
tmin = 571881601, tmax = 572140801
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='963550', job_status='RUN', time_executed='2021-08-26 10:20:35.019041', time_epoch_executed='1629998435.02' WHERE source_name='4FGL J0654.4+4514' and cadence='daily' and bin_id='1283'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/963550

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/963550/ft1_4FGL_J0654.4+4514_daily_bin1283.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/963550/ft2_4FGL_J0654.4+4514_daily_bin1283.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/963550/ft1_4FGL_J0654.4+4514_daily_bin1283.fits outfile=/scratch/kocevski/963550/ft1_filteredMKT_4FGL_J0654.4+4514_daily_bin1283.fits ra=103.606 dec=45.2446 rad=12.0 tmin=571881601.0 tmax=572140801.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.79
user 2.34
sys 4.37

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/963550/ft1_filtered_4FGL_J0654.4+4514_daily_bin1283.fits" evtable="EVENTS" scfile=/scratch/kocevski/963550/ft2_4FGL_J0654.4+4514_daily_bin1283.fits sctable="SC_DATA" outfile=/scratch/kocevski/963550/ltcube_571881601_572140801_4FGL_J0654.4+4514_daily_bin1283.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/963550/ft2_4FGL_J0654.4+4514_daily_bin1283.fits
.....................!
real 17.59
user 12.46
sys 5.06

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/963550/ft1_filtered_4FGL_J0654.4+4514_daily_bin1283.fits evtable="EVENTS" scfile=/scratch/kocevski/963550/ft2_4FGL_J0654.4+4514_daily_bin1283.fits sctable="SC_DATA" expcube=/scratch/kocevski/963550/ltcube_571881601_572140801_4FGL_J0654.4+4514_daily_bin1283.fits outfile=/scratch/kocevski/963550/expmap_571881601_572140801_4FGL_J0654.4+4514_daily_bin1283.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/963550/ltcube_571881601_572140801_4FGL_J0654.4+4514_daily_bin1283.fits
.....................!
real 196.72
user 185.39
sys 10.89

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/963550/ft1_filtered_4FGL_J0654.4+4514_daily_bin1283.fits scfile=/scratch/kocevski/963550/ft2_4FGL_J0654.4+4514_daily_bin1283.fits outfile=/scratch/kocevski/963550/cmap_571881601_572140801_4FGL_J0654.4+4514_daily_bin1283.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 4.73
user 0.38
sys 4.26

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/963550/ft1_filtered_4FGL_J0654.4+4514_daily_bin1283.fits scfile=/scratch/kocevski/963550/ft2_4FGL_J0654.4+4514_daily_bin1283.fits outfile=/scratch/kocevski/963550/cmap_HighResolution_571881601_572140801_4FGL_J0654.4+4514_daily_bin1283.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 4.66
user 0.38
sys 4.25

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10621E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    7.4539       1.0000         .10000E-03   10000.    
     3 'norm      '    4.9685       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .20517E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10661E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10683E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14481E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .33447E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .12119E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    16 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    17 'norm      '    10000.       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    20 'Prefactor '    .95605       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=   1379.270     FROM MIGRAD    STATUS=CONVERGED    426 CALLS     1862 TOTAL
                     EDM=   .27E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    85.603        .80844E-05** at limit **
   2  norm          7.4569        6.8661       -.12051E-07   -.65784E-06
   3  norm          4.9717        5.4991       -.71468E-07   -.76039E-05
   4  Prefactor     .10000E-03    28.003       -.14029E-06** at limit **
   5  Prefactor     .10000E-03    518.29        .21953E-03** at limit **
   6  norm          .10000E-03    15.155       -.30266E-07** at limit **
   7  norm          .10000E-03    11.793        .27435E-07** at limit **
   8  Prefactor     .10000E-03    39.298        .11839E-04** at limit **
   9  norm          .10000E-03    32.367       -.25673E-05** at limit **
  10  Prefactor     .10000E-03    49.524        .31637E-06** at limit **
  11  Prefactor     .10000E-03    258.35        .20021E-04** at limit **
  12  norm          .10000E-03    42.012       -.11756E-04** at limit **
  13  Prefactor     .10000E-03    153.81       -.25698E-04** at limit **
  14  Prefactor     10000.        7461.5        .83833E-03** at limit **
  15  Prefactor     10000.        6623.4        .14095E-02** at limit **
  16  Prefactor     10000.        6990.9        .44064E-03** at limit **
  17  norm          10000.        2111.1        .11248E-02** at limit **
  18  Prefactor    10000.0        7715.3        .16533E-02** at limit **
  19  Normalizat    .10000E-01    .63179        .80523E-07** at limit **
  20  Prefactor     .95602        .13619        .29206E-07    .10107E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 7.4569
  norm       = 4.9717
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  Normalizat = 0.01
  Prefactor  = 0.956018
 **********
 **   18 **HESSE 
 **********

 FCN=   1379.270     FROM HESSE     STATUS=OK           279 CALLS     2141 TOTAL
                     EDM=   .57E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    85.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.4569        6.8740        .88725E-04   -1.5162    
   3  norm          4.9717        5.5030        .88094E-04   -1.5262    
   4  Prefactor     .10000E-03    28.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    518.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    15.155        .14125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    11.807        .12459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    39.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    32.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    49.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    258.35        .21343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    42.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    153.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10000.        7461.4        .19865E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10000.        6623.2        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10000.        6990.9        .20729E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          10000.        2110.8        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor    10000.0        7717.2        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .10000E-01    1.0062        .14044E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .95602        .10663        .12557E-03   -.94210    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.6644e-12
Minuit parameter uncertainties:
  1  5.13154e-06
  2  6.87471
  3  5.50357
  4  3.31249e-06
  5  7.5421e-06
  6  6.36953e-09
  7  7.69478e-07
  8  1.99084e-07
  9  4.4974e-07
  10  1.18225e-06
  11  8.9815e-07
  12  3.33434e-07
  13  1.30238e-05
  14  3.23074e-05
  15  5.24577e-05
  16  2.62051e-05
  17  3.12767e-05
  18  0.0310474
  19  1.28128e-06
  20  0.106649
Done.

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

Extracting fit parameters...

4FGL J0654.4+4514
   Spectrum: LogParabola
246         norm:  1.000e-04  7.695e-07  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:  9.560e-01  1.066e-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.000e-02  1.281e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 103.606 45.245
Photon Flux Upper Limit: 4.60e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.02e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/963550/likelihoodResults_571881601_572140801_4FGL_J0654.4+4514_daily_bin1283.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) = 1379.26992368
delta logL = -0.000407117072427

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1379.2695165
delta logL = 6.12576513959e-08

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.1631       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95601       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.

 FCN=   1379.270     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      257 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    257.09        .12665E-01** at limit **
   2  alpha         1.5565        4.0505        .50000        .60612E-07
   3  Normalizat    .10000E-01    .34085E-01    .14044E-01** at limit **
   4  Prefactor     .95602        .18449E-01    .12557E-03    .43774E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 1.5565
  Normalizat = 0.01
  Prefactor  = 0.956018
 **********
 **   18 **HESSE 
 **********

 FCN=   1379.270     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      286 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1708.1        .14638E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5565        3.5882        .50000       -.38699    
   3  Normalizat    .10000E-01    .29420        .28088E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .95602        .54341E-01    .50229E-05   -.94210    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.24433e-10
Minuit parameter uncertainties:
  1  0.00234224
  2  3135.04
  3  1.64979e-07
  4  0.0543437
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/963550': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1379.26951539
delta logL = 1.17376725939e-06

Extracting fit parameters...

4FGL J0654.4+4514
   Spectrum: LogParabola
246         norm:  1.000e-04  2.342e-03  1.000e-04  1.000e+04 ( 1.000e-12)
247        alpha:  1.556e+00  3.135e+03  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:  9.560e-01  5.434e-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:  1.000e-02  1.650e-07  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/963550/cmap_HighResolution_571881601_572140801_4FGL_J0654.4+4514_daily_bin1283.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.02e-04', job_status='DONE', photon_flux_upper_limit='4.60e-07', time_completed='2021-08-26 10:28:11.876950', job_id='963550', GAL2='0.96', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629998891.88', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.17e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1283' AND source_name='4FGL J0654.4+4514' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 10:28:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 963550: <4FGL_J0654.4+4514_daily_bin1283> in cluster <slac> Done

Job <4FGL_J0654.4+4514_daily_bin1283> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Aug 26 10:17:20 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 10:17:22 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:22 2021
Terminated at Thu Aug 26 10:28:13 2021
Results reported at Thu Aug 26 10:28:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0654.4+4514_daily_bin1283 103.606 45.2446 571881601 572140801 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 :                                   512.53 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             251.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   650 sec.
    Turnaround time :                            653 sec.

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

