/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 1 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 = 7278
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1304.6-0348_daily_bin203
RA = 196.172, Dec = -3.8139
tmin = 291945601, tmax = 292204801
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='208398', job_status='RUN', time_executed='2021-09-06 20:50:48.352593', time_epoch_executed='1630986648.35' WHERE source_name='4FGL J1304.6-0348' and cadence='daily' and bin_id='203'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/208398

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/208398/ft1_4FGL_J1304.6-0348_daily_bin203.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/208398/ft2_4FGL_J1304.6-0348_daily_bin203.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/208398/ft1_4FGL_J1304.6-0348_daily_bin203.fits outfile=/scratch/kocevski/208398/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin203.fits ra=196.172 dec=-3.8139 rad=12.0 tmin=291945601.0 tmax=292204801.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.78
user 3.53
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/208398/ft2_4FGL_J1304.6-0348_daily_bin203.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/208398/ft2_4FGL_J1304.6-0348_daily_bin203.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/208398/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin203.fits evtable="EVENTS" outfile="/scratch/kocevski/208398/ft1_filtered_4FGL_J1304.6-0348_daily_bin203.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.53
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/208398/ft1_filtered_4FGL_J1304.6-0348_daily_bin203.fits" evtable="EVENTS" scfile=/scratch/kocevski/208398/ft2_4FGL_J1304.6-0348_daily_bin203.fits sctable="SC_DATA" outfile=/scratch/kocevski/208398/ltcube_291945601_292204801_4FGL_J1304.6-0348_daily_bin203.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/208398/ft2_4FGL_J1304.6-0348_daily_bin203.fits
.....................!
real 13.67
user 13.27
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/208398/ft1_filtered_4FGL_J1304.6-0348_daily_bin203.fits evtable="EVENTS" scfile=/scratch/kocevski/208398/ft2_4FGL_J1304.6-0348_daily_bin203.fits sctable="SC_DATA" expcube=/scratch/kocevski/208398/ltcube_291945601_292204801_4FGL_J1304.6-0348_daily_bin203.fits outfile=/scratch/kocevski/208398/expmap_291945601_292204801_4FGL_J1304.6-0348_daily_bin203.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/208398/ltcube_291945601_292204801_4FGL_J1304.6-0348_daily_bin203.fits
.....................!
real 193.23
user 187.54
sys 5.22

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 185 point sources and 0 extended sources

