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


Performing analysis on: 4FGL_J1326.0+3507_daily_bin782
RA = 201.501, Dec = 35.1218
tmin = 442022401, tmax = 442281601
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='553780', job_status='RUN', time_executed='2021-09-07 16:00:46.693222', time_epoch_executed='1631055646.69' WHERE source_name='4FGL J1326.0+3507' and cadence='daily' and bin_id='782'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/553780

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/553780/ft1_4FGL_J1326.0+3507_daily_bin782.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/553780/ft2_4FGL_J1326.0+3507_daily_bin782.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/553780/ft1_4FGL_J1326.0+3507_daily_bin782.fits outfile=/scratch/kocevski/553780/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin782.fits ra=201.501 dec=35.1218 rad=12.0 tmin=442022401.0 tmax=442281601.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.62
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/553780/ft2_4FGL_J1326.0+3507_daily_bin782.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/553780/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin782.fits evtable="EVENTS" outfile="/scratch/kocevski/553780/ft1_filtered_4FGL_J1326.0+3507_daily_bin782.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.36
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/553780/ft1_filtered_4FGL_J1326.0+3507_daily_bin782.fits evtable="EVENTS" scfile=/scratch/kocevski/553780/ft2_4FGL_J1326.0+3507_daily_bin782.fits sctable="SC_DATA" expcube=/scratch/kocevski/553780/ltcube_442022401_442281601_4FGL_J1326.0+3507_daily_bin782.fits outfile=/scratch/kocevski/553780/expmap_442022401_442281601_4FGL_J1326.0+3507_daily_bin782.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/553780/ltcube_442022401_442281601_4FGL_J1326.0+3507_daily_bin782.fits
.....................!
real 191.52
user 186.77
sys 4.28

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/553780/ft1_filtered_4FGL_J1326.0+3507_daily_bin782.fits scfile=/scratch/kocevski/553780/ft2_4FGL_J1326.0+3507_daily_bin782.fits outfile=/scratch/kocevski/553780/cmap_442022401_442281601_4FGL_J1326.0+3507_daily_bin782.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.59
user 0.40
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    18.009       1.0000         .10000E-03   10000.    
     5 'Prefactor '    45.684       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.6546       1.0000         .10000E-03   10000.    
     7 'norm      '    3.5534       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.1552       1.0000         .10000E-03   10000.    
    10 'norm      '    6.0224       1.0000         .10000E-03   10000.    
    11 'norm      '    6.5520       1.0000         .10000E-03   10000.    
    12 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.9833       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10397E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    43.364       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10440E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.323       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    72.797       1.0000         .10000E-03   10000.    
    20 'norm      '    16.716       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.1974       1.0000         .10000E-03   10000.    
    22 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    4.8094       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .84844E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    16.738       1.0000         .10000E-03   10000.    
    27 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .78035       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .83172       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=   5681.141     FROM MIGRAD    STATUS=CONVERGED    704 CALLS     3662 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.871       -.31162E-08** at limit **
   2  Prefactor     .10000E-03    18.462       -.33381E-07** at limit **
   3  Prefactor     .10000E-03    3.1605       -.13535E-06** at limit **
   4  norm          18.010        6.9871       -.63301E-06   -.24092E-03
   5  Prefactor     45.640        43.487       -.30383E-06   -.10826E-03
   6  Prefactor     2.6309        92.570        .89508E-05    .29910E-04
   7  norm          3.5535        3.4944        .64493E-07   -.12664E-04
   8  Prefactor     .10000E-03    11.292       -.25770E-06** at limit **
   9  norm          3.1524        3.8573       -.18846E-06    .43600E-04
  10  norm          6.0247        12.768        .27552E-06    .12029E-05
  11  norm          6.5515        3.9169       -.40963E-06   -.17723E-03
  12  norm          .10000E-03    7.8740        .78956E-06** at limit **
  13  norm          1.9863        22.056        .16430E-05    .13580E-04
  14  Prefactor     .10000E-03    3.9272       -.22907E-05** at limit **
  15  Prefactor     43.306        18.145        .21333E-06    .15601E-03
  16  Prefactor     .10000E-03    42.099       -.36405E-06** at limit **
  17  Prefactor     20.322        14.515       -.33004E-07    .57593E-05
  18  Prefactor     .10000E-03    11.069        .17806E-06** at limit **
  19  Prefactor     72.808        66.992        .22950E-06    .67390E-05
  20  norm          16.716        2.7672        .10131E-07   -.13093E-03
  21  Prefactor     1.1974        2.9100        .80794E-06    .12476E-03
  22  norm          .10000E-03    10.289        .42255E-06** at limit **
  23  Prefactor     .10000E-03    6.2303        .60419E-07** at limit **
  24  norm          4.8108        3.6947        .22060E-07   -.26109E-03
  25  Prefactor     .10010E-03    10.762        .28894E-05** at limit **
  26  Prefactor     16.772        16.954       -.78944E-06   -.56107E-03
  27  norm          .10000E-03    6.0518        .75095E-07** at limit **
  28  Normalizat    .78048        .16677        .35689E-06   -.22253E-03
  29  Prefactor     .83155        .19830       -.13184E-05   -.12662E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.0099
  Prefactor  = 45.6399
  Prefactor  = 2.63087
  norm       = 3.55348
  Prefactor  = 0.0001
  norm       = 3.15242
  norm       = 6.02469
  norm       = 6.55151
  norm       = 0.0001
  norm       = 1.98632
  Prefactor  = 0.0001
  Prefactor  = 43.3064
  Prefactor  = 0.0001
  Prefactor  = 20.3219
  Prefactor  = 0.0001
  Prefactor  = 72.8081
  norm       = 16.7163
  Prefactor  = 1.19744
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.81083
  Prefactor  = 0.000100097
  Prefactor  = 16.7716
  norm       = 0.0001
  Normalizat = 0.780485
  Prefactor  = 0.83155
 **********
 **   18 **HESSE 
 **********

 FCN=   5681.141     FROM HESSE     STATUS=OK           553 CALLS     4215 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.1932        .13079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          18.010        6.9104        .94378E-04   -1.4859    
   5  Prefactor     45.640        43.247        .59320E-04   -1.4356    
   6  Prefactor     2.6309        92.121        .25019E-03   -1.5384    
   7  norm          3.5535        3.4875        .13539E-03   -1.5331    
   8  Prefactor     .10000E-03    11.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.1524        3.8350        .15633E-03   -1.5353    
  10  norm          6.0247        12.766        .16362E-03   -1.5217    
  11  norm          6.5515        3.8840        .10328E-03   -1.5196    
  12  norm          .10000E-03    8.0384        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.9863        22.044        .29428E-03   -1.5426    
  14  Prefactor     .10000E-03    3.9275        .28491E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     43.306        18.173        .60879E-04   -1.4391    
  16  Prefactor     .10000E-03    42.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     20.322        14.522        .88848E-04   -1.4806    
  18  Prefactor     .10000E-03    11.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     72.808        67.469        .47054E-04   -1.3999    
  20  norm          16.716        2.7705        .49042E-04   -1.4890    
  21  Prefactor     1.1974        2.8738        .19120E-03   -1.5489    
  22  norm          .10000E-03    10.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.2330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          4.8108        3.6831        .12252E-03   -1.5269    
  25  Prefactor     .10010E-03    29.727        .38942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     16.772        15.934        .97897E-04   -1.4889    
  27  norm          .10000E-03    6.0534        .18108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .78048        .20063        .23519E-03   -1.0080    
  29  Prefactor     .83155        .23716        .28347E-03   -.98576    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.8277e-09
