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


Performing analysis on: 4FGL_J1326.0+3507_daily_bin1403
RA = 201.501, Dec = 35.1218
tmin = 602985601, tmax = 603244801
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='556583', job_status='RUN', time_executed='2021-09-07 16:13:44.186565', time_epoch_executed='1631056424.19' WHERE source_name='4FGL J1326.0+3507' and cadence='daily' and bin_id='1403'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/556583

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/556583/ft1_4FGL_J1326.0+3507_daily_bin1403.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/556583/ft2_4FGL_J1326.0+3507_daily_bin1403.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/556583/ft1_4FGL_J1326.0+3507_daily_bin1403.fits outfile=/scratch/kocevski/556583/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin1403.fits ra=201.501 dec=35.1218 rad=12.0 tmin=602985601.0 tmax=603244801.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.68
user 2.32
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/556583/ft1_filtered_4FGL_J1326.0+3507_daily_bin1403.fits" evtable="EVENTS" scfile=/scratch/kocevski/556583/ft2_4FGL_J1326.0+3507_daily_bin1403.fits sctable="SC_DATA" outfile=/scratch/kocevski/556583/ltcube_602985601_603244801_4FGL_J1326.0+3507_daily_bin1403.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/556583/ft2_4FGL_J1326.0+3507_daily_bin1403.fits
.....................!
real 15.56
user 15.18
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/556583/ft1_filtered_4FGL_J1326.0+3507_daily_bin1403.fits evtable="EVENTS" scfile=/scratch/kocevski/556583/ft2_4FGL_J1326.0+3507_daily_bin1403.fits sctable="SC_DATA" expcube=/scratch/kocevski/556583/ltcube_602985601_603244801_4FGL_J1326.0+3507_daily_bin1403.fits outfile=/scratch/kocevski/556583/expmap_602985601_603244801_4FGL_J1326.0+3507_daily_bin1403.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/556583/ltcube_602985601_603244801_4FGL_J1326.0+3507_daily_bin1403.fits
.....................!
real 157.29
user 152.20
sys 4.52

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/556583/ft1_filtered_4FGL_J1326.0+3507_daily_bin1403.fits scfile=/scratch/kocevski/556583/ft2_4FGL_J1326.0+3507_daily_bin1403.fits outfile=/scratch/kocevski/556583/cmap_602985601_603244801_4FGL_J1326.0+3507_daily_bin1403.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.33
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/556583/ft1_filtered_4FGL_J1326.0+3507_daily_bin1403.fits scfile=/scratch/kocevski/556583/ft2_4FGL_J1326.0+3507_daily_bin1403.fits outfile=/scratch/kocevski/556583/cmap_HighResolution_602985601_603244801_4FGL_J1326.0+3507_daily_bin1403.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.49
user 0.35
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.3802       1.0000         .10000E-03   10000.    
     4 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.2504       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    45.487       1.0000         .10000E-03   10000.    
    11 'norm      '    26.321       1.0000         .10000E-03   10000.    
    12 'norm      '    3.6660       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.111       1.0000         .10000E-03   10000.    
    16 'Prefactor '    37.801       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    42.345       1.0000         .10000E-03   10000.    
    20 'norm      '    5.2496       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.5771       1.0000         .10000E-03   10000.    
    22 'norm      '    12.294       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .99171       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2125       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=   6233.148     FROM MIGRAD    STATUS=CONVERGED    690 CALLS     3623 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.6738        .60390E-07** at limit **
   2  Prefactor     .10000E-03    37.438       -.82839E-06** at limit **
   3  Prefactor     2.3803        4.5964        .86187E-05   -.24737E-03
   4  norm          .10000E-03    2.0008        .13880E-06** at limit **
   5  Prefactor     .10000E-03    32.912        .19967E-05** at limit **
   6  Prefactor     .10000E-03    15.670       -.26247E-06** at limit **
   7  norm          5.2501        4.2323        .46787E-07    .61245E-04
   8  Prefactor     .10000E-03    5.3723       -.13848E-06** at limit **
   9  norm          .10000E-03    1.5007       -.83852E-07** at limit **
  10  norm          45.488        20.542        .29092E-07    .11590E-04
  11  norm          26.326        11.737       -.79782E-06   -.29983E-04
  12  norm          3.6587        24.450        .31764E-05   -.15637E-04
  13  norm          .10000E-03    7.9380       -.12462E-06** at limit **
  14  Prefactor     .10000E-03    1.1715       -.36387E-06** at limit **
  15  Prefactor     18.114        12.691        .11870E-06    .46095E-06
  16  Prefactor     37.749        45.571       -.61269E-05   -.38471E-03
  17  Prefactor     .10000E-03    15.955        .23168E-06** at limit **
  18  Prefactor     .10000E-03    11.056        .53725E-06** at limit **
  19  Prefactor     42.228        69.520       -.15493E-04   -.41930E-03
  20  norm          5.2499        1.7096       -.10600E-07    .12253E-04
  21  Prefactor     4.5779        4.2562       -.28266E-06   -.24410E-03
  22  norm          12.297        12.155        .95483E-07    .16785E-04
  23  Prefactor     .10000E-03    4.8163       -.98811E-08** at limit **
  24  norm          .10000E-03    1.9438        .27180E-06** at limit **
  25  Prefactor     .10000E-03    6.8874       -.90048E-07** at limit **
  26  Prefactor     .10000E-03    5.8861        .26433E-06** at limit **
  27  norm          .10000E-03    9.0426        .45321E-06** at limit **
  28  Normalizat    .99134        .18799        .38547E-05   -.24516E-03
  29  Prefactor     1.2130        .22451       -.35496E-05    .13306E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.3803
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 5.25005
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 45.4881
  norm       = 26.3258
  norm       = 3.65875
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.1137
  Prefactor  = 37.7491
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.2279
  norm       = 5.24988
  Prefactor  = 4.57792
  norm       = 12.2969
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.99134
  Prefactor  = 1.21297
 **********
 **   18 **HESSE 
 **********

 FCN=   6233.148     FROM HESSE     STATUS=OK           543 CALLS     4166 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.6771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    37.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.3803        4.6840        .11697E-02   -1.5399    
   4  norm          .10000E-03    2.0063        .10903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    32.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.2501        4.2334        .14213E-03   -1.5250    
   8  Prefactor     .10000E-03    5.3782        .17873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.5036        .94450E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          45.488        20.546        .59447E-04   -1.4358    
  11  norm          26.326        11.253        .78084E-04   -1.4681    
  12  norm          3.6587        22.407        .21096E-03   -1.5325    
  13  norm          .10000E-03    7.9397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.1775        .83367E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.114        12.692        .94114E-04   -1.4857    
  16  Prefactor     37.749        46.201        .65188E-04   -1.4478    
  17  Prefactor     .10000E-03    16.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     42.228        72.213        .30802E-03   -1.4407    
  20  norm          5.2499        1.7097        .56663E-04   -1.5250    
  21  Prefactor     4.5779        4.2625        .14830E-03   -1.5280    
  22  norm          12.297        12.170        .11425E-03   -1.5006    
  23  Prefactor     .10000E-03    4.8190        .16922E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.9706        .10745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    6.9246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    5.8913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    9.0748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .99134        .22512        .25495E-03   -.93321    
  29  Prefactor     1.2130        .26917        .29088E-03   -.85933    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.56776e-09
