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


Performing analysis on: 4FGL_J1326.0+3507_daily_bin925
RA = 201.501, Dec = 35.1218
tmin = 479088001, tmax = 479347201
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='554004', job_status='RUN', time_executed='2021-09-07 16:01:17.575974', time_epoch_executed='1631055677.58' WHERE source_name='4FGL J1326.0+3507' and cadence='daily' and bin_id='925'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/554004

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/554004/ft1_4FGL_J1326.0+3507_daily_bin925.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/554004/ft2_4FGL_J1326.0+3507_daily_bin925.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/554004/ft1_4FGL_J1326.0+3507_daily_bin925.fits outfile=/scratch/kocevski/554004/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin925.fits ra=201.501 dec=35.1218 rad=12.0 tmin=479088001.0 tmax=479347201.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.48
user 3.27
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/554004/ft1_filtered_4FGL_J1326.0+3507_daily_bin925.fits evtable="EVENTS" scfile=/scratch/kocevski/554004/ft2_4FGL_J1326.0+3507_daily_bin925.fits sctable="SC_DATA" expcube=/scratch/kocevski/554004/ltcube_479088001_479347201_4FGL_J1326.0+3507_daily_bin925.fits outfile=/scratch/kocevski/554004/expmap_479088001_479347201_4FGL_J1326.0+3507_daily_bin925.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/554004/ltcube_479088001_479347201_4FGL_J1326.0+3507_daily_bin925.fits
.....................!
real 190.63
user 185.42
sys 4.66

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/554004/ft1_filtered_4FGL_J1326.0+3507_daily_bin925.fits scfile=/scratch/kocevski/554004/ft2_4FGL_J1326.0+3507_daily_bin925.fits outfile=/scratch/kocevski/554004/cmap_479088001_479347201_4FGL_J1326.0+3507_daily_bin925.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.36
sys 0.17

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

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

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

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 4498.93958111

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    12.582       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.6228       1.0000         .10000E-03   10000.    
     4 'norm      '    12.996       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.5399       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.6747       1.0000         .10000E-03   10000.    
    10 'norm      '    21.941       1.0000         .10000E-03   10000.    
    11 'norm      '    5.7954       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.7029       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.1380       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.1400       1.0000         .10000E-03   10000.    
    18 'Prefactor '    34.340       1.0000         .10000E-03   10000.    
    19 'Prefactor '    32.510       1.0000         .10000E-03   10000.    
    20 'norm      '    2.0157       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.7775       1.0000         .10000E-03   10000.    
    22 'norm      '    27.664       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.5044       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .81240       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .87557       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=   4498.927     FROM MIGRAD    STATUS=CONVERGED    691 CALLS     3670 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.7500       -.10486E-06** at limit **
   2  Prefactor     12.631        142.81       -.16161E-04   -.75907E-04
   3  Prefactor     1.6226        3.4609       -.14984E-06   -.11747E-03
   4  norm          12.995        6.2899        .47146E-06    .10165E-03
   5  Prefactor     .10000E-03    21.384        .94214E-06** at limit **
   6  Prefactor     .10000E-03    12.160        .38822E-06** at limit **
   7  norm          1.5399        2.9024        .27652E-07   -.12304E-04
   8  Prefactor     .10000E-03    5.7530       -.19770E-06** at limit **
   9  norm          2.6747        2.7707        .36854E-07    .50762E-04
  10  norm          21.941        15.915        .61556E-07    .27444E-05
  11  norm          5.7958        3.6175       -.18363E-06   -.31829E-03
  12  norm          .10000E-03    5.3023       -.35186E-06** at limit **
  13  norm          .10000E-03    5.6883       -.16155E-06** at limit **
  14  Prefactor     1.7029        1.8991       -.39681E-07    .48672E-05
  15  Prefactor     1.1376        18.637       -.22326E-06   -.51840E-04
  16  Prefactor     .10000E-03    16.987       -.16327E-05** at limit **
  17  Prefactor     1.1428        75.513        .40214E-04   -.26610E-04
  18  Prefactor     34.337        29.508       -.39642E-05    .67255E-04
  19  Prefactor     32.514        57.396       -.58807E-07    .11294E-04
  20  norm          2.0158        1.6836        .76556E-07    .90060E-04
  21  Prefactor     2.7777        4.0958       -.23945E-06   -.35047E-04
  22  norm          27.663        16.153        .19803E-06    .61884E-04
  23  Prefactor     .10000E-03    6.4629       -.35460E-06** at limit **
  24  norm          2.5044        2.6248       -.27970E-07   -.47429E-04
  25  Prefactor     .10000E-03    3.5826       -.78836E-07** at limit **
  26  Prefactor     .10000E-03    5.3837        .80347E-07** at limit **
  27  norm          .10000E-03    7.2781        .21273E-06** at limit **
  28  Normalizat    .81235        .17381       -.11437E-05    .14332E-03
  29  Prefactor     .87562        .20873        .65388E-06    .10731E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 12.6314
  Prefactor  = 1.62257
  norm       = 12.9954
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.53993
  Prefactor  = 0.0001
  norm       = 2.67473
  norm       = 21.9407
  norm       = 5.79583
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.70294
  Prefactor  = 1.13758
  Prefactor  = 0.0001
  Prefactor  = 1.14275
  Prefactor  = 34.3375
  Prefactor  = 32.514
  norm       = 2.01582
  Prefactor  = 2.77767
  norm       = 27.6631
  Prefactor  = 0.0001
  norm       = 2.50442
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.812351
  Prefactor  = 0.875624
 **********
 **   18 **HESSE 
 **********

 FCN=   4498.927     FROM HESSE     STATUS=OK           557 CALLS     4227 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.7537        .17020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.631        144.04        .11293E-03   -1.4997    
   3  Prefactor     1.6226        3.4178        .17692E-03   -1.5453    
   4  norm          12.995        6.2888        .10628E-03   -1.4987    
   5  Prefactor     .10000E-03    21.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.5399        2.8679        .15251E-03   -1.5460    
   8  Prefactor     .10000E-03    5.7678        .15710E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.6747        2.7754        .11057E-03   -1.5381    
  10  norm          21.941        15.918        .85511E-04   -1.4771    
  11  norm          5.7958        3.5856        .94795E-04   -1.5226    
  12  norm          .10000E-03    5.3201        .14998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.6891        .15625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.7029        1.8807        .92984E-04   -1.5447    
  15  Prefactor     1.1376        18.462        .43635E-03   -1.5495    
  16  Prefactor     .10000E-03    16.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.1428        77.140        .21777E-02   -1.5494    
  18  Prefactor     34.337        29.842        .68384E-04   -1.4535    
  19  Prefactor     32.514        57.540        .70277E-04   -1.4567    
  20  norm          2.0158        1.6753        .75583E-04   -1.5424    
  21  Prefactor     2.7777        4.1013        .15442E-03   -1.5375    
  22  norm          27.663        16.176        .76169E-04   -1.4656    
  23  Prefactor     .10000E-03    6.4771        .16656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.5044        2.6203        .10816E-03   -1.5391    
  25  Prefactor     .10000E-03    3.5865        .12399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    5.3895        .15199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    7.2947        .17672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .81235        .20541        .21486E-03   -.99612    
  29  Prefactor     .87562        .24573        .26150E-03   -.96998    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.12993e-10
