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


Performing analysis on: 4FGL_J1326.0+3507_daily_bin1405
RA = 201.501, Dec = 35.1218
tmin = 603504001, tmax = 603763201
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='556586', job_status='RUN', time_executed='2021-09-07 16:14:56.178851', time_epoch_executed='1631056496.18' WHERE source_name='4FGL J1326.0+3507' and cadence='daily' and bin_id='1405'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/556586

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/556586/ft1_4FGL_J1326.0+3507_daily_bin1405.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/556586/ft2_4FGL_J1326.0+3507_daily_bin1405.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/556586/ft1_4FGL_J1326.0+3507_daily_bin1405.fits outfile=/scratch/kocevski/556586/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin1405.fits ra=201.501 dec=35.1218 rad=12.0 tmin=603504001.0 tmax=603763201.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 2.31
user 2.11
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/556586/ft2_4FGL_J1326.0+3507_daily_bin1405.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/556586/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin1405.fits evtable="EVENTS" outfile="/scratch/kocevski/556586/ft1_filtered_4FGL_J1326.0+3507_daily_bin1405.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.47
user 0.31
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/556586/ft1_filtered_4FGL_J1326.0+3507_daily_bin1405.fits" evtable="EVENTS" scfile=/scratch/kocevski/556586/ft2_4FGL_J1326.0+3507_daily_bin1405.fits sctable="SC_DATA" outfile=/scratch/kocevski/556586/ltcube_603504001_603763201_4FGL_J1326.0+3507_daily_bin1405.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/556586/ft2_4FGL_J1326.0+3507_daily_bin1405.fits
.....................!
real 16.25
user 15.92
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/556586/ft1_filtered_4FGL_J1326.0+3507_daily_bin1405.fits evtable="EVENTS" scfile=/scratch/kocevski/556586/ft2_4FGL_J1326.0+3507_daily_bin1405.fits sctable="SC_DATA" expcube=/scratch/kocevski/556586/ltcube_603504001_603763201_4FGL_J1326.0+3507_daily_bin1405.fits outfile=/scratch/kocevski/556586/expmap_603504001_603763201_4FGL_J1326.0+3507_daily_bin1405.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/556586/ltcube_603504001_603763201_4FGL_J1326.0+3507_daily_bin1405.fits
.....................!
real 159.02
user 154.81
sys 3.51

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/556586/ft1_filtered_4FGL_J1326.0+3507_daily_bin1405.fits scfile=/scratch/kocevski/556586/ft2_4FGL_J1326.0+3507_daily_bin1405.fits outfile=/scratch/kocevski/556586/cmap_603504001_603763201_4FGL_J1326.0+3507_daily_bin1405.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.51
user 0.35
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/556586/ft1_filtered_4FGL_J1326.0+3507_daily_bin1405.fits scfile=/scratch/kocevski/556586/ft2_4FGL_J1326.0+3507_daily_bin1405.fits outfile=/scratch/kocevski/556586/cmap_HighResolution_603504001_603763201_4FGL_J1326.0+3507_daily_bin1405.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.52
user 0.35
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.9999       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .17243       1.0000         .10000E-03   10000.    
     4 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.9246       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    33.018       1.0000         .10000E-03   10000.    
    12 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10204E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.8888       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    72.949       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    38.956       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.8185       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    32.690       1.0000         .10000E-03   10000.    
    27 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1865       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0198       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=   4538.532     FROM MIGRAD    STATUS=CONVERGED    708 CALLS     3703 TOTAL
                     EDM=   .99E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.527       -.19876E-06** at limit **
   2  Prefactor     2.6447        1552.6       -.15061E-03    .76338E-05
   3  Prefactor     .17883        6.7346        .27305E-06    .20522E-04
   4  norm          .10000E-03    3.2160       -.36511E-05** at limit **
   5  Prefactor     .10000E-03    33.419        .52733E-07** at limit **
   6  Prefactor     .10000E-03    17.608       -.14959E-05** at limit **
   7  norm          4.9244        5.3261       -.33910E-07   -.45544E-05
   8  Prefactor     .10000E-03    16.171        .12136E-06** at limit **
   9  norm          .10000E-03    2.4846       -.12380E-06** at limit **
  10  norm          .10000E-03    5.5126        .49309E-07** at limit **
  11  norm          33.024        9.5581       -.48596E-06    .89469E-04
  12  norm          .10000E-03    7.0339        .54472E-06** at limit **
  13  norm          .10000E-03    78.391        .67542E-06** at limit **
  14  Prefactor     8.8868        6.8135        .24544E-05    .42708E-03
  15  Prefactor     .10000E-03    14.727        .10138E-05** at limit **
  16  Prefactor     73.105        91.849       -.33510E-05    .65561E-04
  17  Prefactor     .10000E-03    37.479        .18460E-05** at limit **
  18  Prefactor     38.968        33.270        .52538E-07   -.98221E-05
  19  Prefactor     .10000E-03    43.441        .95422E-06** at limit **
  20  norm          1.8183        1.5564        .95196E-07    .34679E-04
  21  Prefactor     .10000E-03    3.9060        .76531E-06** at limit **
  22  norm          .10000E-03    4.6085        .13562E-06** at limit **
  23  Prefactor     .10000E-03    5.1355        .57559E-07** at limit **
  24  norm          .10000E-03    3.1758        .32898E-06** at limit **
  25  Prefactor     .10000E-03    13.933        .52689E-07** at limit **
  26  Prefactor     32.684        22.991       -.36020E-06   -.46576E-04
  27  norm          .10000E-03    6.1183        .18937E-07** at limit **
  28  Normalizat    1.1865        .21545       -.92137E-06   -.54616E-04
  29  Prefactor     1.0198        .25171       -.89217E-07   -.70271E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.64468
  Prefactor  = 0.178827
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.92437
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 33.0237
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 8.88676
  Prefactor  = 0.0001
  Prefactor  = 73.1048
  Prefactor  = 0.0001
  Prefactor  = 38.968
  Prefactor  = 0.0001
  norm       = 1.81834
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.6837
  norm       = 0.0001
  Normalizat = 1.1865
  Prefactor  = 1.01983
 **********
 **   18 **HESSE 
 **********

 FCN=   4538.532     FROM HESSE     STATUS=OK           549 CALLS     4252 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.6447        1598.6        .23436E-02   -1.5383    
   3  Prefactor     .17883        47.118        .33803E-02   -1.5623    
   4  norm          .10000E-03    3.2079        .11760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    33.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    17.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.9244        5.3256        .15754E-03   -1.5264    
   8  Prefactor     .10000E-03    16.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.4888        .10370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    5.5139        .15449E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          33.024        9.5701        .69735E-04   -1.4558    
  12  norm          .10000E-03    7.0449        .17434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    79.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.8868        6.9240        .67219E-03   -1.5112    
  15  Prefactor     .10000E-03    14.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     73.105        92.559        .23503E-03   -1.3996    
  17  Prefactor     .10000E-03    37.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     38.968        33.337        .64218E-04   -1.4459    
  19  Prefactor     .10000E-03    43.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.8183        1.5448        .74561E-04   -1.5438    
  21  Prefactor     .10000E-03    4.0049        .25995E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    4.6120        .14125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.1362        .14911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    3.2171        .11720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    13.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     32.684        22.999        .70084E-04   -1.4564    
  27  norm          .10000E-03    6.1189        .16275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1865        .26169        .24353E-03   -.87021    
  29  Prefactor     1.0198        .30448        .31177E-03   -.92072    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.15363e-10
