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


Performing analysis on: 4FGL_J0654.3+5042_daily_bin1283
RA = 103.596, Dec = 50.7027
tmin = 571881601, tmax = 572140801
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='953347', job_status='RUN', time_executed='2021-08-26 09:48:32.132764', time_epoch_executed='1629996512.13' WHERE source_name='4FGL J0654.3+5042' and cadence='daily' and bin_id='1283'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/953347

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/953347/ft1_4FGL_J0654.3+5042_daily_bin1283.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/953347/ft2_4FGL_J0654.3+5042_daily_bin1283.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/953347/ft1_4FGL_J0654.3+5042_daily_bin1283.fits outfile=/scratch/kocevski/953347/ft1_filteredMKT_4FGL_J0654.3+5042_daily_bin1283.fits ra=103.596 dec=50.7027 rad=12.0 tmin=571881601.0 tmax=572140801.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 2.77
user 2.34
sys 0.39

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/953347/ft2_4FGL_J0654.3+5042_daily_bin1283.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/953347/ft1_filteredMKT_4FGL_J0654.3+5042_daily_bin1283.fits evtable="EVENTS" outfile="/scratch/kocevski/953347/ft1_filtered_4FGL_J0654.3+5042_daily_bin1283.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.71
user 0.32
sys 0.36

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/953347/ft1_filtered_4FGL_J0654.3+5042_daily_bin1283.fits" evtable="EVENTS" scfile=/scratch/kocevski/953347/ft2_4FGL_J0654.3+5042_daily_bin1283.fits sctable="SC_DATA" outfile=/scratch/kocevski/953347/ltcube_571881601_572140801_4FGL_J0654.3+5042_daily_bin1283.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/953347/ft2_4FGL_J0654.3+5042_daily_bin1283.fits
.....................!
real 12.66
user 12.08
sys 0.53

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/953347/ft1_filtered_4FGL_J0654.3+5042_daily_bin1283.fits evtable="EVENTS" scfile=/scratch/kocevski/953347/ft2_4FGL_J0654.3+5042_daily_bin1283.fits sctable="SC_DATA" expcube=/scratch/kocevski/953347/ltcube_571881601_572140801_4FGL_J0654.3+5042_daily_bin1283.fits outfile=/scratch/kocevski/953347/expmap_571881601_572140801_4FGL_J0654.3+5042_daily_bin1283.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/953347/ltcube_571881601_572140801_4FGL_J0654.3+5042_daily_bin1283.fits
.....................!
real 192.17
user 186.68
sys 5.07

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/953347/ft1_filtered_4FGL_J0654.3+5042_daily_bin1283.fits scfile=/scratch/kocevski/953347/ft2_4FGL_J0654.3+5042_daily_bin1283.fits outfile=/scratch/kocevski/953347/cmap_571881601_572140801_4FGL_J0654.3+5042_daily_bin1283.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 0.76
user 0.36
sys 0.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/953347/ft1_filtered_4FGL_J0654.3+5042_daily_bin1283.fits scfile=/scratch/kocevski/953347/ft2_4FGL_J0654.3+5042_daily_bin1283.fits outfile=/scratch/kocevski/953347/cmap_HighResolution_571881601_572140801_4FGL_J0654.3+5042_daily_bin1283.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 0.74
user 0.38
sys 0.35

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11658E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    10.470       1.0000         .10000E-03   10000.    
     3 'norm      '    5.9886       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10398E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11193E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     8 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10229E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10986E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    16 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    18 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    19 'norm      '    10000.       1.0000         .10000E-03   10000.    
    20 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .19137E-03   1.0000         .10000E-03   10000.    
    22 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    23 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    24 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    .64984       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=   1005.265     FROM MIGRAD    STATUS=CONVERGED    566 CALLS     4152 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    79.946       -.47510E-04** at limit **
   2  norm          10.471        8.2393        .27038E-05    .15429E-03
   3  norm          5.9851        6.3125        .21721E-06    .10293E-03
   4  Prefactor     .10000E-03    40.283        .89188E-05** at limit **
   5  Prefactor     .10000E-03    32.380       -.26156E-04** at limit **
   6  Prefactor     .10000E-03    213.22        .15762E-03** at limit **
   7  Prefactor     10000.        1866.4        .77501E-03** at limit **
   8  norm          .10000E-03    13.844        .93385E-07** at limit **
   9  norm          .10000E-03    10.460       -.12024E-06** at limit **
  10  Prefactor     .10000E-03    42.842        .12128E-05** at limit **
  11  norm          .10000E-03    28.994        .91439E-05** at limit **
  12  Prefactor    10000.0        7040.0        .34800E-02** at limit **
  13  Prefactor     .10000E-03    39.604        .94038E-05** at limit **
  14  Prefactor     .10000E-03    218.51        .14525E-03** at limit **
  15  Prefactor     10000.        2217.2        .15281E-02** at limit **
  16  norm          .10000E-03    39.328        .93053E-05** at limit **
  17  Prefactor    10000.0        7331.4        .23425E-02** at limit **
  18  Prefactor     10000.        9911.6        .27409E-02** at limit **
  19  norm          10000.        399.50        .33889E-03** at limit **
  20  Prefactor     10000.        7411.4        .45239E-03** at limit **
  21  Prefactor     .10000E-03    9655.3       -.19239E-02** at limit **
  22  norm          10000.        6575.2        .15712E-02** at limit **
  23  norm          10000.        8739.5        .74274E-03** at limit **
  24  norm          10000.        7746.9        .15700E-02** at limit **
  25  Normalizat    .10000E-01    .23039       -.12705E-05** at limit **
  26  Prefactor     .64986        .11227       -.78415E-06    .35240E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 10.4706
  norm       = 5.98513
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  norm       = 0.0001
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 0.0001
  norm       = 10000
  norm       = 10000
  norm       = 10000
  Normalizat = 0.01
  Prefactor  = 0.649855
 **********
 **   18 **HESSE 
 **********

 FCN=   1005.265     FROM HESSE     STATUS=OK           434 CALLS     4586 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    80.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10.471        8.2771        .74648E-04   -1.5061    
   3  norm          5.9851        6.3184        .79176E-04   -1.5219    
   4  Prefactor     .10000E-03    40.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    32.739        .17624E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    213.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10000.        1866.4        .19845E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    13.844        .11526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    10.469        .10018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    42.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    28.996        .16684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor    10000.0        7040.0        .18422E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    39.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    218.51        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10000.        2217.2        .18232E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    39.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor    10000.0        7331.4        .18211E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10000.        9911.6        .18241E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          10000.        399.50        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10000.        7411.4        .20943E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9655.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          10000.        6575.2        .18385E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          10000.        8739.5        .20393E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          10000.        7746.9        .18632E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .10000E-01    .24270        .89220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .64986        .10757        .12606E-03   -1.0553    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22339e-10
