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


Performing analysis on: 4FGL_J1304.0+3704_daily_bin978
RA = 196.008, Dec = 37.071
tmin = 492825601, tmax = 493084801
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='192274', job_status='RUN', time_executed='2021-09-06 19:58:10.557437', time_epoch_executed='1630983490.56' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='978'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/192274

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/192274/ft1_4FGL_J1304.0+3704_daily_bin978.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/192274/ft2_4FGL_J1304.0+3704_daily_bin978.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/192274/ft1_4FGL_J1304.0+3704_daily_bin978.fits outfile=/scratch/kocevski/192274/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin978.fits ra=196.008 dec=37.071 rad=12.0 tmin=492825601.0 tmax=493084801.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.76
user 3.54
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/192274/ft1_filtered_4FGL_J1304.0+3704_daily_bin978.fits" evtable="EVENTS" scfile=/scratch/kocevski/192274/ft2_4FGL_J1304.0+3704_daily_bin978.fits sctable="SC_DATA" outfile=/scratch/kocevski/192274/ltcube_492825601_493084801_4FGL_J1304.0+3704_daily_bin978.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/192274/ft2_4FGL_J1304.0+3704_daily_bin978.fits
.....................!
real 16.43
user 16.06
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/192274/ft1_filtered_4FGL_J1304.0+3704_daily_bin978.fits evtable="EVENTS" scfile=/scratch/kocevski/192274/ft2_4FGL_J1304.0+3704_daily_bin978.fits sctable="SC_DATA" expcube=/scratch/kocevski/192274/ltcube_492825601_493084801_4FGL_J1304.0+3704_daily_bin978.fits outfile=/scratch/kocevski/192274/expmap_492825601_493084801_4FGL_J1304.0+3704_daily_bin978.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/192274/ltcube_492825601_493084801_4FGL_J1304.0+3704_daily_bin978.fits
.....................!
real 194.16
user 188.49
sys 5.24

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/192274/ft1_filtered_4FGL_J1304.0+3704_daily_bin978.fits scfile=/scratch/kocevski/192274/ft2_4FGL_J1304.0+3704_daily_bin978.fits outfile=/scratch/kocevski/192274/cmap_492825601_493084801_4FGL_J1304.0+3704_daily_bin978.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.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/192274/ft1_filtered_4FGL_J1304.0+3704_daily_bin978.fits scfile=/scratch/kocevski/192274/ft2_4FGL_J1304.0+3704_daily_bin978.fits outfile=/scratch/kocevski/192274/cmap_HighResolution_492825601_493084801_4FGL_J1304.0+3704_daily_bin978.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.57
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.5606       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .88993       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.6792       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.8742       1.0000         .10000E-03   10000.    
    13 'norm      '    5.5702       1.0000         .10000E-03   10000.    
    14 'norm      '    17.994       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11186E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.9702       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.486       1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.720       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .15086E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    28.113       1.0000         .10000E-03   10000.    
    26 'norm      '    3.0095       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    3.5930       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .79997       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1268       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=   5078.949     FROM MIGRAD    STATUS=CONVERGED    749 CALLS     3887 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.5602        4.1558        .38353E-06    .73705E-03
   2  Prefactor     .88639        5.2218       -.25022E-06    .11965E-04
   3  Prefactor     .10000E-03    1.1368        .23391E-06** at limit **
   4  Prefactor     .10000E-03    4.8054        .16576E-06** at limit **
   5  Prefactor     .10000E-03    8.6411        .52163E-06** at limit **
   6  Prefactor     .10000E-03    16.878        .12920E-05** at limit **
   7  Prefactor     .10000E-03    14.510       -.13531E-05** at limit **
   8  Prefactor     .10000E-03    7.1406       -.45926E-06** at limit **
   9  norm          .10000E-03    1.5546       -.37545E-08** at limit **
  10  Prefactor     .10000E-03    16.135        .57531E-07** at limit **
  11  Prefactor     7.6961        16.711        .10759E-05    .92670E-04
  12  Prefactor     3.8728        12.630        .32632E-06    .25432E-05
  13  norm          5.5747        5.0022        .10398E-06   -.23315E-04
  14  norm          17.994        14.451        .53112E-07    .20849E-04
  15  norm          .10000E-03    1.5819       -.84258E-07** at limit **
  16  norm          .10000E-03    1.9710       -.61850E-07** at limit **
  17  norm          .10000E-03    1.2405        .22800E-07** at limit **
  18  Prefactor     .10002E-03    1.9880       -.49910E-06** at limit **
  19  Prefactor     5.9938        12.351        .77232E-06   -.10365E-03
  20  Prefactor     .10000E-03    11.404       -.48023E-06** at limit **
  21  Prefactor     14.472        44.047       -.30097E-05   -.14574E-03
  22  Prefactor     14.728        19.049        .72120E-06    .12946E-03
  23  Prefactor     .10000E-03    10.010        .56755E-06** at limit **
  24  Prefactor     .10000E-03    44.385        .86025E-07** at limit **
  25  Prefactor     28.081        49.896       -.95120E-05   -.35492E-03
  26  norm          3.0094        1.4281       -.22762E-07   -.29801E-04
  27  Prefactor     .10000E-03    2.8793        .73562E-07** at limit **
  28  norm          3.5922        10.052        .80395E-05   -.54470E-03
  29  Normalizat    .79995        .16527        .12191E-05    .56472E-04
  30  Prefactor     1.1269        .20656       -.11025E-05    .14281E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.56025
  Prefactor  = 0.886392
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.69609
  Prefactor  = 3.87278
  norm       = 5.57471
  norm       = 17.9945
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100015
  Prefactor  = 5.99381
  Prefactor  = 0.0001
  Prefactor  = 14.4722
  Prefactor  = 14.7276
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.0808
  norm       = 3.00937
  Prefactor  = 0.0001
  norm       = 3.5922
  Normalizat = 0.799954
  Prefactor  = 1.12694
 **********
 **   18 **HESSE 
 **********

 FCN=   5078.949     FROM HESSE     STATUS=OK           578 CALLS     4465 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.5602        4.1590        .10447E-03   -1.5158    
   2  Prefactor     .88639        20.005        .30600E-02   -1.5520    
   3  Prefactor     .10000E-03    1.1452        .73957E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.8264        .15256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.6521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    17.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.3210        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.5654        .86643E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.6961        16.623        .14471E-03   -1.5153    
  12  Prefactor     3.8728        12.542        .20501E-03   -1.5314    
  13  norm          5.5747        4.9611        .13953E-03   -1.5236    
  14  norm          17.994        14.453        .94418E-04   -1.4859    
  15  norm          .10000E-03    1.6072        .87354E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.9761        .97696E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.2436        .77515E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10002E-03    10.916        .17456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.9938        11.800        .16434E-03   -1.5218    
  20  Prefactor     .10000E-03    11.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     14.472        43.914        .10523E-03   -1.4947    
  22  Prefactor     14.728        19.072        .10440E-03   -1.4940    
  23  Prefactor     .10000E-03    10.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    44.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     28.081        52.477        .75559E-04   -1.4648    
  26  norm          3.0094        1.4274        .56883E-04   -1.5361    
  27  Prefactor     .10000E-03    2.9298        .11805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          3.5922        10.409        .10659E-02   -1.5329    
  29  Normalizat    .79995        .19613        .22695E-03   -1.0007    
  30  Prefactor     1.1269        .24649        .25244E-03   -.88610    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.14254e-09
