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


Performing analysis on: 4FGL_J1326.0+3507_daily_bin415
RA = 201.501, Dec = 35.1218
tmin = 346896001, tmax = 347155201
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='550694', job_status='RUN', time_executed='2021-09-07 15:51:35.448490', time_epoch_executed='1631055095.45' WHERE source_name='4FGL J1326.0+3507' and cadence='daily' and bin_id='415'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/550694

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/550694/ft1_4FGL_J1326.0+3507_daily_bin415.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/550694/ft2_4FGL_J1326.0+3507_daily_bin415.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/550694/ft1_4FGL_J1326.0+3507_daily_bin415.fits outfile=/scratch/kocevski/550694/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin415.fits ra=201.501 dec=35.1218 rad=12.0 tmin=346896001.0 tmax=347155201.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.55
user 3.34
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/550694/ft2_4FGL_J1326.0+3507_daily_bin415.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/550694/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin415.fits evtable="EVENTS" outfile="/scratch/kocevski/550694/ft1_filtered_4FGL_J1326.0+3507_daily_bin415.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.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/550694/ft1_filtered_4FGL_J1326.0+3507_daily_bin415.fits" evtable="EVENTS" scfile=/scratch/kocevski/550694/ft2_4FGL_J1326.0+3507_daily_bin415.fits sctable="SC_DATA" outfile=/scratch/kocevski/550694/ltcube_346896001_347155201_4FGL_J1326.0+3507_daily_bin415.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/550694/ft2_4FGL_J1326.0+3507_daily_bin415.fits
.....................!
real 14.71
user 14.30
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/550694/ft1_filtered_4FGL_J1326.0+3507_daily_bin415.fits evtable="EVENTS" scfile=/scratch/kocevski/550694/ft2_4FGL_J1326.0+3507_daily_bin415.fits sctable="SC_DATA" expcube=/scratch/kocevski/550694/ltcube_346896001_347155201_4FGL_J1326.0+3507_daily_bin415.fits outfile=/scratch/kocevski/550694/expmap_346896001_347155201_4FGL_J1326.0+3507_daily_bin415.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/550694/ltcube_346896001_347155201_4FGL_J1326.0+3507_daily_bin415.fits
.....................!
real 193.71
user 188.46
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 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/550694/ft1_filtered_4FGL_J1326.0+3507_daily_bin415.fits scfile=/scratch/kocevski/550694/ft2_4FGL_J1326.0+3507_daily_bin415.fits outfile=/scratch/kocevski/550694/cmap_346896001_347155201_4FGL_J1326.0+3507_daily_bin415.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/550694/ft1_filtered_4FGL_J1326.0+3507_daily_bin415.fits scfile=/scratch/kocevski/550694/ft2_4FGL_J1326.0+3507_daily_bin415.fits outfile=/scratch/kocevski/550694/cmap_HighResolution_346896001_347155201_4FGL_J1326.0+3507_daily_bin415.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/550694/ft1_filtered_4FGL_J1326.0+3507_daily_bin415.fits evtable="EVENTS" scfile=/scratch/kocevski/550694/ft2_4FGL_J1326.0+3507_daily_bin415.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/550694/Model_4FGL_J1326.0+3507_daily_bin415.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/550694/ft1_filtered_4FGL_J1326.0+3507_daily_bin415.fits.....................!
real 52.27
user 50.79
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.934       1.0000         .10000E-03   10000.    
     2 'Prefactor '    95.848       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.9366       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .71786E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.4983       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10648E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.011       1.0000         .10000E-03   10000.    
    20 'norm      '    12.488       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    8.8509       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.8841       1.0000         .10000E-03   10000.    
    24 'norm      '    5.4414       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .15951E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    38.022       1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .98610       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0320       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=   6254.851     FROM MIGRAD    STATUS=CONVERGED    731 CALLS     3742 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.933        15.610       -.34855E-06   -.47463E-05
   2  Prefactor     95.826        64.873        .78012E-06    .38029E-04
   3  Prefactor     .10000E-03    2.5722        .55344E-07** at limit **
   4  norm          .10000E-03    1.8267        .69053E-06** at limit **
   5  Prefactor     8.9367        25.870       -.29542E-06    .30902E-05
   6  Prefactor     .10000E-03    80.331        .21087E-04** at limit **
   7  norm          .10000E-03    1.0675       -.22895E-07** at limit **
   8  Prefactor     .10000E-03    5.6640        .42284E-07** at limit **
   9  norm          .10000E-03    1.6270        .94795E-07** at limit **
  10  norm          .10000E-03    5.2472       -.15361E-07** at limit **
  11  norm          6.4931        4.1008       -.94920E-06   -.50898E-03
  12  norm          .10000E-03    5.5631        .12810E-05** at limit **
  13  norm          .10000E-03    11.344        .41744E-06** at limit **
  14  Prefactor     .10000E-03    1.5997        .54527E-06** at limit **
  15  Prefactor     .10000E-03    8.5630        .97730E-07** at limit **
  16  Prefactor     .10000E-03    126.70        .10305E-04** at limit **
  17  Prefactor     .10000E-03    7.1504        .14411E-06** at limit **
  18  Prefactor     .10000E-03    13.930       -.92118E-06** at limit **
  19  Prefactor     15.987        82.229        .61061E-05    .63791E-05
  20  norm          12.489        2.3400        .97468E-08   -.15010E-03
  21  Prefactor     .10000E-03    1.2516       -.13184E-06** at limit **
  22  norm          8.8521        15.322       -.41197E-06   -.22378E-04
  23  Prefactor     7.8842        19.038        .19137E-06   -.24117E-04
  24  norm          5.4416        3.6994        .81168E-07   -.40397E-04
  25  Prefactor     .10002E-03    44.106       -.70322E-05** at limit **
  26  Prefactor     38.025        26.169        .54543E-05   -.12190E-03
  27  norm          .10000E-03    9.4808       -.23543E-06** at limit **
  28  Normalizat    .98617        .17266       -.14616E-05   -.30835E-06
  29  Prefactor     1.0318        .20955        .20140E-05   -.40507E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.9333
  Prefactor  = 95.8259
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.93669
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.49308
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.9872
  norm       = 12.4885
  Prefactor  = 0.0001
  norm       = 8.8521
  Prefactor  = 7.88424
  norm       = 5.44164
  Prefactor  = 0.000100022
  Prefactor  = 38.0255
  norm       = 0.0001
  Normalizat = 0.986165
  Prefactor  = 1.03181
 **********
 **   18 **HESSE 
 **********

 FCN=   6254.851     FROM HESSE     STATUS=OK           543 CALLS     4285 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.933        15.597        .12116E-03   -1.5047    
   2  Prefactor     95.826        64.872        .20528E-03   -1.3747    
   3  Prefactor     .10000E-03    2.5828        .12377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.8457        .10426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.9367        25.863        .13408E-03   -1.5110    
   6  Prefactor     .10000E-03    79.478        .49063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.0691        .79801E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.6819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.6315        .98500E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    5.2529        .17693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.4931        4.0299        .11824E-03   -1.5198    
  12  norm          .10000E-03    5.6435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    11.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.6232        .97604E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.6171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    127.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.1777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     15.987        83.007        .10010E-03   -1.4908    
  20  norm          12.489        2.3403        .50582E-04   -1.5001    
  21  Prefactor     .10000E-03    1.2612        .86379E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          8.8521        15.302        .13473E-03   -1.5113    
  23  Prefactor     7.8842        18.988        .14280E-03   -1.5146    
  24  norm          5.4416        3.6981        .12126E-03   -1.5241    
  25  Prefactor     .10002E-03    46.975        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     38.025        26.208        .64999E-04   -1.4474    
  27  norm          .10000E-03    9.5063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .98617        .20515        .23259E-03   -.93495    
  29  Prefactor     1.0318        .24842        .28715E-03   -.91676    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80254e-09
