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


Performing analysis on: 4FGL_J1326.0+3507_daily_bin1283
RA = 201.501, Dec = 35.1218
tmin = 571881601, tmax = 572140801
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='555747', job_status='RUN', time_executed='2021-09-07 16:10:29.217092', time_epoch_executed='1631056229.22' WHERE source_name='4FGL J1326.0+3507' and cadence='daily' and bin_id='1283'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/555747

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/555747/ft1_4FGL_J1326.0+3507_daily_bin1283.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/555747/ft2_4FGL_J1326.0+3507_daily_bin1283.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/555747/ft1_4FGL_J1326.0+3507_daily_bin1283.fits outfile=/scratch/kocevski/555747/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin1283.fits ra=201.501 dec=35.1218 rad=12.0 tmin=571881601.0 tmax=572140801.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.59
user 2.36
sys 0.20

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/555747/ft1_filtered_4FGL_J1326.0+3507_daily_bin1283.fits evtable="EVENTS" scfile=/scratch/kocevski/555747/ft2_4FGL_J1326.0+3507_daily_bin1283.fits sctable="SC_DATA" expcube=/scratch/kocevski/555747/ltcube_571881601_572140801_4FGL_J1326.0+3507_daily_bin1283.fits outfile=/scratch/kocevski/555747/expmap_571881601_572140801_4FGL_J1326.0+3507_daily_bin1283.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/555747/ltcube_571881601_572140801_4FGL_J1326.0+3507_daily_bin1283.fits
.....................!
real 195.40
user 188.48
sys 4.61

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/555747/ft1_filtered_4FGL_J1326.0+3507_daily_bin1283.fits scfile=/scratch/kocevski/555747/ft2_4FGL_J1326.0+3507_daily_bin1283.fits outfile=/scratch/kocevski/555747/cmap_571881601_572140801_4FGL_J1326.0+3507_daily_bin1283.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.60
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/555747/ft1_filtered_4FGL_J1326.0+3507_daily_bin1283.fits scfile=/scratch/kocevski/555747/ft2_4FGL_J1326.0+3507_daily_bin1283.fits outfile=/scratch/kocevski/555747/cmap_HighResolution_571881601_572140801_4FGL_J1326.0+3507_daily_bin1283.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=201.501 yref=35.1218 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26178E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .28132E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11473E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10130E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    163.51       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.3123       1.0000         .10000E-03   10000.    
     7 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.5737       1.0000         .10000E-03   10000.    
     9 'norm      '    4.9607       1.0000         .10000E-03   10000.    
    10 'norm      '    .10932E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .34322E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    .10732E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    14.718       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    28.012       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .25991E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    35.609       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10537E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    26.893       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10107E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.6179       1.0000         .10000E-03   10000.    
    26 'Prefactor '    15.817       1.0000         .10000E-03   10000.    
    27 'norm      '    .10747E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .87347       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1645       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=   4549.026     FROM MIGRAD    STATUS=CONVERGED    701 CALLS     3742 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.724        .53660E-07** at limit **
   2  Prefactor     .10000E-03    179.90        .57848E-06** at limit **
   3  Prefactor     .10000E-03    6.4140        .70406E-06** at limit **
   4  norm          .10000E-03    4.1193        .21046E-05** at limit **
   5  Prefactor     163.54        97.252        .69104E-06    .70483E-04
   6  Prefactor     2.3561        83.973       -.10300E-04   -.41280E-04
   7  norm          .10000E-03    1.6158       -.15657E-07** at limit **
   8  Prefactor     9.6103        19.479        .29610E-06    .33247E-04
   9  norm          4.9616        7.4749        .62113E-06    .13248E-03
  10  norm          .10000E-03    9.6964        .39676E-06** at limit **
  11  norm          .10105E-03    3.6577       -.15728E-05** at limit **
  12  norm          .10000E-03    4.9619        .51360E-06** at limit **
  13  norm          14.757        16.398       -.24989E-07   -.14924E-04
  14  Prefactor     .10000E-03    2.1468        .14393E-06** at limit **
  15  Prefactor     28.010        24.266       -.20255E-05   -.19587E-03
  16  Prefactor     .10000E-03    51.588        .49569E-07** at limit **
  17  Prefactor     35.622        24.385        .20916E-07   -.16906E-04
  18  Prefactor     .10000E-03    8.0583       -.55864E-07** at limit **
  19  Prefactor     .10000E-03    38.432        .24987E-06** at limit **
  20  norm          26.899        4.0027        .19761E-07   -.92728E-04
  21  Prefactor     .10000E-03    3.4912       -.82312E-07** at limit **
  22  norm          .10000E-03    4.2653       -.70159E-07** at limit **
  23  Prefactor     .10000E-03    6.4445       -.58442E-07** at limit **
  24  norm          .10000E-03    1.4279       -.84796E-07** at limit **
  25  Prefactor     7.6100        12.243        .13140E-06    .23034E-05
  26  Prefactor     15.803        20.208        .10797E-06   -.88364E-05
  27  norm          .10000E-03    11.384       -.17718E-06** at limit **
  28  Normalizat    .87363        .21782       -.10131E-05   -.13369E-03
  29  Prefactor     1.1643        .25496        .25878E-06   -.13350E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 163.545
  Prefactor  = 2.35613
  norm       = 0.0001
  Prefactor  = 9.61027
  norm       = 4.96165
  norm       = 0.0001
  norm       = 0.000101047
  norm       = 0.0001
  norm       = 14.7573
  Prefactor  = 0.0001
  Prefactor  = 28.0102
  Prefactor  = 0.0001
  Prefactor  = 35.6223
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 26.8986
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.61004
  Prefactor  = 15.803
  norm       = 0.0001
  Normalizat = 0.873633
  Prefactor  = 1.16428
 **********
 **   18 **HESSE 
 **********

 FCN=   4549.026     FROM HESSE     STATUS=OK           543 CALLS     4285 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.755        .21446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    180.51        .21417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.4342        .16669E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.1897        .13421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     163.54        97.045        .15770E-03   -1.3143    
   6  Prefactor     2.3561        84.158        .26980E-03   -1.5401    
   7  norm          .10000E-03    1.6181        .83726E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.6103        19.427        .12952E-03   -1.5088    
   9  norm          4.9616        7.4345        .18057E-03   -1.5262    
  10  norm          .10000E-03    9.7047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10105E-03    34.743        .21944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    4.9931        .14679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          14.757        16.399        .10440E-03   -1.4939    
  14  Prefactor     .10000E-03    2.1602        .96512E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     28.010        24.087        .75695E-04   -1.4649    
  16  Prefactor     .10000E-03    51.624        .21449E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     35.622        24.445        .67158E-04   -1.4514    
  18  Prefactor     .10000E-03    8.0590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    38.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          26.899        4.0042        .50203E-04   -1.4670    
  21  Prefactor     .10000E-03    3.5615        .12291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    4.2663        .13603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.4478        .16722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.4338        .78684E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     7.6100        12.224        .14530E-03   -1.5156    
  26  Prefactor     15.803        20.192        .10071E-03   -1.4913    
  27  norm          .10000E-03    11.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .87363        .26215        .27133E-03   -.97393    
  29  Prefactor     1.1643        .30754        .28771E-03   -.87438    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.00498e-08
