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


Performing analysis on: 4FGL_J0654.3+5042_daily_bin1386
RA = 103.596, Dec = 50.7027
tmin = 598579201, tmax = 598838401
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='954748', job_status='RUN', time_executed='2021-08-26 09:54:52.241502', time_epoch_executed='1629996892.24' WHERE source_name='4FGL J0654.3+5042' and cadence='daily' and bin_id='1386'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/954748

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/954748/ft1_4FGL_J0654.3+5042_daily_bin1386.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/954748/ft2_4FGL_J0654.3+5042_daily_bin1386.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/954748/ft1_4FGL_J0654.3+5042_daily_bin1386.fits outfile=/scratch/kocevski/954748/ft1_filteredMKT_4FGL_J0654.3+5042_daily_bin1386.fits ra=103.596 dec=50.7027 rad=12.0 tmin=598579201.0 tmax=598838401.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 6.30
user 2.65
sys 3.39

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/954748/ft2_4FGL_J0654.3+5042_daily_bin1386.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/954748/ft2_4FGL_J0654.3+5042_daily_bin1386.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/954748/ft1_filteredMKT_4FGL_J0654.3+5042_daily_bin1386.fits evtable="EVENTS" outfile="/scratch/kocevski/954748/ft1_filtered_4FGL_J0654.3+5042_daily_bin1386.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 3.79
user 0.31
sys 3.07

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/954748/ft1_filtered_4FGL_J0654.3+5042_daily_bin1386.fits" evtable="EVENTS" scfile=/scratch/kocevski/954748/ft2_4FGL_J0654.3+5042_daily_bin1386.fits sctable="SC_DATA" outfile=/scratch/kocevski/954748/ltcube_598579201_598838401_4FGL_J0654.3+5042_daily_bin1386.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/954748/ft2_4FGL_J0654.3+5042_daily_bin1386.fits
.....................!
real 15.84
user 11.60
sys 3.92

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/954748/ft1_filtered_4FGL_J0654.3+5042_daily_bin1386.fits evtable="EVENTS" scfile=/scratch/kocevski/954748/ft2_4FGL_J0654.3+5042_daily_bin1386.fits sctable="SC_DATA" expcube=/scratch/kocevski/954748/ltcube_598579201_598838401_4FGL_J0654.3+5042_daily_bin1386.fits outfile=/scratch/kocevski/954748/expmap_598579201_598838401_4FGL_J0654.3+5042_daily_bin1386.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/954748/ltcube_598579201_598838401_4FGL_J0654.3+5042_daily_bin1386.fits
.....................!
real 196.54
user 186.39
sys 9.43

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 191 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.3+5042 @ 103.596 50.7027

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/954748/ft1_filtered_4FGL_J0654.3+5042_daily_bin1386.fits scfile=/scratch/kocevski/954748/ft2_4FGL_J0654.3+5042_daily_bin1386.fits outfile=/scratch/kocevski/954748/cmap_598579201_598838401_4FGL_J0654.3+5042_daily_bin1386.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.596 yref=50.7027 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 3.70
user 0.38
sys 3.29

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/954748/ft1_filtered_4FGL_J0654.3+5042_daily_bin1386.fits scfile=/scratch/kocevski/954748/ft2_4FGL_J0654.3+5042_daily_bin1386.fits outfile=/scratch/kocevski/954748/cmap_HighResolution_598579201_598838401_4FGL_J0654.3+5042_daily_bin1386.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.596 yref=50.7027 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 3.70
user 0.39
sys 3.29

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/954748/ft1_filtered_4FGL_J0654.3+5042_daily_bin1386.fits evtable="EVENTS" scfile=/scratch/kocevski/954748/ft2_4FGL_J0654.3+5042_daily_bin1386.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/954748/Model_4FGL_J0654.3+5042_daily_bin1386.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/954748/ft1_filtered_4FGL_J0654.3+5042_daily_bin1386.fits........!
real 19.60
user 13.67
sys 5.43

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/954748/ft1_filtered_4FGL_J0654.3+5042_daily_bin1386.fits', '/scratch/kocevski/954748/ft2_4FGL_J0654.3+5042_daily_bin1386.fits', expMap='/scratch/kocevski/954748/expmap_598579201_598838401_4FGL_J0654.3+5042_daily_bin1386.fits', expCube='/scratch/kocevski/954748/ltcube_598579201_598838401_4FGL_J0654.3+5042_daily_bin1386.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/954748/Model_4FGL_J0654.3+5042_daily_bin1386.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0654.3+5042'

4FGL J0654.3+5042
   Spectrum: LogParabola
