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


Performing analysis on: 4FGL_J0654.3+5042_daily_bin61
RA = 103.596, Dec = 50.7027
tmin = 255139201, tmax = 255398401
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='945724', job_status='RUN', time_executed='2021-08-26 09:23:55.000262', time_epoch_executed='1629995035.0' WHERE source_name='4FGL J0654.3+5042' and cadence='daily' and bin_id='61'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/945724

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/945724/ft1_4FGL_J0654.3+5042_daily_bin61.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/945724/ft2_4FGL_J0654.3+5042_daily_bin61.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/945724/ft1_4FGL_J0654.3+5042_daily_bin61.fits outfile=/scratch/kocevski/945724/ft1_filteredMKT_4FGL_J0654.3+5042_daily_bin61.fits ra=103.596 dec=50.7027 rad=12.0 tmin=255139201.0 tmax=255398401.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 8.12
user 7.19
sys 0.88

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/945724/ft1_filtered_4FGL_J0654.3+5042_daily_bin61.fits" evtable="EVENTS" scfile=/scratch/kocevski/945724/ft2_4FGL_J0654.3+5042_daily_bin61.fits sctable="SC_DATA" outfile=/scratch/kocevski/945724/ltcube_255139201_255398401_4FGL_J0654.3+5042_daily_bin61.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/945724/ft2_4FGL_J0654.3+5042_daily_bin61.fits
.....................!
real 12.99
user 11.74
sys 1.03

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/945724/ft1_filtered_4FGL_J0654.3+5042_daily_bin61.fits evtable="EVENTS" scfile=/scratch/kocevski/945724/ft2_4FGL_J0654.3+5042_daily_bin61.fits sctable="SC_DATA" expcube=/scratch/kocevski/945724/ltcube_255139201_255398401_4FGL_J0654.3+5042_daily_bin61.fits outfile=/scratch/kocevski/945724/expmap_255139201_255398401_4FGL_J0654.3+5042_daily_bin61.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/945724/ltcube_255139201_255398401_4FGL_J0654.3+5042_daily_bin61.fits
.....................!
real 192.05
user 186.17
sys 5.30

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/945724/ft1_filtered_4FGL_J0654.3+5042_daily_bin61.fits scfile=/scratch/kocevski/945724/ft2_4FGL_J0654.3+5042_daily_bin61.fits outfile=/scratch/kocevski/945724/cmap_255139201_255398401_4FGL_J0654.3+5042_daily_bin61.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 1.22
user 0.37
sys 0.74

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/945724/ft1_filtered_4FGL_J0654.3+5042_daily_bin61.fits scfile=/scratch/kocevski/945724/ft2_4FGL_J0654.3+5042_daily_bin61.fits outfile=/scratch/kocevski/945724/cmap_HighResolution_255139201_255398401_4FGL_J0654.3+5042_daily_bin61.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 1.21
user 0.38
sys 0.75

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.8811       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.5715       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.704       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.968       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.7729       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .41412E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.879       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .28902       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.4742       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .34372E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.4599       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    4.0304       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .61860       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1888       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=   4758.507     FROM MIGRAD    STATUS=CONVERGED    622 CALLS     3100 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    167.59       -.11870E-05** at limit **
   2  norm          1.8820        4.1196        .60400E-06    .38581E-04
   3  norm          .10000E-03    2.8547       -.11081E-07** at limit **
   4  Prefactor     5.5742        18.716        .49753E-06   -.10776E-04
   5  Prefactor     11.704        12.194        .63800E-07   -.71188E-06
   6  Prefactor     .10000E-03    48.287        .10769E-05** at limit **
   7  Prefactor     15.984        56.512        .20373E-05    .79704E-04
   8  norm          .10000E-03    5.9759        .36363E-07** at limit **
   9  norm          4.7730        6.5741        .24750E-07    .28247E-04
  10  Prefactor     .10001E-03    28.816       -.19980E-05** at limit **
  11  norm          .10005E-03    9.0507       -.12094E-05** at limit **
  12  Prefactor     .10000E-03    7.2241        .10431E-07** at limit **
  13  Prefactor     11.877        10.204        .26843E-05    .38501E-03
  14  Prefactor     .10000E-03    25.823        .13055E-05** at limit **
  15  Prefactor     .10000E-03    9.3415       -.31387E-06** at limit **
  16  norm          .10000E-03    11.198       -.92874E-06** at limit **
  17  Prefactor     .10000E-03    10.097        .63041E-06** at limit **
  18  Prefactor     .10000E-03    14.668       -.86615E-07** at limit **
  19  norm          .28944        .76018        .38005E-06    .32782E-03
  20  Prefactor     9.4727        13.386       -.23787E-06   -.10310E-03
  21  Prefactor     .10186E-03    28.334        .54273E-05** at limit **
  22  norm          2.4598        2.9771        .75619E-06   -.13342E-03
  23  norm          .10000E-03    4.4571       -.46425E-07** at limit **
  24  norm          4.0303        3.2223        .18500E-08   -.62784E-04
  25  Normalizat    .61845        .28596       -.11019E-05   -.89693E-04
  26  Prefactor     1.1889        .13084       -.12736E-06   -.39562E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  norm       = 1.88199
  norm       = 0.0001
  Prefactor  = 5.57417
  Prefactor  = 11.7045
  Prefactor  = 0.000100002
  Prefactor  = 15.9841
  norm       = 0.0001
  norm       = 4.773
  Prefactor  = 0.000100009
  norm       = 0.000100053
  Prefactor  = 0.0001
  Prefactor  = 11.8771
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.289442
  Prefactor  = 9.47268
  Prefactor  = 0.000101859
  norm       = 2.45981
  norm       = 0.0001
  norm       = 4.03029
  Normalizat = 0.618451
  Prefactor  = 1.18887
 **********
 **   18 **HESSE 
 **********

 FCN=   4758.507     FROM HESSE     STATUS=OK           460 CALLS     3560 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    168.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.8820        4.1032        .19702E-03   -1.5434    
   3  norm          .10000E-03    2.9101        .11381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.5742        18.705        .17020E-03   -1.5236    
   5  Prefactor     11.704        12.182        .11709E-03   -1.5024    
   6  Prefactor     .10000E-03    48.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.984        56.645        .10023E-03   -1.4908    
   8  norm          .10000E-03    6.0258        .16444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.7730        6.5545        .18416E-03   -1.5271    
  10  Prefactor     .10001E-03    29.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10005E-03    34.012        .38505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.2248        .18109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.877        10.359        .58114E-03   -1.5019    
  14  Prefactor     .10000E-03    26.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.3658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    11.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .28944        .69979        .93731E-03   -1.5600    
  20  Prefactor     9.4727        13.365        .13020E-03   -1.5092    
  21  Prefactor     .10186E-03    139.30        .61726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.4598        2.9423        .62364E-03   -1.5394    
  23  norm          .10000E-03    4.4828        .14208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          4.0303        3.2159        .10732E-03   -1.5306    
  25  Normalizat    .61845        .29515        .44758E-03   -1.0721    
  26  Prefactor     1.1889        .14008        .15869E-03   -.86674    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53338e-08
