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


Performing analysis on: 4FGL_J1304.0+3704_daily_bin974
RA = 196.008, Dec = 37.071
tmin = 491788801, tmax = 492048001
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='192269', job_status='RUN', time_executed='2021-09-06 19:58:21.590109', time_epoch_executed='1630983501.59' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='974'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/192269

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/192269/ft1_4FGL_J1304.0+3704_daily_bin974.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/192269/ft2_4FGL_J1304.0+3704_daily_bin974.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/192269/ft1_4FGL_J1304.0+3704_daily_bin974.fits outfile=/scratch/kocevski/192269/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin974.fits ra=196.008 dec=37.071 rad=12.0 tmin=491788801.0 tmax=492048001.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 4.37
user 4.13
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/192269/ft1_filtered_4FGL_J1304.0+3704_daily_bin974.fits" evtable="EVENTS" scfile=/scratch/kocevski/192269/ft2_4FGL_J1304.0+3704_daily_bin974.fits sctable="SC_DATA" outfile=/scratch/kocevski/192269/ltcube_491788801_492048001_4FGL_J1304.0+3704_daily_bin974.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/192269/ft2_4FGL_J1304.0+3704_daily_bin974.fits
.....................!
real 15.79
user 15.40
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/192269/ft1_filtered_4FGL_J1304.0+3704_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/192269/ft2_4FGL_J1304.0+3704_daily_bin974.fits sctable="SC_DATA" expcube=/scratch/kocevski/192269/ltcube_491788801_492048001_4FGL_J1304.0+3704_daily_bin974.fits outfile=/scratch/kocevski/192269/expmap_491788801_492048001_4FGL_J1304.0+3704_daily_bin974.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/192269/ltcube_491788801_492048001_4FGL_J1304.0+3704_daily_bin974.fits
.....................!
real 191.47
user 186.61
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/192269/ft1_filtered_4FGL_J1304.0+3704_daily_bin974.fits scfile=/scratch/kocevski/192269/ft2_4FGL_J1304.0+3704_daily_bin974.fits outfile=/scratch/kocevski/192269/cmap_491788801_492048001_4FGL_J1304.0+3704_daily_bin974.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/192269/ft1_filtered_4FGL_J1304.0+3704_daily_bin974.fits scfile=/scratch/kocevski/192269/ft2_4FGL_J1304.0+3704_daily_bin974.fits outfile=/scratch/kocevski/192269/cmap_HighResolution_491788801_492048001_4FGL_J1304.0+3704_daily_bin974.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10096E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.914       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.2986       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.401       1.0000         .10000E-03   10000.    
     6 'Prefactor '    56.860       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    64.096       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    23.036       1.0000         .10000E-03   10000.    
    14 'norm      '    48.324       1.0000         .10000E-03   10000.    
    15 'norm      '    27.992       1.0000         .10000E-03   10000.    
    16 'norm      '    .10152E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    16.157       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    94.724       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    37.281       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10299E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .22453E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .21837       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.5046       1.0000         .10000E-03   10000.    
    28 'norm      '    50.987       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.4302       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .24758E-05   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=   842.8642     FROM MIGRAD    STATUS=CONVERGED   1341 CALLS     4469 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    24.047        .13801E-02** at limit **
   2  Prefactor     19.915        24.873        .89754E-04    .16308E-05
   3  Prefactor     2.2974        8.7598        .15984E-03   -.61435E-05
   4  Prefactor     .10000E-03    59.785        .18142E-02** at limit **
   5  Prefactor     23.408        66.626        .82805E-04    .36898E-05
   6  Prefactor     56.867        95.931        .53200E-04    .48616E-05
   7  Prefactor     .10000E-03    120.78        .18142E-02** at limit **
   8  Prefactor     .10000E-03    21.295        .13077E-02** at limit **
   9  norm          .10000E-03    6.2434        .70856E-03** at limit **
  10  Prefactor     64.126        163.92        .50125E-04    .52676E-05
  11  Prefactor     .10000E-03    43.071        .18142E-02** at limit **
  12  Prefactor     .10000E-03    61.161        .18142E-02** at limit **
  13  norm          23.039        21.331        .83456E-04    .51084E-06
  14  norm          48.319        61.056        .57684E-04    .39466E-05
  15  norm          27.994        15.735        .75722E-04    .56793E-04
  16  norm          .10000E-03    44.037        .18142E-02** at limit **
  17  norm          16.157        13.709        .95627E-04    .50081E-05
  18  Prefactor     .10000E-03    5.5162        .66495E-03** at limit **
  19  Prefactor     .10000E-03    22.139        .13345E-02** at limit **
  20  Prefactor     94.746        108.74        .20648E-03    .15658E-04
  21  Prefactor     .10000E-03    75.301        .18142E-02** at limit **
  22  Prefactor     37.244        61.822        .65640E-04    .12773E-04
  23  Prefactor     .10000E-03    86.079        .18142E-02** at limit **
  24  Prefactor     .10000E-03    906.55        .20122E-02** at limit **
  25  Prefactor     .10037E-03    444.96        .15638    ** at limit **
  26  norm          .10000E-03    1.3399        .32817E-03** at limit **
  27  Prefactor     5.5063        17.840        .85626E-03    .32468E-04
  28  norm          50.990        48.029        .56165E-04    .23065E-04
  29  Normalizat    1.4301        .30114        .19190E-03    .60136E-04
  30  Prefactor     .41234E-11    1.0054        .11958E-01** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 19.9155
  Prefactor  = 2.29739
  Prefactor  = 0.0001
  Prefactor  = 23.4078
  Prefactor  = 56.8674
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 64.1262
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 23.0391
  norm       = 48.3188
  norm       = 27.9936
  norm       = 0.0001
  norm       = 16.1573
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 94.746
  Prefactor  = 0.0001
  Prefactor  = 37.2435
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100374
  norm       = 0.0001
  Prefactor  = 5.50627
  norm       = 50.9902
  Normalizat = 1.43008
  Prefactor  = 4.12337e-12
 **********
 **   18 **HESSE 
 **********

 FCN=   842.8642     FROM HESSE     STATUS=OK           568 CALLS     5037 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    24.048        .27603E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.915        24.873        .35902E-05   -1.4815    
   3  Prefactor     2.2974        8.7579        .63936E-05   -1.5405    
   4  Prefactor     .10000E-03    59.791        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     23.408        66.623        .33122E-05   -1.4740    
   6  Prefactor     56.867        95.933        .21280E-05   -1.4198    
   7  Prefactor     .10000E-03    120.78        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    21.295        .26154E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    6.2434        .14171E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     64.126        163.92        .10025E-04   -1.4105    
  11  Prefactor     .10000E-03    43.072        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    61.162        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          23.039        21.331        .33382E-05   -1.4748    
  14  norm          48.319        61.056        .11537E-04   -1.4317    
  15  norm          27.994        15.733        .15144E-04   -1.4649    
  16  norm          .10000E-03    44.042        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          16.157        13.710        .38251E-05   -1.4904    
  18  Prefactor     .10000E-03    5.5163        .13299E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    22.139        .26689E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     94.746        108.75        .82591E-05   -1.3758    
  21  Prefactor     .10000E-03    75.301        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     37.244        61.806        .26256E-05   -1.4487    
  23  Prefactor     .10000E-03    86.079        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    906.77        .40244E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10037E-03    470.02        .15125       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    1.3399        .65634E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     5.5063        17.835        .34250E-04   -1.5239    
  28  norm          50.990        48.030        .11233E-04   -1.4279    
  29  Normalizat    1.4301        .30085        .38380E-04   -.79762    
  30  Prefactor     .41234E-11    1.0062        .23915E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.52903e-11
