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


Performing analysis on: 4FGL_J1304.0+3704_daily_bin1570
RA = 196.008, Dec = 37.071
tmin = 646272001, tmax = 646531201
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='195294', job_status='RUN', time_executed='2021-09-06 20:06:26.318347', time_epoch_executed='1630983986.32' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='1570'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/195294

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/195294/ft1_4FGL_J1304.0+3704_daily_bin1570.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/195294/ft2_4FGL_J1304.0+3704_daily_bin1570.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/195294/ft1_4FGL_J1304.0+3704_daily_bin1570.fits outfile=/scratch/kocevski/195294/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin1570.fits ra=196.008 dec=37.071 rad=12.0 tmin=646272001.0 tmax=646531201.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.13
user 3.89
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/195294/ft2_4FGL_J1304.0+3704_daily_bin1570.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/195294/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin1570.fits evtable="EVENTS" outfile="/scratch/kocevski/195294/ft1_filtered_4FGL_J1304.0+3704_daily_bin1570.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.52
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/195294/ft1_filtered_4FGL_J1304.0+3704_daily_bin1570.fits" evtable="EVENTS" scfile=/scratch/kocevski/195294/ft2_4FGL_J1304.0+3704_daily_bin1570.fits sctable="SC_DATA" outfile=/scratch/kocevski/195294/ltcube_646272001_646531201_4FGL_J1304.0+3704_daily_bin1570.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/195294/ft2_4FGL_J1304.0+3704_daily_bin1570.fits
.....................!
real 14.65
user 14.29
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/195294/ft1_filtered_4FGL_J1304.0+3704_daily_bin1570.fits evtable="EVENTS" scfile=/scratch/kocevski/195294/ft2_4FGL_J1304.0+3704_daily_bin1570.fits sctable="SC_DATA" expcube=/scratch/kocevski/195294/ltcube_646272001_646531201_4FGL_J1304.0+3704_daily_bin1570.fits outfile=/scratch/kocevski/195294/expmap_646272001_646531201_4FGL_J1304.0+3704_daily_bin1570.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/195294/ltcube_646272001_646531201_4FGL_J1304.0+3704_daily_bin1570.fits
.....................!
real 192.78
user 187.57
sys 4.85

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/195294/ft1_filtered_4FGL_J1304.0+3704_daily_bin1570.fits scfile=/scratch/kocevski/195294/ft2_4FGL_J1304.0+3704_daily_bin1570.fits outfile=/scratch/kocevski/195294/cmap_646272001_646531201_4FGL_J1304.0+3704_daily_bin1570.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.55
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/195294/ft1_filtered_4FGL_J1304.0+3704_daily_bin1570.fits scfile=/scratch/kocevski/195294/ft2_4FGL_J1304.0+3704_daily_bin1570.fits outfile=/scratch/kocevski/195294/cmap_HighResolution_646272001_646531201_4FGL_J1304.0+3704_daily_bin1570.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.57
user 0.41
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/195294/ft1_filtered_4FGL_J1304.0+3704_daily_bin1570.fits', '/scratch/kocevski/195294/ft2_4FGL_J1304.0+3704_daily_bin1570.fits', expMap='/scratch/kocevski/195294/expmap_646272001_646531201_4FGL_J1304.0+3704_daily_bin1570.fits', expCube='/scratch/kocevski/195294/ltcube_646272001_646531201_4FGL_J1304.0+3704_daily_bin1570.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/195294/Model_4FGL_J1304.0+3704_daily_bin1570.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/195294/ft1_filtered_4FGL_J1304.0+3704_daily_bin1570.fits
Spacecraft file(s): /scratch/kocevski/195294/ft2_4FGL_J1304.0+3704_daily_bin1570.fits
Exposure map: /scratch/kocevski/195294/expmap_646272001_646531201_4FGL_J1304.0+3704_daily_bin1570.fits
Exposure cube: /scratch/kocevski/195294/ltcube_646272001_646531201_4FGL_J1304.0+3704_daily_bin1570.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/195294/Model_4FGL_J1304.0+3704_daily_bin1570.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) = 5572.71381923

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.7201       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .16792E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .27330E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10571E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.596       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.5563       1.0000         .10000E-03   10000.    
     9 'norm      '    6.5748       1.0000         .10000E-03   10000.    
    10 'Prefactor '    42.088       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.5070       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    11.998       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .33893E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.6862       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11029E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.0844       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .11448E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.7050       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .27103       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=   5572.705     FROM MIGRAD    STATUS=CONVERGED    811 CALLS     4003 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.7100        5.9003        .31318E-06    .61826E-03
   2  Prefactor     .10001E-03    7.0405       -.45192E-05** at limit **
   3  Prefactor     .10009E-03    26.536       -.94050E-05** at limit **
   4  Prefactor     .10000E-03    7.3768       -.54712E-07** at limit **
   5  Prefactor     .10000E-03    262.62       -.32652E-05** at limit **
   6  Prefactor     .10000E-03    10.434        .56394E-06** at limit **
   7  Prefactor     28.605        93.271       -.16523E-05   -.26877E-04
   8  Prefactor     3.5572        4.0338       -.13487E-06   -.13531E-03
   9  norm          6.5762        5.6615       -.13873E-06   -.31797E-03
  10  Prefactor     42.078        54.420       -.19737E-05   -.16429E-03
  11  Prefactor     .10000E-03    9.5136       -.49766E-06** at limit **
  12  Prefactor     .10000E-03    5.0226       -.10333E-06** at limit **
  13  norm          2.5079        4.4244        .24731E-06    .71736E-04
  14  norm          .10000E-03    5.4253        .53060E-07** at limit **
  15  norm          12.000        5.4116       -.16278E-06    .41042E-03
  16  norm          .10000E-03    3.0765       -.19333E-06** at limit **
  17  norm          .10000E-03    2.4829        .16333E-06** at limit **
  18  Prefactor     .10000E-03    6.1639       -.47611E-05** at limit **
  19  Prefactor     3.6880        24.366        .18484E-05    .28334E-03
  20  Prefactor     .10000E-03    16.478        .26009E-06** at limit **
  21  Prefactor     .10001E-03    211.45        .15226E-05** at limit **
  22  Prefactor     .10000E-03    9.7802       -.16289E-06** at limit **
  23  Prefactor     .10000E-03    25.614        .13080E-05** at limit **
  24  Prefactor     .10000E-03    15.359       -.43378E-06** at limit **
  25  Prefactor     .10000E-03    106.37       -.66397E-06** at limit **
  26  norm          1.0848        1.2884        .78395E-07   -.11233E-03
  27  Prefactor     .10000E-03    4.9231        .19236E-06** at limit **
  28  norm          .10044E-03    51.772        .15359E-05** at limit **
  29  Normalizat    1.7052        .22263       -.84801E-06    .93363E-03
  30  Prefactor     .27064        .25189        .24977E-05    .32318E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.70996
  Prefactor  = 0.000100009
  Prefactor  = 0.000100089
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 28.6055
  Prefactor  = 3.5572
  norm       = 6.57623
  Prefactor  = 42.0777
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 2.50794
  norm       = 0.0001
  norm       = 11.9996
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.68803
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.08484
  Prefactor  = 0.0001
  norm       = 0.000100436
  Normalizat = 1.70519
  Prefactor  = 0.270644
 **********
 **   18 **HESSE 
 **********

 FCN=   5572.705     FROM HESSE     STATUS=OK           582 CALLS     4585 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.7100        5.9638        .12853E-03   -1.5085    
   2  Prefactor     .10001E-03    13.452        .31633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10009E-03    34.311        .18671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.4001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    264.71        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     28.605        93.182        .74920E-04   -1.4638    
   8  Prefactor     3.5572        4.0316        .15516E-03   -1.5331    
   9  norm          6.5762        5.6496        .15040E-03   -1.5195    
  10  Prefactor     42.078        54.988        .61792E-04   -1.4410    
  11  Prefactor     .10000E-03    9.5453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.0255        .16339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.5079        4.3632        .19929E-03   -1.5391    
  14  norm          .10000E-03    5.4293        .16982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          12.000        5.3649        .10354E-03   -1.5015    
  16  norm          .10000E-03    3.0840        .12779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    11.428        .22754E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.2391        .21706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.6880        21.984        .21036E-03   -1.5324    
  20  Prefactor     .10000E-03    16.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    212.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.8228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    25.854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    15.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    106.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.0848        1.2532        .88830E-04   -1.5500    
  27  Prefactor     .10000E-03    5.0327        .16173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10044E-03    112.47        .56718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.7052        .21422        .19537E-03   -.72165    
  30  Prefactor     .27064        .23795        .51474E-03   -1.2403    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.87172e-09
