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


Performing analysis on: 4FGL_J1300.4+1416_daily_bin449
RA = 195.12, Dec = 14.2701
tmin = 355708801, tmax = 355968001
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='94214', job_status='RUN', time_executed='2021-09-06 14:32:53.588796', time_epoch_executed='1630963973.59' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='449'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/94214

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/94214/ft1_4FGL_J1300.4+1416_daily_bin449.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/94214/ft2_4FGL_J1300.4+1416_daily_bin449.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/94214/ft1_4FGL_J1300.4+1416_daily_bin449.fits outfile=/scratch/kocevski/94214/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin449.fits ra=195.12 dec=14.2701 rad=12.0 tmin=355708801.0 tmax=355968001.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 4.93
user 4.66
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/94214/ft1_filtered_4FGL_J1300.4+1416_daily_bin449.fits evtable="EVENTS" scfile=/scratch/kocevski/94214/ft2_4FGL_J1300.4+1416_daily_bin449.fits sctable="SC_DATA" expcube=/scratch/kocevski/94214/ltcube_355708801_355968001_4FGL_J1300.4+1416_daily_bin449.fits outfile=/scratch/kocevski/94214/expmap_355708801_355968001_4FGL_J1300.4+1416_daily_bin449.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/94214/ltcube_355708801_355968001_4FGL_J1300.4+1416_daily_bin449.fits
.....................!
real 191.08
user 185.30
sys 5.45

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/94214/ft1_filtered_4FGL_J1300.4+1416_daily_bin449.fits scfile=/scratch/kocevski/94214/ft2_4FGL_J1300.4+1416_daily_bin449.fits outfile=/scratch/kocevski/94214/cmap_355708801_355968001_4FGL_J1300.4+1416_daily_bin449.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.55
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/94214/ft1_filtered_4FGL_J1300.4+1416_daily_bin449.fits scfile=/scratch/kocevski/94214/ft2_4FGL_J1300.4+1416_daily_bin449.fits outfile=/scratch/kocevski/94214/cmap_HighResolution_355708801_355968001_4FGL_J1300.4+1416_daily_bin449.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.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10316E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.292       1.0000         .10000E-03   10000.    
     3 'norm      '    .71128E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.6381       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.6520       1.0000         .10000E-03   10000.    
     8 'Prefactor '    95.139       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.6645       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.2876       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .18161E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    3.9614       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.3950       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.573       1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.591       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4872       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .94600       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=   6298.704     FROM MIGRAD    STATUS=CONVERGED    407 CALLS     2063 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.2865        .89153E-06** at limit **
   2  Prefactor     11.289        29.034        .85273E-07    .51749E-05
   3  norm          .71121E-01    .20534        .15623E-06    .23418E-02
   4  Prefactor     .10000E-03    49.052        .32093E-06** at limit **
   5  Prefactor     8.6383        8.6394       -.17248E-07   -.16137E-04
   6  Prefactor     .10000E-03    23.474        .18198E-06** at limit **
   7  norm          2.6518        1.8782       -.19519E-07    .34203E-04
   8  Prefactor     95.070        58.687       -.19686E-05    .22153E-04
   9  Prefactor     4.6641        7.1998        .90856E-07    .10254E-03
  10  Prefactor     1.3108        29.101        .59651E-05    .28861E-04
  11  Prefactor     .10000E-03    31.118        .12898E-04** at limit **
  12  norm          3.9611        3.4887        .13452E-07    .50768E-04
  13  norm          .10000E-03    5.7879        .14486E-07** at limit **
  14  norm          5.3949        6.4037       -.11173E-07    .42562E-04
  15  Prefactor     10.571        13.721       -.56202E-07    .80863E-05
  16  Prefactor     16.591        16.424        .27439E-07   -.12140E-05
  17  norm          .10000E-03    4.7743        .10644E-06** at limit **
  18  Prefactor     .10000E-03    46.510       -.16130E-06** at limit **
  19  Normalizat    1.4873        .20965        .15520E-07   -.13082E-04
  20  Prefactor     .94594        .17954       -.10223E-06    .31761E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 11.2888
  norm       = 0.0711212
  Prefactor  = 0.0001
  Prefactor  = 8.63829
  Prefactor  = 0.0001
  norm       = 2.65181
  Prefactor  = 95.0696
  Prefactor  = 4.66415
  Prefactor  = 1.31077
  Prefactor  = 0.000100001
  norm       = 3.96107
  norm       = 0.0001
  norm       = 5.39494
  Prefactor  = 10.5712
  Prefactor  = 16.5911
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.48735
  Prefactor  = 0.945937
 **********
 **   18 **HESSE 
 **********

 FCN=   6298.704     FROM HESSE     STATUS=OK           303 CALLS     2366 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.7370        .22863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.289        29.032        .11922E-03   -1.5036    
   3  norm          .71121E-01    .22814        .57303E-03   -1.5655    
   4  Prefactor     .10000E-03    49.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.6383        8.6353        .13639E-03   -1.5120    
   6  Prefactor     .10000E-03    23.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.6518        1.8704        .88269E-04   -1.5382    
   8  Prefactor     95.070        58.979        .20603E-03   -1.3755    
   9  Prefactor     4.6641        7.1900        .18634E-03   -1.5276    
  10  Prefactor     1.3108        29.517        .39053E-03   -1.5479    
  11  Prefactor     .10000E-03    31.810        .39948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.9611        3.4862        .13414E-03   -1.5310    
  13  norm          .10000E-03    5.7891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.3949        6.3889        .17301E-03   -1.5243    
  15  Prefactor     10.571        13.715        .12322E-03   -1.5058    
  16  Prefactor     16.591        16.426        .98330E-04   -1.4893    
  17  norm          .10000E-03    4.7964        .16920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    46.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.4873        .24092        .25061E-03   -.78135    
  20  Prefactor     .94594        .20921        .27309E-03   -.94554    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.67726e-10
