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


Performing analysis on: 4FGL_J1759.1-3849_daily_bin1198
RA = 269.793, Dec = -38.8217
tmin = 549849601, tmax = 550108801
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='380772', job_status='RUN', time_executed='2021-09-19 03:03:34.962835', time_epoch_executed='1632045814.96' WHERE source_name='4FGL J1759.1-3849' and cadence='daily' and bin_id='1198'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/380772

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/380772/ft1_4FGL_J1759.1-3849_daily_bin1198.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/380772/ft2_4FGL_J1759.1-3849_daily_bin1198.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/380772/ft1_4FGL_J1759.1-3849_daily_bin1198.fits outfile=/scratch/kocevski/380772/ft1_filteredMKT_4FGL_J1759.1-3849_daily_bin1198.fits ra=269.793 dec=-38.8217 rad=12.0 tmin=549849601.0 tmax=550108801.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 2.51
user 2.30
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/380772/ft2_4FGL_J1759.1-3849_daily_bin1198.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/380772/ft2_4FGL_J1759.1-3849_daily_bin1198.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/380772/ft1_filteredMKT_4FGL_J1759.1-3849_daily_bin1198.fits evtable="EVENTS" outfile="/scratch/kocevski/380772/ft1_filtered_4FGL_J1759.1-3849_daily_bin1198.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/380772/ft1_filtered_4FGL_J1759.1-3849_daily_bin1198.fits" evtable="EVENTS" scfile=/scratch/kocevski/380772/ft2_4FGL_J1759.1-3849_daily_bin1198.fits sctable="SC_DATA" outfile=/scratch/kocevski/380772/ltcube_549849601_550108801_4FGL_J1759.1-3849_daily_bin1198.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/380772/ft2_4FGL_J1759.1-3849_daily_bin1198.fits
.....................!
real 13.13
user 12.67
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/380772/ft1_filtered_4FGL_J1759.1-3849_daily_bin1198.fits evtable="EVENTS" scfile=/scratch/kocevski/380772/ft2_4FGL_J1759.1-3849_daily_bin1198.fits sctable="SC_DATA" expcube=/scratch/kocevski/380772/ltcube_549849601_550108801_4FGL_J1759.1-3849_daily_bin1198.fits outfile=/scratch/kocevski/380772/expmap_549849601_550108801_4FGL_J1759.1-3849_daily_bin1198.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/380772/ltcube_549849601_550108801_4FGL_J1759.1-3849_daily_bin1198.fits
.....................!
real 190.86
user 184.47
sys 5.61

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 J1741.6-3917 in ROI with RadialDisk spatial model.
Extended source FGES J1745.8-3028 in ROI with RadialDisk spatial model.
Extended source RX J1713.7-3946 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/RXJ1713_2016_250GeV.fits is the correct path to the extended template.
Extended source G337.0-0.1 in ROI with RadialDisk spatial model.
Extended source FGES J1652.2-4633 in ROI with RadialDisk spatial model.
Extended source FGES J1655.5-4737 in ROI with RadialDisk spatial model.
Extended source W 28 in ROI with RadialDisk spatial model.
Extended source HESS J1804-216 in ROI with RadialDisk spatial model.
Extended source W 30 in ROI with RadialDisk spatial model.
Extended source HESS J1616-508 in ROI with RadialDisk spatial model.
Extended source FGES J1631.6-4756 in ROI with RadialDisk spatial model.
Extended source FGES J1633.0-4746 in ROI with RadialDisk spatial model.
Extended source FHES J1642.1-5428 in ROI with RadialDisk spatial model.
Extended source HESS J1808-204 in ROI with RadialDisk spatial model.
Extended source HESS J1809-193 in ROI with RadialDisk spatial model.
Extended source HESS J1813-178 in ROI with RadialDisk spatial model.
Added 568 point sources and 16 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 J1759.1-3849 @ 269.793 -38.8217

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/380772/ft1_filtered_4FGL_J1759.1-3849_daily_bin1198.fits scfile=/scratch/kocevski/380772/ft2_4FGL_J1759.1-3849_daily_bin1198.fits outfile=/scratch/kocevski/380772/cmap_549849601_550108801_4FGL_J1759.1-3849_daily_bin1198.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=269.793 yref=-38.8217 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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/380772/ft1_filtered_4FGL_J1759.1-3849_daily_bin1198.fits scfile=/scratch/kocevski/380772/ft2_4FGL_J1759.1-3849_daily_bin1198.fits outfile=/scratch/kocevski/380772/cmap_HighResolution_549849601_550108801_4FGL_J1759.1-3849_daily_bin1198.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=269.793 yref=-38.8217 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/380772/ft1_filtered_4FGL_J1759.1-3849_daily_bin1198.fits evtable="EVENTS" scfile=/scratch/kocevski/380772/ft2_4FGL_J1759.1-3849_daily_bin1198.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/380772/Model_4FGL_J1759.1-3849_daily_bin1198.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 J1631.6-4756
adding source FGES J1633.0-4746
adding source FGES J1652.2-4633
adding source FGES J1655.5-4737
adding source FGES J1745.8-3028
adding source FHES J1642.1-5428
adding source FHES J1741.6-3917
adding source G337.0-0.1
adding source GAL_V02
adding source HESS J1616-508
adding source HESS J1804-216
adding source HESS J1808-204
adding source HESS J1809-193
adding source HESS J1813-178
adding source RX J1713.7-3946
adding source W 28
adding source W 30
Working on...
/scratch/kocevski/380772/ft1_filtered_4FGL_J1759.1-3849_daily_bin1198.fits......................!
real 73.04
user 71.59
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/380772/ft1_filtered_4FGL_J1759.1-3849_daily_bin1198.fits', '/scratch/kocevski/380772/ft2_4FGL_J1759.1-3849_daily_bin1198.fits', expMap='/scratch/kocevski/380772/expmap_549849601_550108801_4FGL_J1759.1-3849_daily_bin1198.fits', expCube='/scratch/kocevski/380772/ltcube_549849601_550108801_4FGL_J1759.1-3849_daily_bin1198.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/380772/Model_4FGL_J1759.1-3849_daily_bin1198.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1759.1-3849'

