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


Performing analysis on: 4FGL_J0354.7+8009_daily_bin1003
RA = 58.6919, Dec = 80.1647
tmin = 499305601, tmax = 499564801
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='87123', job_status='RUN', time_executed='2021-08-19 19:13:26.246405', time_epoch_executed='1629425606.25' WHERE source_name='4FGL J0354.7+8009' and cadence='daily' and bin_id='1003'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/87123

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/87123/ft1_4FGL_J0354.7+8009_daily_bin1003.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/87123/ft2_4FGL_J0354.7+8009_daily_bin1003.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/87123/ft1_4FGL_J0354.7+8009_daily_bin1003.fits outfile=/scratch/kocevski/87123/ft1_filteredMKT_4FGL_J0354.7+8009_daily_bin1003.fits ra=58.6919 dec=80.1647 rad=12.0 tmin=499305601.0 tmax=499564801.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 9.01
user 5.19
sys 3.79

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/87123/ft2_4FGL_J0354.7+8009_daily_bin1003.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/87123/ft2_4FGL_J0354.7+8009_daily_bin1003.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/87123/ft1_filteredMKT_4FGL_J0354.7+8009_daily_bin1003.fits evtable="EVENTS" outfile="/scratch/kocevski/87123/ft1_filtered_4FGL_J0354.7+8009_daily_bin1003.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 4.36
user 0.35
sys 3.71

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/87123/ft1_filtered_4FGL_J0354.7+8009_daily_bin1003.fits" evtable="EVENTS" scfile=/scratch/kocevski/87123/ft2_4FGL_J0354.7+8009_daily_bin1003.fits sctable="SC_DATA" outfile=/scratch/kocevski/87123/ltcube_499305601_499564801_4FGL_J0354.7+8009_daily_bin1003.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/87123/ft2_4FGL_J0354.7+8009_daily_bin1003.fits
.....................!
real 16.16
user 11.80
sys 4.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/87123/ft1_filtered_4FGL_J0354.7+8009_daily_bin1003.fits evtable="EVENTS" scfile=/scratch/kocevski/87123/ft2_4FGL_J0354.7+8009_daily_bin1003.fits sctable="SC_DATA" expcube=/scratch/kocevski/87123/ltcube_499305601_499564801_4FGL_J0354.7+8009_daily_bin1003.fits outfile=/scratch/kocevski/87123/expmap_499305601_499564801_4FGL_J0354.7+8009_daily_bin1003.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/87123/ltcube_499305601_499564801_4FGL_J0354.7+8009_daily_bin1003.fits
.....................!
real 195.25
user 186.21
sys 8.71

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 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W3.fits is the correct path to the extended template.
Added 205 point sources and 2 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 J0354.7+8009 @ 58.6919 80.1647

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/87123/ft1_filtered_4FGL_J0354.7+8009_daily_bin1003.fits scfile=/scratch/kocevski/87123/ft2_4FGL_J0354.7+8009_daily_bin1003.fits outfile=/scratch/kocevski/87123/cmap_499305601_499564801_4FGL_J0354.7+8009_daily_bin1003.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=58.6919 yref=80.1647 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 4.02
user 0.39
sys 3.61

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/87123/ft1_filtered_4FGL_J0354.7+8009_daily_bin1003.fits scfile=/scratch/kocevski/87123/ft2_4FGL_J0354.7+8009_daily_bin1003.fits outfile=/scratch/kocevski/87123/cmap_HighResolution_499305601_499564801_4FGL_J0354.7+8009_daily_bin1003.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=58.6919 yref=80.1647 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 4.02
user 0.39
sys 3.61

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/87123/ft1_filtered_4FGL_J0354.7+8009_daily_bin1003.fits evtable="EVENTS" scfile=/scratch/kocevski/87123/ft2_4FGL_J0354.7+8009_daily_bin1003.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/87123/Model_4FGL_J0354.7+8009_daily_bin1003.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 3
adding source W 3
Working on...
/scratch/kocevski/87123/ft1_filtered_4FGL_J0354.7+8009_daily_bin1003.fits.....................!
real 103.35
user 97.32
sys 5.83

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/87123/ft1_filtered_4FGL_J0354.7+8009_daily_bin1003.fits', '/scratch/kocevski/87123/ft2_4FGL_J0354.7+8009_daily_bin1003.fits', expMap='/scratch/kocevski/87123/expmap_499305601_499564801_4FGL_J0354.7+8009_daily_bin1003.fits', expCube='/scratch/kocevski/87123/ltcube_499305601_499564801_4FGL_J0354.7+8009_daily_bin1003.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/87123/Model_4FGL_J0354.7+8009_daily_bin1003.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0354.7+8009'

