/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 3 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 = 7404
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1326.0+3507_daily_bin371
RA = 201.501, Dec = 35.1218
tmin = 335491201, tmax = 335750401
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='550632', job_status='RUN', time_executed='2021-09-07 15:51:21.441880', time_epoch_executed='1631055081.44' WHERE source_name='4FGL J1326.0+3507' and cadence='daily' and bin_id='371'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/550632

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/550632/ft1_4FGL_J1326.0+3507_daily_bin371.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/550632/ft2_4FGL_J1326.0+3507_daily_bin371.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/550632/ft1_4FGL_J1326.0+3507_daily_bin371.fits outfile=/scratch/kocevski/550632/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin371.fits ra=201.501 dec=35.1218 rad=12.0 tmin=335491201.0 tmax=335750401.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 2.77
user 2.52
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/550632/ft1_filtered_4FGL_J1326.0+3507_daily_bin371.fits" evtable="EVENTS" scfile=/scratch/kocevski/550632/ft2_4FGL_J1326.0+3507_daily_bin371.fits sctable="SC_DATA" outfile=/scratch/kocevski/550632/ltcube_335491201_335750401_4FGL_J1326.0+3507_daily_bin371.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/550632/ft2_4FGL_J1326.0+3507_daily_bin371.fits
.....................!
real 9.86
user 9.49
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/550632/ft1_filtered_4FGL_J1326.0+3507_daily_bin371.fits evtable="EVENTS" scfile=/scratch/kocevski/550632/ft2_4FGL_J1326.0+3507_daily_bin371.fits sctable="SC_DATA" expcube=/scratch/kocevski/550632/ltcube_335491201_335750401_4FGL_J1326.0+3507_daily_bin371.fits outfile=/scratch/kocevski/550632/expmap_335491201_335750401_4FGL_J1326.0+3507_daily_bin371.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/550632/ltcube_335491201_335750401_4FGL_J1326.0+3507_daily_bin371.fits
.....................!
real 155.35
user 150.94
sys 3.98

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/550632/ft1_filtered_4FGL_J1326.0+3507_daily_bin371.fits scfile=/scratch/kocevski/550632/ft2_4FGL_J1326.0+3507_daily_bin371.fits outfile=/scratch/kocevski/550632/cmap_335491201_335750401_4FGL_J1326.0+3507_daily_bin371.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.50
user 0.31
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/550632/ft1_filtered_4FGL_J1326.0+3507_daily_bin371.fits scfile=/scratch/kocevski/550632/ft2_4FGL_J1326.0+3507_daily_bin371.fits outfile=/scratch/kocevski/550632/cmap_HighResolution_335491201_335750401_4FGL_J1326.0+3507_daily_bin371.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.50
user 0.31
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .34442E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10213E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.5465       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10242E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    47.406       1.0000         .10000E-03   10000.    
     7 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10332E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.9406       1.0000         .10000E-03   10000.    
    10 'norm      '    27.113       1.0000         .10000E-03   10000.    
    11 'norm      '    3.2689       1.0000         .10000E-03   10000.    
    12 'norm      '    10.303       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.091       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    7.7505       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.8588       1.0000         .10000E-03   10000.    
    22 'norm      '    4.7296       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    7.0773       1.0000         .10000E-03   10000.    
    25 'Prefactor '    15.663       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10771E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0731       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .93592       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=   6077.908     FROM MIGRAD    STATUS=CONVERGED    726 CALLS     4227 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    35.032       -.61892E-06** at limit **
   2  Prefactor     .10000E-03    6554.3       -.95538E-05** at limit **
   3  Prefactor     .10001E-03    5.2037       -.19417E-05** at limit **
   4  norm          2.5317        6.5055       -.60819E-06   -.43235E-04
   5  Prefactor     .10000E-03    27.729       -.26466E-06** at limit **
   6  Prefactor     47.427        30.691        .82156E-06    .26113E-03
   7  norm          .10000E-03    2.7897       -.28725E-06** at limit **
   8  Prefactor     .10000E-03    30.358       -.40594E-05** at limit **
   9  norm          5.9401        4.6072        .35829E-06    .42219E-03
  10  norm          27.118        18.664       -.14510E-06    .76188E-04
  11  norm          3.2711        6.4112        .33618E-06    .20064E-03
  12  norm          10.301        10.739       -.24812E-06    .15227E-03
  13  norm          .10000E-03    14.165       -.27396E-06** at limit **
  14  Prefactor     .10000E-03    1.8238       -.26536E-06** at limit **
  15  Prefactor     .10000E-03    4.4284       -.12180E-06** at limit **
  16  Prefactor     .10000E-03    13.900       -.26712E-06** at limit **
  17  Prefactor     .10000E-03    17.242       -.57983E-06** at limit **
  18  Prefactor     13.094        20.859       -.20794E-06    .94337E-05
  19  Prefactor     .10000E-03    25.236       -.50796E-06** at limit **
  20  norm          7.7507        2.0169       -.10546E-08    .13250E-03
  21  Prefactor     2.8590        3.4128       -.19842E-06   -.35156E-04
  22  norm          4.7300        6.8239       -.14424E-06   -.44015E-06
  23  Prefactor     .10000E-03    18.558       -.80338E-06** at limit **
  24  norm          7.0777        3.9680       -.43874E-07    .11484E-04
  25  Prefactor     15.672        14.962       -.11509E-06   -.40987E-04
  26  Prefactor     .10000E-03    19.916       -.10701E-05** at limit **
  27  norm          .10000E-03    5.6162       -.10719E-06** at limit **
  28  Normalizat    1.0730        .19394       -.31615E-05    .51065E-03
  29  Prefactor     .93591        .23678        .59569E-05    .27657E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100006
  norm       = 2.53166
  Prefactor  = 0.0001
  Prefactor  = 47.4273
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.94007
  norm       = 27.1185
  norm       = 3.27114
  norm       = 10.3005
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.0939
  Prefactor  = 0.0001
  norm       = 7.75067
  Prefactor  = 2.85901
  norm       = 4.72998
  Prefactor  = 0.0001
  norm       = 7.07766
  Prefactor  = 15.6718
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.07303
  Prefactor  = 0.935914
 **********
 **   18 **HESSE 
 **********

 FCN=   6077.908     FROM HESSE     STATUS=OK           561 CALLS     4788 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    35.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    95.225        .20022       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    11.503        .31027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.5317        6.9771        .25589E-03   -1.5390    
   5  Prefactor     .10000E-03    27.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     47.427        31.113        .58237E-04   -1.4330    
   7  norm          .10000E-03    2.8435        .12735E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    30.337        .41647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.9401        4.5976        .14181E-03   -1.5220    
  10  norm          27.118        18.665        .76938E-04   -1.4666    
  11  norm          3.2711        6.6411        .16360E-03   -1.5346    
  12  norm          10.301        11.172        .12483E-03   -1.5066    
  13  norm          .10000E-03    14.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.8936        .20574E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.4380        .16023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.094        20.875        .11071E-03   -1.4984    
  19  Prefactor     .10000E-03    25.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.7507        2.0193        .54187E-04   -1.5151    
  21  Prefactor     2.8590        3.4142        .15129E-03   -1.5370    
  22  norm          4.7300        6.8186        .18502E-03   -1.5273    
  23  Prefactor     .10000E-03    18.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          7.0777        3.9673        .11168E-03   -1.5176    
  25  Prefactor     15.672        14.963        .10120E-03   -1.4916    
  26  Prefactor     .10000E-03    20.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    5.6168        .18044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0730        .20246        .22695E-03   -.90623    
  29  Prefactor     .93591        .24451        .29980E-03   -.94897    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00622e-09
