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


Performing analysis on: 4FGL_J0654.3+5042_daily_bin1564
RA = 103.596, Dec = 50.7027
tmin = 644716801, tmax = 644976001
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='955022', job_status='RUN', time_executed='2021-08-26 09:55:14.457526', time_epoch_executed='1629996914.46' WHERE source_name='4FGL J0654.3+5042' and cadence='daily' and bin_id='1564'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/955022

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/955022/ft1_4FGL_J0654.3+5042_daily_bin1564.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/955022/ft2_4FGL_J0654.3+5042_daily_bin1564.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/955022/ft1_4FGL_J0654.3+5042_daily_bin1564.fits outfile=/scratch/kocevski/955022/ft1_filteredMKT_4FGL_J0654.3+5042_daily_bin1564.fits ra=103.596 dec=50.7027 rad=12.0 tmin=644716801.0 tmax=644976001.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.43
user 2.65
sys 1.75

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/955022/ft2_4FGL_J0654.3+5042_daily_bin1564.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/955022/ft1_filteredMKT_4FGL_J0654.3+5042_daily_bin1564.fits evtable="EVENTS" outfile="/scratch/kocevski/955022/ft1_filtered_4FGL_J0654.3+5042_daily_bin1564.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 2.02
user 0.31
sys 1.68

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/955022/ft1_filtered_4FGL_J0654.3+5042_daily_bin1564.fits" evtable="EVENTS" scfile=/scratch/kocevski/955022/ft2_4FGL_J0654.3+5042_daily_bin1564.fits sctable="SC_DATA" outfile=/scratch/kocevski/955022/ltcube_644716801_644976001_4FGL_J0654.3+5042_daily_bin1564.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/955022/ft2_4FGL_J0654.3+5042_daily_bin1564.fits
.....................!
real 13.61
user 11.52
sys 2.05

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/955022/ft1_filtered_4FGL_J0654.3+5042_daily_bin1564.fits evtable="EVENTS" scfile=/scratch/kocevski/955022/ft2_4FGL_J0654.3+5042_daily_bin1564.fits sctable="SC_DATA" expcube=/scratch/kocevski/955022/ltcube_644716801_644976001_4FGL_J0654.3+5042_daily_bin1564.fits outfile=/scratch/kocevski/955022/expmap_644716801_644976001_4FGL_J0654.3+5042_daily_bin1564.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/955022/ltcube_644716801_644976001_4FGL_J0654.3+5042_daily_bin1564.fits
.....................!
real 193.23
user 184.31
sys 8.11

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/955022/ft1_filtered_4FGL_J0654.3+5042_daily_bin1564.fits scfile=/scratch/kocevski/955022/ft2_4FGL_J0654.3+5042_daily_bin1564.fits outfile=/scratch/kocevski/955022/cmap_644716801_644976001_4FGL_J0654.3+5042_daily_bin1564.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 2.02
user 0.37
sys 1.64

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/955022/ft1_filtered_4FGL_J0654.3+5042_daily_bin1564.fits scfile=/scratch/kocevski/955022/ft2_4FGL_J0654.3+5042_daily_bin1564.fits outfile=/scratch/kocevski/955022/cmap_HighResolution_644716801_644976001_4FGL_J0654.3+5042_daily_bin1564.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 2.03
user 0.36
sys 1.65

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     2 'norm      '    .11252E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10211E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    278.13       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11280E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .24508E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .36003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.7767       1.0000         .10000E-03   10000.    
     9 'norm      '    .10501E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    53.887       1.0000         .10000E-03   10000.    
    11 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.020       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10626E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .89621       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .94298       1.0000         .10000E-03   10000.    
    16 'norm      '    4.9254       1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.567       1.0000         .10000E-03   10000.    
    18 'Prefactor '    57.200       1.0000         .10000E-03   10000.    
    19 'norm      '    .97322       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.5142       1.0000         .10000E-03   10000.    
    23 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    5.3716       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .26462       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1787       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=   3039.676     FROM MIGRAD    STATUS=CONVERGED    609 CALLS     3608 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        2099.8        .24776E-04** at limit **
   2  norm          .10000E-03    23.311       -.69327E-06** at limit **
   3  norm          .10000E-03    9.3905       -.33637E-06** at limit **
   4  Prefactor     278.46        273.78        .68438E-05    .14758E-04
   5  Prefactor     .10000E-03    19.739        .79718E-06** at limit **
   6  Prefactor     .10000E-03    113.17        .24910E-05** at limit **
   7  Prefactor     .10008E-03    948.66       -.46519E-07** at limit **
   8  norm          6.7758        7.8838        .34368E-06   -.34991E-03
   9  norm          .10000E-03    9.3517        .77225E-06** at limit **
  10  Prefactor     53.926        60.892        .10610E-05   -.63698E-04
  11  norm          .10000E-03    4.6775       -.41074E-06** at limit **
  12  Prefactor     13.017        14.711       -.32270E-06   -.12699E-04
  13  Prefactor     .10000E-03    14.430       -.14042E-05** at limit **
  14  Prefactor     .86364        29.626        .30376E-05   -.38800E-03
  15  Prefactor     .92607        18.790       -.41057E-06   -.11329E-03
  16  norm          4.9244        8.6120        .23812E-05   -.57002E-03
  17  Prefactor     20.584        23.965       -.14802E-05   -.48371E-04
  18  Prefactor     57.192        46.403       -.40902E-05   -.10324E-03
  19  norm          .97321        1.0062       -.34542E-06   -.86392E-03
  20  Prefactor     .10000E-03    6.4171       -.24440E-06** at limit **
  21  Prefactor     .10000E-03    35.380       -.15807E-05** at limit **
  22  norm          1.5141        1.7802       -.54258E-07   -.18583E-03
  23  norm          .10000E-03    2.3872       -.17623E-06** at limit **
  24  norm          5.3714        2.4617       -.89590E-07   -.19604E-03
  25  Normalizat    .26447        .34795        .26007E-04    .54509E-04
  26  Prefactor     1.1788        .19927       -.84332E-05   -.92177E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 278.464
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100084
  norm       = 6.77575
  norm       = 0.0001
  Prefactor  = 53.9257
  norm       = 0.0001
  Prefactor  = 13.017
  Prefactor  = 0.0001
  Prefactor  = 0.863635
  Prefactor  = 0.926065
  norm       = 4.92438
  Prefactor  = 20.5843
  Prefactor  = 57.1924
  norm       = 0.973211
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.51408
  norm       = 0.0001
  norm       = 5.3714
  Normalizat = 0.264467
  Prefactor  = 1.17883
 **********
 **   18 **HESSE 
 **********

 FCN=   3039.676     FROM HESSE     STATUS=OK           462 CALLS     4070 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        2102.8        .21037E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    23.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    9.3946        .16502E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     278.46        272.70        .12163E-03   -1.2355    
   5  Prefactor     .10000E-03    19.761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    112.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10008E-03    966.91        .21311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.7758        7.8595        .77066E-03   -1.5187    
   9  norm          .10000E-03    9.4633        .16402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     53.926        60.176        .54640E-04   -1.4238    
  11  norm          .10000E-03    4.7074        .11636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.017        14.735        .11101E-03   -1.4986    
  13  Prefactor     .10000E-03    15.023        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .86364        19.931        .16603       -1.5522    
  15  Prefactor     .92607        106.67        .44512E-02   -1.5516    
  16  norm          4.9244        8.3992        .90614E-03   -1.5264    
  17  Prefactor     20.584        23.801        .88318E-04   -1.4800    
  18  Prefactor     57.192        46.490        .53043E-04   -1.4194    
  19  norm          .97321        .97153        .51400E-04   -1.5511    
  20  Prefactor     .10000E-03    6.4378        .13632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    36.312        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.5141        1.7567        .77374E-04   -1.5462    
  23  norm          .10000E-03    2.4014        .83123E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          5.3714        2.4572        .56539E-04   -1.5244    
  25  Normalizat    .26447        .33057        .54072E-03   -1.2502    
  26  Prefactor     1.1788        .19746        .16835E-03   -.86985    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.4574e-09
