/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 7 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 = 7391
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0654.4+4514_daily_bin277
RA = 103.606, Dec = 45.2446
tmin = 311126401, tmax = 311385601
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='956520', job_status='RUN', time_executed='2021-08-26 09:56:20.609711', time_epoch_executed='1629996980.61' WHERE source_name='4FGL J0654.4+4514' and cadence='daily' and bin_id='277'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/956520

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/956520/ft1_4FGL_J0654.4+4514_daily_bin277.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/956520/ft2_4FGL_J0654.4+4514_daily_bin277.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/956520/ft1_4FGL_J0654.4+4514_daily_bin277.fits outfile=/scratch/kocevski/956520/ft1_filteredMKT_4FGL_J0654.4+4514_daily_bin277.fits ra=103.606 dec=45.2446 rad=12.0 tmin=311126401.0 tmax=311385601.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 4.41
user 3.26
sys 1.03

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/956520/ft2_4FGL_J0654.4+4514_daily_bin277.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/956520/ft1_filteredMKT_4FGL_J0654.4+4514_daily_bin277.fits evtable="EVENTS" outfile="/scratch/kocevski/956520/ft1_filtered_4FGL_J0654.4+4514_daily_bin277.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.31
user 0.31
sys 0.97

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/956520/ft1_filtered_4FGL_J0654.4+4514_daily_bin277.fits" evtable="EVENTS" scfile=/scratch/kocevski/956520/ft2_4FGL_J0654.4+4514_daily_bin277.fits sctable="SC_DATA" outfile=/scratch/kocevski/956520/ltcube_311126401_311385601_4FGL_J0654.4+4514_daily_bin277.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/956520/ft2_4FGL_J0654.4+4514_daily_bin277.fits
.....................!
real 12.73
user 11.53
sys 1.14

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/956520/ft1_filtered_4FGL_J0654.4+4514_daily_bin277.fits evtable="EVENTS" scfile=/scratch/kocevski/956520/ft2_4FGL_J0654.4+4514_daily_bin277.fits sctable="SC_DATA" expcube=/scratch/kocevski/956520/ltcube_311126401_311385601_4FGL_J0654.4+4514_daily_bin277.fits outfile=/scratch/kocevski/956520/expmap_311126401_311385601_4FGL_J0654.4+4514_daily_bin277.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/956520/ltcube_311126401_311385601_4FGL_J0654.4+4514_daily_bin277.fits
.....................!
real 191.09
user 185.26
sys 5.44

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/956520/ft1_filtered_4FGL_J0654.4+4514_daily_bin277.fits scfile=/scratch/kocevski/956520/ft2_4FGL_J0654.4+4514_daily_bin277.fits outfile=/scratch/kocevski/956520/cmap_311126401_311385601_4FGL_J0654.4+4514_daily_bin277.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.43
user 0.38
sys 0.92

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/956520/ft1_filtered_4FGL_J0654.4+4514_daily_bin277.fits scfile=/scratch/kocevski/956520/ft2_4FGL_J0654.4+4514_daily_bin277.fits outfile=/scratch/kocevski/956520/cmap_HighResolution_311126401_311385601_4FGL_J0654.4+4514_daily_bin277.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.48
user 0.39
sys 0.93

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.0258       1.0000         .10000E-03   10000.    
     3 'norm      '    3.2877       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11670E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .55544       1.0000         .10000E-03   10000.    
     6 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.0205       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.8636       1.0000         .10000E-03   10000.    
     9 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.3177       1.0000         .10000E-03   10000.    
    12 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.1429       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11470E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.2118       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.4872       1.0000         .10000E-03   10000.    
    17 'norm      '    3.0731       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.4368       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .61977       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2713       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11366.81     FROM MIGRAD    STATUS=CONVERGED     97 CALLS     1465 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10012E-03    19.390       -.68177E-07** at limit **
   2  norm          2.0255        2.7485       -.27198E-05   -.28072E-02
   3  norm          3.2879        2.4121       -.11112E-07   -.13392E-03
   4  Prefactor     .10211E-03    15.061       -.13290E-05** at limit **
   5  Prefactor     .10568E-03    1575.2        .44891E-04** at limit **
   6  norm          .10000E-03    1.2469        .88637E-06** at limit **
   7  norm          2.0207        2.1566       -.14654E-05   -.37009E-03
   8  Prefactor     5.8322        4.2727        .18100E-05   -.69512E-02
   9  norm          .10000E-03    1.7171       -.42169E-06** at limit **
  10  Prefactor     .10000E-03    1.2895        .10765E-05** at limit **
  11  Prefactor     2.3133        1.6220       -.32101E-07    .52575E-03
  12  norm          .10000E-03    1.4588        .24297E-05** at limit **
  13  Prefactor     6.1268        6.5676        .15861E-05   -.26270E-02
  14  Prefactor     .10000E-03    9.1889       -.15998E-05** at limit **
  15  Prefactor     3.2062        6.6368        .19253E-05    .52373E-02
  16  Prefactor     1.4899        7.3735       -.28255E-05    .10270E-02
  17  norm          3.0741        2.2250       -.77068E-06   -.57033E-03
  18  Prefactor     3.4252        4.0715        .88256E-06   -.42430E-04
  19  Normalizat    .62026        .18628        .71363E-05    .14438E-04
  20  Prefactor     1.2712        .87050E-01   -.21185E-05   -.17112E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100118
  norm       = 2.02545
  norm       = 3.28788
  Prefactor  = 0.000102114
  Prefactor  = 0.000105679
  norm       = 0.0001
  norm       = 2.02074
  Prefactor  = 5.83221
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.31333
  norm       = 0.0001
  Prefactor  = 6.12679
  Prefactor  = 0.0001
  Prefactor  = 3.20625
  Prefactor  = 1.48994
  norm       = 3.07415
  Prefactor  = 3.42519
  Normalizat = 0.620263
  Prefactor  = 1.27118
 **********
 **   18 **HESSE 
 **********

 FCN=   11366.81     FROM HESSE     STATUS=OK           345 CALLS     1810 TOTAL
                     EDM=   .51E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10012E-03    20.044        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.0255        2.7698        .72676E-02   -1.5423    
   3  norm          3.2879        2.4128        .55826E-02   -1.5345    
   4  Prefactor     .10211E-03    2.9476        .10329       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10568E-03    28.360        .16557       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.2358        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.0207        2.1691        .72784E-02   -1.5424    
   8  Prefactor     5.8322        21.272        .41461E-02   -1.5225    
   9  norm          .10000E-03    1.6879        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.2795        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.3133        10.236        .67364E-02   -1.5404    
  12  norm          .10000E-03    1.4578        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.1268        12.732        .40495E-02   -1.5213    
  14  Prefactor     .10000E-03    9.1696        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.2062        7.1836        .56515E-02   -1.5350    
  16  Prefactor     1.4899        29.478        .87919E-02   -1.5464    
  17  norm          3.0741        2.2449        .57846E-02   -1.5357    
  18  Prefactor     3.4252        10.296        .54544E-02   -1.5338    
  19  Normalizat    .62026        .18594        .10439       -1.0713    
  20  Prefactor     1.2712        .82576E-01    .33131E-01   -.84168    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.07606e-07
