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


Performing analysis on: 4FGL_J1304.0+3704_daily_bin259
RA = 196.008, Dec = 37.071
tmin = 306460801, tmax = 306720001
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='186724', job_status='RUN', time_executed='2021-09-06 19:36:00.826390', time_epoch_executed='1630982160.83' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='259'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/186724

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/186724/ft1_4FGL_J1304.0+3704_daily_bin259.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/186724/ft2_4FGL_J1304.0+3704_daily_bin259.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/186724/ft1_4FGL_J1304.0+3704_daily_bin259.fits outfile=/scratch/kocevski/186724/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin259.fits ra=196.008 dec=37.071 rad=12.0 tmin=306460801.0 tmax=306720001.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.64
user 3.33
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/186724/ft1_filtered_4FGL_J1304.0+3704_daily_bin259.fits" evtable="EVENTS" scfile=/scratch/kocevski/186724/ft2_4FGL_J1304.0+3704_daily_bin259.fits sctable="SC_DATA" outfile=/scratch/kocevski/186724/ltcube_306460801_306720001_4FGL_J1304.0+3704_daily_bin259.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/186724/ft2_4FGL_J1304.0+3704_daily_bin259.fits
.....................!
real 14.08
user 13.69
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/186724/ft1_filtered_4FGL_J1304.0+3704_daily_bin259.fits evtable="EVENTS" scfile=/scratch/kocevski/186724/ft2_4FGL_J1304.0+3704_daily_bin259.fits sctable="SC_DATA" expcube=/scratch/kocevski/186724/ltcube_306460801_306720001_4FGL_J1304.0+3704_daily_bin259.fits outfile=/scratch/kocevski/186724/expmap_306460801_306720001_4FGL_J1304.0+3704_daily_bin259.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/186724/ltcube_306460801_306720001_4FGL_J1304.0+3704_daily_bin259.fits
.....................!
real 193.42
user 188.72
sys 4.28

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/186724/ft1_filtered_4FGL_J1304.0+3704_daily_bin259.fits scfile=/scratch/kocevski/186724/ft2_4FGL_J1304.0+3704_daily_bin259.fits outfile=/scratch/kocevski/186724/cmap_306460801_306720001_4FGL_J1304.0+3704_daily_bin259.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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/186724/ft1_filtered_4FGL_J1304.0+3704_daily_bin259.fits scfile=/scratch/kocevski/186724/ft2_4FGL_J1304.0+3704_daily_bin259.fits outfile=/scratch/kocevski/186724/cmap_HighResolution_306460801_306720001_4FGL_J1304.0+3704_daily_bin259.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.412       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.8687       1.0000         .10000E-03   10000.    
     4 'Prefactor '    30.217       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14234       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.676       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .82600       1.0000         .10000E-03   10000.    
     9 'norm      '    .63993       1.0000         .10000E-03   10000.    
    10 'Prefactor '    33.368       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10333E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .76271E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    9.1784       1.0000         .10000E-03   10000.    
    16 'norm      '    .10090E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.5828       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.202       1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.964       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    23.250       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    26.655       1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.5655       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .42416       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5883.334     FROM MIGRAD    STATUS=CONVERGED    148 CALLS     3343 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.412        1.3209        .64951E-06   -.38093E-03
   2  Prefactor     .10000E-03    3.5194        .16936E-06** at limit **
   3  Prefactor     2.8687        2.3448       -.17159E-06   -.12167E-04
   4  Prefactor     30.218        2.7011        .84653E-06    .50287E-02
   5  Prefactor     .22045E-03    414.44       -.49925E-05** at limit **
   6  Prefactor     .10000E-03    15.431       -.27158E-05** at limit **
   7  Prefactor     19.678        1.1623       -.58337E-06    .43855E-03
   8  Prefactor     .85318        11.836        .22075E-04    .18423E-03
   9  norm          .62035        10.721       -.25636E-04   -.17109E-03
  10  Prefactor     33.308        3.2795        .36965E-06   -.11765E-02
  11  Prefactor     .10221E-03    105.90        .50762E-04** at limit **
  12  Prefactor     .10000E-03    13.565        .46762E-05** at limit **
  13  norm          .10000E-03    2.2880       -.71329E-08** at limit **
  14  norm          .68592E-03    203.42       -.42741E-04** at limit **
  15  norm          9.1821        4.6377        .37236E-05    .57394E-03
  16  norm          .10000E-03    8.2018        .22856E-05** at limit **
  17  norm          6.5824        4.8611        .72702E-06    .16386E-03
  18  Prefactor     .10000E-03    2.9961        .78219E-08** at limit **
  19  Prefactor     .10000E-03    6.6970        .26128E-05** at limit **
  20  Prefactor     10.219        1.6125       -.89309E-06    .41736E-03
  21  Prefactor     15.008        2.6496       -.66099E-06    .68339E-03
  22  Prefactor     .10000E-03    11.319       -.13749E-05** at limit **
  23  Prefactor     .10000E-03    27.799       -.37441E-05** at limit **
  24  Prefactor     23.247        1.1120       -.10675E-06   -.74559E-04
  25  Prefactor     .10057E-03    91.769       -.31561E-04** at limit **
  26  norm          .10000E-03    .98049        .53114E-07** at limit **
  27  Prefactor     26.655        1.0660        .71242E-07   -.33651E-03
  28  norm          .10000E-03    3.6389       -.64082E-07** at limit **
  29  Normalizat    1.5656        .21103        .21257E-06    .87139E-04
  30  Prefactor     .42409        .24289       -.15552E-05    .26306E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.4116
  Prefactor  = 0.0001
  Prefactor  = 2.86874
  Prefactor  = 30.2182
  Prefactor  = 0.000220453
  Prefactor  = 0.000100001
  Prefactor  = 19.6778
  Prefactor  = 0.853184
  norm       = 0.620351
  Prefactor  = 33.3083
  Prefactor  = 0.000102209
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000685921
  norm       = 9.18213
  norm       = 0.0001
  norm       = 6.58242
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2189
  Prefactor  = 15.0079
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.2465
  Prefactor  = 0.000100567
  norm       = 0.0001
  Prefactor  = 26.6552
  norm       = 0.0001
  Normalizat = 1.56565
  Prefactor  = 0.424093
 **********
 **   18 **HESSE 
 **********

 FCN=   5883.334     FROM HESSE     STATUS=OK           676 CALLS     4019 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.412        5.9256        .26376E-02   -1.4949    
   2  Prefactor     .10000E-03    3.5044        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.8687        2.4992        .60000E-02   -1.5369    
   4  Prefactor     30.218        14.554        .18222E-02   -1.4608    
   5  Prefactor     .22045E-03    28.341        .13057       -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.400        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     19.678        58.087        .22573E-02   -1.4820    
   8  Prefactor     .85318        5.8677        .56589E-01   -1.5523    
   9  norm          .62035        3.4963        .71327E-01   -1.5550    
  10  Prefactor     33.308        70.187        .17342E-02   -1.4553    
  11  Prefactor     .10221E-03    107.56        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.500        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.2784        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .68592E-03    16.375        .93975E-01   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          9.1821        4.7315        .33072E-02   -1.5102    
  16  norm          .10000E-03    8.1655        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.5824        4.9693        .39103E-02   -1.5195    
  18  Prefactor     .10000E-03    2.8928        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.6853        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.219        40.129        .31363E-02   -1.5069    
  21  Prefactor     15.008        48.085        .25885E-02   -1.4933    
  22  Prefactor     .10000E-03    11.266        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    27.775        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     23.247        27.537        .20768E-02   -1.4743    
  25  Prefactor     .10057E-03    93.639        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .62526        .32573E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     26.655        9.0924        .19398E-02   -1.4675    
  28  norm          .10000E-03    3.6394        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.5656        .19741        .47095E-01   -.75950    
  30  Prefactor     .42409        .22697        .97925E-01   -1.1560    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11572e-07
