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


Performing analysis on: 4FGL_J0654.4+4514_daily_bin1332
RA = 103.606, Dec = 45.2446
tmin = 584582401, tmax = 584841601
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='963623', job_status='RUN', time_executed='2021-08-26 10:21:35.271333', time_epoch_executed='1629998495.27' WHERE source_name='4FGL J0654.4+4514' and cadence='daily' and bin_id='1332'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/963623

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/963623/ft1_4FGL_J0654.4+4514_daily_bin1332.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/963623/ft2_4FGL_J0654.4+4514_daily_bin1332.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/963623/ft1_4FGL_J0654.4+4514_daily_bin1332.fits outfile=/scratch/kocevski/963623/ft1_filteredMKT_4FGL_J0654.4+4514_daily_bin1332.fits ra=103.606 dec=45.2446 rad=12.0 tmin=584582401.0 tmax=584841601.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 2.84
user 2.63
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/963623/ft1_filtered_4FGL_J0654.4+4514_daily_bin1332.fits" evtable="EVENTS" scfile=/scratch/kocevski/963623/ft2_4FGL_J0654.4+4514_daily_bin1332.fits sctable="SC_DATA" outfile=/scratch/kocevski/963623/ltcube_584582401_584841601_4FGL_J0654.4+4514_daily_bin1332.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/963623/ft2_4FGL_J0654.4+4514_daily_bin1332.fits
.....................!
real 12.69
user 12.34
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/963623/ft1_filtered_4FGL_J0654.4+4514_daily_bin1332.fits evtable="EVENTS" scfile=/scratch/kocevski/963623/ft2_4FGL_J0654.4+4514_daily_bin1332.fits sctable="SC_DATA" expcube=/scratch/kocevski/963623/ltcube_584582401_584841601_4FGL_J0654.4+4514_daily_bin1332.fits outfile=/scratch/kocevski/963623/expmap_584582401_584841601_4FGL_J0654.4+4514_daily_bin1332.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/963623/ltcube_584582401_584841601_4FGL_J0654.4+4514_daily_bin1332.fits
.....................!
real 190.47
user 185.22
sys 4.70

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/963623/ft1_filtered_4FGL_J0654.4+4514_daily_bin1332.fits scfile=/scratch/kocevski/963623/ft2_4FGL_J0654.4+4514_daily_bin1332.fits outfile=/scratch/kocevski/963623/cmap_584582401_584841601_4FGL_J0654.4+4514_daily_bin1332.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.63
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/963623/ft1_filtered_4FGL_J0654.4+4514_daily_bin1332.fits scfile=/scratch/kocevski/963623/ft2_4FGL_J0654.4+4514_daily_bin1332.fits outfile=/scratch/kocevski/963623/cmap_HighResolution_584582401_584841601_4FGL_J0654.4+4514_daily_bin1332.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.59
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33403E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .21882       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.888       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .17737E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .22474E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .15881E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    55.927       1.0000         .10000E-03   10000.    
    12 'norm      '    1.6509       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4788.4       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .15843E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .15918E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .15065E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    .11619E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9991.7       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1795       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=   2745.844     FROM MIGRAD    STATUS=CONVERGED    157 CALLS     1606 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.924        .30161E-04** at limit **
   2  norm          .10000E-03    4.1545        .10794E-05** at limit **
   3  norm          .21606        13.828       -.28460E-04    .56212E-03
   4  Prefactor     16.853        20.329        .97841E-05    .17385E-03
   5  Prefactor     .10000E-03    14.813        .10968E-04** at limit **
   6  norm          .10000E-03    14.151        .20303E-04** at limit **
   7  norm          .10000E-03    5.5014        .18174E-05** at limit **
   8  Prefactor     .10000E-03    38.115        .84337E-05** at limit **
   9  norm          .10000E-03    4.8300       -.38689E-05** at limit **
  10  Prefactor     .10000E-03    11.542       -.91219E-06** at limit **
  11  Prefactor     56.038        42.792       -.22908E-05   -.32092E-03
  12  norm          1.6707        40.292        .76861E-04    .93198E-04
  13  Prefactor     4787.0        24.456       -.18597E-05    .79443E-01
  14  Prefactor     .10000E-03    22.832        .43211E-05** at limit **
  15  Prefactor     .10009E-03    6.2014        .28550E-04** at limit **
  16  Prefactor     .10000E-03    140.86        .21161E-04** at limit **
  17  norm          .10000E-03    7.5370       -.39762E-06** at limit **
  18  Prefactor    10000.0        6165.3        .37456E-03** at limit **
  19  Normalizat    .10000E-01    .88160        .68432E-03** at limit **
  20  Prefactor     1.1794        .92870E-01    .23064E-04   -.39854E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.216055
  Prefactor  = 16.8529
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 56.038
  norm       = 1.67067
  Prefactor  = 4787.04
  Prefactor  = 0.0001
  Prefactor  = 0.000100088
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10000
  Normalizat = 0.01
  Prefactor  = 1.17939
 **********
 **   18 **HESSE 
 **********

 FCN=   2745.844     FROM HESSE     STATUS=OK           331 CALLS     1937 TOTAL
                     EDM=   .19E-02    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.085        .10672E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.0409        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .21606        4.0639        .57765E-01   -1.5615    
   4  Prefactor     16.853        20.298        .24365E-02   -1.4887    
   5  Prefactor     .10000E-03    15.011        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    14.084        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    5.4884        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    38.110        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.8212        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.467        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     56.038        43.289        .13410E-02   -1.4209    
  12  norm          1.6707        39.681        .82146E-02   -1.5449    
  13  Prefactor     4787.0        2589.4        .20018E-03   -.42605E-01
  14  Prefactor     .10000E-03    22.814        .10214E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10009E-03    18.781        .10212E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    140.84        .90982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    7.5330        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor    10000.0        6163.5        .34729E-02    1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .10000E-01    .38577        .32257       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.1794        .12061        .35133E-01   -.86968    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.00187415
