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


Performing analysis on: 4FGL_J0430.3+1654_daily_bin1319
RA = 67.5901, Dec = 16.9093
tmin = 581212801, tmax = 581472001
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='508906', job_status='RUN', time_executed='2021-08-20 18:35:48.851452', time_epoch_executed='1629509748.85' WHERE source_name='4FGL J0430.3+1654' and cadence='daily' and bin_id='1319'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/508906

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/508906/ft1_4FGL_J0430.3+1654_daily_bin1319.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/508906/ft2_4FGL_J0430.3+1654_daily_bin1319.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/508906/ft1_4FGL_J0430.3+1654_daily_bin1319.fits outfile=/scratch/kocevski/508906/ft1_filteredMKT_4FGL_J0430.3+1654_daily_bin1319.fits ra=67.5901 dec=16.9093 rad=12.0 tmin=581212801.0 tmax=581472001.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 3.23
user 2.75
sys 0.45

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/508906/ft2_4FGL_J0430.3+1654_daily_bin1319.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/508906/ft1_filteredMKT_4FGL_J0430.3+1654_daily_bin1319.fits evtable="EVENTS" outfile="/scratch/kocevski/508906/ft1_filtered_4FGL_J0430.3+1654_daily_bin1319.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 0.71
user 0.33
sys 0.37

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/508906/ft1_filtered_4FGL_J0430.3+1654_daily_bin1319.fits" evtable="EVENTS" scfile=/scratch/kocevski/508906/ft2_4FGL_J0430.3+1654_daily_bin1319.fits sctable="SC_DATA" outfile=/scratch/kocevski/508906/ltcube_581212801_581472001_4FGL_J0430.3+1654_daily_bin1319.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/508906/ft2_4FGL_J0430.3+1654_daily_bin1319.fits
.....................!
real 12.93
user 12.27
sys 0.62

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/508906/ft1_filtered_4FGL_J0430.3+1654_daily_bin1319.fits evtable="EVENTS" scfile=/scratch/kocevski/508906/ft2_4FGL_J0430.3+1654_daily_bin1319.fits sctable="SC_DATA" expcube=/scratch/kocevski/508906/ltcube_581212801_581472001_4FGL_J0430.3+1654_daily_bin1319.fits outfile=/scratch/kocevski/508906/expmap_581212801_581472001_4FGL_J0430.3+1654_daily_bin1319.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/508906/ltcube_581212801_581472001_4FGL_J0430.3+1654_daily_bin1319.fits
.....................!
real 189.97
user 185.37
sys 4.22

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/508906/ft1_filtered_4FGL_J0430.3+1654_daily_bin1319.fits scfile=/scratch/kocevski/508906/ft2_4FGL_J0430.3+1654_daily_bin1319.fits outfile=/scratch/kocevski/508906/cmap_581212801_581472001_4FGL_J0430.3+1654_daily_bin1319.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 0.79
user 0.37
sys 0.40

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/508906/ft1_filtered_4FGL_J0430.3+1654_daily_bin1319.fits scfile=/scratch/kocevski/508906/ft2_4FGL_J0430.3+1654_daily_bin1319.fits outfile=/scratch/kocevski/508906/cmap_HighResolution_581212801_581472001_4FGL_J0430.3+1654_daily_bin1319.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 0.75
user 0.39
sys 0.36

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.7496       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.964       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11318       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .45595E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.769       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10737E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    110.44       1.0000         .10000E-03   10000.    
     8 'norm      '    .48933E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .17909E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.3445       1.0000         .10000E-03   10000.    
    11 'norm      '    .10262E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .11892E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .45787E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .23247E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.0182       1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.643       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .10005E-01   1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0818       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=   948.4824     FROM MIGRAD    STATUS=CONVERGED    320 CALLS     1158 TOTAL
                     EDM=   .29E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .43271E-01    1.2354        .13281E-05    .15316E-03
   2  Prefactor    10000.0        7389.7       -.26335E-04** at limit **
   3  Prefactor     .10000E-03    228.81       -.46703E-05** at limit **
   4  Prefactor     .10000E-03    199.91        .76116E-05** at limit **
   5  Prefactor    10000.0        6694.3       -.53028E-04** at limit **
   6  Prefactor     .10000E-03    64.171        .19622E-05** at limit **
   7  Prefactor     .10000E-03    383.51       -.16651E-04** at limit **
   8  norm          .10000E-03    5.7661        .68206E-07** at limit **
   9  Prefactor     .10000E-03    123.67       -.34716E-06** at limit **
  10  Prefactor     7.0390        34.125       -.39737E-05    .17002E-04
  11  norm          .10000E-03    5.0922       -.53858E-06** at limit **
  12  norm          .10000E-03    61.834        .72769E-06** at limit **
  13  Prefactor     .10000E-03    11.188        .19535E-07** at limit **
  14  Prefactor     .10000E-03    5.5062       -.32734E-06** at limit **
  15  norm          1.3458        45.403       -.51774E-05    .27594E-04
  16  Prefactor     20.247        16.469       -.56897E-06   -.70457E-05
  17  Normalizat    .10000E-01    .60766        .11704E-04** at limit **
  18  Prefactor     1.0113        .14806        .62847E-06    .26626E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0432709
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.03899
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.3458
  Prefactor  = 20.2467
  Normalizat = 0.01
  Prefactor  = 1.01125
 **********
 **   18 **HESSE 
 **********

 FCN=   948.4824     FROM HESSE     STATUS=OK           270 CALLS     1428 TOTAL
                     EDM=   .64E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .43271E-01    6318.5        .36011E-02   -1.5666    
   2  Prefactor    10000.0        7409.7        .28953E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    227.73        .95739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    200.15        .92486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor    10000.0        6734.3        .30522E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    63.739        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    362.61        .95687E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.7565        .10584E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    121.60        .91123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.0390        33.336        .48313E-02   -1.5177    
  11  norm          .10000E-03    4.7585        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    60.622        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.566        .96606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.7336        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.3458        46.326        .12862E-01   -1.5476    
  16  Prefactor     20.247        16.427        .22593E-02   -1.4808    
  17  Normalizat    .10000E-01    .53573        .32150       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.0113        .15679        .38322E-01   -.92355    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.37287e-07