Minuit parameter uncertainties:
  1  5.92582
  2  4.63628e-06
  3  2.49928
  4  14.556
  5  0.11691
  6  0.000192965
  7  58.255
  8  4.47529
  9  2.94547
  10  70.3618
  11  0.0308811
  12  0.000147746
  13  7.92936e-07
  14  0.195958
  15  4.73171
  16  5.15092e-05
  17  4.96964
  18  2.41891e-06
  19  6.12199e-05
  20  40.2356
  21  48.2092
  22  2.23574e-05
  23  0.000153757
  24  27.5521
  25  0.0145936
  26  1.93771e-06
  27  9.09284
  28  8.30604e-06
  29  0.197508
  30  0.22745
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  1.477e-04  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:  4.241e-01  2.275e-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.566e+00  1.975e-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.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/186724/likelihoodResults_306460801_306720001_4FGL_J1304.0+3704_daily_bin259.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) = 5883.3344081
delta logL = -0.000351179388417

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5883.33406252
delta logL = -5.59997261007e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16305E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4578       1.0000          .0000       10.000    
     3 'Normalizat'    1.5651       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .42472       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=   5883.315     FROM MIGRAD    STATUS=CONVERGED    161 CALLS      319 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .31615        30.314        .29588E-01   -.12293E-02
   2  Index         3.9453        1.3307        .50000        .34177E-05
   3  Normalizat    1.5528        .25966E-01    .20817E-03   -.14691E-04
   4  Prefactor     .43288        .29255E-01    .43412E-03   -.92181E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.316152
  Index      = 3.94528
  Normalizat = 1.55279
  Prefactor  = 0.432876
 **********
 **   18 **HESSE 
 **********

 FCN=   5883.315     FROM HESSE     STATUS=OK            31 CALLS      350 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .31615        3.0198        .15260E-02   -1.5820    
   2  Index         3.9453        2.4790        .38187E-02   -.21254    
   3  Normalizat    1.5528        .21981        .83269E-05   -.76306    
   4  Prefactor     .43288        .24627        .17365E-04   -1.1516    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.99629e-11
Minuit parameter uncertainties:
  1  1.95401
  2  2.5999
  3  0.219941
  4  0.246878
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/186724': 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) = 5883.31484802
delta logL = 0.019208906956

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  3.162e-01  1.954e+00  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  3.945e+00  2.600e+00  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:  4.329e-01  2.469e-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.553e+00  2.199e-01  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/186724/cmap_HighResolution_306460801_306720001_4FGL_J1304.0+3704_daily_bin259.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.73e-03', job_status='DONE', photon_flux_upper_limit='7.40e-08', time_completed='2021-09-06 19:49:40.673288', job_id='186724', GAL2='0.43', fit_tolerance='1e-08', EG2='1.55', EG='1.57', time_epoch_completed='1630982980.67', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.42', dlogl='1.92e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='259' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 19:49:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0297>
Subject: Job 186724: <4FGL_J1304.0+3704_daily_bin259> in cluster <slac> Done

Job <4FGL_J1304.0+3704_daily_bin259> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 19:35:43 2021
Job was executed on host(s) <bullet0297>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 19:35:44 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:35:44 2021
Terminated at Mon Sep  6 19:49:41 2021
Results reported at Mon Sep  6 19:49:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin259 196.008 37.071 306460801 306720001 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 :                                   812.17 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            838 sec.

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