Minuit parameter uncertainties:
  1  1.50181e-05
  2  133.801
  3  5.80849
  4  4.16001e-06
  5  5.57741e-05
  6  2.05802e-05
  7  5.32607
  8  2.81859e-05
  9  5.12299e-06
  10  3.62609e-07
  11  9.57051
  12  3.81572e-05
  13  0.000111786
  14  6.9246
  15  9.1155e-07
  16  92.742
  17  0.000137759
  18  33.3533
  19  0.000156349
  20  1.54482
  21  1.73766e-05
  22  3.13605e-06
  23  6.28038e-06
  24  1.01013e-05
  25  1.12737e-05
  26  23.0054
  27  5.77623e-07
  28  0.261979
  29  0.304994
Done.

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

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  7.310e+01  9.274e+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:  1.020e+00  3.050e-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.186e+00  2.620e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.97
Ra Dec: 201.501 35.122
Photon Flux Upper Limit: 1.28e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/556586/likelihoodResults_603504001_603763201_4FGL_J1326.0+3507_daily_bin1405.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) = 4538.52017199
delta logL = 0.0120885178676

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4538.51372594
delta logL = 0.0185345726268

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    85.062       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9966       1.0000          .0000       10.000    
     3 'Normalizat'    1.1921       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0154       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=   4538.514     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      276 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     85.038        114.40        .43557E-04    .43594E-03
   2  Index         1.9967        .79324        .73574E-02    .39631E-03
   3  Normalizat    1.1925        .25360        .24301E-03   -.62280E-03
   4  Prefactor     1.0148        .30337        .31243E-03   -.63818E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 85.0384
  Index      = 1.99672
  Normalizat = 1.19255
  Prefactor  = 1.01481
 **********
 **   18 **HESSE 
 **********

 FCN=   4538.514     FROM HESSE     STATUS=OK            23 CALLS      299 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     85.038        111.60        .87113E-05   -1.3861    
   2  Index         1.9967        .77366        .29429E-03   -.64432    
   3  Normalizat    1.1925        .25364        .48603E-04   -.86833    
   4  Prefactor     1.0148        .30350        .62486E-04   -.92237    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.54615e-09