Minuit parameter uncertainties:
  1  0.0030737
  2  2.76998
  3  2.41288
  4  0.00499326
  5  0.0253931
  6  5.42801e-06
  7  2.16919
  8  21.2993
  9  2.45592e-06
  10  5.56326e-06
  11  9.73499
  12  1.57644e-05
  13  12.7372
  14  7.51822e-05
  15  7.18558
  16  13.2615
  17  2.24491
  18  10.301
  19  0.186127
  20  0.0825846
Done.

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

Extracting fit parameters...

4FGL J0654.4+4514
   Spectrum: LogParabola
246         norm:  2.021e+00  2.169e+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.271e+00  8.258e-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:  6.203e-01  1.861e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.92
Ra Dec: 103.606 45.245
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 1.73e-08 +/- 1.86e-08
Energy Flux (Fixed Index): 7.60e-06 +/- 8.16e-06

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

Saving results to:
/scratch/kocevski/956520/likelihoodResults_311126401_311385601_4FGL_J0654.4+4514_daily_bin277.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) = 11366.3885492
delta logL = 0.420299445674

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11366.387391
delta logL = 0.421457632763

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9834       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4719       1.0000          .0000       5.0000    
     3 'Normalizat'    .62954       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2695       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=   11366.39     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      202 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9833        2.1308        .73569E-02    .91413E-03
   2  alpha         1.4719        .54842        .46751       -.75264E-04
   3  Normalizat    .62955        .17432        .10367        .11124E-03
   4  Prefactor     1.2694        .80685E-01    .33164E-01    .15654E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.98335
  alpha      = 1.47189
  Normalizat = 0.629548
  Prefactor  = 1.26944
 **********
 **   18 **HESSE 
 **********

 FCN=   11366.39     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9833        2.2611        .15109E-03   -1.5426    
   2  alpha         1.4719        .68494        .24226E-01   -.42382    
   3  Normalizat    .62955        .18341        .45962E-03   -1.0674    
   4  Prefactor     1.2694        .85314E-01    .15404E-03   -.84220    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28747e-10