4FGL J0354.7+8009
   Spectrum: PowerLaw
234    Prefactor:  1.353e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
235        Index:  2.266e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
236        Scale:  1.581e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/87123/ft1_filtered_4FGL_J0354.7+8009_daily_bin1003.fits
Spacecraft file(s): /scratch/kocevski/87123/ft2_4FGL_J0354.7+8009_daily_bin1003.fits
Exposure map: /scratch/kocevski/87123/expmap_499305601_499564801_4FGL_J0354.7+8009_daily_bin1003.fits
Exposure cube: /scratch/kocevski/87123/ltcube_499305601_499564801_4FGL_J0354.7+8009_daily_bin1003.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/87123/Model_4FGL_J0354.7+8009_daily_bin1003.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) = 7049.93272878

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11069E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.2560       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.356       1.0000         .10000E-03   10000.    
     7 'norm      '    5.3987       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.016       1.0000         .10000E-03   10000.    
    10 'Prefactor '    25.013       1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.850       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.1949       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .72676       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0156       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6890E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7049.929     FROM MIGRAD    STATUS=CONVERGED    330 CALLS     1588 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.210        .14017E-06** at limit **
   2  Prefactor     .10004E-03    46.571        .54367E-04** at limit **
   3  Prefactor     .10000E-03    118.43       -.11259E-04** at limit **
   4  norm          .10000E-03    17.946       -.12928E-05** at limit **
   5  Prefactor     2.2564        2.4881        .41784E-05    .23782E-02
   6  Prefactor     11.358        15.115        .23947E-05    .87724E-04
   7  norm          5.3992        8.7238        .16423E-06    .31403E-04
   8  Prefactor     .10000E-03    3.1292       -.33700E-07** at limit **
   9  Prefactor     12.017        14.510        .39939E-06    .29043E-04
  10  Prefactor     25.012        47.378        .12246E-05    .12023E-04
  11  Prefactor     24.840        32.717        .55253E-05    .39546E-04
  12  norm          .10000E-03    7.5229       -.43201E-07** at limit **
  13  norm          .10000E-03    30.328        .11789E-04** at limit **
  14  Prefactor     .10000E-03    125.44        .34217E-04** at limit **
  15  Prefactor     6.1949        8.9367        .41448E-06    .30433E-06
  16  Normalizat    .72677        .23140       -.34299E-06   -.28373E-03
  17  Prefactor     1.0156        .73496E-01   -.41965E-07   -.51454E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100041
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 2.25637
  Prefactor  = 11.3579
  norm       = 5.39916
  Prefactor  = 0.0001
  Prefactor  = 12.0172
  Prefactor  = 25.012
  Prefactor  = 24.8399
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 6.19495
  Normalizat = 0.72677
  Prefactor  = 1.01558
 **********
 **   18 **HESSE 
 **********

 FCN=   7049.929     FROM HESSE     STATUS=OK           225 CALLS     1813 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10004E-03    52.091        .42988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    119.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    17.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.2564        3.6948        .99322E-03   -1.5408    
   6  Prefactor     11.358        15.098        .11888E-03   -1.5034    
   7  norm          5.3992        8.7201        .17295E-03   -1.5243    
   8  Prefactor     .10000E-03    3.1336        .14505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.017        14.512        .11556E-03   -1.5015    
  10  Prefactor     25.012        47.362        .80096E-04   -1.4707    
  11  Prefactor     24.840        32.795        .80358E-04   -1.4711    
  12  norm          .10000E-03    7.5300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    30.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    125.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.1949        8.9337        .16129E-03   -1.5210    
  16  Normalizat    .72677        .23845        .48023E-03   -1.0285    
  17  Prefactor     1.0156        .77507E-01    .13421E-03   -.92212    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.91996e-09
