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


Performing analysis on: 4FGL_J1304.0+3704_daily_bin970
RA = 196.008, Dec = 37.071
tmin = 490752001, tmax = 491011201
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='192264', job_status='RUN', time_executed='2021-09-06 19:55:46.053902', time_epoch_executed='1630983346.05' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='970'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/192264

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/192264/ft1_4FGL_J1304.0+3704_daily_bin970.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/192264/ft2_4FGL_J1304.0+3704_daily_bin970.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/192264/ft1_4FGL_J1304.0+3704_daily_bin970.fits outfile=/scratch/kocevski/192264/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin970.fits ra=196.008 dec=37.071 rad=12.0 tmin=490752001.0 tmax=491011201.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 5.84
user 5.49
sys 0.28

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/192264/ft1_filtered_4FGL_J1304.0+3704_daily_bin970.fits evtable="EVENTS" scfile=/scratch/kocevski/192264/ft2_4FGL_J1304.0+3704_daily_bin970.fits sctable="SC_DATA" expcube=/scratch/kocevski/192264/ltcube_490752001_491011201_4FGL_J1304.0+3704_daily_bin970.fits outfile=/scratch/kocevski/192264/expmap_490752001_491011201_4FGL_J1304.0+3704_daily_bin970.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/192264/ltcube_490752001_491011201_4FGL_J1304.0+3704_daily_bin970.fits
.....................!
real 192.34
user 186.31
sys 5.37

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/192264/ft1_filtered_4FGL_J1304.0+3704_daily_bin970.fits scfile=/scratch/kocevski/192264/ft2_4FGL_J1304.0+3704_daily_bin970.fits outfile=/scratch/kocevski/192264/cmap_490752001_491011201_4FGL_J1304.0+3704_daily_bin970.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.39
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.287       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.5910       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.9062       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .39455E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.7683       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.5395       1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.312       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10537E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    18.478       1.0000         .10000E-03   10000.    
    15 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.1340       1.0000         .10000E-03   10000.    
    17 'norm      '    .12704E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    39.114       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11659E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    21.757       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.8807       1.0000         .10000E-03   10000.    
    28 'norm      '    5.3931       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1106       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .73177       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=   3418.128     FROM MIGRAD    STATUS=CONVERGED    758 CALLS     3918 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.288        5.8802       -.19935E-06   -.83804E-04
   2  Prefactor     3.5892        12.468        .10896E-04   -.42673E-03
   3  Prefactor     1.9064        2.0692       -.77245E-07   -.79248E-04
   4  Prefactor     .10000E-03    13.799        .40200E-06** at limit **
   5  Prefactor     .10000E-03    23.883        .11830E-05** at limit **
   6  Prefactor     .10000E-03    8.0281       -.18212E-06** at limit **
   7  Prefactor     .10000E-03    35.708       -.29805E-05** at limit **
   8  Prefactor     .10000E-03    6.2002        .30776E-06** at limit **
   9  norm          4.7686        5.5106        .30161E-06   -.43547E-04
  10  Prefactor     3.5082        341.37       -.15573E-04   -.62748E-04
  11  Prefactor     24.333        31.960        .29886E-05    .49936E-04
  12  Prefactor     .10001E-03    71.886        .84095E-05** at limit **
  13  norm          .10000E-03    4.4133        .30388E-06** at limit **
  14  norm          18.477        18.805        .46549E-06    .19511E-04
  15  norm          .10001E-03    4.9652        .19021E-05** at limit **
  16  norm          8.1375        7.6831       -.39781E-06   -.63893E-03
  17  norm          .10000E-03    4.6985        .32801E-06** at limit **
  18  Prefactor     .10000E-03    1.9791        .14013E-06** at limit **
  19  Prefactor     .10000E-03    8.0345       -.54710E-07** at limit **
  20  Prefactor     39.138        62.711        .32663E-05    .19807E-03
  21  Prefactor     .10000E-03    35.761       -.29405E-05** at limit **
  22  Prefactor     .10000E-03    8.9696        .20775E-06** at limit **
  23  Prefactor     .10005E-03    90.967       -.75413E-05** at limit **
  24  Prefactor     21.760        25.195        .47159E-06   -.23034E-05
  25  Prefactor     .10002E-03    45.180        .63861E-05** at limit **
  26  norm          .10000E-03    1.2591        .30613E-06** at limit **
  27  Prefactor     2.8800        5.7011        .45555E-06   -.10459E-03
  28  norm          5.3929        16.006        .49247E-05   -.17494E-03
  29  Normalizat    1.1102        .21594       -.32095E-05   -.28516E-03
  30  Prefactor     .73228        .25124        .60847E-07   -.29646E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.2877
  Prefactor  = 3.5892
  Prefactor  = 1.9064
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 4.7686
  Prefactor  = 3.5082
  Prefactor  = 24.3333
  Prefactor  = 0.000100013
  norm       = 0.0001
  norm       = 18.4771
  norm       = 0.000100006
  norm       = 8.13752
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.1377
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.000100045
  Prefactor  = 21.7597
  Prefactor  = 0.000100018
  norm       = 0.0001
  Prefactor  = 2.87999
  norm       = 5.39291
  Normalizat = 1.11024
  Prefactor  = 0.732277
 **********
 **   18 **HESSE 
 **********

 FCN=   3418.128     FROM HESSE     STATUS=OK           584 CALLS     4502 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.288        5.8619        .93632E-04   -1.5007    
   2  Prefactor     3.5892        12.837        .10662E-02   -1.5329    
   3  Prefactor     1.9064        2.0712        .84284E-04   -1.5432    
   4  Prefactor     .10000E-03    52.769        .41684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    23.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.0305        .16181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    35.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.2605        .14212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.7686        5.4928        .13941E-03   -1.5271    
  10  Prefactor     3.5082        354.69        .21485E-03   -1.5333    
  11  Prefactor     24.333        31.571        .81241E-04   -1.4721    
  12  Prefactor     .10001E-03    74.411        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.4335        .11987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          18.477        18.788        .93174E-04   -1.4848    
  15  norm          .10001E-03    8.3743        .23431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.1375        7.4034        .14058E-03   -1.5137    
  17  norm          .10000E-03    9.5013        .24135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.9888        .80258E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.0458        .16185E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     39.138        62.565        .64089E-04   -1.4456    
  21  Prefactor     .10000E-03    35.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.9877        .17103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10005E-03    93.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     21.760        25.190        .85872E-04   -1.4775    
  25  Prefactor     .10002E-03    46.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    2.6395        .12717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.8800        5.6858        .18935E-03   -1.5369    
  28  norm          5.3929        16.082        .86521E-03   -1.5243    
  29  Normalizat    1.1102        .25197        .20940E-03   -.89424    
  30  Prefactor     .73228        .29194        .30234E-03   -1.0228    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.35447e-09
