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


Performing analysis on: 4FGL_J1359.7+4012_daily_bin1089
RA = 209.928, Dec = 40.2153
tmin = 521596801, tmax = 521856001
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='100150', job_status='RUN', time_executed='2021-09-08 19:53:46.843771', time_epoch_executed='1631156026.84' WHERE source_name='4FGL J1359.7+4012' and cadence='daily' and bin_id='1089'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/100150

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/100150/ft1_4FGL_J1359.7+4012_daily_bin1089.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/100150/ft2_4FGL_J1359.7+4012_daily_bin1089.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/100150/ft1_4FGL_J1359.7+4012_daily_bin1089.fits outfile=/scratch/kocevski/100150/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin1089.fits ra=209.928 dec=40.2153 rad=12.0 tmin=521596801.0 tmax=521856001.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 4.32
user 4.07
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/100150/ft2_4FGL_J1359.7+4012_daily_bin1089.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/100150/ft2_4FGL_J1359.7+4012_daily_bin1089.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/100150/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin1089.fits evtable="EVENTS" outfile="/scratch/kocevski/100150/ft1_filtered_4FGL_J1359.7+4012_daily_bin1089.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.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/100150/ft1_filtered_4FGL_J1359.7+4012_daily_bin1089.fits" evtable="EVENTS" scfile=/scratch/kocevski/100150/ft2_4FGL_J1359.7+4012_daily_bin1089.fits sctable="SC_DATA" outfile=/scratch/kocevski/100150/ltcube_521596801_521856001_4FGL_J1359.7+4012_daily_bin1089.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/100150/ft2_4FGL_J1359.7+4012_daily_bin1089.fits
.....................!
real 11.64
user 11.30
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/100150/ft1_filtered_4FGL_J1359.7+4012_daily_bin1089.fits evtable="EVENTS" scfile=/scratch/kocevski/100150/ft2_4FGL_J1359.7+4012_daily_bin1089.fits sctable="SC_DATA" expcube=/scratch/kocevski/100150/ltcube_521596801_521856001_4FGL_J1359.7+4012_daily_bin1089.fits outfile=/scratch/kocevski/100150/expmap_521596801_521856001_4FGL_J1359.7+4012_daily_bin1089.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/100150/ltcube_521596801_521856001_4FGL_J1359.7+4012_daily_bin1089.fits
.....................!
real 190.36
user 185.94
sys 4.07

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 193 point sources and 0 extended sources

