/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 9 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 = 7684
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0430.2-0356_daily_bin316
RA = 67.5693, Dec = -3.9458
tmin = 321235201, tmax = 321494401
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='492651', job_status='RUN', time_executed='2021-08-20 17:47:17.440637', time_epoch_executed='1629506837.44' WHERE source_name='4FGL J0430.2-0356' and cadence='daily' and bin_id='316'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/492651

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/492651/ft1_4FGL_J0430.2-0356_daily_bin316.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/492651/ft2_4FGL_J0430.2-0356_daily_bin316.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/492651/ft1_4FGL_J0430.2-0356_daily_bin316.fits outfile=/scratch/kocevski/492651/ft1_filteredMKT_4FGL_J0430.2-0356_daily_bin316.fits ra=67.5693 dec=-3.9458 rad=12.0 tmin=321235201.0 tmax=321494401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 8.14
user 3.33
sys 4.76

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/492651/ft2_4FGL_J0430.2-0356_daily_bin316.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/492651/ft2_4FGL_J0430.2-0356_daily_bin316.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/492651/ft1_filteredMKT_4FGL_J0430.2-0356_daily_bin316.fits evtable="EVENTS" outfile="/scratch/kocevski/492651/ft1_filtered_4FGL_J0430.2-0356_daily_bin316.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 5.56
user 0.32
sys 5.22

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/492651/ft1_filtered_4FGL_J0430.2-0356_daily_bin316.fits" evtable="EVENTS" scfile=/scratch/kocevski/492651/ft2_4FGL_J0430.2-0356_daily_bin316.fits sctable="SC_DATA" outfile=/scratch/kocevski/492651/ltcube_321235201_321494401_4FGL_J0430.2-0356_daily_bin316.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/492651/ft2_4FGL_J0430.2-0356_daily_bin316.fits
.....................!
real 17.65
user 11.86
sys 5.74

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/492651/ft1_filtered_4FGL_J0430.2-0356_daily_bin316.fits evtable="EVENTS" scfile=/scratch/kocevski/492651/ft2_4FGL_J0430.2-0356_daily_bin316.fits sctable="SC_DATA" expcube=/scratch/kocevski/492651/ltcube_321235201_321494401_4FGL_J0430.2-0356_daily_bin316.fits outfile=/scratch/kocevski/492651/expmap_321235201_321494401_4FGL_J0430.2-0356_daily_bin316.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/492651/ltcube_321235201_321494401_4FGL_J0430.2-0356_daily_bin316.fits
.....................!
real 196.76
user 185.15
sys 11.28

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
Added 150 point sources and 0 extended sources

Setting source of interest to:
4FGL J0430.2-0356 @ 67.5693 -3.9458

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/492651/ft1_filtered_4FGL_J0430.2-0356_daily_bin316.fits scfile=/scratch/kocevski/492651/ft2_4FGL_J0430.2-0356_daily_bin316.fits outfile=/scratch/kocevski/492651/cmap_321235201_321494401_4FGL_J0430.2-0356_daily_bin316.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=67.5693 yref=-3.9458 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 5.50
user 0.36
sys 5.11

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/492651/ft1_filtered_4FGL_J0430.2-0356_daily_bin316.fits scfile=/scratch/kocevski/492651/ft2_4FGL_J0430.2-0356_daily_bin316.fits outfile=/scratch/kocevski/492651/cmap_HighResolution_321235201_321494401_4FGL_J0430.2-0356_daily_bin316.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=67.5693 yref=-3.9458 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 5.51
user 0.36
sys 5.11

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/492651/ft1_filtered_4FGL_J0430.2-0356_daily_bin316.fits evtable="EVENTS" scfile=/scratch/kocevski/492651/ft2_4FGL_J0430.2-0356_daily_bin316.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/492651/Model_4FGL_J0430.2-0356_daily_bin316.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
Working on...
/scratch/kocevski/492651/ft1_filtered_4FGL_J0430.2-0356_daily_bin316.fits.....................!
real 135.07
user 127.45
sys 7.39

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/492651/ft1_filtered_4FGL_J0430.2-0356_daily_bin316.fits', '/scratch/kocevski/492651/ft2_4FGL_J0430.2-0356_daily_bin316.fits', expMap='/scratch/kocevski/492651/expmap_321235201_321494401_4FGL_J0430.2-0356_daily_bin316.fits', expCube='/scratch/kocevski/492651/ltcube_321235201_321494401_4FGL_J0430.2-0356_daily_bin316.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/492651/Model_4FGL_J0430.2-0356_daily_bin316.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0430.2-0356'

