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


Performing analysis on: 4FGL_J1304.0+3704_daily_bin828
RA = 196.008, Dec = 37.071
tmin = 453945601, tmax = 454204801
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='190895', job_status='RUN', time_executed='2021-09-06 19:53:27.272415', time_epoch_executed='1630983207.27' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='828'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/190895

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/190895/ft1_4FGL_J1304.0+3704_daily_bin828.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/190895/ft2_4FGL_J1304.0+3704_daily_bin828.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/190895/ft1_4FGL_J1304.0+3704_daily_bin828.fits outfile=/scratch/kocevski/190895/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin828.fits ra=196.008 dec=37.071 rad=12.0 tmin=453945601.0 tmax=454204801.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.37
user 3.13
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/190895/ft1_filtered_4FGL_J1304.0+3704_daily_bin828.fits" evtable="EVENTS" scfile=/scratch/kocevski/190895/ft2_4FGL_J1304.0+3704_daily_bin828.fits sctable="SC_DATA" outfile=/scratch/kocevski/190895/ltcube_453945601_454204801_4FGL_J1304.0+3704_daily_bin828.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/190895/ft2_4FGL_J1304.0+3704_daily_bin828.fits
.....................!
real 14.08
user 13.73
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/190895/ft1_filtered_4FGL_J1304.0+3704_daily_bin828.fits evtable="EVENTS" scfile=/scratch/kocevski/190895/ft2_4FGL_J1304.0+3704_daily_bin828.fits sctable="SC_DATA" expcube=/scratch/kocevski/190895/ltcube_453945601_454204801_4FGL_J1304.0+3704_daily_bin828.fits outfile=/scratch/kocevski/190895/expmap_453945601_454204801_4FGL_J1304.0+3704_daily_bin828.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/190895/ltcube_453945601_454204801_4FGL_J1304.0+3704_daily_bin828.fits
.....................!
real 157.98
user 152.80
sys 4.58

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/190895/ft1_filtered_4FGL_J1304.0+3704_daily_bin828.fits scfile=/scratch/kocevski/190895/ft2_4FGL_J1304.0+3704_daily_bin828.fits outfile=/scratch/kocevski/190895/cmap_453945601_454204801_4FGL_J1304.0+3704_daily_bin828.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.48
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/190895/ft1_filtered_4FGL_J1304.0+3704_daily_bin828.fits scfile=/scratch/kocevski/190895/ft2_4FGL_J1304.0+3704_daily_bin828.fits outfile=/scratch/kocevski/190895/cmap_HighResolution_453945601_454204801_4FGL_J1304.0+3704_daily_bin828.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.49
user 0.33
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11883E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.7151       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.368       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.050       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.4133       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10890E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.4918       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    10.741       1.0000         .10000E-03   10000.    
    15 'norm      '    3.7403       1.0000         .10000E-03   10000.    
    16 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10712E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11461E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.892       1.0000         .10000E-03   10000.    
    20 'Prefactor '    81.337       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10323E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12426E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    32.056       1.0000         .10000E-03   10000.    
    26 'norm      '    8.5610       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    8.4379       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3100       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .82108       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=   5817.656     FROM MIGRAD    STATUS=CONVERGED    785 CALLS     3926 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.7864        .30506E-06** at limit **
   2  Prefactor     .10000E-03    9.7029       -.65972E-06** at limit **
   3  Prefactor     1.7128        3.3947       -.78140E-06   -.94113E-03
   4  Prefactor     .10000E-03    4.0277        .10568E-06** at limit **
   5  Prefactor     16.356        38.243       -.44497E-05    .14480E-04
   6  Prefactor     .10000E-03    11.147        .52044E-06** at limit **
   7  Prefactor     26.052        30.303       -.41104E-06    .93321E-05
   8  Prefactor     .10000E-03    2.9425        .26953E-07** at limit **
   9  norm          3.4133        3.3288        .27451E-06    .10063E-03
  10  Prefactor     .10000E-03    195.36       -.18278E-04** at limit **
  11  Prefactor     6.5040        26.675       -.52579E-05    .30209E-04
  12  Prefactor     .10000E-03    27.891       -.14737E-04** at limit **
  13  norm          .10000E-03    2.6283        .78999E-07** at limit **
  14  norm          10.736        11.332       -.17241E-06    .53965E-04
  15  norm          3.7360        5.4009       -.98977E-06   -.41119E-03
  16  norm          .10000E-03    5.5282        .12862E-06** at limit **
  17  norm          .10000E-03    2.0846        .31215E-06** at limit **
  18  Prefactor     .10000E-03    4.5118        .25207E-06** at limit **
  19  Prefactor     18.899        20.481       -.15982E-05    .79160E-04
  20  Prefactor     81.300        53.259       -.19209E-04   -.23266E-04
  21  Prefactor     .10000E-03    52.187       -.34103E-04** at limit **
  22  Prefactor     .10000E-03    30.374        .10120E-04** at limit **
  23  Prefactor     .10000E-03    31.238        .13250E-04** at limit **
  24  Prefactor     .10000E-03    69.470        .34737E-04** at limit **
  25  Prefactor     32.048        73.758       -.95936E-05    .16255E-04
  26  norm          8.5611        2.5191        .18780E-06   -.29168E-04
  27  Prefactor     .10000E-03    2.3651       -.21401E-07** at limit **
  28  norm          8.4277        21.085        .15255E-05   -.12987E-04
  29  Normalizat    1.3099        .19035        .36551E-05   -.16376E-03
  30  Prefactor     .82123        .22001       -.39053E-06    .90060E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.71276
  Prefactor  = 0.0001
  Prefactor  = 16.3555
  Prefactor  = 0.0001
  Prefactor  = 26.0522
  Prefactor  = 0.0001
  norm       = 3.41329
  Prefactor  = 0.0001
  Prefactor  = 6.50395
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.7363
  norm       = 3.73601
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.8994
  Prefactor  = 81.3005
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 32.0483
  norm       = 8.56114
  Prefactor  = 0.0001
  norm       = 8.42775
  Normalizat = 1.30993
  Prefactor  = 0.821227
 **********
 **   18 **HESSE 
 **********

 FCN=   5817.656     FROM HESSE     STATUS=OK           582 CALLS     4508 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.5217        .27694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.8812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.7128        2.9070        .16361E-03   -1.5446    
   4  Prefactor     .10000E-03    4.0320        .14949E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.356        38.335        .98997E-04   -1.4899    
   6  Prefactor     .10000E-03    11.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     26.052        30.302        .78489E-04   -1.4687    
   8  Prefactor     .10000E-03    2.9546        .12775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.4133        3.3186        .13075E-03   -1.5338    
  10  Prefactor     .10000E-03    196.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.5040        26.270        .15751E-03   -1.5198    
  12  Prefactor     .10000E-03    28.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.6422        .12071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          10.736        11.334        .12225E-03   -1.5053    
  15  norm          3.7360        5.3086        .17525E-03   -1.5321    
  16  norm          .10000E-03    5.5373        .17424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.0947        .10755E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.6491        .31374E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     18.899        20.297        .92148E-04   -1.4838    
  20  Prefactor     81.300        53.400        .44535E-04   -1.3902    
  21  Prefactor     .10000E-03    52.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    30.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    31.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    69.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     32.048        73.842        .70772E-04   -1.4575    
  26  norm          8.5611        2.5192        .62910E-04   -1.5123    
  27  Prefactor     .10000E-03    2.3832        .11454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          8.4277        21.071        .13800E-03   -1.5127    
  29  Normalizat    1.3099        .22820        .22654E-03   -.83270    
  30  Prefactor     .82123        .26160        .33261E-03   -.98951    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42057e-09
