/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 216 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_J1613.6+3411_daily_bin1503
RA = 243.421, Dec = 34.1982
tmin = 628905601, tmax = 629164801
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='193073', job_status='RUN', time_executed='2021-09-13 18:01:08.906589', time_epoch_executed='1631581268.91' WHERE source_name='4FGL J1613.6+3411' and cadence='daily' and bin_id='1503'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/193073

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/193073/ft1_4FGL_J1613.6+3411_daily_bin1503.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/193073/ft2_4FGL_J1613.6+3411_daily_bin1503.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/193073/ft1_4FGL_J1613.6+3411_daily_bin1503.fits outfile=/scratch/kocevski/193073/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin1503.fits ra=243.421 dec=34.1982 rad=12.0 tmin=628905601.0 tmax=629164801.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.54
user 3.32
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/193073/ft1_filtered_4FGL_J1613.6+3411_daily_bin1503.fits" evtable="EVENTS" scfile=/scratch/kocevski/193073/ft2_4FGL_J1613.6+3411_daily_bin1503.fits sctable="SC_DATA" outfile=/scratch/kocevski/193073/ltcube_628905601_629164801_4FGL_J1613.6+3411_daily_bin1503.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/193073/ft2_4FGL_J1613.6+3411_daily_bin1503.fits
.....................!
real 14.48
user 14.09
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/193073/ft1_filtered_4FGL_J1613.6+3411_daily_bin1503.fits evtable="EVENTS" scfile=/scratch/kocevski/193073/ft2_4FGL_J1613.6+3411_daily_bin1503.fits sctable="SC_DATA" expcube=/scratch/kocevski/193073/ltcube_628905601_629164801_4FGL_J1613.6+3411_daily_bin1503.fits outfile=/scratch/kocevski/193073/expmap_628905601_629164801_4FGL_J1613.6+3411_daily_bin1503.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/193073/ltcube_628905601_629164801_4FGL_J1613.6+3411_daily_bin1503.fits
.....................!
real 191.60
user 186.08
sys 4.97

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/193073/ft1_filtered_4FGL_J1613.6+3411_daily_bin1503.fits scfile=/scratch/kocevski/193073/ft2_4FGL_J1613.6+3411_daily_bin1503.fits outfile=/scratch/kocevski/193073/cmap_628905601_629164801_4FGL_J1613.6+3411_daily_bin1503.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/193073/ft1_filtered_4FGL_J1613.6+3411_daily_bin1503.fits scfile=/scratch/kocevski/193073/ft2_4FGL_J1613.6+3411_daily_bin1503.fits outfile=/scratch/kocevski/193073/cmap_HighResolution_628905601_629164801_4FGL_J1613.6+3411_daily_bin1503.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/193073/ft1_filtered_4FGL_J1613.6+3411_daily_bin1503.fits evtable="EVENTS" scfile=/scratch/kocevski/193073/ft2_4FGL_J1613.6+3411_daily_bin1503.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/193073/Model_4FGL_J1613.6+3411_daily_bin1503.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/193073/ft1_filtered_4FGL_J1613.6+3411_daily_bin1503.fits.....................!
real 48.06
user 46.70
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/193073/ft1_filtered_4FGL_J1613.6+3411_daily_bin1503.fits', '/scratch/kocevski/193073/ft2_4FGL_J1613.6+3411_daily_bin1503.fits', expMap='/scratch/kocevski/193073/expmap_628905601_629164801_4FGL_J1613.6+3411_daily_bin1503.fits', expCube='/scratch/kocevski/193073/ltcube_628905601_629164801_4FGL_J1613.6+3411_daily_bin1503.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/193073/Model_4FGL_J1613.6+3411_daily_bin1503.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/193073/ft1_filtered_4FGL_J1613.6+3411_daily_bin1503.fits
Spacecraft file(s): /scratch/kocevski/193073/ft2_4FGL_J1613.6+3411_daily_bin1503.fits
Exposure map: /scratch/kocevski/193073/expmap_628905601_629164801_4FGL_J1613.6+3411_daily_bin1503.fits
Exposure cube: /scratch/kocevski/193073/ltcube_628905601_629164801_4FGL_J1613.6+3411_daily_bin1503.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/193073/Model_4FGL_J1613.6+3411_daily_bin1503.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) = 5857.3056228

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    59.938       1.0000         .10000E-03   10000.    
     2 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.255       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10250E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.077       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6499       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .77626       1.0000         .10000E-03   10000.    
    12 'norm      '    .57697       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.6090       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.7328       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .74028       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .96454       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=   5857.303     FROM MIGRAD    STATUS=CONVERGED    478 CALLS     2399 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     59.907        89.461       -.38806E-04    .16293E-04
   2  norm          .10000E-03    .41289       -.21759E-06** at limit **
   3  Prefactor     .10000E-03    4.5996       -.21732E-05** at limit **
   4  Prefactor     16.267        28.142        .18653E-04    .50735E-04
   5  Prefactor     .10000E-03    4.8513       -.30895E-05** at limit **
   6  norm          .10000E-03    3.8582       -.10386E-05** at limit **
   7  Prefactor     .10000E-03    1.8840       -.12004E-06** at limit **
   8  Prefactor     .10000E-03    12.866       -.10557E-04** at limit **
   9  Prefactor     17.077        11.521       -.11866E-06   -.20946E-04
  10  Prefactor     1.6498        1.7505       -.33419E-07   -.89257E-05
  11  Prefactor     .77587        2.2698       -.91435E-06   -.12384E-02
  12  norm          .57689        .16999        .15701E-07    .13547E-02
  13  norm          .10000E-03    4.2384        .38097E-05** at limit **
  14  Prefactor     .10000E-03    34.299       -.37895E-05** at limit **
  15  norm          .10000E-03    14.351        .10776E-04** at limit **
  16  Prefactor     1.6085        1.1073       -.93291E-07   -.12985E-03
  17  Prefactor     .10000E-03    .47270       -.21365E-07** at limit **
  18  Prefactor     .10000E-03    5.7979        .28555E-05** at limit **
  19  Prefactor     .10000E-03    1.1936        .86516E-07** at limit **
  20  norm          5.7326        2.1001       -.22071E-07    .57493E-04
  21  Normalizat    .74064        .17388        .26818E-05    .91618E-04
  22  Prefactor     .96426        .13649       -.12690E-05    .34711E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 59.9066
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.2667
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.0771
  Prefactor  = 1.64981
  Prefactor  = 0.77587
  norm       = 0.576887
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.60855
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.73257
  Normalizat = 0.740639
  Prefactor  = 0.964261
 **********
 **   18 **HESSE 
 **********

 FCN=   5857.303     FROM HESSE     STATUS=OK           340 CALLS     2739 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     59.907        89.281        .51824E-04   -1.4158    
   2  norm          .10000E-03    .67740        .94917E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.6555        .16028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.267        28.064        .99342E-04   -1.4901    
   5  Prefactor     .10000E-03    4.8492        .16455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.8628        .14678E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.9570        .20485E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.077        11.529        .96921E-04   -1.4881    
  10  Prefactor     1.6498        1.7468        .10122E-03   -1.5451    
  11  Prefactor     .77587        2.2183        .18829E-03   -1.5532    
  12  norm          .57689        .16932        .15615E-04   -1.5556    
  13  norm          .10000E-03    4.2370        .15386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    34.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    14.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.6085        1.0573        .58673E-04   -1.5454    
  17  Prefactor     .10000E-03    .57998        .96420E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.8156        .17993E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.2105        .81600E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.7326        2.0943        .64753E-04   -1.5229    
  21  Normalizat    .74064        .20369        .26960E-03   -1.0231    
  22  Prefactor     .96426        .16133        .19303E-03   -.93930    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43639e-09
