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


Performing analysis on: 4FGL_J0654.4+4514_daily_bin1286
RA = 103.606, Dec = 45.2446
tmin = 572659201, tmax = 572918401
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='963554', job_status='RUN', time_executed='2021-08-26 10:18:14.343804', time_epoch_executed='1629998294.34' WHERE source_name='4FGL J0654.4+4514' and cadence='daily' and bin_id='1286'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/963554

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/963554/ft1_4FGL_J0654.4+4514_daily_bin1286.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/963554/ft2_4FGL_J0654.4+4514_daily_bin1286.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/963554/ft1_4FGL_J0654.4+4514_daily_bin1286.fits outfile=/scratch/kocevski/963554/ft1_filteredMKT_4FGL_J0654.4+4514_daily_bin1286.fits ra=103.606 dec=45.2446 rad=12.0 tmin=572659201.0 tmax=572918401.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.92
user 3.41
sys 2.44

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/963554/ft2_4FGL_J0654.4+4514_daily_bin1286.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/963554/ft1_filteredMKT_4FGL_J0654.4+4514_daily_bin1286.fits evtable="EVENTS" outfile="/scratch/kocevski/963554/ft1_filtered_4FGL_J0654.4+4514_daily_bin1286.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 2.75
user 0.34
sys 2.39

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/963554/ft1_filtered_4FGL_J0654.4+4514_daily_bin1286.fits" evtable="EVENTS" scfile=/scratch/kocevski/963554/ft2_4FGL_J0654.4+4514_daily_bin1286.fits sctable="SC_DATA" outfile=/scratch/kocevski/963554/ltcube_572659201_572918401_4FGL_J0654.4+4514_daily_bin1286.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/963554/ft2_4FGL_J0654.4+4514_daily_bin1286.fits
.....................!
real 14.36
user 11.46
sys 2.86

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/963554/ft1_filtered_4FGL_J0654.4+4514_daily_bin1286.fits evtable="EVENTS" scfile=/scratch/kocevski/963554/ft2_4FGL_J0654.4+4514_daily_bin1286.fits sctable="SC_DATA" expcube=/scratch/kocevski/963554/ltcube_572659201_572918401_4FGL_J0654.4+4514_daily_bin1286.fits outfile=/scratch/kocevski/963554/expmap_572659201_572918401_4FGL_J0654.4+4514_daily_bin1286.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/963554/ltcube_572659201_572918401_4FGL_J0654.4+4514_daily_bin1286.fits
.....................!
real 192.98
user 185.75
sys 6.84

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/963554/ft1_filtered_4FGL_J0654.4+4514_daily_bin1286.fits scfile=/scratch/kocevski/963554/ft2_4FGL_J0654.4+4514_daily_bin1286.fits outfile=/scratch/kocevski/963554/cmap_572659201_572918401_4FGL_J0654.4+4514_daily_bin1286.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 2.77
user 0.37
sys 2.39

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/963554/ft1_filtered_4FGL_J0654.4+4514_daily_bin1286.fits scfile=/scratch/kocevski/963554/ft2_4FGL_J0654.4+4514_daily_bin1286.fits outfile=/scratch/kocevski/963554/cmap_HighResolution_572659201_572918401_4FGL_J0654.4+4514_daily_bin1286.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 2.84
user 0.40
sys 2.38

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.8448       1.0000         .10000E-03   10000.    
     3 'norm      '    2.9349       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.4694       1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.002       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.7504       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.0848       1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.774       1.0000         .10000E-03   10000.    
    12 'norm      '    13.965       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.1346       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.207       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10515E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.5529       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.2648       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .70458       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0772       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=   11076.75     FROM MIGRAD    STATUS=CONVERGED    404 CALLS     2004 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    30.001       -.10046E-04** at limit **
   2  norm          2.8448        1.6204        .97254E-06   -.58324E-02
   3  norm          2.9351        2.4106       -.33780E-06   -.43548E-03
   4  Prefactor     7.4696        5.1120       -.19928E-06   -.10777E-03
   5  Prefactor     25.001        40.941       -.12752E-05   -.44175E-04
   6  norm          .10000E-03    1.2640        .77572E-07** at limit **
   7  norm          1.7505        2.0462       -.50422E-08   -.16790E-03
   8  Prefactor     .10000E-03    20.820       -.42203E-05** at limit **
   9  norm          .10000E-03    1.6643        .53438E-07** at limit **
  10  Prefactor     9.0845        6.2139        .90883E-06    .33418E-03
  11  Prefactor     17.775        13.072        .91176E-07    .28564E-04
  12  norm          13.965        8.0322        .88121E-07    .72004E-04
  13  Prefactor     .10000E-03    5.5551        .80458E-07** at limit **
  14  Prefactor     8.1344        14.146       -.10047E-07   -.19184E-04
  15  Prefactor     10.206        10.551        .62140E-07   -.82360E-04
  16  Prefactor     .10001E-03    24.103        .13228E-04** at limit **
  17  norm          5.5526        3.1085       -.24177E-06   -.51966E-03
  18  Prefactor     1.2582        19.515       -.28701E-05   -.29010E-03
  19  Normalizat    .70457        .18124       -.93153E-06   -.10099E-03
  20  Prefactor     1.0772        .75455E-01    .93322E-07   -.12106E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100009
  norm       = 2.84478
  norm       = 2.93505
  Prefactor  = 7.46956
  Prefactor  = 25.001
  norm       = 0.0001
  norm       = 1.75051
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 9.08454
  Prefactor  = 17.7747
  norm       = 13.9653
  Prefactor  = 0.0001
  Prefactor  = 8.13442
  Prefactor  = 10.2064
  Prefactor  = 0.000100013
  norm       = 5.55263
  Prefactor  = 1.25821
  Normalizat = 0.704573
  Prefactor  = 1.07718
 **********
 **   18 **HESSE 
 **********

 FCN=   11076.75     FROM HESSE     STATUS=OK           299 CALLS     2303 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    30.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.8448        2.3516        .70794E-03   -1.5371    
   3  norm          2.9351        2.4169        .14344E-03   -1.5365    
   4  Prefactor     7.4696        5.1118        .14674E-03   -1.5161    
   5  Prefactor     25.001        41.039        .80112E-04   -1.4708    
   6  norm          .10000E-03    1.2743        .11551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.7505        2.0288        .15790E-03   -1.5443    
   8  Prefactor     .10000E-03    21.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.6715        .13239E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.0845        6.2158        .13297E-03   -1.5105    
  11  Prefactor     17.775        13.066        .94999E-04   -1.4865    
  12  norm          13.965        8.0224        .10718E-03   -1.4960    
  13  Prefactor     .10000E-03    5.5764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.1344        14.138        .14057E-03   -1.5137    
  15  Prefactor     10.206        10.548        .12542E-03   -1.5069    
  16  Prefactor     .10001E-03    25.479        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.5526        3.1074        .12959E-03   -1.5237    
  18  Prefactor     1.2582        20.797        .39620E-03   -1.5484    
  19  Normalizat    .70457        .19606        .41976E-03   -1.0371    
  20  Prefactor     1.0772        .82827E-01    .15379E-03   -.90199    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.2806e-09
