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


Performing analysis on: 4FGL_J0430.3+1654_daily_bin1495
RA = 67.5901, Dec = 16.9093
tmin = 626832001, tmax = 627091201
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='510368', job_status='RUN', time_executed='2021-08-20 18:44:24.383471', time_epoch_executed='1629510264.38' WHERE source_name='4FGL J0430.3+1654' and cadence='daily' and bin_id='1495'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/510368

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/510368/ft1_4FGL_J0430.3+1654_daily_bin1495.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/510368/ft2_4FGL_J0430.3+1654_daily_bin1495.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/510368/ft1_4FGL_J0430.3+1654_daily_bin1495.fits outfile=/scratch/kocevski/510368/ft1_filteredMKT_4FGL_J0430.3+1654_daily_bin1495.fits ra=67.5901 dec=16.9093 rad=12.0 tmin=626832001.0 tmax=627091201.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 5.36
user 2.77
sys 2.57

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/510368/ft1_filtered_4FGL_J0430.3+1654_daily_bin1495.fits" evtable="EVENTS" scfile=/scratch/kocevski/510368/ft2_4FGL_J0430.3+1654_daily_bin1495.fits sctable="SC_DATA" outfile=/scratch/kocevski/510368/ltcube_626832001_627091201_4FGL_J0430.3+1654_daily_bin1495.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/510368/ft2_4FGL_J0430.3+1654_daily_bin1495.fits
.....................!
real 15.54
user 12.45
sys 3.06

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/510368/ft1_filtered_4FGL_J0430.3+1654_daily_bin1495.fits evtable="EVENTS" scfile=/scratch/kocevski/510368/ft2_4FGL_J0430.3+1654_daily_bin1495.fits sctable="SC_DATA" expcube=/scratch/kocevski/510368/ltcube_626832001_627091201_4FGL_J0430.3+1654_daily_bin1495.fits outfile=/scratch/kocevski/510368/expmap_626832001_627091201_4FGL_J0430.3+1654_daily_bin1495.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/510368/ltcube_626832001_627091201_4FGL_J0430.3+1654_daily_bin1495.fits
.....................!
real 194.44
user 186.87
sys 7.24

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/510368/ft1_filtered_4FGL_J0430.3+1654_daily_bin1495.fits scfile=/scratch/kocevski/510368/ft2_4FGL_J0430.3+1654_daily_bin1495.fits outfile=/scratch/kocevski/510368/cmap_626832001_627091201_4FGL_J0430.3+1654_daily_bin1495.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.93
user 0.37
sys 2.53

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/510368/ft1_filtered_4FGL_J0430.3+1654_daily_bin1495.fits scfile=/scratch/kocevski/510368/ft2_4FGL_J0430.3+1654_daily_bin1495.fits outfile=/scratch/kocevski/510368/cmap_HighResolution_626832001_627091201_4FGL_J0430.3+1654_daily_bin1495.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.74
user 0.39
sys 2.33

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/510368/ft1_filtered_4FGL_J0430.3+1654_daily_bin1495.fits', '/scratch/kocevski/510368/ft2_4FGL_J0430.3+1654_daily_bin1495.fits', expMap='/scratch/kocevski/510368/expmap_626832001_627091201_4FGL_J0430.3+1654_daily_bin1495.fits', expCube='/scratch/kocevski/510368/ltcube_626832001_627091201_4FGL_J0430.3+1654_daily_bin1495.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/510368/Model_4FGL_J0430.3+1654_daily_bin1495.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/510368/ft1_filtered_4FGL_J0430.3+1654_daily_bin1495.fits
Spacecraft file(s): /scratch/kocevski/510368/ft2_4FGL_J0430.3+1654_daily_bin1495.fits
Exposure map: /scratch/kocevski/510368/expmap_626832001_627091201_4FGL_J0430.3+1654_daily_bin1495.fits
Exposure cube: /scratch/kocevski/510368/ltcube_626832001_627091201_4FGL_J0430.3+1654_daily_bin1495.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/510368/Model_4FGL_J0430.3+1654_daily_bin1495.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 929.702945309

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 926.794695216

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.8549       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.9858       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.3461       1.0000         .10000E-03   10000.    
     4 'Prefactor '    282.55       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .27563E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.4705       1.0000         .10000E-03   10000.    
     7 'Prefactor '    82.042       1.0000         .10000E-03   10000.    
     8 'norm      '    .18259E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    314.35       1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.906       1.0000         .10000E-03   10000.    
    11 'norm      '    9.7084       1.0000         .10000E-03   10000.    
    12 'norm      '    .42833       1.0000         .10000E-03   10000.    
    13 'Prefactor '    52.246       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .35501E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .36954       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .74838       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=   926.7731     FROM MIGRAD    STATUS=CONVERGED    169 CALLS      482 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.8549        1.0020         .0000         .0000    
   2  Prefactor     .29878        1926.4       -.44701E-04   -.80316E-02
   3  Prefactor     .11316E-03    639.56       -.71328E-05** at limit **
   4  Prefactor     300.28        255.10        .65264E-05   -.44718E-01
   5  Prefactor     .10000E-03    283.16        .38587E-06** at limit **
   6  Prefactor     .10047E-03    299.41       -.45943E-05** at limit **
   7  Prefactor     82.117        13.201       -.16142E-05   -.21813E-01
   8  norm          .10000E-03    33.320       -.37823E-06** at limit **
   9  Prefactor     307.02        99.496       -.25431E-05    .12513E-01
  10  Prefactor     30.462        57.919        .11268E-04   -.51495E-02
  11  norm          9.7292        12.653        .11819E-05    .53448E-04
  12  norm          .10001E-03    218.11        .44422E-06** at limit **
  13  Prefactor     52.364        48.856        .39491E-05   -.32158E-02
  14  Prefactor     .10000E-03    6.9755       -.96719E-07** at limit **
  15  norm          .10000E-03    75.086        .36557E-05** at limit **
  16  Prefactor     .10000E-03    8.5511       -.17521E-06** at limit **
  17  Normalizat    .35854        1.9577       -.16230E-03   -.69999E-05
  18  Prefactor     .74977        .24148        .14168E-04    .33586E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.85489
  Prefactor  = 0.298783
  Prefactor  = 0.00011316
  Prefactor  = 300.275
  Prefactor  = 0.000100004
  Prefactor  = 0.000100469
  Prefactor  = 82.1169
  norm       = 0.0001
  Prefactor  = 307.025
  Prefactor  = 30.4618
  norm       = 9.72924
  norm       = 0.000100006
  Prefactor  = 52.3637
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.358545
  Prefactor  = 0.749771
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   926.7731     FROM HESSE     STATUS=FAILED        11 CALLS      493 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          506.37        498.48         .0000       -1.5147    
   2  Prefactor     .29878        .19385       -.44701E-04   -1.5817    
   3  Prefactor     .11316E-03    .34216E-01   -.71328E-05   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     300.28        1.0299        .65264E-05   -1.2225    
   5  Prefactor     .10000E-03    .20976        .38587E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10047E-03    .33642E-01   -.45943E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     82.117        1.0005       -.16142E-05   -1.3893    
   8  norm          .10000E-03    .20571       -.37823E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     307.02        .98865       -.25431E-05   -1.2185    
  10  Prefactor     30.462        1.0094        .11268E-04   -1.4604    
  11  norm          9.7292        1.0024        .11819E-05   -1.5084    
  12  norm          .10001E-03    .30110        .44422E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     52.364        1.0012        .39491E-05   -1.4259    
  14  Prefactor     .10000E-03    .20571       -.96719E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .24104        .36557E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .20571       -.17521E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .35854        .67460       -.16230E-03   -1.1950    
  18  Prefactor     .74977        1.0988        .14168E-04   -1.0161    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.35517e-09
