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


Performing analysis on: 4FGL_J0654.3+5042_daily_bin650
RA = 103.596, Dec = 50.7027
tmin = 407808001, tmax = 408067201
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='948822', job_status='RUN', time_executed='2021-08-26 09:32:33.688953', time_epoch_executed='1629995553.69' WHERE source_name='4FGL J0654.3+5042' and cadence='daily' and bin_id='650'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948822

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948822/ft1_4FGL_J0654.3+5042_daily_bin650.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948822/ft2_4FGL_J0654.3+5042_daily_bin650.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948822/ft1_4FGL_J0654.3+5042_daily_bin650.fits outfile=/scratch/kocevski/948822/ft1_filteredMKT_4FGL_J0654.3+5042_daily_bin650.fits ra=103.596 dec=50.7027 rad=12.0 tmin=407808001.0 tmax=408067201.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 9.62
user 3.88
sys 5.70

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/948822/ft2_4FGL_J0654.3+5042_daily_bin650.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/948822/ft1_filteredMKT_4FGL_J0654.3+5042_daily_bin650.fits evtable="EVENTS" outfile="/scratch/kocevski/948822/ft1_filtered_4FGL_J0654.3+5042_daily_bin650.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 6.01
user 0.34
sys 5.61

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/948822/ft1_filtered_4FGL_J0654.3+5042_daily_bin650.fits" evtable="EVENTS" scfile=/scratch/kocevski/948822/ft2_4FGL_J0654.3+5042_daily_bin650.fits sctable="SC_DATA" outfile=/scratch/kocevski/948822/ltcube_407808001_408067201_4FGL_J0654.3+5042_daily_bin650.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/948822/ft2_4FGL_J0654.3+5042_daily_bin650.fits
.....................!
real 18.25
user 11.90
sys 6.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948822/ft1_filtered_4FGL_J0654.3+5042_daily_bin650.fits evtable="EVENTS" scfile=/scratch/kocevski/948822/ft2_4FGL_J0654.3+5042_daily_bin650.fits sctable="SC_DATA" expcube=/scratch/kocevski/948822/ltcube_407808001_408067201_4FGL_J0654.3+5042_daily_bin650.fits outfile=/scratch/kocevski/948822/expmap_407808001_408067201_4FGL_J0654.3+5042_daily_bin650.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/948822/ltcube_407808001_408067201_4FGL_J0654.3+5042_daily_bin650.fits
.....................!
real 196.88
user 185.12
sys 11.31

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/948822/ft1_filtered_4FGL_J0654.3+5042_daily_bin650.fits scfile=/scratch/kocevski/948822/ft2_4FGL_J0654.3+5042_daily_bin650.fits outfile=/scratch/kocevski/948822/cmap_407808001_408067201_4FGL_J0654.3+5042_daily_bin650.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 5.77
user 0.37
sys 5.34

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/948822/ft1_filtered_4FGL_J0654.3+5042_daily_bin650.fits scfile=/scratch/kocevski/948822/ft2_4FGL_J0654.3+5042_daily_bin650.fits outfile=/scratch/kocevski/948822/cmap_HighResolution_407808001_408067201_4FGL_J0654.3+5042_daily_bin650.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 5.99
user 0.38
sys 5.58

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/948822/ft1_filtered_4FGL_J0654.3+5042_daily_bin650.fits', '/scratch/kocevski/948822/ft2_4FGL_J0654.3+5042_daily_bin650.fits', expMap='/scratch/kocevski/948822/expmap_407808001_408067201_4FGL_J0654.3+5042_daily_bin650.fits', expCube='/scratch/kocevski/948822/ltcube_407808001_408067201_4FGL_J0654.3+5042_daily_bin650.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/948822/Model_4FGL_J0654.3+5042_daily_bin650.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/948822/ft1_filtered_4FGL_J0654.3+5042_daily_bin650.fits
Spacecraft file(s): /scratch/kocevski/948822/ft2_4FGL_J0654.3+5042_daily_bin650.fits
Exposure map: /scratch/kocevski/948822/expmap_407808001_408067201_4FGL_J0654.3+5042_daily_bin650.fits
Exposure cube: /scratch/kocevski/948822/ltcube_407808001_408067201_4FGL_J0654.3+5042_daily_bin650.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/948822/Model_4FGL_J0654.3+5042_daily_bin650.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) = 6684.46372709

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .92599       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13235E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.494       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .53931       1.0000         .10000E-03   10000.    
     8 'norm      '    7.0507       1.0000         .10000E-03   10000.    
     9 'norm      '    1.1816       1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.505       1.0000         .10000E-03   10000.    
    11 'norm      '    11.869       1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.491       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.4063       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    33.324       1.0000         .10000E-03   10000.    
    19 'norm      '    .48765       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.710       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .65092E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    4.6488       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .98329       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .94572       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6684.461     FROM MIGRAD    STATUS=CONVERGED    661 CALLS     3193 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    60.453       -.37362E-06** at limit **
   2  norm          .92427        3.2118        .15702E-05    .52463E-04
   3  norm          .10000E-03    1.6449        .22053E-07** at limit **
   4  Prefactor     .10000E-03    34.926        .10270E-05** at limit **
   5  Prefactor     .10000E-03    3.6778        .18350E-07** at limit **
   6  Prefactor     24.478        33.760        .13358E-05    .83867E-04
   7  Prefactor     .26603        25.963       -.80801E-06    .73835E-04
   8  norm          7.0507        4.6433        .20656E-07   -.24742E-04
   9  norm          1.1813        3.1629        .94204E-06    .96645E-04
  10  Prefactor     17.506        16.974       -.63300E-07   -.14932E-04
  11  norm          11.868        6.2433        .32383E-07   -.54677E-05
  12  Prefactor     19.482        18.470       -.18792E-07   -.19439E-04
  13  Prefactor     .10000E-03    2.1831       -.12671E-07** at limit **
  14  Prefactor     1.4057        17.721       -.90412E-06   -.13237E-03
  15  Prefactor     .10000E-03    100.53        .10728E-05** at limit **
  16  norm          .10000E-03    3.3809        .10137E-07** at limit **
  17  Prefactor     .10000E-03    11.773        .10771E-07** at limit **
  18  Prefactor     33.328        35.748       -.93227E-06   -.11900E-03
  19  norm          .48775        .82228        .25053E-06    .43343E-03
  20  Prefactor     10.716        14.967       -.11717E-06   -.10910E-03
  21  Prefactor     .10000E-03    24.273        .12761E-07** at limit **
  22  norm          .10000E-03    1.8359       -.12230E-06** at limit **
  23  norm          .10479E-03    7.4692        .13430E-05** at limit **
  24  norm          4.6496        3.3241        .50063E-07   -.80422E-03
  25  Normalizat    .98286        .21311       -.44334E-06   -.16697E-03
  26  Prefactor     .94590        .94766E-01   -.41629E-06   -.23834E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.92427
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.4776
  Prefactor  = 0.266025
  norm       = 7.05072
  norm       = 1.18127
  Prefactor  = 17.5059
  norm       = 11.8677
  Prefactor  = 19.482
  Prefactor  = 0.0001
  Prefactor  = 1.40574
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.3283
  norm       = 0.487746
  Prefactor  = 10.7158
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000104785
  norm       = 4.64959
  Normalizat = 0.982855
  Prefactor  = 0.945899
 **********
 **   18 **HESSE 
 **********

 FCN=   6684.461     FROM HESSE     STATUS=OK           476 CALLS     3669 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    60.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .92427        3.2304        .25624E-03   -1.5516    
   3  norm          .10000E-03    1.6621        .10240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    36.331        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.6938        .15311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     24.478        33.995        .80938E-04   -1.4718    
   7  Prefactor     .26603        28.770        .13730       -1.5605    
   8  norm          7.0507        4.6414        .13748E-03   -1.5177    
   9  norm          1.1813        3.1406        .23051E-03   -1.5491    
  10  Prefactor     17.506        16.962        .95728E-04   -1.4871    
  11  norm          11.868        6.2414        .11628E-03   -1.5019    
  12  Prefactor     19.482        18.463        .90722E-04   -1.4825    
  13  Prefactor     .10000E-03    2.1928        .11790E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.4057        19.539        .36557E-03   -1.5471    
  15  Prefactor     .10000E-03    104.37        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.3943        .14681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     33.328        35.802        .69416E-04   -1.4553    
  19  norm          .48775        .75142        .94207E-03   -1.5568    
  20  Prefactor     10.716        14.953        .12243E-03   -1.5053    
  21  Prefactor     .10000E-03    24.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.8525        .10767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10479E-03    7.1763        .56808E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          4.6496        3.3541        .11148E-03   -1.5277    
  25  Normalizat    .98286        .24166        .34272E-03   -.93607    
  26  Prefactor     .94590        .10692        .16213E-03   -.94555    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48287e-09
