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


Performing analysis on: 4FGL_J1300.4+1416_daily_bin235
RA = 195.12, Dec = 14.2701
tmin = 300240001, tmax = 300499201
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='92912', job_status='RUN', time_executed='2021-09-06 14:28:02.322407', time_epoch_executed='1630963682.32' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='235'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/92912

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/92912/ft1_4FGL_J1300.4+1416_daily_bin235.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/92912/ft2_4FGL_J1300.4+1416_daily_bin235.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/92912/ft1_4FGL_J1300.4+1416_daily_bin235.fits outfile=/scratch/kocevski/92912/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin235.fits ra=195.12 dec=14.2701 rad=12.0 tmin=300240001.0 tmax=300499201.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.44
user 3.22
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/92912/ft1_filtered_4FGL_J1300.4+1416_daily_bin235.fits" evtable="EVENTS" scfile=/scratch/kocevski/92912/ft2_4FGL_J1300.4+1416_daily_bin235.fits sctable="SC_DATA" outfile=/scratch/kocevski/92912/ltcube_300240001_300499201_4FGL_J1300.4+1416_daily_bin235.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/92912/ft2_4FGL_J1300.4+1416_daily_bin235.fits
.....................!
real 11.68
user 11.27
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/92912/ft1_filtered_4FGL_J1300.4+1416_daily_bin235.fits evtable="EVENTS" scfile=/scratch/kocevski/92912/ft2_4FGL_J1300.4+1416_daily_bin235.fits sctable="SC_DATA" expcube=/scratch/kocevski/92912/ltcube_300240001_300499201_4FGL_J1300.4+1416_daily_bin235.fits outfile=/scratch/kocevski/92912/expmap_300240001_300499201_4FGL_J1300.4+1416_daily_bin235.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/92912/ltcube_300240001_300499201_4FGL_J1300.4+1416_daily_bin235.fits
.....................!
real 191.16
user 185.55
sys 4.82

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/92912/ft1_filtered_4FGL_J1300.4+1416_daily_bin235.fits scfile=/scratch/kocevski/92912/ft2_4FGL_J1300.4+1416_daily_bin235.fits outfile=/scratch/kocevski/92912/cmap_300240001_300499201_4FGL_J1300.4+1416_daily_bin235.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/92912/ft1_filtered_4FGL_J1300.4+1416_daily_bin235.fits scfile=/scratch/kocevski/92912/ft2_4FGL_J1300.4+1416_daily_bin235.fits outfile=/scratch/kocevski/92912/cmap_HighResolution_300240001_300499201_4FGL_J1300.4+1416_daily_bin235.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .32638E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.147       1.0000         .10000E-03   10000.    
     3 'norm      '    18.317       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13926E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.487       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10681E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.6989       1.0000         .10000E-03   10000.    
     8 'Prefactor '    89.076       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.5078       1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.179       1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.161       1.0000         .10000E-03   10000.    
    12 'norm      '    .10080E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    8.3584       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.679       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10660E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.8218       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15557E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2929       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .93845       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=   9152.129     FROM MIGRAD    STATUS=CONVERGED    428 CALLS     2136 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7650       -.21764E-07** at limit **
   2  Prefactor     18.148        26.374       -.25259E-06   -.10069E-04
   3  norm          18.316        1.0079        .37566E-08    .15359E-03
   4  Prefactor     .10000E-03    59.595        .86646E-05** at limit **
   5  Prefactor     25.478        12.968        .60061E-05    .88530E-04
   6  Prefactor     .10000E-03    45.351       -.81343E-05** at limit **
   7  norm          2.6991        1.6553       -.26299E-07   -.30582E-03
   8  Prefactor     89.104        74.079        .21269E-04    .49534E-05
   9  Prefactor     3.5087        5.6676       -.55987E-06   -.39887E-03
  10  Prefactor     22.183        20.093       -.73094E-05   -.34549E-04
  11  Prefactor     18.161        16.902        .14082E-05   -.13690E-04
  12  norm          .10000E-03    1.2453        .72342E-07** at limit **
  13  norm          .10000E-03    6.0168       -.18461E-07** at limit **
  14  norm          8.3595        5.4124       -.11558E-05   -.15854E-04
  15  Prefactor     10.680        9.0041       -.20886E-05   -.64724E-05
  16  Prefactor     .10000E-03    14.938        .24015E-07** at limit **
  17  norm          4.8230        8.3198        .40906E-05   -.17837E-03
  18  Prefactor     .10000E-03    190.00       -.71196E-05** at limit **
  19  Normalizat    1.2929        .20880       -.76019E-06    .10235E-04
  20  Prefactor     .93833        .17363       -.10643E-05   -.18424E-07
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 18.1483
  norm       = 18.3163
  Prefactor  = 0.0001
  Prefactor  = 25.4776
  Prefactor  = 0.000100003
  norm       = 2.69911
  Prefactor  = 89.1044
  Prefactor  = 3.50873
  Prefactor  = 22.183
  Prefactor  = 18.1607
  norm       = 0.0001
  norm       = 0.0001
  norm       = 8.35947
  Prefactor  = 10.6799
  Prefactor  = 0.0001
  norm       = 4.82304
  Prefactor  = 0.000100001
  Normalizat = 1.29285
  Prefactor  = 0.938329
 **********
 **   18 **HESSE 
 **********

 FCN=   9152.129     FROM HESSE     STATUS=OK           297 CALLS     2433 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.1165        .24696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     18.148        26.373        .94019E-04   -1.4856    
   3  norm          18.316        1.0090        .93583E-05   -1.4852    
   4  Prefactor     .10000E-03    59.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     25.478        12.992        .79348E-04   -1.4698    
   6  Prefactor     .10000E-03    46.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.6991        1.6542        .93167E-04   -1.5379    
   8  Prefactor     89.104        73.992        .42573E-04   -1.3817    
   9  Prefactor     3.5087        5.6687        .21586E-03   -1.5333    
  10  Prefactor     22.183        20.175        .85052E-04   -1.4766    
  11  Prefactor     18.161        16.906        .93983E-04   -1.4855    
  12  norm          .10000E-03    2.2723        .20800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.0203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          8.3595        5.4053        .13866E-03   -1.5130    
  15  Prefactor     10.680        9.0098        .12261E-03   -1.5054    
  16  Prefactor     .10000E-03    14.947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.8230        8.2710        .18321E-03   -1.5269    
  18  Prefactor     .10000E-03    191.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2929        .25566        .32693E-03   -.83780    
  20  Prefactor     .93833        .21146        .32664E-03   -.94814    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.91862e-10
