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


Performing analysis on: 4FGL_J1300.4+1416_daily_bin1069
RA = 195.12, Dec = 14.2701
tmin = 516412801, tmax = 516672001
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='97628', job_status='RUN', time_executed='2021-09-06 14:41:06.992101', time_epoch_executed='1630964466.99' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='1069'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/97628

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/97628/ft1_4FGL_J1300.4+1416_daily_bin1069.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/97628/ft2_4FGL_J1300.4+1416_daily_bin1069.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/97628/ft1_4FGL_J1300.4+1416_daily_bin1069.fits outfile=/scratch/kocevski/97628/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin1069.fits ra=195.12 dec=14.2701 rad=12.0 tmin=516412801.0 tmax=516672001.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.55
user 3.25
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/97628/ft2_4FGL_J1300.4+1416_daily_bin1069.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/97628/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin1069.fits evtable="EVENTS" outfile="/scratch/kocevski/97628/ft1_filtered_4FGL_J1300.4+1416_daily_bin1069.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/97628/ft1_filtered_4FGL_J1300.4+1416_daily_bin1069.fits" evtable="EVENTS" scfile=/scratch/kocevski/97628/ft2_4FGL_J1300.4+1416_daily_bin1069.fits sctable="SC_DATA" outfile=/scratch/kocevski/97628/ltcube_516412801_516672001_4FGL_J1300.4+1416_daily_bin1069.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/97628/ft2_4FGL_J1300.4+1416_daily_bin1069.fits
.....................!
real 12.22
user 11.75
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/97628/ft1_filtered_4FGL_J1300.4+1416_daily_bin1069.fits evtable="EVENTS" scfile=/scratch/kocevski/97628/ft2_4FGL_J1300.4+1416_daily_bin1069.fits sctable="SC_DATA" expcube=/scratch/kocevski/97628/ltcube_516412801_516672001_4FGL_J1300.4+1416_daily_bin1069.fits outfile=/scratch/kocevski/97628/expmap_516412801_516672001_4FGL_J1300.4+1416_daily_bin1069.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/97628/ltcube_516412801_516672001_4FGL_J1300.4+1416_daily_bin1069.fits
.....................!
real 191.50
user 185.02
sys 5.88

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/97628/ft1_filtered_4FGL_J1300.4+1416_daily_bin1069.fits scfile=/scratch/kocevski/97628/ft2_4FGL_J1300.4+1416_daily_bin1069.fits outfile=/scratch/kocevski/97628/cmap_516412801_516672001_4FGL_J1300.4+1416_daily_bin1069.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.69
user 0.37
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2799       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .48193       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.453       1.0000         .10000E-03   10000.    
     6 'Prefactor '    46.698       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .18138E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.3794       1.0000         .10000E-03   10000.    
    10 'Prefactor '    25.577       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.6222       1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.8991       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.6580       1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.582       1.0000         .10000E-03   10000.    
    17 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .64312       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.4371       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=   5943.966     FROM MIGRAD    STATUS=CONVERGED    431 CALLS     2073 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2798        2.2005        .24451E-07   -.15059E-03
   2  Prefactor     .10000E-03    26.144        .43261E-07** at limit **
   3  norm          .48194        .24141       -.75205E-08   -.10287E-03
   4  Prefactor     .10000E-03    133.81        .59931E-06** at limit **
   5  Prefactor     15.453        10.379       -.66779E-09   -.35755E-05
   6  Prefactor     46.697        31.571       -.75533E-07   -.98907E-05
   7  norm          .10000E-03    .58202        .63015E-08** at limit **
   8  Prefactor     .10000E-03    213.52       -.75042E-06** at limit **
   9  Prefactor     6.3791        5.4193        .70062E-06   -.11026E-02
  10  Prefactor     25.575        13.636       -.14741E-05   -.25258E-03
  11  Prefactor     .10000E-03    14.818        .81933E-07** at limit **
  12  norm          3.6228        4.4049       -.94821E-07   -.12662E-03
  13  norm          .10000E-03    8.1484       -.11068E-09** at limit **
  14  norm          6.8993        5.1961       -.14901E-07   -.67100E-04
  15  Prefactor     4.6577        6.9375        .10764E-05    .11295E-03
  16  Prefactor     16.575        44.144       -.26511E-05   -.29078E-04
  17  norm          .10000E-03    3.3419        .19099E-08** at limit **
  18  Prefactor     .10000E-03    12.622        .30681E-09** at limit **
  19  Normalizat    .64307        .19730        .54321E-06   -.11251E-04
  20  Prefactor     1.4371        .17785       -.14460E-07    .11505E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.27983
  Prefactor  = 0.0001
  norm       = 0.481943
  Prefactor  = 0.0001
  Prefactor  = 15.453
  Prefactor  = 46.6973
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 6.37911
  Prefactor  = 25.5748
  Prefactor  = 0.0001
  norm       = 3.62285
  norm       = 0.0001
  norm       = 6.89933
  Prefactor  = 4.65774
  Prefactor  = 16.5752
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.643067
  Prefactor  = 1.43711
 **********
 **   18 **HESSE 
 **********

 FCN=   5943.966     FROM HESSE     STATUS=OK           295 CALLS     2368 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2798        2.1648        .14573E-03   -1.5482    
   2  Prefactor     .10000E-03    26.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .48194        .23903        .25811E-04   -1.5569    
   4  Prefactor     .10000E-03    133.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.453        10.377        .10189E-03   -1.4922    
   6  Prefactor     46.697        31.587        .58675E-04   -1.4340    
   7  norm          .10000E-03    .59299        .57416E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    217.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.3791        8.4432        .79456E-03   -1.5203    
  10  Prefactor     25.575        14.024        .79210E-04   -1.4696    
  11  Prefactor     .10000E-03    15.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.6228        4.3959        .16889E-03   -1.5327    
  13  norm          .10000E-03    8.1585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.8993        5.2056        .73589E-03   -1.5183    
  15  Prefactor     4.6577        6.9573        .18647E-03   -1.5276    
  16  Prefactor     16.575        44.578        .98355E-04   -1.4893    
  17  norm          .10000E-03    3.3521        .13760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .64307        .22687        .33037E-03   -1.0619    
  20  Prefactor     1.4371        .20475        .21620E-03   -.79317    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4632e-09
