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


Performing analysis on: 4FGL_J1326.0+3507_daily_bin38
RA = 201.501, Dec = 35.1218
tmin = 249177601, tmax = 249436801
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='547840', job_status='RUN', time_executed='2021-09-07 15:46:23.400733', time_epoch_executed='1631054783.4' WHERE source_name='4FGL J1326.0+3507' and cadence='daily' and bin_id='38'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/547840

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/547840/ft1_4FGL_J1326.0+3507_daily_bin38.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/547840/ft2_4FGL_J1326.0+3507_daily_bin38.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/547840/ft1_4FGL_J1326.0+3507_daily_bin38.fits outfile=/scratch/kocevski/547840/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin38.fits ra=201.501 dec=35.1218 rad=12.0 tmin=249177601.0 tmax=249436801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 1.49
user 1.27
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/547840/ft1_filtered_4FGL_J1326.0+3507_daily_bin38.fits evtable="EVENTS" scfile=/scratch/kocevski/547840/ft2_4FGL_J1326.0+3507_daily_bin38.fits sctable="SC_DATA" expcube=/scratch/kocevski/547840/ltcube_249177601_249436801_4FGL_J1326.0+3507_daily_bin38.fits outfile=/scratch/kocevski/547840/expmap_249177601_249436801_4FGL_J1326.0+3507_daily_bin38.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/547840/ltcube_249177601_249436801_4FGL_J1326.0+3507_daily_bin38.fits
.....................!
real 194.47
user 189.12
sys 4.80

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/547840/ft1_filtered_4FGL_J1326.0+3507_daily_bin38.fits scfile=/scratch/kocevski/547840/ft2_4FGL_J1326.0+3507_daily_bin38.fits outfile=/scratch/kocevski/547840/cmap_249177601_249436801_4FGL_J1326.0+3507_daily_bin38.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/547840/ft1_filtered_4FGL_J1326.0+3507_daily_bin38.fits scfile=/scratch/kocevski/547840/ft2_4FGL_J1326.0+3507_daily_bin38.fits outfile=/scratch/kocevski/547840/cmap_HighResolution_249177601_249436801_4FGL_J1326.0+3507_daily_bin38.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10183E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    41.962       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.6504       1.0000         .10000E-03   10000.    
     4 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.9690       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.408       1.0000         .10000E-03   10000.    
     9 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    8.2493       1.0000         .10000E-03   10000.    
    11 'norm      '    12.652       1.0000         .10000E-03   10000.    
    12 'norm      '    .10127E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    8.9901       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12839E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    123.66       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10277E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.5901       1.0000         .10000E-03   10000.    
    22 'norm      '    6.7653       1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.7603       1.0000         .10000E-03   10000.    
    24 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .47309E-02   1.0000         .10000E-03   10000.    
    26 'Prefactor '    9.2029       1.0000         .10000E-03   10000.    
    27 'norm      '    13.553       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1565       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .69189       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=   4527.621     FROM MIGRAD    STATUS=CONVERGED    708 CALLS     3668 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.2456        .66273E-07** at limit **
   2  Prefactor     41.949        51.435       -.17913E-05   -.28011E-03
   3  Prefactor     3.6523        5.3396        .31180E-05    .88376E-04
   4  norm          .10000E-03    2.2522       -.69629E-07** at limit **
   5  Prefactor     2.9735        125.88        .31781E-05    .43037E-04
   6  Prefactor     .10000E-03    9.5920        .13236E-06** at limit **
   7  norm          .10000E-03    3.9861       -.14442E-06** at limit **
   8  Prefactor     11.393        17.668       -.23728E-05   -.35886E-03
   9  norm          .10000E-03    2.7461       -.11851E-06** at limit **
  10  norm          8.2491        8.4463       -.58810E-07   -.17688E-05
  11  norm          12.656        4.6614       -.13082E-07   -.47980E-04
  12  norm          .10000E-03    10.179       -.22670E-07** at limit **
  13  norm          8.9898        16.771        .49203E-08   -.13633E-04
  14  Prefactor     .10000E-03    3.5739        .28501E-06** at limit **
  15  Prefactor     .10000E-03    6.1931       -.33793E-06** at limit **
  16  Prefactor     123.66        75.396        .72509E-06    .12786E-03
  17  Prefactor     .10000E-03    5.3177        .39214E-06** at limit **
  18  Prefactor     .10000E-03    18.267       -.75059E-06** at limit **
  19  Prefactor     .10001E-03    28.461        .20408E-05** at limit **
  20  norm          .10000E-03    .67771        .18774E-07** at limit **
  21  Prefactor     1.5902        3.5344        .46529E-06   -.31085E-04
  22  norm          6.7650        12.415        .28104E-06    .11062E-03
  23  Prefactor     9.7475        18.284       -.19071E-06    .96511E-04
  24  norm          .10000E-03    2.3588        .68949E-07** at limit **
  25  Prefactor     .10028E-03    16.357       -.44555E-05** at limit **
  26  Prefactor     9.1856        19.075        .60276E-06    .56282E-03
  27  norm          13.547        13.631        .23599E-06    .37069E-03
  28  Normalizat    1.1567        .18497       -.43972E-07    .23367E-03
  29  Prefactor     .69169        .22388       -.33052E-06    .14194E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 41.9495
  Prefactor  = 3.65232
  norm       = 0.0001
  Prefactor  = 2.97353
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.3933
  norm       = 0.0001
  norm       = 8.24913
  norm       = 12.656
  norm       = 0.0001
  norm       = 8.98981
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 123.661
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.00010001
  norm       = 0.0001
  Prefactor  = 1.59017
  norm       = 6.76501
  Prefactor  = 9.74746
  norm       = 0.0001
  Prefactor  = 0.000100277
  Prefactor  = 9.18562
  norm       = 13.5474
  Normalizat = 1.15668
  Prefactor  = 0.69169
 **********
 **   18 **HESSE 
 **********

 FCN=   4527.621     FROM HESSE     STATUS=OK           547 CALLS     4215 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.2519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     41.949        51.937        .61884E-04   -1.4412    
   3  Prefactor     3.6523        5.4301        .89457E-03   -1.5326    
   4  norm          .10000E-03    2.2800        .98570E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.9735        126.18        .23565E-03   -1.5363    
   6  Prefactor     .10000E-03    9.6075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.0444        .13118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.393        17.786        .11861E-03   -1.5033    
   9  norm          .10000E-03    2.7616        .10882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.2491        8.4471        .13958E-03   -1.5133    
  11  norm          12.656        4.6234        .84060E-04   -1.4996    
  12  norm          .10000E-03    10.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.9898        16.764        .13367E-03   -1.5108    
  14  Prefactor     .10000E-03    3.7002        .24705E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.2338        .16370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     123.66        75.245        .36196E-04   -1.3479    
  17  Prefactor     .10000E-03    5.3382        .15171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    18.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    28.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .70216        .10811E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.5902        3.5108        .17988E-03   -1.5456    
  22  norm          6.7650        12.406        .15426E-03   -1.5188    
  23  Prefactor     9.7475        18.129        .12827E-03   -1.5083    
  24  norm          .10000E-03    2.4209        .20177E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10028E-03    41.370        .39055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     9.1856        16.710        .13211E-03   -1.5102    
  27  norm          13.547        13.614        .10880E-03   -1.4972    
  28  Normalizat    1.1567        .21758        .20065E-03   -.87952    
  29  Prefactor     .69169        .26182        .30946E-03   -1.0385    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.92809e-09
