/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 9 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 = 7353
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0654.4+4514_daily_bin41
RA = 103.606, Dec = 45.2446
tmin = 249955201, tmax = 250214401
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='955089', job_status='RUN', time_executed='2021-08-26 09:51:33.180760', time_epoch_executed='1629996693.18' WHERE source_name='4FGL J0654.4+4514' and cadence='daily' and bin_id='41'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/955089

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/955089/ft1_4FGL_J0654.4+4514_daily_bin41.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/955089/ft2_4FGL_J0654.4+4514_daily_bin41.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/955089/ft1_4FGL_J0654.4+4514_daily_bin41.fits outfile=/scratch/kocevski/955089/ft1_filteredMKT_4FGL_J0654.4+4514_daily_bin41.fits ra=103.606 dec=45.2446 rad=12.0 tmin=249955201.0 tmax=250214401.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.87
user 1.25
sys 0.57

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/955089/ft2_4FGL_J0654.4+4514_daily_bin41.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/955089/ft1_filteredMKT_4FGL_J0654.4+4514_daily_bin41.fits evtable="EVENTS" outfile="/scratch/kocevski/955089/ft1_filtered_4FGL_J0654.4+4514_daily_bin41.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.91
user 0.34
sys 0.54

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/955089/ft1_filtered_4FGL_J0654.4+4514_daily_bin41.fits" evtable="EVENTS" scfile=/scratch/kocevski/955089/ft2_4FGL_J0654.4+4514_daily_bin41.fits sctable="SC_DATA" outfile=/scratch/kocevski/955089/ltcube_249955201_250214401_4FGL_J0654.4+4514_daily_bin41.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/955089/ft2_4FGL_J0654.4+4514_daily_bin41.fits
.....................!
real 14.60
user 13.75
sys 0.78

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/955089/ft1_filtered_4FGL_J0654.4+4514_daily_bin41.fits evtable="EVENTS" scfile=/scratch/kocevski/955089/ft2_4FGL_J0654.4+4514_daily_bin41.fits sctable="SC_DATA" expcube=/scratch/kocevski/955089/ltcube_249955201_250214401_4FGL_J0654.4+4514_daily_bin41.fits outfile=/scratch/kocevski/955089/expmap_249955201_250214401_4FGL_J0654.4+4514_daily_bin41.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/955089/ltcube_249955201_250214401_4FGL_J0654.4+4514_daily_bin41.fits
.....................!
real 189.97
user 184.94
sys 4.51

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/955089/ft1_filtered_4FGL_J0654.4+4514_daily_bin41.fits scfile=/scratch/kocevski/955089/ft2_4FGL_J0654.4+4514_daily_bin41.fits outfile=/scratch/kocevski/955089/cmap_249955201_250214401_4FGL_J0654.4+4514_daily_bin41.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.98
user 0.39
sys 0.54

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/955089/ft1_filtered_4FGL_J0654.4+4514_daily_bin41.fits scfile=/scratch/kocevski/955089/ft2_4FGL_J0654.4+4514_daily_bin41.fits outfile=/scratch/kocevski/955089/cmap_HighResolution_249955201_250214401_4FGL_J0654.4+4514_daily_bin41.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=103.606 yref=45.2446 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.95
user 0.38
sys 0.56

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.288       1.0000         .10000E-03   10000.    
     2 'norm      '    .10945E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.0765       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    66.983       1.0000         .10000E-03   10000.    
     6 'norm      '    .15615E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.0213       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.1559       1.0000         .10000E-03   10000.    
    12 'norm      '    9.0377       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.127       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.694       1.0000         .10000E-03   10000.    
    17 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.5630       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .95450       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0046       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=   8163.912     FROM MIGRAD    STATUS=CONVERGED    410 CALLS     2034 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.268        34.848        .49256E-05    .18727E-03
   2  norm          .10000E-03    1.2816        .31197E-06** at limit **
   3  norm          8.0762        4.3377        .34647E-07    .37067E-04
   4  Prefactor     .10000E-03    13.560       -.56808E-06** at limit **
   5  Prefactor     66.980        60.998        .55644E-06    .27397E-05
   6  norm          .10005E-03    5.5662        .33130E-05** at limit **
   7  norm          .10000E-03    2.9609        .19648E-06** at limit **
   8  Prefactor     .10000E-03    7.3597        .14702E-05** at limit **
   9  norm          5.0236        5.6046        .15301E-05    .86119E-03
  10  Prefactor     .10000E-03    2.4453        .31204E-06** at limit **
  11  Prefactor     5.1561        13.391        .10880E-05    .16654E-03
  12  norm          9.0377        7.7554       -.96448E-08   -.33437E-04
  13  Prefactor     .10000E-03    6.1906       -.82197E-06** at limit **
  14  Prefactor     .10000E-03    15.500        .20465E-05** at limit **
  15  Prefactor     10.124        12.936        .27376E-06   -.37732E-05
  16  Prefactor     10.697        23.131       -.13720E-05   -.71444E-04
  17  norm          .10000E-03    1.8580       -.23697E-07** at limit **
  18  Prefactor     2.5581        22.070        .27068E-05    .64988E-04
  19  Normalizat    .95448        .21009       -.12448E-05   -.13816E-03
  20  Prefactor     1.0046        .85455E-01    .14873E-06   -.28816E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.2679
  norm       = 0.0001
  norm       = 8.07623
  Prefactor  = 0.0001
  Prefactor  = 66.9802
  norm       = 0.000100055
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.0236
  Prefactor  = 0.0001
  Prefactor  = 5.15608
  norm       = 9.03773
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.1241
  Prefactor  = 10.6974
  norm       = 0.0001
  Prefactor  = 2.55806
  Normalizat = 0.954477
  Prefactor  = 1.00464
 **********
 **   18 **HESSE 
 **********

 FCN=   8163.912     FROM HESSE     STATUS=OK           291 CALLS     2325 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.268        35.264        .79660E-04   -1.4702    
   2  norm          .10000E-03    2.7992        .19734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.0762        4.3547        .13176E-03   -1.5140    
   4  Prefactor     .10000E-03    13.948        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     66.980        61.027        .49040E-04   -1.4069    
   6  norm          .10005E-03    11.996        .28956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.0661        .30350E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.3881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.0236        5.7805        .89727E-03   -1.5260    
  10  Prefactor     .10000E-03    2.4640        .13807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.1561        13.369        .88525E-03   -1.5254    
  12  norm          9.0377        7.7531        .13332E-03   -1.5107    
  13  Prefactor     .10000E-03    6.2141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.124        12.940        .12591E-03   -1.5071    
  16  Prefactor     10.697        22.969        .12252E-03   -1.5054    
  17  norm          .10000E-03    1.8771        .12016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.5581        21.882        .25500E-03   -1.5388    
  19  Normalizat    .95448        .23640        .38484E-03   -.94571    
  20  Prefactor     1.0046        .96441E-01    .15732E-03   -.92575    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.43404e-09