Minuit parameter uncertainties:
  1  0.00684037
  2  2.89595e-05
  3  4.70311e-06
  4  273.963
  5  1.48815e-05
  6  0.000840336
  7  0.01837
  8  7.86069
  9  9.93452e-05
  10  60.2444
  11  1.25726e-07
  12  14.7394
  13  1.70775e-05
  14  8.30035
  15  19.913
  16  8.4012
  17  23.8116
  18  46.52
  19  0.97155
  20  2.05078e-05
  21  1.52999e-05
  22  1.75674
  23  2.48128e-06
  24  2.45721
  25  0.333051
  26  0.197579
Done.

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

Extracting fit parameters...

4FGL J0654.3+5042
   Spectrum: LogParabola
250         norm:  6.776e+00  7.861e+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.179e+00  1.976e-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:  2.645e-01  3.331e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.43
Ra Dec: 103.596 50.703
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 4.61e-08 +/- 5.35e-08
Energy Flux (Fixed Index): 2.15e-05 +/- 2.50e-05

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

Saving results to:
/scratch/kocevski/955022/likelihoodResults_644716801_644976001_4FGL_J0654.3+5042_daily_bin1564.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) = 3039.56801808
delta logL = 0.107637053583

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3039.56579996
delta logL = 0.109855169787

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.1583       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6855       1.0000          .0000       5.0000    
     3 'Normalizat'    .27579       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1751       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=   3039.566     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      199 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.1583        13.779        .37482E-02    .12563E-02
   2  alpha         1.6854        1.1137        .44251       -.96995E-05
   3  Normalizat    .27591        .34260        .11984        .35348E-04
   4  Prefactor     1.1751        .21861        .35248E-01   -.23187E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.15834
  alpha      = 1.68535
  Normalizat = 0.275906
  Prefactor  = 1.17511
 **********
 **   18 **HESSE 
 **********

 FCN=   3039.566     FROM HESSE     STATUS=OK            31 CALLS      230 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.1583        8.5294        .14993E-03   -1.5173    
   2  alpha         1.6854        .86285        .15762E-01   -.33192    
   3  Normalizat    .27591        .30556        .52986E-03   -1.2430    
   4  Prefactor     1.1751        .19591        .16856E-03   -.87101    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54991e-09
