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


Performing analysis on: 4FGL_J1304.0+3704_daily_bin261
RA = 196.008, Dec = 37.071
tmin = 306979201, tmax = 307238401
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='186727', job_status='RUN', time_executed='2021-09-06 19:37:36.048810', time_epoch_executed='1630982256.05' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='261'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/186727

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/186727/ft1_4FGL_J1304.0+3704_daily_bin261.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/186727/ft2_4FGL_J1304.0+3704_daily_bin261.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/186727/ft1_4FGL_J1304.0+3704_daily_bin261.fits outfile=/scratch/kocevski/186727/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin261.fits ra=196.008 dec=37.071 rad=12.0 tmin=306979201.0 tmax=307238401.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 14.54
user 14.04
sys 0.42

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/186727/ft1_filtered_4FGL_J1304.0+3704_daily_bin261.fits evtable="EVENTS" scfile=/scratch/kocevski/186727/ft2_4FGL_J1304.0+3704_daily_bin261.fits sctable="SC_DATA" expcube=/scratch/kocevski/186727/ltcube_306979201_307238401_4FGL_J1304.0+3704_daily_bin261.fits outfile=/scratch/kocevski/186727/expmap_306979201_307238401_4FGL_J1304.0+3704_daily_bin261.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/186727/ltcube_306979201_307238401_4FGL_J1304.0+3704_daily_bin261.fits
.....................!
real 190.86
user 185.95
sys 4.43

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/186727/ft1_filtered_4FGL_J1304.0+3704_daily_bin261.fits scfile=/scratch/kocevski/186727/ft2_4FGL_J1304.0+3704_daily_bin261.fits outfile=/scratch/kocevski/186727/cmap_306979201_307238401_4FGL_J1304.0+3704_daily_bin261.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.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/186727/ft1_filtered_4FGL_J1304.0+3704_daily_bin261.fits scfile=/scratch/kocevski/186727/ft2_4FGL_J1304.0+3704_daily_bin261.fits outfile=/scratch/kocevski/186727/cmap_HighResolution_306979201_307238401_4FGL_J1304.0+3704_daily_bin261.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.4694       1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.045       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.7909       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .19621E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.174       1.0000         .10000E-03   10000.    
     7 'Prefactor '    85.030       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.1763       1.0000         .10000E-03   10000.    
    15 'norm      '    16.807       1.0000         .10000E-03   10000.    
    16 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.4134       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.149       1.0000         .10000E-03   10000.    
    20 'Prefactor '    100.67       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    27.572       1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.449       1.0000         .10000E-03   10000.    
    24 'Prefactor '    14.018       1.0000         .10000E-03   10000.    
    25 'Prefactor '    46.850       1.0000         .10000E-03   10000.    
    26 'norm      '    2.1219       1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.9320       1.0000         .10000E-03   10000.    
    28 'norm      '    12.967       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .76962       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .90938       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=   3276.486     FROM MIGRAD    STATUS=CONVERGED   1373 CALLS     4633 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.4698        6.5677        .12273E-03    .51317E-04
   2  Prefactor     15.044        10.749        .10326E-03    .55049E-05
   3  Prefactor     4.7912        4.0716        .95065E-04    .58539E-04
   4  Prefactor     .10006E-03    30.773        .73536E-01** at limit **
   5  Prefactor     .10000E-03    8.5642        .16361E-02** at limit **
   6  Prefactor     10.180        22.646        .12562E-03   -.30408E-04
   7  Prefactor     85.038        115.19        .43565E-04    .17015E-04
   8  Prefactor     .10000E-03    35.822        .33876E-02** at limit **
   9  norm          .10000E-03    2.9950        .96635E-03** at limit **
  10  Prefactor     .10000E-03    13.278        .18142E-02** at limit **
  11  Prefactor     .10000E-03    87.807        .18142E-02** at limit **
  12  Prefactor     .10000E-03    13.049        .18142E-02** at limit **
  13  norm          .10000E-03    9.6773        .17208E-02** at limit **
  14  norm          7.1761        8.6501        .14974E-03   -.47453E-05
  15  norm          16.807        7.6649        .97695E-04    .58301E-04
  16  norm          .10000E-03    6.4921        .14210E-02** at limit **
  17  norm          6.4133        4.4525        .97443E-04   -.39085E-05
  18  Prefactor     .10000E-03    2.9164        .94994E-03** at limit **
  19  Prefactor     17.145        20.675        .96716E-04   -.35911E-04
  20  Prefactor     100.67        68.533        .40068E-04    .26018E-04
  21  Prefactor     .10000E-03    29.399        .18142E-02** at limit **
  22  Prefactor     27.573        28.839        .76295E-04   -.34272E-05
  23  Prefactor     11.449        88.527        .11840E-03    .17284E-05
  24  Prefactor     14.012        36.388        .10698E-03    .15463E-04
  25  Prefactor     46.798        101.99        .58580E-04    .56203E-04
  26  norm          2.1219        1.6640        .62923E-04    .56913E-04
  27  Prefactor     8.9307        9.0907        .13411E-03    .25431E-05
  28  norm          12.967        17.845        .55618E-03    .49159E-04
  29  Normalizat    .76975        .26700        .24373E-03    .47087E-04
  30  Prefactor     .90931        .30767        .27619E-03    .53614E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.46983
  Prefactor  = 15.0438
  Prefactor  = 4.79122
  Prefactor  = 0.000100059
  Prefactor  = 0.0001
  Prefactor  = 10.1801
  Prefactor  = 85.0383
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.17609
  norm       = 16.8066
  norm       = 0.000100001
  norm       = 6.41327
  Prefactor  = 0.0001
  Prefactor  = 17.1447
  Prefactor  = 100.666
  Prefactor  = 0.0001
  Prefactor  = 27.5725
  Prefactor  = 11.4493
  Prefactor  = 14.012
  Prefactor  = 46.7976
  norm       = 2.12185
  Prefactor  = 8.93072
  norm       = 12.967
  Normalizat = 0.769752
  Prefactor  = 0.909306
 **********
 **   18 **HESSE 
 **********

 FCN=   3276.486     FROM HESSE     STATUS=OK           566 CALLS     5199 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.4698        6.5688        .49093E-05   -1.5161    
   2  Prefactor     15.044        10.749        .41304E-05   -1.4932    
   3  Prefactor     4.7912        4.0721        .38026E-05   -1.5270    
   4  Prefactor     .10006E-03    27.137        .79495E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.5643        .32722E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.180        22.623        .50249E-05   -1.5070    
   7  Prefactor     85.038        115.19        .87130E-05   -1.3861    
   8  Prefactor     .10000E-03    36.119        .67752E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.9950        .19327E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.278        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    87.828        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.050        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    9.6841        .34416E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.1761        8.6502        .59895E-05   -1.5172    
  15  norm          16.807        7.6644        .39078E-05   -1.4888    
  16  norm          .10000E-03    6.4923        .28420E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.4133        4.4524        .38977E-05   -1.5201    
  18  Prefactor     .10000E-03    2.9165        .18999E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     17.145        20.676        .38687E-05   -1.4880    
  20  Prefactor     100.67        68.513        .80137E-05   -1.3698    
  21  Prefactor     .10000E-03    29.399        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     27.573        28.840        .30518E-05   -1.4657    
  23  Prefactor     11.449        88.499        .47359E-05   -1.5031    
  24  Prefactor     14.012        36.384        .42791E-05   -1.4959    
  25  Prefactor     46.798        101.99        .11716E-04   -1.4339    
  26  norm          2.1219        1.6640        .25169E-05   -1.5417    
  27  Prefactor     8.9307        9.0907        .53645E-05   -1.5110    
  28  norm          12.967        17.844        .22247E-04   -1.4988    
  29  Normalizat    .76975        .26732        .97492E-05   -1.0120    
  30  Prefactor     .90931        .30801        .11048E-04   -.95817    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.63428e-10
