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


Performing analysis on: 4FGL_J0654.3+5042_daily_bin1085
RA = 103.596, Dec = 50.7027
tmin = 520560001, tmax = 520819201
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='953056', job_status='RUN', time_executed='2021-08-26 09:48:13.375751', time_epoch_executed='1629996493.38' WHERE source_name='4FGL J0654.3+5042' and cadence='daily' and bin_id='1085'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/953056

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/953056/ft1_4FGL_J0654.3+5042_daily_bin1085.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/953056/ft2_4FGL_J0654.3+5042_daily_bin1085.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/953056/ft1_4FGL_J0654.3+5042_daily_bin1085.fits outfile=/scratch/kocevski/953056/ft1_filteredMKT_4FGL_J0654.3+5042_daily_bin1085.fits ra=103.596 dec=50.7027 rad=12.0 tmin=520560001.0 tmax=520819201.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.02
user 3.79
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/953056/ft2_4FGL_J0654.3+5042_daily_bin1085.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/953056/ft1_filteredMKT_4FGL_J0654.3+5042_daily_bin1085.fits evtable="EVENTS" outfile="/scratch/kocevski/953056/ft1_filtered_4FGL_J0654.3+5042_daily_bin1085.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.42
user 0.28
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/953056/ft1_filtered_4FGL_J0654.3+5042_daily_bin1085.fits" evtable="EVENTS" scfile=/scratch/kocevski/953056/ft2_4FGL_J0654.3+5042_daily_bin1085.fits sctable="SC_DATA" outfile=/scratch/kocevski/953056/ltcube_520560001_520819201_4FGL_J0654.3+5042_daily_bin1085.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/953056/ft2_4FGL_J0654.3+5042_daily_bin1085.fits
.....................!
real 9.33
user 9.04
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/953056/ft1_filtered_4FGL_J0654.3+5042_daily_bin1085.fits evtable="EVENTS" scfile=/scratch/kocevski/953056/ft2_4FGL_J0654.3+5042_daily_bin1085.fits sctable="SC_DATA" expcube=/scratch/kocevski/953056/ltcube_520560001_520819201_4FGL_J0654.3+5042_daily_bin1085.fits outfile=/scratch/kocevski/953056/expmap_520560001_520819201_4FGL_J0654.3+5042_daily_bin1085.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/953056/ltcube_520560001_520819201_4FGL_J0654.3+5042_daily_bin1085.fits
.....................!
real 144.82
user 141.11
sys 3.44

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/953056/ft1_filtered_4FGL_J0654.3+5042_daily_bin1085.fits scfile=/scratch/kocevski/953056/ft2_4FGL_J0654.3+5042_daily_bin1085.fits outfile=/scratch/kocevski/953056/cmap_520560001_520819201_4FGL_J0654.3+5042_daily_bin1085.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.47
user 0.30
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/953056/ft1_filtered_4FGL_J0654.3+5042_daily_bin1085.fits scfile=/scratch/kocevski/953056/ft2_4FGL_J0654.3+5042_daily_bin1085.fits outfile=/scratch/kocevski/953056/cmap_HighResolution_520560001_520819201_4FGL_J0654.3+5042_daily_bin1085.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.46
user 0.32
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.482       1.0000         .10000E-03   10000.    
     2 'norm      '    12.175       1.0000         .10000E-03   10000.    
     3 'norm      '    2.9170       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.975       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.222       1.0000         .10000E-03   10000.    
     6 'Prefactor '    26.968       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    12.763       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .18557E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13295E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.8810       1.0000         .10000E-03   10000.    
    18 'Prefactor '    51.153       1.0000         .10000E-03   10000.    
    19 'norm      '    .94728       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    22.902       1.0000         .10000E-03   10000.    
    22 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.1047       1.0000         .10000E-03   10000.    
    24 'norm      '    .85442       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .95486       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .94160       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=   9462.439     FROM MIGRAD    STATUS=CONVERGED    615 CALLS     3097 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.479        29.000       -.36542E-05   -.92171E-05
   2  norm          12.175        3.8290       -.27757E-06   -.10814E-03
   3  norm          2.9168        2.5614       -.40977E-07   -.57021E-04
   4  Prefactor     14.975        9.8551       -.28088E-06   -.37249E-04
   5  Prefactor     15.222        8.6017       -.32224E-06   -.49556E-04
   6  Prefactor     26.971        24.842        .17016E-05   -.22882E-05
   7  Prefactor     .10000E-03    26.869       -.44608E-05** at limit **
   8  norm          12.761        5.7446       -.22576E-06   -.57238E-03
   9  norm          .10000E-03    1.4501       -.34086E-07** at limit **
  10  Prefactor     .10000E-03    6.0049       -.42854E-07** at limit **
  11  norm          .10000E-03    1.8460       -.58865E-07** at limit **
  12  Prefactor     .10000E-03    18.058        .78421E-06** at limit **
  13  Prefactor     .10000E-03    2.0133       -.74441E-07** at limit **
  14  Prefactor     .10048E-03    9.3394        .33205E-05** at limit **
  15  Prefactor     .10000E-03    49.950        .54080E-06** at limit **
  16  norm          .10000E-03    2.1714       -.12808E-07** at limit **
  17  Prefactor     9.8607        25.139       -.20720E-04   -.42276E-04
  18  Prefactor     51.151        28.364       -.12881E-05   -.12403E-03
  19  norm          .94771        .70031        .24447E-06    .61614E-03
  20  Prefactor     .10000E-03    4.8945        .16679E-07** at limit **
  21  Prefactor     22.905        18.035       -.38516E-06   -.16910E-04
  22  norm          .10000E-03    1.6176       -.48361E-07** at limit **
  23  norm          2.1048        2.3499        .54670E-07    .21992E-03
  24  norm          .85423        1.3434        .21579E-07    .33260E-03
  25  Normalizat    .95464        .18440        .29320E-05   -.31415E-03
  26  Prefactor     .94169        .81989E-01   -.14022E-06   -.21284E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.4789
  norm       = 12.1749
  norm       = 2.91681
  Prefactor  = 14.9754
  Prefactor  = 15.2221
  Prefactor  = 26.9713
  Prefactor  = 0.0001
  norm       = 12.7612
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010048
  Prefactor  = 0.000100005
  norm       = 0.0001
  Prefactor  = 9.86066
  Prefactor  = 51.1513
  norm       = 0.947708
  Prefactor  = 0.0001
  Prefactor  = 22.9049
  norm       = 0.0001
  norm       = 2.10481
  norm       = 0.854232
  Normalizat = 0.954638
  Prefactor  = 0.941692
 **********
 **   18 **HESSE 
 **********

 FCN=   9462.439     FROM HESSE     STATUS=OK           460 CALLS     3557 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.479        29.060        .10525E-03   -1.4947    
   2  norm          12.175        3.8364        .10235E-03   -1.5010    
   3  norm          2.9168        2.5651        .14194E-03   -1.5366    
   4  Prefactor     14.975        9.8558        .10350E-03   -1.4934    
   5  Prefactor     15.222        8.6045        .10266E-03   -1.4927    
   6  Prefactor     26.971        24.881        .77142E-04   -1.4669    
   7  Prefactor     .10000E-03    26.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          12.761        5.7194        .11213E-03   -1.4993    
   9  norm          .10000E-03    1.5036        .22872E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.0113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.8576        .12896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    18.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.0308        .13472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10048E-03    43.217        .55797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    51.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.1789        .13997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.8607        25.256        .12748E-03   -1.5080    
  18  Prefactor     51.151        28.392        .56074E-04   -1.4276    
  19  norm          .94771        .68612        .66728E-04   -1.5513    
  20  Prefactor     .10000E-03    4.9124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     22.905        18.070        .83701E-04   -1.4750    
  22  norm          .10000E-03    1.6742        .24150E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.1048        2.3518        .15357E-03   -1.5418    
  24  norm          .85423        1.0262        .13770E-02   -1.5523    
  25  Normalizat    .95464        .20565        .35255E-03   -.94566    
  26  Prefactor     .94169        .92800E-01    .16692E-03   -.94699    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11276e-08