Setting source of interest to:
4FGL J1359.7+4012 @ 209.928 40.2153

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/100150/ft1_filtered_4FGL_J1359.7+4012_daily_bin1089.fits scfile=/scratch/kocevski/100150/ft2_4FGL_J1359.7+4012_daily_bin1089.fits outfile=/scratch/kocevski/100150/cmap_521596801_521856001_4FGL_J1359.7+4012_daily_bin1089.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=209.928 yref=40.2153 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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/100150/ft1_filtered_4FGL_J1359.7+4012_daily_bin1089.fits scfile=/scratch/kocevski/100150/ft2_4FGL_J1359.7+4012_daily_bin1089.fits outfile=/scratch/kocevski/100150/cmap_HighResolution_521596801_521856001_4FGL_J1359.7+4012_daily_bin1089.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=209.928 yref=40.2153 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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/100150/ft1_filtered_4FGL_J1359.7+4012_daily_bin1089.fits evtable="EVENTS" scfile=/scratch/kocevski/100150/ft2_4FGL_J1359.7+4012_daily_bin1089.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/100150/Model_4FGL_J1359.7+4012_daily_bin1089.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/100150/ft1_filtered_4FGL_J1359.7+4012_daily_bin1089.fits.....................!
real 41.58
user 40.28
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/100150/ft1_filtered_4FGL_J1359.7+4012_daily_bin1089.fits', '/scratch/kocevski/100150/ft2_4FGL_J1359.7+4012_daily_bin1089.fits', expMap='/scratch/kocevski/100150/expmap_521596801_521856001_4FGL_J1359.7+4012_daily_bin1089.fits', expCube='/scratch/kocevski/100150/ltcube_521596801_521856001_4FGL_J1359.7+4012_daily_bin1089.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/100150/Model_4FGL_J1359.7+4012_daily_bin1089.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1359.7+4012'

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  4.118e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  2.327e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
324         beta:  2.597e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
325           Eb:  4.424e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/100150/ft1_filtered_4FGL_J1359.7+4012_daily_bin1089.fits
Spacecraft file(s): /scratch/kocevski/100150/ft2_4FGL_J1359.7+4012_daily_bin1089.fits
Exposure map: /scratch/kocevski/100150/expmap_521596801_521856001_4FGL_J1359.7+4012_daily_bin1089.fits
Exposure cube: /scratch/kocevski/100150/ltcube_521596801_521856001_4FGL_J1359.7+4012_daily_bin1089.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/100150/Model_4FGL_J1359.7+4012_daily_bin1089.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) = 4849.44926809

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.7367       1.0000         .10000E-03   10000.    
     4 'norm      '    1.8398       1.0000         .10000E-03   10000.    
     5 'norm      '    3.5922       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.8482       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.526       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10631E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.4374       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.1893       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14838E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    39.891       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    60.406       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .74878E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.4483       1.0000         .10000E-03   10000.    
    20 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    9.8111       1.0000         .10000E-03   10000.    
    25 'Prefactor '    82.163       1.0000         .10000E-03   10000.    
    26 'norm      '    3.2325       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .78677       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .89800       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4849.350     FROM MIGRAD    STATUS=CONVERGED    834 CALLS     4398 TOTAL
                     EDM=   .98E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.399       -.62110E-05** at limit **
   2  Prefactor     .10000E-03    18.129       -.13351E-05** at limit **
   3  norm          8.7359        7.0522        .19117E-06    .83883E-04
   4  norm          1.8241        45.817        .17208E-04    .23072E-04
   5  norm          3.5938        6.4595        .37440E-05   -.98749E-04
   6  Prefactor     6.8488        4.1626        .13849E-07   -.75656E-05
   7  Prefactor     .10000E-03    8.4189       -.62907E-06** at limit **
   8  Prefactor     20.511        42.998       -.31193E-05   -.69491E-04
   9  Prefactor     .10000E-03    79.364        .51154E-05** at limit **
  10  Prefactor     .10000E-03    27.922        .21463E-05** at limit **
  11  norm          5.4372        4.6749       -.10216E-06   -.90117E-04
  12  Prefactor     .10000E-03    21.621        .19547E-05** at limit **
  13  norm          6.1891        1.9022        .98866E-08   -.26915E-03
  14  Prefactor     .10000E-03    3.4956        .17847E-05** at limit **
  15  norm          39.888        19.878        .23933E-06   -.35766E-04
  16  Prefactor     .10000E-03    9.9989        .38606E-06** at limit **
  17  Prefactor     60.390        42.108        .24238E-05   -.16987E-05
  18  Prefactor     .10000E-03    2.1161        .27422E-06** at limit **
  19  Prefactor     8.4451        13.778        .13508E-06    .51269E-05
  20  norm          .10000E-03    1.1789        .10389E-07** at limit **
  21  Prefactor     .10000E-03    7.9556       -.37494E-06** at limit **
  22  Prefactor     .10000E-03    9.7961        .23516E-06** at limit **
  23  Prefactor     .10000E-03    3.0969        .10312E-05** at limit **
  24  norm          9.8095        13.286        .26213E-06    .16440E-05
  25  Prefactor     82.158        34.641        .60420E-06   -.26919E-04
  26  norm          3.2321        4.5430        .40797E-06   -.47601E-04
  27  Prefactor     .10000E-03    18.495       -.12421E-05** at limit **
  28  norm          .10000E-03    3.3488       -.30746E-07** at limit **
  29  Prefactor     .10000E-03    10.231        .44380E-06** at limit **
  30  Prefactor     .10000E-03    7.3534        .10052E-05** at limit **
  31  Normalizat    .78681        .18070        .35259E-06   -.10322E-03
  32  Prefactor     .89811        .20622       -.23662E-05   -.13998E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.73592
  norm       = 1.8241
  norm       = 3.59375
  Prefactor  = 6.84875
  Prefactor  = 0.0001
  Prefactor  = 20.5106
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 5.43719
  Prefactor  = 0.0001
  norm       = 6.18906
  Prefactor  = 0.0001
  norm       = 39.888
  Prefactor  = 0.0001
  Prefactor  = 60.3897
  Prefactor  = 0.000100003
  Prefactor  = 8.44506
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.80945
  Prefactor  = 82.1583
  norm       = 3.2321
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.786808
  Prefactor  = 0.898109
 **********
 **   18 **HESSE 
 **********

 FCN=   4849.350     FROM HESSE     STATUS=OK           659 CALLS     5057 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.7359        7.0449        .13561E-03   -1.5117    
   4  norm          1.8241        46.416        .15377E-02   -1.5438    
   5  norm          3.5938        6.5030        .10205E-02   -1.5329    
   6  Prefactor     6.8488        4.1655        .10390E-03   -1.5185    
   7  Prefactor     .10000E-03    8.4624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.511        42.832        .88406E-04   -1.4802    
   9  Prefactor     .10000E-03    79.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    27.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.4372        4.6703        .13405E-03   -1.5242    
  12  Prefactor     .10000E-03    21.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.1891        1.9019        .50787E-04   -1.5210    
  14  Prefactor     .10000E-03    8.0320        .24523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          39.888        19.908        .63464E-04   -1.4444    
  16  Prefactor     .10000E-03    10.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     60.390        41.964        .51624E-04   -1.4152    
  18  Prefactor     .10000E-03    16.563        .19489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.4451        13.756        .13792E-03   -1.5127    
  20  norm          .10000E-03    1.1806        .73826E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.9802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.8401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.4898        .23341E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          9.8095        13.273        .12793E-03   -1.5081    
  25  Prefactor     82.158        34.681        .44312E-04   -1.3893    
  26  norm          3.2321        4.5316        .17023E-03   -1.5348    
  27  Prefactor     .10000E-03    18.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    3.3519        .12446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    10.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    7.3888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .78681        .21138        .23346E-03   -1.0056    
  32  Prefactor     .89811        .24078        .26319E-03   -.96207    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.43859e-10