4FGL J1759.1-3849
   Spectrum: LogParabola
1427         norm:  8.337e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
1428        alpha:  2.055e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
1429         beta:  3.578e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
1430           Eb:  1.307e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/380772/ft1_filtered_4FGL_J1759.1-3849_daily_bin1198.fits
Spacecraft file(s): /scratch/kocevski/380772/ft2_4FGL_J1759.1-3849_daily_bin1198.fits
Exposure map: /scratch/kocevski/380772/expmap_549849601_550108801_4FGL_J1759.1-3849_daily_bin1198.fits
Exposure cube: /scratch/kocevski/380772/ltcube_549849601_550108801_4FGL_J1759.1-3849_daily_bin1198.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/380772/Model_4FGL_J1759.1-3849_daily_bin1198.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) = 2290.55437192

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    459.66       1.0000         .10000E-03   10000.    
     5 'Prefactor '    29.635       1.0000         .10000E-03   10000.    
     6 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10656E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    417.06       1.0000         .10000E-03   10000.    
    10 'norm      '    39.444       1.0000         .10000E-03   10000.    
    11 'norm      '    .10466E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    116.79       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Normalizat'    .60866       1.0000         .10000E-01   10.000    
    15 'Prefactor '    1.1139       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .2112E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2290.455     FROM MIGRAD    STATUS=CONVERGED    273 CALLS     1426 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    321.04        .17330E-03** at limit **
   2  norm          .10000E-03    584.87       -.34998E-03** at limit **
   3  norm          .10000E-03    25.362        .14756E-05** at limit **
   4  norm          459.68        346.15        .12522E-04   -.91662E-06
   5  Prefactor     29.642        79.456        .69051E-05    .86587E-05
   6  norm          .10000E-03    2.3857        .21900E-06** at limit **
   7  Prefactor     .10000E-03    119.09       -.34767E-04** at limit **
   8  norm          .10000E-03    17.645        .15504E-05** at limit **
   9  norm          417.11        321.30        .20495E-04    .17809E-05
  10  norm          39.439        57.775       -.11476E-05    .46231E-05
  11  norm          .10000E-03    100.75        .15096E-04** at limit **
  12  Prefactor     116.78        103.46       -.49364E-05    .69856E-05
  13  norm          .10000E-03    17.429        .11782E-05** at limit **
  14  Normalizat    .60895        1.0875       -.81427E-05   -.28707E-04
  15  Prefactor     1.1138        .15596       -.58545E-06    .63547E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 459.684
  Prefactor  = 29.6415
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 417.105
  norm       = 39.4394
  norm       = 0.0001
  Prefactor  = 116.779
  norm       = 0.0001
  Normalizat = 0.60895
  Prefactor  = 1.11384
 **********
 **   18 **HESSE 
 **********

 FCN=   2290.455     FROM HESSE     STATUS=OK           172 CALLS     1598 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    320.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    584.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    25.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          459.68        345.92        .95506E-04   -1.1386    
   5  Prefactor     29.642        78.433        .73598E-04   -1.4619    
   6  norm          .10000E-03    2.3920        .72049E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    119.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    17.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          417.11        321.57        .10004E-03   -1.1594    
  10  norm          39.439        57.780        .63821E-04   -1.4451    
  11  norm          .10000E-03    101.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     116.78        103.07        .37232E-04   -1.3542    
  13  norm          .10000E-03    17.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    .60895        .97622        .13490E-02   -1.0761    
  15  Prefactor     1.1138        .14451        .14463E-03   -.89025    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24046e-10
