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


Performing analysis on: 4FGL_J1300.4+1416_daily_bin389
RA = 195.12, Dec = 14.2701
tmin = 340156801, tmax = 340416001
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='94125', job_status='RUN', time_executed='2021-09-06 14:30:52.920644', time_epoch_executed='1630963852.92' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='389'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/94125

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/94125/ft1_4FGL_J1300.4+1416_daily_bin389.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/94125/ft2_4FGL_J1300.4+1416_daily_bin389.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/94125/ft1_4FGL_J1300.4+1416_daily_bin389.fits outfile=/scratch/kocevski/94125/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin389.fits ra=195.12 dec=14.2701 rad=12.0 tmin=340156801.0 tmax=340416001.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.33
user 3.08
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/94125/ft2_4FGL_J1300.4+1416_daily_bin389.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/94125/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin389.fits evtable="EVENTS" outfile="/scratch/kocevski/94125/ft1_filtered_4FGL_J1300.4+1416_daily_bin389.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.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/94125/ft1_filtered_4FGL_J1300.4+1416_daily_bin389.fits" evtable="EVENTS" scfile=/scratch/kocevski/94125/ft2_4FGL_J1300.4+1416_daily_bin389.fits sctable="SC_DATA" outfile=/scratch/kocevski/94125/ltcube_340156801_340416001_4FGL_J1300.4+1416_daily_bin389.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/94125/ft2_4FGL_J1300.4+1416_daily_bin389.fits
.....................!
real 12.47
user 12.10
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/94125/ft1_filtered_4FGL_J1300.4+1416_daily_bin389.fits evtable="EVENTS" scfile=/scratch/kocevski/94125/ft2_4FGL_J1300.4+1416_daily_bin389.fits sctable="SC_DATA" expcube=/scratch/kocevski/94125/ltcube_340156801_340416001_4FGL_J1300.4+1416_daily_bin389.fits outfile=/scratch/kocevski/94125/expmap_340156801_340416001_4FGL_J1300.4+1416_daily_bin389.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/94125/ltcube_340156801_340416001_4FGL_J1300.4+1416_daily_bin389.fits
.....................!
real 190.81
user 185.33
sys 4.95

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/94125/ft1_filtered_4FGL_J1300.4+1416_daily_bin389.fits scfile=/scratch/kocevski/94125/ft2_4FGL_J1300.4+1416_daily_bin389.fits outfile=/scratch/kocevski/94125/cmap_340156801_340416001_4FGL_J1300.4+1416_daily_bin389.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.54
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/94125/ft1_filtered_4FGL_J1300.4+1416_daily_bin389.fits scfile=/scratch/kocevski/94125/ft2_4FGL_J1300.4+1416_daily_bin389.fits outfile=/scratch/kocevski/94125/cmap_HighResolution_340156801_340416001_4FGL_J1300.4+1416_daily_bin389.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.55
user 0.37
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/94125/ft1_filtered_4FGL_J1300.4+1416_daily_bin389.fits', '/scratch/kocevski/94125/ft2_4FGL_J1300.4+1416_daily_bin389.fits', expMap='/scratch/kocevski/94125/expmap_340156801_340416001_4FGL_J1300.4+1416_daily_bin389.fits', expCube='/scratch/kocevski/94125/ltcube_340156801_340416001_4FGL_J1300.4+1416_daily_bin389.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/94125/Model_4FGL_J1300.4+1416_daily_bin389.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/94125/ft1_filtered_4FGL_J1300.4+1416_daily_bin389.fits
Spacecraft file(s): /scratch/kocevski/94125/ft2_4FGL_J1300.4+1416_daily_bin389.fits
Exposure map: /scratch/kocevski/94125/expmap_340156801_340416001_4FGL_J1300.4+1416_daily_bin389.fits
Exposure cube: /scratch/kocevski/94125/ltcube_340156801_340416001_4FGL_J1300.4+1416_daily_bin389.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/94125/Model_4FGL_J1300.4+1416_daily_bin389.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) = 7136.16470692

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5828       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.4253       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .67736E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    9.5199       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.915       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    45.679       1.0000         .10000E-03   10000.    
    11 'Prefactor '    37.699       1.0000         .10000E-03   10000.    
    12 'norm      '    3.7922       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    30.447       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.159       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    21.342       1.0000         .10000E-03   10000.    
    18 'Prefactor '    54.590       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0478       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0661       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=   7136.145     FROM MIGRAD    STATUS=CONVERGED    727 CALLS     2630 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5837        3.7495        .15958E-03   -.48444E-03
   2  Prefactor     .10000E-03    7.5111        .18142E-02** at limit **
   3  norm          1.4254        .36383        .24625E-04   -.81625E-03
   4  Prefactor     .10000E-03    46.488        .18142E-02** at limit **
   5  Prefactor     .10000E-03    5.9439        .18142E-02** at limit **
   6  Prefactor     .10001E-03    30.562        .11581    ** at limit **
   7  norm          9.5199        2.5866        .67903E-04   -.24461E-03
   8  Prefactor     12.935        34.735        .11146E-03    .54058E-05
   9  Prefactor     .10000E-03    6.5520        .18142E-02** at limit **
  10  Prefactor     45.677        20.851        .59323E-04   -.21709E-03
  11  Prefactor     37.708        22.206        .65276E-04   -.95267E-04
  12  norm          3.7925        3.1477        .13266E-03   -.88098E-04
  13  norm          .10000E-03    5.0080        .18142E-02** at limit **
  14  norm          30.449        10.161        .72612E-04   -.17536E-04
  15  Prefactor     13.160        10.722        .55211E-03   -.24141E-03
  16  Prefactor     .10000E-03    24.464        .18142E-02** at limit **
  17  norm          21.344        11.641        .86701E-04   -.23078E-04
  18  Prefactor     54.594        49.596        .54289E-04   -.67012E-05
  19  Normalizat    1.0474        .25126        .31042E-03   -.16298E-03
  20  Prefactor     1.0664        .20105        .26555E-03   -.25253E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.58368
  Prefactor  = 0.0001
  norm       = 1.4254
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 9.51988
  Prefactor  = 12.9351
  Prefactor  = 0.0001
  Prefactor  = 45.6766
  Prefactor  = 37.7078
  norm       = 3.79249
  norm       = 0.0001
  norm       = 30.4485
  Prefactor  = 13.1601
  Prefactor  = 0.0001
  norm       = 21.3436
  Prefactor  = 54.5939
  Normalizat = 1.04745
  Prefactor  = 1.06642
 **********
 **   18 **HESSE 
 **********

 FCN=   7136.145     FROM HESSE     STATUS=OK           281 CALLS     2911 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5837        3.7494        .63832E-05   -1.5329    
   2  Prefactor     .10000E-03    7.5112        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.4254        .36383        .98498E-06   -1.5469    
   4  Prefactor     .10000E-03    46.488        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.9449        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    29.682        .11799       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          9.5199        2.5866        .27161E-05   -1.5091    
   8  Prefactor     12.935        34.736        .44585E-05   -1.4989    
   9  Prefactor     .10000E-03    6.5553        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     45.677        20.850        .11865E-04   -1.4355    
  11  Prefactor     37.708        22.202        .26110E-05   -1.4479    
  12  norm          3.7925        3.1477        .53064E-05   -1.5318    
  13  norm          .10000E-03    5.0080        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          30.449        10.161        .29045E-05   -1.4604    
  15  Prefactor     13.160        10.721        .22084E-04   -1.4982    
  16  Prefactor     .10000E-03    24.467        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          21.344        11.641        .34681E-05   -1.4784    
  18  Prefactor     54.594        49.595        .10858E-04   -1.4229    
  19  Normalizat    1.0474        .25146        .12417E-04   -.91457    
  20  Prefactor     1.0664        .20122        .53110E-04   -.90547    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36264e-10