Minuit parameter uncertainties:
  1  5.69437e-05
  2  0.000381575
  3  6.59173e-05
  4  0.000165081
  5  97.1401
  6  28.2053
  7  1.91071e-07
  8  19.4401
  9  7.43584
  10  5.54322e-05
  11  0.0120699
  12  6.40424e-05
  13  16.404
  14  1.845e-05
  15  24.0956
  16  9.4573e-05
  17  24.4514
  18  2.16586e-05
  19  0.000207857
  20  4.00422
  21  2.75008e-06
  22  5.33056e-06
  23  6.93764e-07
  24  2.43902e-06
  25  12.2276
  26  20.2006
  27  1.8275e-05
  28  0.26253
  29  0.308011
Done.

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

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  9.457e-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:  1.164e+00  3.080e-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.736e-01  2.625e-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: 8.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/555747/likelihoodResults_571881601_572140801_4FGL_J1326.0+3507_daily_bin1283.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) = 4549.02616268
delta logL = -9.21735518205e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4549.02600062
delta logL = 6.98950270817e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .80109E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    4.3341       1.0000          .0000       10.000    
     3 'Normalizat'    .87363       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1643       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4548.986     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      290 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9008        17.532       -.17533E-04    .20335E-03
   2  Index         3.5101        1.9600        .45164E-04    .56916E-04
   3  Normalizat    .84966        .26386        .87733E-05    .27858E-03
   4  Prefactor     1.1804        .30837       -.60351E-05    .24002E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.90084
  Index      = 3.51007
  Normalizat = 0.849656
  Prefactor  = 1.18041
 **********
 **   18 **HESSE 
 **********

 FCN=   4548.986     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      329 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9008        247.17        .10451E-01   -1.5432    
   2  Index         3.5101        3.8550        .15359       -.30258    
   3  Normalizat    .84966        .37240E-01    .44564E-01   -.98252    
   4  Prefactor     1.1804        .45128E-01    .64655E-01   -.86936    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.26333e-08
Minuit parameter uncertainties:
  1  43.5344
  2  4.4876
  3  0.037241
  4  0.0451294
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/555747': 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) = 4548.98552533
delta logL = 0.0405451769657

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.901e+00  4.353e+01  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  3.510e+00  4.488e+00  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.180e+00  4.513e-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.497e-01  3.724e-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/555747/cmap_HighResolution_571881601_572140801_4FGL_J1326.0+3507_daily_bin1283.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.75e-03', job_status='DONE', photon_flux_upper_limit='8.89e-08', time_completed='2021-09-07 16:22:21.463498', job_id='555747', GAL2='1.18', fit_tolerance='1e-08', EG2='0.85', EG='0.87', time_epoch_completed='1631056941.46', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='4.05e-02', ts2='0.09', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1283' AND source_name='4FGL J1326.0+3507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 16:22:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0006>
Subject: Job 555747: <4FGL_J1326.0+3507_daily_bin1283> in cluster <slac> Done

Job <4FGL_J1326.0+3507_daily_bin1283> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 16:06:27 2021
Job was executed on host(s) <bullet0006>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 16:07:58 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:07:58 2021
Terminated at Tue Sep  7 16:22:22 2021
Results reported at Tue Sep  7 16:22:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1326.0+3507_daily_bin1283 201.501 35.1218 571881601 572140801 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 :                                   703.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             268.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            955 sec.

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

