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


Performing analysis on: 4FGL_J1300.4+1416_daily_bin765
RA = 195.12, Dec = 14.2701
tmin = 437616001, tmax = 437875201
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='95820', job_status='RUN', time_executed='2021-09-06 14:39:28.835176', time_epoch_executed='1630964368.84' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='765'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/95820

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/95820/ft1_4FGL_J1300.4+1416_daily_bin765.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/95820/ft2_4FGL_J1300.4+1416_daily_bin765.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/95820/ft1_4FGL_J1300.4+1416_daily_bin765.fits outfile=/scratch/kocevski/95820/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin765.fits ra=195.12 dec=14.2701 rad=12.0 tmin=437616001.0 tmax=437875201.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 5.64
user 5.41
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/95820/ft2_4FGL_J1300.4+1416_daily_bin765.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/95820/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin765.fits evtable="EVENTS" outfile="/scratch/kocevski/95820/ft1_filtered_4FGL_J1300.4+1416_daily_bin765.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.49
user 0.33
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/95820/ft1_filtered_4FGL_J1300.4+1416_daily_bin765.fits evtable="EVENTS" scfile=/scratch/kocevski/95820/ft2_4FGL_J1300.4+1416_daily_bin765.fits sctable="SC_DATA" expcube=/scratch/kocevski/95820/ltcube_437616001_437875201_4FGL_J1300.4+1416_daily_bin765.fits outfile=/scratch/kocevski/95820/expmap_437616001_437875201_4FGL_J1300.4+1416_daily_bin765.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/95820/ltcube_437616001_437875201_4FGL_J1300.4+1416_daily_bin765.fits
.....................!
real 190.11
user 184.95
sys 4.77

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/95820/ft1_filtered_4FGL_J1300.4+1416_daily_bin765.fits scfile=/scratch/kocevski/95820/ft2_4FGL_J1300.4+1416_daily_bin765.fits outfile=/scratch/kocevski/95820/cmap_437616001_437875201_4FGL_J1300.4+1416_daily_bin765.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/95820/ft1_filtered_4FGL_J1300.4+1416_daily_bin765.fits scfile=/scratch/kocevski/95820/ft2_4FGL_J1300.4+1416_daily_bin765.fits outfile=/scratch/kocevski/95820/cmap_HighResolution_437616001_437875201_4FGL_J1300.4+1416_daily_bin765.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/95820/ft1_filtered_4FGL_J1300.4+1416_daily_bin765.fits evtable="EVENTS" scfile=/scratch/kocevski/95820/ft2_4FGL_J1300.4+1416_daily_bin765.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/95820/Model_4FGL_J1300.4+1416_daily_bin765.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/95820/ft1_filtered_4FGL_J1300.4+1416_daily_bin765.fits.....................!
real 60.39
user 58.96
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6568       1.0000         .10000E-03   10000.    
     2 'Prefactor '    35.795       1.0000         .10000E-03   10000.    
     3 'norm      '    15.905       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .51824E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10984E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    45.356       1.0000         .10000E-03   10000.    
     7 'norm      '    8.8653       1.0000         .10000E-03   10000.    
     8 'Prefactor '    88.346       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.734       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .51030E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .99798       1.0000         .10000E-03   10000.    
    13 'norm      '    74.207       1.0000         .10000E-03   10000.    
    14 'norm      '    2.7486       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.994       1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.186       1.0000         .10000E-03   10000.    
    17 'norm      '    .30632E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1966       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .94391       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=   6618.114     FROM MIGRAD    STATUS=CONVERGED    437 CALLS     2152 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6567        2.8023       -.59200E-06   -.38833E-03
   2  Prefactor     35.789        38.805        .59373E-06    .50608E-04
   3  norm          15.905        1.1198       -.19595E-07    .27500E-03
   4  Prefactor     .10001E-03    563.14        .32502E-05** at limit **
   5  Prefactor     .10000E-03    13.897        .14935E-05** at limit **
   6  Prefactor     45.393        40.387       -.51114E-06    .29896E-04
   7  norm          8.8659        2.9165       -.21508E-07    .14357E-03
   8  Prefactor     88.358        82.854       -.77662E-06    .27064E-04
   9  Prefactor     .10000E-03    4.0014        .46185E-07** at limit **
  10  Prefactor     17.694        18.976        .82847E-06    .27009E-03
  11  Prefactor     .10000E-03    64.617       -.98256E-05** at limit **
  12  norm          .99392        2.3450        .72292E-06    .15021E-03
  13  norm          74.147        39.441       -.46905E-06   -.65271E-04
  14  norm          2.7483        6.0723       -.17609E-05   -.32640E-03
  15  Prefactor     12.999        12.526       -.35264E-06   -.64721E-04
  16  Prefactor     23.194        29.462       -.13916E-06    .22040E-04
  17  norm          .10000E-03    4.7706        .17063E-06** at limit **
  18  Prefactor     .10000E-03    17.573        .76083E-07** at limit **
  19  Normalizat    1.1967        .28126        .51376E-05    .77364E-04
  20  Prefactor     .94372        .22683       -.35944E-05    .38233E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.65666
  Prefactor  = 35.7894
  norm       = 15.9047
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 45.3932
  norm       = 8.86586
  Prefactor  = 88.3575
  Prefactor  = 0.0001
  Prefactor  = 17.6938
  Prefactor  = 0.000100002
  norm       = 0.993917
  norm       = 74.1475
  norm       = 2.74832
  Prefactor  = 12.9989
  Prefactor  = 23.194
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.19665
  Prefactor  = 0.943718
 **********
 **   18 **HESSE 
 **********

 FCN=   6618.114     FROM HESSE     STATUS=OK           301 CALLS     2453 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6567        2.8075        .17419E-03   -1.5451    
   2  Prefactor     35.789        38.827        .66984E-04   -1.4511    
   3  norm          15.905        1.1201        .22072E-04   -1.4910    
   4  Prefactor     .10001E-03    565.76        .19153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     45.393        40.388        .59533E-04   -1.4359    
   7  norm          8.8659        2.9165        .76800E-04   -1.5112    
   8  Prefactor     88.358        82.930        .21373E-03   -1.3825    
   9  Prefactor     .10000E-03    4.0153        .15891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.694        19.090        .95108E-04   -1.4866    
  11  Prefactor     .10000E-03    63.252        .40330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .99392        2.3504        .22206E-02   -1.5509    
  13  norm          74.147        39.401        .46608E-04   -1.3984    
  14  norm          2.7483        6.0815        .24555E-03   -1.5376    
  15  Prefactor     12.999        12.540        .11112E-03   -1.4987    
  16  Prefactor     23.194        29.482        .83186E-04   -1.4744    
  17  norm          .10000E-03    11.617        .34156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    17.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1967        .29449        .32828E-03   -.86706    
  20  Prefactor     .94372        .24221        .30990E-03   -.94630    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21109e-09