Minuit parameter uncertainties:
  1  2.26116
  2  0.695692
  3  0.183587
  4  0.0853234
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/956520': 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) = 11366.3873909
delta logL = 0.421457732877

Extracting fit parameters...

4FGL J0654.4+4514
   Spectrum: LogParabola
246         norm:  1.983e+00  2.261e+00  1.000e-04  1.000e+04 ( 1.000e-12)
247        alpha:  1.472e+00  6.957e-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.269e+00  8.532e-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:  6.295e-01  1.836e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.77
Ra Dec: 103.606 45.245
Photon Index (Free Index): 1.47 +/- 0.70
Photon Flux (Free Index): 8.65e-09 +/- 1.14e-08
Energy Flux (Free Index): 1.71e-05 +/- 2.52e-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/956520/cmap_HighResolution_311126401_311385601_4FGL_J0654.4+4514_daily_bin277.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.01e-05', comment='SUCCESS', photon_flux='1.73e-08', energy_flux2='1.71e-05', photon_flux_error='1.86e-08', dlogl='4.21e-01', energy_flux='7.60e-06', photon_flux2='8.65e-09', job_status='DONE', time_completed='2021-08-26 10:10:51.904052', photon_index_error2='0.70', photon_index2='1.47', ts='1.92', fit_tolerance='1e-08', GAL='1.27', photon_index_error='0.00', photon_flux_upper_limit='6.87e-08', energy_flux_error2='2.52e-05', EG='0.62', time_epoch_completed='1629997851.9', return_code='0', job_id='956520', GAL2='1.27', EG2='0.63', return_code2='0', energy_flux_error='8.16e-06', photon_flux_error2='1.14e-08', ts2='2.77', photon_index='2.18' WHERE bin_id='277' AND source_name='4FGL J0654.4+4514' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 10:10:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 956520: <4FGL_J0654.4+4514_daily_bin277> in cluster <slac> Done

Job <4FGL_J0654.4+4514_daily_bin277> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Aug 26 09:55:47 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 09:55:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 26 09:55:49 2021
Terminated at Thu Aug 26 10:10:52 2021
Results reported at Thu Aug 26 10:10:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0654.4+4514_daily_bin277 103.606 45.2446 311126401 311385601 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 :                                   881.06 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             356.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            905 sec.

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