Minuit parameter uncertainties:
  1  9.82641e-05
  2  29.0683
  3  0.228143
  4  8.70469e-05
  5  8.63658
  6  1.22069e-05
  7  1.87045
  8  59.0158
  9  7.19135
  10  12.4466
  11  0.000398727
  12  3.48637
  13  4.36744e-06
  14  6.3897
  15  13.7189
  16  16.4301
  17  3.23752e-05
  18  5.57929e-06
  19  0.241105
  20  0.209388
Done.

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

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  3.987e-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.459e-01  2.094e-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.487e+00  2.411e-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.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/94214/likelihoodResults_355708801_355968001_4FGL_J1300.4+1416_daily_bin449.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) = 6298.7039173
delta logL = -0.000148832273226

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6298.48314703
delta logL = 0.220621436328

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .86845E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    9.9990       1.0000          .0000       10.000    
     3 'Normalizat'    1.4515       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96673       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=   6298.483     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      564 TOTAL
                     EDM=   .26E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .86620E-03    .16539E-02    .41225E-05** at limit **
   2  Index        10.0000        7.3643        .50000    ** at limit **
   3  Normalizat    1.4513        .23951        .25314E-03    .40778E-04
   4  Prefactor     .96690        .21124        .27051E-03    .46188E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0008662
  Index      = 10
  Normalizat = 1.45133
  Prefactor  = 0.966902
 **********
 **   18 **HESSE 
 **********

 FCN=   6298.483     FROM HESSE     STATUS=OK            31 CALLS      595 TOTAL
                     EDM=   .27E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .86620E-03    .16450E-02    .16490E-06   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        7.3445        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.4513        .23978        .10126E-04   -.79155    
   4  Prefactor     .96690        .21146        .10820E-04   -.93841    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67785e-12
Minuit parameter uncertainties:
  1  0.00164501
  2  6.05092e-05
  3  0.239963
  4  0.211644
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/94214': 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) = 6298.48314169
delta logL = 0.220626778548

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  8.662e-04  1.645e-03  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  1.000e+01  6.051e-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:  9.669e-01  2.116e-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.451e+00  2.400e-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/94214/cmap_HighResolution_355708801_355968001_4FGL_J1300.4+1416_daily_bin449.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.62e-03', job_status='DONE', photon_flux_upper_limit='9.66e-08', time_completed='2021-09-06 14:43:30.159690', job_id='94214', GAL2='0.97', fit_tolerance='1e-08', EG2='1.45', EG='1.49', time_epoch_completed='1630964610.16', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='2.21e-01', ts2='0.46', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='449' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:43:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 94214: <4FGL_J1300.4+1416_daily_bin449> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin449 195.12 14.2701 355708801 355968001 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 :                                   628.02 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             287.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   768 sec.
    Turnaround time :                            769 sec.

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

