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


Performing analysis on: 4FGL_J1326.0+3507_daily_bin1364
RA = 201.501, Dec = 35.1218
tmin = 592876801, tmax = 593136001
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='555869', job_status='RUN', time_executed='2021-09-07 16:09:14.835729', time_epoch_executed='1631056154.84' WHERE source_name='4FGL J1326.0+3507' and cadence='daily' and bin_id='1364'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/555869

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/555869/ft1_4FGL_J1326.0+3507_daily_bin1364.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/555869/ft2_4FGL_J1326.0+3507_daily_bin1364.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/555869/ft1_4FGL_J1326.0+3507_daily_bin1364.fits outfile=/scratch/kocevski/555869/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin1364.fits ra=201.501 dec=35.1218 rad=12.0 tmin=592876801.0 tmax=593136001.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.85
user 3.62
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/555869/ft2_4FGL_J1326.0+3507_daily_bin1364.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/555869/ft2_4FGL_J1326.0+3507_daily_bin1364.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/555869/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin1364.fits evtable="EVENTS" outfile="/scratch/kocevski/555869/ft1_filtered_4FGL_J1326.0+3507_daily_bin1364.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.52
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/555869/ft1_filtered_4FGL_J1326.0+3507_daily_bin1364.fits" evtable="EVENTS" scfile=/scratch/kocevski/555869/ft2_4FGL_J1326.0+3507_daily_bin1364.fits sctable="SC_DATA" outfile=/scratch/kocevski/555869/ltcube_592876801_593136001_4FGL_J1326.0+3507_daily_bin1364.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/555869/ft2_4FGL_J1326.0+3507_daily_bin1364.fits
.....................!
real 15.56
user 15.16
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/555869/ft1_filtered_4FGL_J1326.0+3507_daily_bin1364.fits evtable="EVENTS" scfile=/scratch/kocevski/555869/ft2_4FGL_J1326.0+3507_daily_bin1364.fits sctable="SC_DATA" expcube=/scratch/kocevski/555869/ltcube_592876801_593136001_4FGL_J1326.0+3507_daily_bin1364.fits outfile=/scratch/kocevski/555869/expmap_592876801_593136001_4FGL_J1326.0+3507_daily_bin1364.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/555869/ltcube_592876801_593136001_4FGL_J1326.0+3507_daily_bin1364.fits
.....................!
real 192.51
user 187.12
sys 4.92

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 189 point sources and 0 extended sources