Minuit parameter uncertainties:
  1  5.30287e-06
  2  26.3899
  3  1.00899
  4  1.5393e-06
  5  12.9935
  6  0.000746443
  7  1.65419
  8  74.0686
  9  5.66952
  10  20.1815
  11  16.9101
  12  1.02861e-05
  13  2.02532e-06
  14  5.40564
  15  9.01095
  16  1.34006e-05
  17  8.27296
  18  0.000687796
  19  0.255908
  20  0.211647
Done.

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

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.816e+01  1.691e+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.383e-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.293e+00  2.559e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.71
Ra Dec: 195.120 14.270
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 6.16e-08 +/- 5.73e-08
Energy Flux (Fixed Index): 1.44e-05 +/- 1.34e-05

TS (Fixed Index): 1.71
Ra Dec: 195.120 14.270
Photon Flux Upper Limit: 1.75e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.38e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/92912/likelihoodResults_300240001_300499201_4FGL_J1300.4+1416_daily_bin235.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): 0
logL (Free Index) = 9152.12868828
delta logL = 0.000263524241745

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9152.12863306
delta logL = 0.0003187368402

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.300       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7163       1.0000          .0000       10.000    
     3 'Normalizat'    1.2940       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93769       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=   9152.129     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      226 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.327        541.60        .23407E-02    .21342E-04
   2  Index         2.7175        5.9248        .22842        .44939E-04
   3  Normalizat    1.2938        .96099E-01    .73856E-01   -.24767E-05
   4  Prefactor     .93766        .97295E-01    .73845E-01   -.60207E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.3267
  Index      = 2.71745
  Normalizat = 1.29381
  Prefactor  = 0.93766
 **********
 **   18 **HESSE 
 **********

 FCN=   9152.129     FROM HESSE     STATUS=OK            33 CALLS      259 TOTAL
                     EDM=   .45E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.327        18.078        .93626E-04   -1.4852    
   2  Index         2.7175        .81644        .12464E-01   -.47407    
   3  Normalizat    1.2938        .24661        .32683E-03   -.83751    
   4  Prefactor     .93766        .21145        .32675E-03   -.94837    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.48549e-12
Minuit parameter uncertainties:
  1  18.0832
  2  0.82109
  3  0.24683
  4  0.211638
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/92912': 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) = 9152.12862902
delta logL = 0.000322782427247

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.833e+01  1.808e+01  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  2.717e+00  8.211e-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.377e-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.294e+00  2.468e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.66
Ra Dec: 195.120 14.270
Photon Index (Free Index): 2.72 +/- 0.82
Photon Flux (Free Index): 6.10e-08 +/- 5.84e-08
Energy Flux (Free Index): 1.45e-05 +/- 1.37e-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/92912/cmap_HighResolution_300240001_300499201_4FGL_J1300.4+1416_daily_bin235.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.38e-02', comment='SUCCESS', photon_flux='6.16e-08', energy_flux2='1.45e-05', photon_flux_error='5.73e-08', dlogl='3.23e-04', energy_flux='1.44e-05', photon_flux2='6.10e-08', job_status='DONE', time_completed='2021-09-06 14:41:35.400676', photon_index_error2='0.82', photon_index2='2.72', ts='1.71', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.75e-07', energy_flux_error2='1.37e-05', EG='1.29', time_epoch_completed='1630964495.4', return_code='0', job_id='92912', GAL2='0.94', EG2='1.29', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='5.84e-08', ts2='1.66', photon_index='2.74' WHERE bin_id='235' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:41:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 92912: <4FGL_J1300.4+1416_daily_bin235> in cluster <slac> Done

Job <4FGL_J1300.4+1416_daily_bin235> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 14:25:56 2021
Job was executed on host(s) <bullet0160>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:25:58 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:25:58 2021
Terminated at Mon Sep  6 14:41:36 2021
Results reported at Mon Sep  6 14:41:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin235 195.12 14.2701 300240001 300499201 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 :                                   808.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             319.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            940 sec.

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

