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


Performing analysis on: 4FGL_J1730.6+0024_daily_bin667
RA = 262.663, Dec = 0.4095
tmin = 412214401, tmax = 412473601
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='786715', job_status='RUN', time_executed='2021-09-17 15:23:13.117640', time_epoch_executed='1631917393.12' WHERE source_name='4FGL J1730.6+0024' and cadence='daily' and bin_id='667'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/786715

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/786715/ft1_4FGL_J1730.6+0024_daily_bin667.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/786715/ft2_4FGL_J1730.6+0024_daily_bin667.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/786715/ft1_4FGL_J1730.6+0024_daily_bin667.fits outfile=/scratch/kocevski/786715/ft1_filteredMKT_4FGL_J1730.6+0024_daily_bin667.fits ra=262.663 dec=0.4095 rad=12.0 tmin=412214401.0 tmax=412473601.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.39
user 3.18
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/786715/ft2_4FGL_J1730.6+0024_daily_bin667.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/786715/ft2_4FGL_J1730.6+0024_daily_bin667.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/786715/ft1_filteredMKT_4FGL_J1730.6+0024_daily_bin667.fits evtable="EVENTS" outfile="/scratch/kocevski/786715/ft1_filtered_4FGL_J1730.6+0024_daily_bin667.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/786715/ft1_filtered_4FGL_J1730.6+0024_daily_bin667.fits" evtable="EVENTS" scfile=/scratch/kocevski/786715/ft2_4FGL_J1730.6+0024_daily_bin667.fits sctable="SC_DATA" outfile=/scratch/kocevski/786715/ltcube_412214401_412473601_4FGL_J1730.6+0024_daily_bin667.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/786715/ft2_4FGL_J1730.6+0024_daily_bin667.fits
.....................!
real 11.87
user 11.50
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/786715/ft1_filtered_4FGL_J1730.6+0024_daily_bin667.fits evtable="EVENTS" scfile=/scratch/kocevski/786715/ft2_4FGL_J1730.6+0024_daily_bin667.fits sctable="SC_DATA" expcube=/scratch/kocevski/786715/ltcube_412214401_412473601_4FGL_J1730.6+0024_daily_bin667.fits outfile=/scratch/kocevski/786715/expmap_412214401_412473601_4FGL_J1730.6+0024_daily_bin667.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/786715/ltcube_412214401_412473601_4FGL_J1730.6+0024_daily_bin667.fits
.....................!
real 190.92
user 185.72
sys 4.62

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 FHES J1723.5-0501 in ROI with RadialGaussian spatial model.
Extended source G24.7+0.6 in ROI with RadialDisk spatial model.
Extended source HESS J1813-178 in ROI with RadialDisk spatial model.
Extended source HESS J1825-137 in ROI with RadialGaussian spatial model.
Extended source W 41 in ROI with RadialGaussian spatial model.
Extended source FGES J1836.5-0651 in ROI with RadialDisk spatial model.
Extended source FGES J1838.9-0704 in ROI with RadialDisk spatial model.
Extended source Kes 73 in ROI with RadialDisk spatial model.
Extended source HESS J1841-055 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/HESSJ1841-055.fits is the correct path to the extended template.
Extended source Kes 79 in ROI with RadialDisk spatial model.
Extended source W 44 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W44.fits is the correct path to the extended template.
Extended source HESS J1857+026 in ROI with RadialDisk spatial model.
Added 286 point sources and 12 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 J1730.6+0024 @ 262.663 0.4095

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/786715/ft1_filtered_4FGL_J1730.6+0024_daily_bin667.fits scfile=/scratch/kocevski/786715/ft2_4FGL_J1730.6+0024_daily_bin667.fits outfile=/scratch/kocevski/786715/cmap_412214401_412473601_4FGL_J1730.6+0024_daily_bin667.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=262.663 yref=0.4095 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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/786715/ft1_filtered_4FGL_J1730.6+0024_daily_bin667.fits scfile=/scratch/kocevski/786715/ft2_4FGL_J1730.6+0024_daily_bin667.fits outfile=/scratch/kocevski/786715/cmap_HighResolution_412214401_412473601_4FGL_J1730.6+0024_daily_bin667.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=262.663 yref=0.4095 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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/786715/ft1_filtered_4FGL_J1730.6+0024_daily_bin667.fits evtable="EVENTS" scfile=/scratch/kocevski/786715/ft2_4FGL_J1730.6+0024_daily_bin667.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/786715/Model_4FGL_J1730.6+0024_daily_bin667.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 FGES J1836.5-0651
adding source FGES J1838.9-0704
adding source FHES J1723.5-0501
adding source G24.7+0.6
adding source GAL_V02
adding source HESS J1813-178
adding source HESS J1825-137
adding source HESS J1841-055
adding source HESS J1857+026
adding source Kes 73
adding source Kes 79
adding source W 41
adding source W 44
Working on...
/scratch/kocevski/786715/ft1_filtered_4FGL_J1730.6+0024_daily_bin667.fits......................!
real 63.96
user 62.61
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/786715/ft1_filtered_4FGL_J1730.6+0024_daily_bin667.fits', '/scratch/kocevski/786715/ft2_4FGL_J1730.6+0024_daily_bin667.fits', expMap='/scratch/kocevski/786715/expmap_412214401_412473601_4FGL_J1730.6+0024_daily_bin667.fits', expCube='/scratch/kocevski/786715/ltcube_412214401_412473601_4FGL_J1730.6+0024_daily_bin667.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/786715/Model_4FGL_J1730.6+0024_daily_bin667.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1730.6+0024'