Minuit parameter uncertainties:
  1  5.78564e-05
  2  8.27805
  3  6.31914
  4  6.12286e-06
  5  0.000132683
  6  1.02225e-06
  7  1.16241e-05
  8  2.11043e-08
  9  2.89134e-06
  10  5.29625e-06
  11  8.47561e-07
  12  0.000241589
  13  1.24334e-06
  14  1.83712e-06
  15  5.13019e-05
  16  5.51451e-07
  17  0.0001413
  18  0.000272948
  19  5.47953e-06
  20  1.90006e-05
  21  2.42457e-05
  22  5.84139e-05
  23  6.28132e-05
  24  9.12001e-05
  25  1.52053e-06
  26  0.107608
Done.

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

Extracting fit parameters...

4FGL J0654.3+5042
   Spectrum: LogParabola
250         norm:  1.000e-04  2.110e-08  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:  6.499e-01  1.076e-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.000e-02  1.521e-06  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/953347/likelihoodResults_571881601_572140801_4FGL_J0654.3+5042_daily_bin1283.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): 102
logL (Free Index) = 1005.2652477
delta logL = -0.00034295171929

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1005.26490479
delta logL = -3.36623315889e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1140       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64982       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=   1005.265     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      247 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    772.27        .11614E-01** at limit **
   2  alpha         1.6285        4.1276        .16716       -.58321E-08
   3  Normalizat    .10000E-01    .26592E-01    .89220E-02** at limit **
   4  Prefactor     .64985        .33092E-01    .12606E-03    .16515E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.62852
  Normalizat = 0.01
  Prefactor  = 0.649854
 **********
 **   18 **HESSE 
 **********

 FCN=   1005.265     FROM HESSE     STATUS=OK            23 CALLS      270 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    16.154        .12442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6285        3.2482        .66862E-02   -.35607    
   3  Normalizat    .10000E-01    .24272        .17844E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .64985        .10030        .25213E-04   -1.0553    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.24721e-11
Minuit parameter uncertainties:
  1  1.08146e-05
  2  474.737
  3  2.94171e-06
  4  0.100328
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/953347': 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) = 1005.26490424
delta logL = 5.1188044381e-07

Extracting fit parameters...

4FGL J0654.3+5042
   Spectrum: LogParabola
250         norm:  1.000e-04  1.081e-05  1.000e-04  1.000e+04 ( 1.000e-12)
251        alpha:  1.629e+00  4.747e+02  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:  6.499e-01  1.003e-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.000e-02  2.942e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 103.596 50.703

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/953347/cmap_HighResolution_571881601_572140801_4FGL_J0654.3+5042_daily_bin1283.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.62e-04', job_status='DONE', photon_flux_upper_limit='5.61e-07', time_completed='2021-08-26 09:55:33.869891', job_id='953347', GAL2='0.65', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629996933.87', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='5.12e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1283' AND source_name='4FGL J0654.3+5042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 09:55:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 953347: <4FGL_J0654.3+5042_daily_bin1283> in cluster <slac> Done

Job <4FGL_J0654.3+5042_daily_bin1283> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Aug 26 09:45:54 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 09:45: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:45:57 2021
Terminated at Thu Aug 26 09:55:34 2021
Results reported at Thu Aug 26 09:55:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0654.3+5042_daily_bin1283 103.596 50.7027 571881601 572140801 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 :                                   422.49 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   577 sec.
    Turnaround time :                            580 sec.

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

