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


Performing analysis on: 4FGL_J1300.4+1416_daily_bin281
RA = 195.12, Dec = 14.2701
tmin = 312163201, tmax = 312422401
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='92962', job_status='RUN', time_executed='2021-09-06 14:27:53.914284', time_epoch_executed='1630963673.91' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='281'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/92962

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/92962/ft1_4FGL_J1300.4+1416_daily_bin281.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/92962/ft2_4FGL_J1300.4+1416_daily_bin281.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/92962/ft1_4FGL_J1300.4+1416_daily_bin281.fits outfile=/scratch/kocevski/92962/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin281.fits ra=195.12 dec=14.2701 rad=12.0 tmin=312163201.0 tmax=312422401.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.43
user 3.21
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/92962/ft1_filtered_4FGL_J1300.4+1416_daily_bin281.fits" evtable="EVENTS" scfile=/scratch/kocevski/92962/ft2_4FGL_J1300.4+1416_daily_bin281.fits sctable="SC_DATA" outfile=/scratch/kocevski/92962/ltcube_312163201_312422401_4FGL_J1300.4+1416_daily_bin281.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/92962/ft2_4FGL_J1300.4+1416_daily_bin281.fits
.....................!
real 11.93
user 11.52
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/92962/ft1_filtered_4FGL_J1300.4+1416_daily_bin281.fits evtable="EVENTS" scfile=/scratch/kocevski/92962/ft2_4FGL_J1300.4+1416_daily_bin281.fits sctable="SC_DATA" expcube=/scratch/kocevski/92962/ltcube_312163201_312422401_4FGL_J1300.4+1416_daily_bin281.fits outfile=/scratch/kocevski/92962/expmap_312163201_312422401_4FGL_J1300.4+1416_daily_bin281.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/92962/ltcube_312163201_312422401_4FGL_J1300.4+1416_daily_bin281.fits
.....................!
real 192.07
user 186.64
sys 5.03

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/92962/ft1_filtered_4FGL_J1300.4+1416_daily_bin281.fits scfile=/scratch/kocevski/92962/ft2_4FGL_J1300.4+1416_daily_bin281.fits outfile=/scratch/kocevski/92962/cmap_312163201_312422401_4FGL_J1300.4+1416_daily_bin281.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/92962/ft1_filtered_4FGL_J1300.4+1416_daily_bin281.fits scfile=/scratch/kocevski/92962/ft2_4FGL_J1300.4+1416_daily_bin281.fits outfile=/scratch/kocevski/92962/cmap_HighResolution_312163201_312422401_4FGL_J1300.4+1416_daily_bin281.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9930       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.9142       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.0362       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12046E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.9480       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.608       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.3686       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10212E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    37.393       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    37.361       1.0000         .10000E-03   10000.    
    14 'norm      '    .10270E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    18.949       1.0000         .10000E-03   10000.    
    18 'Prefactor '    54.118       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3246       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .91971       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7199.119     FROM MIGRAD    STATUS=CONVERGED    417 CALLS     2007 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9929        3.7696         .0000        .40069E-03
   2  Prefactor     .10000E-03    13.047         .0000    ** at limit **
   3  norm          3.9143        .57026         .0000       -.40277E-03
   4  Prefactor     .10001E-03    111.68         .0000    ** at limit **
   5  Prefactor     1.0258        14.137         .0000        .22043E-01
   6  Prefactor     .10001E-03    37.194         .0000    ** at limit **
   7  norm          1.9481        1.4547         .0000        .42118E-03
   8  Prefactor     10.589        32.549         .0000        .25979E-02
   9  Prefactor     7.3693        7.9640         .0000        .11374E-03
  10  Prefactor     .10000E-03    7.6975         .0000    ** at limit **
  11  Prefactor     37.395        17.808         .0000        .36097E-03
  12  norm          .10000E-03    1.3102         .0000    ** at limit **
  13  norm          37.362        23.536         .0000        .34711E-04
  14  norm          .10000E-03    3.4401         .0000    ** at limit **
  15  Prefactor     .10000E-03    3.3765         .0000    ** at limit **
  16  Prefactor     .10000E-03    18.318         .0000    ** at limit **
  17  norm          18.951        11.232         .0000       -.66516E-03
  18  Prefactor     54.120        67.262         .0000       -.84120E-03
  19  Normalizat    1.3244        .21243         .0000        .22656E-03
  20  Prefactor     .91981        .17527         .0000        .26405E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.99289
  Prefactor  = 0.0001
  norm       = 3.91427
  Prefactor  = 0.000100009
  Prefactor  = 1.02581
  Prefactor  = 0.000100011
  norm       = 1.94806
  Prefactor  = 10.5894
  Prefactor  = 7.36926
  Prefactor  = 0.0001
  Prefactor  = 37.3946
  norm       = 0.0001
  norm       = 37.3625
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 18.9511
  Prefactor  = 54.1197
  Normalizat = 1.32443
  Prefactor  = 0.919806
 **********
 **   18 **HESSE 
 **********

 FCN=   7199.119     FROM HESSE     STATUS=OK           283 CALLS     2290 TOTAL
                     EDM=   .78E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9929        3.7664        .13822E-03   -1.5261    
   2  Prefactor     .10000E-03    13.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.9143        .57231        .23457E-04   -1.5312    
   4  Prefactor     .10001E-03    111.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.0258        14.276        .24738E-02   -1.5505    
   6  Prefactor     .10001E-03    37.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.9481        1.4550        .85325E-04   -1.5429    
   8  Prefactor     10.589        32.533        .12302E-03   -1.5057    
   9  Prefactor     7.3693        7.9635        .14775E-03   -1.5165    
  10  Prefactor     .10000E-03    7.7317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     37.395        17.891        .65542E-04   -1.4484    
  12  norm          .10000E-03    1.3135        .94829E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          37.362        23.541        .65570E-04   -1.4485    
  14  norm          .10000E-03    3.4494        .15355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.3806        .15226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    18.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          18.951        11.260        .92009E-04   -1.4837    
  18  Prefactor     54.120        67.321        .54524E-04   -1.4235    
  19  Normalizat    1.3244        .25391        .28401E-03   -.82840    
  20  Prefactor     .91981        .20797        .28105E-03   -.95452    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.81374e-08
