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


Performing analysis on: 4FGL_J0430.2-0356_daily_bin1317
RA = 67.5693, Dec = -3.9458
tmin = 580694401, tmax = 580953601
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='498681', job_status='RUN', time_executed='2021-08-20 18:07:58.280175', time_epoch_executed='1629508078.28' WHERE source_name='4FGL J0430.2-0356' and cadence='daily' and bin_id='1317'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/498681

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/498681/ft1_4FGL_J0430.2-0356_daily_bin1317.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/498681/ft2_4FGL_J0430.2-0356_daily_bin1317.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/498681/ft1_4FGL_J0430.2-0356_daily_bin1317.fits outfile=/scratch/kocevski/498681/ft1_filteredMKT_4FGL_J0430.2-0356_daily_bin1317.fits ra=67.5693 dec=-3.9458 rad=12.0 tmin=580694401.0 tmax=580953601.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 10.37
user 2.60
sys 7.73

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/498681/ft2_4FGL_J0430.2-0356_daily_bin1317.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/498681/ft1_filteredMKT_4FGL_J0430.2-0356_daily_bin1317.fits evtable="EVENTS" outfile="/scratch/kocevski/498681/ft1_filtered_4FGL_J0430.2-0356_daily_bin1317.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 8.05
user 0.35
sys 7.68

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/498681/ft1_filtered_4FGL_J0430.2-0356_daily_bin1317.fits" evtable="EVENTS" scfile=/scratch/kocevski/498681/ft2_4FGL_J0430.2-0356_daily_bin1317.fits sctable="SC_DATA" outfile=/scratch/kocevski/498681/ltcube_580694401_580953601_4FGL_J0430.2-0356_daily_bin1317.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/498681/ft2_4FGL_J0430.2-0356_daily_bin1317.fits
.....................!
real 21.36
user 12.57
sys 8.74

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/498681/ft1_filtered_4FGL_J0430.2-0356_daily_bin1317.fits evtable="EVENTS" scfile=/scratch/kocevski/498681/ft2_4FGL_J0430.2-0356_daily_bin1317.fits sctable="SC_DATA" expcube=/scratch/kocevski/498681/ltcube_580694401_580953601_4FGL_J0430.2-0356_daily_bin1317.fits outfile=/scratch/kocevski/498681/expmap_580694401_580953601_4FGL_J0430.2-0356_daily_bin1317.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/498681/ltcube_580694401_580953601_4FGL_J0430.2-0356_daily_bin1317.fits
.....................!
real 198.71
user 185.19
sys 13.17

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/498681/ft1_filtered_4FGL_J0430.2-0356_daily_bin1317.fits scfile=/scratch/kocevski/498681/ft2_4FGL_J0430.2-0356_daily_bin1317.fits outfile=/scratch/kocevski/498681/cmap_580694401_580953601_4FGL_J0430.2-0356_daily_bin1317.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 7.63
user 0.39
sys 7.20

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/498681/ft1_filtered_4FGL_J0430.2-0356_daily_bin1317.fits scfile=/scratch/kocevski/498681/ft2_4FGL_J0430.2-0356_daily_bin1317.fits outfile=/scratch/kocevski/498681/cmap_HighResolution_580694401_580953601_4FGL_J0430.2-0356_daily_bin1317.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 7.92
user 0.37
sys 7.53

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/498681/ft1_filtered_4FGL_J0430.2-0356_daily_bin1317.fits evtable="EVENTS" scfile=/scratch/kocevski/498681/ft2_4FGL_J0430.2-0356_daily_bin1317.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/498681/Model_4FGL_J0430.2-0356_daily_bin1317.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/498681/ft1_filtered_4FGL_J0430.2-0356_daily_bin1317.fits.....................!
real 83.65
user 72.66
sys 10.81

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/498681/ft1_filtered_4FGL_J0430.2-0356_daily_bin1317.fits', '/scratch/kocevski/498681/ft2_4FGL_J0430.2-0356_daily_bin1317.fits', expMap='/scratch/kocevski/498681/expmap_580694401_580953601_4FGL_J0430.2-0356_daily_bin1317.fits', expCube='/scratch/kocevski/498681/ltcube_580694401_580953601_4FGL_J0430.2-0356_daily_bin1317.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/498681/Model_4FGL_J0430.2-0356_daily_bin1317.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/498681/ft1_filtered_4FGL_J0430.2-0356_daily_bin1317.fits
Spacecraft file(s): /scratch/kocevski/498681/ft2_4FGL_J0430.2-0356_daily_bin1317.fits
Exposure map: /scratch/kocevski/498681/expmap_580694401_580953601_4FGL_J0430.2-0356_daily_bin1317.fits
Exposure cube: /scratch/kocevski/498681/ltcube_580694401_580953601_4FGL_J0430.2-0356_daily_bin1317.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/498681/Model_4FGL_J0430.2-0356_daily_bin1317.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) = 4703.04969419

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.139       1.0000         .10000E-03   10000.    
     2 'norm      '    8.8868       1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.362       1.0000         .10000E-03   10000.    
     4 'norm      '    .21909E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.9012       1.0000         .10000E-03   10000.    
     6 'norm      '    .10344E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    48.869       1.0000         .10000E-03   10000.    
    10 'Prefactor '    167.47       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.2642       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .96833       1.0000         .10000E-03   10000.    
    15 'Prefactor '    87.858       1.0000         .10000E-03   10000.    
    16 'norm      '    15.591       1.0000         .10000E-03   10000.    
    17 'Prefactor '    57.151       1.0000         .10000E-03   10000.    
    18 'norm      '    .10662E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .99377       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0070       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4920E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4703.031     FROM MIGRAD    STATUS=CONVERGED     76 CALLS     1744 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 15.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.137        3.5752        .61737E-05    .53211E-02
   2  norm          8.8872        1.0508       -.75932E-06   -.80564E-04
   3  Prefactor     23.355        2.7976       -.38935E-05    .20625E-02
   4  norm          .10000E-03    15.005       -.28232E-05** at limit **
   5  norm          6.9004        1.0672       -.10289E-05   -.69271E-03
   6  norm          .10027E-03    74.088        .75565E-04** at limit **
   7  norm          .10000E-03    1.1933       -.34014E-06** at limit **
   8  Prefactor     .10000E-03    8.9771       -.37413E-05** at limit **
   9  Prefactor     48.861        3.8167       -.38068E-05    .38699E-02
  10  Prefactor     167.47        1.1366       -.30338E-06    .87873E-03
  11  Prefactor     .10000E-03    10.913        .71191E-05** at limit **
  12  norm          1.2748        2.4429       -.11826E-04   -.17703E-02
  13  Prefactor     .10001E-03    7.4162        .33902E-05** at limit **
  14  norm          .97136        5.8566       -.16320E-05    .22888E-03
  15  Prefactor     87.853        2.5116       -.17743E-05    .28134E-02
  16  norm          15.591        5.4840        .35567E-05   -.21551E-03
  17  Prefactor     57.154        1.4108        .98725E-06   -.13710E-02
  18  norm          .10032E-03    90.745       -.10187E-03** at limit **
  19  Normalizat    .99425        .29557       -.11392E-04   -.42774E-03
  20  Prefactor     1.0067        .14729        .30776E-05   -.72749E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.1371
  norm       = 8.88716
  Prefactor  = 23.3546
  norm       = 0.000100002
  norm       = 6.90042
  norm       = 0.000100269
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 48.8612
  Prefactor  = 167.467
  Prefactor  = 0.000100001
  norm       = 1.27481
  Prefactor  = 0.00010001
  norm       = 0.971357
  Prefactor  = 87.8531
  norm       = 15.5914
  Prefactor  = 57.1537
  norm       = 0.000100317
  Normalizat = 0.994246
  Prefactor  = 1.0067
 **********
 **   18 **HESSE 
 **********

 FCN=   4703.031     FROM HESSE     STATUS=OK           351 CALLS     2095 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.137        11.365        .26630E-02   -1.4956    
   2  norm          8.8872        16.764        .33613E-02   -1.5112    
   3  Prefactor     23.355        48.943        .20718E-02   -1.4741    
   4  norm          .10000E-03    4.2594        .47896E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.9004        11.207        .38180E-02   -1.5183    
   6  norm          .10027E-03    79.190        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .75764        .31708E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.6189        .53142E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     48.861        164.90        .14341E-02   -1.4309    
  10  Prefactor     167.47        126.34        .77929E-03   -1.3113    
  11  Prefactor     .10000E-03    10.823        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.2748        89.135        .99081E-02   -1.5482    
  13  Prefactor     .10001E-03    7.4261        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .97136        6.4746        .13053E-01   -1.5511    
  15  Prefactor     87.853        64.768        .10716E-02   -1.3831    
  16  norm          15.591        5.7209        .25359E-02   -1.4918    
  17  Prefactor     57.154        46.645        .13266E-02   -1.4195    
  18  norm          .10032E-03    99.028        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .99425        .28197        .85964E-01   -.93223    
  20  Prefactor     1.0067        .13589        .43813E-01   -.92506    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56414e-06