Minuit parameter uncertainties:
  1  29.0883
  2  3.83645
  3  2.56516
  4  9.85687
  5  8.60521
  6  24.8906
  7  1.76464e-05
  8  5.71967
  9  4.15407e-06
  10  4.66489e-06
  11  7.71683e-06
  12  4.34079e-05
  13  8.22218e-06
  14  0.0091172
  15  0.00096389
  16  4.04033e-06
  17  25.2834
  18  28.3998
  19  0.686122
  20  3.78755e-06
  21  18.0739
  22  5.05545e-06
  23  2.35195
  24  1.02626
  25  0.205818
  26  0.0928161
Done.

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

Extracting fit parameters...

4FGL J0654.3+5042
   Spectrum: LogParabola
250         norm:  1.276e+01  5.720e+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:  9.417e-01  9.282e-02  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:  9.546e-01  2.058e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.69
Ra Dec: 103.596 50.703
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 8.69e-08 +/- 3.89e-08
Energy Flux (Fixed Index): 4.05e-05 +/- 1.82e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9461.57918863
delta logL = 0.859389124809

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9461.56441738
delta logL = 0.874160373629

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.9319       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6781       1.0000          .0000       5.0000    
     3 'Normalizat'    .90147       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95575       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=   9461.564     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      243 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.9319        49.563        .33528E-02    .74330E-03
   2  alpha         2.6782        3.7308        .22951        .95083E-04
   3  Normalizat    .90142        .96564E-01    .81631E-01    .30473E-04
   4  Prefactor     .95578        .39844E-01    .45712E-01   -.70556E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.93194
  alpha      = 2.67817
  Normalizat = 0.90142
  Prefactor  = 0.955776
 **********
 **   18 **HESSE 
 **********

 FCN=   9461.564     FROM HESSE     STATUS=OK            31 CALLS      274 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.9319        6.0241        .10686E-03   -1.5110    
   2  alpha         2.6782        .48201        .92262E-02    .71330E-01
   3  Normalizat    .90142        .19550        .36138E-03   -.96410    
   4  Prefactor     .95578        .90587E-01    .16577E-03   -.94218    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.6523e-09
