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


Performing analysis on: 4FGL_J0654.3+5042_daily_bin7
RA = 103.596, Dec = 50.7027
tmin = 241142401, tmax = 241401601
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='945617', job_status='RUN', time_executed='2021-08-26 09:22:26.765721', time_epoch_executed='1629994946.77' WHERE source_name='4FGL J0654.3+5042' and cadence='daily' and bin_id='7'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/945617

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/945617/ft1_4FGL_J0654.3+5042_daily_bin7.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/945617/ft2_4FGL_J0654.3+5042_daily_bin7.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/945617/ft1_4FGL_J0654.3+5042_daily_bin7.fits outfile=/scratch/kocevski/945617/ft1_filteredMKT_4FGL_J0654.3+5042_daily_bin7.fits ra=103.596 dec=50.7027 rad=12.0 tmin=241142401.0 tmax=241401601.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 4.52
user 1.30
sys 3.10

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/945617/ft2_4FGL_J0654.3+5042_daily_bin7.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/945617/ft1_filteredMKT_4FGL_J0654.3+5042_daily_bin7.fits evtable="EVENTS" outfile="/scratch/kocevski/945617/ft1_filtered_4FGL_J0654.3+5042_daily_bin7.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 3.52
user 0.34
sys 3.12

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/945617/ft1_filtered_4FGL_J0654.3+5042_daily_bin7.fits" evtable="EVENTS" scfile=/scratch/kocevski/945617/ft2_4FGL_J0654.3+5042_daily_bin7.fits sctable="SC_DATA" outfile=/scratch/kocevski/945617/ltcube_241142401_241401601_4FGL_J0654.3+5042_daily_bin7.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/945617/ft2_4FGL_J0654.3+5042_daily_bin7.fits
.....................!
real 16.00
user 12.19
sys 3.62

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/945617/ft1_filtered_4FGL_J0654.3+5042_daily_bin7.fits evtable="EVENTS" scfile=/scratch/kocevski/945617/ft2_4FGL_J0654.3+5042_daily_bin7.fits sctable="SC_DATA" expcube=/scratch/kocevski/945617/ltcube_241142401_241401601_4FGL_J0654.3+5042_daily_bin7.fits outfile=/scratch/kocevski/945617/expmap_241142401_241401601_4FGL_J0654.3+5042_daily_bin7.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/945617/ltcube_241142401_241401601_4FGL_J0654.3+5042_daily_bin7.fits
.....................!
real 196.02
user 185.98
sys 8.42

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

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

This is gtbin version HEAD
real 3.48
user 0.37
sys 3.01

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

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

This is gtbin version HEAD
real 3.17
user 0.38
sys 2.70

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.3393       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.3423       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    125.28       1.0000         .10000E-03   10000.    
     8 'norm      '    19.249       1.0000         .10000E-03   10000.    
     9 'norm      '    18.677       1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.156       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.8581       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    54.322       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13637E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10789E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    3.2371       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .76567       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0971       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=   7713.567     FROM MIGRAD    STATUS=CONVERGED    611 CALLS     3074 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    39.720       -.26171E-05** at limit **
   2  norm          .10000E-03    1.6101        .13868E-07** at limit **
   3  norm          2.3395        2.4327        .52208E-07    .11119E-03
   4  Prefactor     6.3429        8.7316       -.10934E-06   -.60322E-04
   5  Prefactor     .10000E-03    2.3032        .72969E-08** at limit **
   6  Prefactor     .10000E-03    47.251        .11074E-04** at limit **
   7  Prefactor     125.29        65.836        .76104E-05   -.19946E-04
   8  norm          19.249        7.6357        .11657E-06   -.66521E-04
   9  norm          18.679        6.3062       -.23756E-06   -.94172E-03
  10  Prefactor     19.161        32.257        .45077E-05   -.42364E-05
  11  norm          .10000E-03    2.2388        .51821E-08** at limit **
  12  Prefactor     .10000E-03    11.216        .65659E-05** at limit **
  13  Prefactor     9.8569        6.9113        .82488E-07   -.13104E-03
  14  Prefactor     .10000E-03    6.9995        .28960E-05** at limit **
  15  Prefactor     54.328        31.666        .29399E-05   -.23410E-04
  16  norm          .10000E-03    5.7046        .12350E-06** at limit **
  17  Prefactor     .10000E-03    10.786       -.66596E-05** at limit **
  18  Prefactor     .10000E-03    62.545       -.81921E-05** at limit **
  19  norm          .10000E-03    .29709        .10728E-07** at limit **
  20  Prefactor     .10000E-03    25.872       -.13820E-05** at limit **
  21  Prefactor     .10000E-03    6.8320       -.26367E-05** at limit **
  22  norm          .10000E-03    .85842        .78004E-08** at limit **
  23  norm          .10000E-03    3.0088        .17610E-07** at limit **
  24  norm          3.2370        2.2676        .60137E-07    .88645E-04
  25  Normalizat    .76540        .22079       -.26229E-05   -.10038E-04
  26  Prefactor     1.0971        .97213E-01    .14060E-06   -.23030E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.33945
  Prefactor  = 6.34288
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 125.292
  norm       = 19.2494
  norm       = 18.6788
  Prefactor  = 19.1607
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.85686
  Prefactor  = 0.0001
  Prefactor  = 54.3284
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.23699
  Normalizat = 0.765404
  Prefactor  = 1.09709
 **********
 **   18 **HESSE 
 **********

 FCN=   7713.567     FROM HESSE     STATUS=OK           450 CALLS     3524 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    39.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.6802        .21755E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.3395        2.4371        .13614E-03   -1.5402    
   4  Prefactor     6.3429        8.7268        .15938E-03   -1.5204    
   5  Prefactor     .10000E-03    2.3065        .13017E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    47.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     125.29        65.668        .35963E-04   -1.3465    
   8  norm          19.249        7.6304        .91290E-04   -1.4830    
   9  norm          18.679        6.3245        .46338E-03   -1.4843    
  10  Prefactor     19.161        32.305        .91511E-04   -1.4832    
  11  norm          .10000E-03    2.2456        .12824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.8569        6.9092        .12763E-03   -1.5080    
  14  Prefactor     .10000E-03    7.0105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     54.328        31.667        .54422E-04   -1.4232    
  16  norm          .10000E-03    5.7312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    62.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .30453        .93343E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    26.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.8367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .86153        .79453E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    3.0304        .14871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.2370        2.2690        .10757E-03   -1.5348    
  25  Normalizat    .76540        .23694        .42372E-03   -1.0137    
  26  Prefactor     1.0971        .10542        .16643E-03   -.89560    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18748e-10
