/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 139 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 = 6613
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1326.0+3507_daily_bin92
RA = 201.501, Dec = 35.1218
tmin = 263174401, tmax = 263433601
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='549098', job_status='RUN', time_executed='2021-09-07 15:47:55.026764', time_epoch_executed='1631054875.03' WHERE source_name='4FGL J1326.0+3507' and cadence='daily' and bin_id='92'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/549098

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/549098/ft1_4FGL_J1326.0+3507_daily_bin92.fits


Retrieving the FT1 file...

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

Retrieving 42 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/549098/ft2_4FGL_J1326.0+3507_daily_bin92.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/549098/ft1_4FGL_J1326.0+3507_daily_bin92.fits outfile=/scratch/kocevski/549098/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin92.fits ra=201.501 dec=35.1218 rad=12.0 tmin=263174401.0 tmax=263433601.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 1.42
user 1.22
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/549098/ft1_filtered_4FGL_J1326.0+3507_daily_bin92.fits" evtable="EVENTS" scfile=/scratch/kocevski/549098/ft2_4FGL_J1326.0+3507_daily_bin92.fits sctable="SC_DATA" outfile=/scratch/kocevski/549098/ltcube_263174401_263433601_4FGL_J1326.0+3507_daily_bin92.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/549098/ft2_4FGL_J1326.0+3507_daily_bin92.fits
.....................!
real 16.80
user 16.39
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/549098/ft1_filtered_4FGL_J1326.0+3507_daily_bin92.fits evtable="EVENTS" scfile=/scratch/kocevski/549098/ft2_4FGL_J1326.0+3507_daily_bin92.fits sctable="SC_DATA" expcube=/scratch/kocevski/549098/ltcube_263174401_263433601_4FGL_J1326.0+3507_daily_bin92.fits outfile=/scratch/kocevski/549098/expmap_263174401_263433601_4FGL_J1326.0+3507_daily_bin92.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/549098/ltcube_263174401_263433601_4FGL_J1326.0+3507_daily_bin92.fits
.....................!
real 194.59
user 188.98
sys 4.96

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/549098/ft1_filtered_4FGL_J1326.0+3507_daily_bin92.fits scfile=/scratch/kocevski/549098/ft2_4FGL_J1326.0+3507_daily_bin92.fits outfile=/scratch/kocevski/549098/cmap_263174401_263433601_4FGL_J1326.0+3507_daily_bin92.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/549098/ft1_filtered_4FGL_J1326.0+3507_daily_bin92.fits scfile=/scratch/kocevski/549098/ft2_4FGL_J1326.0+3507_daily_bin92.fits outfile=/scratch/kocevski/549098/cmap_HighResolution_263174401_263433601_4FGL_J1326.0+3507_daily_bin92.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.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/549098/ft1_filtered_4FGL_J1326.0+3507_daily_bin92.fits', '/scratch/kocevski/549098/ft2_4FGL_J1326.0+3507_daily_bin92.fits', expMap='/scratch/kocevski/549098/expmap_263174401_263433601_4FGL_J1326.0+3507_daily_bin92.fits', expCube='/scratch/kocevski/549098/ltcube_263174401_263433601_4FGL_J1326.0+3507_daily_bin92.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/549098/Model_4FGL_J1326.0+3507_daily_bin92.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/549098/ft1_filtered_4FGL_J1326.0+3507_daily_bin92.fits
Spacecraft file(s): /scratch/kocevski/549098/ft2_4FGL_J1326.0+3507_daily_bin92.fits
Exposure map: /scratch/kocevski/549098/expmap_263174401_263433601_4FGL_J1326.0+3507_daily_bin92.fits
Exposure cube: /scratch/kocevski/549098/ltcube_263174401_263433601_4FGL_J1326.0+3507_daily_bin92.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/549098/Model_4FGL_J1326.0+3507_daily_bin92.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) = 4018.59384232

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.3674       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10529E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.4002       1.0000         .10000E-03   10000.    
    12 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    32.063       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.8574       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.8769       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .26109E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    49.318       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10250E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12265       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1641       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .69924       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=   4018.582     FROM MIGRAD    STATUS=CONVERGED   1308 CALLS     4295 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.5168        .18064E-02** at limit **
   2  Prefactor     .10000E-03    24.326        .18142E-02** at limit **
   3  Prefactor     .10000E-03    3.0807        .10846E-02** at limit **
   4  norm          .10000E-03    4.0771        .12366E-02** at limit **
   5  Prefactor     .10000E-03    90.620        .18142E-02** at limit **
   6  Prefactor     .10000E-03    36.808        .18142E-02** at limit **
   7  norm          1.3667        2.4541        .13218E-03    .60208E-06
   8  Prefactor     .10000E-03    11.599        .18142E-02** at limit **
   9  norm          .10000E-03    19.526        .28693E-02** at limit **
  10  norm          .10000E-03    4.7987        .13561E-02** at limit **
  11  norm          6.3973        4.8149        .10819E-03    .52179E-03
  12  norm          .10000E-03    9.9160        .36285E-03** at limit **
  13  norm          32.056        24.118        .70763E-04    .11246E-05
  14  Prefactor     2.8477        7.0988        .81659E-03   -.48011E-04
  15  Prefactor     3.8969        27.140        .10247E-02   -.27410E-04
  16  Prefactor     .10001E-03    156.79        .17706    ** at limit **
  17  Prefactor     .10000E-03    8.3371        .17852E-02** at limit **
  18  Prefactor     49.313        31.467        .57102E-04    .35737E-04
  19  Prefactor     .10000E-03    41.485        .18142E-02** at limit **
  20  norm          .10000E-03    2.3497        .13380E-02** at limit **
  21  Prefactor     .12025        43.865        .20312E-02    .13024E-03
  22  norm          .10000E-03    4.9131        .13717E-02** at limit **
  23  Prefactor     .10000E-03    5.6778        .14751E-02** at limit **
  24  norm          .10000E-03    2.0159        .87472E-03** at limit **
  25  Prefactor     .10000E-03    3.9223        .12259E-02** at limit **
  26  Prefactor     .10000E-03    6.1229        .15314E-02** at limit **
  27  norm          .10000E-03    5.1430        .14041E-02** at limit **
  28  Normalizat    1.1642        .22763        .19364E-03    .17608E-03
  29  Prefactor     .69917        .26552        .29775E-03   -.57541E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.36669
  Prefactor  = 0.0001
  norm       = 0.000100002
  norm       = 0.0001
  norm       = 6.39729
  norm       = 0.0001
  norm       = 32.0557
  Prefactor  = 2.84772
  Prefactor  = 3.89692
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 49.3126
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.120253
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.16416
  Prefactor  = 0.699172
 **********
 **   18 **HESSE 
 **********

 FCN=   4018.582     FROM HESSE     STATUS=OK           539 CALLS     4834 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.5170        .36129E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    24.326        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.0809        .21691E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.0786        .24732E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    90.649        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    36.815        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.3667        2.4540        .52871E-05   -1.5474    
   8  Prefactor     .10000E-03    11.600        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    19.753        .57386E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    4.7987        .27121E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.3973        4.8109        .43275E-05   -1.5202    
  12  norm          .10000E-03    9.9161        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          32.056        24.118        .28305E-05   -1.4575    
  14  Prefactor     2.8477        7.0350        .32664E-04   -1.5370    
  15  Prefactor     3.8969        26.548        .40986E-04   -1.5313    
  16  Prefactor     .10001E-03    175.16        .16563       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.3377        .35705E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     49.313        31.461        .22841E-05   -1.4302    
  19  Prefactor     .10000E-03    41.486        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.3577        .26761E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .12025        43.702        .81247E-04   -1.5639    
  22  norm          .10000E-03    4.9132        .27434E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.6778        .29503E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.0161        .17494E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    3.9223        .24517E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    6.1230        .30629E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    5.1430        .28082E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1642        .22692        .38728E-04   -.87718    
  29  Prefactor     .69917        .26569        .11910E-04   -1.0356    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.91749e-10