Minuit parameter uncertainties:
  1  0.00017829
  2  5.85619e-05
  3  7.04556
  4  18.4184
  5  6.50428
  6  4.16572
  7  2.66645e-05
  8  42.8958
  9  0.000150291
  10  0.000378479
  11  4.67061
  12  3.90512e-05
  13  1.90193
  14  5.38643e-05
  15  19.9112
  16  4.44987e-06
  17  41.9845
  18  0.000450123
  19  13.7608
  20  2.36908e-07
  21  1.26467e-06
  22  1.14049e-05
  23  4.48317e-06
  24  13.2771
  25  34.6891
  26  4.53211
  27  1.07667e-05
  28  2.1546e-06
  29  1.12366e-05
  30  2.07454e-05
  31  0.211598
  32  0.241063
Done.

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

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  3.989e+01  1.991e+01  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  2.327e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
324         beta:  2.597e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
325           Eb:  4.424e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
617    Prefactor:  8.981e-01  2.411e-01  0.000e+00  1.000e+01 ( 1.000e+00)
618        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
619        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
616   Normalization:  7.868e-01  2.116e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.75
Ra Dec: 209.928 40.215
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 7.38e-08 +/- 3.68e-08
Energy Flux (Fixed Index): 2.20e-05 +/- 1.10e-05

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) = 4849.29891569
delta logL = 0.0509586921626

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4849.29626989
delta logL = 0.05360449207

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    38.832       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5155       1.0000          .0000       5.0000    
     3 'Normalizat'    .77488       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90778       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6200E+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=   4849.296     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      259 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          38.834        19.772        .64320E-04   -.16280E-02
   2  alpha         2.5154        .57862        .13713E-01   -.24642E-03
   3  Normalizat    .77502        .20031        .23504E-03    .11086E-03
   4  Prefactor     .90761        .23734        .26198E-03    .10302E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 38.8335
  alpha      = 2.5154
  Normalizat = 0.775023
  Prefactor  = 0.907613
 **********
 **   18 **HESSE 
 **********

 FCN=   4849.296     FROM HESSE     STATUS=OK            23 CALLS      282 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          38.834        19.617        .12864E-04   -1.4461    
   2  alpha         2.5154        .57383        .54851E-03    .61607E-02
   3  Normalizat    .77502        .20052        .94014E-05   -1.0100    
   4  Prefactor     .90761        .23754        .10479E-04   -.95876    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.44362e-09
Minuit parameter uncertainties:
  1  19.6198
  2  0.578988
  3  0.200707
  4  0.237814
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/100150': 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) = 4849.29626961
delta logL = 0.0536047681007

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  3.883e+01  1.962e+01  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  2.515e+00  5.790e-01  0.000e+00  5.000e+00 ( 1.000e+00)
324         beta:  2.597e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
325           Eb:  4.424e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
617    Prefactor:  9.076e-01  2.378e-01  0.000e+00  1.000e+01 ( 1.000e+00)
618        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
619        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
616   Normalization:  7.750e-01  2.007e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.80
Ra Dec: 209.928 40.215
Photon Index (Free Index): 2.52 +/- 0.58
Photon Flux (Free Index): 8.25e-08 +/- 4.72e-08
Energy Flux (Free Index): 2.18e-05 +/- 1.06e-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/100150/cmap_HighResolution_521596801_521856001_4FGL_J1359.7+4012_daily_bin1089.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.38e-08', energy_flux2='2.18e-05', photon_flux_error='3.68e-08', dlogl='5.36e-02', energy_flux='2.20e-05', photon_flux2='8.25e-08', job_status='DONE', time_completed='2021-09-08 20:05:44.933672', photon_index_error2='0.58', photon_index2='2.52', ts='7.75', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='1.06e-05', EG='0.79', time_epoch_completed='1631156744.93', return_code='0', job_id='100150', GAL2='0.91', EG2='0.78', return_code2='0', energy_flux_error='1.10e-05', photon_flux_error2='4.72e-08', ts2='7.80', photon_index='2.33' WHERE bin_id='1089' AND source_name='4FGL J1359.7+4012' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 20:05:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 100150: <4FGL_J1359.7+4012_daily_bin1089> in cluster <slac> Done

Job <4FGL_J1359.7+4012_daily_bin1089> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 19:50:18 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 19:50:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 19:50:20 2021
Terminated at Wed Sep  8 20:05:45 2021
Results reported at Wed Sep  8 20:05:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.7+4012_daily_bin1089 209.928 40.2153 521596801 521856001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1359.7+4012 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   705.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             274.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            927 sec.

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

