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


Performing analysis on: 4FGL_J1326.0+3507_daily_bin1181
RA = 201.501, Dec = 35.1218
tmin = 545443201, tmax = 545702401
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='555513', job_status='RUN', time_executed='2021-09-07 16:10:01.281625', time_epoch_executed='1631056201.28' WHERE source_name='4FGL J1326.0+3507' and cadence='daily' and bin_id='1181'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/555513

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/555513/ft1_4FGL_J1326.0+3507_daily_bin1181.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/555513/ft2_4FGL_J1326.0+3507_daily_bin1181.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/555513/ft1_4FGL_J1326.0+3507_daily_bin1181.fits outfile=/scratch/kocevski/555513/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin1181.fits ra=201.501 dec=35.1218 rad=12.0 tmin=545443201.0 tmax=545702401.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.26
user 4.00
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/555513/ft1_filtered_4FGL_J1326.0+3507_daily_bin1181.fits" evtable="EVENTS" scfile=/scratch/kocevski/555513/ft2_4FGL_J1326.0+3507_daily_bin1181.fits sctable="SC_DATA" outfile=/scratch/kocevski/555513/ltcube_545443201_545702401_4FGL_J1326.0+3507_daily_bin1181.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/555513/ft2_4FGL_J1326.0+3507_daily_bin1181.fits
.....................!
real 15.68
user 15.32
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/555513/ft1_filtered_4FGL_J1326.0+3507_daily_bin1181.fits evtable="EVENTS" scfile=/scratch/kocevski/555513/ft2_4FGL_J1326.0+3507_daily_bin1181.fits sctable="SC_DATA" expcube=/scratch/kocevski/555513/ltcube_545443201_545702401_4FGL_J1326.0+3507_daily_bin1181.fits outfile=/scratch/kocevski/555513/expmap_545443201_545702401_4FGL_J1326.0+3507_daily_bin1181.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/555513/ltcube_545443201_545702401_4FGL_J1326.0+3507_daily_bin1181.fits
.....................!
real 192.73
user 188.00
sys 4.12

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/555513/ft1_filtered_4FGL_J1326.0+3507_daily_bin1181.fits scfile=/scratch/kocevski/555513/ft2_4FGL_J1326.0+3507_daily_bin1181.fits outfile=/scratch/kocevski/555513/cmap_545443201_545702401_4FGL_J1326.0+3507_daily_bin1181.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/555513/ft1_filtered_4FGL_J1326.0+3507_daily_bin1181.fits scfile=/scratch/kocevski/555513/ft2_4FGL_J1326.0+3507_daily_bin1181.fits outfile=/scratch/kocevski/555513/cmap_HighResolution_545443201_545702401_4FGL_J1326.0+3507_daily_bin1181.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.58
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8224       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.9499       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.8648       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.4247       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 '    .10018E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    93.545       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10226E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    43.209       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    3.3598       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10007E-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'    .81300       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .81269       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=   2532.255     FROM MIGRAD    STATUS=CONVERGED    702 CALLS     3629 TOTAL
                     EDM=   .60E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8367        38.301        .16696E-04    .36437E-06
   2  Prefactor     .10000E-03    69.588        .30453E-04** at limit **
   3  Prefactor     7.9506        9.7291       -.12296E-05    .48877E-04
   4  norm          .10000E-03    4.7748       -.10649E-06** at limit **
   5  Prefactor     .10000E-03    104.28       -.55965E-04** at limit **
   6  Prefactor     .10000E-03    15.882        .54143E-06** at limit **
   7  norm          4.8646        3.6283        .42882E-07    .21199E-03
   8  Prefactor     .10000E-03    47.721       -.10439E-04** at limit **
   9  norm          .10000E-03    3.5711       -.92691E-07** at limit **
  10  norm          .10000E-03    14.419       -.42168E-05** at limit **
  11  norm          3.4251        6.0022        .75958E-06   -.62395E-04
  12  norm          .10000E-03    5.7854       -.13673E-05** at limit **
  13  norm          .10000E-03    5.9974        .12784E-05** at limit **
  14  Prefactor     .10000E-03    3.1332        .21911E-06** at limit **
  15  Prefactor     .10000E-03    48.619       -.35753E-05** at limit **
  16  Prefactor     93.537        87.190       -.70303E-05    .23047E-04
  17  Prefactor     .10000E-03    27.219       -.12586E-04** at limit **
  18  Prefactor     43.205        37.146       -.20334E-05    .13471E-03
  19  Prefactor     .10000E-03    72.855        .29371E-04** at limit **
  20  norm          .10000E-03    1.6193        .99031E-07** at limit **
  21  Prefactor     .10000E-03    3.3587        .33417E-07** at limit **
  22  norm          .10000E-03    10.697        .91235E-05** at limit **
  23  Prefactor     .10000E-03    12.978       -.13651E-05** at limit **
  24  norm          3.3600        4.5576        .74860E-06   -.11713E-04
  25  Prefactor     .10000E-03    9.6452       -.51991E-05** at limit **
  26  Prefactor     .10000E-03    21.155        .14837E-04** at limit **
  27  norm          .10000E-03    13.367       -.30295E-05** at limit **
  28  Normalizat    .81328        .24067        .66523E-06    .64668E-04
  29  Prefactor     .81238        .26783       -.25762E-06    .74676E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.83672
  Prefactor  = 0.0001
  Prefactor  = 7.95058
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.8646
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.42509
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 93.537
  Prefactor  = 0.0001
  Prefactor  = 43.2047
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.36002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.813279
  Prefactor  = 0.812375
 **********
 **   18 **HESSE 
 **********

 FCN=   2532.255     FROM HESSE     STATUS=OK           537 CALLS     4166 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8367        38.214        .14337E-03   -1.5148    
   2  Prefactor     .10000E-03    69.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.9506        9.7090        .14221E-03   -1.5144    
   4  norm          .10000E-03    4.8026        .10723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    104.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.8646        3.6297        .40156E-03   -1.5267    
   8  Prefactor     .10000E-03    47.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.5818        .92860E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    14.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.4251        5.9560        .14972E-03   -1.5338    
  12  norm          .10000E-03    5.7983        .11778E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.9985        .12037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.1836        .86819E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    49.925        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     93.537        87.049        .20776E-03   -1.3771    
  17  Prefactor     .10000E-03    27.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     43.205        37.407        .60988E-04   -1.4392    
  19  Prefactor     .10000E-03    72.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.6194        .62542E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.4285        .89993E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    10.701        .16079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    12.979        .17709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.3600        4.5521        .12178E-03   -1.5341    
  25  Prefactor     .10000E-03    9.6482        .15267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    21.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    13.368        .17973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .81328        .28326        .22732E-03   -.99578    
  29  Prefactor     .81238        .31369        .26225E-03   -.99274    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27736e-10
