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


Performing analysis on: 4FGL_J1319.8+7759_daily_bin680
RA = 199.966, Dec = 77.9882
tmin = 415584001, tmax = 415843201
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='481985', job_status='RUN', time_executed='2021-09-07 12:15:40.200592', time_epoch_executed='1631042140.2' WHERE source_name='4FGL J1319.8+7759' and cadence='daily' and bin_id='680'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/481985

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/481985/ft1_4FGL_J1319.8+7759_daily_bin680.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/481985/ft2_4FGL_J1319.8+7759_daily_bin680.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/481985/ft1_4FGL_J1319.8+7759_daily_bin680.fits outfile=/scratch/kocevski/481985/ft1_filteredMKT_4FGL_J1319.8+7759_daily_bin680.fits ra=199.966 dec=77.9882 rad=12.0 tmin=415584001.0 tmax=415843201.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 6.37
user 6.07
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/481985/ft2_4FGL_J1319.8+7759_daily_bin680.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/481985/ft2_4FGL_J1319.8+7759_daily_bin680.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/481985/ft1_filteredMKT_4FGL_J1319.8+7759_daily_bin680.fits evtable="EVENTS" outfile="/scratch/kocevski/481985/ft1_filtered_4FGL_J1319.8+7759_daily_bin680.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/481985/ft1_filtered_4FGL_J1319.8+7759_daily_bin680.fits" evtable="EVENTS" scfile=/scratch/kocevski/481985/ft2_4FGL_J1319.8+7759_daily_bin680.fits sctable="SC_DATA" outfile=/scratch/kocevski/481985/ltcube_415584001_415843201_4FGL_J1319.8+7759_daily_bin680.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/481985/ft2_4FGL_J1319.8+7759_daily_bin680.fits
.....................!
real 15.29
user 14.92
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/481985/ft1_filtered_4FGL_J1319.8+7759_daily_bin680.fits evtable="EVENTS" scfile=/scratch/kocevski/481985/ft2_4FGL_J1319.8+7759_daily_bin680.fits sctable="SC_DATA" expcube=/scratch/kocevski/481985/ltcube_415584001_415843201_4FGL_J1319.8+7759_daily_bin680.fits outfile=/scratch/kocevski/481985/expmap_415584001_415843201_4FGL_J1319.8+7759_daily_bin680.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/481985/ltcube_415584001_415843201_4FGL_J1319.8+7759_daily_bin680.fits
.....................!
real 192.90
user 188.00
sys 4.43

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 215 point sources and 0 extended sources

Setting source of interest to:
4FGL J1319.8+7759 @ 199.966 77.9882

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/481985/ft1_filtered_4FGL_J1319.8+7759_daily_bin680.fits scfile=/scratch/kocevski/481985/ft2_4FGL_J1319.8+7759_daily_bin680.fits outfile=/scratch/kocevski/481985/cmap_415584001_415843201_4FGL_J1319.8+7759_daily_bin680.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=199.966 yref=77.9882 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/481985/ft1_filtered_4FGL_J1319.8+7759_daily_bin680.fits scfile=/scratch/kocevski/481985/ft2_4FGL_J1319.8+7759_daily_bin680.fits outfile=/scratch/kocevski/481985/cmap_HighResolution_415584001_415843201_4FGL_J1319.8+7759_daily_bin680.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=199.966 yref=77.9882 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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/481985/ft1_filtered_4FGL_J1319.8+7759_daily_bin680.fits evtable="EVENTS" scfile=/scratch/kocevski/481985/ft2_4FGL_J1319.8+7759_daily_bin680.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/481985/Model_4FGL_J1319.8+7759_daily_bin680.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/481985/ft1_filtered_4FGL_J1319.8+7759_daily_bin680.fits.....................!
real 54.65
user 53.25
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/481985/ft1_filtered_4FGL_J1319.8+7759_daily_bin680.fits', '/scratch/kocevski/481985/ft2_4FGL_J1319.8+7759_daily_bin680.fits', expMap='/scratch/kocevski/481985/expmap_415584001_415843201_4FGL_J1319.8+7759_daily_bin680.fits', expCube='/scratch/kocevski/481985/ltcube_415584001_415843201_4FGL_J1319.8+7759_daily_bin680.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/481985/Model_4FGL_J1319.8+7759_daily_bin680.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1319.8+7759'

4FGL J1319.8+7759
   Spectrum: PowerLaw
