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


Performing analysis on: 4FGL_J1304.0+3704_daily_bin553
RA = 196.008, Dec = 37.071
tmin = 382665601, tmax = 382924801
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='189434', job_status='RUN', time_executed='2021-09-06 19:49:10.162802', time_epoch_executed='1630982950.16' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='553'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/189434

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/189434/ft1_4FGL_J1304.0+3704_daily_bin553.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/189434/ft2_4FGL_J1304.0+3704_daily_bin553.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/189434/ft1_4FGL_J1304.0+3704_daily_bin553.fits outfile=/scratch/kocevski/189434/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin553.fits ra=196.008 dec=37.071 rad=12.0 tmin=382665601.0 tmax=382924801.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.36
user 3.13
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/189434/ft1_filtered_4FGL_J1304.0+3704_daily_bin553.fits evtable="EVENTS" scfile=/scratch/kocevski/189434/ft2_4FGL_J1304.0+3704_daily_bin553.fits sctable="SC_DATA" expcube=/scratch/kocevski/189434/ltcube_382665601_382924801_4FGL_J1304.0+3704_daily_bin553.fits outfile=/scratch/kocevski/189434/expmap_382665601_382924801_4FGL_J1304.0+3704_daily_bin553.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/189434/ltcube_382665601_382924801_4FGL_J1304.0+3704_daily_bin553.fits
.....................!
real 191.14
user 185.54
sys 4.93

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/189434/ft1_filtered_4FGL_J1304.0+3704_daily_bin553.fits scfile=/scratch/kocevski/189434/ft2_4FGL_J1304.0+3704_daily_bin553.fits outfile=/scratch/kocevski/189434/cmap_382665601_382924801_4FGL_J1304.0+3704_daily_bin553.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/189434/ft1_filtered_4FGL_J1304.0+3704_daily_bin553.fits scfile=/scratch/kocevski/189434/ft2_4FGL_J1304.0+3704_daily_bin553.fits outfile=/scratch/kocevski/189434/cmap_HighResolution_382665601_382924801_4FGL_J1304.0+3704_daily_bin553.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.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.7181       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.2729       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11069E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    71.934       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10664E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .28512E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13051E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.0046       1.0000         .10000E-03   10000.    
    14 'norm      '    1.7875       1.0000         .10000E-03   10000.    
    15 'norm      '    6.9106       1.0000         .10000E-03   10000.    
    16 'norm      '    3.7318       1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10747E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.924       1.0000         .10000E-03   10000.    
    24 'Prefactor '    34.196       1.0000         .10000E-03   10000.    
    25 'Prefactor '    60.196       1.0000         .10000E-03   10000.    
    26 'norm      '    10.455       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0201       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .69467       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=   4823.839     FROM MIGRAD    STATUS=CONVERGED    766 CALLS     3895 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.7198        4.8709        .23181E-07    .19596E-03
   2  Prefactor     1.2697        3.7733        .34699E-06   -.13845E-02
   3  Prefactor     .10000E-03    2.1007       -.26995E-06** at limit **
   4  Prefactor     .10000E-03    6.7727        .90906E-06** at limit **
   5  Prefactor     .10000E-03    17.866       -.14706E-05** at limit **
   6  Prefactor     .10000E-03    6.6901        .16301E-05** at limit **
   7  Prefactor     71.917        65.519       -.13780E-04   -.36021E-04
   8  Prefactor     .10000E-03    3.3221       -.43104E-07** at limit **
   9  norm          .10000E-03    2.7456        .27102E-06** at limit **
  10  Prefactor     .10000E-03    126.89        .37689E-04** at limit **
  11  Prefactor     .10000E-03    8.9003        .12993E-05** at limit **
  12  Prefactor     .10012E-03    12.811        .43446E-06** at limit **
  13  norm          2.0058        2.6606        .80145E-08   -.56941E-04
  14  norm          1.7791        10.273        .65131E-06   -.58764E-03
  15  norm          6.9116        5.2826        .24933E-06   -.99327E-04
  16  norm          3.7309        7.9903        .32596E-07   -.59759E-03
  17  norm          .10000E-03    1.4009        .17814E-06** at limit **
  18  Prefactor     .10000E-03    1.8647        .62212E-08** at limit **
  19  Prefactor     .10000E-03    4.7479        .33075E-06** at limit **
  20  Prefactor     .10000E-03    24.074        .33778E-06** at limit **
  21  Prefactor     .10000E-03    17.693        .63324E-06** at limit **
  22  Prefactor     .10000E-03    5.6708        .28526E-06** at limit **
  23  Prefactor     15.893        32.768       -.19377E-04   -.26979E-04
  24  Prefactor     34.198        27.523       -.35782E-06   -.52971E-05
  25  Prefactor     60.209        56.415        .10165E-04    .99351E-05
  26  norm          10.455        2.5962        .23625E-06   -.29024E-04
  27  Prefactor     .10000E-03    2.0937        .32880E-07** at limit **
  28  norm          .10000E-03    7.2462       -.28128E-05** at limit **
  29  Normalizat    1.0202        .16768        .26370E-06   -.20442E-03
  30  Prefactor     .69470        .20392        .27374E-06   -.99842E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.71982
  Prefactor  = 1.26967
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 71.9173
  Prefactor  = 0.0001
  norm       = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100119
  norm       = 2.00582
  norm       = 1.77911
  norm       = 6.91165
  norm       = 3.73085
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.8933
  Prefactor  = 34.1979
  Prefactor  = 60.2088
  norm       = 10.4548
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.02015
  Prefactor  = 0.694695
 **********
 **   18 **HESSE 
 **********

 FCN=   4823.839     FROM HESSE     STATUS=OK           582 CALLS     4477 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.7198        4.6429        .10016E-03   -1.5084    
   2  Prefactor     1.2697        11.018        .19706E-02   -1.5483    
   3  Prefactor     .10000E-03    3.7840        .18626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.8045        .17652E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.6929        .17545E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     71.917        65.267        .47334E-04   -1.4010    
   8  Prefactor     .10000E-03    3.3384        .12342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    5.4999        .22085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    127.38        .21411E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.9203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10012E-03    125.76        .47082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.0058        2.6357        .12639E-03   -1.5425    
  14  norm          1.7791        11.941        .15645E-02   -1.5441    
  15  norm          6.9116        5.3808        .10159E-03   -1.5182    
  16  norm          3.7309        8.3058        .10451E-02   -1.5322    
  17  norm          .10000E-03    1.4050        .80288E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.9270        .18488E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.7620        .14777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    24.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    17.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.6810        .16150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     15.893        32.741        .10037E-03   -1.4910    
  24  Prefactor     34.198        27.533        .68528E-04   -1.4538    
  25  Prefactor     60.209        56.532        .51713E-04   -1.4155    
  26  norm          10.455        2.5984        .53468E-04   -1.5061    
  27  Prefactor     .10000E-03    2.1125        .98128E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    7.2713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0202        .19909        .20259E-03   -.92358    
  30  Prefactor     .69470        .24184        .30025E-03   -1.0374    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20906e-08
