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


Performing analysis on: 4FGL_J0654.3+5042_daily_bin1568
RA = 103.596, Dec = 50.7027
tmin = 645753601, tmax = 646012801
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='955026', job_status='RUN', time_executed='2021-08-26 09:53:27.633362', time_epoch_executed='1629996807.63' WHERE source_name='4FGL J0654.3+5042' and cadence='daily' and bin_id='1568'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/955026

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/955026/ft1_4FGL_J0654.3+5042_daily_bin1568.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/955026/ft2_4FGL_J0654.3+5042_daily_bin1568.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/955026/ft1_4FGL_J0654.3+5042_daily_bin1568.fits outfile=/scratch/kocevski/955026/ft1_filteredMKT_4FGL_J0654.3+5042_daily_bin1568.fits ra=103.596 dec=50.7027 rad=12.0 tmin=645753601.0 tmax=646012801.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 11.34
user 2.11
sys 9.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/955026/ft2_4FGL_J0654.3+5042_daily_bin1568.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/955026/ft1_filteredMKT_4FGL_J0654.3+5042_daily_bin1568.fits evtable="EVENTS" outfile="/scratch/kocevski/955026/ft1_filtered_4FGL_J0654.3+5042_daily_bin1568.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 9.82
user 0.33
sys 9.43

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/955026/ft1_filtered_4FGL_J0654.3+5042_daily_bin1568.fits" evtable="EVENTS" scfile=/scratch/kocevski/955026/ft2_4FGL_J0654.3+5042_daily_bin1568.fits sctable="SC_DATA" outfile=/scratch/kocevski/955026/ltcube_645753601_646012801_4FGL_J0654.3+5042_daily_bin1568.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/955026/ft2_4FGL_J0654.3+5042_daily_bin1568.fits
.....................!
real 22.59
user 11.84
sys 10.67

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/955026/ft1_filtered_4FGL_J0654.3+5042_daily_bin1568.fits evtable="EVENTS" scfile=/scratch/kocevski/955026/ft2_4FGL_J0654.3+5042_daily_bin1568.fits sctable="SC_DATA" expcube=/scratch/kocevski/955026/ltcube_645753601_646012801_4FGL_J0654.3+5042_daily_bin1568.fits outfile=/scratch/kocevski/955026/expmap_645753601_646012801_4FGL_J0654.3+5042_daily_bin1568.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/955026/ltcube_645753601_646012801_4FGL_J0654.3+5042_daily_bin1568.fits
.....................!
real 205.26
user 186.89
sys 15.80

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/955026/ft1_filtered_4FGL_J0654.3+5042_daily_bin1568.fits scfile=/scratch/kocevski/955026/ft2_4FGL_J0654.3+5042_daily_bin1568.fits outfile=/scratch/kocevski/955026/cmap_645753601_646012801_4FGL_J0654.3+5042_daily_bin1568.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 9.47
user 0.37
sys 8.96

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/955026/ft1_filtered_4FGL_J0654.3+5042_daily_bin1568.fits scfile=/scratch/kocevski/955026/ft2_4FGL_J0654.3+5042_daily_bin1568.fits outfile=/scratch/kocevski/955026/cmap_HighResolution_645753601_646012801_4FGL_J0654.3+5042_daily_bin1568.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 9.49
user 0.39
sys 8.96

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    24.673       1.0000         .10000E-03   10000.    
     4 'Prefactor '    33.679       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    65.878       1.0000         .10000E-03   10000.    
     7 'Prefactor '    42.272       1.0000         .10000E-03   10000.    
     8 'norm      '    10.568       1.0000         .10000E-03   10000.    
     9 'norm      '    1.5632       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13106E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .62196       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.944       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.3837       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.4306       1.0000         .10000E-03   10000.    
    19 'norm      '    2.1480       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    23.068       1.0000         .10000E-03   10000.    
    22 'norm      '    .88551       1.0000         .10000E-03   10000.    
    23 'norm      '    .15227E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.8125       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2386       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0211       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=   3628.580     FROM MIGRAD    STATUS=CONVERGED    614 CALLS     3160 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    138.85       -.58552E-06** at limit **
   2  norm          .10000E-03    4.6700        .13858E-07** at limit **
   3  norm          24.677        33.793        .36095E-07    .29661E-04
   4  Prefactor     33.682        23.827        .94166E-07   -.22725E-04
   5  Prefactor     .10000E-03    10.122       -.30608E-07** at limit **
   6  Prefactor     65.894        62.483       -.39509E-06    .15377E-03
   7  Prefactor     42.272        45.553       -.52533E-07    .77053E-05
   8  norm          10.564        11.490        .67378E-06    .58996E-03
   9  norm          1.5641        4.7634        .45235E-05   -.16735E-03
  10  Prefactor     .10001E-03    146.76        .67933E-06** at limit **
  11  norm          .63181        11.744        .12181E-05   -.31830E-03
  12  Prefactor     .10000E-03    8.8222        .41597E-07** at limit **
  13  Prefactor     .10000E-03    15.816       -.87066E-06** at limit **
  14  Prefactor     18.905        42.099        .56892E-05    .73454E-04
  15  Prefactor     .10000E-03    15.223       -.26906E-07** at limit **
  16  norm          8.3817        14.041        .22320E-06    .13764E-03
  17  Prefactor     .10000E-03    29.684        .40568E-07** at limit **
  18  Prefactor     2.4213        231.57       -.28683E-05   -.22045E-04
  19  norm          2.1474        1.3491       -.48286E-07   -.19516E-04
  20  Prefactor     .10000E-03    10.597       -.94520E-07** at limit **
  21  Prefactor     23.065        32.651       -.27011E-06   -.14782E-04
  22  norm          .88575        4.6930        .36901E-07   -.10985E-03
  23  norm          .10000E-03    6.2146        .54624E-06** at limit **
  24  norm          1.8116        1.7964       -.20944E-07   -.28269E-04
  25  Normalizat    1.2388        .35350        .29484E-05    .25500E-03
  26  Prefactor     1.0210        .17424       -.14531E-05    .35128E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100008
  norm       = 0.0001
  norm       = 24.6769
  Prefactor  = 33.6816
  Prefactor  = 0.0001
  Prefactor  = 65.8938
  Prefactor  = 42.2721
  norm       = 10.5642
  norm       = 1.56408
  Prefactor  = 0.000100007
  norm       = 0.631809
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 18.9053
  Prefactor  = 0.0001
  norm       = 8.38167
  Prefactor  = 0.0001
  Prefactor  = 2.42131
  norm       = 2.14738
  Prefactor  = 0.0001
  Prefactor  = 23.0646
  norm       = 0.885752
  norm       = 0.0001
  norm       = 1.81162
  Normalizat = 1.23877
  Prefactor  = 1.02099
 **********
 **   18 **HESSE 
 **********

 FCN=   3628.580     FROM HESSE     STATUS=OK           458 CALLS     3618 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    138.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.6824        .12713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          24.677        33.808        .80645E-04   -1.4714    
   4  Prefactor     33.682        23.826        .69049E-04   -1.4547    
   5  Prefactor     .10000E-03    10.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     65.894        62.516        .49447E-04   -1.4083    
   7  Prefactor     42.272        45.560        .61657E-04   -1.4407    
   8  norm          10.564        11.736        .12325E-03   -1.5058    
   9  norm          1.5641        4.8486        .11428E-02   -1.5458    
  10  Prefactor     .10001E-03    147.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .63181        56.955        .31646E-02   -1.5549    
  12  Prefactor     .10000E-03    8.8261        .17476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    16.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.905        44.524        .92020E-04   -1.4838    
  15  Prefactor     .10000E-03    15.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.3817        14.030        .13845E-03   -1.5129    
  17  Prefactor     .10000E-03    29.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.4213        230.85        .26248E-03   -1.5397    
  19  norm          2.1474        1.3482        .52048E-04   -1.5415    
  20  Prefactor     .10000E-03    10.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     23.065        32.711        .83398E-04   -1.4747    
  22  norm          .88575        4.7176        .24203E-03   -1.5520    
  23  norm          .10000E-03    15.509        .28596E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.8116        1.7976        .77759E-04   -1.5439    
  25  Normalizat    1.2388        .39755        .35433E-03   -.85413    
  26  Prefactor     1.0210        .19612        .20189E-03   -.92033    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.12567e-09