Setting source of interest to:
4FGL J1304.6-0348 @ 196.172 -3.8139

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/208398/ft1_filtered_4FGL_J1304.6-0348_daily_bin203.fits scfile=/scratch/kocevski/208398/ft2_4FGL_J1304.6-0348_daily_bin203.fits outfile=/scratch/kocevski/208398/cmap_291945601_292204801_4FGL_J1304.6-0348_daily_bin203.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.172 yref=-3.8139 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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/208398/ft1_filtered_4FGL_J1304.6-0348_daily_bin203.fits scfile=/scratch/kocevski/208398/ft2_4FGL_J1304.6-0348_daily_bin203.fits outfile=/scratch/kocevski/208398/cmap_HighResolution_291945601_292204801_4FGL_J1304.6-0348_daily_bin203.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.172 yref=-3.8139 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/208398/ft1_filtered_4FGL_J1304.6-0348_daily_bin203.fits evtable="EVENTS" scfile=/scratch/kocevski/208398/ft2_4FGL_J1304.6-0348_daily_bin203.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/208398/Model_4FGL_J1304.6-0348_daily_bin203.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/208398/ft1_filtered_4FGL_J1304.6-0348_daily_bin203.fits.....................!
real 62.51
user 61.21
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/208398/ft1_filtered_4FGL_J1304.6-0348_daily_bin203.fits', '/scratch/kocevski/208398/ft2_4FGL_J1304.6-0348_daily_bin203.fits', expMap='/scratch/kocevski/208398/expmap_291945601_292204801_4FGL_J1304.6-0348_daily_bin203.fits', expCube='/scratch/kocevski/208398/ltcube_291945601_292204801_4FGL_J1304.6-0348_daily_bin203.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/208398/Model_4FGL_J1304.6-0348_daily_bin203.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1304.6-0348'

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  2.667e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.176e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  2.075e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/208398/ft1_filtered_4FGL_J1304.6-0348_daily_bin203.fits
Spacecraft file(s): /scratch/kocevski/208398/ft2_4FGL_J1304.6-0348_daily_bin203.fits
Exposure map: /scratch/kocevski/208398/expmap_291945601_292204801_4FGL_J1304.6-0348_daily_bin203.fits
Exposure cube: /scratch/kocevski/208398/ltcube_291945601_292204801_4FGL_J1304.6-0348_daily_bin203.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/208398/Model_4FGL_J1304.6-0348_daily_bin203.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) = 7597.67416912

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.3105       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.647       1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.475       1.0000         .10000E-03   10000.    
     5 'norm      '    3.0280       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.239       1.0000         .10000E-03   10000.    
     7 'Prefactor '    27.113       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.9551       1.0000         .10000E-03   10000.    
    10 'norm      '    1.6593       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    46.030       1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .24769E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    58.036       1.0000         .10000E-03   10000.    
    18 'norm      '    8.4392       1.0000         .10000E-03   10000.    
    19 'norm      '    .12695E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    .10088E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3646       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .75312       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6070E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7597.670     FROM MIGRAD    STATUS=CONVERGED    491 CALLS     2414 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.0588        .90712E-02** at limit **
   2  norm          5.3104        .99421        .43602E-02    .11305E-02
   3  Prefactor     12.646        10.921        .28159E-02    .40089E-03
   4  Prefactor     24.479        14.798        .20242E-02   -.30327E-03
   5  norm          3.0281        1.8666        .58301E-02    .76149E-03
   6  Prefactor     13.242        13.157        .27521E-02   -.19921E-03
   7  Prefactor     27.117        36.157        .19234E-02   -.67274E-03
   8  Prefactor     .10000E-03    53.361        .90712E-02** at limit **
   9  norm          2.9503        74.630        .59059E-02    .74580E-04
  10  norm          1.6593        .36319        .51435E-02    .64166E-02
  11  Prefactor     .10000E-03    20.542        .90712E-02** at limit **
  12  norm          46.027        16.332        .14774E-02    .48465E-03
  13  norm          .10000E-03    3.3964        .90712E-02** at limit **
  14  Prefactor     .10000E-03    2.5917        .90712E-02** at limit **
  15  Prefactor     .10000E-03    19.091        .90712E-02** at limit **
  16  Prefactor     .10001E-03    5.7185        .75375E-01** at limit **
  17  Prefactor     58.054        27.960        .13165E-02    .25683E-02
  18  norm          8.4390        2.2627        .34499E-02    .15098E-02
  19  norm          .10000E-03    2.9470        .73129E-01** at limit **
  20  norm          .10000E-03    10.847        .90712E-02** at limit **
  21  Normalizat    1.3646        .23926        .73333E-01    .73395E-03
  22  Prefactor     .75310        .14918        .63422E-01    .49115E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 5.31045
  Prefactor  = 12.6459
  Prefactor  = 24.4785
  norm       = 3.02807
  Prefactor  = 13.242
  Prefactor  = 27.1175
  Prefactor  = 0.000100002
  norm       = 2.95025
  norm       = 1.65925
  Prefactor  = 0.0001
  norm       = 46.0273
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 58.0541
  norm       = 8.43897
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.36464
  Prefactor  = 0.753105
 **********
 **   18 **HESSE 
 **********

 FCN=   7597.670     FROM HESSE     STATUS=OK           344 CALLS     2758 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.0643        .87582E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.3104        .99713        .35514E-04   -1.5247    
   3  Prefactor     12.646        10.907        .11264E-03   -1.4997    
   4  Prefactor     24.479        14.835        .80970E-04   -1.4718    
   5  norm          3.0281        1.8614        .89551E-04   -1.5360    
   6  Prefactor     13.242        13.074        .11009E-03   -1.4980    
   7  Prefactor     27.117        36.179        .76937E-04   -1.4666    
   8  Prefactor     .10000E-03    53.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.9503        73.832        .23623E-03   -1.5364    
  10  norm          1.6593        .36445        .22780E-04   -1.5450    
  11  Prefactor     .10000E-03    20.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          46.027        16.348        .59097E-04   -1.4350    
  13  norm          .10000E-03    3.3997        .15688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.5957        .13703E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    19.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    7.2784        .62983E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     58.054        23.083        .52661E-04   -1.4183    
  18  norm          8.4390        2.2725        .63697E-04   -1.5127    
  19  norm          .10000E-03    16.882        .23734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    10.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3646        .28546        .32450E-03   -.81657    
  22  Prefactor     .75310        .17561        .28054E-03   -1.0148    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.84831e-09