Minuit parameter uncertainties:
  1  1.22149e-05
  2  0.000229809
  3  4.68469
  4  2.77465e-06
  5  0.000334168
  6  8.20996e-05
  7  4.23363
  8  2.23746e-05
  9  2.84377e-06
  10  20.5488
  11  11.2544
  12  18.1185
  13  1.79882e-05
  14  4.33955e-06
  15  12.6939
  16  46.2448
  17  4.5423e-05
  18  2.43302e-05
  19  72.3633
  20  1.70976
  21  4.2628
  22  12.1725
  23  6.04054e-06
  24  1.82305e-06
  25  3.02736e-05
  26  1.1599e-05
  27  2.69206e-05
  28  0.225335
  29  0.269474
Done.

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

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  3.775e+01  4.624e+01  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  2.152e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
321        Scale:  1.846e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
603    Prefactor:  1.213e+00  2.695e-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.913e-01  2.253e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.07
Ra Dec: 201.501 35.122
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 1.74e-08 +/- 2.13e-08
Energy Flux (Fixed Index): 8.57e-06 +/- 1.05e-05

TS (Fixed Index): 1.07
Ra Dec: 201.501 35.122
Photon Flux Upper Limit: 7.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/556583/likelihoodResults_602985601_603244801_4FGL_J1326.0+3507_daily_bin1403.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): 0
logL (Free Index) = 6232.99932654
delta logL = 0.148869598218

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6232.98997562
delta logL = 0.158220515566

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    57.784       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7766       1.0000          .0000       10.000    
     3 'Normalizat'    .99767       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2068       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=   6232.990     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      321 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     57.788        69.151        .52775E-04    .34467E-05
   2  Index         1.7766        .62210        .10092E-01    .17458E-03
   3  Normalizat    .99783        .21185        .25421E-03   -.26297E-04
   4  Prefactor     1.2066        .26540        .29148E-03   -.48364E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 57.7875
  Index      = 1.77659
  Normalizat = 0.997826
  Prefactor  = 1.20662
 **********
 **   18 **HESSE 
 **********

 FCN=   6232.990     FROM HESSE     STATUS=OK            25 CALLS      346 TOTAL
                     EDM=   .25E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     57.788        68.325        .10555E-04   -1.4186    
   2  Index         1.7766        .61491        .20183E-02   -.70061    
   3  Normalizat    .99783        .21206        .10168E-04   -.93103    
   4  Prefactor     1.2066        .26568        .11659E-04   -.86128    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.52374e-12