Minuit parameter uncertainties:
  1  9.53775e-05
  2  3.23101
  3  1.13463e-06
  4  7.80018e-05
  5  7.017e-07
  6  34.022
  7  5.53469
  8  4.64166
  9  3.14105
  10  16.9666
  11  6.24174
  12  18.4679
  13  8.81455e-07
  14  10.4855
  15  0.000290776
  16  1.86035e-06
  17  2.9426e-07
  18  35.8246
  19  0.751432
  20  14.9581
  21  1.65138e-05
  22  1.30313e-06
  23  0.0117218
  24  3.35422
  25  0.241929
  26  0.106947
Done.

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

Extracting fit parameters...

4FGL J0654.3+5042
   Spectrum: LogParabola
250         norm:  7.051e+00  4.642e+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:  9.459e-01  1.069e-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:  9.829e-01  2.419e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.47
Ra Dec: 103.596 50.703
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 4.80e-08 +/- 3.16e-08
Energy Flux (Fixed Index): 2.24e-05 +/- 1.47e-05

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) = 6684.28821629
delta logL = 0.173020951623

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6684.28196352
delta logL = 0.179273725532

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.5848       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8408       1.0000          .0000       5.0000    
     3 'Normalizat'    .99093       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94467       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.

 FCN=   6684.282     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      209 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.5856        15.086        .36404E-02   -.59992E-04
   2  alpha         1.8415        1.1801        .35374        .54713E-05
   3  Normalizat    .99103        .20039        .77168E-01   -.19500E-03
   4  Prefactor     .94455        .92967E-01    .45572E-01   -.53354E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.58562
  alpha      = 1.84147
  Normalizat = 0.991029
  Prefactor  = 0.944549
 **********
 **   18 **HESSE 
 **********

 FCN=   6684.282     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.5856        5.1202        .14561E-03   -1.5157    
   2  alpha         1.8415        .47177        .13720E-01   -.26656    
   3  Normalizat    .99103        .22173        .34150E-03   -.93332    
   4  Prefactor     .94455        .10367        .16225E-03   -.94601    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18993e-10
