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


Performing analysis on: 4FGL_J1304.0+3704_daily_bin740
RA = 196.008, Dec = 37.071
tmin = 431136001, tmax = 431395201
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='190764', job_status='RUN', time_executed='2021-09-06 19:53:20.991006', time_epoch_executed='1630983200.99' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='740'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/190764

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/190764/ft1_4FGL_J1304.0+3704_daily_bin740.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/190764/ft2_4FGL_J1304.0+3704_daily_bin740.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/190764/ft1_4FGL_J1304.0+3704_daily_bin740.fits outfile=/scratch/kocevski/190764/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin740.fits ra=196.008 dec=37.071 rad=12.0 tmin=431136001.0 tmax=431395201.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 4.72
user 4.38
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/190764/ft2_4FGL_J1304.0+3704_daily_bin740.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/190764/ft2_4FGL_J1304.0+3704_daily_bin740.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/190764/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin740.fits evtable="EVENTS" outfile="/scratch/kocevski/190764/ft1_filtered_4FGL_J1304.0+3704_daily_bin740.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.46
user 0.30
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/190764/ft1_filtered_4FGL_J1304.0+3704_daily_bin740.fits" evtable="EVENTS" scfile=/scratch/kocevski/190764/ft2_4FGL_J1304.0+3704_daily_bin740.fits sctable="SC_DATA" outfile=/scratch/kocevski/190764/ltcube_431136001_431395201_4FGL_J1304.0+3704_daily_bin740.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/190764/ft2_4FGL_J1304.0+3704_daily_bin740.fits
.....................!
real 19.26
user 18.72
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/190764/ft1_filtered_4FGL_J1304.0+3704_daily_bin740.fits evtable="EVENTS" scfile=/scratch/kocevski/190764/ft2_4FGL_J1304.0+3704_daily_bin740.fits sctable="SC_DATA" expcube=/scratch/kocevski/190764/ltcube_431136001_431395201_4FGL_J1304.0+3704_daily_bin740.fits outfile=/scratch/kocevski/190764/expmap_431136001_431395201_4FGL_J1304.0+3704_daily_bin740.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/190764/ltcube_431136001_431395201_4FGL_J1304.0+3704_daily_bin740.fits
.....................!
real 159.37
user 153.00
sys 4.70

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