Minuit parameter uncertainties:
  1  0.00213799
  2  6.84068e-07
  3  33.8343
  4  23.8331
  5  5.20367e-05
  6  62.5788
  7  45.5976
  8  11.7381
  9  4.84982
  10  0.00208501
  11  12.0083
  12  9.63829e-06
  13  0.000357142
  14  44.6027
  15  0.000103183
  16  14.0354
  17  2.0865e-05
  18  47.4734
  19  1.34825
  20  0.000102834
  21  32.7364
  22  4.0886
  23  0.000144453
  24  1.79761
  25  0.398526
  26  0.196254
Done.

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

Extracting fit parameters...

4FGL J0654.3+5042
   Spectrum: LogParabola
250         norm:  1.056e+01  1.174e+01  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.021e+00  1.963e-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:  1.239e+00  3.985e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.50
Ra Dec: 103.596 50.703
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 7.19e-08 +/- 7.99e-08
Energy Flux (Fixed Index): 3.36e-05 +/- 3.73e-05

TS (Fixed Index): 1.50
Ra Dec: 103.596 50.703
Photon Flux Upper Limit: 2.45e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.14e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/955026/likelihoodResults_645753601_646012801_4FGL_J0654.3+5042_daily_bin1568.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) = 3628.45564139
delta logL = 0.124036558604

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3628.44653032
delta logL = 0.13314762854

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.0378       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6729       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2580       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0206       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3628.447     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      202 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.0378        10.713        .33330E-02    .12244E-02
   2  alpha         1.6729        .63813        .41069        .17893E-04
   3  Normalizat    1.2580        .32241        .79539E-01    .18618E-04
   4  Prefactor     1.0206        .16966        .42079E-01   -.19794E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 9.03776
  alpha      = 1.67289
  Normalizat = 1.258
  Prefactor  = 1.02059
 **********
 **   18 **HESSE 
 **********

 FCN=   3628.447     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.0378        12.682        .13332E-03   -1.5107    
   2  alpha         1.6729        .90758        .14846E-01   -.33720    
   3  Normalizat    1.2580        .36352        .35208E-03   -.84829    
   4  Prefactor     1.0206        .19227        .20194E-03   -.92046    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.57754e-09