Minuit parameter uncertainties:
  1  2.34405e-05
  2  2.53684e-06
  3  2.43721
  4  8.72858
  5  1.47852e-06
  6  0.000121778
  7  65.7061
  8  7.63079
  9  6.32469
  10  32.3348
  11  1.56518e-06
  12  3.25085e-05
  13  6.90972
  14  2.60586e-06
  15  31.6765
  16  8.71911e-06
  17  1.11483e-05
  18  0.000214382
  19  7.65378e-07
  20  0.00013628
  21  7.53654e-06
  22  1.60976e-06
  23  4.07039e-06
  24  2.26904
  25  0.23726
  26  0.105437
Done.

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

Extracting fit parameters...

4FGL J0654.3+5042
   Spectrum: LogParabola
250         norm:  1.925e+01  7.631e+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:  1.097e+00  1.054e-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:  7.654e-01  2.373e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.33
Ra Dec: 103.596 50.703
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 1.31e-07 +/- 5.20e-08
Energy Flux (Fixed Index): 6.11e-05 +/- 2.42e-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) = 7713.56333803
delta logL = 0.00387651911933

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7713.56232877
delta logL = 0.00488577935812

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7713.562     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      241 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.937        8.3276        .92037E-04    .57487E-03
   2  alpha         2.1669        .40255        .10291E-01    .54172E-04
   3  Normalizat    .76144        .22900        .42469E-03   -.16463E-04
   4  Prefactor     1.0980        .10482        .16637E-03   -.59110E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 18.9373
  alpha      = 2.16686
  Normalizat = 0.761436
  Prefactor  = 1.09801
 **********
 **   18 **HESSE 
 **********

 FCN=   7713.562     FROM HESSE     STATUS=OK            25 CALLS      266 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.937        8.1868        .36815E-05   -1.4837    
   2  alpha         2.1669        .39553        .41164E-03   -.13365    
   3  Normalizat    .76144        .22899        .16988E-04   -1.0152    
   4  Prefactor     1.0980        .10483        .66546E-05   -.89530    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09878e-10
Minuit parameter uncertainties:
  1  8.1873
  2  0.397226
  3  0.229282
  4  0.104848
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/945617': 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) = 7713.56232877
delta logL = 0.00488578070053

Extracting fit parameters...

4FGL J0654.3+5042
   Spectrum: LogParabola
250         norm:  1.894e+01  8.187e+00  1.000e-04  1.000e+04 ( 1.000e-12)
251        alpha:  2.167e+00  3.972e-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:  1.098e+00  1.048e-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:  7.614e-01  2.293e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.33
Ra Dec: 103.596 50.703
Photon Index (Free Index): 2.17 +/- 0.40
Photon Flux (Free Index): 1.35e-07 +/- 6.67e-08
Energy Flux (Free Index): 5.95e-05 +/- 2.85e-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/945617/cmap_HighResolution_241142401_241401601_4FGL_J0654.3+5042_daily_bin7.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.31e-07', energy_flux2='5.95e-05', photon_flux_error='5.20e-08', dlogl='4.89e-03', energy_flux='6.11e-05', photon_flux2='1.35e-07', job_status='DONE', time_completed='2021-08-26 09:36:50.151020', photon_index_error2='0.40', photon_index2='2.17', ts='16.33', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='2.85e-05', EG='0.77', time_epoch_completed='1629995810.15', return_code='0', job_id='945617', GAL2='1.10', EG2='0.76', return_code2='0', energy_flux_error='2.42e-05', photon_flux_error2='6.67e-08', ts2='16.33', photon_index='2.13' WHERE bin_id='7' AND source_name='4FGL J0654.3+5042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 09:36:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 945617: <4FGL_J0654.3+5042_daily_bin7> in cluster <slac> Done

Job <4FGL_J0654.3+5042_daily_bin7> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Aug 26 09:20:23 2021
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 09:20:24 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:20:24 2021
Terminated at Thu Aug 26 09:36:51 2021
Results reported at Thu Aug 26 09:36:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0654.3+5042_daily_bin7 103.596 50.7027 241142401 241401601 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 :                                   901.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             338.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   986 sec.
    Turnaround time :                            988 sec.

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