Minuit parameter uncertainties:
  1  1.00204
  2  0.193853
  3  0.00134207
  4  1.02995
  5  5.91097e-05
  6  0.000251111
  7  1.00047
  8  5.1142e-06
  9  0.988649
  10  1.00936
  11  1.00241
  12  8.22669e-05
  13  1.00116
  14  2.65002e-08
  15  7.94793e-06
  16  1.84097e-07
  17  0.690833
  18  1.13352
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 926.773070377

Extracting fit parameters...

4FGL J0430.3+1654
   Spectrum: PowerLaw
220    Prefactor:  8.212e+01  1.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

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  7.498e-01  1.134e+00  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:  3.585e-01  6.908e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.25
Ra Dec: 67.590 16.909
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 3.84e-07 +/- 4.67e-09
Energy Flux (Fixed Index): 1.35e-04 +/- 1.64e-06

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

Saving results to:
/scratch/kocevski/510368/likelihoodResults_626832001_627091201_4FGL_J0430.3+1654_daily_bin1495.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) = 926.738284846
delta logL = 0.0347855313879

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 926.737572883
delta logL = 0.0354974935771

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    57.070       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6585       1.0000          .0000       10.000    
     3 'Normalizat'    .31286       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75369       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=   926.7376     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      297 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     56.943        129.03        .26551E-03   -.33698E-04
   2  Index         2.6564        1.2940        .42332E-02   -.19261E-04
   3  Normalizat    .31226        1.5570        .12450E-01    .84251E-05
   4  Prefactor     .75420        .23111        .13508E-03   -.15547E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 56.9432
  Index      = 2.65639
  Normalizat = 0.312263
  Prefactor  = 0.754203
 **********
 **   18 **HESSE 
 **********

 FCN=   926.7376     FROM HESSE     STATUS=OK            27 CALLS      324 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     56.943        119.36        .10621E-04   -1.4197    
   2  Index         2.6564        1.1971        .16933E-03   -.48784    
   3  Normalizat    .31226        1.4563        .49800E-03   -1.2211    
   4  Prefactor     .75420        .22332        .27017E-04   -1.0144    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.42779e-10
