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


Performing analysis on: 4FGL_J0654.4+4514_daily_bin1104
RA = 103.606, Dec = 45.2446
tmin = 525484801, tmax = 525744001
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='963283', job_status='RUN', time_executed='2021-08-26 10:19:46.564272', time_epoch_executed='1629998386.56' WHERE source_name='4FGL J0654.4+4514' and cadence='daily' and bin_id='1104'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/963283

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/963283/ft1_4FGL_J0654.4+4514_daily_bin1104.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/963283/ft2_4FGL_J0654.4+4514_daily_bin1104.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/963283/ft1_4FGL_J0654.4+4514_daily_bin1104.fits outfile=/scratch/kocevski/963283/ft1_filteredMKT_4FGL_J0654.4+4514_daily_bin1104.fits ra=103.606 dec=45.2446 rad=12.0 tmin=525484801.0 tmax=525744001.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.94
user 3.40
sys 0.51

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/963283/ft1_filtered_4FGL_J0654.4+4514_daily_bin1104.fits" evtable="EVENTS" scfile=/scratch/kocevski/963283/ft2_4FGL_J0654.4+4514_daily_bin1104.fits sctable="SC_DATA" outfile=/scratch/kocevski/963283/ltcube_525484801_525744001_4FGL_J0654.4+4514_daily_bin1104.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/963283/ft2_4FGL_J0654.4+4514_daily_bin1104.fits
.....................!
real 12.50
user 11.76
sys 0.65

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/963283/ft1_filtered_4FGL_J0654.4+4514_daily_bin1104.fits evtable="EVENTS" scfile=/scratch/kocevski/963283/ft2_4FGL_J0654.4+4514_daily_bin1104.fits sctable="SC_DATA" expcube=/scratch/kocevski/963283/ltcube_525484801_525744001_4FGL_J0654.4+4514_daily_bin1104.fits outfile=/scratch/kocevski/963283/expmap_525484801_525744001_4FGL_J0654.4+4514_daily_bin1104.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/963283/ltcube_525484801_525744001_4FGL_J0654.4+4514_daily_bin1104.fits
.....................!
real 191.29
user 185.74
sys 4.93

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/963283/ft1_filtered_4FGL_J0654.4+4514_daily_bin1104.fits scfile=/scratch/kocevski/963283/ft2_4FGL_J0654.4+4514_daily_bin1104.fits outfile=/scratch/kocevski/963283/cmap_525484801_525744001_4FGL_J0654.4+4514_daily_bin1104.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=103.606 yref=45.2446 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.66
user 0.37
sys 0.44

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/963283/ft1_filtered_4FGL_J0654.4+4514_daily_bin1104.fits scfile=/scratch/kocevski/963283/ft2_4FGL_J0654.4+4514_daily_bin1104.fits outfile=/scratch/kocevski/963283/cmap_HighResolution_525484801_525744001_4FGL_J0654.4+4514_daily_bin1104.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 2.09
user 0.39
sys 0.42

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.492       1.0000         .10000E-03   10000.    
     2 'norm      '    4.6147       1.0000         .10000E-03   10000.    
     3 'norm      '    3.0227       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.1976       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.9470       1.0000         .10000E-03   10000.    
     6 'norm      '    5.1480       1.0000         .10000E-03   10000.    
     7 'norm      '    3.9224       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10510E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    11.430       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4999       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .41363       1.0000         .10000E-03   10000.    
    12 'norm      '    .12714E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .23154E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    47.099       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .25103E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13952E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10399       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.7504       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .74078       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0045       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=   9693.405     FROM MIGRAD    STATUS=CONVERGED    123 CALLS     1252 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.099        31.335       -.30396E-04    .66668E-03
   2  norm          4.6141        2.4915       -.65477E-06    .33279E-03
   3  norm          3.0216        2.2406       -.91145E-08   -.18129E-03
   4  Prefactor     8.3318        6.4632       -.60960E-06    .85552E-04
   5  Prefactor     9.1397        15.051        .23145E-04    .73545E-03
   6  norm          5.1139        4.0301       -.35235E-05    .73621E-03
   7  norm          3.9250        3.3292       -.24650E-06    .36514E-03
   8  Prefactor     .10000E-03    5.8261       -.18950E-05** at limit **
   9  norm          11.394        5.8470        .14715E-04   -.24262E-02
  10  Prefactor     2.4952        5.7611       -.16705E-04   -.42880E-03
  11  Prefactor     .73976        56.765        .12982E-04   -.27138E-05
  12  norm          .10000E-03    4.1871        .18242E-06** at limit **
  13  Prefactor     .10000E-03    3.7461        .56372E-06** at limit **
  14  Prefactor     47.459        27.777       -.17627E-04    .20436E-03
  15  Prefactor     .10000E-03    4.1099        .13611E-05** at limit **
  16  Prefactor     .10000E-03    14.304        .66116E-05** at limit **
  17  norm          .10489        .74370       -.12522E-04   -.29912E-02
  18  Prefactor     5.7018        9.7506        .59521E-05   -.16707E-04
  19  Normalizat    .74012        .19274        .93578E-05    .11273E-03
  20  Prefactor     1.0045        .82154E-01   -.19268E-05    .37790E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.0987
  norm       = 4.61407
  norm       = 3.02158
  Prefactor  = 8.33183
  Prefactor  = 9.13967
  norm       = 5.11386
  norm       = 3.92497
  Prefactor  = 0.000100001
  norm       = 11.3941
  Prefactor  = 2.49515
  Prefactor  = 0.739762
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 47.4591
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.104891
  Prefactor  = 5.70183
  Normalizat = 0.74012
  Prefactor  = 1.0045
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.099        34.951        .19458E-02   -1.4686    
   2  norm          4.6141        2.4870        .46841E-02   -1.5278    
   3  norm          3.0216        2.2362        .58355E-02   -1.5360    
   4  Prefactor     8.3318        6.4634        .35006E-02   -1.5131    
   5  Prefactor     9.1397        33.910        .33500E-02   -1.5103    
   6  norm          5.1139        4.0500        .44297E-02   -1.5256    
   7  norm          3.9250        3.3392        .50925E-02   -1.5312    
   8  Prefactor     .10000E-03    5.8139        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          11.394        6.1953        .29623E-02   -1.5033    
  10  Prefactor     2.4952        5.8465        .64619E-02   -1.5392    
  11  Prefactor     .73976        11.114        .10913       -1.5536    
  12  norm          .10000E-03    4.1537        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.7397        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     47.459        27.862        .14607E-02   -1.4329    
  15  Prefactor     .10000E-03    4.0805        .10732E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.178        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10489        1.3207        .36669E-01   -1.5643    
  18  Prefactor     5.7018        9.7632        .41873E-02   -1.5230    
  19  Normalizat    .74012        .17899        .90798E-01   -1.0233    
  20  Prefactor     1.0045        .74530E-01    .44310E-01   -.92580    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.0509e-07