Minuit parameter uncertainties:
  1  6.02451
  2  0.485067
  3  0.19565
  4  0.0906014
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/953056': 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) = 9461.56441731
delta logL = 0.874160436802

Extracting fit parameters...

4FGL J0654.3+5042
   Spectrum: LogParabola
250         norm:  8.932e+00  6.025e+00  1.000e-04  1.000e+04 ( 1.000e-12)
251        alpha:  2.678e+00  4.851e-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:  9.558e-01  9.060e-02  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:  9.014e-01  1.957e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.57
Ra Dec: 103.596 50.703
Photon Index (Free Index): 2.68 +/- 0.49
Photon Flux (Free Index): 1.27e-07 +/- 5.38e-08
Energy Flux (Free Index): 3.27e-05 +/- 1.42e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/953056/cmap_HighResolution_520560001_520819201_4FGL_J0654.3+5042_daily_bin1085.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.69e-08', energy_flux2='3.27e-05', photon_flux_error='3.89e-08', dlogl='8.74e-01', energy_flux='4.05e-05', photon_flux2='1.27e-07', job_status='DONE', time_completed='2021-08-26 10:00:27.568537', photon_index_error2='0.49', photon_index2='2.68', ts='9.69', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='1.42e-05', EG='0.95', time_epoch_completed='1629997227.57', return_code='0', job_id='953056', GAL2='0.96', EG2='0.90', return_code2='0', energy_flux_error='1.82e-05', photon_flux_error2='5.38e-08', ts2='11.57', photon_index='2.13' WHERE bin_id='1085' AND source_name='4FGL J0654.3+5042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 10:00:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 953056: <4FGL_J0654.3+5042_daily_bin1085> in cluster <slac> Done

Job <4FGL_J0654.3+5042_daily_bin1085> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Aug 26 09:45:32 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 09:45:33 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:33 2021
Terminated at Thu Aug 26 10:00:28 2021
Results reported at Thu Aug 26 10:00:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0654.3+5042_daily_bin1085 103.596 50.7027 520560001 520819201 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 :                                   732.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             314.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   894 sec.
    Turnaround time :                            896 sec.

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