Minuit parameter uncertainties:
  1  0.00130683
  2  4.10379
  3  3.20131e-09
  4  18.7244
  5  12.185
  6  0.00068534
  7  56.8361
  8  8.78402e-06
  9  6.55548
  10  0.00101874
  11  0.00268442
  12  3.11528e-07
  13  10.3605
  14  0.000641112
  15  9.93942e-05
  16  0.000224079
  17  0.00020214
  18  2.5317e-05
  19  0.699805
  20  13.3695
  21  0.0322552
  22  2.94243
  23  5.99728e-06
  24  3.21601
  25  0.295908
  26  0.140123
Done.

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

Extracting fit parameters...

4FGL J0654.3+5042
   Spectrum: LogParabola
250         norm:  1.000e-04  8.784e-06  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.189e+00  1.401e-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:  6.185e-01  2.959e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/945724/likelihoodResults_255139201_255398401_4FGL_J0654.3+5042_daily_bin61.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) = 4758.50743484
delta logL = -0.000790680740465

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4758.50662301
delta logL = 2.11439801205e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .15704E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.7023       1.0000          .0000       5.0000    
     3 'Normalizat'    .61794       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1891       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=   4758.491     FROM MIGRAD    STATUS=CONVERGED     76 CALLS      267 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .40930        30.670        .30202E-01    .96421E-03
   2  alpha         3.3138        3.6346        .49839        .46340E-04
   3  Normalizat    .60345        .31540E-01    .10214       -.46390E-03
   4  Prefactor     1.1913        .15129E-01    .34894E-01   -.10127E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.409298
  alpha      = 3.31384
  Normalizat = 0.603452
  Prefactor  = 1.1913
 **********
 **   18 **HESSE 
 **********

 FCN=   4758.491     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      300 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .40930        607.11        .17210E-02   -1.5580    
   2  alpha         3.3138        2.8241        .44290E-01    .33158    
   3  Normalizat    .60345        .42342        .45278E-03   -1.0784    
   4  Prefactor     1.1913        .11791        .15855E-03   -.86599    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.48596e-09
Minuit parameter uncertainties:
  1  31.8518
  2  29.0119
  3  0.425719
  4  0.117938
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/945724': 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): 102
logL (Free Index) = 4758.49130268
delta logL = 0.0153414793085

Extracting fit parameters...

4FGL J0654.3+5042
   Spectrum: LogParabola
250         norm:  4.093e-01  3.185e+01  1.000e-04  1.000e+04 ( 1.000e-12)
251        alpha:  3.314e+00  2.901e+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.191e+00  1.179e-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:  6.035e-01  4.257e-01  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/945724/cmap_HighResolution_255139201_255398401_4FGL_J0654.3+5042_daily_bin61.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.44e-05', job_status='DONE', photon_flux_upper_limit='1.17e-07', time_completed='2021-08-26 09:36:04.338004', job_id='945724', GAL2='1.19', fit_tolerance='1e-08', EG2='0.60', EG='0.62', time_epoch_completed='1629995764.34', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='1.53e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='61' AND source_name='4FGL J0654.3+5042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 09:36:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 945724: <4FGL_J0654.3+5042_daily_bin61> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0654.3+5042_daily_bin61 103.596 50.7027 255139201 255398401 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 :                                   730.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             235.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            935 sec.

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

