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


Performing analysis on: 4FGL_J1326.0+3507_daily_bin593
RA = 201.501, Dec = 35.1218
tmin = 393033601, tmax = 393292801
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='551063', job_status='RUN', time_executed='2021-09-07 15:52:55.777501', time_epoch_executed='1631055175.78' WHERE source_name='4FGL J1326.0+3507' and cadence='daily' and bin_id='593'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/551063

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/551063/ft1_4FGL_J1326.0+3507_daily_bin593.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/551063/ft2_4FGL_J1326.0+3507_daily_bin593.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/551063/ft1_4FGL_J1326.0+3507_daily_bin593.fits outfile=/scratch/kocevski/551063/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin593.fits ra=201.501 dec=35.1218 rad=12.0 tmin=393033601.0 tmax=393292801.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.63
user 3.37
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/551063/ft1_filtered_4FGL_J1326.0+3507_daily_bin593.fits" evtable="EVENTS" scfile=/scratch/kocevski/551063/ft2_4FGL_J1326.0+3507_daily_bin593.fits sctable="SC_DATA" outfile=/scratch/kocevski/551063/ltcube_393033601_393292801_4FGL_J1326.0+3507_daily_bin593.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/551063/ft2_4FGL_J1326.0+3507_daily_bin593.fits
.....................!
real 17.23
user 16.58
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/551063/ft1_filtered_4FGL_J1326.0+3507_daily_bin593.fits evtable="EVENTS" scfile=/scratch/kocevski/551063/ft2_4FGL_J1326.0+3507_daily_bin593.fits sctable="SC_DATA" expcube=/scratch/kocevski/551063/ltcube_393033601_393292801_4FGL_J1326.0+3507_daily_bin593.fits outfile=/scratch/kocevski/551063/expmap_393033601_393292801_4FGL_J1326.0+3507_daily_bin593.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/551063/ltcube_393033601_393292801_4FGL_J1326.0+3507_daily_bin593.fits
.....................!
real 193.92
user 188.19
sys 5.18

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/551063/ft1_filtered_4FGL_J1326.0+3507_daily_bin593.fits scfile=/scratch/kocevski/551063/ft2_4FGL_J1326.0+3507_daily_bin593.fits outfile=/scratch/kocevski/551063/cmap_393033601_393292801_4FGL_J1326.0+3507_daily_bin593.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.41
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10336E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.8237       1.0000         .10000E-03   10000.    
     7 'norm      '    .13337E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.7304       1.0000         .10000E-03   10000.    
     9 'norm      '    .74109E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    44.708       1.0000         .10000E-03   10000.    
    11 'norm      '    7.1917       1.0000         .10000E-03   10000.    
    12 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    30.738       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.6464       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.6874       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10395E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.176       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.5988       1.0000         .10000E-03   10000.    
    20 'norm      '    5.5527       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.8804       1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.0272       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .48868E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    16.044       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .98246       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .88402       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=   5708.306     FROM MIGRAD    STATUS=CONVERGED    749 CALLS     3789 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.5331        .62453E-07** at limit **
   2  Prefactor     .10000E-03    38.802       -.79913E-05** at limit **
   3  Prefactor     .10000E-03    3.9920       -.15720E-06** at limit **
   4  norm          .10000E-03    1.8923       -.27381E-06** at limit **
   5  Prefactor     .10000E-03    25.767        .97533E-05** at limit **
   6  Prefactor     3.8453        54.102        .23518E-04    .87496E-04
   7  norm          .40388E-01    2.0366        .57474E-06   -.98215E-04
   8  Prefactor     9.7322        19.223        .19539E-05    .26282E-03
   9  norm          .10000E-03    4.5658       -.13898E-05** at limit **
  10  norm          44.711        19.085        .14543E-05   -.20043E-04
  11  norm          7.1908        4.3944       -.87546E-06    .57136E-04
  12  norm          .10000E-03    4.9224        .11357E-06** at limit **
  13  norm          30.727        22.726       -.14110E-04   -.42871E-04
  14  Prefactor     2.6470        5.7706       -.26263E-05   -.46597E-03
  15  Prefactor     6.6826        24.045        .69457E-05    .88841E-04
  16  Prefactor     .10000E-03    17.583       -.10015E-04** at limit **
  17  Prefactor     .10000E-03    31.531       -.19866E-05** at limit **
  18  Prefactor     13.185        20.761        .24695E-05   -.26205E-05
  19  Prefactor     7.6062        50.961        .20759E-04   -.33511E-05
  20  norm          5.5533        1.7397        .10057E-07   -.92795E-04
  21  Prefactor     2.8821        3.0873       -.16311E-08   -.27397E-03
  22  norm          .10000E-03    7.0650       -.67578E-07** at limit **
  23  Prefactor     .10000E-03    16.540        .72120E-05** at limit **
  24  norm          1.0272        2.5742       -.55388E-06   -.12381E-02
  25  Prefactor     .10000E-03    27.675       -.16842E-05** at limit **
  26  Prefactor     .10000E-03    21.924       -.34060E-06** at limit **
  27  norm          16.031        16.522        .16366E-05    .26864E-04
  28  Normalizat    .98241        .16795       -.19486E-05    .25195E-03
  29  Prefactor     .88382        .19863        .41243E-06    .35368E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.84531
  norm       = 0.0403881
  Prefactor  = 9.73218
  norm       = 0.000100001
  norm       = 44.711
  norm       = 7.19078
  norm       = 0.0001
  norm       = 30.727
  Prefactor  = 2.64697
  Prefactor  = 6.68256
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.1851
  Prefactor  = 7.60621
  norm       = 5.55328
  Prefactor  = 2.88213
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.02717
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.0308
  Normalizat = 0.982405
  Prefactor  = 0.883819
 **********
 **   18 **HESSE 
 **********

 FCN=   5708.306     FROM HESSE     STATUS=OK           565 CALLS     4354 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.5360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    38.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.0187        .14708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.9044        .10132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    25.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.8453        51.489        .20640E-03   -1.5316    
   7  norm          .40388E-01    3.0844        .40169E-01   -1.5668    
   8  Prefactor     9.7322        17.725        .12846E-03   -1.5084    
   9  norm          .10000E-03    28.933        .26499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          44.711        19.076        .59961E-04   -1.4370    
  11  norm          7.1908        4.3286        .10552E-03   -1.5172    
  12  norm          .10000E-03    4.9530        .16250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          30.727        22.592        .36134E-03   -1.4599    
  14  Prefactor     2.6470        5.3180        .16742E-03   -1.5383    
  15  Prefactor     6.6826        22.747        .15517E-03   -1.5191    
  16  Prefactor     .10000E-03    17.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    31.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.185        20.777        .11035E-03   -1.4982    
  19  Prefactor     7.6062        50.898        .14548E-03   -1.5156    
  20  norm          5.5533        1.7403        .53770E-04   -1.5237    
  21  Prefactor     2.8821        3.0813        .13214E-03   -1.5368    
  22  norm          .10000E-03    7.0898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    16.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.0272        2.1356        .18555E-02   -1.5505    
  25  Prefactor     .10000E-03    28.664        .42337E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    22.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          16.031        16.387        .99991E-04   -1.4907    
  28  Normalizat    .98241        .19960        .21608E-03   -.93622    
  29  Prefactor     .88382        .23459        .28103E-03   -.96709    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91284e-09
