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


Performing analysis on: 4FGL_J1326.0+3507_daily_bin1145
RA = 201.501, Dec = 35.1218
tmin = 536112001, tmax = 536371201
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='555457', job_status='RUN', time_executed='2021-09-07 16:07:06.337153', time_epoch_executed='1631056026.34' WHERE source_name='4FGL J1326.0+3507' and cadence='daily' and bin_id='1145'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/555457

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/555457/ft1_4FGL_J1326.0+3507_daily_bin1145.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/555457/ft2_4FGL_J1326.0+3507_daily_bin1145.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/555457/ft1_4FGL_J1326.0+3507_daily_bin1145.fits outfile=/scratch/kocevski/555457/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin1145.fits ra=201.501 dec=35.1218 rad=12.0 tmin=536112001.0 tmax=536371201.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.60
user 3.36
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/555457/ft1_filtered_4FGL_J1326.0+3507_daily_bin1145.fits" evtable="EVENTS" scfile=/scratch/kocevski/555457/ft2_4FGL_J1326.0+3507_daily_bin1145.fits sctable="SC_DATA" outfile=/scratch/kocevski/555457/ltcube_536112001_536371201_4FGL_J1326.0+3507_daily_bin1145.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/555457/ft2_4FGL_J1326.0+3507_daily_bin1145.fits
.....................!
real 17.72
user 17.27
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/555457/ft1_filtered_4FGL_J1326.0+3507_daily_bin1145.fits evtable="EVENTS" scfile=/scratch/kocevski/555457/ft2_4FGL_J1326.0+3507_daily_bin1145.fits sctable="SC_DATA" expcube=/scratch/kocevski/555457/ltcube_536112001_536371201_4FGL_J1326.0+3507_daily_bin1145.fits outfile=/scratch/kocevski/555457/expmap_536112001_536371201_4FGL_J1326.0+3507_daily_bin1145.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/555457/ltcube_536112001_536371201_4FGL_J1326.0+3507_daily_bin1145.fits
.....................!
real 193.26
user 187.51
sys 5.04

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/555457/ft1_filtered_4FGL_J1326.0+3507_daily_bin1145.fits scfile=/scratch/kocevski/555457/ft2_4FGL_J1326.0+3507_daily_bin1145.fits outfile=/scratch/kocevski/555457/cmap_536112001_536371201_4FGL_J1326.0+3507_daily_bin1145.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.57
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/555457/ft1_filtered_4FGL_J1326.0+3507_daily_bin1145.fits scfile=/scratch/kocevski/555457/ft2_4FGL_J1326.0+3507_daily_bin1145.fits outfile=/scratch/kocevski/555457/cmap_HighResolution_536112001_536371201_4FGL_J1326.0+3507_daily_bin1145.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.57
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7749       1.0000         .10000E-03   10000.    
     2 'Prefactor '    54.512       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.8063       1.0000         .10000E-03   10000.    
     5 'Prefactor '    44.542       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .25332       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.2602       1.0000         .10000E-03   10000.    
    12 'norm      '    .11078E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    8.4249       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.823       1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.936       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    7.9248       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    10.847       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    52.648       1.0000         .10000E-03   10000.    
    27 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2218       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .50362       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=   6075.439     FROM MIGRAD    STATUS=CONVERGED    724 CALLS     3700 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7762        19.342        .85353E-05   -.53090E-03
   2  Prefactor     54.519        62.849        .32980E-05    .12780E-03
   3  Prefactor     .10000E-03    4.3080        .70957E-07** at limit **
   4  norm          5.8061        3.9093       -.36693E-07    .76317E-04
   5  Prefactor     44.556        39.936        .56534E-05    .43668E-03
   6  Prefactor     .10000E-03    8.9936        .59711E-06** at limit **
   7  norm          .10000E-03    2.5857       -.61368E-07** at limit **
   8  Prefactor     .10000E-03    5.3822        .51737E-06** at limit **
   9  norm          .27400        2.3841        .47818E-07   -.23382E-03
  10  norm          .10000E-03    4.9012       -.86839E-06** at limit **
  11  norm          3.2645        3.7457        .32014E-07   -.14740E-03
  12  norm          .10000E-03    4.6445        .16662E-06** at limit **
  13  norm          8.4272        13.959       -.10398E-06   -.34958E-04
  14  Prefactor     .10000E-03    2.8794       -.62769E-07** at limit **
  15  Prefactor     11.830        19.353        .15693E-05    .76072E-04
  16  Prefactor     25.931        57.580       -.37432E-05   -.83501E-04
  17  Prefactor     .10000E-03    61.093        .26022E-06** at limit **
  18  Prefactor     .10000E-03    11.278        .20643E-05** at limit **
  19  Prefactor     .10000E-03    19.644        .10895E-05** at limit **
  20  norm          7.9248        2.0087        .41959E-07    .79801E-04
  21  Prefactor     .10001E-03    2.1541       -.47720E-06** at limit **
  22  norm          .10000E-03    3.9819       -.83933E-07** at limit **
  23  Prefactor     .10000E-03    6.4642        .76542E-06** at limit **
  24  norm          10.847        4.8998        .14367E-06   -.37359E-03
  25  Prefactor     .10000E-03    13.471       -.26582E-05** at limit **
  26  Prefactor     52.654        23.070        .99001E-06    .39290E-03
  27  norm          .10000E-03    8.3849       -.54102E-06** at limit **
  28  Normalizat    1.2218        .16755       -.78004E-06    .24869E-03
  29  Prefactor     .50349        .19233       -.19380E-06    .73709E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.77624
  Prefactor  = 54.5194
  Prefactor  = 0.0001
  norm       = 5.80613
  Prefactor  = 44.5563
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.274003
  norm       = 0.0001
  norm       = 3.26448
  norm       = 0.000100001
  norm       = 8.42719
  Prefactor  = 0.0001
  Prefactor  = 11.8304
  Prefactor  = 25.9305
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 7.92481
  Prefactor  = 0.000100008
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10.8473
  Prefactor  = 0.000100002
  Prefactor  = 52.6542
  norm       = 0.0001
  Normalizat = 1.22185
  Prefactor  = 0.503493
 **********
 **   18 **HESSE 
 **********

 FCN=   6075.439     FROM HESSE     STATUS=OK           547 CALLS     4247 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7762        28.898        .12215E-02   -1.5375    
   2  Prefactor     54.519        63.093        .54327E-04   -1.4230    
   3  Prefactor     .10000E-03    4.3852        .15805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.8061        3.9038        .11969E-03   -1.5226    
   5  Prefactor     44.556        41.343        .60072E-04   -1.4372    
   6  Prefactor     .10000E-03    9.0063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.6641        .24471E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.3961        .17667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .27400        10.254        .22973E-02   -1.5603    
  10  norm          .10000E-03    4.9503        .16920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.2645        3.2987        .13098E-03   -1.5347    
  12  norm          .10000E-03    8.8667        .28659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.4272        13.954        .13811E-03   -1.5127    
  14  Prefactor     .10000E-03    2.9195        .25554E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.830        19.247        .11651E-03   -1.5020    
  16  Prefactor     25.931        57.668        .78660E-04   -1.4689    
  17  Prefactor     .10000E-03    63.377        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    19.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.9248        2.0101        .53483E-04   -1.5145    
  21  Prefactor     .10001E-03    7.7376        .21571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    3.9884        .15191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.4777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          10.847        4.9159        .56002E-03   -1.5049    
  25  Prefactor     .10000E-03    13.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     52.654        23.244        .55276E-04   -1.4255    
  27  norm          .10000E-03    8.4105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2218        .18750        .20063E-03   -.85930    
  29  Prefactor     .50349        .21467        .35306E-03   -1.1182    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.04136e-09
