/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 = 7487
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1613.6+3411_daily_bin37
RA = 243.421, Dec = 34.1982
tmin = 248918401, tmax = 249177601
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='179532', job_status='RUN', time_executed='2021-09-13 17:14:29.466022', time_epoch_executed='1631578469.47' WHERE source_name='4FGL J1613.6+3411' and cadence='daily' and bin_id='37'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/179532

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/179532/ft1_4FGL_J1613.6+3411_daily_bin37.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/179532/ft2_4FGL_J1613.6+3411_daily_bin37.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/179532/ft1_4FGL_J1613.6+3411_daily_bin37.fits outfile=/scratch/kocevski/179532/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin37.fits ra=243.421 dec=34.1982 rad=12.0 tmin=248918401.0 tmax=249177601.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 1.96
user 1.79
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/179532/ft2_4FGL_J1613.6+3411_daily_bin37.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/179532/ft2_4FGL_J1613.6+3411_daily_bin37.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/179532/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin37.fits evtable="EVENTS" outfile="/scratch/kocevski/179532/ft1_filtered_4FGL_J1613.6+3411_daily_bin37.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.56
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/179532/ft1_filtered_4FGL_J1613.6+3411_daily_bin37.fits" evtable="EVENTS" scfile=/scratch/kocevski/179532/ft2_4FGL_J1613.6+3411_daily_bin37.fits sctable="SC_DATA" outfile=/scratch/kocevski/179532/ltcube_248918401_249177601_4FGL_J1613.6+3411_daily_bin37.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/179532/ft2_4FGL_J1613.6+3411_daily_bin37.fits
.....................!
real 15.60
user 15.10
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/179532/ft1_filtered_4FGL_J1613.6+3411_daily_bin37.fits evtable="EVENTS" scfile=/scratch/kocevski/179532/ft2_4FGL_J1613.6+3411_daily_bin37.fits sctable="SC_DATA" expcube=/scratch/kocevski/179532/ltcube_248918401_249177601_4FGL_J1613.6+3411_daily_bin37.fits outfile=/scratch/kocevski/179532/expmap_248918401_249177601_4FGL_J1613.6+3411_daily_bin37.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/179532/ltcube_248918401_249177601_4FGL_J1613.6+3411_daily_bin37.fits
.....................!
real 194.31
user 187.99
sys 3.95

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 190 point sources and 0 extended sources

