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


Performing analysis on: 4FGL_J0430.3+1654_daily_bin1263
RA = 67.5901, Dec = 16.9093
tmin = 566697601, tmax = 566956801
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='508827', job_status='RUN', time_executed='2021-08-20 18:38:14.814796', time_epoch_executed='1629509894.81' WHERE source_name='4FGL J0430.3+1654' and cadence='daily' and bin_id='1263'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/508827

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/508827/ft1_4FGL_J0430.3+1654_daily_bin1263.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/508827/ft2_4FGL_J0430.3+1654_daily_bin1263.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/508827/ft1_4FGL_J0430.3+1654_daily_bin1263.fits outfile=/scratch/kocevski/508827/ft1_filteredMKT_4FGL_J0430.3+1654_daily_bin1263.fits ra=67.5901 dec=16.9093 rad=12.0 tmin=566697601.0 tmax=566956801.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 11.72
user 1.85
sys 9.82

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/508827/ft2_4FGL_J0430.3+1654_daily_bin1263.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/508827/ft2_4FGL_J0430.3+1654_daily_bin1263.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/508827/ft1_filteredMKT_4FGL_J0430.3+1654_daily_bin1263.fits evtable="EVENTS" outfile="/scratch/kocevski/508827/ft1_filtered_4FGL_J0430.3+1654_daily_bin1263.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 10.10
user 0.35
sys 9.72

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/508827/ft1_filtered_4FGL_J0430.3+1654_daily_bin1263.fits" evtable="EVENTS" scfile=/scratch/kocevski/508827/ft2_4FGL_J0430.3+1654_daily_bin1263.fits sctable="SC_DATA" outfile=/scratch/kocevski/508827/ltcube_566697601_566956801_4FGL_J0430.3+1654_daily_bin1263.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/508827/ft2_4FGL_J0430.3+1654_daily_bin1263.fits
.....................!
real 26.88
user 16.02
sys 10.78

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/508827/ft1_filtered_4FGL_J0430.3+1654_daily_bin1263.fits evtable="EVENTS" scfile=/scratch/kocevski/508827/ft2_4FGL_J0430.3+1654_daily_bin1263.fits sctable="SC_DATA" expcube=/scratch/kocevski/508827/ltcube_566697601_566956801_4FGL_J0430.3+1654_daily_bin1263.fits outfile=/scratch/kocevski/508827/expmap_566697601_566956801_4FGL_J0430.3+1654_daily_bin1263.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/508827/ltcube_566697601_566956801_4FGL_J0430.3+1654_daily_bin1263.fits
.....................!
real 203.60
user 186.72
sys 16.48

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 S 147 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/S147.fits is the correct path to the extended template.
Added 148 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 J0430.3+1654 @ 67.5901 16.9093

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/508827/ft1_filtered_4FGL_J0430.3+1654_daily_bin1263.fits scfile=/scratch/kocevski/508827/ft2_4FGL_J0430.3+1654_daily_bin1263.fits outfile=/scratch/kocevski/508827/cmap_566697601_566956801_4FGL_J0430.3+1654_daily_bin1263.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.5901 yref=16.9093 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 9.32
user 0.37
sys 8.88

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/508827/ft1_filtered_4FGL_J0430.3+1654_daily_bin1263.fits scfile=/scratch/kocevski/508827/ft2_4FGL_J0430.3+1654_daily_bin1263.fits outfile=/scratch/kocevski/508827/cmap_HighResolution_566697601_566956801_4FGL_J0430.3+1654_daily_bin1263.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.5901 yref=16.9093 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 9.49
user 0.44
sys 9.00

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/508827/ft1_filtered_4FGL_J0430.3+1654_daily_bin1263.fits evtable="EVENTS" scfile=/scratch/kocevski/508827/ft2_4FGL_J0430.3+1654_daily_bin1263.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/508827/Model_4FGL_J0430.3+1654_daily_bin1263.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 S 147
Working on...
/scratch/kocevski/508827/ft1_filtered_4FGL_J0430.3+1654_daily_bin1263.fits.....................!
real 158.52
user 144.80
sys 13.34

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/508827/ft1_filtered_4FGL_J0430.3+1654_daily_bin1263.fits', '/scratch/kocevski/508827/ft2_4FGL_J0430.3+1654_daily_bin1263.fits', expMap='/scratch/kocevski/508827/expmap_566697601_566956801_4FGL_J0430.3+1654_daily_bin1263.fits', expCube='/scratch/kocevski/508827/ltcube_566697601_566956801_4FGL_J0430.3+1654_daily_bin1263.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/508827/Model_4FGL_J0430.3+1654_daily_bin1263.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0430.3+1654'