Minuit parameter uncertainties:
  1  3.74966
  2  3.97146e-06
  3  0.363829
  4  3.06827e-05
  5  7.48771e-06
  6  0.000793372
  7  2.58662
  8  34.7899
  9  4.12064e-05
  10  20.8534
  11  22.2068
  12  3.14782
  13  1.27867e-06
  14  10.1612
  15  10.7227
  16  2.03293e-05
  17  11.6426
  18  49.6323
  19  0.251745
  20  0.201363
Done.

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

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  3.771e+01  2.221e+01  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:  1.066e+00  2.014e-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.047e+00  2.517e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.51
Ra Dec: 195.120 14.270
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 1.28e-07 +/- 7.52e-08
Energy Flux (Fixed Index): 2.99e-05 +/- 1.76e-05

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) = 7134.37009208
delta logL = 1.77488773815

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7134.35896011
delta logL = 1.78601971602

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.982       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9374       1.0000          .0000       10.000    
     3 'Normalizat'    .92476       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1382       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=   7134.359     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      304 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.984        21.008        .89601E-04   -.38001E-03
   2  Index         3.9376        .90835        .51908E-02   -.77205E-04
   3  Normalizat    .92466        .24619        .32750E-03    .11383E-03
   4  Prefactor     1.1382        .20544        .25805E-03    .12495E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.9841
  Index      = 3.93757
  Normalizat = 0.92466
  Prefactor  = 1.13819
 **********
 **   18 **HESSE 
 **********

 FCN=   7134.359     FROM HESSE     STATUS=OK            25 CALLS      329 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.984        17.619        .35840E-05   -1.4814    
   2  Index         3.9376        .76194        .20763E-03   -.21412    
   3  Normalizat    .92466        .24633        .13100E-04   -.95599    
   4  Prefactor     1.1382        .20523        .51610E-04   -.88255    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05721e-10