4FGL J1730.6+0024
   Spectrum: LogParabola
264         norm:  1.088e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
265        alpha:  2.084e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
266         beta:  1.480e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
267           Eb:  1.239e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/786715/ft1_filtered_4FGL_J1730.6+0024_daily_bin667.fits
Spacecraft file(s): /scratch/kocevski/786715/ft2_4FGL_J1730.6+0024_daily_bin667.fits
Exposure map: /scratch/kocevski/786715/expmap_412214401_412473601_4FGL_J1730.6+0024_daily_bin667.fits
Exposure cube: /scratch/kocevski/786715/ltcube_412214401_412473601_4FGL_J1730.6+0024_daily_bin667.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/786715/Model_4FGL_J1730.6+0024_daily_bin667.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) = 2990.60578594

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.945       1.0000         .10000E-03   10000.    
     4 'Prefactor '    756.80       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.815       1.0000         .10000E-03   10000.    
     6 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    90.855       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.553       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.8794       1.0000         .10000E-03   10000.    
    14 'norm      '    17.947       1.0000         .10000E-03   10000.    
    15 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    16 'Prefactor '    .85530       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1076E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2990.604     FROM MIGRAD    STATUS=CONVERGED    303 CALLS     1723 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.5503       -.19663E-07** at limit **
   2  Prefactor     .10000E-03    467.29       -.46545E-06** at limit **
   3  Prefactor     18.948        16.300        .61039E-07   -.67034E-04
   4  Prefactor     756.80        651.75        .30923E-06    .64216E-05
   5  Prefactor     15.815        24.296        .33952E-06    .13824E-03
   6  norm          .10000E-03    5.9971        .31510E-07** at limit **
   7  Prefactor     90.800        162.02        .14910E-05    .21722E-04
   8  Prefactor     10.555        7.2544        .26825E-06    .40840E-03
   9  norm          .10000E-03    8.3980       -.20740E-06** at limit **
  10  norm          .10000E-03    2.8894       -.33867E-08** at limit **
  11  norm          .10000E-03    20.067       -.12068E-05** at limit **
  12  norm          .10000E-03    8.1439       -.84898E-08** at limit **
  13  norm          3.8797        1.7183        .87191E-07    .92503E-03
  14  norm          17.946        16.938        .38187E-07    .11186E-03
  15  Normalizat    .10000E-01    .26426       -.19780E-04** at limit **
  16  Prefactor     .85536        .68813E-01    .11067E-05    .61673E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 18.9483
  Prefactor  = 756.803
  Prefactor  = 15.8152
  norm       = 0.0001
  Prefactor  = 90.8
  Prefactor  = 10.5548
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 3.87967
  norm       = 17.9465
  Normalizat = 0.01
  Prefactor  = 0.855365
 **********
 **   18 **HESSE 
 **********

 FCN=   2990.604     FROM HESSE     STATUS=OK           197 CALLS     1920 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.5522        .12584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    467.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     18.948        16.238        .92018E-04   -1.4837    
   4  Prefactor     756.80        651.95        .75619E-04   -1.0134    
   5  Prefactor     15.815        24.290        .10071E-03   -1.4912    
   6  norm          .10000E-03    5.9978        .13078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     90.800        162.42        .21079E-03   -1.3799    
   8  Prefactor     10.555        7.2718        .11114E-03   -1.5058    
   9  norm          .10000E-03    8.4081        .15476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.8908        .90790E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    20.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    8.1479        .15244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.8797        1.7289        .45014E-04   -1.5314    
  14  norm          17.946        16.968        .94541E-04   -1.4860    
  15  Normalizat    .10000E-01    .37000        .16422E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .85536        .72730E-01    .12394E-03   -.97719    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.00739e-10