4FGL J0430.3+1654
   Spectrum: PowerLaw
220    Prefactor:  2.924e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
221        Index:  2.350e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
222        Scale:  1.553e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/508827/ft1_filtered_4FGL_J0430.3+1654_daily_bin1263.fits
Spacecraft file(s): /scratch/kocevski/508827/ft2_4FGL_J0430.3+1654_daily_bin1263.fits
Exposure map: /scratch/kocevski/508827/expmap_566697601_566956801_4FGL_J0430.3+1654_daily_bin1263.fits
Exposure cube: /scratch/kocevski/508827/ltcube_566697601_566956801_4FGL_J0430.3+1654_daily_bin1263.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/508827/Model_4FGL_J0430.3+1654_daily_bin1263.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) = 6776.38178052

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.342       1.0000         .10000E-03   10000.    
     6 'Prefactor '    82.626       1.0000         .10000E-03   10000.    
     7 'Prefactor '    30.279       1.0000         .10000E-03   10000.    
     8 'norm      '    7.8447       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.2132       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.0151       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.345       1.0000         .10000E-03   10000.    
    15 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    39.664       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0390       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .92613       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6776.372     FROM MIGRAD    STATUS=CONVERGED    344 CALLS     1708 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    34.105        .12424E-04** at limit **
   2  Prefactor     .10000E-03    27.065       -.10255E-04** at limit **
   3  Prefactor     .10000E-03    29.133        .10667E-05** at limit **
   4  Prefactor     .10000E-03    16.180        .17160E-05** at limit **
   5  Prefactor     10.395        205.90        .15411E-03    .45281E-05
   6  Prefactor     82.626        48.877        .41085E-06   -.86543E-05
   7  Prefactor     30.280        25.196       -.22131E-05   -.86103E-04
   8  norm          7.8450        5.4100       -.10185E-06   -.16261E-03
   9  Prefactor     .10000E-03    43.485       -.11869E-04** at limit **
  10  Prefactor     .10000E-03    6.5757        .23114E-06** at limit **
  11  norm          6.2146        4.7117        .93654E-06   -.23040E-03
  12  norm          .10000E-03    39.286        .61106E-05** at limit **
  13  Prefactor     6.9980        30.170       -.31775E-04   -.29406E-04
  14  Prefactor     10.347        9.5234        .13245E-05    .25619E-04
  15  norm          .10000E-03    9.0873        .65918E-06** at limit **
  16  Prefactor     39.668        24.499        .43207E-05    .22178E-04
  17  Normalizat    1.0393        .38874       -.16588E-05   -.90057E-04
  18  Prefactor     .92607        .81540E-01   -.18406E-05    .29180E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.3952
  Prefactor  = 82.6264
  Prefactor  = 30.28
  norm       = 7.84501
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.21458
  norm       = 0.0001
  Prefactor  = 6.99797
  Prefactor  = 10.3471
  norm       = 0.0001
  Prefactor  = 39.6679
  Normalizat = 1.03928
  Prefactor  = 0.926069
 **********
 **   18 **HESSE 
 **********

 FCN=   6776.372     FROM HESSE     STATUS=OK           240 CALLS     1948 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    34.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    27.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    29.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.395        204.64        .12459E-03   -1.5063    
   6  Prefactor     82.626        48.893        .44189E-04   -1.3887    
   7  Prefactor     30.280        25.179        .72813E-04   -1.4607    
   8  norm          7.8450        5.4048        .14258E-03   -1.5148    
   9  Prefactor     .10000E-03    43.514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.6040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.2146        4.6958        .14552E-03   -1.5209    
  12  norm          .10000E-03    39.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.9980        30.177        .15146E-03   -1.5179    
  14  Prefactor     10.347        9.5156        .12458E-03   -1.5065    
  15  norm          .10000E-03    9.1087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     39.668        24.495        .63645E-04   -1.4447    
  17  Normalizat    1.0393        .41152        .61944E-03   -.91726    
  18  Prefactor     .92607        .87600E-01    .13847E-03   -.95236    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.37645e-10
