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


Performing analysis on: 4FGL_J0430.3+1654_daily_bin1373
RA = 67.5901, Dec = 16.9093
tmin = 595209601, tmax = 595468801
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='508982', job_status='RUN', time_executed='2021-08-20 18:36:18.599482', time_epoch_executed='1629509778.6' WHERE source_name='4FGL J0430.3+1654' and cadence='daily' and bin_id='1373'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/508982

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/508982/ft1_4FGL_J0430.3+1654_daily_bin1373.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/508982/ft2_4FGL_J0430.3+1654_daily_bin1373.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/508982/ft1_4FGL_J0430.3+1654_daily_bin1373.fits outfile=/scratch/kocevski/508982/ft1_filteredMKT_4FGL_J0430.3+1654_daily_bin1373.fits ra=67.5901 dec=16.9093 rad=12.0 tmin=595209601.0 tmax=595468801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.83
user 2.71
sys 2.08

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/508982/ft2_4FGL_J0430.3+1654_daily_bin1373.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/508982/ft1_filteredMKT_4FGL_J0430.3+1654_daily_bin1373.fits evtable="EVENTS" outfile="/scratch/kocevski/508982/ft1_filtered_4FGL_J0430.3+1654_daily_bin1373.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 2.21
user 0.34
sys 1.86

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/508982/ft1_filtered_4FGL_J0430.3+1654_daily_bin1373.fits" evtable="EVENTS" scfile=/scratch/kocevski/508982/ft2_4FGL_J0430.3+1654_daily_bin1373.fits sctable="SC_DATA" outfile=/scratch/kocevski/508982/ltcube_595209601_595468801_4FGL_J0430.3+1654_daily_bin1373.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/508982/ft2_4FGL_J0430.3+1654_daily_bin1373.fits
.....................!
real 14.55
user 12.06
sys 2.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/508982/ft1_filtered_4FGL_J0430.3+1654_daily_bin1373.fits evtable="EVENTS" scfile=/scratch/kocevski/508982/ft2_4FGL_J0430.3+1654_daily_bin1373.fits sctable="SC_DATA" expcube=/scratch/kocevski/508982/ltcube_595209601_595468801_4FGL_J0430.3+1654_daily_bin1373.fits outfile=/scratch/kocevski/508982/expmap_595209601_595468801_4FGL_J0430.3+1654_daily_bin1373.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/508982/ltcube_595209601_595468801_4FGL_J0430.3+1654_daily_bin1373.fits
.....................!
real 191.43
user 184.50
sys 6.55

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/508982/ft1_filtered_4FGL_J0430.3+1654_daily_bin1373.fits scfile=/scratch/kocevski/508982/ft2_4FGL_J0430.3+1654_daily_bin1373.fits outfile=/scratch/kocevski/508982/cmap_595209601_595468801_4FGL_J0430.3+1654_daily_bin1373.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 2.40
user 0.38
sys 2.00

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/508982/ft1_filtered_4FGL_J0430.3+1654_daily_bin1373.fits scfile=/scratch/kocevski/508982/ft2_4FGL_J0430.3+1654_daily_bin1373.fits outfile=/scratch/kocevski/508982/cmap_HighResolution_595209601_595468801_4FGL_J0430.3+1654_daily_bin1373.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 2.21
user 0.38
sys 1.82

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/508982/ft1_filtered_4FGL_J0430.3+1654_daily_bin1373.fits evtable="EVENTS" scfile=/scratch/kocevski/508982/ft2_4FGL_J0430.3+1654_daily_bin1373.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/508982/Model_4FGL_J0430.3+1654_daily_bin1373.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/508982/ft1_filtered_4FGL_J0430.3+1654_daily_bin1373.fits......................!
real 60.09
user 56.20
sys 3.70

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/508982/ft1_filtered_4FGL_J0430.3+1654_daily_bin1373.fits', '/scratch/kocevski/508982/ft2_4FGL_J0430.3+1654_daily_bin1373.fits', expMap='/scratch/kocevski/508982/expmap_595209601_595468801_4FGL_J0430.3+1654_daily_bin1373.fits', expCube='/scratch/kocevski/508982/ltcube_595209601_595468801_4FGL_J0430.3+1654_daily_bin1373.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/508982/Model_4FGL_J0430.3+1654_daily_bin1373.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/508982/ft1_filtered_4FGL_J0430.3+1654_daily_bin1373.fits
Spacecraft file(s): /scratch/kocevski/508982/ft2_4FGL_J0430.3+1654_daily_bin1373.fits
Exposure map: /scratch/kocevski/508982/expmap_595209601_595468801_4FGL_J0430.3+1654_daily_bin1373.fits
Exposure cube: /scratch/kocevski/508982/ltcube_595209601_595468801_4FGL_J0430.3+1654_daily_bin1373.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/508982/Model_4FGL_J0430.3+1654_daily_bin1373.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) = 2197.66086099

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.373       1.0000         .10000E-03   10000.    
     2 'Prefactor '    684.76       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .16298E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .45289       1.0000         .10000E-03   10000.    
     5 'Prefactor '    140.60       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .63911       1.0000         .10000E-03   10000.    
     7 'Prefactor '    50.613       1.0000         .10000E-03   10000.    
     8 'norm      '    .14942E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .19285E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    49.770       1.0000         .10000E-03   10000.    
    11 'norm      '    12.115       1.0000         .10000E-03   10000.    
    12 'norm      '    .11546       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .25366E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.2372       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .64983E-02   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .10002E-01   1.0000         .10000E-01   10.000    
    18 'Prefactor '    .98490       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2197.328     FROM MIGRAD    STATUS=CONVERGED    355 CALLS     1609 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          967.67        5857.2        .37379E-04    .30338E-05
   2  Prefactor     638.50        682.89        .28515E-04   -.46469E-05
   3  Prefactor     .10000E-03    274.23       -.12624E-04** at limit **
   4  Prefactor     .10001E-03    152.64        .19061E-04** at limit **
   5  Prefactor     265.53        378.70       -.17387E-04   -.39398E-04
   6  Prefactor     .10000E-03    108.35       -.32294E-07** at limit **
   7  Prefactor     43.344        65.080       -.67938E-05   -.48881E-04
   8  norm          .10000E-03    11.763       -.17838E-05** at limit **
   9  Prefactor     .10001E-03    145.69       -.33197E-04** at limit **
  10  Prefactor     50.339        37.046        .10425E-06    .11507E-03
  11  norm          12.209        9.0229        .23502E-05    .50281E-03
  12  norm          .10000E-03    45.397        .86735E-05** at limit **
  13  Prefactor     .10000E-03    10.971       -.27838E-05** at limit **
  14  Prefactor     5.2776        6.2237       -.27309E-05   -.34191E-03
  15  norm          .10000E-03    3.0805       -.26093E-06** at limit **
  16  Prefactor     .48048E-01    239.84       -.10767E-03    .76209E-04
  17  Normalizat    .10000E-01    .97659       -.26822E-04** at limit **
  18  Prefactor     .97658        .92881E-01    .45478E-05    .33145E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 967.673
  Prefactor  = 638.502
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 265.534
  Prefactor  = 0.0001
  Prefactor  = 43.344
  norm       = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 50.3385
  norm       = 12.2094
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 5.27759
  norm       = 0.0001
  Prefactor  = 0.0480483
  Normalizat = 0.01
  Prefactor  = 0.976581
 **********
 **   18 **HESSE 
 **********

 FCN=   2197.328     FROM HESSE     STATUS=OK           290 CALLS     1899 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          967.67        5912.2        .26412E-02   -.93815    
   2  Prefactor     638.50        703.07        .39594E-03   -1.0599    
   3  Prefactor     .10000E-03    277.86        .91043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    155.08        .11077E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     265.53        378.56        .84936E-03   -1.2434    
   6  Prefactor     .10000E-03    109.08        .11826E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     43.344        65.129        .14093E-02   -1.4390    
   8  norm          .10000E-03    12.029        .10237E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    148.78        .91191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     50.339        37.593        .14211E-02   -1.4288    
  11  norm          12.209        9.1298        .28773E-02   -1.5009    
  12  norm          .10000E-03    46.044        .95847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.063        .10730E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.2776        6.2027        .43911E-02   -1.5248    
  15  norm          .10000E-03    3.1042        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .48048E-01    7.3409        .71206E-01   -1.5664    
  17  Normalizat    .10000E-01    .58027        .47392       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .97658        .11053        .29583E-01   -.93514    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.86539e-10