Minuit parameter uncertainties:
  1  3.47205e-05
  2  51.9928
  3  5.4308
  4  1.37285e-06
  5  38.8279
  6  6.38494e-05
  7  3.34346e-05
  8  17.7944
  9  1.38988e-06
  10  8.44829
  11  4.62355
  12  1.19826e-05
  13  16.7726
  14  1.99448e-05
  15  9.69311e-05
  16  75.3032
  17  8.60221e-05
  18  0.000335683
  19  0.00107216
  20  1.05762e-06
  21  3.51121
  22  12.4105
  23  18.1397
  24  1.06579e-05
  25  0.00677869
  26  16.7182
  27  13.6167
  28  0.217751
  29  0.262292
Done.

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

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.237e+02  7.530e+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:  6.917e-01  2.623e-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.157e+00  2.178e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.97
Ra Dec: 201.501 35.122
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 5.70e-08 +/- 3.47e-08
Energy Flux (Fixed Index): 2.81e-05 +/- 1.71e-05

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) = 4527.59651147
delta logL = 0.0249204934125

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4527.59611358
delta logL = 0.02531838099

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    107.79       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2539       1.0000          .0000       10.000    
     3 'Normalizat'    1.1512       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69616       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=   4527.596     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      276 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     107.81        103.12        .38737E-04   -.25334E-03
   2  Index         2.2540        .49007        .40997E-02   -.27538E-03
   3  Normalizat    1.1512        .21473        .20104E-03    .28218E-03
   4  Prefactor     .69615        .26110        .30855E-03    .23780E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 107.805
  Index      = 2.25399
  Normalizat = 1.15116
  Prefactor  = 0.696147
 **********
 **   18 **HESSE 
 **********

 FCN=   4527.596     FROM HESSE     STATUS=OK            25 CALLS      301 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     107.81        97.101        .77473E-05   -1.3628    
   2  Index         2.2540        .46127        .16399E-03   -.58141    
   3  Normalizat    1.1512        .21478        .40208E-04   -.88126    
   4  Prefactor     .69615        .26120        .12342E-04   -1.0368    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.52744e-10