Minuit parameter uncertainties:
  1  34.6462
  2  5.28736e-05
  3  9.71089
  4  1.68164e-05
  5  1.19373e-06
  6  1.51505e-05
  7  3.62983
  8  7.61376e-05
  9  4.62451e-06
  10  1.16898e-08
  11  5.95702
  12  1.79223e-05
  13  4.05469e-07
  14  2.24309e-05
  15  0.000398541
  16  87.1677
  17  0.000153462
  18  37.4273
  19  9.1487e-06
  20  6.70886e-09
  21  8.10392e-06
  22  9.11705e-07
  23  1.56989e-06
  24  4.55261
  25  1.76264e-06
  26  4.67397e-06
  27  4.15966e-06
  28  0.283773
  29  0.314382
Done.

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

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  9.354e+01  8.717e+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:  8.124e-01  3.144e-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.133e-01  2.838e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.18
Ra Dec: 201.501 35.122
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 4.31e-08 +/- 4.01e-08
Energy Flux (Fixed Index): 2.12e-05 +/- 1.98e-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) = 2532.2298944
delta logL = 0.0249254091514

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2532.2265582
delta logL = 0.0282616055679

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    109.31       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9498       1.0000          .0000       10.000    
     3 'Normalizat'    .82422       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80455       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=   2532.227     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      290 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     109.31        119.55        .38470E-04    .65015E-06
   2  Index         1.9498        .83707        .74201E-02   -.13889E-04
   3  Normalizat    .82427        .27110        .22593E-03    .76007E-04
   4  Prefactor     .80449        .31124        .26341E-03    .89125E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 109.315
  Index      = 1.9498
  Normalizat = 0.824274
  Prefactor  = 0.804491
 **********
 **   18 **HESSE 
 **********

 FCN=   2532.227     FROM HESSE     STATUS=OK            25 CALLS      315 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     109.31        117.10        .76940E-05   -1.3613    
   2  Index         1.9498        .81926        .29680E-03   -.65611    
   3  Normalizat    .82427        .27107        .90373E-05   -.99174    
   4  Prefactor     .80449        .31140        .10536E-04   -.99563    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.21306e-11
Minuit parameter uncertainties:
  1  117.346
  2  0.825215
  3  0.271517
  4  0.312082
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/555513': 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) = 2532.22655818
delta logL = 0.0282616263885

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.093e+02  1.173e+02  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  1.950e+00  8.252e-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:  8.045e-01  3.121e-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.243e-01  2.715e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.22
Ra Dec: 201.501 35.122
Photon Index (Free Index): 1.95 +/- 0.83
Photon Flux (Free Index): 3.38e-08 +/- 4.86e-08
Energy Flux (Free Index): 2.66e-05 +/- 3.85e-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/555513/cmap_HighResolution_545443201_545702401_4FGL_J1326.0+3507_daily_bin1181.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.31e-08', energy_flux2='2.66e-05', photon_flux_error='4.01e-08', dlogl='2.83e-02', energy_flux='2.12e-05', photon_flux2='3.38e-08', job_status='DONE', time_completed='2021-09-07 16:18:09.169437', photon_index_error2='0.83', photon_index2='1.95', ts='4.18', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='3.85e-05', EG='0.81', time_epoch_completed='1631056689.17', return_code='0', job_id='555513', GAL2='0.80', EG2='0.82', return_code2='0', energy_flux_error='1.98e-05', photon_flux_error2='4.86e-08', ts2='4.22', photon_index='2.15' WHERE bin_id='1181' AND source_name='4FGL J1326.0+3507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 16:18:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0195>
Subject: Job 555513: <4FGL_J1326.0+3507_daily_bin1181> in cluster <slac> Done

Job <4FGL_J1326.0+3507_daily_bin1181> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 16:05:54 2021
Job was executed on host(s) <bullet0195>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 16:07:08 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:08 2021
Terminated at Tue Sep  7 16:18:09 2021
Results reported at Tue Sep  7 16:18:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1326.0+3507_daily_bin1181 201.501 35.1218 545443201 545702401 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 :                                   486.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   662 sec.
    Turnaround time :                            735 sec.

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

