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


Performing analysis on: 4FGL_J1612.4-3100_daily_bin1247
RA = 243.1, Dec = -31.0011
tmin = 562550401, tmax = 562809601
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='174055', job_status='RUN', time_executed='2021-09-13 16:54:31.730403', time_epoch_executed='1631577271.73' WHERE source_name='4FGL J1612.4-3100' and cadence='daily' and bin_id='1247'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/174055

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/174055/ft1_4FGL_J1612.4-3100_daily_bin1247.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/174055/ft2_4FGL_J1612.4-3100_daily_bin1247.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/174055/ft1_4FGL_J1612.4-3100_daily_bin1247.fits outfile=/scratch/kocevski/174055/ft1_filteredMKT_4FGL_J1612.4-3100_daily_bin1247.fits ra=243.1 dec=-31.0011 rad=12.0 tmin=562550401.0 tmax=562809601.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.52
user 3.29
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/174055/ft2_4FGL_J1612.4-3100_daily_bin1247.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/174055/ft2_4FGL_J1612.4-3100_daily_bin1247.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/174055/ft1_filteredMKT_4FGL_J1612.4-3100_daily_bin1247.fits evtable="EVENTS" outfile="/scratch/kocevski/174055/ft1_filtered_4FGL_J1612.4-3100_daily_bin1247.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.53
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/174055/ft1_filtered_4FGL_J1612.4-3100_daily_bin1247.fits" evtable="EVENTS" scfile=/scratch/kocevski/174055/ft2_4FGL_J1612.4-3100_daily_bin1247.fits sctable="SC_DATA" outfile=/scratch/kocevski/174055/ltcube_562550401_562809601_4FGL_J1612.4-3100_daily_bin1247.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/174055/ft2_4FGL_J1612.4-3100_daily_bin1247.fits
.....................!
real 14.59
user 14.23
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/174055/ft1_filtered_4FGL_J1612.4-3100_daily_bin1247.fits evtable="EVENTS" scfile=/scratch/kocevski/174055/ft2_4FGL_J1612.4-3100_daily_bin1247.fits sctable="SC_DATA" expcube=/scratch/kocevski/174055/ltcube_562550401_562809601_4FGL_J1612.4-3100_daily_bin1247.fits outfile=/scratch/kocevski/174055/expmap_562550401_562809601_4FGL_J1612.4-3100_daily_bin1247.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/174055/ltcube_562550401_562809601_4FGL_J1612.4-3100_daily_bin1247.fits
.....................!
real 191.96
user 186.89
sys 4.54

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 J1626.9-2431 in ROI with RadialGaussian 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 G337.0-0.1 in ROI with RadialDisk spatial model.
Extended source FGES J1652.2-4633 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 HESS J1614-518 in ROI with RadialDisk spatial model.
Extended source HESS J1616-508 in ROI with RadialDisk spatial model.
Extended source FGES J1655.5-4737 in ROI with RadialDisk spatial model.
Extended source FHES J1741.6-3917 in ROI with RadialDisk spatial model.
Extended source FGES J1745.8-3028 in ROI with RadialDisk spatial model.
Added 458 point sources and 11 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 J1612.4-3100 @ 243.1 -31.0011

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/174055/ft1_filtered_4FGL_J1612.4-3100_daily_bin1247.fits scfile=/scratch/kocevski/174055/ft2_4FGL_J1612.4-3100_daily_bin1247.fits outfile=/scratch/kocevski/174055/cmap_562550401_562809601_4FGL_J1612.4-3100_daily_bin1247.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=243.1 yref=-31.0011 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.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/174055/ft1_filtered_4FGL_J1612.4-3100_daily_bin1247.fits scfile=/scratch/kocevski/174055/ft2_4FGL_J1612.4-3100_daily_bin1247.fits outfile=/scratch/kocevski/174055/cmap_HighResolution_562550401_562809601_4FGL_J1612.4-3100_daily_bin1247.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=243.1 yref=-31.0011 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/174055/ft1_filtered_4FGL_J1612.4-3100_daily_bin1247.fits evtable="EVENTS" scfile=/scratch/kocevski/174055/ft2_4FGL_J1612.4-3100_daily_bin1247.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/174055/Model_4FGL_J1612.4-3100_daily_bin1247.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 J1626.9-2431
adding source FHES J1741.6-3917
adding source G337.0-0.1
adding source GAL_V02
adding source HESS J1614-518
adding source HESS J1616-508
adding source RX J1713.7-3946
Working on...
/scratch/kocevski/174055/ft1_filtered_4FGL_J1612.4-3100_daily_bin1247.fits.....................!
real 59.91
user 58.64
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/174055/ft1_filtered_4FGL_J1612.4-3100_daily_bin1247.fits', '/scratch/kocevski/174055/ft2_4FGL_J1612.4-3100_daily_bin1247.fits', expMap='/scratch/kocevski/174055/expmap_562550401_562809601_4FGL_J1612.4-3100_daily_bin1247.fits', expCube='/scratch/kocevski/174055/ltcube_562550401_562809601_4FGL_J1612.4-3100_daily_bin1247.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/174055/Model_4FGL_J1612.4-3100_daily_bin1247.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1612.4-3100'