Setting source of interest to:
4FGL J1326.0+3507 @ 201.501 35.1218

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/555869/ft1_filtered_4FGL_J1326.0+3507_daily_bin1364.fits scfile=/scratch/kocevski/555869/ft2_4FGL_J1326.0+3507_daily_bin1364.fits outfile=/scratch/kocevski/555869/cmap_592876801_593136001_4FGL_J1326.0+3507_daily_bin1364.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=201.501 yref=35.1218 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.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/555869/ft1_filtered_4FGL_J1326.0+3507_daily_bin1364.fits scfile=/scratch/kocevski/555869/ft2_4FGL_J1326.0+3507_daily_bin1364.fits outfile=/scratch/kocevski/555869/cmap_HighResolution_592876801_593136001_4FGL_J1326.0+3507_daily_bin1364.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=201.501 yref=35.1218 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.56
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/555869/ft1_filtered_4FGL_J1326.0+3507_daily_bin1364.fits evtable="EVENTS" scfile=/scratch/kocevski/555869/ft2_4FGL_J1326.0+3507_daily_bin1364.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/555869/Model_4FGL_J1326.0+3507_daily_bin1364.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/555869/ft1_filtered_4FGL_J1326.0+3507_daily_bin1364.fits.....................!
real 44.79
user 43.48
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/555869/ft1_filtered_4FGL_J1326.0+3507_daily_bin1364.fits', '/scratch/kocevski/555869/ft2_4FGL_J1326.0+3507_daily_bin1364.fits', expMap='/scratch/kocevski/555869/expmap_592876801_593136001_4FGL_J1326.0+3507_daily_bin1364.fits', expCube='/scratch/kocevski/555869/ltcube_592876801_593136001_4FGL_J1326.0+3507_daily_bin1364.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/555869/Model_4FGL_J1326.0+3507_daily_bin1364.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1326.0+3507'

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  5.851e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  2.152e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
321        Scale:  1.846e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/555869/ft1_filtered_4FGL_J1326.0+3507_daily_bin1364.fits
Spacecraft file(s): /scratch/kocevski/555869/ft2_4FGL_J1326.0+3507_daily_bin1364.fits
Exposure map: /scratch/kocevski/555869/expmap_592876801_593136001_4FGL_J1326.0+3507_daily_bin1364.fits
Exposure cube: /scratch/kocevski/555869/ltcube_592876801_593136001_4FGL_J1326.0+3507_daily_bin1364.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/555869/Model_4FGL_J1326.0+3507_daily_bin1364.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) = 5352.8382091

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    46.234       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10119E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    8.1982       1.0000         .10000E-03   10000.    
     8 'Prefactor '    34.646       1.0000         .10000E-03   10000.    
     9 'norm      '    6.1292       1.0000         .10000E-03   10000.    
    10 'norm      '    .50079       1.0000         .10000E-03   10000.    
    11 'norm      '    10.930       1.0000         .10000E-03   10000.    
    12 'norm      '    26.795       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    32.620       1.0000         .10000E-03   10000.    
    16 'Prefactor '    126.79       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    41.907       1.0000         .10000E-03   10000.    
    20 'norm      '    6.2369       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.9454       1.0000         .10000E-03   10000.    
    22 'norm      '    11.387       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    4.1044       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    7.9501       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0382       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .69760       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5352.834     FROM MIGRAD    STATUS=CONVERGED    721 CALLS     3665 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.893        .80836E-06** at limit **
   2  Prefactor     46.211        71.066       -.30626E-04   -.58515E-05
   3  Prefactor     .10000E-03    3.5948       -.15741E-06** at limit **
   4  norm          .10000E-03    3.1991        .35241E-06** at limit **
   5  Prefactor     .10000E-03    32.183       -.16111E-04** at limit **
   6  Prefactor     .10000E-03    20.415        .85737E-05** at limit **
   7  norm          8.1968        5.1101       -.98158E-06   -.59766E-04
   8  Prefactor     34.639        18.038       -.38338E-06    .14193E-04
   9  norm          6.1287        4.8820        .15556E-05   -.46457E-04
  10  norm          .30077        10.312       -.33153E-05    .41837E-03
  11  norm          10.929        6.4868       -.81560E-06   -.21924E-03
  12  norm          26.796        12.835       -.35705E-06   -.84185E-04
  13  norm          .10000E-03    9.6810        .27560E-05** at limit **
  14  Prefactor     .10000E-03    1.2411        .90929E-07** at limit **
  15  Prefactor     32.615        18.461       -.96867E-07   -.94534E-05
  16  Prefactor     126.77        67.968       -.11158E-04    .11688E-05
  17  Prefactor     .10000E-03    8.3774       -.10594E-05** at limit **
  18  Prefactor     .10000E-03    12.530       -.11643E-05** at limit **
  19  Prefactor     41.888        50.916       -.22452E-04    .54245E-05
  20  norm          6.2363        1.9594       -.10244E-06    .13804E-03
  21  Prefactor     9.9426        5.0724       -.13183E-05   -.48073E-04
  22  norm          11.381        13.342        .84815E-07   -.49824E-04
  23  Prefactor     .10000E-03    32.155       -.13514E-04** at limit **
  24  norm          4.1031        3.7654       -.37936E-06   -.12344E-03
  25  Prefactor     .10000E-03    11.991       -.31261E-05** at limit **
  26  Prefactor     .10000E-03    43.819        .37253E-04** at limit **
  27  norm          7.9474        12.268       -.13144E-05   -.52547E-03
  28  Normalizat    1.0384        .17796        .43804E-05   -.11631E-03
  29  Prefactor     .69764        .20920        .15713E-05    .16491E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 46.2113
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.19682
  Prefactor  = 34.6388
  norm       = 6.12868
  norm       = 0.300769
  norm       = 10.9294
  norm       = 26.7957
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.6149
  Prefactor  = 126.77
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.8879
  norm       = 6.2363
  Prefactor  = 9.94263
  norm       = 11.3809
  Prefactor  = 0.0001
  norm       = 4.10314
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 7.94739
  Normalizat = 1.03842
  Prefactor  = 0.697636
 **********
 **   18 **HESSE 
 **********

 FCN=   5352.834     FROM HESSE     STATUS=OK           555 CALLS     4220 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     46.211        71.148        .58968E-04   -1.4347    
   3  Prefactor     .10000E-03    3.6174        .13538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.2736        .25526E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    32.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          8.1968        5.1113        .12658E-03   -1.5135    
   8  Prefactor     34.639        18.057        .68082E-04   -1.4530    
   9  norm          6.1287        4.8766        .13770E-03   -1.5213    
  10  norm          .30077        150.73        .45093E-02   -1.5598    
  11  norm          10.929        6.5498        .11020E-03   -1.5047    
  12  norm          26.796        12.958        .77391E-04   -1.4672    
  13  norm          .10000E-03    9.6956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.2466        .79464E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     32.615        18.469        .70158E-04   -1.4565    
  16  Prefactor     126.77        67.971        .17876E-03   -1.3451    
  17  Prefactor     .10000E-03    8.3985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     41.888        50.954        .61924E-04   -1.4413    
  20  norm          6.2363        1.9606        .55423E-04   -1.5208    
  21  Prefactor     9.9426        5.0867        .11183E-03   -1.5077    
  22  norm          11.381        13.348        .11872E-03   -1.5033    
  23  Prefactor     .10000E-03    33.015        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          4.1031        3.7709        .13157E-03   -1.5303    
  25  Prefactor     .10000E-03    12.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    44.437        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          7.9474        12.289        .71102E-03   -1.5144    
  28  Normalizat    1.0384        .20748        .22156E-03   -.91754    
  29  Prefactor     .69764        .24255        .32479E-03   -1.0362    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28902e-08