Setting source of interest to:
4FGL J1613.6+3411 @ 243.421 34.1982

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/179532/ft1_filtered_4FGL_J1613.6+3411_daily_bin37.fits scfile=/scratch/kocevski/179532/ft2_4FGL_J1613.6+3411_daily_bin37.fits outfile=/scratch/kocevski/179532/cmap_248918401_249177601_4FGL_J1613.6+3411_daily_bin37.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.421 yref=34.1982 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/179532/ft1_filtered_4FGL_J1613.6+3411_daily_bin37.fits scfile=/scratch/kocevski/179532/ft2_4FGL_J1613.6+3411_daily_bin37.fits outfile=/scratch/kocevski/179532/cmap_HighResolution_248918401_249177601_4FGL_J1613.6+3411_daily_bin37.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.421 yref=34.1982 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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/179532/ft1_filtered_4FGL_J1613.6+3411_daily_bin37.fits evtable="EVENTS" scfile=/scratch/kocevski/179532/ft2_4FGL_J1613.6+3411_daily_bin37.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/179532/Model_4FGL_J1613.6+3411_daily_bin37.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/179532/ft1_filtered_4FGL_J1613.6+3411_daily_bin37.fits.....................!
real 48.43
user 46.60
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/179532/ft1_filtered_4FGL_J1613.6+3411_daily_bin37.fits', '/scratch/kocevski/179532/ft2_4FGL_J1613.6+3411_daily_bin37.fits', expMap='/scratch/kocevski/179532/expmap_248918401_249177601_4FGL_J1613.6+3411_daily_bin37.fits', expCube='/scratch/kocevski/179532/ltcube_248918401_249177601_4FGL_J1613.6+3411_daily_bin37.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/179532/Model_4FGL_J1613.6+3411_daily_bin37.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1613.6+3411'

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  2.261e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  2.437e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
278        Scale:  7.801e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/179532/ft1_filtered_4FGL_J1613.6+3411_daily_bin37.fits
Spacecraft file(s): /scratch/kocevski/179532/ft2_4FGL_J1613.6+3411_daily_bin37.fits
Exposure map: /scratch/kocevski/179532/expmap_248918401_249177601_4FGL_J1613.6+3411_daily_bin37.fits
Exposure cube: /scratch/kocevski/179532/ltcube_248918401_249177601_4FGL_J1613.6+3411_daily_bin37.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/179532/Model_4FGL_J1613.6+3411_daily_bin37.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) = 5867.98610024

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    12.921       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10404E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    7.3565       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.9505       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.2783       1.0000         .10000E-03   10000.    
    12 'norm      '    .17369       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .43466E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.5010       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.9864       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.6648       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.5841       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1658       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .73869       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5866.963     FROM MIGRAD    STATUS=CONVERGED    500 CALLS     2092 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    73.667       -.25751E-04** at limit **
   2  norm          12.921        2.4579       -.19837E-07   -.30063E-03
   3  Prefactor     .10000E-03    17.560        .31886E-06** at limit **
   4  Prefactor     .10000E-03    15.842       -.56201E-05** at limit **
   5  Prefactor     .10001E-03    87.002        .46553E-04** at limit **
   6  norm          7.4106        17.877        .14261E-04   -.27106E-03
   7  Prefactor     2.9504        2.7212        .29920E-07   -.37328E-03
   8  Prefactor     .10000E-03    15.541        .48225E-05** at limit **
   9  Prefactor     .10000E-03    4.2785        .19835E-07** at limit **
  10  Prefactor     .10000E-03    2.1187        .20349E-06** at limit **
  11  Prefactor     7.2774        4.1604        .13270E-06    .91497E-04
  12  norm          .17364        .14678       -.60282E-08   -.12538E-02
  13  norm          .10000E-03    6.7403        .70828E-08** at limit **
  14  Prefactor     .10000E-03    21.850        .10985E-05** at limit **
  15  norm          .10004E-03    206.92       -.58477E-04** at limit **
  16  Prefactor     3.5009        2.0590        .96143E-07    .87758E-03
  17  Prefactor     1.9863        1.7714        .59988E-07    .66353E-03
  18  Prefactor     1.6750        15.483       -.20120E-05   -.31967E-03
  19  Prefactor     .10000E-03    1.6721        .61679E-07** at limit **
  20  norm          3.5838        2.0630        .34576E-07    .34202E-04
  21  Normalizat    1.1659        .20036       -.25772E-05   -.10343E-03
  22  Prefactor     .73863        .14604        .75155E-06   -.26774E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100016
  norm       = 12.9208
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.00010001
  norm       = 7.41059
  Prefactor  = 2.95041
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.27743
  norm       = 0.173635
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.00010004
  Prefactor  = 3.50088
  Prefactor  = 1.98631
  Prefactor  = 1.675
  Prefactor  = 0.0001
  norm       = 3.58379
  Normalizat = 1.16591
  Prefactor  = 0.738631
 **********
 **   18 **HESSE 
 **********

 FCN=   5866.963     FROM HESSE     STATUS=OK           342 CALLS     2434 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    74.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          12.921        2.4512        .50280E-04   -1.4989    
   3  Prefactor     .10000E-03    17.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    82.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          7.4106        17.210        .14788E-03   -1.5163    
   7  Prefactor     2.9504        2.7139        .11649E-03   -1.5364    
   8  Prefactor     .10000E-03    15.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.2885        .15473E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.8741        .21450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.2774        4.1698        .11094E-03   -1.5168    
  12  norm          .17364        .13937        .24166E-03   -1.5625    
  13  norm          .10000E-03    6.7438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    22.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10004E-03    213.81        .38779E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.5009        2.0745        .58641E-04   -1.5334    
  17  Prefactor     1.9863        1.7872        .69589E-04   -1.5426    
  18  Prefactor     1.6750        15.599        .32687E-03   -1.5449    
  19  Prefactor     .10000E-03    1.6955        .96646E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.5838        2.0574        .80039E-04   -1.5329    
  21  Normalizat    1.1659        .23661        .25615E-03   -.87663    
  22  Prefactor     .73863        .17340        .23750E-03   -1.0203    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70683e-09
