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


Performing analysis on: 4FGL_J1304.0+3704_daily_bin969
RA = 196.008, Dec = 37.071
tmin = 490492801, tmax = 490752001
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='192262', job_status='RUN', time_executed='2021-09-06 19:57:31.959515', time_epoch_executed='1630983451.96' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='969'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/192262

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/192262/ft1_4FGL_J1304.0+3704_daily_bin969.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/192262/ft2_4FGL_J1304.0+3704_daily_bin969.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/192262/ft1_4FGL_J1304.0+3704_daily_bin969.fits outfile=/scratch/kocevski/192262/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin969.fits ra=196.008 dec=37.071 rad=12.0 tmin=490492801.0 tmax=490752001.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.00
user 5.63
sys 0.27

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/192262/ft1_filtered_4FGL_J1304.0+3704_daily_bin969.fits evtable="EVENTS" scfile=/scratch/kocevski/192262/ft2_4FGL_J1304.0+3704_daily_bin969.fits sctable="SC_DATA" expcube=/scratch/kocevski/192262/ltcube_490492801_490752001_4FGL_J1304.0+3704_daily_bin969.fits outfile=/scratch/kocevski/192262/expmap_490492801_490752001_4FGL_J1304.0+3704_daily_bin969.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/192262/ltcube_490492801_490752001_4FGL_J1304.0+3704_daily_bin969.fits
.....................!
real 192.05
user 185.71
sys 3.92

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/192262/ft1_filtered_4FGL_J1304.0+3704_daily_bin969.fits scfile=/scratch/kocevski/192262/ft2_4FGL_J1304.0+3704_daily_bin969.fits outfile=/scratch/kocevski/192262/cmap_490492801_490752001_4FGL_J1304.0+3704_daily_bin969.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.57
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/192262/ft1_filtered_4FGL_J1304.0+3704_daily_bin969.fits scfile=/scratch/kocevski/192262/ft2_4FGL_J1304.0+3704_daily_bin969.fits outfile=/scratch/kocevski/192262/cmap_HighResolution_490492801_490752001_4FGL_J1304.0+3704_daily_bin969.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/192262/ft1_filtered_4FGL_J1304.0+3704_daily_bin969.fits evtable="EVENTS" scfile=/scratch/kocevski/192262/ft2_4FGL_J1304.0+3704_daily_bin969.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/192262/Model_4FGL_J1304.0+3704_daily_bin969.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/192262/ft1_filtered_4FGL_J1304.0+3704_daily_bin969.fits.....................!
real 41.31
user 39.80
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7409       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.416       1.0000         .10000E-03   10000.    
     7 'Prefactor '    59.082       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.8971       1.0000         .10000E-03   10000.    
     9 'norm      '    17.441       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2236       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    32.304       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.8567       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.4104       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    92.593       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .45348E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.3798       1.0000         .10000E-03   10000.    
    25 'Prefactor '    91.808       1.0000         .10000E-03   10000.    
    26 'norm      '    4.1018       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .92674       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .70840       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.3741       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=   4454.174     FROM MIGRAD    STATUS=CONVERGED    746 CALLS     3888 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7407        2.7595       -.46394E-09   -.18760E-04
   2  Prefactor     .10000E-03    9.6041        .85676E-07** at limit **
   3  Prefactor     .10000E-03    .95703       -.80424E-08** at limit **
   4  Prefactor     .10000E-03    2.7656       -.40272E-07** at limit **
   5  Prefactor     .10000E-03    21.625        .18539E-06** at limit **
   6  Prefactor     22.413        24.182        .40071E-07   -.19756E-04
   7  Prefactor     59.033        105.85        .23854E-05   -.99572E-04
   8  Prefactor     3.8971        7.6849       -.37159E-07    .94999E-05
   9  norm          17.441        8.5280       -.67002E-06    .57552E-04
  10  Prefactor     .10000E-03    69.462        .14740E-06** at limit **
  11  Prefactor     1.2245        125.24        .26442E-04   -.28041E-04
  12  Prefactor     .10000E-03    9.8364       -.13286E-06** at limit **
  13  norm          .10000E-03    3.1855        .14459E-07** at limit **
  14  norm          32.307        21.723        .60277E-07   -.48430E-05
  15  norm          .10000E-03    1.5766       -.53321E-08** at limit **
  16  norm          .10000E-03    2.5983        .73781E-08** at limit **
  17  norm          2.8559        5.6547        .30216E-05   -.10797E-03
  18  Prefactor     3.4104        3.6581       -.55607E-07   -.24503E-04
  19  Prefactor     .10000E-03    17.706       -.20476E-06** at limit **
  20  Prefactor     92.612        66.751       -.50700E-05   -.24776E-03
  21  Prefactor     .10000E-03    20.736        .29569E-07** at limit **
  22  Prefactor     .10000E-03    7.3466       -.73951E-07** at limit **
  23  Prefactor     .10000E-03    164.70        .99327E-05** at limit **
  24  Prefactor     6.3737        27.128        .58180E-06   -.21262E-04
  25  Prefactor     91.787        110.58        .13650E-05   -.53811E-04
  26  norm          4.1017        2.3202        .22209E-07   -.39447E-03
  27  Prefactor     .10000E-03    2.2980       -.11637E-07** at limit **
  28  norm          .92283        14.840        .11041E-05   -.73264E-04
  29  Normalizat    .70821        .20707       -.74309E-06   -.11771E-03
  30  Prefactor     1.3744        .24759       -.34390E-06   -.84657E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.74073
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.4129
  Prefactor  = 59.0335
  Prefactor  = 3.89712
  norm       = 17.4409
  Prefactor  = 0.0001
  Prefactor  = 1.22447
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 32.3069
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.85593
  Prefactor  = 3.41043
  Prefactor  = 0.0001
  Prefactor  = 92.6117
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 6.37369
  Prefactor  = 91.7872
  norm       = 4.10168
  Prefactor  = 0.0001
  norm       = 0.922827
  Normalizat = 0.708212
  Prefactor  = 1.37436
 **********
 **   18 **HESSE 
 **********

 FCN=   4454.174     FROM HESSE     STATUS=OK           582 CALLS     4470 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7407        2.7638        .10840E-03   -1.5377    
   2  Prefactor     .10000E-03    9.7159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .96323        .63734E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.7661        .10840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    21.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     22.413        24.153        .84601E-04   -1.4761    
   7  Prefactor     59.033        105.54        .52196E-04   -1.4170    
   8  Prefactor     3.8971        7.6555        .20438E-03   -1.5313    
   9  norm          17.441        8.5127        .95904E-04   -1.4872    
  10  Prefactor     .10000E-03    69.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.2245        126.06        .20369E-02   -1.5487    
  12  Prefactor     .10000E-03    9.8633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.2039        .11626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          32.307        21.731        .70500E-04   -1.4571    
  15  norm          .10000E-03    1.5879        .81783E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.6032        .10504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.8559        5.6443        .10410E-02   -1.5370    
  18  Prefactor     3.4104        3.6414        .12611E-03   -1.5339    
  19  Prefactor     .10000E-03    18.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     92.612        68.428        .41764E-04   -1.3780    
  21  Prefactor     .10000E-03    20.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.3578        .17666E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    171.25        .21205E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     6.3737        27.163        .15891E-03   -1.5203    
  25  Prefactor     91.787        110.92        .41940E-04   -1.3789    
  26  norm          4.1017        2.3164        .73153E-04   -1.5303    
  27  Prefactor     .10000E-03    2.3083        .98800E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .92283        78.415        .48710E-02   -1.5516    
  29  Normalizat    .70821        .24745        .28143E-03   -1.0357    
  30  Prefactor     1.3744        .29713        .26130E-03   -.81122    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.45115e-10