Minuit parameter uncertainties:
  1  17.6241
  2  0.765064
  3  0.246636
  4  0.205369
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/94125': 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) = 7134.35895979
delta logL = 1.78602003551

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.998e+01  1.762e+01  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  3.938e+00  7.651e-01  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:  1.138e+00  2.054e-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:  9.247e-01  2.466e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.71
Ra Dec: 195.120 14.270
Photon Index (Free Index): 3.94 +/- 0.77
Photon Flux (Free Index): 2.40e-07 +/- 1.04e-07
Energy Flux (Free Index): 3.63e-05 +/- 1.53e-05

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/94125/cmap_HighResolution_340156801_340416001_4FGL_J1300.4+1416_daily_bin389.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.28e-07', energy_flux2='3.63e-05', photon_flux_error='7.52e-08', dlogl='1.79e+00', energy_flux='2.99e-05', photon_flux2='2.40e-07', job_status='DONE', time_completed='2021-09-06 14:41:37.593513', photon_index_error2='0.77', photon_index2='3.94', ts='4.51', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='1.53e-05', EG='1.05', time_epoch_completed='1630964497.59', return_code='0', job_id='94125', GAL2='1.14', EG2='0.92', return_code2='0', energy_flux_error='1.76e-05', photon_flux_error2='1.04e-07', ts2='8.71', photon_index='2.74' WHERE bin_id='389' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:41:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 94125: <4FGL_J1300.4+1416_daily_bin389> in cluster <slac> Done

Job <4FGL_J1300.4+1416_daily_bin389> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 14:30:35 2021
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:30: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 14:30:37 2021
Terminated at Mon Sep  6 14:41:38 2021
Results reported at Mon Sep  6 14:41:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin389 195.12 14.2701 340156801 340416001 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 :                                   638.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             351.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   660 sec.
    Turnaround time :                            663 sec.

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

