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


Performing analysis on: 4FGL_J0354.4+4643_daily_bin654
RA = 58.609, Dec = 46.7231
tmin = 408844801, tmax = 409104001
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='68422', job_status='RUN', time_executed='2021-08-19 18:07:55.762243', time_epoch_executed='1629421675.76' WHERE source_name='4FGL J0354.4+4643' and cadence='daily' and bin_id='654'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/68422

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/68422/ft1_4FGL_J0354.4+4643_daily_bin654.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/68422/ft2_4FGL_J0354.4+4643_daily_bin654.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/68422/ft1_4FGL_J0354.4+4643_daily_bin654.fits outfile=/scratch/kocevski/68422/ft1_filteredMKT_4FGL_J0354.4+4643_daily_bin654.fits ra=58.609 dec=46.7231 rad=12.0 tmin=408844801.0 tmax=409104001.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 12.09
user 4.12
sys 7.91

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/68422/ft2_4FGL_J0354.4+4643_daily_bin654.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/68422/ft2_4FGL_J0354.4+4643_daily_bin654.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/68422/ft1_filteredMKT_4FGL_J0354.4+4643_daily_bin654.fits evtable="EVENTS" outfile="/scratch/kocevski/68422/ft1_filtered_4FGL_J0354.4+4643_daily_bin654.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 8.88
user 0.34
sys 8.50

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/68422/ft1_filtered_4FGL_J0354.4+4643_daily_bin654.fits" evtable="EVENTS" scfile=/scratch/kocevski/68422/ft2_4FGL_J0354.4+4643_daily_bin654.fits sctable="SC_DATA" outfile=/scratch/kocevski/68422/ltcube_408844801_409104001_4FGL_J0354.4+4643_daily_bin654.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/68422/ft2_4FGL_J0354.4+4643_daily_bin654.fits
.....................!
real 20.58
user 11.58
sys 8.95

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/68422/ft1_filtered_4FGL_J0354.4+4643_daily_bin654.fits evtable="EVENTS" scfile=/scratch/kocevski/68422/ft2_4FGL_J0354.4+4643_daily_bin654.fits sctable="SC_DATA" expcube=/scratch/kocevski/68422/ltcube_408844801_409104001_4FGL_J0354.4+4643_daily_bin654.fits outfile=/scratch/kocevski/68422/expmap_408844801_409104001_4FGL_J0354.4+4643_daily_bin654.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/68422/ltcube_408844801_409104001_4FGL_J0354.4+4643_daily_bin654.fits
.....................!
real 199.61
user 184.69
sys 14.50

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 G150.3+4.5 in ROI with RadialDisk spatial model.
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.
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 168 point sources and 4 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.4+4643 @ 58.609 46.7231

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/68422/ft1_filtered_4FGL_J0354.4+4643_daily_bin654.fits scfile=/scratch/kocevski/68422/ft2_4FGL_J0354.4+4643_daily_bin654.fits outfile=/scratch/kocevski/68422/cmap_408844801_409104001_4FGL_J0354.4+4643_daily_bin654.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.609 yref=46.7231 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 8.01
user 0.39
sys 7.59

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/68422/ft1_filtered_4FGL_J0354.4+4643_daily_bin654.fits scfile=/scratch/kocevski/68422/ft2_4FGL_J0354.4+4643_daily_bin654.fits outfile=/scratch/kocevski/68422/cmap_HighResolution_408844801_409104001_4FGL_J0354.4+4643_daily_bin654.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.609 yref=46.7231 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 7.31
user 0.38
sys 6.89

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/68422/ft1_filtered_4FGL_J0354.4+4643_daily_bin654.fits evtable="EVENTS" scfile=/scratch/kocevski/68422/ft2_4FGL_J0354.4+4643_daily_bin654.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/68422/Model_4FGL_J0354.4+4643_daily_bin654.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 G150.3+4.5
adding source GAL_V02
adding source HB 3
adding source HB 9
adding source W 3
Working on...
/scratch/kocevski/68422/ft1_filtered_4FGL_J0354.4+4643_daily_bin654.fits......................!
real 70.50
user 59.06
sys 11.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/68422/ft1_filtered_4FGL_J0354.4+4643_daily_bin654.fits', '/scratch/kocevski/68422/ft2_4FGL_J0354.4+4643_daily_bin654.fits', expMap='/scratch/kocevski/68422/expmap_408844801_409104001_4FGL_J0354.4+4643_daily_bin654.fits', expCube='/scratch/kocevski/68422/ltcube_408844801_409104001_4FGL_J0354.4+4643_daily_bin654.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/68422/Model_4FGL_J0354.4+4643_daily_bin654.xml', optimizer='MINUIT')

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