Minuit parameter uncertainties:
  1  5.12046
  2  0.474831
  3  0.221934
  4  0.103694
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948822': 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) = 6684.28196142
delta logL = 0.179275823527

Extracting fit parameters...

4FGL J0654.3+5042
   Spectrum: LogParabola
250         norm:  7.586e+00  5.120e+00  1.000e-04  1.000e+04 ( 1.000e-12)
251        alpha:  1.841e+00  4.748e-01  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:  9.445e-01  1.037e-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:  9.910e-01  2.219e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.84
Ra Dec: 103.596 50.703
Photon Index (Free Index): 1.84 +/- 0.47
Photon Flux (Free Index): 3.81e-08 +/- 3.10e-08
Energy Flux (Free Index): 2.98e-05 +/- 2.58e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/948822/cmap_HighResolution_407808001_408067201_4FGL_J0654.3+5042_daily_bin650.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.80e-08', energy_flux2='2.98e-05', photon_flux_error='3.16e-08', dlogl='1.79e-01', energy_flux='2.24e-05', photon_flux2='3.81e-08', job_status='DONE', time_completed='2021-08-26 09:46:51.498338', photon_index_error2='0.47', photon_index2='1.84', ts='6.47', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='2.58e-05', EG='0.98', time_epoch_completed='1629996411.5', return_code='0', job_id='948822', GAL2='0.94', EG2='0.99', return_code2='0', energy_flux_error='1.47e-05', photon_flux_error2='3.10e-08', ts2='6.84', photon_index='2.13' WHERE bin_id='650' AND source_name='4FGL J0654.3+5042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 09:46:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0300>
Subject: Job 948822: <4FGL_J0654.3+5042_daily_bin650> in cluster <slac> Done

Job <4FGL_J0654.3+5042_daily_bin650> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Aug 26 09:30:49 2021
Job was executed on host(s) <bullet0300>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 09:30:50 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:30:50 2021
Terminated at Thu Aug 26 09:46:53 2021
Results reported at Thu Aug 26 09:46:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0654.3+5042_daily_bin650 103.596 50.7027 407808001 408067201 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 :                                   941.15 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             301.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   962 sec.
    Turnaround time :                            964 sec.

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

