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


Performing analysis on: 4FGL_J1326.0+3507_daily_bin1229
RA = 201.501, Dec = 35.1218
tmin = 557884801, tmax = 558144001
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='555596', job_status='RUN', time_executed='2021-09-07 16:11:36.625902', time_epoch_executed='1631056296.63' WHERE source_name='4FGL J1326.0+3507' and cadence='daily' and bin_id='1229'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/555596

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/555596/ft1_4FGL_J1326.0+3507_daily_bin1229.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/555596/ft2_4FGL_J1326.0+3507_daily_bin1229.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/555596/ft1_4FGL_J1326.0+3507_daily_bin1229.fits outfile=/scratch/kocevski/555596/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin1229.fits ra=201.501 dec=35.1218 rad=12.0 tmin=557884801.0 tmax=558144001.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 4.11
user 3.82
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/555596/ft1_filtered_4FGL_J1326.0+3507_daily_bin1229.fits" evtable="EVENTS" scfile=/scratch/kocevski/555596/ft2_4FGL_J1326.0+3507_daily_bin1229.fits sctable="SC_DATA" outfile=/scratch/kocevski/555596/ltcube_557884801_558144001_4FGL_J1326.0+3507_daily_bin1229.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/555596/ft2_4FGL_J1326.0+3507_daily_bin1229.fits
.....................!
real 14.96
user 14.43
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/555596/ft1_filtered_4FGL_J1326.0+3507_daily_bin1229.fits evtable="EVENTS" scfile=/scratch/kocevski/555596/ft2_4FGL_J1326.0+3507_daily_bin1229.fits sctable="SC_DATA" expcube=/scratch/kocevski/555596/ltcube_557884801_558144001_4FGL_J1326.0+3507_daily_bin1229.fits outfile=/scratch/kocevski/555596/expmap_557884801_558144001_4FGL_J1326.0+3507_daily_bin1229.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/555596/ltcube_557884801_558144001_4FGL_J1326.0+3507_daily_bin1229.fits
.....................!
real 192.58
user 186.00
sys 5.21

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/555596/ft1_filtered_4FGL_J1326.0+3507_daily_bin1229.fits scfile=/scratch/kocevski/555596/ft2_4FGL_J1326.0+3507_daily_bin1229.fits outfile=/scratch/kocevski/555596/cmap_557884801_558144001_4FGL_J1326.0+3507_daily_bin1229.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.60
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/555596/ft1_filtered_4FGL_J1326.0+3507_daily_bin1229.fits scfile=/scratch/kocevski/555596/ft2_4FGL_J1326.0+3507_daily_bin1229.fits outfile=/scratch/kocevski/555596/cmap_HighResolution_557884801_558144001_4FGL_J1326.0+3507_daily_bin1229.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.62
user 0.40
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/555596/ft1_filtered_4FGL_J1326.0+3507_daily_bin1229.fits', '/scratch/kocevski/555596/ft2_4FGL_J1326.0+3507_daily_bin1229.fits', expMap='/scratch/kocevski/555596/expmap_557884801_558144001_4FGL_J1326.0+3507_daily_bin1229.fits', expCube='/scratch/kocevski/555596/ltcube_557884801_558144001_4FGL_J1326.0+3507_daily_bin1229.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/555596/Model_4FGL_J1326.0+3507_daily_bin1229.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/555596/ft1_filtered_4FGL_J1326.0+3507_daily_bin1229.fits
Spacecraft file(s): /scratch/kocevski/555596/ft2_4FGL_J1326.0+3507_daily_bin1229.fits
Exposure map: /scratch/kocevski/555596/expmap_557884801_558144001_4FGL_J1326.0+3507_daily_bin1229.fits
Exposure cube: /scratch/kocevski/555596/ltcube_557884801_558144001_4FGL_J1326.0+3507_daily_bin1229.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/555596/Model_4FGL_J1326.0+3507_daily_bin1229.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 149.132379164

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 147.223293788

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2291       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.0284       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4720       1.0000         .10000E-03   10000.    
     4 'norm      '    .33512E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.3085       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.4387       1.0000         .10000E-03   10000.    
     7 'norm      '    .40639       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.1112       1.0000         .10000E-03   10000.    
     9 'norm      '    .59357E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    8.1786       1.0000         .10000E-03   10000.    
    11 'norm      '    .12867       1.0000         .10000E-03   10000.    
    12 'norm      '    .18198       1.0000         .10000E-03   10000.    
    13 'norm      '    .23193E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .17160       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .42497E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.3475       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .18050       1.0000         .10000E-03   10000.    
    18 'Prefactor '    271.51       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.0476       1.0000         .10000E-03   10000.    
    20 'norm      '    6.7947       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .37741E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    1.7303       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .92660E-01   1.0000         .10000E-03   10000.    
    24 'norm      '    .16265E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10971E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .23990E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .49091E-01   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .48176       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .34092       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   147.2156     FROM MIGRAD    STATUS=CONVERGED    302 CALLS      588 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2291        1.0277         .0000         .0000    
   2  Prefactor     .73669E-03    1015.4       -.39245E-05** at limit **
   3  Prefactor     1.4720        1.0740         .0000         .0000    
   4  norm          .10000E-03    190.36        .97647E-06** at limit **
   5  Prefactor     4.3085        1.0069         .0000         .0000    
   6  Prefactor     .10028E-03    1135.0        .10851E-05** at limit **
   7  norm          1.1091        150.16       -.16704E-04    .55882E-05
   8  Prefactor     2.1112        1.0312         .0000         .0000    
   9  norm          .10001E-03    767.72       -.30318E-05** at limit **
  10  norm          8.1786        1.0019         .0000         .0000    
  11  norm          .10000E-03    263.32        .54035E-05** at limit **
  12  norm          .10000E-03    124.02        .18822E-06** at limit **
  13  norm          .10000E-03    66.417        .43821E-06** at limit **
  14  Prefactor     .10000E-03    128.43       -.91330E-06** at limit **
  15  Prefactor     .10000E-03    230.16       -.24223E-05** at limit **
  16  Prefactor     .11089E-02    752.33       -.51190E-05** at limit **
  17  Prefactor     .10005E-03    514.35        .11807E-04** at limit **
  18  Prefactor     271.50        26.242       -.51911E-06    .22808E-01
  19  Prefactor     .19920E-02    8913.6        .56751E-04** at limit **
  20  norm          6.7947        1.0027         .0000         .0000    
  21  Prefactor     .10000E-03    80.822        .12002E-06** at limit **
  22  norm          .10004E-03    1090.0        .52573E-06** at limit **
  23  Prefactor     .10000E-03    311.97        .73599E-06** at limit **
  24  norm          .10000E-03    21.076        .12072E-06** at limit **
  25  Prefactor     .10000E-03    151.97        .14242E-07** at limit **
  26  Prefactor     .10102E-03    438.29        .22295E-04** at limit **
  27  norm          .10000E-03    135.93       -.16037E-05** at limit **
  28  Normalizat    .46959        1.1222        .12632E-07   -.38644E-05
  29  Prefactor     .34971        1.0846        .28150E-05   -.24472E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.22911
  Prefactor  = 0.000736688
  Prefactor  = 1.47196
  norm       = 0.0001
  Prefactor  = 4.30848
  Prefactor  = 0.000100279
  norm       = 1.10908
  Prefactor  = 2.11118
  norm       = 0.000100015
  norm       = 8.1786
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00110885
  Prefactor  = 0.000100052
  Prefactor  = 271.497
  Prefactor  = 0.00199201
  norm       = 6.79466
  Prefactor  = 0.0001
  norm       = 0.000100041
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000101022
  norm       = 0.0001
  Normalizat = 0.469588
  Prefactor  = 0.349711
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   147.2156     FROM HESSE     STATUS=FAILED         9 CALLS      597 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     565.35        563.00         .0000       -1.5409    
   2  Prefactor     .73669E-03    .41785E-01   -.39245E-05   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.4720        1.0740         .0000       -1.5465    
   4  norm          .10000E-03    .24268        .97647E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.3085        1.0069         .0000       -1.5293    
   6  Prefactor     .10028E-03    .10726        .10851E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.1091        1.1459       -.16704E-04   -1.5497    
   8  Prefactor     2.1112        1.0312         .0000       -1.5417    
   9  norm          .10001E-03    .21695       -.30318E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.1786        1.0019         .0000       -1.5136    
  11  norm          .10000E-03    .23266        .54035E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .24478        .18822E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .25228        .43821E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .24242       -.91330E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .21314       -.24223E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .11089E-02    .58313E-01   -.51190E-05   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10005E-03    .24444        .11807E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     271.50        .99998       -.51911E-06   -1.2397    
  19  Prefactor     .19920E-02    .31211E-01    .56751E-04   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.7947        1.0027         .0000       -1.5187    
  21  Prefactor     .10000E-03    .23926        .12002E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10004E-03    .15915        .52573E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    .22449        .73599E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .20571        .12072E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    .20571        .14242E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10102E-03    .20571        .22295E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    .21463       -.16037E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .46959        .80141        .12632E-07   -1.1385    
  29  Prefactor     .34971        .67104        .28150E-05   -1.1946    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.27015e-10