4FGL J1612.4-3100
   Spectrum: LogParabola
422         norm:  4.701e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
423        alpha:  1.963e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
424         beta:  1.333e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
425           Eb:  1.680e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/174055/ft1_filtered_4FGL_J1612.4-3100_daily_bin1247.fits
Spacecraft file(s): /scratch/kocevski/174055/ft2_4FGL_J1612.4-3100_daily_bin1247.fits
Exposure map: /scratch/kocevski/174055/expmap_562550401_562809601_4FGL_J1612.4-3100_daily_bin1247.fits
Exposure cube: /scratch/kocevski/174055/ltcube_562550401_562809601_4FGL_J1612.4-3100_daily_bin1247.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/174055/Model_4FGL_J1612.4-3100_daily_bin1247.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) = 1797.68775724

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10564E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    57.790       1.0000         .10000E-03   10000.    
     6 'norm      '    10000.       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    92.952       1.0000         .10000E-03   10000.    
    10 'norm      '    30.419       1.0000         .10000E-03   10000.    
    11 'norm      '    6.2311       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10738E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11432E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .10005E-01   1.0000         .10000E-01   10.000    
    17 'Prefactor '    .98099       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1679E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1797.602     FROM MIGRAD    STATUS=CONVERGED    342 CALLS     1852 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1175.7       -.85213E-03** at limit **
   2  Prefactor     .10000E-03    2130.0       -.13067E-02** at limit **
   3  Prefactor     .10000E-03    116.20       -.64979E-04** at limit **
   4  norm          .10000E-03    84.704        .87396E-04** at limit **
   5  Prefactor     57.788        31.161        .34015E-06    .21055E-04
   6  norm          10000.        517.97        .24920E-04** at limit **
   7  Prefactor     .10000E-03    182.24        .23190E-03** at limit **
   8  Prefactor     .10000E-03    23.589        .23629E-06** at limit **
   9  norm          92.952        93.206       -.15255E-06    .21937E-05
  10  norm          30.419        29.999        .17998E-06    .41321E-05
  11  norm          6.2322        8.2170       -.17914E-06   -.40043E-04
  12  Prefactor     .10000E-03    8.3915        .11384E-06** at limit **
  13  norm          .10000E-03    58.492       -.84591E-05** at limit **
  14  Prefactor     .10001E-03    102.79       -.62565E-04** at limit **
  15  norm          .10000E-03    115.06       -.66633E-04** at limit **
  16  Normalizat    .10000E-01    .83667        .14972E-05** at limit **
  17  Prefactor     .98096        .10471        .58796E-06    .54868E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 57.7885
  norm       = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 92.9522
  norm       = 30.4189
  norm       = 6.23218
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.000100009
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.980963
 **********
 **   18 **HESSE 
 **********

 FCN=   1797.602     FROM HESSE     STATUS=OK           211 CALLS     2063 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1175.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2130.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    116.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    84.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     57.788        31.070        .52773E-04   -1.4186    
   6  norm          10000.        517.97        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    182.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    23.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          92.952        93.203        .41683E-04   -1.3777    
  10  norm          30.419        29.994        .72645E-04   -1.4604    
  11  norm          6.2322        8.1923        .13290E-03   -1.5209    
  12  Prefactor     .10000E-03    8.3956        .11997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    59.971        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    105.48        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    115.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .10000E-01    .98482        .21245E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .98096        .95046E-01    .12461E-03   -.93367    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.18785e-10
