/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 8 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 = 7413
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0654.4+4514_daily_bin126
RA = 103.606, Dec = 45.2446
tmin = 271987201, tmax = 272246401
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='956228', job_status='RUN', time_executed='2021-08-26 09:55:48.950441', time_epoch_executed='1629996948.95' WHERE source_name='4FGL J0654.4+4514' and cadence='daily' and bin_id='126'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/956228

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/956228/ft1_4FGL_J0654.4+4514_daily_bin126.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/956228/ft2_4FGL_J0654.4+4514_daily_bin126.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/956228/ft1_4FGL_J0654.4+4514_daily_bin126.fits outfile=/scratch/kocevski/956228/ft1_filteredMKT_4FGL_J0654.4+4514_daily_bin126.fits ra=103.606 dec=45.2446 rad=12.0 tmin=271987201.0 tmax=272246401.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 1.94
user 1.43
sys 0.49

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/956228/ft2_4FGL_J0654.4+4514_daily_bin126.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/956228/ft1_filteredMKT_4FGL_J0654.4+4514_daily_bin126.fits evtable="EVENTS" outfile="/scratch/kocevski/956228/ft1_filtered_4FGL_J0654.4+4514_daily_bin126.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 1.02
user 0.32
sys 0.48

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/956228/ft1_filtered_4FGL_J0654.4+4514_daily_bin126.fits" evtable="EVENTS" scfile=/scratch/kocevski/956228/ft2_4FGL_J0654.4+4514_daily_bin126.fits sctable="SC_DATA" outfile=/scratch/kocevski/956228/ltcube_271987201_272246401_4FGL_J0654.4+4514_daily_bin126.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/956228/ft2_4FGL_J0654.4+4514_daily_bin126.fits
.....................!
real 12.71
user 11.90
sys 0.71

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/956228/ft1_filtered_4FGL_J0654.4+4514_daily_bin126.fits evtable="EVENTS" scfile=/scratch/kocevski/956228/ft2_4FGL_J0654.4+4514_daily_bin126.fits sctable="SC_DATA" expcube=/scratch/kocevski/956228/ltcube_271987201_272246401_4FGL_J0654.4+4514_daily_bin126.fits outfile=/scratch/kocevski/956228/expmap_271987201_272246401_4FGL_J0654.4+4514_daily_bin126.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/956228/ltcube_271987201_272246401_4FGL_J0654.4+4514_daily_bin126.fits
.....................!
real 191.83
user 185.04
sys 4.71

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/956228/ft1_filtered_4FGL_J0654.4+4514_daily_bin126.fits scfile=/scratch/kocevski/956228/ft2_4FGL_J0654.4+4514_daily_bin126.fits outfile=/scratch/kocevski/956228/cmap_271987201_272246401_4FGL_J0654.4+4514_daily_bin126.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.88
user 0.37
sys 0.47

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/956228/ft1_filtered_4FGL_J0654.4+4514_daily_bin126.fits scfile=/scratch/kocevski/956228/ft2_4FGL_J0654.4+4514_daily_bin126.fits outfile=/scratch/kocevski/956228/cmap_HighResolution_271987201_272246401_4FGL_J0654.4+4514_daily_bin126.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 1.08
user 0.37
sys 0.48

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    56.531       1.0000         .10000E-03   10000.    
     2 'norm      '    4.4482       1.0000         .10000E-03   10000.    
     3 'norm      '    3.9151       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    33.829       1.0000         .10000E-03   10000.    
     6 'norm      '    11.022       1.0000         .10000E-03   10000.    
     7 'norm      '    3.6982       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.0941       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.3121       1.0000         .10000E-03   10000.    
    11 'Prefactor '    27.324       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12631E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.428       1.0000         .10000E-03   10000.    
    17 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .96926       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .94533       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11187.58     FROM MIGRAD    STATUS=CONVERGED    423 CALLS     2052 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     56.532        41.540        .43409E-06   -.46190E-04
   2  norm          4.4483        2.8703       -.10023E-06   -.43237E-03
   3  norm          3.9151        2.6788       -.43144E-07   -.22641E-03
   4  Prefactor     .10000E-03    1.2977       -.21250E-08** at limit **
   5  Prefactor     33.830        51.911        .25816E-05   -.10182E-03
   6  norm          11.023        4.6175       -.12601E-07    .36095E-04
   7  norm          3.6982        2.6765        .10972E-07   -.57665E-04
   8  Prefactor     .10000E-03    5.7611       -.86738E-07** at limit **
   9  norm          1.0942        2.6264       -.17284E-05   -.15523E-02
  10  Prefactor     7.3121        5.2794        .65709E-08   -.10144E-03
  11  Prefactor     27.321        15.365        .18684E-05   -.52717E-03
  12  norm          .10000E-03    7.0532        .70315E-07** at limit **
  13  Prefactor     .10000E-03    5.0654        .80571E-07** at limit **
  14  Prefactor     .10000E-03    86.947       -.17431E-05** at limit **
  15  Prefactor     .10000E-03    4.5698        .38664E-08** at limit **
  16  Prefactor     15.443        19.704       -.35669E-05    .40647E-03
  17  norm          .10000E-03    1.1725        .94093E-07** at limit **
  18  Prefactor     .10000E-03    12.627        .24767E-06** at limit **
  19  Normalizat    .96923        .17273        .42668E-06   -.13944E-04
  20  Prefactor     .94533        .70618E-01   -.27424E-07    .79487E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 56.5318
  norm       = 4.44826
  norm       = 3.9151
  Prefactor  = 0.0001
  Prefactor  = 33.8304
  norm       = 11.0225
  norm       = 3.69824
  Prefactor  = 0.0001
  norm       = 1.09418
  Prefactor  = 7.31213
  Prefactor  = 27.3211
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.4432
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.969231
  Prefactor  = 0.945334
 **********
 **   18 **HESSE 
 **********

 FCN=   11187.58     FROM HESSE     STATUS=OK           287 CALLS     2339 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     56.532        41.519        .53354E-04   -1.4203    
   2  norm          4.4483        2.8845        .13845E-03   -1.5286    
   3  norm          3.9151        2.6881        .13822E-03   -1.5312    
   4  Prefactor     .10000E-03    1.2988        .11767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     33.830        51.672        .68897E-04   -1.4544    
   6  norm          11.023        4.6136        .12067E-03   -1.5044    
   7  norm          3.6982        2.6759        .14242E-03   -1.5323    
   8  Prefactor     .10000E-03    5.7666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.0942        3.2567        .31579E-03   -1.5499    
  10  Prefactor     7.3121        5.2548        .14833E-03   -1.5167    
  11  Prefactor     27.321        15.072        .76640E-04   -1.4662    
  12  norm          .10000E-03    7.2107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.0843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    89.557        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.5840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     15.443        18.999        .10197E-03   -1.4922    
  17  norm          .10000E-03    2.5892        .22229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .96923        .19317        .37115E-03   -.94068    
  20  Prefactor     .94533        .79514E-01    .16022E-03   -.94575    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.96754e-09