Minuit parameter uncertainties:
  1  0.00104931
  2  2.35164
  3  2.41702
  4  5.11209
  5  41.0852
  6  5.03187e-07
  7  2.02889
  8  0.000360735
  9  6.77224e-06
  10  6.21621
  11  13.0682
  12  8.02306
  13  5.46829e-06
  14  14.1434
  15  10.5497
  16  0.00115443
  17  3.10751
  18  10.2345
  19  0.196259
  20  0.0828366
Done.

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

Extracting fit parameters...

4FGL J0654.4+4514
   Spectrum: LogParabola
246         norm:  1.751e+00  2.029e+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

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  1.077e+00  8.284e-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:  7.046e-01  1.963e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.31
Ra Dec: 103.606 45.245
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 1.50e-08 +/- 1.74e-08
Energy Flux (Fixed Index): 6.58e-06 +/- 7.63e-06

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

Saving results to:
/scratch/kocevski/963554/likelihoodResults_572659201_572918401_4FGL_J0654.4+4514_daily_bin1286.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) = 11076.3813638
delta logL = 0.373598874567

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11076.3801224
delta logL = 0.37484029084

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8207       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5015       1.0000          .0000       5.0000    
     3 'Normalizat'    .71122       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0760       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=   11076.38     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      203 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8205        2.1579        .77367E-02    .80304E-04
   2  alpha         1.5012        .60134        .46345       -.44790E-04
   3  Normalizat    .71122        .16505        .94325E-01    .58039E-04
   4  Prefactor     1.0760        .73750E-01    .38580E-01   -.22487E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.8205
  alpha      = 1.5012
  Normalizat = 0.71122
  Prefactor  = 1.07598
 **********
 **   18 **HESSE 
 **********

 FCN=   11076.38     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8205        2.1704        .15018E-03   -1.5438    
   2  alpha         1.5012        .72261        .24900E-01   -.41099    
   3  Normalizat    .71122        .17812        .41796E-03   -1.0345    
   4  Prefactor     1.0760        .79919E-01    .15386E-03   -.90238    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.31571e-09
Minuit parameter uncertainties:
  1  2.17051
  2  0.735158
  3  0.178261
  4  0.0799277
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/963554': 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) = 11076.3801223
delta logL = 0.374840382407

Extracting fit parameters...

4FGL J0654.4+4514
   Spectrum: LogParabola
246         norm:  1.820e+00  2.171e+00  1.000e-04  1.000e+04 ( 1.000e-12)
247        alpha:  1.501e+00  7.352e-01  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.076e+00  7.993e-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:  7.112e-01  1.783e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.05
Ra Dec: 103.606 45.245
Photon Index (Free Index): 1.50 +/- 0.74
Photon Flux (Free Index): 8.06e-09 +/- 1.13e-08
Energy Flux (Free Index): 1.47e-05 +/- 2.23e-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/963554/cmap_HighResolution_572659201_572918401_4FGL_J0654.4+4514_daily_bin1286.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.74e-05', comment='SUCCESS', photon_flux='1.50e-08', energy_flux2='1.47e-05', photon_flux_error='1.74e-08', dlogl='3.75e-01', energy_flux='6.58e-06', photon_flux2='8.06e-09', job_status='DONE', time_completed='2021-08-26 10:33:50.125688', photon_index_error2='0.74', photon_index2='1.50', ts='1.31', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='6.25e-08', energy_flux_error2='2.23e-05', EG='0.70', time_epoch_completed='1629999230.13', return_code='0', job_id='963554', GAL2='1.08', EG2='0.71', return_code2='0', energy_flux_error='7.63e-06', photon_flux_error2='1.13e-08', ts2='2.05', photon_index='2.18' WHERE bin_id='1286' AND source_name='4FGL J0654.4+4514' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 10:33:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0010>
Subject: Job 963554: <4FGL_J0654.4+4514_daily_bin1286> in cluster <slac> Done

Job <4FGL_J0654.4+4514_daily_bin1286> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Aug 26 10:17:21 2021
Job was executed on host(s) <bullet0010>, 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:33:51 2021
Results reported at Thu Aug 26 10:33:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0654.4+4514_daily_bin1286 103.606 45.2446 572659201 572918401 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 :                                   968.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             326.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            990 sec.

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