Minuit parameter uncertainties:
  1  6.56945
  2  10.7502
  3  4.07234
  4  0.00253937
  5  7.60783e-07
  6  22.6416
  7  115.499
  8  0.000172345
  9  2.20044e-05
  10  3.21375e-05
  11  0.00095275
  12  4.64284e-05
  13  9.1833e-05
  14  8.65175
  15  7.66483
  16  0.000139549
  17  4.45264
  18  4.97302e-05
  19  20.685
  20  68.5669
  21  0.000116303
  22  28.8541
  23  63.7939
  24  36.4414
  25  102.377
  26  1.66404
  27  9.09208
  28  17.8512
  29  0.267777
  30  0.308604
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  4.643e-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:  9.093e-01  3.086e-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:  7.698e-01  2.678e-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: 9.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/186727/likelihoodResults_306979201_307238401_4FGL_J1304.0+3704_daily_bin261.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) = 3276.48656737
delta logL = -0.000364980825452

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3276.48620289
delta logL = -4.99351244798e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12321E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3910       1.0000          .0000       10.000    
     3 'Normalizat'    .76976       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90930       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=   3276.486     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      239 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11165E-03    14.617        .18142E-01** at limit **
   2  Index         2.2354        5.3195        .50000        .24363E-04
   3  Normalizat    .76975        .45042E-02    .24373E-03   -.42214E-05
   4  Prefactor     .90930        .55422E-02    .27619E-03   -.24739E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000111647
  Index      = 2.23545
  Normalizat = 0.769752
  Prefactor  = 0.909305
 **********
 **   18 **HESSE 
 **********

 FCN=   3276.486     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      268 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11165E-03    125.97        .24485E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2354        8.1777        .50000       -.58585    
   3  Normalizat    .76975        .13245E-01    .97490E-05   -1.0120    
   4  Prefactor     .90930        .16297E-01    .11048E-04   -.95817    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.10008e-08
Minuit parameter uncertainties:
  1  0.0767686
  2  328.11
  3  0.0132448
  4  0.0162971
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/186727': 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) = 3276.48620144
delta logL = 9.55541963776e-07

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.116e-04  7.677e-02  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.235e+00  3.281e+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:  9.093e-01  1.630e-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:  7.698e-01  1.324e-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/186727/cmap_HighResolution_306979201_307238401_4FGL_J1304.0+3704_daily_bin261.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.54e-03', job_status='DONE', photon_flux_upper_limit='9.73e-08', time_completed='2021-09-06 19:49:17.612790', job_id='186727', GAL2='0.91', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1630982957.61', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='9.56e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='261' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 19:49:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 186727: <4FGL_J1304.0+3704_daily_bin261> in cluster <slac> Done

Job <4FGL_J1304.0+3704_daily_bin261> 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) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 19:35:45 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:45 2021
Terminated at Mon Sep  6 19:49:17 2021
Results reported at Mon Sep  6 19:49:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin261 196.008 37.071 306979201 307238401 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 :                                   692.18 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             255.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            814 sec.

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