Minuit parameter uncertainties:
  1  5.43446e-05
  2  4.94107e-05
  3  2.90722
  4  3.07255e-06
  5  38.3923
  6  6.77762e-06
  7  30.3202
  8  2.19984e-06
  9  3.31874
  10  0.000510956
  11  26.1625
  12  6.78929e-05
  13  8.78133e-06
  14  11.3364
  15  5.30922
  16  6.2685e-05
  17  4.61965e-05
  18  6.72337e-05
  19  20.304
  20  53.4316
  21  8.81973e-05
  22  0.00030233
  23  0.00038544
  24  0.00086666
  25  74.0541
  26  2.51924
  27  7.40984e-06
  28  21.0895
  29  0.228376
  30  0.261998
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  6.789e-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:  8.212e-01  2.620e-01  0.000e+00  1.000e+01 ( 1.000e+00)
597        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
598        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
595   Normalization:  1.310e+00  2.284e-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.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/190895/likelihoodResults_453945601_454204801_4FGL_J1304.0+3704_daily_bin828.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) = 5817.65649001
delta logL = -0.000169416614881

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5817.65632264
delta logL = -2.04771549761e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15377E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3619       1.0000          .0000       10.000    
     3 'Normalizat'    1.3099       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82123       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=   5817.656     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      284 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10008E-03    1472.4        .18142E-02** at limit **
   2  Index         2.4512        6.1777        .50000       -.45916E-04
   3  Normalizat    1.3099        .34457E-01    .22654E-03    .13416E-03
   4  Prefactor     .82122        .41235E-01    .33261E-03    .64498E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100079
  Index      = 2.45122
  Normalizat = 1.30994
  Prefactor  = 0.821222
 **********
 **   18 **HESSE 
 **********

 FCN=   5817.656     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      313 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10008E-03    7241.9        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4512        6.0864        .50000       -.53490    
   3  Normalizat    1.3099        .85502E-01    .45307E-04   -.83270    
   4  Prefactor     .82122        .10231        .13304E-04   -.98951    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.26406e-09
Minuit parameter uncertainties:
  1  0.0411244
  2  57.0693
  3  0.0855111
  4  0.102335
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/190895': 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) = 5817.65632043
delta logL = 1.59982846526e-07

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.001e-04  4.112e-02  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.451e+00  5.707e+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:  8.212e-01  1.023e-01  0.000e+00  1.000e+01 ( 1.000e+00)
597        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
598        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
595   Normalization:  1.310e+00  8.551e-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/190895/cmap_HighResolution_453945601_454204801_4FGL_J1304.0+3704_daily_bin828.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.08e-03', job_status='DONE', photon_flux_upper_limit='9.14e-08', time_completed='2021-09-06 20:05:11.936508', job_id='190895', GAL2='0.82', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1630983911.94', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='1.60e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='828' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 20:05:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 190895: <4FGL_J1304.0+3704_daily_bin828> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin828 196.008 37.071 453945601 454204801 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 :                                   695.34 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             308.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   850 sec.
    Turnaround time :                            884 sec.

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