Minuit parameter uncertainties:
  1  5.52361e-06
  2  3.76942e-05
  3  3.11806e-05
  4  3.60704e-05
  5  1.26841e-05
  6  28.171
  7  0.705061
  8  17.7345
  9  0.000416829
  10  19.0786
  11  4.32879
  12  3.0207e-05
  13  22.5981
  14  5.31896
  15  22.7766
  16  1.02304e-05
  17  7.32729e-05
  18  20.7887
  19  39.4
  20  1.74034
  21  3.08143
  22  1.17986e-06
  23  1.44633e-05
  24  2.1358
  25  9.49487e-05
  26  5.70307e-06
  27  16.3914
  28  0.199749
  29  0.234855
Done.

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

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  1.023e-05  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.838e-01  2.349e-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:  9.824e-01  1.997e-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.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/551063/likelihoodResults_393033601_393292801_4FGL_J1326.0+3507_daily_bin593.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) = 5708.30641683
delta logL = -0.000271538007837

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5708.30614857
delta logL = -3.28227906721e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14873E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4839       1.0000          .0000       10.000    
     3 'Normalizat'    .98240       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88382       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=   5708.306     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      268 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10285E-03    3.5807        .18142E-01** at limit **
   2  Index         2.4037        5.6158        .50000        .19950E-04
   3  Normalizat    .98240        .20039E-02    .21608E-03   -.47353E-05
   4  Prefactor     .88382        .24983E-02    .28103E-03   -.10316E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102848
  Index      = 2.40369
  Normalizat = 0.982403
  Prefactor  = 0.883821
 **********
 **   18 **HESSE 
 **********

 FCN=   5708.306     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      297 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10285E-03    63.000        .26989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4037        8.6376        .50000       -.54599    
   3  Normalizat    .98240        .84423E-02    .86431E-05   -.93622    
   4  Prefactor     .88382        .10525E-01    .11241E-04   -.96709    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.38622e-09
Minuit parameter uncertainties:
  1  0.0268157
  2  231.052
  3  0.00844232
  4  0.0105253
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/551063': 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) = 5708.30614627
delta logL = -9.85643055174e-07

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.028e-04  2.682e-02  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  2.404e+00  2.311e+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.838e-01  1.053e-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:  9.824e-01  8.442e-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/551063/cmap_HighResolution_393033601_393292801_4FGL_J1326.0+3507_daily_bin593.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.17e-03', job_status='DONE', photon_flux_upper_limit='4.17e-08', time_completed='2021-09-07 16:06:47.507928', job_id='551063', GAL2='0.88', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1631056007.51', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='-9.86e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='593' AND source_name='4FGL J1326.0+3507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 16:06:47 PDT 2021


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

Job <4FGL_J1326.0+3507_daily_bin593> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep  7 15:50:57 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 15:52:40 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:52:40 2021
Terminated at Tue Sep  7 16:06:48 2021
Results reported at Tue Sep  7 16:06:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1326.0+3507_daily_bin593 201.501 35.1218 393033601 393292801 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 :                                   830.17 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             329.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            951 sec.

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