Minuit parameter uncertainties:
  1  2.16492
  2  2.69823e-06
  3  0.239029
  4  7.58616e-05
  5  10.3779
  6  31.5986
  7  2.60948e-07
  8  0.00136963
  9  8.44482
  10  14.0262
  11  6.76451e-05
  12  4.39628
  13  1.30998e-06
  14  5.20599
  15  6.95846
  16  44.6673
  17  1.60444e-06
  18  4.33096e-07
  19  0.227199
  20  0.204863
Done.

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

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  6.765e-05  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.437e+00  2.049e-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:  6.431e-01  2.272e-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: 8.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/97628/likelihoodResults_516412801_516672001_4FGL_J1300.4+1416_daily_bin1069.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) = 5943.96597904
delta logL = -0.000314469264595

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5943.79211638
delta logL = 0.173548194487

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .62242E-03   1.0000         .10000E-03   10000.    
     2 'Index     '   10.0000       1.0000          .0000       10.000    
     3 'Normalizat'    .61818       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4519       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+05   .2000E-04
 **********
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5943.792     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      342 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .62238E-03    .12793E-02    .37228E-05** at limit **
   2  Index        10.0000        7.4556        .50000    ** at limit **
   3  Normalizat    .61819        .22066        .33648E-03   -.11846E-03
   4  Prefactor     1.4519        .20589        .21525E-03   -.79753E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000622378
  Index      = 10
  Normalizat = 0.61819
  Prefactor  = 1.45193
 **********
 **   18 **HESSE 
 **********

 FCN=   5943.792     FROM HESSE     STATUS=OK            29 CALLS      371 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .62238E-03    .12740E-02    .14891E-06   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        7.4397        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .61819        .22084        .13459E-04   -1.0722    
   4  Prefactor     1.4519        .20606        .86100E-05   -.78895    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45496e-10
Minuit parameter uncertainties:
  1  0.00127397
  2  1.07261e-05
  3  0.22116
  4  0.206173
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/97628': 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) = 5943.79211633
delta logL = 0.173548238262

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  6.224e-04  1.274e-03  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  1.000e+01  1.073e-05  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.452e+00  2.062e-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:  6.182e-01  2.212e-01  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/97628/cmap_HighResolution_516412801_516672001_4FGL_J1300.4+1416_daily_bin1069.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.69e-03', job_status='DONE', photon_flux_upper_limit='8.47e-08', time_completed='2021-09-06 14:51:37.945179', job_id='97628', GAL2='1.45', fit_tolerance='1e-08', EG2='0.62', EG='0.64', time_epoch_completed='1630965097.95', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.44', dlogl='1.74e-01', ts2='0.36', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1069' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:51:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0179>
Subject: Job 97628: <4FGL_J1300.4+1416_daily_bin1069> in cluster <slac> Done

Job <4FGL_J1300.4+1416_daily_bin1069> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 14:40:48 2021
Job was executed on host(s) <bullet0179>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:40:49 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:49 2021
Terminated at Mon Sep  6 14:51:39 2021
Results reported at Mon Sep  6 14:51:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin1069 195.12 14.2701 516412801 516672001 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 :                                   588.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             358.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   649 sec.
    Turnaround time :                            651 sec.

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