Minuit parameter uncertainties:
  1  12.6862
  2  0.931597
  3  0.364262
  4  0.192397
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/955026': 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) = 3628.44653027
delta logL = 0.133147677425

Extracting fit parameters...

4FGL J0654.3+5042
   Spectrum: LogParabola
250         norm:  9.038e+00  1.269e+01  1.000e-04  1.000e+04 ( 1.000e-12)
251        alpha:  1.673e+00  9.316e-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.021e+00  1.924e-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:  1.258e+00  3.643e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.76
Ra Dec: 103.596 50.703
Photon Index (Free Index): 1.67 +/- 0.93
Photon Flux (Free Index): 3.94e-08 +/- 7.49e-08
Energy Flux (Free Index): 4.51e-05 +/- 5.88e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/955026/cmap_HighResolution_645753601_646012801_4FGL_J0654.3+5042_daily_bin1568.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-04', comment='SUCCESS', photon_flux='7.19e-08', energy_flux2='4.51e-05', photon_flux_error='7.99e-08', dlogl='1.33e-01', energy_flux='3.36e-05', photon_flux2='3.94e-08', job_status='DONE', time_completed='2021-08-26 10:05:46.346533', photon_index_error2='0.93', photon_index2='1.67', ts='1.50', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='2.45e-07', energy_flux_error2='5.88e-05', EG='1.24', time_epoch_completed='1629997546.35', return_code='0', job_id='955026', GAL2='1.02', EG2='1.26', return_code2='0', energy_flux_error='3.73e-05', photon_flux_error2='7.49e-08', ts2='1.76', photon_index='2.13' WHERE bin_id='1568' AND source_name='4FGL J0654.3+5042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 10:05:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 955026: <4FGL_J0654.3+5042_daily_bin1568> in cluster <slac> Done

Job <4FGL_J0654.3+5042_daily_bin1568> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Thu Aug 26 09:50:54 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 09:50:57 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:50:57 2021
Terminated at Thu Aug 26 10:05:49 2021
Results reported at Thu Aug 26 10:05:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0654.3+5042_daily_bin1568 103.596 50.7027 645753601 646012801 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 :                                   870.14 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             264.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            895 sec.

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