Minuit parameter uncertainties:
  1  1.20916e-05
  2  7.72583e-05
  3  2.03045e-05
  4  347.511
  5  78.7081
  6  1.51918e-05
  7  1.71115e-05
  8  1.21425e-05
  9  322.972
  10  57.8623
  11  0.000151454
  12  103.228
  13  4.82991e-06
  14  1.00613
  15  0.144557
Done.

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

Extracting fit parameters...

4FGL J1759.1-3849
   Spectrum: LogParabola
1427         norm:  4.597e+02  3.475e+02  1.000e-04  1.000e+04 ( 1.000e-13)
1428        alpha:  2.055e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
1429         beta:  3.578e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
1430           Eb:  1.307e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
2079    Prefactor:  1.114e+00  1.446e-01  0.000e+00  1.000e+01 ( 1.000e+00)
2080        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
2081        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
2052   Normalization:  6.090e-01  1.006e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.19
Ra Dec: 269.793 -38.822
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 3.19e-07 +/- 2.41e-07
Energy Flux (Fixed Index): 2.29e-04 +/- 1.73e-04

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) = 2289.2922595
delta logL = 1.16244073712

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2289.27930974
delta logL = 1.17539050242

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    49.621       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.4588       1.0000          .0000       5.0000    
     3 'Normalizat'    .20320       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1080       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .2112E+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=   2289.279     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      323 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          49.498        231.60        .56929E-04   -.32176E-03
   2  alpha         4.4600        4.2090        .83768E-03   -.56302E-04
   3  Normalizat    .20458        1.4011        .20343E-01    .25702E-04
   4  Prefactor     1.1079        .15288        .14413E-03   -.70296E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 49.4976
  alpha      = 4.46001
  Normalizat = 0.204575
  Prefactor  = 1.10787
 **********
 **   18 **HESSE 
 **********

 FCN=   2289.279     FROM HESSE     STATUS=OK            25 CALLS      348 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          49.498        182.03        .11386E-04   -1.4300    
   2  alpha         4.4600        3.9662        .33507E-04    .90109    
   3  Normalizat    .20458        1.2454        .81371E-03   -1.2908    
   4  Prefactor     1.1079        .14509        .28826E-04   -.89215    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9426e-09
Minuit parameter uncertainties:
  1  184.135
  2  2.01833
  3  1.01732
  4  0.145142
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/380772': 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) = 2289.27930818
delta logL = 1.17539206119

Extracting fit parameters...

4FGL J1759.1-3849
   Spectrum: LogParabola
1427         norm:  4.950e+01  1.841e+02  1.000e-04  1.000e+04 ( 1.000e-13)
1428        alpha:  4.460e+00  2.018e+00  0.000e+00  5.000e+00 ( 1.000e+00)
1429         beta:  3.578e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
1430           Eb:  1.307e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
2079    Prefactor:  1.108e+00  1.451e-01  0.000e+00  1.000e+01 ( 1.000e+00)
2080        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
2081        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
2052   Normalization:  2.046e-01  1.017e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.61
Ra Dec: 269.793 -38.822
Photon Index (Free Index): 4.46 +/- 2.02
Photon Flux (Free Index): 2.28e-06 +/- 1.80e-06
Energy Flux (Free Index): 3.98e-04 +/- 2.15e-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/380772/cmap_HighResolution_549849601_550108801_4FGL_J1759.1-3849_daily_bin1198.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.19e-07', energy_flux2='3.98e-04', photon_flux_error='2.41e-07', dlogl='1.18e+00', energy_flux='2.29e-04', photon_flux2='2.28e-06', job_status='DONE', time_completed='2021-09-19 03:14:49.461983', photon_index_error2='2.02', photon_index2='4.46', ts='4.19', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='2.15e-04', EG='0.61', time_epoch_completed='1632046489.46', return_code='0', job_id='380772', GAL2='1.11', EG2='0.20', return_code2='0', energy_flux_error='1.73e-04', photon_flux_error2='1.80e-06', ts2='6.61', photon_index='2.06' WHERE bin_id='1198' AND source_name='4FGL J1759.1-3849' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 19 03:14:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 380772: <4FGL_J1759.1-3849_daily_bin1198> in cluster <slac> Done

Job <4FGL_J1759.1-3849_daily_bin1198> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 19 03:00:15 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 19 03:00:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 19 03:00:16 2021
Terminated at Sun Sep 19 03:14:49 2021
Results reported at Sun Sep 19 03:14:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1759.1-3849_daily_bin1198 269.793 -38.8217 549849601 550108801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1759.1-3849 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   671.45 sec.
    Max Memory :                                 1103 MB
    Average Memory :                             293.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            874 sec.

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