Minuit parameter uncertainties:
  1  7.03356e-07
  2  4.44257e-05
  3  2.5629e-06
  4  2.5299e-05
  5  7.92312e-06
  6  0.000121127
  7  2.4542
  8  1.3995e-05
  9  0.000371328
  10  3.17621e-06
  11  4.81114
  12  4.72501e-05
  13  24.125
  14  7.03706
  15  20.3554
  16  0.00299012
  17  6.23953e-05
  18  31.4713
  19  1.69248e-06
  20  4.62348e-06
  21  4.58634
  22  5.42194e-06
  23  1.16591e-06
  24  3.96794e-06
  25  3.18204e-06
  26  7.55876e-06
  27  2.58313e-06
  28  0.227116
  29  0.266175
Done.

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

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  2.990e-03  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.992e-01  2.662e-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.164e+00  2.271e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 201.501 35.122
Photon Flux Upper Limit: 9.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.25e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/549098/likelihoodResults_263174401_263433601_4FGL_J1326.0+3507_daily_bin92.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) = 4018.58213982
delta logL = -3.05944467982e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4018.58213982
delta logL = -3.05856110572e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96367E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1517       1.0000          .0000       10.000    
     3 'Normalizat'    1.1642       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69917       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.

 FCN=   4016.622     FROM MIGRAD    STATUS=CONVERGED    236 CALLS      385 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .29678E-02    .28481E-01    .45844E-03   -.14068E-01
   2  Index         6.6041        1.9774        .58925E-01   -.10500E-04
   3  Normalizat    .99847        .58027E-01    .35837E-01   -.14201E-04
   4  Prefactor     .83870        .71106E-01    .61983E-01    .36319E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00296784
  Index      = 6.60412
  Normalizat = 0.998471
  Prefactor  = 0.8387
 **********
 **   18 **HESSE 
 **********

 FCN=   4016.622     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      418 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .29678E-02    .49402E-01    .19331E-05   -1.5697    
   2  Index         6.6041        2.7387        .24656E-02    .32660    
   3  Normalizat    .99847        .19743        .20610E-03   -.93082    
   4  Prefactor     .83870        .23745        .27415E-03   -.98317    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.95716e-10