Minuit parameter uncertainties:
  1  41.5404
  2  2.88463
  3  2.68813
  4  7.82071e-08
  5  51.7406
  6  4.61378
  7  2.67596
  8  5.17075e-06
  9  3.25725
  10  5.25518
  11  15.0742
  12  4.46061e-07
  13  5.26746e-06
  14  0.000366744
  15  2.8752e-06
  16  19.0069
  17  1.36325e-05
  18  0.000100029
  19  0.193314
  20  0.0795233
Done.

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

Extracting fit parameters...

4FGL J0654.4+4514
   Spectrum: LogParabola
246         norm:  3.698e+00  2.676e+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:  9.453e-01  7.952e-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:  9.692e-01  1.933e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.40
Ra Dec: 103.606 45.245
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 3.17e-08 +/- 2.30e-08
Energy Flux (Fixed Index): 1.39e-05 +/- 1.01e-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) = 11186.1612315
delta logL = 1.41875890562

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11186.1031402
delta logL = 1.47685021049

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8527       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.1971       1.0000          .0000       5.0000    
     3 'Normalizat'    .98334       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94422       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=   11186.10     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      214 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8471        2.2264        .60178E-02   -.67273E-04
   2  alpha         1.1959        .34375        .42789       -.66969E-04
   3  Normalizat    .98366        .16075        .83298E-01    .34549E-04
   4  Prefactor     .94411        .69005E-01    .45566E-01   -.16506E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.8471
  alpha      = 1.19588
  Normalizat = 0.983665
  Prefactor  = 0.944107
 **********
 **   18 **HESSE 
 **********

 FCN=   11186.10     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8471        3.0327        .13514E-03   -1.5370    
   2  alpha         1.1959        .53095        .16589E-01   -.54878    
   3  Normalizat    .98366        .17844        .36876E-03   -.93580    
   4  Prefactor     .94411        .76804E-01    .16034E-03   -.94616    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.66445e-09
Minuit parameter uncertainties:
  1  3.0329
  2  0.536593
  3  0.178544
  4  0.0768127
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/956228': 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) = 11186.1031363
delta logL = 1.47685414829

Extracting fit parameters...

4FGL J0654.4+4514
   Spectrum: LogParabola
246         norm:  2.847e+00  3.033e+00  1.000e-04  1.000e+04 ( 1.000e-12)
247        alpha:  1.196e+00  5.366e-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:  9.441e-01  7.681e-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:  9.837e-01  1.785e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.35
Ra Dec: 103.606 45.245
Photon Index (Free Index): 1.20 +/- 0.54
Photon Flux (Free Index): 1.18e-08 +/- 1.20e-08
Energy Flux (Free Index): 4.95e-05 +/- 5.51e-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/956228/cmap_HighResolution_271987201_272246401_4FGL_J0654.4+4514_daily_bin126.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.17e-08', energy_flux2='4.95e-05', photon_flux_error='2.30e-08', dlogl='1.48e+00', energy_flux='1.39e-05', photon_flux2='1.18e-08', job_status='DONE', time_completed='2021-08-26 10:09:22.762841', photon_index_error2='0.54', photon_index2='1.20', ts='7.40', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='5.51e-05', EG='0.97', time_epoch_completed='1629997762.76', return_code='0', job_id='956228', GAL2='0.94', EG2='0.98', return_code2='0', energy_flux_error='1.01e-05', photon_flux_error2='1.20e-08', ts2='10.35', photon_index='2.18' WHERE bin_id='126' AND source_name='4FGL J0654.4+4514' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 10:09:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0053>
Subject: Job 956228: <4FGL_J0654.4+4514_daily_bin126> in cluster <slac> Done

Job <4FGL_J0654.4+4514_daily_bin126> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Aug 26 09:55:26 2021
Job was executed on host(s) <bullet0053>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 09:55:27 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:55:27 2021
Terminated at Thu Aug 26 10:09:23 2021
Results reported at Thu Aug 26 10:09:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0654.4+4514_daily_bin126 103.606 45.2446 271987201 272246401 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 :                                   814.49 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             393.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            837 sec.

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