383    Prefactor:  8.394e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
384        Index:  2.047e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
385        Scale:  2.178e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/481985/ft1_filtered_4FGL_J1319.8+7759_daily_bin680.fits
Spacecraft file(s): /scratch/kocevski/481985/ft2_4FGL_J1319.8+7759_daily_bin680.fits
Exposure map: /scratch/kocevski/481985/expmap_415584001_415843201_4FGL_J1319.8+7759_daily_bin680.fits
Exposure cube: /scratch/kocevski/481985/ltcube_415584001_415843201_4FGL_J1319.8+7759_daily_bin680.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/481985/Model_4FGL_J1319.8+7759_daily_bin680.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) = 3975.24863205

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7152       1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.455       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.517       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    7.9413       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .15900E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.8080       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    18.149       1.0000         .10000E-03   10000.    
    15 'norm      '    10.112       1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.398       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.394       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .60836E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    60.884       1.0000         .10000E-03   10000.    
    23 'Prefactor '    53.359       1.0000         .10000E-03   10000.    
    24 'Prefactor '    89.796       1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.6046       1.0000         .10000E-03   10000.    
    26 'Prefactor '    32.928       1.0000         .10000E-03   10000.    
    27 'norm      '    28.492       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .12802E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .93981       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .88099       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6910E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3975.243     FROM MIGRAD    STATUS=CONVERGED    798 CALLS     4843 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7127        11.166        .34192E-05    .69131E-03
   2  Prefactor     23.457        18.550        .80052E-06    .21244E-03
   3  Prefactor     15.517        15.085       -.27417E-06   -.65945E-04
   4  Prefactor     .10000E-03    28.717        .19457E-06** at limit **
   5  Prefactor     .10000E-03    37.994       -.15393E-06** at limit **
   6  norm          7.9414        5.8503       -.37949E-06   -.35668E-03
   7  Prefactor     .10000E-03    28.641        .59869E-07** at limit **
   8  norm          5.8095        1.9585        .24760E-06    .14580E-02
   9  Prefactor     .10000E-03    23.660       -.56535E-06** at limit **
  10  Prefactor     .10000E-03    21.380        .10049E-06** at limit **
  11  Prefactor     .10000E-03    3.7953        .14627E-08** at limit **
  12  Prefactor     .10000E-03    5.2769        .35929E-08** at limit **
  13  Prefactor     .10000E-03    55.985       -.32707E-06** at limit **
  14  norm          18.148        12.495        .12114E-06    .61604E-04
  15  norm          10.111        5.7206        .15782E-07   -.54051E-04
  16  Prefactor     19.372        105.34       -.47564E-06   -.23522E-04
  17  Prefactor     .10000E-03    69.112        .82058E-06** at limit **
  18  Prefactor     .10000E-03    39.300        .77331E-07** at limit **
  19  Prefactor     11.415        71.881        .21500E-06    .50110E-04
  20  Prefactor     .10000E-03    25.863        .20173E-05** at limit **
  21  Prefactor     .10303E-03    31.458       -.57537E-05** at limit **
  22  Prefactor     60.883        48.378        .23419E-06    .21918E-03
  23  Prefactor     53.337        113.14       -.66821E-06   -.14632E-05
  24  Prefactor     89.786        60.286        .11350E-06    .10411E-04
  25  Prefactor     5.6152        342.31        .44584E-05    .27160E-04
  26  Prefactor     32.963        108.40        .18890E-05    .57763E-04
  27  norm          28.493        27.117        .50827E-07   -.17201E-04
  28  Prefactor     .10000E-03    3.4862        .26731E-06** at limit **
  29  Prefactor     .10000E-03    109.60        .97459E-06** at limit **
  30  Normalizat    .93949        .24271       -.10602E-05    .18098E-03
  31  Prefactor     .88127        .16231       -.38939E-06    .11679E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.71266
  Prefactor  = 23.4566
  Prefactor  = 15.5173
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.94142
  Prefactor  = 0.0001
  norm       = 5.80955
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.1477
  norm       = 10.1112
  Prefactor  = 19.3716
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 11.4146
  Prefactor  = 0.000100001
  Prefactor  = 0.000103026
  Prefactor  = 60.8826
  Prefactor  = 53.3367
  Prefactor  = 89.7865
  Prefactor  = 5.61524
  Prefactor  = 32.9629
  norm       = 28.4927
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 0.939487
  Prefactor  = 0.881275
 **********
 **   18 **HESSE 
 **********

 FCN=   3975.243     FROM HESSE     STATUS=OK           616 CALLS     5459 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.7127        11.393        .72185E-03   -1.5152    
   2  Prefactor     23.457        18.578        .41354E-03   -1.4739    
   3  Prefactor     15.517        15.081        .10168E-03   -1.4920    
   4  Prefactor     .10000E-03    28.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    38.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          7.9414        5.8253        .12315E-03   -1.5144    
   7  Prefactor     .10000E-03    29.111        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.8095        1.9406        .48490E-04   -1.5226    
   9  Prefactor     .10000E-03    24.164        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    21.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.7979        .11996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.2837        .14142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    56.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          18.148        12.514        .94015E-04   -1.4856    
  15  norm          10.111        5.7191        .10912E-03   -1.5072    
  16  Prefactor     19.372        105.76        .90939E-04   -1.4827    
  17  Prefactor     .10000E-03    69.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    39.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.415        70.887        .11868E-03   -1.5032    
  20  Prefactor     .10000E-03    26.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10303E-03    145.75        .46288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     60.883        47.608        .51422E-04   -1.4146    
  23  Prefactor     53.337        113.05        .54908E-04   -1.4246    
  24  Prefactor     89.786        60.572        .42403E-04   -1.3810    
  25  Prefactor     5.6152        336.75        .16969E-03   -1.5234    
  26  Prefactor     32.963        108.19        .69830E-04   -1.4559    
  27  norm          28.493        27.035        .75057E-04   -1.4640    
  28  Prefactor     .10000E-03    7.3700        .22760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    110.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .93949        .27136        .28752E-03   -.95086    
  31  Prefactor     .88127        .18242        .21669E-03   -.96799    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09733e-08
