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


Performing analysis on: 4FGL_J1304.0+3704_daily_bin878
RA = 196.008, Dec = 37.071
tmin = 466905601, tmax = 467164801
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='190965', job_status='RUN', time_executed='2021-09-06 19:53:58.420108', time_epoch_executed='1630983238.42' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='878'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/190965

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/190965/ft1_4FGL_J1304.0+3704_daily_bin878.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/190965/ft2_4FGL_J1304.0+3704_daily_bin878.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/190965/ft1_4FGL_J1304.0+3704_daily_bin878.fits outfile=/scratch/kocevski/190965/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin878.fits ra=196.008 dec=37.071 rad=12.0 tmin=466905601.0 tmax=467164801.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.39
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/190965/ft1_filtered_4FGL_J1304.0+3704_daily_bin878.fits" evtable="EVENTS" scfile=/scratch/kocevski/190965/ft2_4FGL_J1304.0+3704_daily_bin878.fits sctable="SC_DATA" outfile=/scratch/kocevski/190965/ltcube_466905601_467164801_4FGL_J1304.0+3704_daily_bin878.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/190965/ft2_4FGL_J1304.0+3704_daily_bin878.fits
.....................!
real 15.16
user 14.76
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/190965/ft1_filtered_4FGL_J1304.0+3704_daily_bin878.fits evtable="EVENTS" scfile=/scratch/kocevski/190965/ft2_4FGL_J1304.0+3704_daily_bin878.fits sctable="SC_DATA" expcube=/scratch/kocevski/190965/ltcube_466905601_467164801_4FGL_J1304.0+3704_daily_bin878.fits outfile=/scratch/kocevski/190965/expmap_466905601_467164801_4FGL_J1304.0+3704_daily_bin878.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/190965/ltcube_466905601_467164801_4FGL_J1304.0+3704_daily_bin878.fits
.....................!
real 191.17
user 186.34
sys 4.07

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/190965/ft1_filtered_4FGL_J1304.0+3704_daily_bin878.fits scfile=/scratch/kocevski/190965/ft2_4FGL_J1304.0+3704_daily_bin878.fits outfile=/scratch/kocevski/190965/cmap_466905601_467164801_4FGL_J1304.0+3704_daily_bin878.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.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/190965/ft1_filtered_4FGL_J1304.0+3704_daily_bin878.fits scfile=/scratch/kocevski/190965/ft2_4FGL_J1304.0+3704_daily_bin878.fits outfile=/scratch/kocevski/190965/cmap_HighResolution_466905601_467164801_4FGL_J1304.0+3704_daily_bin878.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.58
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.1535       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.3667       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .85304       1.0000         .10000E-03   10000.    
     5 'Prefactor '    31.035       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    121.79       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.4449       1.0000         .10000E-03   10000.    
     9 'norm      '    5.4269       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    71.276       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.4454       1.0000         .10000E-03   10000.    
    16 'norm      '    .17330E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.0053       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    32.197       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11774E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.075       1.0000         .10000E-03   10000.    
    25 'Prefactor '    62.789       1.0000         .10000E-03   10000.    
    26 'norm      '    6.4041       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .20095E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .87318       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .89401       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=   5411.280     FROM MIGRAD    STATUS=CONVERGED    116 CALLS     3308 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.1534        4.2281        .54944E-05    .21713E-02
   2  Prefactor     .10000E-03    3.3188        .15366E-05** at limit **
   3  Prefactor     1.3673        2.4925       -.39490E-05   -.23061E-03
   4  Prefactor     .86020        1.2067       -.10971E-05   -.22778E-04
   5  Prefactor     31.034        1.0373       -.32587E-06    .26294E-03
   6  Prefactor     .10000E-03    5.8498        .70928E-07** at limit **
   7  Prefactor     121.78        2.6233       -.13241E-05    .69035E-02
   8  Prefactor     4.4453        1.5308        .28193E-05    .49929E-02
   9  norm          5.4327        2.4692        .56573E-05    .68265E-02
  10  Prefactor     .10034E-03    14.247        .69219E-05** at limit **
  11  Prefactor     71.248        5.5729       -.35307E-05    .10123E-01
  12  Prefactor     .10000E-03    8.5270       -.15428E-05** at limit **
  13  norm          .10000E-03    1.7479       -.66014E-06** at limit **
  14  norm          .10002E-03    4.3149        .23742E-05** at limit **
  15  norm          4.4459        3.7519       -.14665E-05   -.11632E-02
  16  norm          .10004E-03    5.2606       -.43895E-05** at limit **
  17  norm          2.0058        2.8313        .33836E-06    .10210E-03
  18  Prefactor     .10000E-03    2.2672        .20513E-06** at limit **
  19  Prefactor     .10024E-03    10.303        .26326E-04** at limit **
  20  Prefactor     .10000E-03    16.486       -.16043E-04** at limit **
  21  Prefactor     .10004E-03    51.794        .61472E-04** at limit **
  22  Prefactor     32.197        1.0107       -.16493E-06   -.10878E-03
  23  Prefactor     .10145E-03    142.62       -.70309E-04** at limit **
  24  Prefactor     16.076        1.0036       -.11781E-06    .51726E-05
  25  Prefactor     62.762        6.2040       -.46484E-05    .10898E-01
  26  norm          6.4043        2.1407        .10814E-05    .20321E-03
  27  Prefactor     .10000E-03    1.7393       -.24744E-06** at limit **
  28  norm          .10014E-03    33.329       -.43667E-04** at limit **
  29  Normalizat    .87328        .20539        .12222E-05    .12864E-05
  30  Prefactor     .89385        .25158        .66806E-06   -.14340E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.15336
  Prefactor  = 0.0001
  Prefactor  = 1.36734
  Prefactor  = 0.860202
  Prefactor  = 31.0343
  Prefactor  = 0.0001
  Prefactor  = 121.776
  Prefactor  = 4.4453
  norm       = 5.43274
  Prefactor  = 0.000100337
  Prefactor  = 71.2475
  Prefactor  = 0.000100003
  norm       = 0.0001
  norm       = 0.000100022
  norm       = 4.44587
  norm       = 0.000100038
  norm       = 2.00579
  Prefactor  = 0.0001
  Prefactor  = 0.000100241
  Prefactor  = 0.000100004
  Prefactor  = 0.000100036
  Prefactor  = 32.1966
  Prefactor  = 0.00010145
  Prefactor  = 16.076
  Prefactor  = 62.7621
  norm       = 6.40426
  Prefactor  = 0.0001
  norm       = 0.000100141
  Normalizat = 0.873278
  Prefactor  = 0.893846
 **********
 **   18 **HESSE 
 **********

 FCN=   5411.280     FROM HESSE     STATUS=OK           646 CALLS     3954 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.1534        4.1937        .40460E-02   -1.5212    
   2  Prefactor     .10000E-03    3.2782        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.3673        2.4974        .93297E-02   -1.5474    
   4  Prefactor     .86020        11.177        .78867E-01   -1.5522    
   5  Prefactor     31.034        27.540        .17981E-02   -1.4593    
   6  Prefactor     .10000E-03    5.8502        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     121.78        85.865        .91173E-03   -1.3496    
   8  Prefactor     4.4453        5.7027        .47750E-02   -1.5286    
   9  norm          5.4327        7.4812        .43124E-02   -1.5242    
  10  Prefactor     .10034E-03    22.547        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     71.248        43.562        .11888E-02   -1.4018    
  12  Prefactor     .10000E-03    8.6514        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.7411        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10002E-03    9.1715        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.4459        4.1476        .47747E-02   -1.5286    
  16  norm          .10004E-03    9.1664        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.0058        2.8538        .73103E-02   -1.5425    
  18  Prefactor     .10000E-03    2.2241        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10024E-03    19.705        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    17.416        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10004E-03    56.016        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     32.197        19.974        .17654E-02   -1.4573    
  23  Prefactor     .10145E-03    145.02        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     16.076        30.821        .24974E-02   -1.4906    
  25  Prefactor     62.762        74.872        .12660E-02   -1.4122    
  26  norm          6.4043        2.1472        .39650E-02   -1.5202    
  27  Prefactor     .10000E-03    1.7333        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10014E-03    36.226        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .87328        .18312        .44558E-01   -.97406    
  30  Prefactor     .89385        .21454        .44929E-01   -.96356    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64008e-06