Minuit parameter uncertainties:
  1  11.3665
  2  16.7733
  3  49.0269
  4  0.000190171
  5  11.2102
  6  0.00924418
  7  1.47816e-05
  8  0.000128968
  9  166.474
  10  126.545
  11  0.000169634
  12  21.3519
  13  0.00054153
  14  5.01617
  15  64.8204
  16  5.72107
  17  46.6753
  18  0.0112308
  19  0.282391
  20  0.135933
Done.

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

Extracting fit parameters...

4FGL J0430.2-0356
   Spectrum: PowerLaw
222    Prefactor:  1.000e-04  1.696e-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.007e+00  1.359e-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.942e-01  2.824e-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: 1.55e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.22e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/498681/likelihoodResults_580694401_580953601_4FGL_J0430.2-0356_daily_bin1317.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) = 4703.03130034
delta logL = -0.000436275600805

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4703.03086449
delta logL = -4.25317011832e-07

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4703.031     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      240 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10020E-03    342.01        .18142E-02** at limit **
   2  Index         2.7279        7.8619        .50000       -.29778E-05
   3  Normalizat    .99425        .43753E-01    .38062E-03    .28973E-05
   4  Prefactor     1.0067        .22007E-01    .18901E-03    .55699E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100201
  Index      = 2.7279
  Normalizat = 0.99425
  Prefactor  = 1.0067
 **********
 **   18 **HESSE 
 **********

 FCN=   4703.031     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10020E-03    1363.7        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7279        5.6456        .50000       -.47172    
   3  Normalizat    .99425        .10426        .15225E-04   -.93223    
   4  Prefactor     1.0067        .52445E-01    .37801E-04   -.92506    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.57122e-09