Minuit parameter uncertainties:
  1  1.02767
  2  0.0103158
  3  1.07403
  4  3.58554e-06
  5  1.0069
  6  0.000346046
  7  1.14594
  8  1.03123
  9  0.000112486
  10  1.00188
  11  4.81582e-06
  12  2.35537e-06
  13  5.99369e-07
  14  3.03526e-06
  15  5.34469e-06
  16  0.01534
  17  0.000226093
  18  0.999984
  19  0.0153691
  20  1.00273
  21  3.92582e-07
  22  0.000161527
  23  1.30026e-05
  24  1.00399e-08
  25  4.92373e-06
  26  0.000917024
  27  8.99771e-06
  28  0.822411
  29  0.686936
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 147.215619392

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.109e-03  1.534e-02  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:  3.497e-01  6.869e-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:  4.696e-01  8.224e-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: 3.74e-06 ph cm-2 s-1
Energy Flux Upper Limit: 2.84e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/555596/likelihoodResults_557884801_558144001_4FGL_J1326.0+3507_daily_bin1229.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) = 147.215619392
delta logL = 8.25082224765e-11

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 147.215619392
delta logL = 1.66323843587e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11081E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1517       1.0000          .0000       10.000    
     3 'Normalizat'    .46959       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .34971       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=   147.2156     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      234 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10085E-03    821.15        .20694E-01** at limit **
   2  Index         2.4091        6.1194        .50000        .16872E-06
   3  Normalizat    .46963        .13099E-01    .23347E-03    .44152E-04
   4  Prefactor     .34967        .13261E-01    .26974E-03   -.24515E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100852
  Index      = 2.40911
  Normalizat = 0.469632
  Prefactor  = 0.349668
 **********
 **   18 **HESSE 
 **********

 FCN=   147.2156     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      263 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10085E-03    6817.3        .41387E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4091        6.5981        .50000       -.54472    
   3  Normalizat    .46963        .29223E-01    .46695E-04   -1.1384    
   4  Prefactor     .34967        .29584E-01    .53948E-04   -1.1946    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.56104e-10