Minuit parameter uncertainties:
  1  4.77821e-05
  2  4.84603e-05
  3  7.53677e-06
  4  3.98803e-08
  5  31.079
  6  5.35289e-06
  7  1.00718e-05
  8  7.07011e-07
  9  93.3506
  10  30.0093
  11  8.19376
  12  5.47494e-07
  13  0.000557217
  14  0.00190058
  15  5.17791e-05
  16  3.50352e-06
  17  0.0950625
Done.

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

Extracting fit parameters...

4FGL J1612.4-3100
   Spectrum: LogParabola
422         norm:  9.295e+01  9.335e+01  1.000e-04  1.000e+04 ( 1.000e-13)
423        alpha:  1.963e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
424         beta:  1.333e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
425           Eb:  1.680e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1665    Prefactor:  9.810e-01  9.506e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1666        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1667        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1637   Normalization:  1.000e-02  3.504e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.75
Ra Dec: 243.100 -31.001
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 1.48e-07 +/- 1.48e-07
Energy Flux (Fixed Index): 1.17e-04 +/- 1.18e-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) = 1794.82989171
delta logL = 2.77162694827

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1794.60001338
delta logL = 3.00150528101

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    28.267       1.0000         .10000E-03   10000.    
     2 'alpha     '    .12587       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98309       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1679E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1794.600     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      228 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          28.268        64.633        .18838E-02   -.17685E-02
   2  alpha         .12462        2.8303        .49345E-01    .99181E-04
   3  Normalizat    .10000E-01    .83869        .50000    ** at limit **
   4  Prefactor     .98300        .10179        .28154E-01   -.43944E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 28.2676
  alpha      = 0.124616
  Normalizat = 0.01
  Prefactor  = 0.983001
 **********
 **   18 **HESSE 
 **********

 FCN=   1794.600     FROM HESSE     STATUS=OK            29 CALLS      257 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          28.268        59.676        .75353E-04   -1.4644    
   2  alpha         .12462        2.7530        .19738E-02   -1.2537    
   3  Normalizat    .10000E-01    1.0105        .21394E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .98300        .89568E-01    .12444E-03   -.93298    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7082e-08
Minuit parameter uncertainties:
  1  59.8022
  2  0.813167
  3  1.82003e-05
  4  0.0895817
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/174055': 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) = 1794.60000731
delta logL = 3.0015113475

Extracting fit parameters...

4FGL J1612.4-3100
   Spectrum: LogParabola
422         norm:  2.827e+01  5.980e+01  1.000e-04  1.000e+04 ( 1.000e-13)
423        alpha:  1.246e-01  8.132e-01  0.000e+00  5.000e+00 ( 1.000e+00)
424         beta:  1.333e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
425           Eb:  1.680e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1665    Prefactor:  9.830e-01  8.958e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1666        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1667        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1637   Normalization:  1.000e-02  1.820e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.74
Ra Dec: 243.100 -31.001
Photon Index (Free Index): 0.12 +/- 0.81
Photon Flux (Free Index): 6.41e-08 +/- 6.42e-08
Energy Flux (Free Index): 1.82e-03 +/- 2.30e-03

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/174055/cmap_HighResolution_562550401_562809601_4FGL_J1612.4-3100_daily_bin1247.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.48e-07', energy_flux2='1.82e-03', photon_flux_error='1.48e-07', dlogl='3.00e+00', energy_flux='1.17e-04', photon_flux2='6.41e-08', job_status='DONE', time_completed='2021-09-13 17:04:29.547007', photon_index_error2='0.81', photon_index2='0.12', ts='7.75', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='2.30e-03', EG='0.01', time_epoch_completed='1631577869.55', return_code='0', job_id='174055', GAL2='0.98', EG2='0.01', return_code2='0', energy_flux_error='1.18e-04', photon_flux_error2='6.42e-08', ts2='13.74', photon_index='1.96' WHERE bin_id='1247' AND source_name='4FGL J1612.4-3100' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 17:04:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 174055: <4FGL_J1612.4-3100_daily_bin1247> in cluster <slac> Done

Job <4FGL_J1612.4-3100_daily_bin1247> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Sep 13 16:50:16 2021
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 16:51:11 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 13 16:51:11 2021
Terminated at Mon Sep 13 17:04:29 2021
Results reported at Mon Sep 13 17:04:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1612.4-3100_daily_bin1247 243.1 -31.0011 562550401 562809601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1612.4-3100 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   596.30 sec.
    Max Memory :                                 1264 MB
    Average Memory :                             273.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   798 sec.
    Turnaround time :                            853 sec.

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