Minuit parameter uncertainties:
  1  6.37232e-05
  2  4.19133e-06
  3  1.87378
  4  20.3061
  5  0.000319367
  6  0.000156345
  7  4.93567e-05
  8  0.000132891
  9  8.70247e-06
  10  2.03943e-05
  11  43.3133
  12  16.2959
  13  2722.09
  14  0.000150207
  15  0.00256699
  16  0.000239907
  17  4.34359e-06
  18  1.99319
  19  7.29342e-06
  20  0.120635
Done.

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

Extracting fit parameters...

4FGL J0654.4+4514
   Spectrum: LogParabola
246         norm:  1.000e-04  4.936e-05  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.179e+00  1.206e-01  0.000e+00  1.000e+01 ( 1.000e+00)
573        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
574        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
571   Normalization:  1.000e-02  7.293e-06  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/963623/likelihoodResults_584582401_584841601_4FGL_J0654.4+4514_daily_bin1332.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) = 2745.84519131
delta logL = -0.000867535574798

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2745.84433413
delta logL = -1.03503293758e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10392E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1903       1.0000          .0000       5.0000    
     3 'Normalizat'    .10002E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1790       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=   2745.844     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      202 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.9204        .90712E-02** at limit **
   2  alpha         2.1980        3.4943        .41558       -.70135E-05
   3  Normalizat    .10000E-01    .31961        .32196    ** at limit **
   4  Prefactor     1.1794        .11406        .35147E-01   -.12822E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 2.19797
  Normalizat = 0.01
  Prefactor  = 1.17939
 **********
 **   18 **HESSE 
 **********

 FCN=   2745.844     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.5296        .12016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1980        3.4755        .50000       -.12111    
   3  Normalizat    .10000E-01    .65124        .14678E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1794        .87627E-01    .13881E-03   -.86968    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04504e-09
Minuit parameter uncertainties:
  1  0.000109631
  2  2.48545
  3  4.39157e-05
  4  0.0876379
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/963623': 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) = 2745.84432374
delta logL = 4.08967935073e-08

Extracting fit parameters...

4FGL J0654.4+4514
   Spectrum: LogParabola
246         norm:  1.000e-04  1.096e-04  1.000e-04  1.000e+04 ( 1.000e-12)
247        alpha:  2.198e+00  2.485e+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.179e+00  8.764e-02  0.000e+00  1.000e+01 ( 1.000e+00)
573        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
574        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
571   Normalization:  1.000e-02  4.392e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 103.606 45.245

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/963623/cmap_HighResolution_584582401_584841601_4FGL_J0654.4+4514_daily_bin1332.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.35e-05', job_status='DONE', photon_flux_upper_limit='2.13e-07', time_completed='2021-08-26 10:29:05.957964', job_id='963623', GAL2='1.18', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629998945.96', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='4.09e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1332' AND source_name='4FGL J0654.4+4514' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 10:29:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 963623: <4FGL_J0654.4+4514_daily_bin1332> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0654.4+4514_daily_bin1332 103.606 45.2446 584582401 584841601 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 :                                   444.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             253.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   697 sec.
    Turnaround time :                            700 sec.

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