Minuit parameter uncertainties:
  1  0.00219846
  2  2.45126
  3  3.05424e-05
  4  0.000204663
  5  0.00177928
  6  17.2217
  7  2.71404
  8  0.000168206
  9  4.36641e-06
  10  3.89528e-05
  11  4.16992
  12  0.139367
  13  3.67824e-06
  14  8.57411e-05
  15  0.00588007
  16  2.07453
  17  1.78724
  18  10.2263
  19  6.22188e-06
  20  2.05739
  21  0.236826
  22  0.173529
Done.

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

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  1.000e-04  3.895e-05  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  2.437e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
278        Scale:  7.801e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  7.386e-01  1.735e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.166e+00  2.368e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 243.421 34.198
Photon Flux Upper Limit: 7.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/179532/likelihoodResults_248918401_249177601_4FGL_J1613.6+3411_daily_bin37.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) = 5866.9640478
delta logL = -0.00122927230495

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5866.96282034
delta logL = -1.81577252079e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12099E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4754       1.0000          .0000       10.000    
     3 'Normalizat'    1.1659       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73866       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5866.963     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      230 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.9802        .36666E-01** at limit **
   2  Index         2.5183        5.9727        .50000       -.95078E-04
   3  Normalizat    1.1659        .75199E-02    .57922E-01    .11684E-03
   4  Prefactor     .73863        .57068E-02    .42914E-01    .63945E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.51829
  Normalizat = 1.16591
  Prefactor  = 0.738632
 **********
 **   18 **HESSE 
 **********

 FCN=   5866.963     FROM HESSE     STATUS=OK            35 CALLS      265 TOTAL
                     EDM=   .64E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.155        .21764E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5183        5.1655        .50000       -.51938    
   3  Normalizat    1.1659        .22246        .25615E-03   -.87663    
   4  Prefactor     .73863        .16882        .23750E-03   -1.0203    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.44372e-08
Minuit parameter uncertainties:
  1  0.00045971
  2  9.45197
  3  0.222638
  4  0.16894
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/179532': 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) = 5866.96281679
delta logL = 1.73611169885e-06

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  1.000e-04  4.597e-04  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  2.518e+00  9.452e+00  0.000e+00  1.000e+01 (-1.000e+00)
278        Scale:  7.801e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  7.386e-01  1.689e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.166e+00  2.226e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 243.421 34.198

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/179532/cmap_HighResolution_248918401_249177601_4FGL_J1613.6+3411_daily_bin37.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.03e-03', job_status='DONE', photon_flux_upper_limit='7.78e-08', time_completed='2021-09-13 17:25:08.453040', job_id='179532', GAL2='0.74', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1631579108.45', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='1.74e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='37' AND source_name='4FGL J1613.6+3411' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 17:25:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 179532: <4FGL_J1613.6+3411_daily_bin37> in cluster <slac> Done

Job <4FGL_J1613.6+3411_daily_bin37> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 13 17:10:19 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 17:11:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 13 17:11:37 2021
Terminated at Mon Sep 13 17:25:08 2021
Results reported at Mon Sep 13 17:25:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1613.6+3411_daily_bin37 243.421 34.1982 248918401 249177601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1613.6+3411 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   632.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             279.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            889 sec.

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