Minuit parameter uncertainties:
  1  2.76392
  2  3.37148e-05
  3  3.02279e-07
  4  3.94753e-06
  5  6.31188e-05
  6  24.1635
  7  105.875
  8  7.65745
  9  8.51328
  10  0.000355629
  11  24.9014
  12  2.26424e-05
  13  2.52127e-06
  14  21.736
  15  2.77994e-06
  16  8.82261e-07
  17  5.64539
  18  3.64168
  19  2.19652e-05
  20  68.486
  21  5.9294e-05
  22  9.74711e-06
  23  0.00144685
  24  26.3356
  25  111.168
  26  2.31641
  27  8.12933e-07
  28  17.0356
  29  0.247843
  30  0.297497
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  2.264e-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:  1.374e+00  2.975e-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:  7.082e-01  2.478e-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.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/192262/likelihoodResults_490492801_490752001_4FGL_J1304.0+3704_daily_bin969.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) = 4454.17428427
delta logL = -0.000481853948259

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4454.17380407
delta logL = -1.65321398526e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13479E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4064       1.0000          .0000       10.000    
     3 'Normalizat'    .70834       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3742       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=   4454.174     FROM MIGRAD    STATUS=CONVERGED    110 CALLS      263 TOTAL
                     EDM=   .49E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.557        .18142E-01** at limit **
   2  Index         1.8373        6.2092        .50000       -.14575E-07
   3  Normalizat    .70821        .73202E-02    .28143E-03   -.77157E-05
   4  Prefactor     1.3744        .91974E-02    .26130E-03   -.49164E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.83735
  Normalizat = 0.708213
  Prefactor  = 1.37436
 **********
 **   18 **HESSE 
 **********

 FCN=   4454.174     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      292 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    313.26        .25748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8373        8.2575        .50000       -.68482    
   3  Normalizat    .70821        .22398E-01    .11257E-04   -1.0357    
   4  Prefactor     1.3744        .28141E-01    .10452E-04   -.81122    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.48243e-11
Minuit parameter uncertainties:
  1  0.000117074
  2  797.483
  3  0.022398
  4  0.0281415
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/192262': 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) = 4454.17380051
delta logL = 1.91101298697e-06

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  1.171e-04  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  1.837e+00  7.975e+02  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.374e+00  2.814e-02  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:  7.082e-01  2.240e-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/192262/cmap_HighResolution_490492801_490752001_4FGL_J1304.0+3704_daily_bin969.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.86e-03', job_status='DONE', photon_flux_upper_limit='7.56e-08', time_completed='2021-09-06 20:09:32.291027', job_id='192262', GAL2='1.37', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1630984172.29', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.37', dlogl='1.91e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='969' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 20:09:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 192262: <4FGL_J1304.0+3704_daily_bin969> in cluster <slac> Done

Job <4FGL_J1304.0+3704_daily_bin969> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Sep  6 19:55:26 2021
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 19:55:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 19:55:30 2021
Terminated at Mon Sep  6 20:09:33 2021
Results reported at Mon Sep  6 20:09:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin969 196.008 37.071 490492801 490752001 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 :                                   710.47 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             274.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            847 sec.

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