Minuit parameter uncertainties:
  1  89.4814
  2  1.3285e-05
  3  7.7927e-05
  4  28.0867
  5  1.43939e-05
  6  1.31138e-05
  7  3.7007e-05
  8  1.10245e-05
  9  11.5306
  10  1.74685
  11  2.21853
  12  0.169316
  13  2.54666e-07
  14  4.22838e-05
  15  2.67141e-06
  16  1.05727
  17  2.2469e-06
  18  5.59641e-06
  19  9.67557e-07
  20  2.09434
  21  0.203895
  22  0.16141
Done.

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

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  1.650e+00  1.747e+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

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  9.643e-01  1.614e-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:  7.406e-01  2.039e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.33
Ra Dec: 243.421 34.198
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 1.72e-08 +/- 1.82e-08
Energy Flux (Fixed Index): 5.36e-06 +/- 5.68e-06

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

Saving results to:
/scratch/kocevski/193073/likelihoodResults_628905601_629164801_4FGL_J1613.6+3411_daily_bin1503.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5856.9054757
delta logL = 0.397523469856

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5856.88552941
delta logL = 0.417469763906

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0583       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7471       1.0000          .0000       10.000    
     3 'Normalizat'    .74986       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95967       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=   5856.886     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      202 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0572        3.1398        .72016E-02   -.12211E-03
   2  Index         1.7470        .77368        .27483       -.24425E-04
   3  Normalizat    .74994        .16686        .42952E-01    .19506E-04
   4  Prefactor     .95967        .13532        .45761E-01    .29625E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.05717
  Index      = 1.747
  Normalizat = 0.749937
  Prefactor  = 0.959667
 **********
 **   18 **HESSE 
 **********

 FCN=   5856.886     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0572        2.1977        .11108E-03   -1.5421    
   2  Index         1.7470        .67856        .10384E-01   -.70837    
   3  Normalizat    .74994        .19597        .26801E-03   -1.0195    
   4  Prefactor     .95967        .15919        .19341E-03   -.94086    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08574e-10