Setting source of interest to:
4FGL J1304.0+3704 @ 196.008 37.071

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/190764/ft1_filtered_4FGL_J1304.0+3704_daily_bin740.fits scfile=/scratch/kocevski/190764/ft2_4FGL_J1304.0+3704_daily_bin740.fits outfile=/scratch/kocevski/190764/cmap_431136001_431395201_4FGL_J1304.0+3704_daily_bin740.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=196.008 yref=37.071 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.50
user 0.33
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/190764/ft1_filtered_4FGL_J1304.0+3704_daily_bin740.fits scfile=/scratch/kocevski/190764/ft2_4FGL_J1304.0+3704_daily_bin740.fits outfile=/scratch/kocevski/190764/cmap_HighResolution_431136001_431395201_4FGL_J1304.0+3704_daily_bin740.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=196.008 yref=37.071 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.50
user 0.32
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/190764/ft1_filtered_4FGL_J1304.0+3704_daily_bin740.fits evtable="EVENTS" scfile=/scratch/kocevski/190764/ft2_4FGL_J1304.0+3704_daily_bin740.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/190764/Model_4FGL_J1304.0+3704_daily_bin740.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/190764/ft1_filtered_4FGL_J1304.0+3704_daily_bin740.fits......................!
real 30.06
user 28.65
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/190764/ft1_filtered_4FGL_J1304.0+3704_daily_bin740.fits', '/scratch/kocevski/190764/ft2_4FGL_J1304.0+3704_daily_bin740.fits', expMap='/scratch/kocevski/190764/expmap_431136001_431395201_4FGL_J1304.0+3704_daily_bin740.fits', expCube='/scratch/kocevski/190764/ltcube_431136001_431395201_4FGL_J1304.0+3704_daily_bin740.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/190764/Model_4FGL_J1304.0+3704_daily_bin740.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1304.0+3704'

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  2.111e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.436e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  1.032e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/190764/ft1_filtered_4FGL_J1304.0+3704_daily_bin740.fits
Spacecraft file(s): /scratch/kocevski/190764/ft2_4FGL_J1304.0+3704_daily_bin740.fits
Exposure map: /scratch/kocevski/190764/expmap_431136001_431395201_4FGL_J1304.0+3704_daily_bin740.fits
Exposure cube: /scratch/kocevski/190764/ltcube_431136001_431395201_4FGL_J1304.0+3704_daily_bin740.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/190764/Model_4FGL_J1304.0+3704_daily_bin740.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) = 3643.74491681

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.273       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.8558       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4281       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.9514       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10080E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11084E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.0693       1.0000         .10000E-03   10000.    
    14 'norm      '    .87351       1.0000         .10000E-03   10000.    
    15 'norm      '    6.8919       1.0000         .10000E-03   10000.    
    16 'norm      '    6.7862       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.3276       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    36.085       1.0000         .10000E-03   10000.    
    25 'Prefactor '    50.241       1.0000         .10000E-03   10000.    
    26 'norm      '    2.7976       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1821       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .71052       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3643.733     FROM MIGRAD    STATUS=CONVERGED    763 CALLS     3896 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.273        8.9027       -.28930E-06   -.47724E-04
   2  Prefactor     7.8527        10.431        .37616E-06   -.12561E-04
   3  Prefactor     1.4274        4.5579        .79380E-06   -.64323E-05
   4  Prefactor     .10000E-03    9.8590       -.31593E-06** at limit **
   5  Prefactor     .10000E-03    12.067        .34589E-07** at limit **
   6  Prefactor     .10001E-03    48.252       -.46062E-05** at limit **
   7  Prefactor     8.0501        276.31        .30338E-04    .93574E-04
   8  Prefactor     .10000E-03    11.019        .60287E-06** at limit **
   9  norm          .10000E-03    6.5294        .18718E-05** at limit **
  10  Prefactor     .10005E-03    154.35       -.12737E-04** at limit **
  11  Prefactor     .10000E-03    26.804        .13421E-05** at limit **
  12  Prefactor     .10000E-03    8.0687       -.23834E-06** at limit **
  13  norm          2.0689        4.5418        .65945E-05   -.30801E-03
  14  norm          .81403        22.322        .47043E-05   -.43042E-03
  15  norm          6.8926        7.9879       -.41464E-06   -.28199E-03
  16  norm          6.7851        11.458       -.86877E-09   -.13504E-03
  17  norm          .10000E-03    3.0439       -.59427E-07** at limit **
  18  Prefactor     .10000E-03    3.9895        .10692E-06** at limit **
  19  Prefactor     .10000E-03    18.638       -.77167E-06** at limit **
  20  Prefactor     .10000E-03    19.560        .34513E-06** at limit **
  21  Prefactor     8.3458        142.61        .28496E-05    .18296E-04
  22  Prefactor     .10000E-03    8.0208        .19434E-06** at limit **
  23  Prefactor     .10004E-03    86.115        .10557E-04** at limit **
  24  Prefactor     36.087        41.252        .47714E-06   -.76853E-05
  25  Prefactor     50.234        82.043       -.24285E-06   -.46380E-04
  26  norm          2.7979        1.8271        .11966E-06   -.14042E-03
  27  Prefactor     .10000E-03    12.020       -.10277E-05** at limit **
  28  norm          .10000E-03    4.7229       -.30075E-07** at limit **
  29  Normalizat    1.1822        .21914       -.22875E-05   -.20438E-03
  30  Prefactor     .71064        .25460        .60020E-06   -.21500E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 17.2733
  Prefactor  = 7.85265
  Prefactor  = 1.4274
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 8.05007
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100053
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.06887
  norm       = 0.814026
  norm       = 6.89261
  norm       = 6.78512
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.34577
  Prefactor  = 0.0001
  Prefactor  = 0.000100037
  Prefactor  = 36.0874
  Prefactor  = 50.2344
  norm       = 2.79793
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.18219
  Prefactor  = 0.710638
 **********
 **   18 **HESSE 
 **********

 FCN=   3643.733     FROM HESSE     STATUS=OK           580 CALLS     4476 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.273        8.6596        .92791E-04   -1.4877    
   2  Prefactor     7.8527        10.433        .14306E-03   -1.5147    
   3  Prefactor     1.4274        4.4131        .16528E-03   -1.5469    
   4  Prefactor     .10000E-03    9.9328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    49.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.0501        289.69        .14219E-03   -1.5140    
   8  Prefactor     .10000E-03    11.409        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    6.7123        .29949E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10005E-03    157.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    26.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.0774        .16748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.0689        4.6455        .94825E-03   -1.5420    
  14  norm          .81403        187.02        .52824E-02   -1.5528    
  15  norm          6.8926        8.0847        .13227E-03   -1.5183    
  16  norm          6.7851        11.593        .15402E-03   -1.5187    
  17  norm          .10000E-03    3.0870        .10284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.0511        .23403E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    18.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    19.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.3458        141.74        .13892E-03   -1.5130    
  22  Prefactor     .10000E-03    8.0263        .16698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10004E-03    88.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     36.087        41.289        .66715E-04   -1.4506    
  25  Prefactor     50.234        82.225        .56578E-04   -1.4289    
  26  norm          2.7979        1.8267        .63910E-04   -1.5373    
  27  Prefactor     .10000E-03    12.432        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    4.7233        .12813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1822        .25461        .21177E-03   -.87155    
  30  Prefactor     .71064        .29554        .31649E-03   -1.0311    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41834e-08