Minuit parameter uncertainties:
  1  3.5636e-06
  2  0.997134
  3  10.909
  4  14.8371
  5  1.86146
  6  13.077
  7  36.2086
  8  0.000573305
  9  29.5581
  10  0.364449
  11  0.000125487
  12  16.3498
  13  1.27657e-05
  14  1.12857e-06
  15  3.77779e-05
  16  0.000622175
  17  23.0869
  18  2.27248
  19  2.85986e-05
  20  2.53986e-05
  21  0.28579
  22  0.175739
Done.

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

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.255e-04  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.176e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  2.075e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
604    Prefactor:  7.531e-01  1.757e-01  0.000e+00  1.000e+01 ( 1.000e+00)
605        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
606        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
603   Normalization:  1.365e+00  2.858e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 196.172 -3.814
Photon Flux Upper Limit: 6.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/208398/likelihoodResults_291945601_292204801_4FGL_J1304.6-0348_daily_bin203.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) = 7597.6700605
delta logL = -0.000231775355132

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7597.66982859
delta logL = 1.35997652251e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0876       1.0000          .0000       10.000    
     3 'Normalizat'    1.3646       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75311       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6070E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7597.670     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      244 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1664.5        .90712E-02** at limit **
   2  Index         2.0718        6.9510        .50000        .57659E-05
   3  Normalizat    1.3646        .57901E-01    .73333E-01   -.96552E-04
   4  Prefactor     .75311        .38629E-01    .63422E-01    .86907E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  Index      = 2.07177
  Normalizat = 1.36463
  Prefactor  = 0.75311
 **********
 **   18 **HESSE 
 **********

 FCN=   7597.670     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      277 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    6999.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0718        5.4280        .50000       -.62568    
   3  Normalizat    1.3646        .14810        .32450E-03   -.81657    
   4  Prefactor     .75311        .98800E-01    .28054E-03   -1.0148    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.93941e-08
Minuit parameter uncertainties:
  1  0.0112585
  2  59.3942
  3  0.148146
  4  0.0988234
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/208398': 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) = 7597.66982857
delta logL = 1.61884599947e-07

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.126e-02  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.072e+00  5.939e+01  0.000e+00  1.000e+01 (-1.000e+00)
316        Scale:  2.075e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
604    Prefactor:  7.531e-01  9.882e-02  0.000e+00  1.000e+01 ( 1.000e+00)
605        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
606        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
603   Normalization:  1.365e+00  1.481e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 196.172 -3.814

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/208398/cmap_HighResolution_291945601_292204801_4FGL_J1304.6-0348_daily_bin203.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.20e-03', job_status='DONE', photon_flux_upper_limit='6.84e-08', time_completed='2021-09-06 21:03:26.571943', job_id='208398', GAL2='0.75', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1630987406.57', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='1.62e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='203' AND source_name='4FGL J1304.6-0348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 21:03:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0130>
Subject: Job 208398: <4FGL_J1304.6-0348_daily_bin203> in cluster <slac> Done

Job <4FGL_J1304.6-0348_daily_bin203> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 20:50:34 2021
Job was executed on host(s) <bullet0130>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 20:50:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 20:50:37 2021
Terminated at Mon Sep  6 21:03:27 2021
Results reported at Mon Sep  6 21:03:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.6-0348_daily_bin203 196.172 -3.8139 291945601 292204801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1304.6-0348 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   754.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             330.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   769 sec.
    Turnaround time :                            773 sec.

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

