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


Performing analysis on: 4FGL_J1304.0+3704_daily_bin559
RA = 196.008, Dec = 37.071
tmin = 384220801, tmax = 384480001
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='189443', job_status='RUN', time_executed='2021-09-06 19:48:17.260879', time_epoch_executed='1630982897.26' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='559'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/189443

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/189443/ft1_4FGL_J1304.0+3704_daily_bin559.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/189443/ft2_4FGL_J1304.0+3704_daily_bin559.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/189443/ft1_4FGL_J1304.0+3704_daily_bin559.fits outfile=/scratch/kocevski/189443/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin559.fits ra=196.008 dec=37.071 rad=12.0 tmin=384220801.0 tmax=384480001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 14.18
user 13.71
sys 0.40

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/189443/ft2_4FGL_J1304.0+3704_daily_bin559.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/189443/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin559.fits evtable="EVENTS" outfile="/scratch/kocevski/189443/ft1_filtered_4FGL_J1304.0+3704_daily_bin559.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.34
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/189443/ft1_filtered_4FGL_J1304.0+3704_daily_bin559.fits evtable="EVENTS" scfile=/scratch/kocevski/189443/ft2_4FGL_J1304.0+3704_daily_bin559.fits sctable="SC_DATA" expcube=/scratch/kocevski/189443/ltcube_384220801_384480001_4FGL_J1304.0+3704_daily_bin559.fits outfile=/scratch/kocevski/189443/expmap_384220801_384480001_4FGL_J1304.0+3704_daily_bin559.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/189443/ltcube_384220801_384480001_4FGL_J1304.0+3704_daily_bin559.fits
.....................!
real 193.30
user 188.35
sys 4.41

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/189443/ft1_filtered_4FGL_J1304.0+3704_daily_bin559.fits scfile=/scratch/kocevski/189443/ft2_4FGL_J1304.0+3704_daily_bin559.fits outfile=/scratch/kocevski/189443/cmap_384220801_384480001_4FGL_J1304.0+3704_daily_bin559.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.58
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/189443/ft1_filtered_4FGL_J1304.0+3704_daily_bin559.fits scfile=/scratch/kocevski/189443/ft2_4FGL_J1304.0+3704_daily_bin559.fits outfile=/scratch/kocevski/189443/cmap_HighResolution_384220801_384480001_4FGL_J1304.0+3704_daily_bin559.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/189443/ft1_filtered_4FGL_J1304.0+3704_daily_bin559.fits evtable="EVENTS" scfile=/scratch/kocevski/189443/ft2_4FGL_J1304.0+3704_daily_bin559.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/189443/Model_4FGL_J1304.0+3704_daily_bin559.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/189443/ft1_filtered_4FGL_J1304.0+3704_daily_bin559.fits.....................!
real 42.13
user 40.59
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3995       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.0721       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.8142       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.9826       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10462E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.2900       1.0000         .10000E-03   10000.    
    10 'Prefactor '    79.878       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.4593       1.0000         .10000E-03   10000.    
    13 'norm      '    1.8480       1.0000         .10000E-03   10000.    
    14 'norm      '    .10152E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.9168       1.0000         .10000E-03   10000.    
    16 'norm      '    .10255E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .24385       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    8.4905       1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.9263       1.0000         .10000E-03   10000.    
    28 'norm      '    30.542       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1760       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0087       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=   4636.577     FROM MIGRAD    STATUS=CONVERGED    812 CALLS     3949 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3983        4.6397        .10127E-06   -.28157E-04
   2  Prefactor     5.0713        5.2707        .26942E-06    .80013E-04
   3  Prefactor     .10000E-03    1.4252       -.48654E-07** at limit **
   4  Prefactor     9.8126        11.012       -.90486E-07   -.97115E-05
   5  Prefactor     4.9612        39.007        .39026E-04   -.18156E-04
   6  Prefactor     .10000E-03    39.787       -.43824E-05** at limit **
   7  Prefactor     .10000E-03    114.95       -.49418E-04** at limit **
   8  Prefactor     .10000E-03    7.9218       -.14846E-06** at limit **
   9  norm          4.2888        4.2671        .13241E-06    .63522E-04
  10  Prefactor     79.870        55.613       -.10996E-04   -.37482E-04
  11  Prefactor     .10000E-03    20.768        .10717E-04** at limit **
  12  Prefactor     3.4614        28.478        .99456E-05   -.45114E-04
  13  norm          1.8497        6.1086       -.24374E-05   -.77665E-03
  14  norm          .10000E-03    44.882        .42894E-05** at limit **
  15  norm          2.9213        4.0472       -.16303E-06   -.48542E-03
  16  norm          .10000E-03    7.2097        .14201E-08** at limit **
  17  norm          .10000E-03    2.6109       -.15265E-06** at limit **
  18  Prefactor     .10000E-03    2.1168        .45431E-07** at limit **
  19  Prefactor     .15283E-03    20.304        .46551E-06** at limit **
  20  Prefactor     .10000E-03    20.431       -.98509E-05** at limit **
  21  Prefactor     .10000E-03    122.90        .54906E-04** at limit **
  22  Prefactor     .10000E-03    27.115       -.73992E-06** at limit **
  23  Prefactor     .10000E-03    14.900        .42936E-07** at limit **
  24  Prefactor     .10000E-03    12.955       -.17189E-07** at limit **
  25  Prefactor     .10000E-03    45.807        .25013E-05** at limit **
  26  norm          8.4899        2.5400        .13325E-07   -.47575E-04
  27  Prefactor     3.9268        6.4984       -.23217E-05   -.23228E-03
  28  norm          30.534        27.154        .67170E-05   -.19579E-04
  29  Normalizat    1.1766        .20849       -.31580E-05   -.53367E-04
  30  Prefactor     1.0082        .25182        .87545E-06   -.21846E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.39828
  Prefactor  = 5.07127
  Prefactor  = 0.0001
  Prefactor  = 9.81264
  Prefactor  = 4.96119
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.28883
  Prefactor  = 79.8698
  Prefactor  = 0.0001
  Prefactor  = 3.46136
  norm       = 1.84971
  norm       = 0.000100001
  norm       = 2.9213
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000152827
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.48986
  Prefactor  = 3.92679
  norm       = 30.5338
  Normalizat = 1.17658
  Prefactor  = 1.00821
 **********
 **   18 **HESSE 
 **********

 FCN=   4636.577     FROM HESSE     STATUS=OK           590 CALLS     4539 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3983        4.6296        .12097E-03   -1.5202    
   2  Prefactor     5.0713        5.2742        .15522E-03   -1.5258    
   3  Prefactor     .10000E-03    1.4338        .79207E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.8126        11.012        .12791E-03   -1.5081    
   5  Prefactor     4.9612        38.831        .18016E-03   -1.5262    
   6  Prefactor     .10000E-03    40.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    114.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.0954        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.2888        4.2662        .13563E-03   -1.5294    
  10  Prefactor     79.870        55.691        .22468E-03   -1.3918    
  11  Prefactor     .10000E-03    20.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.4614        27.649        .21744E-03   -1.5336    
  13  norm          1.8497        6.0548        .28075E-03   -1.5436    
  14  norm          .10000E-03    45.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.9213        3.9988        .14969E-03   -1.5366    
  16  norm          .10000E-03    7.2341        .17717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.6661        .10743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.1272        .96494E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .15283E-03    30.654        .79351E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    20.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    123.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    27.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    14.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    12.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    45.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          8.4899        2.5414        .57269E-04   -1.5125    
  27  Prefactor     3.9268        6.4990        .20360E-03   -1.5312    
  28  norm          30.534        27.145        .72500E-04   -1.4602    
  29  Normalizat    1.1766        .25516        .23363E-03   -.87330    
  30  Prefactor     1.0082        .30604        .30866E-03   -.92456    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72175e-09