Minuit parameter uncertainties:
  1  4.6431
  2  7.48195
  3  5.20597e-05
  4  1.09937e-05
  5  1.01705e-06
  6  1.87722e-06
  7  65.3324
  8  3.03735e-06
  9  0.000327413
  10  8.83655e-05
  11  1.83656e-05
  12  0.00774244
  13  2.63585
  14  9.22067
  15  5.38117
  16  8.30841
  17  4.80687e-06
  18  7.57958e-06
  19  5.08679e-06
  20  0.000393759
  21  1.08529e-05
  22  2.25597e-07
  23  32.7776
  24  27.5432
  25  56.5828
  26  2.59845
  27  1.92072e-06
  28  1.20733e-05
  29  0.19924
  30  0.242207
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.001e-04  7.742e-03  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:  6.947e-01  2.422e-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.020e+00  1.992e-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: 7.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/189434/likelihoodResults_382665601_382924801_4FGL_J1304.0+3704_daily_bin553.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) = 4823.8386605
delta logL = -3.67480533896e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4823.83866049
delta logL = -3.67349675798e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96350E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4358       1.0000          .0000       10.000    
     3 'Normalizat'    1.0201       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69470       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=   4823.265     FROM MIGRAD    STATUS=CONVERGED    210 CALLS      370 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .37790E-02    .35952E-03** at limit **
   2  Index         8.3552        2.8242        .19625        .74375E-04
   3  Normalizat    .95908        .35349E-01    .43329E-01    .75839E-04
   4  Prefactor     .74723        .43818E-01    .65685E-01    .41831E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 8.35523
  Normalizat = 0.959082
  Prefactor  = 0.747226
 **********
 **   18 **HESSE 
 **********

 FCN=   4823.265     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      411 TOTAL
                     EDM=   .32E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .33338E-01    .17098E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.3552        8.7942        .73137E-02    .73562    
   3  Normalizat    .95908        .88227E-01    .20819E-03   -.94414    
   4  Prefactor     .74723        .10948        .29060E-03   -1.0170    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.20878e-07
Minuit parameter uncertainties:
  1  3.28762e-07
  2  6.46987
  3  0.0882404
  4  0.109516
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/189434': 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) = 4823.26493796
delta logL = 0.573685792519

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  3.288e-07  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  8.355e+00  6.470e+00  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:  7.472e-01  1.095e-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:  9.591e-01  8.824e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.22
Ra Dec: 196.008 37.071
Photon Index (Free Index): 8.36 +/- 6.47
Photon Flux (Free Index): 4.09e-08 +/- 5.69e-07
Energy Flux (Free Index): 4.71e-06 +/- 6.52e-05

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/189434/cmap_HighResolution_382665601_382924801_4FGL_J1304.0+3704_daily_bin553.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.82e-03', comment='SUCCESS', energy_flux2='4.71e-06', dlogl='5.74e-01', photon_flux2='4.09e-08', job_status='DONE', time_completed='2021-09-06 20:01:56.624871', photon_index_error2='6.47', photon_index2='8.36', ts='-0.00', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', photon_flux_upper_limit='7.51e-08', energy_flux_error2='6.52e-05', EG='1.02', time_epoch_completed='1630983716.62', return_code='0', job_id='189434', GAL2='0.75', EG2='0.96', return_code2='102', photon_flux_error2='5.69e-07', ts2='1.22', photon_index='2.44' WHERE bin_id='553' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 20:01:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 189434: <4FGL_J1304.0+3704_daily_bin553> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin553 196.008 37.071 382665601 382924801 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 :                                   763.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   955 sec.
    Turnaround time :                            986 sec.

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