Minuit parameter uncertainties:
  1  3.7666
  2  1.89531e-05
  3  0.57231
  4  0.00197681
  5  7.6556
  6  0.00129928
  7  1.45502
  8  32.5874
  9  7.96461
  10  5.73842e-05
  11  17.8935
  12  2.72037e-06
  13  23.5473
  14  4.1704e-05
  15  3.35994e-05
  16  0.000329
  17  11.2611
  18  67.4158
  19  0.254148
  20  0.208149
Done.

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

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  3.739e+01  1.789e+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:  9.198e-01  2.081e-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.324e+00  2.541e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.21
Ra Dec: 195.120 14.270
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 1.27e-07 +/- 6.06e-08
Energy Flux (Fixed Index): 2.97e-05 +/- 1.42e-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) = 7199.05911189
delta logL = 0.0599955428188

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7199.05496828
delta logL = 0.064139157781

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.342       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5676       1.0000          .0000       10.000    
     3 'Normalizat'    1.3406       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90959       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.

 FCN=   7199.055     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      269 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.358        433.37        .15976E-02    .21292E-04
   2  Index         2.5680        6.2251        .18995        .16767E-04
   3  Normalizat    1.3407        .23588        .63876E-01    .22501E-04
   4  Prefactor     .90945        .23931        .45127E-01    .36898E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.3585
  Index      = 2.56804
  Normalizat = 1.34067
  Prefactor  = 0.90945
 **********
 **   18 **HESSE 
 **********

 FCN=   7199.055     FROM HESSE     STATUS=OK            33 CALLS      302 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.358        19.334        .63903E-04   -1.4452    
   2  Index         2.5680        .46456        .73758E-02   -.50796    
   3  Normalizat    1.3407        .24959        .28254E-03   -.82360    
   4  Prefactor     .90945        .20736        .28242E-03   -.95812    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.47433e-11
Minuit parameter uncertainties:
  1  19.3369
  2  0.46544
  3  0.249817
  4  0.207539
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/92962': 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) = 7199.05496687
delta logL = 0.0641405693386

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  3.936e+01  1.934e+01  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  2.568e+00  4.654e-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:  9.094e-01  2.075e-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.341e+00  2.498e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.22
Ra Dec: 195.120 14.270
Photon Index (Free Index): 2.57 +/- 0.47
Photon Flux (Free Index): 1.15e-07 +/- 6.51e-08
Energy Flux (Free Index): 3.11e-05 +/- 1.57e-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/92962/cmap_HighResolution_312163201_312422401_4FGL_J1300.4+1416_daily_bin281.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.27e-07', energy_flux2='3.11e-05', photon_flux_error='6.06e-08', dlogl='6.41e-02', energy_flux='2.97e-05', photon_flux2='1.15e-07', job_status='DONE', time_completed='2021-09-06 14:37:41.313923', photon_index_error2='0.47', photon_index2='2.57', ts='8.21', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='1.57e-05', EG='1.32', time_epoch_completed='1630964261.31', return_code='0', job_id='92962', GAL2='0.91', EG2='1.34', return_code2='0', energy_flux_error='1.42e-05', photon_flux_error2='6.51e-08', ts2='8.22', photon_index='2.74' WHERE bin_id='281' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:37:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0134>
Subject: Job 92962: <4FGL_J1300.4+1416_daily_bin281> in cluster <slac> Done

Job <4FGL_J1300.4+1416_daily_bin281> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 14:26:01 2021
Job was executed on host(s) <bullet0134>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:26:03 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:26:03 2021
Terminated at Mon Sep  6 14:37:42 2021
Results reported at Mon Sep  6 14:37:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin281 195.12 14.2701 312163201 312422401 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 :                                   583.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   698 sec.
    Turnaround time :                            701 sec.

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