Minuit parameter uncertainties:
  1  2.19779
  2  0.68222
  3  0.196151
  4  0.159266
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/193073': 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) = 5856.88552902
delta logL = 0.417470148764

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  2.057e+00  2.198e+00  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  1.747e+00  6.822e-01  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:  9.597e-01  1.593e-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:  7.499e-01  1.962e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.16
Ra Dec: 243.421 34.198
Photon Index (Free Index): 1.75 +/- 0.68
Photon Flux (Free Index): 9.91e-09 +/- 1.28e-08
Energy Flux (Free Index): 1.40e-05 +/- 2.39e-05

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/193073/cmap_HighResolution_628905601_629164801_4FGL_J1613.6+3411_daily_bin1503.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.53e-03', comment='SUCCESS', photon_flux='1.72e-08', energy_flux2='1.40e-05', photon_flux_error='1.82e-08', dlogl='4.17e-01', energy_flux='5.36e-06', photon_flux2='9.91e-09', job_status='DONE', time_completed='2021-09-13 18:12:09.134882', photon_index_error2='0.68', photon_index2='1.75', ts='2.33', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='7.14e-08', energy_flux_error2='2.39e-05', EG='0.74', time_epoch_completed='1631581929.13', return_code='0', job_id='193073', GAL2='0.96', EG2='0.75', return_code2='0', energy_flux_error='5.68e-06', photon_flux_error2='1.28e-08', ts2='3.16', photon_index='2.44' WHERE bin_id='1503' AND source_name='4FGL J1613.6+3411' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 18:12:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 193073: <4FGL_J1613.6+3411_daily_bin1503> in cluster <slac> Done

Job <4FGL_J1613.6+3411_daily_bin1503> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 13 17:55:33 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 17:57:24 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:57:24 2021
Terminated at Mon Sep 13 18:12:09 2021
Results reported at Mon Sep 13 18:12:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1613.6+3411_daily_bin1503 243.421 34.1982 628905601 629164801 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 :                                   658.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             282.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            996 sec.

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