Minuit parameter uncertainties:
  1  1.94323e-06
  2  7.92914e-05
  3  0.000156255
  4  3.3338e-05
  5  92.6104
  6  48.9163
  7  25.1878
  8  5.40518
  9  6.98614e-05
  10  1.96426e-05
  11  4.6961
  12  2.77389e-06
  13  29.0887
  14  9.517
  15  1.70334e-05
  16  24.5011
  17  0.412788
  18  0.0876129
Done.

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

Extracting fit parameters...

4FGL J0430.3+1654
   Spectrum: PowerLaw
220    Prefactor:  3.028e+01  2.519e+01  1.000e-04  1.000e+04 ( 1.000e-13)
221        Index:  2.350e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
222        Scale:  1.553e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  9.261e-01  8.761e-02  0.000e+00  1.000e+01 ( 1.000e+00)
493        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
494        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
491   Normalization:  1.039e+00  4.128e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.36
Ra Dec: 67.590 16.909
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 1.41e-07 +/- 1.18e-07
Energy Flux (Fixed Index): 4.97e-05 +/- 4.13e-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) = 6776.36640114
delta logL = 0.00553694191058

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6776.36382485
delta logL = 0.00811322434765

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.409       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4625       1.0000          .0000       10.000    
     3 'Normalizat'    1.0254       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92659       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4990E+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=   6776.364     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      292 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.436        30.535        .75166E-04    .21063E-03
   2  Index         2.4619        .93367        .81626E-02    .90044E-04
   3  Normalizat    1.0252        .41843        .62307E-03   -.10096E-03
   4  Prefactor     .92664        .85875E-01    .13842E-03   -.42661E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.4363
  Index      = 2.46192
  Normalizat = 1.02516
  Prefactor  = 0.926643
 **********
 **   18 **HESSE 
 **********

 FCN=   6776.364     FROM HESSE     STATUS=OK            25 CALLS      317 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.436        27.940        .15033E-04   -1.4641    
   2  Index         2.4619        .85086        .32650E-03   -.53242    
   3  Normalizat    1.0252        .41487        .24923E-04   -.92192    
   4  Prefactor     .92664        .85794E-01    .27683E-04   -.95216    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.73845e-10
Minuit parameter uncertainties:
  1  27.9528
  2  0.856491
  3  0.416191
  4  0.085806
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/508827': 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) = 6776.3638241
delta logL = 0.00811397926009

Extracting fit parameters...

4FGL J0430.3+1654
   Spectrum: PowerLaw
220    Prefactor:  2.844e+01  2.795e+01  1.000e-04  1.000e+04 ( 1.000e-13)
221        Index:  2.462e+00  8.565e-01  0.000e+00  1.000e+01 (-1.000e+00)
222        Scale:  1.553e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  9.266e-01  8.581e-02  0.000e+00  1.000e+01 ( 1.000e+00)
493        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
494        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
491   Normalization:  1.025e+00  4.162e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.37
Ra Dec: 67.590 16.909
Photon Index (Free Index): 2.46 +/- 0.86
Photon Flux (Free Index): 1.67e-07 +/- 2.34e-07
Energy Flux (Free Index): 5.06e-05 +/- 4.03e-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/508827/cmap_HighResolution_566697601_566956801_4FGL_J0430.3+1654_daily_bin1263.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.41e-07', energy_flux2='5.06e-05', photon_flux_error='1.18e-07', dlogl='8.11e-03', energy_flux='4.97e-05', photon_flux2='1.67e-07', job_status='DONE', time_completed='2021-08-20 18:50:29.234694', photon_index_error2='0.86', photon_index2='2.46', ts='4.36', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='4.03e-05', EG='1.04', time_epoch_completed='1629510629.23', return_code='0', job_id='508827', GAL2='0.93', EG2='1.03', return_code2='0', energy_flux_error='4.13e-05', photon_flux_error2='2.34e-07', ts2='4.37', photon_index='2.35' WHERE bin_id='1263' AND source_name='4FGL J0430.3+1654' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 18:50:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 508827: <4FGL_J0430.3+1654_daily_bin1263> in cluster <slac> Done

Job <4FGL_J0430.3+1654_daily_bin1263> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Aug 20 18:35:23 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 18:35:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 18:35:24 2021
Terminated at Fri Aug 20 18:50:32 2021
Results reported at Fri Aug 20 18:50:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0430.3+1654_daily_bin1263 67.5901 16.9093 566697601 566956801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0430.3+1654 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   884.05 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             309.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            909 sec.

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