Minuit parameter uncertainties:
  1  108.226
  2  0.0295103
  3  0.000412649
  4  1.6814e-05
  5  0.0619826
  6  0.000144458
  7  0.0009886
  8  4.39322e-06
  9  2.35568e-05
  10  30.6643
  11  9.59571e-06
  12  9.19373e-05
  13  4.07901e-05
  14  4.03301e-06
  15  15.8046
  16  16.4306
  17  4.92068e-07
  18  0.156857
Done.

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

Extracting fit parameters...

4FGL J0430.3+1654
   Spectrum: PowerLaw
220    Prefactor:  1.000e-04  9.886e-04  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:  1.011e+00  1.569e-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  4.921e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 67.590 16.909
Photon Flux Upper Limit: 5.06e-06 ph cm-2 s-1
Energy Flux Upper Limit: 3.89e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/508906/likelihoodResults_581212801_581472001_4FGL_J0430.3+1654_daily_bin1319.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) = 948.482431034
delta logL = -1.63564347986e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 948.482416133
delta logL = -1.45521335071e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12577E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3283       1.0000          .0000       10.000    
     3 'Normalizat'    .10002E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0113       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.

 FCN=   948.4824     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      245 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5893.8        .90712E-02** at limit **
   2  Index         2.3380        6.3501        .50000       -.24091E-06
   3  Normalizat    .10000E-01    .36224        .32208    ** at limit **
   4  Prefactor     1.0113        .12883        .30474E-01    .38109E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.33803
  Normalizat = 0.01
  Prefactor  = 1.01125
 **********
 **   18 **HESSE 
 **********

 FCN=   948.4824     FROM HESSE     STATUS=OK            33 CALLS      278 TOTAL
                     EDM=   .45E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    336.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3380        6.1683        .50000       -.56143    
   3  Normalizat    .10000E-01    .46950        .13181E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0113        .13481        .13468E-03   -.92355    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.51795e-13
Minuit parameter uncertainties:
  1  0.000342159
  2  4.37361
  3  2.63119e-07
  4  0.134857
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/508906': 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) = 948.482414678
delta logL = -6.86441126163e-10

Extracting fit parameters...

4FGL J0430.3+1654
   Spectrum: PowerLaw
220    Prefactor:  1.000e-04  3.422e-04  1.000e-04  1.000e+04 ( 1.000e-13)
221        Index:  2.338e+00  4.374e+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:  1.011e+00  1.349e-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  2.631e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/508906/cmap_HighResolution_581212801_581472001_4FGL_J0430.3+1654_daily_bin1319.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.89e-01', job_status='DONE', photon_flux_upper_limit='5.06e-06', time_completed='2021-08-20 18:41:44.206403', job_id='508906', GAL2='1.01', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629510104.21', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='-6.86e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='1319' AND source_name='4FGL J0430.3+1654' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 18:41:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 508906: <4FGL_J0430.3+1654_daily_bin1319> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0430.3+1654_daily_bin1319 67.5901 16.9093 581212801 581472001 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 :                                   355.42 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             310.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   374 sec.
    Turnaround time :                            377 sec.

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