4FGL J0354.4+4643
   Spectrum: PowerLaw
297    Prefactor:  1.443e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  2.577e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  9.100e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/68422/ft1_filtered_4FGL_J0354.4+4643_daily_bin654.fits
Spacecraft file(s): /scratch/kocevski/68422/ft2_4FGL_J0354.4+4643_daily_bin654.fits
Exposure map: /scratch/kocevski/68422/expmap_408844801_409104001_4FGL_J0354.4+4643_daily_bin654.fits
Exposure cube: /scratch/kocevski/68422/ltcube_408844801_409104001_4FGL_J0354.4+4643_daily_bin654.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/68422/Model_4FGL_J0354.4+4643_daily_bin654.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) = 2459.72707572

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.5049       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.8401       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .30775E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    58.924       1.0000         .10000E-03   10000.    
     8 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    56.587       1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.511       1.0000         .10000E-03   10000.    
    11 'norm      '    .10091E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.2292       1.0000         .10000E-03   10000.    
    14 'Normalizat'    1.4463       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .81664       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5910E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2459.692     FROM MIGRAD    STATUS=CONVERGED    288 CALLS     1332 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.0986        .63247E-06** at limit **
   2  norm          3.5057        19.431        .11182E-05   -.10092E-04
   3  Prefactor     .10000E-03    15.290        .24344E-07** at limit **
   4  Prefactor     .10000E-03    175.68        .27788E-06** at limit **
   5  norm          6.8386        2.9158        .63628E-07   -.32802E-04
   6  Prefactor     .10000E-03    426.78       -.10537E-05** at limit **
   7  Prefactor     58.917        76.963        .11915E-06   -.19430E-05
   8  norm          .10000E-03    120.00        .99243E-07** at limit **
   9  Prefactor     56.490        106.38       -.29678E-06   -.18941E-04
  10  Prefactor     18.516        15.365        .19448E-06    .29296E-04
  11  norm          .10000E-03    17.550        .94048E-07** at limit **
  12  Prefactor     .10000E-03    13.640        .58624E-07** at limit **
  13  norm          7.2305        10.499        .24363E-05   -.11969E-04
  14  Normalizat    1.4438        .89309       -.72850E-05   -.95031E-05
  15  Prefactor     .81676        .96792E-01    .56581E-06   -.75230E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.50567
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.83862
  Prefactor  = 0.000100002
  Prefactor  = 58.9169
  norm       = 0.0001
  Prefactor  = 56.4898
  Prefactor  = 18.516
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.2305
  Normalizat = 1.44375
  Prefactor  = 0.816762
 **********
 **   18 **HESSE 
 **********

 FCN=   2459.692     FROM HESSE     STATUS=OK           180 CALLS     1512 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.810        .28621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.5057        19.306        .21596E-03   -1.5333    
   3  Prefactor     .10000E-03    15.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    175.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.8386        2.9210        .52948E-04   -1.5185    
   6  Prefactor     .10000E-03    427.26        .19801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     58.917        76.959        .52265E-04   -1.4171    
   8  norm          .10000E-03    120.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     56.490        106.59        .26664E-03   -1.4203    
  10  Prefactor     18.516        15.356        .93091E-04   -1.4847    
  11  norm          .10000E-03    17.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.647        .17892E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.2305        10.540        .74592E-03   -1.5170    
  14  Normalizat    1.4438        .90922        .79220E-03   -.79371    
  15  Prefactor     .81676        .10004        .11560E-03   -.99113    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.07827e-11
Minuit parameter uncertainties:
  1  0.000147272
  2  16.4614
  3  5.69695e-06
  4  0.000350568
  5  2.92106
  6  0.00192082
  7  77.0896
  8  5.67315e-05
  9  106.949
  10  15.3588
  11  1.92513e-06
  12  1.87607e-06
  13  10.5428
  14  0.919755
  15  0.100061
