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


Performing analysis on: 4FGL_J1304.0+3704_daily_bin660
RA = 196.008, Dec = 37.071
tmin = 410400001, tmax = 410659201
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='189590', job_status='RUN', time_executed='2021-09-06 19:50:35.043693', time_epoch_executed='1630983035.04' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='660'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/189590

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/189590/ft1_4FGL_J1304.0+3704_daily_bin660.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/189590/ft2_4FGL_J1304.0+3704_daily_bin660.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/189590/ft1_4FGL_J1304.0+3704_daily_bin660.fits outfile=/scratch/kocevski/189590/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin660.fits ra=196.008 dec=37.071 rad=12.0 tmin=410400001.0 tmax=410659201.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 6.67
user 6.37
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/189590/ft1_filtered_4FGL_J1304.0+3704_daily_bin660.fits evtable="EVENTS" scfile=/scratch/kocevski/189590/ft2_4FGL_J1304.0+3704_daily_bin660.fits sctable="SC_DATA" expcube=/scratch/kocevski/189590/ltcube_410400001_410659201_4FGL_J1304.0+3704_daily_bin660.fits outfile=/scratch/kocevski/189590/expmap_410400001_410659201_4FGL_J1304.0+3704_daily_bin660.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/189590/ltcube_410400001_410659201_4FGL_J1304.0+3704_daily_bin660.fits
.....................!
real 191.86
user 186.83
sys 4.57

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/189590/ft1_filtered_4FGL_J1304.0+3704_daily_bin660.fits scfile=/scratch/kocevski/189590/ft2_4FGL_J1304.0+3704_daily_bin660.fits outfile=/scratch/kocevski/189590/cmap_410400001_410659201_4FGL_J1304.0+3704_daily_bin660.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/189590/ft1_filtered_4FGL_J1304.0+3704_daily_bin660.fits scfile=/scratch/kocevski/189590/ft2_4FGL_J1304.0+3704_daily_bin660.fits outfile=/scratch/kocevski/189590/cmap_HighResolution_410400001_410659201_4FGL_J1304.0+3704_daily_bin660.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.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.4222       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.5670       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.0506       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    26.913       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10505E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10276E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    114.09       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.5980       1.0000         .10000E-03   10000.    
    13 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.6317       1.0000         .10000E-03   10000.    
    15 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.6327       1.0000         .10000E-03   10000.    
    17 'norm      '    6.6729       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.6659       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    74.387       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    34.918       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12876E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    181.13       1.0000         .10000E-03   10000.    
    26 'norm      '    31.048       1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.1436       1.0000         .10000E-03   10000.    
    28 'norm      '    .10330E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .63095       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1285       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=   3398.500     FROM MIGRAD    STATUS=CONVERGED    766 CALLS     3889 TOTAL
                     EDM=   .16E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.4224        6.3522        .20439E-07   -.22420E-05
   2  Prefactor     .10000E-03    6.3100       -.17955E-07** at limit **
   3  Prefactor     3.5668        4.0080        .22307E-07   -.14859E-05
   4  Prefactor     9.0497        12.509        .94173E-07   -.13437E-05
   5  Prefactor     .10000E-03    51.985        .30854E-05** at limit **
   6  Prefactor     26.916        36.007       -.10961E-05   -.20737E-04
   7  Prefactor     .10000E-03    188.59        .34910E-05** at limit **
   8  Prefactor     .10000E-03    10.048        .55843E-06** at limit **
   9  norm          .10000E-03    8.6434        .50865E-07** at limit **
  10  Prefactor     .10000E-03    35.068       -.29059E-05** at limit **
  11  Prefactor     114.10        51.536       -.94118E-06   -.17754E-04
  12  Prefactor     1.5924        68.574        .17557E-04   -.65112E-05
  13  norm          .10000E-03    6.0258        .27485E-06** at limit **
  14  norm          4.6300        14.137        .14224E-06    .53602E-05
  15  norm          .10000E-03    2.6716        .55244E-07** at limit **
  16  norm          3.6327        5.1078        .99753E-07    .19262E-05
  17  norm          6.6717        6.5731        .14090E-06    .22211E-04
  18  Prefactor     8.6664        5.9494       -.25442E-06   -.72002E-04
  19  Prefactor     .10000E-03    15.714        .96230E-07** at limit **
  20  Prefactor     74.410        77.323       -.18599E-05    .95860E-05
  21  Prefactor     .10000E-03    25.524        .78231E-06** at limit **
  22  Prefactor     34.919        27.550        .23880E-06   -.87563E-06
  23  Prefactor     .10000E-03    71.913       -.43951E-05** at limit **
  24  Prefactor     .10000E-03    8.6771        .27199E-06** at limit **
  25  Prefactor     181.11        119.75        .15469E-05   -.10743E-04
  26  norm          31.049        6.1021        .80006E-07    .33201E-04
  27  Prefactor     3.1433        5.3443       -.58228E-07   -.18712E-04
  28  norm          .10000E-03    45.991        .17501E-05** at limit **
  29  Normalizat    .63065        .23891       -.16048E-05   -.49096E-04
  30  Prefactor     1.1289        .28119        .65068E-06   -.33912E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.42236
  Prefactor  = 0.0001
  Prefactor  = 3.5668
  Prefactor  = 9.04973
  Prefactor  = 0.0001
  Prefactor  = 26.916
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 114.102
  Prefactor  = 1.59244
  norm       = 0.0001
  norm       = 4.63002
  norm       = 0.0001
  norm       = 3.63272
  norm       = 6.67166
  Prefactor  = 8.66643
  Prefactor  = 0.0001
  Prefactor  = 74.4099
  Prefactor  = 0.0001
  Prefactor  = 34.9191
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 181.115
  norm       = 31.0487
  Prefactor  = 3.14327
  norm       = 0.0001
  Normalizat = 0.630651
  Prefactor  = 1.12888
 **********
 **   18 **HESSE 
 **********

 FCN=   3398.500     FROM HESSE     STATUS=OK           586 CALLS     4475 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.4224        6.3949        .11261E-03   -1.5127    
   2  Prefactor     .10000E-03    6.3644        .14300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.5668        4.0277        .10905E-03   -1.5330    
   4  Prefactor     9.0497        12.504        .13322E-03   -1.5106    
   5  Prefactor     .10000E-03    52.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     26.916        36.027        .77222E-04   -1.4670    
   7  Prefactor     .10000E-03    189.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.183        .18078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    8.7530        .16660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    35.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     114.10        51.583        .37664E-04   -1.3568    
  12  Prefactor     1.5924        68.970        .16772E-02   -1.5456    
  13  norm          .10000E-03    6.0770        .13973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.6300        14.141        .18701E-03   -1.5278    
  15  norm          .10000E-03    2.6808        .92723E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.6327        5.0872        .15122E-03   -1.5327    
  17  norm          6.6717        6.5750        .14305E-03   -1.5191    
  18  Prefactor     8.6664        5.9474        .10854E-03   -1.5119    
  19  Prefactor     .10000E-03    15.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     74.410        77.160        .46553E-04   -1.3981    
  21  Prefactor     .10000E-03    25.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     34.919        27.550        .67817E-04   -1.4525    
  23  Prefactor     .10000E-03    71.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    8.6792        .16774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     181.11        119.77        .14997E-03   -1.3008    
  26  norm          31.049        6.1042        .61541E-04   -1.4593    
  27  Prefactor     3.1433        5.3265        .16791E-03   -1.5353    
  28  norm          .10000E-03    46.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .63065        .28515        .29421E-03   -1.0670    
  30  Prefactor     1.1289        .33771        .27850E-03   -.88549    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9044e-11