Minuit parameter uncertainties:
  1  35.2929
  2  3.69255e-08
  3  4.35486
  4  1.64747e-05
  5  61.084
  6  0.00162222
  7  5.98155e-06
  8  7.74833e-05
  9  5.78118
  10  1.09322e-05
  11  13.3769
  12  7.75397
  13  3.58349e-05
  14  0.000151879
  15  12.9439
  16  22.9878
  17  1.67016e-06
  18  14.9703
  19  0.236654
  20  0.0964575
Done.

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

Extracting fit parameters...

4FGL J0654.4+4514
   Spectrum: LogParabola
246         norm:  1.000e-04  5.982e-06  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  9.646e-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.545e-01  2.367e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/955089/likelihoodResults_249955201_250214401_4FGL_J0654.4+4514_daily_bin41.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) = 8163.91367676
delta logL = -0.00155693645229

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8163.91212296
delta logL = -3.14234694088e-06

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8163.237     FROM MIGRAD    STATUS=FAILED       174 CALLS      349 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .65846E-01    2.3464        .32390E-02    .70880E-02
   2  alpha         5.0000        2.9999        .50000    ** at limit **
   3  Normalizat    .86560        .12072        .38484E-02   -.83088E-04
   4  Prefactor     1.0241        .46950E-01    .15732E-03   -.50231E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8163.237     FROM SIMPLEX   STATUS=UNCHANGED    128 CALLS      477 TOTAL
                     EDM=   .52E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .65846E-01    2.3464        .15353E-05    .70880E-02
   2  alpha         5.0000        2.9999        .93067E-02** at limit **
   3  Normalizat    .86560        .12072        .72445E-06   -.83088E-04
   4  Prefactor     1.0241        .46950E-01    .87280E-07   -.50231E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8163.237     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      514 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .65846E-01    .71157E-01    .20626E-04   -.25133E-03
   2  alpha         5.0000        3.1562        .50000    ** at limit **
   3  Normalizat    .86560        .23767        .15394E-03   -.11806E-03
   4  Prefactor     1.0241        .95807E-01    .31463E-04   -.53831E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.065846
  alpha      = 5
  Normalizat = 0.865596
  Prefactor  = 1.02405
 **********
 **   18 **HESSE 
 **********

 FCN=   8163.237     FROM HESSE     STATUS=OK            29 CALLS      543 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .65846E-01    .70877E-01    .82506E-06   -1.5657    
   2  alpha         5.0000        3.1517        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .86560        .23774        .30787E-04   -.97680    
   4  Prefactor     1.0241        .95825E-01    .62927E-05   -.91932    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29358e-10
Minuit parameter uncertainties:
  1  0.0708774
  2  4.26752e-05
  3  0.238031
  4  0.0958414
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/955089': 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) = 8163.23734951
delta logL = 0.674770312634

Extracting fit parameters...

4FGL J0654.4+4514
   Spectrum: LogParabola
246         norm:  6.585e-02  7.088e-02  1.000e-04  1.000e+04 ( 1.000e-12)
247        alpha:  5.000e+00  4.268e-05  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.024e+00  9.584e-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:  8.656e-01  2.380e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.48
Ra Dec: 103.606 45.245
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 7.52e-08 +/- 8.05e-08
Energy Flux (Free Index): 1.02e-05 +/- 1.10e-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/955089/cmap_HighResolution_249955201_250214401_4FGL_J0654.4+4514_daily_bin41.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.01e-05', comment='SUCCESS', energy_flux2='1.02e-05', dlogl='6.75e-01', photon_flux2='7.52e-08', job_status='DONE', time_completed='2021-08-26 10:04:22.754057', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='6.88e-08', energy_flux_error2='1.10e-05', EG='0.95', time_epoch_completed='1629997462.75', return_code='0', job_id='955089', GAL2='1.02', EG2='0.87', return_code2='0', photon_flux_error2='8.05e-08', ts2='1.48', photon_index='2.18' WHERE bin_id='41' AND source_name='4FGL J0654.4+4514' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 10:04:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 955089: <4FGL_J0654.4+4514_daily_bin41> in cluster <slac> Done

Job <4FGL_J0654.4+4514_daily_bin41> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Thu Aug 26 09:51:02 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 09:51:08 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:51:08 2021
Terminated at Thu Aug 26 10:04:23 2021
Results reported at Thu Aug 26 10:04:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0654.4+4514_daily_bin41 103.606 45.2446 249955201 250214401 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 :                                   774.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             352.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   795 sec.
    Turnaround time :                            801 sec.

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