Minuit parameter uncertainties:
  1  3.10781e-05
  2  24.8864
  3  8.7628
  4  0.000102184
  5  66.8356
  6  96.1952
  7  0.000218842
  8  2.83217e-05
  9  2.85849e-08
  10  165.094
  11  4.24161e-05
  12  8.97255e-05
  13  21.3376
  14  61.1348
  15  15.7351
  16  3.17347e-05
  17  13.7122
  18  7.00636e-07
  19  8.48867e-06
  20  108.977
  21  7.83128e-06
  22  61.913
  23  0.000223836
  24  0.00276754
  25  0.0267304
  26  1.39671e-07
  27  17.8523
  28  48.0664
  29  0.301223
  30  4.14545e-06
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  8.973e-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:  4.123e-12  4.145e-06  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.430e+00  3.012e-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: 3.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.47e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/192269/likelihoodResults_491788801_492048001_4FGL_J1304.0+3704_daily_bin974.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) = 842.864239361
delta logL = -8.09922810276e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 842.864160782
delta logL = -2.41316229221e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.2188       1.0000          .0000       10.000    
     3 'Normalizat'    1.4301       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52214E-05   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=   842.8642     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      255 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.582        .90712E-02** at limit **
   2  Index         3.2223        5.7291        .50000       -.50132E-06
   3  Normalizat    1.4301        .59884E-02    .30808E-01   -.36053E-04
   4  Prefactor     .42860E-10    .28568E-03    .20454    ** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 3.22229
  Normalizat = 1.43008
  Prefactor  = 4.28602e-11
 **********
 **   18 **HESSE 
 **********

 FCN=   842.8642     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      286 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1835.4        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.2223        5.0284        .50000       -.36349    
   3  Normalizat    1.4301        .57773E-01    .19189E-03   -.79763    
   4  Prefactor     .42860E-10    .61972E-01    .11950E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.05435e-09
Minuit parameter uncertainties:
  1  0.00581318
  2  1115.75
  3  0.0577759
  4  3.26292e-06
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/192269': 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) = 842.864158275
delta logL = 9.41101916396e-08

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  5.813e-03  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  3.222e+00  1.116e+03  0.000e+00  1.000e+01 (-1.000e+00)
315        Scale:  1.032e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
596    Prefactor:  4.286e-11  3.263e-06  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.430e+00  5.778e-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/192269/cmap_HighResolution_491788801_492048001_4FGL_J1304.0+3704_daily_bin974.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.47e-02', job_status='DONE', photon_flux_upper_limit='3.19e-07', time_completed='2021-09-06 20:05:29.781121', job_id='192269', GAL2='0.00', fit_tolerance='1e-08', EG2='1.43', EG='1.43', time_epoch_completed='1630983929.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.00', dlogl='9.41e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='974' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 20:05:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 192269: <4FGL_J1304.0+3704_daily_bin974> in cluster <slac> Done

Job <4FGL_J1304.0+3704_daily_bin974> 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) <bullet0105>, 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:05:30 2021
Results reported at Mon Sep  6 20:05:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin974 196.008 37.071 491788801 492048001 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 :                                   422.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             261.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   600 sec.
    Turnaround time :                            604 sec.

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