Minuit parameter uncertainties:
  1  6.39539
  2  2.34614e-06
  3  4.02799
  4  12.5072
  5  0.000113156
  6  36.0564
  7  0.000289557
  8  1.98213e-06
  9  4.63553e-05
  10  6.7259e-05
  11  51.6032
  12  20.9852
  13  1.12567e-05
  14  14.1508
  15  3.90454e-06
  16  5.08783
  17  6.57569
  18  5.9478
  19  3.50924e-05
  20  77.2638
  21  2.12691e-05
  22  27.5601
  23  8.6548e-05
  24  4.27683e-06
  25  119.932
  26  6.10435
  27  5.32727
  28  0.000166721
  29  0.285818
  30  0.338358
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.592e+00  2.099e+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.129e+00  3.384e-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:  6.307e-01  2.858e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/189590/likelihoodResults_410400001_410659201_4FGL_J1304.0+3704_daily_bin660.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) = 3398.4069834
delta logL = 0.0933305038425

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3398.38313054
delta logL = 0.117183368087

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .95152       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9415       1.0000          .0000       10.000    
     3 'Normalizat'    .60237       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1494       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=   3398.383     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      240 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .94040        57.330        .12993E-01   -.70252E-03
   2  Index         3.9476        6.8837        .15316       -.65036E-04
   3  Normalizat    .60255        .43331E-01    .67839E-01   -.64948E-04
   4  Prefactor     1.1493        .53860E-01    .62455E-01   -.53693E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.940402
  Index      = 3.9476
  Normalizat = 0.602547
  Prefactor  = 1.14931
 **********
 **   18 **HESSE 
 **********

 FCN=   3398.383     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      273 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .94040        219.29        .11808E-03   -1.5514    
   2  Index         3.9476        6.1232        .84859E-02   -.21207    
   3  Normalizat    .60255        .21456        .30024E-03   -1.0788    
   4  Prefactor     1.1493        .26702        .27621E-03   -.87906    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.9581e-10
Minuit parameter uncertainties:
  1  28.827
  2  15.4982
  3  0.214855
  4  0.267337
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/189590': 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) = 3398.38312884
delta logL = 0.117185063371

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  9.404e-01  2.883e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  3.948e+00  1.550e+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:  1.149e+00  2.673e-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:  6.025e-01  2.149e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/189590/cmap_HighResolution_410400001_410659201_4FGL_J1304.0+3704_daily_bin660.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.53e-03', job_status='DONE', photon_flux_upper_limit='1.23e-07', time_completed='2021-09-06 20:01:20.138912', job_id='189590', GAL2='1.15', fit_tolerance='1e-08', EG2='0.60', EG='0.63', time_epoch_completed='1630983680.14', return_code2='102', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='1.17e-01', ts2='0.26', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='660' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 20:01:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 189590: <4FGL_J1304.0+3704_daily_bin660> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin660 196.008 37.071 410400001 410659201 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 :                                   643.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             221.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            938 sec.

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

