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


Performing analysis on: 4FGL_J0654.4+4514_daily_bin1618
RA = 103.606, Dec = 45.2446
tmin = 658713601, tmax = 658972801
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='227396', job_status='RUN', time_executed='2021-12-07 17:09:02.352381', time_epoch_executed='1638925742.35' WHERE source_name='4FGL J0654.4+4514' and cadence='daily' and bin_id='1618'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/227396

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/227396/ft1_4FGL_J0654.4+4514_daily_bin1618.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/227396/ft2_4FGL_J0654.4+4514_daily_bin1618.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/227396/ft1_4FGL_J0654.4+4514_daily_bin1618.fits outfile=/scratch/kocevski/227396/ft1_filteredMKT_4FGL_J0654.4+4514_daily_bin1618.fits ra=103.606 dec=45.2446 rad=12.0 tmin=658713601.0 tmax=658972801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.03
user 2.81
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/227396/ft1_filtered_4FGL_J0654.4+4514_daily_bin1618.fits" evtable="EVENTS" scfile=/scratch/kocevski/227396/ft2_4FGL_J0654.4+4514_daily_bin1618.fits sctable="SC_DATA" outfile=/scratch/kocevski/227396/ltcube_658713601_658972801_4FGL_J0654.4+4514_daily_bin1618.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/227396/ft2_4FGL_J0654.4+4514_daily_bin1618.fits
.....................!
real 16.51
user 16.14
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/227396/ft1_filtered_4FGL_J0654.4+4514_daily_bin1618.fits evtable="EVENTS" scfile=/scratch/kocevski/227396/ft2_4FGL_J0654.4+4514_daily_bin1618.fits sctable="SC_DATA" expcube=/scratch/kocevski/227396/ltcube_658713601_658972801_4FGL_J0654.4+4514_daily_bin1618.fits outfile=/scratch/kocevski/227396/expmap_658713601_658972801_4FGL_J0654.4+4514_daily_bin1618.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/227396/ltcube_658713601_658972801_4FGL_J0654.4+4514_daily_bin1618.fits
.....................!
real 192.23
user 186.30
sys 5.56

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/227396/ft1_filtered_4FGL_J0654.4+4514_daily_bin1618.fits scfile=/scratch/kocevski/227396/ft2_4FGL_J0654.4+4514_daily_bin1618.fits outfile=/scratch/kocevski/227396/cmap_658713601_658972801_4FGL_J0654.4+4514_daily_bin1618.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 0.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/227396/ft1_filtered_4FGL_J0654.4+4514_daily_bin1618.fits scfile=/scratch/kocevski/227396/ft2_4FGL_J0654.4+4514_daily_bin1618.fits outfile=/scratch/kocevski/227396/cmap_HighResolution_658713601_658972801_4FGL_J0654.4+4514_daily_bin1618.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 0.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.645       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    8.3283       1.0000         .10000E-03   10000.    
     7 'norm      '    1.7734       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.8566       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.224       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.709       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.264       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .69961       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1045       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=   6286.851     FROM MIGRAD    STATUS=CONVERGED    410 CALLS     1719 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.991        .16184E-05** at limit **
   2  norm          .10000E-03    1.6650        .80714E-08** at limit **
   3  norm          .10000E-03    5.7736        .69206E-07** at limit **
   4  Prefactor     22.645        16.710       -.36414E-07   -.94194E-05
   5  Prefactor     .10000E-03    20.098       -.33303E-05** at limit **
   6  norm          8.3268        5.3828        .79631E-06   -.78692E-03
   7  norm          1.7736        4.6151       -.22604E-06   -.35245E-03
   8  Prefactor     .10000E-03    50.593       -.13489E-05** at limit **
   9  norm          .10000E-03    2.7278       -.12915E-06** at limit **
  10  Prefactor     1.8538        5.8252        .55963E-06   -.22630E-03
  11  Prefactor     10.220        21.132       -.11376E-05   -.57242E-04
  12  norm          .10000E-03    2.0973       -.19762E-07** at limit **
  13  Prefactor     22.707        15.262        .28841E-07   -.28203E-05
  14  Prefactor     .10000E-03    19.542        .27175E-05** at limit **
  15  Prefactor     .10000E-03    6.4031        .44976E-07** at limit **
  16  Prefactor     21.260        16.773       -.30493E-07   -.20551E-04
  17  norm          .10000E-03    1.0437        .21093E-07** at limit **
  18  Prefactor     .10000E-03    6.1151       -.44537E-07** at limit **
  19  Normalizat    .69969        .23083       -.25587E-06   -.11539E-04
  20  Prefactor     1.1045        .11026       -.36059E-07    .14276E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 22.6453
  Prefactor  = 0.000100002
  norm       = 8.3268
  norm       = 1.77358
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.85381
  Prefactor  = 10.2204
  norm       = 0.0001
  Prefactor  = 22.7074
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 21.2602
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.699686
  Prefactor  = 1.10452
 **********
 **   18 **HESSE 
 **********

 FCN=   6286.851     FROM HESSE     STATUS=OK           289 CALLS     2008 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    35.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.6690        .99914E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.9216        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     22.645        16.720        .84173E-04   -1.4756    
   5  Prefactor     .10000E-03    21.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          8.3268        5.8542        .69458E-03   -1.5131    
   7  norm          1.7736        4.7977        .27081E-03   -1.5442    
   8  Prefactor     .10000E-03    50.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.7470        .12784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.8538        5.8753        .30588E-03   -1.5436    
  11  Prefactor     10.220        21.112        .12531E-03   -1.5068    
  12  norm          .10000E-03    2.1006        .11213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     22.707        15.307        .84054E-04   -1.4755    
  14  Prefactor     .10000E-03    20.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.4630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     21.260        16.844        .86859E-04   -1.4785    
  17  norm          .10000E-03    1.0589        .79066E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.1366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .69969        .25275        .39486E-03   -1.0391    
  20  Prefactor     1.1045        .12140        .16385E-03   -.89322    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.20148e-10