Minuit parameter uncertainties:
  1  8.6602
  2  10.435
  3  4.41409
  4  5.71271e-05
  5  1.32027e-05
  6  0.00100418
  7  97.0939
  8  4.34733e-05
  9  0.000107845
  10  0.0057741
  11  8.7409e-05
  12  3.0056e-05
  13  4.64628
  14  24.7542
  15  8.08599
  16  11.597
  17  3.47919e-06
  18  2.76752e-05
  19  0.000129228
  20  6.17139e-05
  21  68.9804
  22  2.77863e-05
  23  0.00362332
  24  41.3219
  25  82.4118
  26  1.82669
  27  9.82998e-06
  28  2.05371e-07
  29  0.25488
  30  0.296195
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  3.006e-05  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.436e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  1.032e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
596    Prefactor:  7.106e-01  2.962e-01  0.000e+00  1.000e+01 ( 1.000e+00)
597        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
598        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
595   Normalization:  1.182e+00  2.549e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 196.008 37.071
Photon Flux Upper Limit: 7.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/190764/likelihoodResults_431136001_431395201_4FGL_J1304.0+3704_daily_bin740.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) = 3643.73380719
delta logL = -0.00058587976946

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3643.73322324
delta logL = -1.9325239009e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3643.733     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      253 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.454        .17108E-01** at limit **
   2  Index         1.8550        8.8625        .50000        .31498E-06
   3  Normalizat    1.1822        .83301E-02    .21178E-03   -.47650E-03
   4  Prefactor     .71064        .99301E-02    .31649E-03   -.31782E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.85503
  Normalizat = 1.18219
  Prefactor  = 0.71064
 **********
 **   18 **HESSE 
 **********

 FCN=   3643.733     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      282 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    265.77        .19537E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8550        8.0609        .50000       -.68026    
   3  Normalizat    1.1822        .26144E-01    .42355E-04   -.87155    
   4  Prefactor     .71064        .31165E-01    .63299E-04   -1.0311    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.17527e-09
Minuit parameter uncertainties:
  1  0.000311682
  2  866.853
  3  0.0261443
  4  0.0311661
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/190764': 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) = 3643.73321967
delta logL = 1.64272387337e-06

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  3.117e-04  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  1.855e+00  8.669e+02  0.000e+00  1.000e+01 (-1.000e+00)
315        Scale:  1.032e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
596    Prefactor:  7.106e-01  3.117e-02  0.000e+00  1.000e+01 ( 1.000e+00)
597        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
598        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
595   Normalization:  1.182e+00  2.614e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 196.008 37.071

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/190764/cmap_HighResolution_431136001_431395201_4FGL_J1304.0+3704_daily_bin740.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.13e-03', job_status='DONE', photon_flux_upper_limit='7.92e-08', time_completed='2021-09-06 20:02:38.567671', job_id='190764', GAL2='0.71', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1630983758.57', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='1.64e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='740' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 20:02:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0026>
Subject: Job 190764: <4FGL_J1304.0+3704_daily_bin740> in cluster <slac> Done

Job <4FGL_J1304.0+3704_daily_bin740> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 19:50:18 2021
Job was executed on host(s) <bullet0026>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 19:50:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 19:50:28 2021
Terminated at Mon Sep  6 20:02:39 2021
Results reported at Mon Sep  6 20:02:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin740 196.008 37.071 431136001 431395201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1304.0+3704 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   553.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             238.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   735 sec.
    Turnaround time :                            741 sec.

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

