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


Performing analysis on: 4FGL_J0654.4+4514_daily_bin1529
RA = 103.606, Dec = 45.2446
tmin = 635644801, tmax = 635904001
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='964602', job_status='RUN', time_executed='2021-08-26 10:21:18.943702', time_epoch_executed='1629998478.94' WHERE source_name='4FGL J0654.4+4514' and cadence='daily' and bin_id='1529'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/964602

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/964602/ft1_4FGL_J0654.4+4514_daily_bin1529.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/964602/ft2_4FGL_J0654.4+4514_daily_bin1529.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/964602/ft1_4FGL_J0654.4+4514_daily_bin1529.fits outfile=/scratch/kocevski/964602/ft1_filteredMKT_4FGL_J0654.4+4514_daily_bin1529.fits ra=103.606 dec=45.2446 rad=12.0 tmin=635644801.0 tmax=635904001.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.23
user 4.07
sys 0.92

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/964602/ft2_4FGL_J0654.4+4514_daily_bin1529.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/964602/ft1_filteredMKT_4FGL_J0654.4+4514_daily_bin1529.fits evtable="EVENTS" outfile="/scratch/kocevski/964602/ft1_filtered_4FGL_J0654.4+4514_daily_bin1529.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.26
user 0.32
sys 0.86

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/964602/ft1_filtered_4FGL_J0654.4+4514_daily_bin1529.fits" evtable="EVENTS" scfile=/scratch/kocevski/964602/ft2_4FGL_J0654.4+4514_daily_bin1529.fits sctable="SC_DATA" outfile=/scratch/kocevski/964602/ltcube_635644801_635904001_4FGL_J0654.4+4514_daily_bin1529.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/964602/ft2_4FGL_J0654.4+4514_daily_bin1529.fits
.....................!
real 12.75
user 11.49
sys 1.09

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/964602/ft1_filtered_4FGL_J0654.4+4514_daily_bin1529.fits evtable="EVENTS" scfile=/scratch/kocevski/964602/ft2_4FGL_J0654.4+4514_daily_bin1529.fits sctable="SC_DATA" expcube=/scratch/kocevski/964602/ltcube_635644801_635904001_4FGL_J0654.4+4514_daily_bin1529.fits outfile=/scratch/kocevski/964602/expmap_635644801_635904001_4FGL_J0654.4+4514_daily_bin1529.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/964602/ltcube_635644801_635904001_4FGL_J0654.4+4514_daily_bin1529.fits
.....................!
real 192.18
user 185.85
sys 5.38

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/964602/ft1_filtered_4FGL_J0654.4+4514_daily_bin1529.fits scfile=/scratch/kocevski/964602/ft2_4FGL_J0654.4+4514_daily_bin1529.fits outfile=/scratch/kocevski/964602/cmap_635644801_635904001_4FGL_J0654.4+4514_daily_bin1529.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.36
user 0.37
sys 0.84

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/964602/ft1_filtered_4FGL_J0654.4+4514_daily_bin1529.fits scfile=/scratch/kocevski/964602/ft2_4FGL_J0654.4+4514_daily_bin1529.fits outfile=/scratch/kocevski/964602/cmap_HighResolution_635644801_635904001_4FGL_J0654.4+4514_daily_bin1529.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.31
user 0.37
sys 0.85

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.809       1.0000         .10000E-03   10000.    
     2 'norm      '    1.2271       1.0000         .10000E-03   10000.    
     3 'norm      '    2.7443       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.4532       1.0000         .10000E-03   10000.    
     6 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.9618       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.607       1.0000         .10000E-03   10000.    
    12 'norm      '    .23086E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11240E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.3009       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .27835E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .81222       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .99971       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=   7067.079     FROM MIGRAD    STATUS=CONVERGED    434 CALLS     1806 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.804        42.585       -.12836E-05   -.14628E-04
   2  norm          1.2250        2.3646       -.13038E-06    .31115E-04
   3  norm          2.7441        2.4088        .31613E-08    .24008E-05
   4  Prefactor     .10000E-03    3.9229        .32981E-07** at limit **
   5  Prefactor     2.4621        172.12        .56455E-05    .66622E-05
   6  norm          .10000E-03    3.5328        .42774E-07** at limit **
   7  norm          4.9611        4.2892       -.12468E-05   -.59757E-04
   8  Prefactor     .10000E-03    17.150        .26691E-05** at limit **
   9  norm          .10000E-03    1.7696        .16021E-07** at limit **
  10  Prefactor     .10000E-03    1.8963        .27318E-07** at limit **
  11  Prefactor     11.609        13.870       -.48057E-07    .17766E-04
  12  norm          .10001E-03    38.273        .12337E-04** at limit **
  13  Prefactor     .10000E-03    10.226        .40512E-06** at limit **
  14  Prefactor     .10000E-03    88.186       -.23462E-05** at limit **
  15  Prefactor     5.2989        8.9508        .23679E-06    .10898E-03
  16  Prefactor     .10000E-03    11.384       -.45182E-06** at limit **
  17  norm          .34482E-01    3.8523       -.30148E-05    .66967E-03
  18  Prefactor     .10000E-03    20.958       -.32902E-05** at limit **
  19  Normalizat    .81217        .20820        .11812E-05    .89417E-04
  20  Prefactor     .99976        .86574E-01   -.18116E-06    .75969E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.8037
  norm       = 1.22499
  norm       = 2.74412
  Prefactor  = 0.0001
  Prefactor  = 2.4621
  norm       = 0.0001
  norm       = 4.96114
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.6085
  norm       = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.29894
  Prefactor  = 0.0001
  norm       = 0.0344822
  Prefactor  = 0.0001
  Normalizat = 0.812173
  Prefactor  = 0.999759
 **********
 **   18 **HESSE 
 **********

 FCN=   7067.079     FROM HESSE     STATUS=OK           303 CALLS     2109 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.804        42.637        .77372E-04   -1.4672    
   2  norm          1.2250        2.3272        .17279E-03   -1.5487    
   3  norm          2.7441        2.4160        .11859E-03   -1.5377    
   4  Prefactor     .10000E-03    3.9486        .16259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.4621        172.66        .26115E-03   -1.5394    
   6  norm          .10000E-03    3.6059        .15424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.9611        4.2899        .78127E-03   -1.5262    
   8  Prefactor     .10000E-03    17.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.7761        .10919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.9027        .11302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.609        13.871        .11758E-03   -1.5026    
  12  norm          .10001E-03    38.276        .37594E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    89.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.2989        8.9913        .17457E-03   -1.5248    
  16  Prefactor     .10000E-03    11.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .34482E-01    3.2407        .39636E-01   -1.5671    
  18  Prefactor     .10000E-03    21.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .81217        .22536        .38842E-03   -.99619    
  20  Prefactor     .99976        .94800E-01    .14816E-03   -.92738    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88451e-09