Minuit parameter uncertainties:
  1  5.9642
  2  0.000692923
  3  0.00349608
  4  1.33189e-05
  5  0.00152889
  6  0.000197679
  7  93.6611
  8  4.03194
  9  5.65007
  10  55.0544
  11  0.000151833
  12  1.43299e-05
  13  4.36375
  14  2.52426e-05
  15  5.36511
  16  2.35632e-05
  17  1.07726e-05
  18  0.000104649
  19  18.0183
  20  0.000111132
  21  0.00322017
  22  4.70219e-05
  23  0.00070861
  24  0.000172365
  25  0.000663688
  26  1.25321
  27  4.32652e-05
  28  0.0140354
  29  0.214337
  30  0.238816
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  1.433e-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:  2.706e-01  2.388e-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.705e+00  2.143e-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: 5.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/195294/likelihoodResults_646272001_646531201_4FGL_J1304.0+3704_daily_bin1570.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) = 5572.70581081
delta logL = -0.000934090628107

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5572.70487664
delta logL = 8.19673005026e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4144       1.0000          .0000       10.000    
     3 'Normalizat'    1.7052       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .27065       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=   5572.705     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      249 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10286E-03    6.2818        .16650E-01** at limit **
   2  Index         2.3238        5.1551        .50000        .30407E-04
   3  Normalizat    1.7052        .47998E-02    .19537E-03    .13209E-04
   4  Prefactor     .27064        .54617E-02    .51474E-03    .11794E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102855
  Index      = 2.32379
  Normalizat = 1.70519
  Prefactor  = 0.270644
 **********
 **   18 **HESSE 
 **********

 FCN=   5572.705     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10286E-03    67.419        .17114E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3238        6.1501        .50000       -.56479    
   3  Normalizat    1.7052        .15907E-01    .78148E-05   -.72165    
   4  Prefactor     .27064        .18100E-01    .20589E-04   -1.2403    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.29612e-08