Done.

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

Extracting fit parameters...

4FGL J0354.4+4643
   Spectrum: PowerLaw
297    Prefactor:  1.852e+01  1.536e+01  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  2.577e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  9.100e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  8.168e-01  1.001e-01  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
571   Normalization:  1.444e+00  9.198e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.61
Ra Dec: 58.609 46.723
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 3.48e-07 +/- 2.89e-07
Energy Flux (Fixed Index): 9.33e-05 +/- 7.74e-05

TS (Fixed Index): 2.61
Ra Dec: 58.609 46.723
Photon Flux Upper Limit: 9.98e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.80e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/68422/likelihoodResults_408844801_409104001_4FGL_J0354.4+4643_daily_bin654.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) = 2459.68924911
delta logL = 0.00320675513967

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2459.6849516
delta logL = 0.00750426915374

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.464       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4585       1.0000          .0000       10.000    
     3 'Normalizat'    1.4702       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81543       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5910E+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=   2459.685     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      255 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.453        23.866        .88541E-04    .87505E-04
   2  Index         2.4592        1.0056        .63835E-02    .97418E-05
   3  Normalizat    1.4700        .88815        .78663E-03    .36131E-06
   4  Prefactor     .81546        .98883E-01    .11569E-03    .12689E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.4533
  Index      = 2.45922
  Normalizat = 1.46997
  Prefactor  = 0.81546
 **********
 **   18 **HESSE 
 **********

 FCN=   2459.685     FROM HESSE     STATUS=OK            25 CALLS      280 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.453        22.488        .35416E-05   -1.4803    
   2  Index         2.4592        .94673        .25534E-03   -.53304    
   3  Normalizat    1.4700        .88560        .31465E-04   -.78626    
   4  Prefactor     .81546        .98808E-01    .23137E-04   -.99161    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.56409e-11
Minuit parameter uncertainties:
  1  22.4975
  2  0.954527
  3  0.895174
  4  0.0988298
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/68422': 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) = 2459.68495129
delta logL = 0.00750457627873

Extracting fit parameters...

4FGL J0354.4+4643
   Spectrum: PowerLaw
297    Prefactor:  2.045e+01  2.250e+01  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  2.459e+00  9.545e-01  0.000e+00  1.000e+01 (-1.000e+00)
299        Scale:  9.100e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  8.155e-01  9.883e-02  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
571   Normalization:  1.470e+00  8.952e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.61
Ra Dec: 58.609 46.723
Photon Index (Free Index): 2.46 +/- 0.95
Photon Flux (Free Index): 3.20e-07 +/- 3.61e-07
Energy Flux (Free Index): 9.74e-05 +/- 9.05e-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/68422/cmap_HighResolution_408844801_409104001_4FGL_J0354.4+4643_daily_bin654.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.80e-02', comment='SUCCESS', photon_flux='3.48e-07', energy_flux2='9.74e-05', photon_flux_error='2.89e-07', dlogl='7.50e-03', energy_flux='9.33e-05', photon_flux2='3.20e-07', job_status='DONE', time_completed='2021-08-19 18:17:05.833265', photon_index_error2='0.95', photon_index2='2.46', ts='2.61', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='9.98e-07', energy_flux_error2='9.05e-05', EG='1.44', time_epoch_completed='1629422225.83', return_code='0', job_id='68422', GAL2='0.82', EG2='1.47', return_code2='0', energy_flux_error='7.74e-05', photon_flux_error2='3.61e-07', ts2='2.61', photon_index='2.58' WHERE bin_id='654' AND source_name='4FGL J0354.4+4643' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 18:17:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 68422: <4FGL_J0354.4+4643_daily_bin654> in cluster <slac> Done

Job <4FGL_J0354.4+4643_daily_bin654> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Aug 19 18:05:38 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 18:05:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 19 18:05:40 2021
Terminated at Thu Aug 19 18:17:07 2021
Results reported at Thu Aug 19 18:17:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0354.4+4643_daily_bin654 58.609 46.7231 408844801 409104001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0354.4+4643 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   666.27 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             256.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   686 sec.
    Turnaround time :                            689 sec.

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