Minuit parameter uncertainties:
  1  2.29435e-06
  2  85.5695
  3  3.41819
  4  6.28914
  5  5.09739e-05
  6  4.52653e-06
  7  2.86811
  8  9.89948e-06
  9  2.77555
  10  15.9206
  11  3.58574
  12  8.23393e-05
  13  1.06404e-05
  14  1.88072
  15  9.16849
  16  0.000149818
  17  18.8023
  18  29.8551
  19  57.6381
  20  1.67537
  21  4.10175
  22  16.179
  23  2.82558e-05
  24  2.62039
  25  8.80774e-06
  26  5.72578e-06
  27  1.28464e-06
  28  0.205608
  29  0.246039
Done.

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

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  1.498e-04  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:  8.756e-01  2.460e-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:  8.124e-01  2.056e-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: 4.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/554004/likelihoodResults_479088001_479347201_4FGL_J1326.0+3507_daily_bin925.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) = 4498.92731844
delta logL = -0.000279979567495

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4498.92703999
delta logL = -1.53717337525e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5227       1.0000          .0000       10.000    
     3 'Normalizat'    .81234       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87563       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=   4498.927     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      266 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10293E-03    3.1463        .18142E-01** at limit **
   2  Index         2.4413        6.1506        .50000        .22055E-04
   3  Normalizat    .81235        .20074E-02    .21487E-03   -.48788E-03
   4  Prefactor     .87562        .25436E-02    .26150E-03   -.40861E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102925
  Index      = 2.44133
  Normalizat = 0.81235
  Prefactor  = 0.875623
 **********
 **   18 **HESSE 
 **********

 FCN=   4498.927     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      295 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10293E-03    68.047        .23024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4413        5.9018        .50000       -.53720    
   3  Normalizat    .81235        .93821E-02    .42973E-04   -.99612    
   4  Prefactor     .87562        .11888E-01    .52300E-04   -.96998    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.2575e-08
Minuit parameter uncertainties:
  1  0.0282504
  2  241.261
  3  0.00938213
  4  0.0118883
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/554004': 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) = 4498.92703967
delta logL = -1.21407265397e-06

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.029e-04  2.825e-02  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  2.441e+00  2.413e+02  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.756e-01  1.189e-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:  8.124e-01  9.382e-03  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/554004/cmap_HighResolution_479088001_479347201_4FGL_J1326.0+3507_daily_bin925.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.08e-03', job_status='DONE', photon_flux_upper_limit='4.06e-08', time_completed='2021-09-07 16:12:49.199320', job_id='554004', GAL2='0.88', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1631056369.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='-1.21e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='925' AND source_name='4FGL J1326.0+3507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 16:12:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 554004: <4FGL_J1326.0+3507_daily_bin925> in cluster <slac> Done

Job <4FGL_J1326.0+3507_daily_bin925> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep  7 16:00:50 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 16:01:01 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:01:01 2021
Terminated at Tue Sep  7 16:12:49 2021
Results reported at Tue Sep  7 16:12:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1326.0+3507_daily_bin925 201.501 35.1218 479088001 479347201 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 :                                   690.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             374.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   709 sec.
    Turnaround time :                            719 sec.

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