Minuit parameter uncertainties:
  1  5162.08
  2  713.141
  3  0.000240904
  4  0.002089
  5  382.147
  6  0.000172941
  7  65.2362
  8  5.89007e-05
  9  0.00240673
  10  37.611
  11  9.13087
  12  0.00032709
  13  2.88423e-05
  14  6.20341
  15  2.41147e-06
  16  1.18672
  17  1.02826e-05
  18  0.110553
Done.

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

Extracting fit parameters...

4FGL J0430.3+1654
   Spectrum: PowerLaw
220    Prefactor:  4.334e+01  6.524e+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.766e-01  1.106e-01  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.000e-02  1.028e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.67
Ra Dec: 67.590 16.909
Photon Flux Upper Limit: 9.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.99e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/508982/likelihoodResults_595209601_595468801_4FGL_J0430.3+1654_daily_bin1373.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) = 2197.26963246
delta logL = 0.0579827416741

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2197.26922376
delta logL = 0.0583914422614

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.211       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7232       1.0000          .0000       10.000    
     3 'Normalizat'    .10014E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97343       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=   2197.269     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      306 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.207        73.646        .75428E-04    .12133E-04
   2  Index         2.7233        1.3335        .55868E-02    .15645E-04
   3  Normalizat    .10000E-01    .86383        .20187E-01** at limit **
   4  Prefactor     .97359        .87695E-01    .13084E-03    .67036E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.2071
  Index      = 2.72334
  Normalizat = 0.01
  Prefactor  = 0.973586
 **********
 **   18 **HESSE 
 **********

 FCN=   2197.269     FROM HESSE     STATUS=OK            25 CALLS      331 TOTAL
                     EDM=   .66E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.207        62.713        .30171E-05   -1.4645    
   2  Index         2.7233        1.1390        .22347E-03   -.47275    
   3  Normalizat    .10000E-01    .86463        .40373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .97359        .87643E-01    .52336E-05   -.93615    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.55892e-12