Minuit parameter uncertainties:
  1  3.87337e-05
  2  0.000450599
  3  0.000526288
  4  6.97935
  5  4.2328e-05
  6  31.124
  7  1.41883e-05
  8  0.000146846
  9  4.59785
  10  18.6695
  11  6.6426
  12  11.1747
  13  7.51131e-06
  14  5.01738e-06
  15  2.439e-06
  16  9.30418e-06
  17  8.55854e-05
  18  20.8864
  19  2.08841e-05
  20  2.01931
  21  3.41443
  22  6.81968
  23  0.000102967
  24  3.96749
  25  14.9665
  26  0.000108956
  27  2.93078e-06
  28  0.202606
  29  0.2448
Done.

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

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  9.304e-06  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:  9.359e-01  2.448e-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.073e+00  2.026e-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: 3.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/550632/likelihoodResults_335491201_335750401_4FGL_J1326.0+3507_daily_bin371.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) = 6077.90794344
delta logL = -0.000342193193319

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6077.90760116
delta logL = 8.57562554302e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1271       1.0000          .0000       10.000    
     3 'Normalizat'    1.0730       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93592       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=   6077.908     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      251 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10368E-03    11.615        .18142E-01** at limit **
   2  Index         2.0207        6.0185        .50000        .11381E-04
   3  Normalizat    1.0730        .35301E-02    .22695E-03   -.23861E-03
   4  Prefactor     .93592        .44039E-02    .29980E-03   -.11998E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103683
  Index      = 2.02069
  Normalizat = 1.07303
  Prefactor  = 0.935917
 **********
 **   18 **HESSE 
 **********

 FCN=   6077.908     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      280 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10368E-03    115.94        .30175E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0207        8.4002        .50000       -.63834    
   3  Normalizat    1.0730        .11247E-01    .45391E-04   -.90623    
   4  Prefactor     .93592        .14030E-01    .11992E-04   -.94897    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.15355e-09
Minuit parameter uncertainties:
  1  0.0414113
  2  473.309
  3  0.0112467
  4  0.0140304
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/550632': 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) = 6077.90760095
delta logL = 2.94921846944e-07

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.037e-04  4.141e-02  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  2.021e+00  4.733e+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:  9.359e-01  1.403e-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:  1.073e+00  1.125e-02  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/550632/cmap_HighResolution_335491201_335750401_4FGL_J1326.0+3507_daily_bin371.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.67e-03', job_status='DONE', photon_flux_upper_limit='3.52e-08', time_completed='2021-09-07 16:03:23.341772', job_id='550632', GAL2='0.94', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1631055803.34', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='2.95e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='371' AND source_name='4FGL J1326.0+3507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 16:03:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 550632: <4FGL_J1326.0+3507_daily_bin371> in cluster <slac> Done

Job <4FGL_J1326.0+3507_daily_bin371> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep  7 15:50:37 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 15:51:09 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:51:09 2021
Terminated at Tue Sep  7 16:03:24 2021
Results reported at Tue Sep  7 16:03:24 2021

Your job looked like:

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

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

