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


Performing analysis on: 4FGL_J1304.0+3704_daily_bin569
RA = 196.008, Dec = 37.071
tmin = 386812801, tmax = 387072001
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='189457', job_status='RUN', time_executed='2021-09-06 19:46:17.797736', time_epoch_executed='1630982777.8' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='569'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/189457

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/189457/ft1_4FGL_J1304.0+3704_daily_bin569.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/189457/ft2_4FGL_J1304.0+3704_daily_bin569.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/189457/ft1_4FGL_J1304.0+3704_daily_bin569.fits outfile=/scratch/kocevski/189457/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin569.fits ra=196.008 dec=37.071 rad=12.0 tmin=386812801.0 tmax=387072001.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.51
user 3.28
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/189457/ft1_filtered_4FGL_J1304.0+3704_daily_bin569.fits evtable="EVENTS" scfile=/scratch/kocevski/189457/ft2_4FGL_J1304.0+3704_daily_bin569.fits sctable="SC_DATA" expcube=/scratch/kocevski/189457/ltcube_386812801_387072001_4FGL_J1304.0+3704_daily_bin569.fits outfile=/scratch/kocevski/189457/expmap_386812801_387072001_4FGL_J1304.0+3704_daily_bin569.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/189457/ltcube_386812801_387072001_4FGL_J1304.0+3704_daily_bin569.fits
.....................!
real 192.67
user 186.80
sys 5.20

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/189457/ft1_filtered_4FGL_J1304.0+3704_daily_bin569.fits scfile=/scratch/kocevski/189457/ft2_4FGL_J1304.0+3704_daily_bin569.fits outfile=/scratch/kocevski/189457/cmap_386812801_387072001_4FGL_J1304.0+3704_daily_bin569.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/189457/ft1_filtered_4FGL_J1304.0+3704_daily_bin569.fits scfile=/scratch/kocevski/189457/ft2_4FGL_J1304.0+3704_daily_bin569.fits outfile=/scratch/kocevski/189457/cmap_HighResolution_386812801_387072001_4FGL_J1304.0+3704_daily_bin569.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.7133       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.5193       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.1968       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    75.144       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .70484       1.0000         .10000E-03   10000.    
     9 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    60.873       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .37894       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .38603       1.0000         .10000E-03   10000.    
    16 'norm      '    .22172E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.9547       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10289E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    58.252       1.0000         .10000E-03   10000.    
    21 'Prefactor '    20.616       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.3095       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.9460       1.0000         .10000E-03   10000.    
    26 'norm      '    17.331       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .86598       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .56707       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.4582       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=   6235.002     FROM MIGRAD    STATUS=CONVERGED    789 CALLS     3981 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.4355       -.13043E-08** at limit **
   2  Prefactor     2.7147        4.7289        .22555E-05    .19222E-03
   3  Prefactor     4.5197        2.3683       -.94509E-08   -.10570E-04
   4  Prefactor     .10000E-03    6.1744        .18155E-07** at limit **
   5  Prefactor     6.2606        30.316        .24101E-06    .30224E-05
   6  Prefactor     .10000E-03    4.3264       -.45119E-07** at limit **
   7  Prefactor     75.129        55.416        .10631E-05   -.74559E-05
   8  Prefactor     .70543        4.5292        .13212E-05    .14686E-04
   9  norm          .10000E-03    1.3283       -.11673E-06** at limit **
  10  Prefactor     .10000E-03    28.568       -.21622E-05** at limit **
  11  Prefactor     60.825        30.115        .62184E-06    .64706E-04
  12  Prefactor     .10000E-03    10.603       -.24179E-06** at limit **
  13  norm          .39574        3.1195       -.52654E-07   -.15678E-03
  14  norm          .10000E-03    4.5518       -.55425E-07** at limit **
  15  norm          .39964        3.5592       -.23818E-06   -.39594E-05
  16  norm          .10000E-03    4.4219       -.96739E-06** at limit **
  17  norm          2.9549        3.4326        .14601E-06    .10293E-05
  18  Prefactor     .10000E-03    1.7198        .73718E-06** at limit **
  19  Prefactor     .10000E-03    4.5746        .71971E-07** at limit **
  20  Prefactor     58.252        39.077        .24474E-06    .89235E-06
  21  Prefactor     20.618        29.384        .71116E-08   -.47941E-05
  22  Prefactor     5.3105        15.740       -.28435E-07   -.40816E-04
  23  Prefactor     .10000E-03    15.747       -.28979E-06** at limit **
  24  Prefactor     .10000E-03    26.167        .20138E-05** at limit **
  25  Prefactor     4.9601        79.913       -.26383E-05    .36629E-05
  26  norm          17.331        2.8294        .14127E-07   -.23541E-04
  27  Prefactor     .10000E-03    2.1017       -.35823E-07** at limit **
  28  norm          .86963        9.4971        .53857E-06   -.71695E-04
  29  Normalizat    .56689        .16391       -.10145E-06   -.88746E-05
  30  Prefactor     1.4581        .20685       -.40271E-06    .11882E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 2.71474
  Prefactor  = 4.51965
  Prefactor  = 0.0001
  Prefactor  = 6.26063
  Prefactor  = 0.0001
  Prefactor  = 75.129
  Prefactor  = 0.705431
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 60.825
  Prefactor  = 0.0001
  norm       = 0.395737
  norm       = 0.0001
  norm       = 0.399637
  norm       = 0.0001
  norm       = 2.95485
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 58.2524
  Prefactor  = 20.6183
  Prefactor  = 5.31048
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.9601
  norm       = 17.3314
  Prefactor  = 0.0001
  norm       = 0.869627
  Normalizat = 0.566892
  Prefactor  = 1.45811
 **********
 **   18 **HESSE 
 **********

 FCN=   6235.002     FROM HESSE     STATUS=OK           594 CALLS     4575 TOTAL
                     EDM=   .70E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.4459        .92266E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.7147        4.8214        .11226E-02   -1.5378    
   3  Prefactor     4.5197        2.3661        .85424E-04   -1.5283    
   4  Prefactor     .10000E-03    6.2218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.2606        30.437        .16127E-03   -1.5207    
   6  Prefactor     .10000E-03    4.3273        .16041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     75.129        55.408        .23160E-03   -1.3972    
   8  Prefactor     .70543        4.4401        .32249E-03   -1.5540    
   9  norm          .10000E-03    1.3326        .88877E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    28.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     60.825        29.592        .51427E-04   -1.4147    
  12  Prefactor     .10000E-03    10.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .39574        14.662        .25479E-02   -1.5582    
  14  norm          .10000E-03    4.5548        .16453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .39964        5.3525        .23066E-02   -1.5582    
  16  norm          .10000E-03    8.1490        .27462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.9549        3.4188        .15126E-03   -1.5364    
  18  Prefactor     .10000E-03    7.7125        .17813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.5861        .16486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     58.252        39.043        .52564E-04   -1.4180    
  21  Prefactor     20.618        29.241        .88214E-04   -1.4800    
  22  Prefactor     5.3105        15.718        .17442E-03   -1.5247    
  23  Prefactor     .10000E-03    15.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    26.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     4.9601        79.738        .18084E-03   -1.5263    
  26  norm          17.331        2.8288        .51658E-04   -1.4875    
  27  Prefactor     .10000E-03    2.1152        .11176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .86963        34.230        .46800E-02   -1.5521    
  29  Normalizat    .56689        .19274        .28557E-03   -1.0941    
  30  Prefactor     1.4581        .24759        .24674E-03   -.78720    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.0455e-08