Minuit parameter uncertainties:
  1  2.80769
  2  38.8545
  3  1.12008
  4  0.00584993
  5  0.000127039
  6  40.4127
  7  2.91651
  8  83.0393
  9  3.70561e-06
  10  19.0971
  11  0.000679568
  12  2.35065
  13  39.4146
  14  6.0829
  15  12.5422
  16  29.5007
  17  3.43004e-05
  18  3.84821e-06
  19  0.294903
  20  0.242488
Done.

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

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  6.796e-04  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.437e-01  2.425e-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.197e+00  2.949e-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: 9.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/95820/likelihoodResults_437616001_437875201_4FGL_J1300.4+1416_daily_bin765.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) = 6618.11368186
delta logL = -7.37482369004e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6618.11368185
delta logL = -7.37327463867e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96330E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7378       1.0000          .0000       10.000    
     3 'Normalizat'    1.1966       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94372       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6618.114     FROM MIGRAD    STATUS=FAILED       107 CALLS      273 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10489E-03    765.22        .44498E-02** at limit **
   2  Index         2.4962        6.2267        .50000        .14498E-05
   3  Normalizat    1.1967        .17527E-01    .32828E-03   -.10909E-04
   4  Prefactor     .94371        .14965E-01    .30989E-03   -.12620E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6618.114     FROM SIMPLEX   STATUS=UNCHANGED    133 CALLS      406 TOTAL
                     EDM=   .70E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10489E-03    765.22        .13311E-02** at limit **
   2  Index         2.4962        6.2267        .10522E-03    .14498E-05
   3  Normalizat    1.1967        .17527E-01    .76931E-06   -.10909E-04
   4  Prefactor     .94371        .14965E-01    .67817E-06   -.12620E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6618.114     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      442 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10081E-03    8963.9        .17799E-03** at limit **
   2  Index         2.5228        5.0528        .50000        .21062E-05
   3  Normalizat    1.1967        .81779E-01    .13131E-04   -.83115E-05
   4  Prefactor     .94371        .69829E-01    .12396E-04   -.10089E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100806
  Index      = 2.5228
  Normalizat = 1.19666
  Prefactor  = 0.943712
 **********
 **   18 **HESSE 
 **********

 FCN=   6618.114     FROM HESSE     STATUS=OK            29 CALLS      471 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10081E-03    1828.4        .35599E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5228        5.0561        .50000       -.51834    
   3  Normalizat    1.1967        .28027        .26262E-05   -.86706    
   4  Prefactor     .94371        .23939        .24792E-05   -.94630    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05223e-08
Minuit parameter uncertainties:
  1  0.0793423
  2  936.861
  3  0.280625
  4  0.239662
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/95820': 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) = 6618.11360788
delta logL = 2.35030711337e-07

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.008e-04  7.934e-02  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  2.523e+00  9.369e+02  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.437e-01  2.397e-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.197e+00  2.806e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/95820/cmap_HighResolution_437616001_437875201_4FGL_J1300.4+1416_daily_bin765.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.84e-03', job_status='DONE', photon_flux_upper_limit='9.94e-08', time_completed='2021-09-06 14:50:57.989275', job_id='95820', GAL2='0.94', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1630965057.99', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='2.35e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='765' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:50:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 95820: <4FGL_J1300.4+1416_daily_bin765> in cluster <slac> Done

Job <4FGL_J1300.4+1416_daily_bin765> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 14:35:42 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:35:44 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:35:44 2021
Terminated at Mon Sep  6 14:50:58 2021
Results reported at Mon Sep  6 14:50:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin765 195.12 14.2701 437616001 437875201 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 :                                   686.27 sec.
    Max Memory :                                 1076 MB
    Average Memory :                             257.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            916 sec.

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