Minuit parameter uncertainties:
  1  6.40498e-06
  2  1.44526e-05
  3  1.17155e-06
  4  6.91069
  5  43.2766
  6  31.1873
  7  3.48772
  8  8.29898e-06
  9  3.83534
  10  12.7718
  11  3.88417
  12  6.70949e-05
  13  13.24
  14  3.2989e-05
  15  18.1751
  16  8.26661e-05
  17  14.5249
  18  7.22593e-06
  19  67.5399
  20  2.77052
  21  2.87411
  22  2.50115e-05
  23  7.80298e-06
  24  3.68323
  25  0.00340212
  26  15.938
  27  3.87548e-06
  28  0.200816
  29  0.237452
Done.

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

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  8.267e-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.315e-01  2.375e-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:  7.805e-01  2.008e-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.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/553780/likelihoodResults_442022401_442281601_4FGL_J1326.0+3507_daily_bin782.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) = 5681.1410039
delta logL = -0.000112972572424

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5681.14089105
delta logL = -1.25553015096e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10793E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0915       1.0000          .0000       10.000    
     3 'Normalizat'    .78049       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83155       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.

 FCN=   5681.141     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      232 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1729.7        .90712E-02** at limit **
   2  Index         2.1003        5.7384        .50000       -.18448E-05
   3  Normalizat    .78049        .26938E-01    .43355E-01    .16076E-04
   4  Prefactor     .83155        .33628E-01    .64088E-01    .14975E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.10029
  Normalizat = 0.780486
  Prefactor  = 0.831549
 **********
 **   18 **HESSE 
 **********

 FCN=   5681.141     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      265 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7210.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1003        7.7422        .50000       -.61866    
   3  Normalizat    .78049        .52989E-01    .23519E-03   -1.0080    
   4  Prefactor     .83155        .66098E-01    .28347E-03   -.98576    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.78439e-10
Minuit parameter uncertainties:
  1  6.90478e-05
  2  46.4537
  3  0.0529927
  4  0.0661046
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/553780': 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) = 5681.14089095
delta logL = -2.47091520578e-08

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  6.905e-05  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  2.100e+00  4.645e+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.315e-01  6.610e-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:  7.805e-01  5.299e-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/553780/cmap_HighResolution_442022401_442281601_4FGL_J1326.0+3507_daily_bin782.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.30e-03', job_status='DONE', photon_flux_upper_limit='5.67e-08', time_completed='2021-09-07 16:14:02.380106', job_id='553780', GAL2='0.83', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1631056442.38', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='-2.47e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='782' AND source_name='4FGL J1326.0+3507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 16:14:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 553780: <4FGL_J1326.0+3507_daily_bin782> in cluster <slac> Done

Job <4FGL_J1326.0+3507_daily_bin782> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep  7 16:00:31 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 16:00:32 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:00:32 2021
Terminated at Tue Sep  7 16:14:03 2021
Results reported at Tue Sep  7 16:14:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1326.0+3507_daily_bin782 201.501 35.1218 442022401 442281601 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 :                                   794.47 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             335.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            812 sec.

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