Minuit parameter uncertainties:
  1  0.0339236
  2  2321.53
  3  0.104286
  4  0.0524479
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/498681': 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) = 4703.03086405
delta logL = 2.17842170969e-08

Extracting fit parameters...

4FGL J0430.2-0356
   Spectrum: PowerLaw
222    Prefactor:  1.002e-04  3.392e-02  1.000e-04  1.000e+04 ( 1.000e-12)
223        Index:  2.728e+00  2.322e+03  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.007e+00  5.245e-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:  9.943e-01  1.043e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 67.569 -3.946

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/498681/cmap_HighResolution_580694401_580953601_4FGL_J0430.2-0356_daily_bin1317.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.22e-02', job_status='DONE', photon_flux_upper_limit='1.55e-07', time_completed='2021-08-20 18:18:04.347271', job_id='498681', GAL2='1.01', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1629508684.35', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='2.18e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.69' WHERE bin_id='1317' AND source_name='4FGL J0430.2-0356' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 18:18:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0006>
Subject: Job 498681: <4FGL_J0430.2-0356_daily_bin1317> in cluster <slac> Done

Job <4FGL_J0430.2-0356_daily_bin1317> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Aug 20 18:05:38 2021
Job was executed on host(s) <bullet0006>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 18:05:39 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:05:39 2021
Terminated at Fri Aug 20 18:18:08 2021
Results reported at Fri Aug 20 18:18:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0430.2-0356_daily_bin1317 67.5693 -3.9458 580694401 580953601 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 :                                   718.47 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             247.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   746 sec.
    Turnaround time :                            750 sec.

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