Minuit parameter uncertainties:
  1  42.6859
  2  2.32742
  3  2.41611
  4  3.16709e-06
  5  41.3599
  6  2.07165e-06
  7  4.29019
  8  7.2319e-05
  9  1.46956e-06
  10  2.4138e-06
  11  13.8747
  12  0.00139165
  13  1.12568e-05
  14  0.000156868
  15  8.99354
  16  1.11257e-05
  17  0.667639
  18  4.71283e-05
  19  0.225618
  20  0.0948154
Done.

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

Extracting fit parameters...

4FGL J0654.4+4514
   Spectrum: LogParabola
246         norm:  4.961e+00  4.290e+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:  9.998e-01  9.482e-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.122e-01  2.256e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.21
Ra Dec: 103.606 45.245
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 4.26e-08 +/- 3.68e-08
Energy Flux (Fixed Index): 1.87e-05 +/- 1.61e-05

TS (Fixed Index): 2.21
Ra Dec: 103.606 45.245
Photon Flux Upper Limit: 1.28e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.60e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/964602/likelihoodResults_635644801_635904001_4FGL_J0654.4+4514_daily_bin1529.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) = 7066.09837885
delta logL = 0.980803847879

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7066.04944265
delta logL = 1.02974005156

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.4125       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4139       1.0000          .0000       5.0000    
     3 'Normalizat'    .83310       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99353       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=   7066.049     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      225 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.4141        4.7181        .39624E-02    .75762E-04
   2  alpha         1.4145        .38276        .34441       -.38901E-04
   3  Normalizat    .83349        .20167        .86649E-01    .27923E-04
   4  Prefactor     .99345        .84992E-01    .33601E-01   -.43307E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.41407
  alpha      = 1.41454
  Normalizat = 0.833493
  Prefactor  = 0.993447
 **********
 **   18 **HESSE 
 **********

 FCN=   7066.049     FROM HESSE     STATUS=OK            33 CALLS      258 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.4141        5.0389        .14883E-03   -1.5201    
   2  alpha         1.4145        .45518        .13652E-01   -.44913    
   3  Normalizat    .83349        .21971        .38374E-03   -.98838    
   4  Prefactor     .99345        .92907E-01    .14848E-03   -.92948    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0032e-09
Minuit parameter uncertainties:
  1  5.03927
  2  0.458333
  3  0.219949
  4  0.0929217
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/964602': 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) = 7066.04943925
delta logL = 1.0297434461

Extracting fit parameters...

4FGL J0654.4+4514
   Spectrum: LogParabola
246         norm:  6.414e+00  5.039e+00  1.000e-04  1.000e+04 ( 1.000e-12)
247        alpha:  1.415e+00  4.583e-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:  9.934e-01  9.292e-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.335e-01  2.199e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.27
Ra Dec: 103.606 45.245
Photon Index (Free Index): 1.41 +/- 0.46
Photon Flux (Free Index): 2.73e-08 +/- 2.37e-08
Energy Flux (Free Index): 6.30e-05 +/- 6.58e-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/964602/cmap_HighResolution_635644801_635904001_4FGL_J0654.4+4514_daily_bin1529.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.60e-05', comment='SUCCESS', photon_flux='4.26e-08', energy_flux2='6.30e-05', photon_flux_error='3.68e-08', dlogl='1.03e+00', energy_flux='1.87e-05', photon_flux2='2.73e-08', job_status='DONE', time_completed='2021-08-26 10:32:51.370466', photon_index_error2='0.46', photon_index2='1.41', ts='2.21', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.28e-07', energy_flux_error2='6.58e-05', EG='0.81', time_epoch_completed='1629999171.37', return_code='0', job_id='964602', GAL2='0.99', EG2='0.83', return_code2='0', energy_flux_error='1.61e-05', photon_flux_error2='2.37e-08', ts2='4.27', photon_index='2.18' WHERE bin_id='1529' AND source_name='4FGL J0654.4+4514' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 10:32:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 964602: <4FGL_J0654.4+4514_daily_bin1529> in cluster <slac> Done

Job <4FGL_J0654.4+4514_daily_bin1529> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Aug 26 10:20:41 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 10:20:42 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:20:42 2021
Terminated at Thu Aug 26 10:32:52 2021
Results reported at Thu Aug 26 10:32:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0654.4+4514_daily_bin1529 103.606 45.2446 635644801 635904001 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 :                                   696.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             342.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   729 sec.
    Turnaround time :                            731 sec.

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