Minuit parameter uncertainties:
  1  0.119468
  2  1448.09
  3  0.0292239
  4  0.0295854
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/555596': 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) = 147.215619175
delta logL = 2.17168718564e-07

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.009e-04  1.195e-01  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  2.409e+00  1.448e+03  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:  3.497e-01  2.959e-02  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:  4.696e-01  2.922e-02  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/555596/cmap_HighResolution_557884801_558144001_4FGL_J1326.0+3507_daily_bin1229.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.84e-01', job_status='DONE', photon_flux_upper_limit='3.74e-06', time_completed='2021-09-07 16:17:11.948252', job_id='555596', GAL2='0.35', fit_tolerance='1e-08', EG2='0.47', EG='0.47', time_epoch_completed='1631056631.95', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.35', dlogl='2.17e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1229' AND source_name='4FGL J1326.0+3507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 16:17:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0191>
Subject: Job 555596: <4FGL_J1326.0+3507_daily_bin1229> in cluster <slac> Done

Job <4FGL_J1326.0+3507_daily_bin1229> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 16:06:02 2021
Job was executed on host(s) <bullet0191>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 16:07:28 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:07:28 2021
Terminated at Tue Sep  7 16:17:12 2021
Results reported at Tue Sep  7 16:17:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1326.0+3507_daily_bin1229 201.501 35.1218 557884801 558144001 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 :                                   333.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             208.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   584 sec.
    Turnaround time :                            670 sec.

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

