/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 1 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_bin153
RA = 201.501, Dec = 35.1218
tmin = 278985601, tmax = 279244801
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='549188', job_status='RUN', time_executed='2021-09-07 15:45:41.860012', time_epoch_executed='1631054741.86' WHERE source_name='4FGL J1326.0+3507' and cadence='daily' and bin_id='153'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/549188

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/549188/ft1_4FGL_J1326.0+3507_daily_bin153.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/549188/ft2_4FGL_J1326.0+3507_daily_bin153.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/549188/ft1_4FGL_J1326.0+3507_daily_bin153.fits outfile=/scratch/kocevski/549188/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin153.fits ra=201.501 dec=35.1218 rad=12.0 tmin=278985601.0 tmax=279244801.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.90
user 3.58
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/549188/ft1_filtered_4FGL_J1326.0+3507_daily_bin153.fits evtable="EVENTS" scfile=/scratch/kocevski/549188/ft2_4FGL_J1326.0+3507_daily_bin153.fits sctable="SC_DATA" expcube=/scratch/kocevski/549188/ltcube_278985601_279244801_4FGL_J1326.0+3507_daily_bin153.fits outfile=/scratch/kocevski/549188/expmap_278985601_279244801_4FGL_J1326.0+3507_daily_bin153.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/549188/ltcube_278985601_279244801_4FGL_J1326.0+3507_daily_bin153.fits
.....................!
real 195.28
user 188.25
sys 4.71

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/549188/ft1_filtered_4FGL_J1326.0+3507_daily_bin153.fits scfile=/scratch/kocevski/549188/ft2_4FGL_J1326.0+3507_daily_bin153.fits outfile=/scratch/kocevski/549188/cmap_278985601_279244801_4FGL_J1326.0+3507_daily_bin153.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.63
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/549188/ft1_filtered_4FGL_J1326.0+3507_daily_bin153.fits scfile=/scratch/kocevski/549188/ft2_4FGL_J1326.0+3507_daily_bin153.fits outfile=/scratch/kocevski/549188/cmap_HighResolution_278985601_279244801_4FGL_J1326.0+3507_daily_bin153.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.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    69.878       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11013E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.9591       1.0000         .10000E-03   10000.    
     5 'Prefactor '    63.766       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    9.6516       1.0000         .10000E-03   10000.    
     8 'Prefactor '    32.855       1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    26.022       1.0000         .10000E-03   10000.    
    11 'norm      '    11.382       1.0000         .10000E-03   10000.    
    12 'norm      '    .14837E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    29.821       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.5712       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    43.353       1.0000         .10000E-03   10000.    
    20 'norm      '    2.2269       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .29037E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .95611       1.0000         .10000E-03   10000.    
    25 'Prefactor '    38.947       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .87633       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3772       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=   6015.916     FROM MIGRAD    STATUS=CONVERGED    719 CALLS     3813 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.8220       -.81563E-07** at limit **
   2  Prefactor     69.871        108.79        .17019E-05   -.43603E-04
   3  Prefactor     .10000E-03    18.499       -.84418E-05** at limit **
   4  norm          2.9568        6.8791        .95641E-07   -.16381E-03
   5  Prefactor     63.768        67.291       -.36438E-06   -.11701E-04
   6  Prefactor     .10000E-03    55.433        .53710E-05** at limit **
   7  norm          9.6523        5.4714       -.26448E-06   -.83116E-04
   8  Prefactor     32.843        22.263       -.69518E-06   -.12395E-03
   9  norm          .10000E-03    8.1795        .19373E-07** at limit **
  10  norm          26.021        15.257       -.12271E-07   -.10005E-03
  11  norm          11.394        6.2738       -.37094E-06   -.11487E-02
  12  norm          .10006E-03    9.7067        .51953E-05** at limit **
  13  norm          29.825        28.648       -.44307E-06   -.19184E-04
  14  Prefactor     .10000E-03    3.1969        .16878E-06** at limit **
  15  Prefactor     8.5692        13.110        .49465E-07   -.11210E-03
  16  Prefactor     .10000E-03    31.160       -.27614E-06** at limit **
  17  Prefactor     .10000E-03    16.393       -.21575E-05** at limit **
  18  Prefactor     .10000E-03    8.6479       -.11362E-06** at limit **
  19  Prefactor     43.354        62.761       -.21102E-06   -.85236E-05
  20  norm          2.2271        1.5317        .13017E-07    .12792E-03
  21  Prefactor     .10000E-03    2.4250        .69238E-07** at limit **
  22  norm          .10000E-03    4.5887        .52085E-07** at limit **
  23  Prefactor     .10000E-03    30.375       -.27335E-06** at limit **
  24  norm          .95688        5.3251        .80748E-06    .64017E-03
  25  Prefactor     38.929        21.548        .10551E-05    .32660E-03
  26  Prefactor     .10001E-03    46.138       -.35917E-05** at limit **
  27  norm          .10000E-03    10.383        .51692E-06** at limit **
  28  Normalizat    .87685        .20256        .11223E-06   -.11657E-03
  29  Prefactor     1.3765        .23676       -.77945E-06   -.18278E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 69.8707
  Prefactor  = 0.0001
  norm       = 2.95676
  Prefactor  = 63.7681
  Prefactor  = 0.0001
  norm       = 9.6523
  Prefactor  = 32.8434
  norm       = 0.0001
  norm       = 26.0213
  norm       = 11.3941
  norm       = 0.000100062
  norm       = 29.8247
  Prefactor  = 0.0001
  Prefactor  = 8.56921
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.3535
  norm       = 2.22706
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.956877
  Prefactor  = 38.9293
  Prefactor  = 0.000100006
  norm       = 0.0001
  Normalizat = 0.876848
  Prefactor  = 1.37646
 **********
 **   18 **HESSE 
 **********

 FCN=   6015.916     FROM HESSE     STATUS=OK           547 CALLS     4360 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.8271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     69.871        107.49        .48020E-04   -1.4034    
   3  Prefactor     .10000E-03    20.775        .34205E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.9568        6.7553        .23607E-03   -1.5364    
   5  Prefactor     63.768        67.223        .50254E-04   -1.4109    
   6  Prefactor     .10000E-03    55.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          9.6523        5.4667        .12899E-03   -1.5087    
   8  Prefactor     32.843        20.913        .69907E-04   -1.4561    
   9  norm          .10000E-03    8.3671        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          26.021        15.257        .39265E-03   -1.4687    
  11  norm          11.394        6.0234        .11875E-03   -1.5033    
  12  norm          .10006E-03    36.017        .31763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          29.825        28.635        .73368E-04   -1.4615    
  14  Prefactor     .10000E-03    3.2989        .27042E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.5692        13.080        .13692E-03   -1.5122    
  16  Prefactor     .10000E-03    31.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    16.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.6531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     43.354        62.967        .60887E-04   -1.4390    
  20  norm          2.2271        1.5255        .76472E-04   -1.5409    
  21  Prefactor     .10000E-03    24.852        .22928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    4.5916        .16226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    30.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .95688        5.6864        .34204E-03   -1.5512    
  25  Prefactor     38.929        21.382        .64225E-04   -1.4459    
  26  Prefactor     .10001E-03    47.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    10.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .87685        .24159        .27852E-03   -.97278    
  29  Prefactor     1.3765        .28577        .28103E-03   -.81061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.06836e-09