Minuit parameter uncertainties:
  1  68.4183
  2  0.617597
  3  0.212237
  4  0.265971
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/556583': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6232.98997531
delta logL = 0.158220829368

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  5.779e+01  6.842e+01  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  1.777e+00  6.176e-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:  1.207e+00  2.660e-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.978e-01  2.122e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.40
Ra Dec: 201.501 35.122
Photon Index (Free Index): 1.78 +/- 0.62
Photon Flux (Free Index): 1.32e-08 +/- 1.76e-08
Energy Flux (Free Index): 1.69e-05 +/- 2.78e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/556583/cmap_HighResolution_602985601_603244801_4FGL_J1326.0+3507_daily_bin1403.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.57e-03', comment='SUCCESS', photon_flux='1.74e-08', energy_flux2='1.69e-05', photon_flux_error='2.13e-08', dlogl='1.58e-01', energy_flux='8.57e-06', photon_flux2='1.32e-08', job_status='DONE', time_completed='2021-09-07 16:25:21.023327', photon_index_error2='0.62', photon_index2='1.78', ts='1.07', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', photon_flux_upper_limit='7.34e-08', energy_flux_error2='2.78e-05', EG='0.99', time_epoch_completed='1631057121.02', return_code='0', job_id='556583', GAL2='1.21', EG2='1.00', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='1.76e-08', ts2='1.40', photon_index='2.15' WHERE bin_id='1403' AND source_name='4FGL J1326.0+3507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 16:25:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 556583: <4FGL_J1326.0+3507_daily_bin1403> in cluster <slac> Done

Job <4FGL_J1326.0+3507_daily_bin1403> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Tue Sep  7 16:10:24 2021
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 16:11:04 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:11:04 2021
Terminated at Tue Sep  7 16:25:22 2021
Results reported at Tue Sep  7 16:25:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1326.0+3507_daily_bin1403 201.501 35.1218 602985601 603244801 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 :                                   689.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            898 sec.

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