Minuit parameter uncertainties:
  1  4.15913
  2  8.42459
  3  4.48162e-06
  4  1.34775e-06
  5  5.44011e-05
  6  0.00018818
  7  0.000206538
  8  6.10129e-05
  9  7.08767e-06
  10  1.18351e-06
  11  16.6326
  12  12.5509
  13  4.96146
  14  14.4555
  15  5.62366e-06
  16  3.24047e-06
  17  1.30399e-07
  18  0.000810623
  19  11.8041
  20  6.72921e-05
  21  44.0126
  22  19.0794
  23  6.72476e-05
  24  0.000245482
  25  52.5632
  26  1.42746
  27  2.19823e-06
  28  10.4147
  29  0.1963
  30  0.246739
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  3.873e+00  1.255e+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.127e+00  2.467e-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:  8.000e-01  1.963e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.12
Ra Dec: 196.008 37.071
Photon Flux Upper Limit: 7.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/192274/likelihoodResults_492825601_493084801_4FGL_J1304.0+3704_daily_bin978.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) = 5078.94052109
delta logL = 0.00848554335607

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5078.93909608
delta logL = 0.00991054930091

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2883       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6487       1.0000          .0000       10.000    
     3 'Normalizat'    .79797       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1283       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=   5078.939     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      239 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2880        12.753        .22328E-03    .42184E-03
   2  Index         2.6487        1.6918        .12811E-01    .12733E-03
   3  Normalizat    .79798        .18914        .22720E-03   -.11399E-03
   4  Prefactor     1.1283        .24501        .25231E-03   -.10972E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.28802
  Index      = 2.64875
  Normalizat = 0.797981
  Prefactor  = 1.12829
 **********
 **   18 **HESSE 
 **********

 FCN=   5078.939     FROM HESSE     STATUS=OK            25 CALLS      264 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2880        11.406        .89313E-05   -1.5345    
   2  Index         2.6487        1.5212        .51243E-03   -.48957    
   3  Normalizat    .79798        .18936        .90881E-05   -1.0014    
   4  Prefactor     1.1283        .24522        .10092E-04   -.88567    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30065e-09
Minuit parameter uncertainties:
  1  11.4137
  2  1.5531
  3  0.189516
  4  0.245462
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/192274': 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) = 5078.93909608
delta logL = 0.00991055216673

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  3.288e+00  1.141e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.649e+00  1.553e+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.128e+00  2.455e-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.980e-01  1.895e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.12
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/192274/cmap_HighResolution_492825601_493084801_4FGL_J1304.0+3704_daily_bin978.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.79e-03', job_status='DONE', photon_flux_upper_limit='7.47e-08', time_completed='2021-09-06 20:11:19.217765', job_id='192274', GAL2='1.13', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1630984279.22', return_code2='0', ts='0.12', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='9.91e-03', ts2='0.14', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='978' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 20:11:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0155>
Subject: Job 192274: <4FGL_J1304.0+3704_daily_bin978> in cluster <slac> Done

Job <4FGL_J1304.0+3704_daily_bin978> 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) <bullet0155>, 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:11:20 2021
Results reported at Mon Sep  6 20:11:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin978 196.008 37.071 492825601 493084801 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 :                                   782.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   949 sec.
    Turnaround time :                            954 sec.

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