Minuit parameter uncertainties:
  1  5.86213
  2  12.8468
  3  2.07126
  4  0.000293928
  5  0.000259945
  6  2.57124e-05
  7  0.000761585
  8  1.1396e-05
  9  5.4934
  10  70.9854
  11  31.593
  12  0.0019866
  13  1.72274e-05
  14  18.7939
  15  0.00044652
  16  7.40421
  17  0.000144003
  18  3.75461e-06
  19  1.96463e-05
  20  62.6705
  21  0.000737506
  22  2.76301e-05
  23  0.00411867
  24  25.2025
  25  0.00181157
  26  2.48776e-05
  27  5.68688
  28  16.0944
  29  0.252238
  30  0.292557
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  1.987e-03  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.323e-01  2.926e-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.110e+00  2.522e-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: 1.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/192264/likelihoodResults_490752001_491011201_4FGL_J1304.0+3704_daily_bin970.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) = 3418.12828477
delta logL = -6.39948198113e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3418.12822182
delta logL = -1.0484404811e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9248       1.0000          .0000       10.000    
     3 'Normalizat'    1.1102       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73228       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.

 FCN=   3418.128     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      241 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    573.64        .90712E-02** at limit **
   2  Index         2.8854        8.5273        .50000        .12348E-04
   3  Normalizat    1.1102        .23192E-01    .37598E-01   -.21184E-03
   4  Prefactor     .73228        .27862E-01    .68327E-01   -.90246E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.88535
  Normalizat = 1.11024
  Prefactor  = 0.732285
 **********
 **   18 **HESSE 
 **********

 FCN=   3418.128     FROM HESSE     STATUS=OK            31 CALLS      272 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.105        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8854        6.4348        .50000       -.43668    
   3  Normalizat    1.1102        .23782        .20940E-03   -.89424    
   4  Prefactor     .73228        .28507        .30234E-03   -1.0227    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.05201e-10
Minuit parameter uncertainties:
  1  6.15444e-05
  2  4.77792
  3  0.238053
  4  0.285638
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/192264': 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) = 3418.12822171
delta logL = -9.38022822083e-07

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  6.154e-05  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.885e+00  4.778e+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:  7.323e-01  2.856e-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.110e+00  2.381e-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/192264/cmap_HighResolution_490752001_491011201_4FGL_J1304.0+3704_daily_bin970.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.27e-03', job_status='DONE', photon_flux_upper_limit='1.20e-07', time_completed='2021-09-06 20:06:21.359226', job_id='192264', GAL2='0.73', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1630983981.36', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='-9.38e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='970' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 20:06:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 192264: <4FGL_J1304.0+3704_daily_bin970> in cluster <slac> Done

Job <4FGL_J1304.0+3704_daily_bin970> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Sep  6 19:55:26 2021
Job was executed on host(s) <bullet0253>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 19:55:30 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:55:30 2021
Terminated at Mon Sep  6 20:06:22 2021
Results reported at Mon Sep  6 20:06:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin970 196.008 37.071 490752001 491011201 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 :                                   630.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             353.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   651 sec.
    Turnaround time :                            656 sec.

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