Minuit parameter uncertainties:
  1  4.30276e-07
  2  4.82207
  3  2.36612
  4  4.12297e-06
  5  27.6306
  6  2.94701e-06
  7  55.4458
  8  3.53975
  9  7.0069e-06
  10  9.11972e-05
  11  29.5987
  12  4.75998e-05
  13  4.81825
  14  1.36332e-06
  15  2.92505
  16  6.89994e-05
  17  3.419
  18  0.00037387
  19  1.47029e-06
  20  39.0606
  21  29.2614
  22  15.7305
  23  1.70299e-06
  24  0.000122984
  25  39.8373
  26  2.82883
  27  1.14067e-06
  28  10.9179
  29  0.192971
  30  0.247793
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  4.760e-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:  1.458e+00  2.478e-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:  5.669e-01  1.930e-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: 6.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.81e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/189457/likelihoodResults_386812801_387072001_4FGL_J1304.0+3704_daily_bin569.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) = 6235.00200536
delta logL = -0.000447057361271

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6235.00155864
delta logL = -3.34064679919e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10374E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4406       1.0000          .0000       10.000    
     3 'Normalizat'    .56680       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4583       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=   6235.002     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      215 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    1199.1        .90712E-02** at limit **
   2  Index         2.4453        8.5590        .50000       -.40482E-05
   3  Normalizat    .56689        .49194E-01    .64534E-01    .34012E-04
   4  Prefactor     1.4581        .65186E-01    .55806E-01    .25876E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.44533
  Normalizat = 0.566892
  Prefactor  = 1.45811
 **********
 **   18 **HESSE 
 **********

 FCN=   6235.002     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      246 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6212.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4453        7.7261        .50000       -.53627    
   3  Normalizat    .56689        .17591        .28557E-03   -1.0941    
   4  Prefactor     1.4581        .23415        .24674E-03   -.78720    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.82996e-09
Minuit parameter uncertainties:
  1  0.000229824
  2  67.8661
  3  0.176084
  4  0.234319
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/189457': 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) = 6235.0015583
delta logL = 8.75934347278e-09

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  2.298e-04  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.445e+00  6.787e+01  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:  1.458e+00  2.343e-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:  5.669e-01  1.761e-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/189457/cmap_HighResolution_386812801_387072001_4FGL_J1304.0+3704_daily_bin569.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.81e-03', job_status='DONE', photon_flux_upper_limit='6.22e-08', time_completed='2021-09-06 20:01:19.746065', job_id='189457', GAL2='1.46', fit_tolerance='1e-08', EG2='0.57', EG='0.57', time_epoch_completed='1630983679.75', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.46', dlogl='8.76e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='569' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 20:01:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0170>
Subject: Job 189457: <4FGL_J1304.0+3704_daily_bin569> in cluster <slac> Done

Job <4FGL_J1304.0+3704_daily_bin569> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 19:45:32 2021
Job was executed on host(s) <bullet0170>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 19:46:05 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:46:05 2021
Terminated at Mon Sep  6 20:01:20 2021
Results reported at Mon Sep  6 20:01:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin569 196.008 37.071 386812801 387072001 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 :                                   895.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            948 sec.

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