Minuit parameter uncertainties:
  1  15.6024
  2  64.9197
  3  2.39164e-06
  4  3.22749e-06
  5  25.8951
  6  0.000891543
  7  2.57511e-07
  8  2.96933e-06
  9  1.65211e-06
  10  3.38574e-06
  11  4.03004
  12  6.43404e-05
  13  4.74592e-05
  14  3.33558e-06
  15  9.36922e-06
  16  0.00159052
  17  3.09233e-05
  18  4.71531e-06
  19  73.0169
  20  2.34031
  21  1.83593e-06
  22  15.3085
  23  19.0021
  24  3.69824
  25  0.0020508
  26  26.2161
  27  3.70035e-05
  28  0.205314
  29  0.248701
Done.

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

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  1.591e-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:  1.032e+00  2.487e-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.862e-01  2.053e-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: 6.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.81e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/550694/likelihoodResults_346896001_347155201_4FGL_J1326.0+3507_daily_bin415.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) = 6254.85114613
delta logL = -3.7167003029e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6254.85110905
delta logL = -8.93787728273e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1152       1.0000          .0000       10.000    
     3 'Normalizat'    .98617       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0318       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=   6254.851     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      284 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006E-03    8548.3        .36285E-03** at limit **
   2  Index         2.2372        5.2334        .50000       -.12641E-04
   3  Normalizat    .98616        .67608E-01    .23259E-03    .44919E-04
   4  Prefactor     1.0318        .85512E-01    .28715E-03   -.41333E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010006
  Index      = 2.23721
  Normalizat = 0.986161
  Prefactor  = 1.03182
 **********
 **   18 **HESSE 
 **********

 FCN=   6254.851     FROM HESSE     STATUS=OK            29 CALLS      313 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10006E-03    359.76        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2372        6.0921        .50000       -.58543    
   3  Normalizat    .98616        .19331        .93037E-05   -.93496    
   4  Prefactor     1.0318        .24443        .11486E-04   -.91676    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59514e-10
Minuit parameter uncertainties:
  1  0.00937642
  2  4.71362
  3  0.193442
  4  0.244694
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/550694': 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) = 6254.85110873
delta logL = 2.34416802414e-07

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.001e-04  9.376e-03  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  2.237e+00  4.714e+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:  1.032e+00  2.447e-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.862e-01  1.934e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 201.501 35.122

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/550694/cmap_HighResolution_346896001_347155201_4FGL_J1326.0+3507_daily_bin415.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.81e-03', job_status='DONE', photon_flux_upper_limit='6.33e-08', time_completed='2021-09-07 16:05:53.646517', job_id='550694', GAL2='1.03', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1631055953.65', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='2.34e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='415' AND source_name='4FGL J1326.0+3507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 16:05:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 550694: <4FGL_J1326.0+3507_daily_bin415> in cluster <slac> Done

Job <4FGL_J1326.0+3507_daily_bin415> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep  7 15:50:41 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 15:51:22 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:51:22 2021
Terminated at Tue Sep  7 16:05:54 2021
Results reported at Tue Sep  7 16:05:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1326.0+3507_daily_bin415 201.501 35.1218 346896001 347155201 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 :                                   856.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             345.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   871 sec.
    Turnaround time :                            913 sec.

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