250         norm:  2.530e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
251        alpha:  2.128e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
252         beta:  8.007e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
253           Eb:  8.361e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/954748/ft1_filtered_4FGL_J0654.3+5042_daily_bin1386.fits
Spacecraft file(s): /scratch/kocevski/954748/ft2_4FGL_J0654.3+5042_daily_bin1386.fits
Exposure map: /scratch/kocevski/954748/expmap_598579201_598838401_4FGL_J0654.3+5042_daily_bin1386.fits
Exposure cube: /scratch/kocevski/954748/ltcube_598579201_598838401_4FGL_J0654.3+5042_daily_bin1386.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/954748/Model_4FGL_J0654.3+5042_daily_bin1386.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 109.09106792

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 103.668380203

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    379.98       1.0000         .10000E-03   10000.    
     2 'norm      '    2.6076       1.0000         .10000E-03   10000.    
     3 'norm      '    3.2362       1.0000         .10000E-03   10000.    
     4 'Prefactor '    34.664       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.4011       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15868       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .76800E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    5.6021       1.0000         .10000E-03   10000.    
     9 'norm      '    2.4961       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.7036       1.0000         .10000E-03   10000.    
    11 'norm      '    2.5365       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .90855E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.0176       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.5313       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.3607       1.0000         .10000E-03   10000.    
    16 'norm      '    2.7603       1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.445       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.3175       1.0000         .10000E-03   10000.    
    19 'norm      '    9997.7       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .78108E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .18796E-01   1.0000         .10000E-03   10000.    
    22 'norm      '    .34341       1.0000         .10000E-03   10000.    
    23 'norm      '    .71453       1.0000         .10000E-03   10000.    
    24 'norm      '    .58575E-02   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    .32206       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   103.6546     FROM MIGRAD    STATUS=CONVERGED    186 CALLS      370 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     357.71        391.97        .52304E-03   -.33836E-01
   2  norm          .10000E-03    177.03        .63155E-02** at limit **
   3  norm          3.2362        1.0125         .0000         .0000    
   4  Prefactor     36.725        1.0293        .16625E-03   -.11755E-03
   5  Prefactor     2.4317        1.0300        .28754E-05   -.16099E-04
   6  Prefactor     .10000E-03    .23948       -.23970E-03** at limit **
   7  Prefactor     .10000E-03    .22090       -.45888E-05** at limit **
   8  norm          12.954        1.5262        .38236E-03   -.68012E-02
   9  norm          2.4961        1.0216         .0000         .0000    
  10  Prefactor     2.7036        1.0182         .0000         .0000    
  11  norm          3.3835        1.1790        .73382E-04   -.47753E-03
  12  Prefactor     .10000E-03    .27103        .16195E-04** at limit **
  13  Prefactor     2.2054        1.0817        .18966E-04   -.89598E-04
  14  Prefactor     9.9683        1.0241        .20471E-04   -.47969E-03
  15  Prefactor     .10001E-03    .21901       -.90246E-04** at limit **
  16  norm          2.7603        1.0174         .0000         .0000    
  17  Prefactor     30.178        1.1594        .22516E-03   -.13517E-01
  18  Prefactor     9.4497        1.0085        .63023E-05   -.14293E-03
  19  norm         10000.0        .11698       -.12716E-03   -.10966E-02
  20  Prefactor     .39000E-02    .22120       -.10659E-02   -.99134E-03
  21  Prefactor     .10021E-03    .20778       -.15538E-03** at limit **
  22  norm          .10000E-03    .28163        .78101E-05** at limit **
  23  norm          .10000E-03    .36708       -.19295E-05** at limit **
  24  norm          .10000E-03    .22505       -.39694E-05** at limit **
  25  Normalizat    .10000E-01    .25505        .37049E-05** at limit **
  26  Prefactor     .32262        .64086       -.12057E-03    .66933E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 357.71
  norm       = 0.000100001
  norm       = 3.23619
  Prefactor  = 36.7254
  Prefactor  = 2.43168
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.9538
  norm       = 2.49607
  Prefactor  = 2.70356
  norm       = 3.38351
  Prefactor  = 0.0001
  Prefactor  = 2.20542
  Prefactor  = 9.96829
  Prefactor  = 0.00010001
  norm       = 2.76033
  Prefactor  = 30.1775
  Prefactor  = 9.44974
  norm       = 9999.99
  Prefactor  = 0.00390004
  Prefactor  = 0.00010021
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.322616
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   103.6546     FROM HESSE     STATUS=FAILED        13 CALLS      383 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     357.71        391.97        .52304E-03   -1.1902    
   2  norm          .10000E-03    177.03        .63155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          551.30        547.98         .0000       -1.5348    
   4  Prefactor     36.725        1.0293        .16625E-03   -1.4495    
   5  Prefactor     2.4317        1.0300        .28754E-05   -1.5396    
   6  Prefactor     .10000E-03    .23948       -.23970E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    .22090       -.45888E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          12.954        1.5262        .38236E-03   -1.4988    
   9  norm          2.4961        1.0216         .0000       -1.5392    
  10  Prefactor     2.7036        1.0182         .0000       -1.5379    
  11  norm          3.3835        1.1790        .73382E-04   -1.5340    
  12  Prefactor     .10000E-03    .27103        .16195E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.2054        1.0817        .18966E-04   -1.5411    
  14  Prefactor     9.9683        1.0241        .20471E-04   -1.5076    
  15  Prefactor     .10001E-03    .21901       -.90246E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.7603        1.0174         .0000       -1.5376    
  17  Prefactor     30.178        1.1594        .22516E-03   -1.4609    
  18  Prefactor     9.4497        1.0085        .63023E-05   -1.5093    
  19  norm         10000.0        .11698       -.12716E-03    1.5692    
  20  Prefactor     .39000E-02    .22120       -.10659E-02   -1.5720    
  21  Prefactor     .10021E-03    .20778       -.15538E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .28163        .78101E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .36708       -.19295E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .22505       -.39694E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .10000E-01    .25505        .37049E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .32262        .64086       -.12057E-03   -1.2096    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.67036e-09