Minuit parameter uncertainties:
  1  8.53083
  2  0.883261
  3  0.307427
  4  0.196033
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/955022': 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) = 3039.56579968
delta logL = 0.109855456437

Extracting fit parameters...

4FGL J0654.3+5042
   Spectrum: LogParabola
250         norm:  7.158e+00  8.531e+00  1.000e-04  1.000e+04 ( 1.000e-12)
251        alpha:  1.685e+00  8.833e-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.175e+00  1.960e-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:  2.759e-01  3.074e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.65
Ra Dec: 103.596 50.703
Photon Index (Free Index): 1.69 +/- 0.88
Photon Flux (Free Index): 3.15e-08 +/- 4.67e-08
Energy Flux (Free Index): 3.50e-05 +/- 5.82e-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/955022/cmap_HighResolution_644716801_644976001_4FGL_J0654.3+5042_daily_bin1564.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.10e-05', comment='SUCCESS', photon_flux='4.61e-08', energy_flux2='3.50e-05', photon_flux_error='5.35e-08', dlogl='1.10e-01', energy_flux='2.15e-05', photon_flux2='3.15e-08', job_status='DONE', time_completed='2021-08-26 10:05:13.839819', photon_index_error2='0.88', photon_index2='1.69', ts='1.43', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', photon_flux_upper_limit='1.95e-07', energy_flux_error2='5.82e-05', EG='0.26', time_epoch_completed='1629997513.84', return_code='0', job_id='955022', GAL2='1.18', EG2='0.28', return_code2='0', energy_flux_error='2.50e-05', photon_flux_error2='4.67e-08', ts2='1.65', photon_index='2.13' WHERE bin_id='1564' AND source_name='4FGL J0654.3+5042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 10:05:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 955022: <4FGL_J0654.3+5042_daily_bin1564> in cluster <slac> Done

Job <4FGL_J0654.3+5042_daily_bin1564> 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) <bullet0207>, 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:14 2021
Results reported at Thu Aug 26 10:05:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0654.3+5042_daily_bin1564 103.596 50.7027 644716801 644976001 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 :                                   617.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             259.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   857 sec.
    Turnaround time :                            860 sec.

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