4FGL J0430.2-0356
   Spectrum: PowerLaw
222    Prefactor:  1.034e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
223        Index:  2.690e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
224        Scale:  5.385e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/492651/ft1_filtered_4FGL_J0430.2-0356_daily_bin316.fits
Spacecraft file(s): /scratch/kocevski/492651/ft2_4FGL_J0430.2-0356_daily_bin316.fits
Exposure map: /scratch/kocevski/492651/expmap_321235201_321494401_4FGL_J0430.2-0356_daily_bin316.fits
Exposure cube: /scratch/kocevski/492651/ltcube_321235201_321494401_4FGL_J0430.2-0356_daily_bin316.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/492651/Model_4FGL_J0430.2-0356_daily_bin316.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) = 9054.05993276

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.986       1.0000         .10000E-03   10000.    
     2 'norm      '    .98988E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .26077E-01   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.6697       1.0000         .10000E-03   10000.    
     7 'norm      '    .10238E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .67243       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.396       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.5014       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.0672       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.8242       1.0000         .10000E-03   10000.    
    16 'norm      '    5.8026       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    22.461       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .92892       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0690       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4920E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9054.013     FROM MIGRAD    STATUS=CONVERGED    453 CALLS     2444 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.988        8.2229       -.46108E-05   -.52798E-04
   2  norm          .10012E-03    9.0353        .85190E-06** at limit **
   3  Prefactor     .10005E-03    14.749       -.33146E-07** at limit **
   4  norm          .10000E-03    1.1656        .27656E-08** at limit **
   5  norm          .10000E-03    5.7604        .20446E-07** at limit **
   6  norm          4.6678        16.876       -.18744E-06   -.19139E-04
   7  norm          .10000E-03    .40703        .10553E-07** at limit **
   8  Prefactor     .67315        1.5034       -.91377E-06   -.22279E-02
   9  Prefactor     .10000E-03    4.9990       -.12118E-07** at limit **
  10  Prefactor     13.397        37.844        .36615E-05    .65671E-04
  11  Prefactor     .10000E-03    3.4642       -.28764E-06** at limit **
  12  norm          2.5005        2.4742       -.53014E-06   -.10041E-02
  13  Prefactor     .10000E-03    10.488       -.16391E-06** at limit **
  14  norm          1.0672        1.4485       -.30876E-06   -.15986E-02
  15  Prefactor     1.8250        10.029        .45096E-05   -.43779E-03
  16  norm          5.8027        2.0765       -.36020E-07   -.60103E-04
  17  Prefactor     .10000E-03    9.3287        .42733E-07** at limit **
  18  norm          22.491        38.425       -.30595E-05   -.23343E-05
  19  Normalizat    .92852        .18811        .17600E-05    .11875E-04
  20  Prefactor     1.0691        .91095E-01   -.13601E-06    .16275E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.9885
  norm       = 0.000100121
  Prefactor  = 0.000100045
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.66778
  norm       = 0.0001
  Prefactor  = 0.673149
  Prefactor  = 0.0001
  Prefactor  = 13.3973
  Prefactor  = 0.000100002
  norm       = 2.50055
  Prefactor  = 0.0001
  norm       = 1.06716
  Prefactor  = 1.82496
  norm       = 5.80265
  Prefactor  = 0.0001
  norm       = 22.4911
  Normalizat = 0.928524
  Prefactor  = 1.06912
 **********
 **   18 **HESSE 
 **********

 FCN=   9054.013     FROM HESSE     STATUS=OK           313 CALLS     2757 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.988        8.0307        .12088E-03   -1.5045    
   2  norm          .10012E-03    72.329        .55631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10005E-03    15.902        .12167       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.1680        .10029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.8075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.6678        16.729        .18623E-03   -1.5276    
   7  norm          .10000E-03    2.0998        .11134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .67315        1.4501        .14319E-03   -1.5544    
   9  Prefactor     .10000E-03    5.0028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.397        36.085        .10944E-03   -1.4976    
  11  Prefactor     .10000E-03    46.392        .33358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.5005        2.4712        .13979E-03   -1.5392    
  13  Prefactor     .10000E-03    10.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.0672        1.2672        .12910E-02   -1.5501    
  15  Prefactor     1.8250        9.3052        .30911E-03   -1.5438    
  16  norm          5.8027        2.0740        .78359E-04   -1.5226    
  17  Prefactor     .10000E-03    9.3454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          22.491        38.473        .84517E-04   -1.4759    
  19  Normalizat    .92852        .20485        .36323E-03   -.95465    
  20  Prefactor     1.0691        .10186        .16859E-03   -.90460    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.67299e-09