Minuit parameter uncertainties:
  1  119.871
  2  1.21231
  3  1.38568
  4  0.223588
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/510368': 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) = 926.737558062
delta logL = 0.0355123150259

Extracting fit parameters...

4FGL J0430.3+1654
   Spectrum: PowerLaw
220    Prefactor:  5.694e+01  1.199e+02  1.000e-04  1.000e+04 ( 1.000e-13)
221        Index:  2.656e+00  1.212e+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:  7.542e-01  2.236e-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:  3.123e-01  1.386e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.33
Ra Dec: 67.590 16.909
Photon Index (Free Index): 2.66 +/- 1.21
Photon Flux (Free Index): 5.03e-07 +/- 7.63e-07
Energy Flux (Free Index): 1.25e-04 +/- 1.55e-04

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/510368/cmap_HighResolution_626832001_627091201_4FGL_J0430.3+1654_daily_bin1495.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.40e-01', comment='SUCCESS', photon_flux='3.84e-07', energy_flux2='1.25e-04', photon_flux_error='4.67e-09', dlogl='3.55e-02', energy_flux='1.35e-04', photon_flux2='5.03e-07', job_status='DONE', time_completed='2021-08-20 18:50:41.124940', photon_index_error2='1.21', photon_index2='2.66', ts='1.25', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', photon_flux_upper_limit='1.82e-06', energy_flux_error2='1.55e-04', EG='0.36', time_epoch_completed='1629510641.13', return_code='101', job_id='510368', GAL2='0.75', EG2='0.31', return_code2='0', energy_flux_error='1.64e-06', photon_flux_error2='7.63e-07', ts2='1.33', photon_index='2.35' WHERE bin_id='1495' AND source_name='4FGL J0430.3+1654' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 18:50:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 510368: <4FGL_J0430.3+1654_daily_bin1495> in cluster <slac> Done

Job <4FGL_J0430.3+1654_daily_bin1495> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 20 18:40:30 2021
Job was executed on host(s) <bullet0295>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 18:40:31 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:40:31 2021
Terminated at Fri Aug 20 18:50:42 2021
Results reported at Fri Aug 20 18:50:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0430.3+1654_daily_bin1495 67.5901 16.9093 626832001 627091201 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 :                                   408.05 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             176.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   610 sec.
    Turnaround time :                            612 sec.

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