Minuit parameter uncertainties:
  1  62.86
  2  1.15181
  3  2.71305e-06
  4  0.0876557
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/508982': 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) = 2197.2692144
delta logL = 0.0584008033325

Extracting fit parameters...

4FGL J0430.3+1654
   Spectrum: PowerLaw
220    Prefactor:  2.821e+01  6.286e+01  1.000e-04  1.000e+04 ( 1.000e-13)
221        Index:  2.723e+00  1.152e+00  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.736e-01  8.766e-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.000e-02  2.713e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.67
Ra Dec: 67.590 16.909

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/508982/cmap_HighResolution_595209601_595468801_4FGL_J0430.3+1654_daily_bin1373.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.99e-02', job_status='DONE', photon_flux_upper_limit='9.08e-07', time_completed='2021-08-20 18:43:36.116851', job_id='508982', GAL2='0.97', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629510216.12', return_code2='0', ts='0.67', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='5.84e-02', ts2='0.79', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='1373' AND source_name='4FGL J0430.3+1654' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 18:43:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 508982: <4FGL_J0430.3+1654_daily_bin1373> in cluster <slac> Done

Job <4FGL_J0430.3+1654_daily_bin1373> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Aug 20 18:35:33 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 18:35:34 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:34 2021
Terminated at Fri Aug 20 18:43:37 2021
Results reported at Fri Aug 20 18:43:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0430.3+1654_daily_bin1373 67.5901 16.9093 595209601 595468801 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 :                                   465.15 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             277.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   482 sec.
    Turnaround time :                            484 sec.

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