Minuit parameter uncertainties:
  1  8.03151
  2  0.00592751
  3  0.00169317
  4  7.16939e-07
  5  2.14925e-06
  6  16.7456
  7  1.99772e-06
  8  1.45017
  9  2.35811e-06
  10  36.1436
  11  0.000586551
  12  2.47127
  13  4.14142e-06
  14  1.26721
  15  8.24356
  16  2.07402
  17  3.30452e-06
  18  38.515
  19  0.205022
  20  0.101883
Done.

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

Extracting fit parameters...

4FGL J0430.2-0356
   Spectrum: PowerLaw
222    Prefactor:  1.000e-04  5.866e-04  1.000e-04  1.000e+04 ( 1.000e-12)
223        Index:  2.690e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
224        Scale:  5.385e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
489    Prefactor:  1.069e+00  1.019e-01  0.000e+00  1.000e+01 ( 1.000e+00)
490        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
491        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
488   Normalization:  9.285e-01  2.050e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 67.569 -3.946
Photon Flux Upper Limit: 8.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.05e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/492651/likelihoodResults_321235201_321494401_4FGL_J0430.2-0356_daily_bin316.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) = 9054.0128526
delta logL = -0.000100807743365

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9054.0127438
delta logL = 7.98677865532e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26327E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8080       1.0000          .0000       10.000    
     3 'Normalizat'    .92839       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0692       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4920E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9053.375     FROM MIGRAD    STATUS=CONVERGED    186 CALLS      397 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10069E-01    .16594        .21516E-02    .13723E-01
   2  Index         7.4878        3.4465        .22585        .17467E-03
   3  Normalizat    .86293        .40080E-01    .84854E-01   -.35112E-03
   4  Prefactor     1.0898        .19901E-01    .38898E-01   -.12391E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0100685
  Index      = 7.4878
  Normalizat = 0.862927
  Prefactor  = 1.08976
 **********
 **   18 **HESSE 
 **********

 FCN=   9053.375     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      430 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10069E-01    .53259        .10170E-03   -1.5688    
   2  Index         7.4878        8.7414        .11465E-01    .52078    
   3  Normalizat    .86293        .14966        .37573E-03   -.97775    
   4  Prefactor     1.0898        .73375E-01    .16721E-03   -.89795    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.81937e-09
Minuit parameter uncertainties:
  1  0.14573
  2  9.26546
  3  0.149731
  4  0.0733819
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/492651': 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) = 9053.37496803
delta logL = 0.637783763941

Extracting fit parameters...

4FGL J0430.2-0356
   Spectrum: PowerLaw
222    Prefactor:  1.007e-02  1.457e-01  1.000e-04  1.000e+04 ( 1.000e-12)
223        Index:  7.488e+00  9.265e+00  0.000e+00  1.000e+01 (-1.000e+00)
224        Scale:  5.385e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
489    Prefactor:  1.090e+00  7.338e-02  0.000e+00  1.000e+01 ( 1.000e+00)
490        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
491        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
488   Normalization:  8.629e-01  1.497e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.37
Ra Dec: 67.569 -3.946
Photon Index (Free Index): 7.49 +/- 9.27
Photon Flux (Free Index): 4.71e-08 +/- 4.52e-08
Energy Flux (Free Index): 5.54e-06 +/- 5.90e-06

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/492651/cmap_HighResolution_321235201_321494401_4FGL_J0430.2-0356_daily_bin316.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.05e-03', comment='SUCCESS', energy_flux2='5.54e-06', dlogl='6.38e-01', photon_flux2='4.71e-08', job_status='DONE', time_completed='2021-08-20 18:01:13.883392', photon_index_error2='9.27', photon_index2='7.49', ts='-0.00', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='8.96e-08', energy_flux_error2='5.90e-06', EG='0.93', time_epoch_completed='1629507673.88', return_code='0', job_id='492651', GAL2='1.09', EG2='0.86', return_code2='102', photon_flux_error2='4.52e-08', ts2='1.37', photon_index='2.69' WHERE bin_id='316' AND source_name='4FGL J0430.2-0356' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 18:01:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 492651: <4FGL_J0430.2-0356_daily_bin316> in cluster <slac> Done

Job <4FGL_J0430.2-0356_daily_bin316> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Aug 20 17:45:41 2021
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 17:45:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 17:45:43 2021
Terminated at Fri Aug 20 18:01:15 2021
Results reported at Fri Aug 20 18:01:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0430.2-0356_daily_bin316 67.5693 -3.9458 321235201 321494401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0430.2-0356 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   913.48 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             344.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            934 sec.

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