Minuit parameter uncertainties:
  1  111.881
  2  0.778574
  3  0.253899
  4  0.304016
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/556586': 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) = 4538.51372416
delta logL = 0.0185363483206

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  8.504e+01  1.119e+02  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  1.997e+00  7.786e-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:  1.015e+00  3.040e-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.193e+00  2.539e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.02
Ra Dec: 201.501 35.122
Photon Index (Free Index): 2.00 +/- 0.78
Photon Flux (Free Index): 2.88e-08 +/- 4.28e-08
Energy Flux (Free Index): 2.01e-05 +/- 3.12e-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/556586/cmap_HighResolution_603504001_603763201_4FGL_J1326.0+3507_daily_bin1405.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.73e-03', comment='SUCCESS', energy_flux2='2.01e-05', dlogl='1.85e-02', photon_flux2='2.88e-08', job_status='DONE', time_completed='2021-09-07 16:24:33.968460', photon_index_error2='0.78', photon_index2='2.00', ts='0.97', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.28e-07', energy_flux_error2='3.12e-05', EG='1.19', time_epoch_completed='1631057073.97', return_code='0', job_id='556586', GAL2='1.01', EG2='1.19', return_code2='0', photon_flux_error2='4.28e-08', ts2='1.02', photon_index='2.15' WHERE bin_id='1405' AND source_name='4FGL J1326.0+3507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 16:24:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 556586: <4FGL_J1326.0+3507_daily_bin1405> in cluster <slac> Done

Job <4FGL_J1326.0+3507_daily_bin1405> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Tue Sep  7 16:10:25 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 16:11:07 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:11:07 2021
Terminated at Tue Sep  7 16:24:34 2021
Results reported at Tue Sep  7 16:24:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1326.0+3507_daily_bin1405 201.501 35.1218 603504001 603763201 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 :                                   572.21 sec.
    Max Memory :                                 1089 MB
    Average Memory :                             252.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            849 sec.

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