Minuit parameter uncertainties:
  1  0.0277809
  2  348.819
  3  0.0159073
  4  0.0181007
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/195294': 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) = 5572.70487609
delta logL = 6.32879164186e-07

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.029e-04  2.778e-02  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.324e+00  3.488e+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:  2.706e-01  1.810e-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.705e+00  1.591e-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/195294/cmap_HighResolution_646272001_646531201_4FGL_J1304.0+3704_daily_bin1570.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.23e-03', job_status='DONE', photon_flux_upper_limit='5.46e-08', time_completed='2021-09-06 20:20:14.539323', job_id='195294', GAL2='0.27', fit_tolerance='1e-08', EG2='1.71', EG='1.71', time_epoch_completed='1630984814.54', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.27', dlogl='6.33e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='1570' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 20:20:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 195294: <4FGL_J1304.0+3704_daily_bin1570> in cluster <slac> Done

Job <4FGL_J1304.0+3704_daily_bin1570> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 20:05:35 2021
Job was executed on host(s) <bullet0299>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 20:06:17 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 20:06:17 2021
Terminated at Mon Sep  6 20:20:15 2021
Results reported at Mon Sep  6 20:20:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin1570 196.008 37.071 646272001 646531201 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 :                                   824.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             354.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            880 sec.

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