Minuit parameter uncertainties:
  1  11.3957
  2  18.5821
  3  15.0849
  4  0.000114744
  5  0.000102037
  6  5.82567
  7  8.46689e-05
  8  1.94067
  9  0.000134384
  10  3.14625e-05
  11  7.84751e-08
  12  3.62755e-06
  13  0.000240125
  14  12.5158
  15  5.7194
  16  90.7731
  17  0.000630082
  18  7.22718e-05
  19  56.9911
  20  0.000385081
  21  0.0421009
  22  47.638
  23  113.506
  24  60.6139
  25  87.4903
  26  108.842
  27  27.0461
  28  4.12356e-06
  29  0.000824238
  30  0.271752
  31  0.182548
Done.

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

Extracting fit parameters...

4FGL J1319.8+7759
   Spectrum: PowerLaw
383    Prefactor:  1.000e-04  6.301e-04  1.000e-04  1.000e+04 ( 1.000e-14)
384        Index:  2.047e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
385        Scale:  2.178e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
688    Prefactor:  8.813e-01  1.825e-01  0.000e+00  1.000e+01 ( 1.000e+00)
689        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
690        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
687   Normalization:  9.395e-01  2.718e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 199.966 77.988
Photon Flux Upper Limit: 9.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/481985/likelihoodResults_415584001_415843201_4FGL_J1319.8+7759_daily_bin680.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) = 3975.24270975
delta logL = -6.86881335241e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3975.2426411
delta logL = -3.85730345442e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3975.243     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      234 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1940.1        .90712E-02** at limit **
   2  Index         2.0229        6.5350        .50000       -.32739E-05
   3  Normalizat    .93948        .35215E-01    .65005E-01    .18455E-04
   4  Prefactor     .88128        .25937E-01    .44766E-01    .11961E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 2.0229
  Normalizat = 0.939485
  Prefactor  = 0.881276
 **********
 **   18 **HESSE 
 **********

 FCN=   3975.243     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      267 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7495.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0229        8.4220        .50000       -.63779    
   3  Normalizat    .93948        .65951E-01    .28752E-03   -.95086    
   4  Prefactor     .88128        .48624E-01    .21669E-03   -.96798    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.82454e-10
Minuit parameter uncertainties:
  1  0.00828301
  2  38.8498
  3  0.0659567
  4  0.0486267
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/481985': 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): 102
logL (Free Index) = 3975.24264108
delta logL = -1.96664586838e-08

Extracting fit parameters...

4FGL J1319.8+7759
   Spectrum: PowerLaw
383    Prefactor:  1.000e-04  8.283e-03  1.000e-04  1.000e+04 ( 1.000e-14)
384        Index:  2.023e+00  3.885e+01  0.000e+00  1.000e+01 (-1.000e+00)
385        Scale:  2.178e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
688    Prefactor:  8.813e-01  4.863e-02  0.000e+00  1.000e+01 ( 1.000e+00)
689        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
690        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
687   Normalization:  9.395e-01  6.596e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 199.966 77.988

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/481985/cmap_HighResolution_415584001_415843201_4FGL_J1319.8+7759_daily_bin680.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.47e-03', job_status='DONE', photon_flux_upper_limit='9.92e-08', time_completed='2021-09-07 12:29:43.118512', job_id='481985', GAL2='0.88', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1631042983.12', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='-1.97e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.05' WHERE bin_id='680' AND source_name='4FGL J1319.8+7759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 12:29:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0170>
Subject: Job 481985: <4FGL_J1319.8+7759_daily_bin680> in cluster <slac> Done

Job <4FGL_J1319.8+7759_daily_bin680> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 12:15:17 2021
Job was executed on host(s) <bullet0170>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 12:15:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 12:15:23 2021
Terminated at Tue Sep  7 12:29:43 2021
Results reported at Tue Sep  7 12:29:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1319.8+7759_daily_bin680 199.966 77.9882 415584001 415843201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1319.8+7759 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   840.44 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             322.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            866 sec.

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

