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


Performing analysis on: 4FGL_J1300.4+1416_daily_bin890
RA = 195.12, Dec = 14.2701
tmin = 470016001, tmax = 470275201
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='97359', job_status='RUN', time_executed='2021-09-06 14:43:29.467419', time_epoch_executed='1630964609.47' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='890'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/97359

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/97359/ft1_4FGL_J1300.4+1416_daily_bin890.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/97359/ft2_4FGL_J1300.4+1416_daily_bin890.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/97359/ft1_4FGL_J1300.4+1416_daily_bin890.fits outfile=/scratch/kocevski/97359/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin890.fits ra=195.12 dec=14.2701 rad=12.0 tmin=470016001.0 tmax=470275201.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.52
user 3.29
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/97359/ft2_4FGL_J1300.4+1416_daily_bin890.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/97359/ft2_4FGL_J1300.4+1416_daily_bin890.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/97359/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin890.fits evtable="EVENTS" outfile="/scratch/kocevski/97359/ft1_filtered_4FGL_J1300.4+1416_daily_bin890.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.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/97359/ft1_filtered_4FGL_J1300.4+1416_daily_bin890.fits" evtable="EVENTS" scfile=/scratch/kocevski/97359/ft2_4FGL_J1300.4+1416_daily_bin890.fits sctable="SC_DATA" outfile=/scratch/kocevski/97359/ltcube_470016001_470275201_4FGL_J1300.4+1416_daily_bin890.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/97359/ft2_4FGL_J1300.4+1416_daily_bin890.fits
.....................!
real 16.37
user 15.99
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/97359/ft1_filtered_4FGL_J1300.4+1416_daily_bin890.fits evtable="EVENTS" scfile=/scratch/kocevski/97359/ft2_4FGL_J1300.4+1416_daily_bin890.fits sctable="SC_DATA" expcube=/scratch/kocevski/97359/ltcube_470016001_470275201_4FGL_J1300.4+1416_daily_bin890.fits outfile=/scratch/kocevski/97359/expmap_470016001_470275201_4FGL_J1300.4+1416_daily_bin890.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/97359/ltcube_470016001_470275201_4FGL_J1300.4+1416_daily_bin890.fits
.....................!
real 190.03
user 185.03
sys 4.59

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

Setting source of interest to:
4FGL J1300.4+1416 @ 195.12 14.2701

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/97359/ft1_filtered_4FGL_J1300.4+1416_daily_bin890.fits scfile=/scratch/kocevski/97359/ft2_4FGL_J1300.4+1416_daily_bin890.fits outfile=/scratch/kocevski/97359/cmap_470016001_470275201_4FGL_J1300.4+1416_daily_bin890.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=195.12 yref=14.2701 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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/97359/ft1_filtered_4FGL_J1300.4+1416_daily_bin890.fits scfile=/scratch/kocevski/97359/ft2_4FGL_J1300.4+1416_daily_bin890.fits outfile=/scratch/kocevski/97359/cmap_HighResolution_470016001_470275201_4FGL_J1300.4+1416_daily_bin890.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=195.12 yref=14.2701 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.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/97359/ft1_filtered_4FGL_J1300.4+1416_daily_bin890.fits evtable="EVENTS" scfile=/scratch/kocevski/97359/ft2_4FGL_J1300.4+1416_daily_bin890.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/97359/Model_4FGL_J1300.4+1416_daily_bin890.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/97359/ft1_filtered_4FGL_J1300.4+1416_daily_bin890.fits.....................!
real 49.72
user 48.17
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/97359/ft1_filtered_4FGL_J1300.4+1416_daily_bin890.fits', '/scratch/kocevski/97359/ft2_4FGL_J1300.4+1416_daily_bin890.fits', expMap='/scratch/kocevski/97359/expmap_470016001_470275201_4FGL_J1300.4+1416_daily_bin890.fits', expCube='/scratch/kocevski/97359/ltcube_470016001_470275201_4FGL_J1300.4+1416_daily_bin890.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/97359/Model_4FGL_J1300.4+1416_daily_bin890.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1300.4+1416'

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  6.920e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  2.738e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  4.431e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/97359/ft1_filtered_4FGL_J1300.4+1416_daily_bin890.fits
Spacecraft file(s): /scratch/kocevski/97359/ft2_4FGL_J1300.4+1416_daily_bin890.fits
Exposure map: /scratch/kocevski/97359/expmap_470016001_470275201_4FGL_J1300.4+1416_daily_bin890.fits
Exposure cube: /scratch/kocevski/97359/ltcube_470016001_470275201_4FGL_J1300.4+1416_daily_bin890.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/97359/Model_4FGL_J1300.4+1416_daily_bin890.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) = 5734.04671036

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .12918       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.3870       1.0000         .10000E-03   10000.    
     8 'Prefactor '    55.666       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.5713       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10940E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.5754       1.0000         .10000E-03   10000.    
    13 'norm      '    .17497E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    13.308       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.194       1.0000         .10000E-03   10000.    
    17 'norm      '    .10099E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3024       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .83400       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5733.990     FROM MIGRAD    STATUS=CONVERGED    449 CALLS     2084 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .99743        .32523E-08** at limit **
   2  Prefactor     .10000E-03    10.505        .43670E-07** at limit **
   3  norm          .12915        .15823        .18801E-08   -.16234E-03
   4  Prefactor     .10001E-03    73.259        .89294E-05** at limit **
   5  Prefactor     .10000E-03    4.1124        .79783E-08** at limit **
   6  Prefactor     .10000E-03    37.641        .39569E-06** at limit **
   7  norm          2.3868        1.5364        .50655E-08   -.66550E-04
   8  Prefactor     55.671        44.821        .16319E-05    .12569E-03
   9  Prefactor     4.5717        4.4640        .10989E-05   -.12501E-02
  10  Prefactor     .10000E-03    12.451       -.17339E-06** at limit **
  11  Prefactor     .10000E-03    2.9391        .47671E-08** at limit **
  12  norm          3.5752        2.9045       -.98445E-08    .50934E-04
  13  norm          .10023E-03    16.332       -.12576E-05** at limit **
  14  norm          13.323        7.8884       -.42958E-06   -.40058E-03
  15  Prefactor     .10000E-03    7.4439        .24559E-07** at limit **
  16  Prefactor     22.195        25.669        .69744E-07    .37681E-05
  17  norm          .10000E-03    6.5410        .22716E-06** at limit **
  18  Prefactor     .10000E-03    60.504       -.50357E-05** at limit **
  19  Normalizat    1.3028        .18779        .64282E-07    .18808E-04
  20  Prefactor     .83361        .16595       -.21619E-06    .32992E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.129148
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.38678
  Prefactor  = 55.6711
  Prefactor  = 4.57166
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.57519
  norm       = 0.000100233
  norm       = 13.3232
  Prefactor  = 0.0001
  Prefactor  = 22.1948
  norm       = 0.000100003
  Prefactor  = 0.000100005
  Normalizat = 1.30276
  Prefactor  = 0.833613
 **********
 **   18 **HESSE 
 **********

 FCN=   5733.990     FROM HESSE     STATUS=OK           295 CALLS     2379 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.0029        .73843E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .12915        .14612        .32284E-03   -1.5636    
   4  Prefactor     .10001E-03    77.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.1203        .14996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    38.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.3868        1.5333        .72935E-04   -1.5399    
   8  Prefactor     55.671        45.136        .53765E-04   -1.4214    
   9  Prefactor     4.5717        5.6019        .94137E-03   -1.5280    
  10  Prefactor     .10000E-03    12.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.9421        .12678E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.5752        2.9018        .11305E-03   -1.5330    
  13  norm          .10023E-03    107.00        .57485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          13.323        7.4796        .10980E-03   -1.4978    
  15  Prefactor     .10000E-03    7.4927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     22.195        25.669        .85022E-04   -1.4765    
  17  norm          .10000E-03    17.956        .35046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    61.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3028        .22017        .23372E-03   -.83484    
  20  Prefactor     .83361        .19457        .25431E-03   -.98501    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.72834e-09