Minuit parameter uncertainties:
  1  0.0238057
  2  2.92035
  3  0.197575
  4  0.237745
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/549098': 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): 102
logL (Free Index) = 4016.62240209
delta logL = 1.95973466976

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  2.968e-03  2.381e-02  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  6.604e+00  2.920e+00  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:  8.387e-01  2.377e-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:  9.985e-01  1.976e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.35
Ra Dec: 201.501 35.122
Photon Index (Free Index): 6.60 +/- 2.92
Photon Flux (Free Index): 1.24e-07 +/- 6.98e-08
Energy Flux (Free Index): 1.50e-05 +/- 8.69e-06

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/549098/cmap_HighResolution_263174401_263433601_4FGL_J1326.0+3507_daily_bin92.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.25e-03', comment='SUCCESS', energy_flux2='1.50e-05', dlogl='1.96e+00', photon_flux2='1.24e-07', job_status='DONE', time_completed='2021-09-07 15:59:45.092473', photon_index_error2='2.92', photon_index2='6.60', ts='-0.00', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', photon_flux_upper_limit='9.55e-08', energy_flux_error2='8.69e-06', EG='1.16', time_epoch_completed='1631055585.09', return_code='0', job_id='549098', GAL2='0.84', EG2='1.00', return_code2='102', photon_flux_error2='6.98e-08', ts2='4.35', photon_index='2.15' WHERE bin_id='92' AND source_name='4FGL J1326.0+3507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 15:59:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0154>
Subject: Job 549098: <4FGL_J1326.0+3507_daily_bin92> in cluster <slac> Done

Job <4FGL_J1326.0+3507_daily_bin92> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 15:45:21 2021
Job was executed on host(s) <bullet0154>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 15:45:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 15:45:24 2021
Terminated at Tue Sep  7 15:59:45 2021
Results reported at Tue Sep  7 15:59:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1326.0+3507_daily_bin92 201.501 35.1218 263174401 263433601 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 :                                   696.31 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             274.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   861 sec.
    Turnaround time :                            864 sec.

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