Minuit parameter uncertainties:
  1  394.942
  2  0.000883428
  3  1.01246
  4  1.02931
  5  1.03002
  6  1.96242e-06
  7  3.73462e-06
  8  1.52622
  9  1.02162
  10  1.01821
  11  1.17902
  12  2.20719e-05
  13  1.08166
  14  1.02406
  15  9.41968e-05
  16  1.01743
  17  1.15938
  18  1.00852
  19  0.0558837
  20  0.0579849
  21  0.000418128
  22  6.36984e-06
  23  5.53727e-06
  24  3.17679e-06
  25  2.17948e-07
  26  0.655809
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 103.654638073

Extracting fit parameters...

4FGL J0654.3+5042
   Spectrum: LogParabola
250         norm:  1.295e+01  1.526e+00  1.000e-04  1.000e+04 ( 1.000e-12)
251        alpha:  2.128e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
252         beta:  8.007e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
253           Eb:  8.361e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
622    Prefactor:  3.226e-01  6.558e-01  0.000e+00  1.000e+01 ( 1.000e+00)
623        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
624        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
621   Normalization:  1.000e-02  2.179e-07  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = 0.18419899808

TS (Fixed Index): 0.00
Ra Dec: 103.596 50.703
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -4.66e+02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/954748/likelihoodResults_598579201_598838401_4FGL_J0654.3+5042_daily_bin1386.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) = 103.654902943
delta logL = -0.000264870297173

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 103.654888918
delta logL = -0.000250845653213

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'alpha     '    2.3013       1.0000          .0000       5.0000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   103.6522     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      106 TOTAL
                     EDM=   .40E-14  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    alpha       5.0000        4.1411       -.47920E-02** at limit **
                               ERR DEF=  .500    
Final values: 
  alpha      = 5
 **********
 **   18 **HESSE 
 **********

 FCN=   103.6522     FROM HESSE     STATUS=OK             7 CALLS      113 TOTAL
                     EDM=   .70E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    alpha       5.0000        4.0673        .11458        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.01619e-15
Minuit parameter uncertainties:
  1  2.38896e-05
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/954748': 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) = 103.652221802
delta logL = 0.00241627077187

Extracting fit parameters...

4FGL J0654.3+5042
   Spectrum: LogParabola
250         norm:  1.295e+01  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12) fixed
251        alpha:  5.000e+00  2.389e-05  0.000e+00  5.000e+00 ( 1.000e+00)
252         beta:  8.007e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
253           Eb:  8.361e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
622    Prefactor:  3.226e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
623        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
624        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
621   Normalization:  1.000e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): 0.00
Ra Dec: 103.596 50.703

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/954748/cmap_HighResolution_598579201_598838401_4FGL_J0654.3+5042_daily_bin1386.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-4.66e+02', job_status='DONE', photon_flux_upper_limit='-1.00e+00', time_completed='2021-08-26 10:01:07.161009', job_id='954748', GAL2='0.32', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629997267.16', return_code2='0', ts='0.00', comment='SUCCESS', return_code='101', GAL='0.32', dlogl='2.42e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1386' AND source_name='4FGL J0654.3+5042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 10:01:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0179>
Subject: Job 954748: <4FGL_J0654.3+5042_daily_bin1386> in cluster <slac> Done

Job <4FGL_J0654.3+5042_daily_bin1386> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Thu Aug 26 09:50:32 2021
Job was executed on host(s) <bullet0179>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 09:50:33 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:50:33 2021
Terminated at Thu Aug 26 10:01:08 2021
Results reported at Thu Aug 26 10:01:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0654.3+5042_daily_bin1386 103.596 50.7027 598579201 598838401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0654.3+5042 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   420.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   634 sec.
    Turnaround time :                            636 sec.

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