Minuit parameter uncertainties:
  1  0.000246026
  2  1.44117e-07
  3  2.7787e-06
  4  16.7237
  5  0.000395659
  6  5.85465
  7  4.79876
  8  0.000201987
  9  3.35521e-06
  10  5.87713
  11  21.1269
  12  3.72034e-07
  13  15.3094
  14  0.000314257
  15  8.09916e-07
  16  16.8473
  17  1.09058e-07
  18  2.70171e-06
  19  0.253172
  20  0.121435
Done.

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

Extracting fit parameters...

4FGL J0654.4+4514
   Spectrum: LogParabola
246         norm:  1.774e+00  4.799e+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.105e+00  1.214e-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:  6.997e-01  2.532e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/227396/likelihoodResults_658713601_658972801_4FGL_J0654.4+4514_daily_bin1618.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) = 6286.84607134
delta logL = 0.00482461140564

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6286.84473077
delta logL = 0.00616517736398

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5293       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4603       1.0000          .0000       5.0000    
     3 'Normalizat'    .69506       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1058       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=   6286.845     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      211 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5241        168.22        .86293E-02    .76667E-03
   2  alpha         2.4617        3.6723        .41158        .14440E-04
   3  Normalizat    .69505        .59583E-01    .89405E-01   -.51326E-04
   4  Prefactor     1.1058        .27276E-01    .37370E-01   -.77511E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.52412
  alpha      = 2.4617
  Normalizat = 0.695047
  Prefactor  = 1.10582
 **********
 **   18 **HESSE 
 **********

 FCN=   6286.845     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5241        11.785        .24003E-03   -1.5461    
   2  alpha         2.4617        3.6879        .39620E-01   -.15320E-01
   3  Normalizat    .69505        .24372        .39607E-03   -1.0409    
   4  Prefactor     1.1058        .12299        .16376E-03   -.89281    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.50389e-11
Minuit parameter uncertainties:
  1  8.47827
  2  4.54556
  3  0.244101
  4  0.123026
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/227396': 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) = 6286.84473029
delta logL = 0.00616565669588

Extracting fit parameters...

4FGL J0654.4+4514
   Spectrum: LogParabola
246         norm:  1.524e+00  8.478e+00  1.000e-04  1.000e+04 ( 1.000e-12)
247        alpha:  2.462e+00  4.546e+00  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.106e+00  1.230e-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:  6.950e-01  2.441e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.16
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/227396/cmap_HighResolution_658713601_658972801_4FGL_J0654.4+4514_daily_bin1618.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.94e-05', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2021-12-07 17:19:21.001991', job_id='227396', GAL2='1.11', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1638926361.0', return_code2='0', ts='0.16', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='6.17e-03', ts2='0.17', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1618' AND source_name='4FGL J0654.4+4514' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 17:19:21 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 227396: <4FGL_J0654.4+4514_daily_bin1618> in cluster <slac> Done

Job <4FGL_J0654.4+4514_daily_bin1618> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Dec  7 17:05:21 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 17:06:05 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 17:06:05 2021
Terminated at Tue Dec  7 17:19:21 2021
Results reported at Tue Dec  7 17:19:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0654.4+4514_daily_bin1618 103.606 45.2446 658713601 658972801 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 :                                   618.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            840 sec.

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