Minuit parameter uncertainties:
  1  17.9247
  2  63.1706
  3  2.17354e-06
  4  3.90402
  5  41.37
  6  4.73677e-05
  7  7.0546e-07
  8  3.51614e-05
  9  3.35246
  10  7.94204e-05
  11  3.29892
  12  0.000145851
  13  13.9597
  14  2.84618e-06
  15  19.2574
  16  57.7922
  17  2.4559e-05
  18  0.000208051
  19  0.000147848
  20  2.01008
  21  0.000509185
  22  5.69463e-06
  23  5.18734e-05
  24  4.91613
  25  0.000370416
  26  23.2484
  27  5.84446e-05
  28  0.187606
  29  0.215015
Done.

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

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  2.593e+01  5.779e+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:  5.035e-01  2.150e-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.222e+00  1.876e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.28
Ra Dec: 201.501 35.122
Photon Flux Upper Limit: 7.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.59e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/555457/likelihoodResults_536112001_536371201_4FGL_J1326.0+3507_daily_bin1145.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6075.28805953
delta logL = 0.150995153709

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6075.2855905
delta logL = 0.153464178547

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.557       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7420       1.0000          .0000       10.000    
     3 'Normalizat'    1.2063       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .51286       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=   6075.286     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      313 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.549        52.661        .10155E-03   -.31664E-03
   2  Index         2.7435        1.5299        .79623E-02   -.10215E-03
   3  Normalizat    1.2060        .18507        .20173E-03    .19837E-04
   4  Prefactor     .51313        .21367        .34986E-03   -.20147E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.5488
  Index      = 2.74354
  Normalizat = 1.20596
  Prefactor  = 0.51313
 **********
 **   18 **HESSE 
 **********

 FCN=   6075.286     FROM HESSE     STATUS=OK            25 CALLS      338 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.549        38.395        .20309E-04   -1.4919    
   2  Index         2.7435        1.1223        .31849E-03   -.46821    
   3  Normalizat    1.2060        .18419        .40347E-04   -.86419    
   4  Prefactor     .51313        .21269        .13994E-04   -1.1138    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.76909e-10
Minuit parameter uncertainties:
  1  38.4558
  2  1.13451
  3  0.184288
  4  0.213016
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/555457': 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) = 6075.28558736
delta logL = 0.153467322896

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.555e+01  3.846e+01  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  2.744e+00  1.135e+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:  5.131e-01  2.130e-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.206e+00  1.843e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.28
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/555457/cmap_HighResolution_536112001_536371201_4FGL_J1326.0+3507_daily_bin1145.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.59e-03', job_status='DONE', photon_flux_upper_limit='7.36e-08', time_completed='2021-09-07 16:21:03.362249', job_id='555457', GAL2='0.51', fit_tolerance='1e-08', EG2='1.21', EG='1.22', time_epoch_completed='1631056863.36', return_code2='0', ts='0.28', comment='SUCCESS', return_code='0', GAL='0.50', dlogl='1.53e-01', ts2='0.62', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1145' AND source_name='4FGL J1326.0+3507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 16:21:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 555457: <4FGL_J1326.0+3507_daily_bin1145> in cluster <slac> Done

Job <4FGL_J1326.0+3507_daily_bin1145> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 16:05:49 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 16:06:49 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:06:49 2021
Terminated at Tue Sep  7 16:21:03 2021
Results reported at Tue Sep  7 16:21:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1326.0+3507_daily_bin1145 201.501 35.1218 536112001 536371201 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 :                                   831.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             324.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            914 sec.

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