Minuit parameter uncertainties:
  1  3.43347e-08
  2  3.17015e-06
  3  0.146121
  4  0.00214135
  5  6.41112e-07
  6  4.45545e-05
  7  1.53332
  8  45.1635
  9  5.60253
  10  6.69127e-05
  11  6.98289e-07
  12  2.90188
  13  0.00999825
  14  7.48008
  15  7.9184e-07
  16  25.6818
  17  0.000476716
  18  0.00106469
  19  0.220324
  20  0.194736
Done.

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

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  6.983e-07  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  2.738e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  4.431e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  8.336e-01  1.947e-01  0.000e+00  1.000e+01 ( 1.000e+00)
569        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
570        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
567   Normalization:  1.303e+00  2.203e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 195.120 14.270
Photon Flux Upper Limit: 5.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/97359/likelihoodResults_470016001_470275201_4FGL_J1300.4+1416_daily_bin890.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) = 5733.99115944
delta logL = -0.00159503147734

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5733.98956438
delta logL = 3.30137481797e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7301       1.0000          .0000       10.000    
     3 'Normalizat'    1.3028       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83363       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+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=   5733.990     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      252 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    37.044        .12710E-01** at limit **
   2  Index         2.3309        8.7987        .50000        .30127E-07
   3  Normalizat    1.3028        .16413E-01    .23372E-03   -.15906E-04
   4  Prefactor     .83361        .14722E-01    .25431E-03   -.97009E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.33093
  Normalizat = 1.30276
  Prefactor  = 0.833613
 **********
 **   18 **HESSE 
 **********

 FCN=   5733.990     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      281 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    311.85        .13143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3309        7.0694        .50000       -.56311    
   3  Normalizat    1.3028        .54065E-01    .93487E-05   -.83484    
   4  Prefactor     .83361        .48496E-01    .10172E-04   -.98501    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.011e-10
Minuit parameter uncertainties:
  1  0.000121429
  2  1287.3
  3  0.054067
  4  0.0484981
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/97359': 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) = 5733.98956323
delta logL = 1.17998297355e-06

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  1.214e-04  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  2.331e+00  1.287e+03  0.000e+00  1.000e+01 (-1.000e+00)
299        Scale:  4.431e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  8.336e-01  4.850e-02  0.000e+00  1.000e+01 ( 1.000e+00)
569        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
570        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
567   Normalization:  1.303e+00  5.407e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 195.120 14.270

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/97359/cmap_HighResolution_470016001_470275201_4FGL_J1300.4+1416_daily_bin890.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.19e-03', job_status='DONE', photon_flux_upper_limit='5.31e-08', time_completed='2021-09-06 14:54:02.284442', job_id='97359', GAL2='0.83', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1630965242.28', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='1.18e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='890' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:54:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 97359: <4FGL_J1300.4+1416_daily_bin890> in cluster <slac> Done

Job <4FGL_J1300.4+1416_daily_bin890> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 14:40:30 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:40:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 14:40:32 2021
Terminated at Mon Sep  6 14:54:03 2021
Results reported at Mon Sep  6 14:54:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin890 195.12 14.2701 470016001 470275201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1300.4+1416 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   586.10 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             249.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            813 sec.

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