Minuit parameter uncertainties:
  1  4.98335e-06
  2  0.00293631
  3  0.000612817
  4  1.89878e-05
  5  3.69516
  6  15.1034
  7  8.72214
  8  7.69974e-06
  9  14.5163
  10  47.4331
  11  32.8192
  12  1.83218e-05
  13  0.000127254
  14  0.000735424
  15  8.93567
  16  0.238795
  17  0.0775156
Done.

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

Extracting fit parameters...

4FGL J0354.7+8009
   Spectrum: PowerLaw
234    Prefactor:  1.000e-04  7.700e-06  1.000e-04  1.000e+04 ( 1.000e-13)
235        Index:  2.266e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
236        Scale:  1.581e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
678    Prefactor:  1.016e+00  7.752e-02  0.000e+00  1.000e+01 ( 1.000e+00)
679        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
680        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
677   Normalization:  7.268e-01  2.388e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 58.692 80.165
Photon Flux Upper Limit: 6.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/87123/likelihoodResults_499305601_499564801_4FGL_J0354.7+8009_daily_bin1003.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) = 7049.93030876
delta logL = -0.00151646533141

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7049.9287918
delta logL = 4.99053385283e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2365       1.0000          .0000       10.000    
     3 'Normalizat'    .72678       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0156       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6890E+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=   7049.929     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      248 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10252E-03    2.1449        .15016E-01** at limit **
   2  Index         2.1595        8.7969        .50000        .64602E-04
   3  Normalizat    .72678        .52412E-02    .48023E-03    .41689E-04
   4  Prefactor     1.0156        .17233E-02    .13421E-03   -.67443E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102517
  Index      = 2.15951
  Normalizat = 0.726779
  Prefactor  = 1.01557
 **********
 **   18 **HESSE 
 **********

 FCN=   7049.929     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      277 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10252E-03    32.648        .15406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1595        8.9118        .50000       -.60419    
   3  Normalizat    .72678        .20605E-01    .19209E-04   -1.0285    
   4  Prefactor     1.0156        .67751E-02    .26843E-04   -.92212    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.212e-08
Minuit parameter uncertainties:
  1  0.0181409
  2  171.691
  3  0.0206056
  4  0.0067751
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/87123': 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) = 7049.92879082
delta logL = 1.48067556438e-06

Extracting fit parameters...

4FGL J0354.7+8009
   Spectrum: PowerLaw
234    Prefactor:  1.025e-04  1.814e-02  1.000e-04  1.000e+04 ( 1.000e-13)
235        Index:  2.160e+00  1.717e+02  0.000e+00  1.000e+01 (-1.000e+00)
236        Scale:  1.581e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
678    Prefactor:  1.016e+00  6.775e-03  0.000e+00  1.000e+01 ( 1.000e+00)
679        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
680        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
677   Normalization:  7.268e-01  2.061e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 58.692 80.165

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/87123/cmap_HighResolution_499305601_499564801_4FGL_J0354.7+8009_daily_bin1003.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.11e-03', job_status='DONE', photon_flux_upper_limit='6.67e-08', time_completed='2021-08-19 19:25:51.402541', job_id='87123', GAL2='1.02', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1629426351.4', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='1.48e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='1003' AND source_name='4FGL J0354.7+8009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 19:25:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 87123: <4FGL_J0354.7+8009_daily_bin1003> in cluster <slac> Done

Job <4FGL_J0354.7+8009_daily_bin1003> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Aug 19 19:10:23 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 19:10:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 19 19:10:24 2021
Terminated at Thu Aug 19 19:25:52 2021
Results reported at Thu Aug 19 19:25:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0354.7+8009_daily_bin1003 58.6919 80.1647 499305601 499564801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0354.7+8009 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   797.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             278.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            929 sec.

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