Minuit parameter uncertainties:
  1  9.78733e-07
  2  107.788
  3  4.59779e-06
  4  6.75699
  5  67.303
  6  1.86178e-05
  7  5.46699
  8  20.9179
  9  1.58937e-05
  10  15.2596
  11  6.02373
  12  0.00297905
  13  28.6482
  14  1.93435e-07
  15  13.0842
  16  3.19724e-06
  17  3.42432e-05
  18  7.01183e-06
  19  63.0637
  20  1.52555
  21  2.91277e-05
  22  2.19031e-07
  23  0.000258103
  24  4.66567
  25  21.3862
  26  0.00110373
  27  2.04797e-05
  28  0.241891
  29  0.286099
Done.

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

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  3.197e-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:  1.376e+00  2.861e-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.768e-01  2.419e-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: 5.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/549188/likelihoodResults_278985601_279244801_4FGL_J1326.0+3507_daily_bin153.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) = 6015.91627221
delta logL = -0.000152538765178

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6015.91612007
delta logL = -4.05743776355e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10373E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4307       1.0000          .0000       10.000    
     3 'Normalizat'    .87684       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3765       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=   6015.916     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      268 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10072E-03    138.07        .18142E-02** at limit **
   2  Index         2.3897        5.4411        .50000        .68916E-05
   3  Normalizat    .87685        .10557E-01    .27852E-03   -.37141E-03
   4  Prefactor     1.3765        .13048E-01    .28103E-03   -.46159E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100715
  Index      = 2.38966
  Normalizat = 0.876848
  Prefactor  = 1.37646
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10072E-03    617.97        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3897        5.6205        .50000       -.54927    
   3  Normalizat    .87685        .22967E-01    .55703E-04   -.97279    
   4  Prefactor     1.3765        .28386E-01    .56207E-04   -.81061    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.18073e-09
Minuit parameter uncertainties:
  1  0.0424993
  2  516.406
  3  0.0229674
  4  0.0283864
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/549188': 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) = 6015.91611995
delta logL = -2.77478648059e-07

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.007e-04  4.250e-02  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  2.390e+00  5.164e+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:  1.376e+00  2.839e-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:  8.768e-01  2.297e-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/549188/cmap_HighResolution_278985601_279244801_4FGL_J1326.0+3507_daily_bin153.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.94e-03', job_status='DONE', photon_flux_upper_limit='5.19e-08', time_completed='2021-09-07 15:59:30.979810', job_id='549188', GAL2='1.38', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1631055570.98', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.38', dlogl='-2.77e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='153' AND source_name='4FGL J1326.0+3507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 15:59:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 549188: <4FGL_J1326.0+3507_daily_bin153> in cluster <slac> Done

Job <4FGL_J1326.0+3507_daily_bin153> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 15:45:27 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 15:45:31 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:45:31 2021
Terminated at Tue Sep  7 15:59:31 2021
Results reported at Tue Sep  7 15:59:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1326.0+3507_daily_bin153 201.501 35.1218 278985601 279244801 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 :                                   819.33 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             351.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            844 sec.

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