Minuit parameter uncertainties:
  1  4.1939
  2  1.06477e-05
  3  2.49757
  4  6.20261
  5  27.5515
  6  2.22141e-07
  7  85.9534
  8  5.70336
  9  7.48252
  10  0.00551409
  11  43.5819
  12  0.000297782
  13  7.80709e-07
  14  0.000897244
  15  4.14785
  16  0.00117289
  17  2.85403
  18  1.88438e-06
  19  0.00436158
  20  0.000529356
  21  0.00285969
  22  19.978
  23  0.0290697
  24  30.8519
  25  74.9845
  26  2.14721
  27  2.22114e-06
  28  0.00452447
  29  0.183248
  30  0.214739
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  2.978e-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:  8.938e-01  2.147e-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:  8.733e-01  1.832e-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.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/190965/likelihoodResults_466905601_467164801_4FGL_J1304.0+3704_daily_bin878.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) = 5411.2805449
delta logL = -0.000549201291506

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5411.2799971
delta logL = -1.40025804285e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11730E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4176       1.0000          .0000       10.000    
     3 'Normalizat'    .87309       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89409       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=   5411.280     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      235 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10093E-03    77.296        .18142E-02** at limit **
   2  Index         2.3709        8.5734        .50000        .14486E-04
   3  Normalizat    .87328        .11951E-01    .23216E-03    .42064E-04
   4  Prefactor     .89385        .14773E-01    .28233E-03    .28992E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100931
  Index      = 2.37089
  Normalizat = 0.873278
  Prefactor  = 0.893846
 **********
 **   18 **HESSE 
 **********

 FCN=   5411.280     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      264 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10093E-03    334.52        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3709        6.1302        .50000       -.55368    
   3  Normalizat    .87328        .25796E-01    .92864E-05   -.97406    
   4  Prefactor     .89385        .31887E-01    .11293E-04   -.96356    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.15273e-08
Minuit parameter uncertainties:
  1  0.0354977
  2  591.319
  3  0.0257964
  4  0.0318877
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/190965': 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) = 5411.27999551
delta logL = 1.90922037291e-07

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.009e-04  3.550e-02  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.371e+00  5.913e+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:  8.938e-01  3.189e-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:  8.733e-01  2.580e-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/190965/cmap_HighResolution_466905601_467164801_4FGL_J1304.0+3704_daily_bin878.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.91e-03', job_status='DONE', photon_flux_upper_limit='6.34e-08', time_completed='2021-09-06 20:06:45.802152', job_id='190965', GAL2='0.89', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1630984005.8', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='1.91e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='878' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 20:06:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 190965: <4FGL_J1304.0+3704_daily_bin878> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin878 196.008 37.071 466905601 467164801 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 :                                   764.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             274.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            974 sec.

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