Minuit parameter uncertainties:
  1  3.225e-05
  2  71.2795
  3  1.31655e-05
  4  7.30243e-05
  5  3.03813e-05
  6  5.75e-05
  7  5.1116
  8  18.0603
  9  4.87691
  10  13.4981
  11  6.55023
  12  12.9596
  13  9.64673e-06
  14  1.08303e-05
  15  18.4727
  16  68.0124
  17  5.14372e-06
  18  2.84769e-05
  19  51.0072
  20  1.96059
  21  5.08694
  22  13.3516
  23  8.02333e-05
  24  3.77108
  25  0.000116576
  26  0.000814036
  27  12.2933
  28  0.207643
  29  0.242917
Done.

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

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.268e+02  6.801e+01  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  2.152e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
321        Scale:  1.846e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
603    Prefactor:  6.976e-01  2.429e-01  0.000e+00  1.000e+01 ( 1.000e+00)
604        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
605        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
602   Normalization:  1.038e+00  2.076e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.16
Ra Dec: 201.501 35.122
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 5.84e-08 +/- 3.13e-08
Energy Flux (Fixed Index): 2.88e-05 +/- 1.54e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5352.82306214
delta logL = 0.0110655949056

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5352.81114063
delta logL = 0.0229871042447

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    141.31       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0487       1.0000          .0000       10.000    
     3 'Normalizat'    1.0445       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69300       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6060E+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=   5352.811     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      265 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     141.31        102.43        .33890E-04   -.71789E-05
   2  Index         2.0485        .49187        .49588E-02   -.44555E-04
   3  Normalizat    1.0449        .19856        .22101E-03    .26903E-04
   4  Prefactor     .69246        .24116        .32588E-03    .59760E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 141.312
  Index      = 2.0485
  Normalizat = 1.04491
  Prefactor  = 0.692463
 **********
 **   18 **HESSE 
 **********

 FCN=   5352.811     FROM HESSE     STATUS=OK            25 CALLS      290 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     141.31        98.803        .67779E-05   -1.3325    
   2  Index         2.0485        .47430        .19835E-03   -.63143    
   3  Normalizat    1.0449        .19850        .88403E-05   -.91541    
   4  Prefactor     .69246        .24121        .13035E-04   -1.0382    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.62579e-11
Minuit parameter uncertainties:
  1  98.9184
  2  0.475395
  3  0.198638
  4  0.24157
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/555869': 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) = 5352.81113796
delta logL = 0.0229897777181

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.413e+02  9.892e+01  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  2.049e+00  4.754e-01  0.000e+00  1.000e+01 (-1.000e+00)
321        Scale:  1.846e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
603    Prefactor:  6.925e-01  2.416e-01  0.000e+00  1.000e+01 ( 1.000e+00)
604        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
605        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
602   Normalization:  1.045e+00  1.986e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.23
Ra Dec: 201.501 35.122
Photon Index (Free Index): 2.05 +/- 0.48
Photon Flux (Free Index): 5.29e-08 +/- 3.81e-08
Energy Flux (Free Index): 3.26e-05 +/- 2.66e-05

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/555869/cmap_HighResolution_592876801_593136001_4FGL_J1326.0+3507_daily_bin1364.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.84e-08', energy_flux2='3.26e-05', photon_flux_error='3.13e-08', dlogl='2.30e-02', energy_flux='2.88e-05', photon_flux2='5.29e-08', job_status='DONE', time_completed='2021-09-07 16:20:49.589488', photon_index_error2='0.48', photon_index2='2.05', ts='8.16', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', energy_flux_error2='2.66e-05', EG='1.04', time_epoch_completed='1631056849.59', return_code='0', job_id='555869', GAL2='0.69', EG2='1.04', return_code2='0', energy_flux_error='1.54e-05', photon_flux_error2='3.81e-08', ts2='8.23', photon_index='2.15' WHERE bin_id='1364' AND source_name='4FGL J1326.0+3507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 16:20:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0136>
Subject: Job 555869: <4FGL_J1326.0+3507_daily_bin1364> in cluster <slac> Done

Job <4FGL_J1326.0+3507_daily_bin1364> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 16:06:36 2021
Job was executed on host(s) <bullet0136>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 16:08:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 16:08:56 2021
Terminated at Tue Sep  7 16:20:50 2021
Results reported at Tue Sep  7 16:20:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1326.0+3507_daily_bin1364 201.501 35.1218 592876801 593136001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1326.0+3507 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   692.33 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             345.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   713 sec.
    Turnaround time :                            854 sec.

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