Minuit parameter uncertainties:
  1  3.56193e-06
  2  0.00105732
  3  16.242
  4  658.739
  5  24.3054
  6  9.31872e-06
  7  163.221
  8  7.27238
  9  3.47689e-05
  10  7.06029e-07
  11  0.000261588
  12  1.02738e-05
  13  1.72888
  14  16.9726
  15  1.22429e-05
  16  0.0727385
Done.

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

Extracting fit parameters...

4FGL J1730.6+0024
   Spectrum: LogParabola
264         norm:  1.000e-04  7.060e-07  1.000e-04  1.000e+04 ( 1.000e-12)
265        alpha:  2.084e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
266         beta:  1.480e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
267           Eb:  1.239e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1045    Prefactor:  8.554e-01  7.274e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1046        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1047        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1031   Normalization:  1.000e-02  1.224e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 262.663 0.409
Photon Flux Upper Limit: 1.81e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.04e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/786715/likelihoodResults_412214401_412473601_4FGL_J1730.6+0024_daily_bin667.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) = 2990.60546568
delta logL = -0.00164268371918

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2990.60382377
delta logL = -7.74153704697e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0700       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85528       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1076E+06   .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=   2990.604     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      247 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    195.10        .91479E-02** at limit **
   2  alpha         1.5993        3.2914        .16779       -.86726E-08
   3  Normalizat    .10000E-01    .49799E-01    .16444E-01** at limit **
   4  Prefactor     .85536        .23700E-01    .12394E-03    .22765E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.59929
  Normalizat = 0.01
  Prefactor  = 0.855364
 **********
 **   18 **HESSE 
 **********

 FCN=   2990.604     FROM HESSE     STATUS=OK            23 CALLS      270 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.3375        .97519E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5993        3.7764        .67117E-02   -.36857    
   3  Normalizat    .10000E-01    .37013        .32889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .85536        .64903E-01    .24789E-04   -.97719    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.97082e-10
Minuit parameter uncertainties:
  1  1.73713e-05
  2  227.947
  3  1.42253e-05
  4  0.0649085
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/786715': 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) = 2990.6038207
delta logL = 2.30155410463e-06

Extracting fit parameters...

4FGL J1730.6+0024
   Spectrum: LogParabola
264         norm:  1.000e-04  1.737e-05  1.000e-04  1.000e+04 ( 1.000e-12)
265        alpha:  1.599e+00  2.279e+02  0.000e+00  5.000e+00 ( 1.000e+00)
266         beta:  1.480e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
267           Eb:  1.239e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1045    Prefactor:  8.554e-01  6.491e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1046        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1047        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1031   Normalization:  1.000e-02  1.423e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 262.663 0.409

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/786715/cmap_HighResolution_412214401_412473601_4FGL_J1730.6+0024_daily_bin667.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-04', job_status='DONE', photon_flux_upper_limit='1.81e-07', time_completed='2021-09-17 15:32:22.136719', job_id='786715', GAL2='0.86', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631917942.14', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='2.30e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.08' WHERE bin_id='667' AND source_name='4FGL J1730.6+0024' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 15:32:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 786715: <4FGL_J1730.6+0024_daily_bin667> in cluster <slac> Done

Job <4FGL_J1730.6+0024_daily_bin667> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 17 15:20:20 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 15:20:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 17 15:20:21 2021
Terminated at Fri Sep 17 15:32:22 2021
Results reported at Fri Sep 17 15:32:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1730.6+0024_daily_bin667 262.663 0.4095 412214401 412473601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1730.6+0024 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   549.00 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             269.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   721 sec.
    Turnaround time :                            722 sec.

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