Minuit parameter uncertainties:
  1  97.2442
  2  0.462212
  3  0.214945
  4  0.261656
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/547840': 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) = 4527.5961134
delta logL = 0.0253185677839

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.078e+02  9.724e+01  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  2.254e+00  4.622e-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:  6.961e-01  2.617e-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.151e+00  2.149e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.01
Ra Dec: 201.501 35.122
Photon Index (Free Index): 2.25 +/- 0.46
Photon Flux (Free Index): 6.15e-08 +/- 4.12e-08
Energy Flux (Free Index): 2.51e-05 +/- 1.92e-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/547840/cmap_HighResolution_249177601_249436801_4FGL_J1326.0+3507_daily_bin38.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.70e-08', energy_flux2='2.51e-05', photon_flux_error='3.47e-08', dlogl='2.53e-02', energy_flux='2.81e-05', photon_flux2='6.15e-08', job_status='DONE', time_completed='2021-09-07 15:56:43.588064', photon_index_error2='0.46', photon_index2='2.25', ts='4.97', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', energy_flux_error2='1.92e-05', EG='1.16', time_epoch_completed='1631055403.59', return_code='0', job_id='547840', GAL2='0.70', EG2='1.15', return_code2='0', energy_flux_error='1.71e-05', photon_flux_error2='4.12e-08', ts2='5.01', photon_index='2.15' WHERE bin_id='38' AND source_name='4FGL J1326.0+3507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 15:56:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 547840: <4FGL_J1326.0+3507_daily_bin38> in cluster <slac> Done

Job <4FGL_J1326.0+3507_daily_bin38> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 15:40:36 2021
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 15:44:21 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:44:21 2021
Terminated at Tue Sep  7 15:56:44 2021
Results reported at Tue Sep  7 15:56:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1326.0+3507_daily_bin38 201.501 35.1218 249177601 249436801 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 :                                   620.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             320.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   742 sec.
    Turnaround time :                            968 sec.

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