Minuit parameter uncertainties:
  1  34.9785
  2  2.48707
  3  2.23629
  4  6.46398
  5  33.9818
  6  4.05019
  7  3.33933
  8  0.000118282
  9  6.19567
  10  5.84785
  11  5.7357
  12  3.3449e-05
  13  4.19703e-05
  14  27.8699
  15  8.34127e-05
  16  0.000229472
  17  0.744044
  18  9.76588
  19  0.179132
  20  0.0745377
Done.

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

Extracting fit parameters...

4FGL J0654.4+4514
   Spectrum: LogParabola
246         norm:  3.925e+00  3.339e+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.005e+00  7.454e-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:  7.401e-01  1.791e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.17
Ra Dec: 103.606 45.245
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 3.37e-08 +/- 2.86e-08
Energy Flux (Fixed Index): 1.48e-05 +/- 1.26e-05

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

Saving results to:
/scratch/kocevski/963283/likelihoodResults_525484801_525744001_4FGL_J0654.4+4514_daily_bin1104.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) = 9693.30062591
delta logL = 0.104726157102

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9693.29917259
delta logL = 0.106179477529

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2647       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4965       1.0000          .0000       5.0000    
     3 'Normalizat'    .73038       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0065       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=   9693.299     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      260 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2653        52.949        .56032E-02    .96240E-03
   2  alpha         2.4969        3.7444        .41152        .76036E-04
   3  Normalizat    .73034        .64641E-01    .91333E-01    .31907E-04
   4  Prefactor     1.0065        .25585E-01    .43896E-01   -.22281E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.26528
  alpha      = 2.4969
  Normalizat = 0.730339
  Prefactor  = 1.00649
 **********
 **   18 **HESSE 
 **********

 FCN=   9693.299     FROM HESSE     STATUS=OK            33 CALLS      293 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2653        3.5177        .13585E-03   -1.5347    
   2  alpha         2.4969        .73818        .15361E-01   -.12398E-02
   3  Normalizat    .73034        .18406        .40465E-03   -1.0271    
   4  Prefactor     1.0065        .80389E-01    .15274E-03   -.92514    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.36655e-11
Minuit parameter uncertainties:
  1  3.51791
  2  0.749353
  3  0.184215
  4  0.0803981
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/963283': 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) = 9693.29917214
delta logL = 0.10617992164

Extracting fit parameters...

4FGL J0654.4+4514
   Spectrum: LogParabola
246         norm:  3.265e+00  3.518e+00  1.000e-04  1.000e+04 ( 1.000e-12)
247        alpha:  2.497e+00  7.494e-01  0.000e+00  5.000e+00 ( 1.000e+00)
248         beta:  8.026e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
249           Eb:  9.087e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  1.006e+00  8.040e-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:  7.303e-01  1.842e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.39
Ra Dec: 103.606 45.245
Photon Index (Free Index): 2.50 +/- 0.75
Photon Flux (Free Index): 4.34e-08 +/- 3.80e-08
Energy Flux (Free Index): 1.31e-05 +/- 1.13e-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/963283/cmap_HighResolution_525484801_525744001_4FGL_J0654.4+4514_daily_bin1104.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.28e-05', comment='SUCCESS', photon_flux='3.37e-08', energy_flux2='1.31e-05', photon_flux_error='2.86e-08', dlogl='1.06e-01', energy_flux='1.48e-05', photon_flux2='4.34e-08', job_status='DONE', time_completed='2021-08-26 10:32:35.821520', photon_index_error2='0.75', photon_index2='2.50', ts='2.17', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='9.76e-08', energy_flux_error2='1.13e-05', EG='0.74', time_epoch_completed='1629999155.82', return_code='0', job_id='963283', GAL2='1.01', EG2='0.73', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='3.80e-08', ts2='2.39', photon_index='2.18' WHERE bin_id='1104' AND source_name='4FGL J0654.4+4514' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 10:32:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0150>
Subject: Job 963283: <4FGL_J0654.4+4514_daily_bin1104> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0654.4+4514_daily_bin1104 103.606 45.2446 525484801 525744001 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 :                                   762.11 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             314.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            935 sec.

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