Minuit parameter uncertainties:
  1  4.62988
  2  5.27468
  3  1.56117e-06
  4  11.0147
  5  27.7843
  6  2.15368e-05
  7  0.000278869
  8  9.14069e-05
  9  4.2665
  10  55.7276
  11  2.1615e-05
  12  19.5778
  13  6.05676
  14  0.000481483
  15  3.99915
  16  2.69712e-05
  17  9.49786e-06
  18  5.56359e-06
  19  0.0805236
  20  6.56156e-06
  21  0.000133461
  22  8.48331e-05
  23  6.46324e-06
  24  1.06617e-05
  25  2.17038e-05
  26  2.54148
  27  6.50013
  28  27.1564
  29  0.255427
  30  0.306569
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  3.461e+00  1.958e+01  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:  1.008e+00  3.066e-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.177e+00  2.554e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 196.008 37.071
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/189443/likelihoodResults_384220801_384480001_4FGL_J1304.0+3704_daily_bin559.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): 0
logL (Free Index) = 4636.55641735
delta logL = 0.0202004203747

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4636.54471637
delta logL = 0.0319014024053

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9369       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9490       1.0000          .0000       10.000    
     3 'Normalizat'    1.1821       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0002       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=   4636.545     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      242 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9164        845.52        .38081E-02    .21298E-04
   2  Index         1.9483        5.9272        .43961       -.35055E-05
   3  Normalizat    1.1821        .36868E-01    .52731E-01    .58027E-05
   4  Prefactor     1.0003        .43928E-01    .70011E-01    .10473E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.91641
  Index      = 1.94832
  Normalizat = 1.18205
  Prefactor  = 1.0003
 **********
 **   18 **HESSE 
 **********

 FCN=   4636.545     FROM HESSE     STATUS=OK            33 CALLS      275 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9164        23.594        .15232E-03   -1.5182    
   2  Index         1.9483        1.4516        .11024E-01   -.65649    
   3  Normalizat    1.1821        .24430        .23315E-03   -.87159    
   4  Prefactor     1.0003        .30302        .30971E-03   -.92720    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.36956e-11
Minuit parameter uncertainties:
  1  23.6261
  2  1.48621
  3  0.244531
  4  0.303536
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/189443': 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): 0
logL (Free Index) = 4636.54471581
delta logL = 0.0319019663275

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  6.916e+00  2.363e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  1.948e+00  1.486e+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:  1.000e+00  3.035e-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.182e+00  2.445e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
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/189443/cmap_HighResolution_384220801_384480001_4FGL_J1304.0+3704_daily_bin559.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.12e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-09-06 20:01:31.694921', job_id='189443', GAL2='1.00', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1630983691.69', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='3.19e-02', ts2='0.10', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='559' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 20:01:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 189443: <4FGL_J1304.0+3704_daily_bin559> in cluster <slac> Done

Job <4FGL_J1304.0+3704_daily_bin559> 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) <bullet0295>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 19:46:03 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:03 2021
Terminated at Mon Sep  6 20:01:32 2021
Results reported at Mon Sep  6 20:01:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin559 196.008 37.071 384220801 384480001 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 :                                   789.08 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             274.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            961 sec.

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

