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


Performing analysis on: 4FGL_J1359.7+4012_daily_bin848
RA = 209.928, Dec = 40.2153
tmin = 459129601, tmax = 459388801
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='98639', job_status='RUN', time_executed='2021-09-08 19:45:39.188611', time_epoch_executed='1631155539.19' WHERE source_name='4FGL J1359.7+4012' and cadence='daily' and bin_id='848'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/98639

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/98639/ft1_4FGL_J1359.7+4012_daily_bin848.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/98639/ft2_4FGL_J1359.7+4012_daily_bin848.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/98639/ft1_4FGL_J1359.7+4012_daily_bin848.fits outfile=/scratch/kocevski/98639/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin848.fits ra=209.928 dec=40.2153 rad=12.0 tmin=459129601.0 tmax=459388801.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.88
user 3.62
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/98639/ft1_filtered_4FGL_J1359.7+4012_daily_bin848.fits" evtable="EVENTS" scfile=/scratch/kocevski/98639/ft2_4FGL_J1359.7+4012_daily_bin848.fits sctable="SC_DATA" outfile=/scratch/kocevski/98639/ltcube_459129601_459388801_4FGL_J1359.7+4012_daily_bin848.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/98639/ft2_4FGL_J1359.7+4012_daily_bin848.fits
.....................!
real 11.76
user 11.39
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/98639/ft1_filtered_4FGL_J1359.7+4012_daily_bin848.fits evtable="EVENTS" scfile=/scratch/kocevski/98639/ft2_4FGL_J1359.7+4012_daily_bin848.fits sctable="SC_DATA" expcube=/scratch/kocevski/98639/ltcube_459129601_459388801_4FGL_J1359.7+4012_daily_bin848.fits outfile=/scratch/kocevski/98639/expmap_459129601_459388801_4FGL_J1359.7+4012_daily_bin848.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/98639/ltcube_459129601_459388801_4FGL_J1359.7+4012_daily_bin848.fits
.....................!
real 191.80
user 185.62
sys 5.47

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/98639/ft1_filtered_4FGL_J1359.7+4012_daily_bin848.fits scfile=/scratch/kocevski/98639/ft2_4FGL_J1359.7+4012_daily_bin848.fits outfile=/scratch/kocevski/98639/cmap_459129601_459388801_4FGL_J1359.7+4012_daily_bin848.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/98639/ft1_filtered_4FGL_J1359.7+4012_daily_bin848.fits scfile=/scratch/kocevski/98639/ft2_4FGL_J1359.7+4012_daily_bin848.fits outfile=/scratch/kocevski/98639/cmap_HighResolution_459129601_459388801_4FGL_J1359.7+4012_daily_bin848.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/98639/ft1_filtered_4FGL_J1359.7+4012_daily_bin848.fits evtable="EVENTS" scfile=/scratch/kocevski/98639/ft2_4FGL_J1359.7+4012_daily_bin848.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/98639/Model_4FGL_J1359.7+4012_daily_bin848.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/98639/ft1_filtered_4FGL_J1359.7+4012_daily_bin848.fits.....................!
real 47.34
user 46.01
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/98639/ft1_filtered_4FGL_J1359.7+4012_daily_bin848.fits', '/scratch/kocevski/98639/ft2_4FGL_J1359.7+4012_daily_bin848.fits', expMap='/scratch/kocevski/98639/expmap_459129601_459388801_4FGL_J1359.7+4012_daily_bin848.fits', expCube='/scratch/kocevski/98639/ltcube_459129601_459388801_4FGL_J1359.7+4012_daily_bin848.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/98639/Model_4FGL_J1359.7+4012_daily_bin848.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/98639/ft1_filtered_4FGL_J1359.7+4012_daily_bin848.fits
Spacecraft file(s): /scratch/kocevski/98639/ft2_4FGL_J1359.7+4012_daily_bin848.fits
Exposure map: /scratch/kocevski/98639/expmap_459129601_459388801_4FGL_J1359.7+4012_daily_bin848.fits
Exposure cube: /scratch/kocevski/98639/ltcube_459129601_459388801_4FGL_J1359.7+4012_daily_bin848.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/98639/Model_4FGL_J1359.7+4012_daily_bin848.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) = 5698.19598615

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.1296       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .91967       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.3496       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    48.256       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11739E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    8.5061       1.0000         .10000E-03   10000.    
    12 'Prefactor '    34.694       1.0000         .10000E-03   10000.    
    13 'norm      '    4.6931       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.7801       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.9945       1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.067       1.0000         .10000E-03   10000.    
    20 'norm      '    .12330E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.742       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.3951       1.0000         .10000E-03   10000.    
    24 'norm      '    12.855       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    5.2764       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2426       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .65291       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=   5698.158     FROM MIGRAD    STATUS=CONVERGED    829 CALLS     4373 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.002        .23897E-06** at limit **
   2  Prefactor     .10000E-03    8.0314        .54081E-08** at limit **
   3  norm          3.1297        3.2253       -.13114E-07   -.36008E-04
   4  norm          .10000E-03    6.6103       -.80484E-07** at limit **
   5  norm          .92095        5.4454        .41030E-05    .11045E-03
   6  Prefactor     2.3498        2.8985        .30294E-06    .94019E-04
   7  Prefactor     .10000E-03    6.8160       -.30456E-06** at limit **
   8  Prefactor     48.280        44.693       -.11727E-05   -.99146E-04
   9  Prefactor     .10000E-03    21.691       -.45212E-07** at limit **
  10  Prefactor     .10000E-03    66.615        .44240E-05** at limit **
  11  norm          8.5065        4.5295        .34625E-07   -.14053E-03
  12  Prefactor     34.808        76.452        .50175E-05    .15724E-03
  13  norm          4.6933        1.6935        .87514E-07   -.25268E-03
  14  Prefactor     .10000E-03    .89873       -.34302E-07** at limit **
  15  norm          4.7795        9.5807        .56347E-05    .14491E-03
  16  Prefactor     .10000E-03    7.3872        .64946E-07** at limit **
  17  Prefactor     .10000E-03    13.186        .39406E-07** at limit **
  18  Prefactor     3.9946        3.3895        .75249E-07    .72366E-04
  19  Prefactor     16.078        18.323        .11676E-05   -.28402E-04
  20  norm          .10000E-03    1.9363       -.18966E-06** at limit **
  21  Prefactor     11.743        12.887        .51746E-06   -.91289E-05
  22  Prefactor     .10000E-03    16.683       -.34848E-06** at limit **
  23  Prefactor     6.3955        4.2713        .26382E-06   -.90306E-04
  24  norm          12.854        12.193       -.30375E-08    .60291E-05
  25  Prefactor     .10000E-03    17.000       -.44448E-06** at limit **
  26  norm          5.2766        5.3857        .29055E-06    .32124E-05
  27  Prefactor     .10000E-03    15.108       -.22553E-07** at limit **
  28  norm          .10000E-03    3.0332       -.40638E-07** at limit **
  29  Prefactor     .10000E-03    8.6359       -.31606E-06** at limit **
  30  Prefactor     .10000E-03    11.411       -.55448E-06** at limit **
  31  Normalizat    1.2422        .19616       -.61936E-05    .14274E-03
  32  Prefactor     .65327        .21281        .71558E-05   -.17934E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.12971
  norm       = 0.0001
  norm       = 0.920953
  Prefactor  = 2.34979
  Prefactor  = 0.000100003
  Prefactor  = 48.2796
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 8.50645
  Prefactor  = 34.8078
  norm       = 4.69326
  Prefactor  = 0.0001
  norm       = 4.77949
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.99455
  Prefactor  = 16.0778
  norm       = 0.0001
  Prefactor  = 11.743
  Prefactor  = 0.0001
  Prefactor  = 6.39547
  norm       = 12.8543
  Prefactor  = 0.0001
  norm       = 5.27662
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.24225
  Prefactor  = 0.653267
 **********
 **   18 **HESSE 
 **********

 FCN=   5698.158     FROM HESSE     STATUS=OK           655 CALLS     5028 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.0417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.1297        3.2300        .13392E-03   -1.5354    
   4  norm          .10000E-03    6.6248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .92095        5.4329        .32651E-03   -1.5516    
   6  Prefactor     2.3498        2.8281        .13469E-03   -1.5401    
   7  Prefactor     .10000E-03    24.926        .37476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     48.280        44.265        .57724E-04   -1.4317    
   9  Prefactor     .10000E-03    21.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    67.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.5065        4.5282        .11367E-03   -1.5125    
  12  Prefactor     34.808        76.845        .68036E-04   -1.4527    
  13  norm          4.6933        1.6923        .56408E-04   -1.5275    
  14  Prefactor     .10000E-03    .89990        .69882E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.7795        9.7013        .92010E-03   -1.5271    
  16  Prefactor     .10000E-03    7.3923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.9946        3.3896        .12389E-03   -1.5308    
  19  Prefactor     16.078        18.357        .99919E-04   -1.4906    
  20  norm          .10000E-03    5.0647        .20350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.743        12.835        .11691E-03   -1.5022    
  22  Prefactor     .10000E-03    16.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.3955        4.2660        .12164E-03   -1.5202    
  24  norm          12.854        12.184        .11172E-03   -1.4991    
  25  Prefactor     .10000E-03    17.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          5.2766        5.3792        .17054E-03   -1.5249    
  27  Prefactor     .10000E-03    15.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    3.0362        .12839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    8.6517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    11.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.2422        .21034        .20729E-03   -.85307    
  32  Prefactor     .65327        .22855        .32414E-03   -1.0539    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25863e-09
Minuit parameter uncertainties:
  1  0.000155302
  2  1.32173e-05
  3  3.23018
  4  1.29597e-05
  5  4.47405
  6  2.82829
  7  0.000557267
  8  44.2952
  9  9.92568e-05
  10  0.000436074
  11  4.52841
  12  77.065
  13  1.6923
  14  9.71215e-07
  15  9.70447
  16  2.46434e-05
  17  4.89266e-05
  18  3.38979
  19  18.3635
  20  7.59988e-05
  21  12.8375
  22  2.78908e-05
  23  4.26622
  24  12.1859
  25  1.8538e-05
  26  5.37967
  27  3.47164e-05
  28  1.12644e-06
  29  2.87324e-05
  30  6.92059e-06
  31  0.210487
  32  0.228878
Done.

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

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  4.779e+00  9.704e+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

GAL_V02
   Spectrum: PowerLaw
617    Prefactor:  6.533e-01  2.289e-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:  1.242e+00  2.105e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.33
Ra Dec: 209.928 40.215
Photon Flux Upper Limit: 6.23e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.86e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/98639/likelihoodResults_459129601_459388801_4FGL_J1359.7+4012_daily_bin848.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) = 5697.91301902
delta logL = 0.244917898183

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5697.91187233
delta logL = 0.246064594834

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.7797       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2850       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2498       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64467       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.

 FCN=   5697.912     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      199 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.6577        6.7397        .46007E-02    .12824E-03
   2  alpha         1.2729        1.0716        .50000       -.19409E-04
   3  Normalizat    1.2498        .16852        .33771E-01    .49497E-06
   4  Prefactor     .64470        .19819        .73626E-01    .25534E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.65774
  alpha      = 1.27293
  Normalizat = 1.24984
  Prefactor  = 0.644696
 **********
 **   18 **HESSE 
 **********

 FCN=   5697.912     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .57E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.6577        7.9002        .18403E-03   -1.5276    
   2  alpha         1.2729        1.2752        .37887E-01   -.51304    
   3  Normalizat    1.2498        .19063        .20671E-03   -.85076    
   4  Prefactor     .64470        .22364        .32592E-03   -1.0574    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.71286e-12
Minuit parameter uncertainties:
  1  7.90198
  2  1.36232
  3  0.190732
  4  0.223955
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/98639': 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) = 5697.91176471
delta logL = 0.246172213125

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  4.658e+00  7.902e+00  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  1.273e+00  1.362e+00  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:  6.447e-01  2.240e-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:  1.250e+00  1.907e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.33
Ra Dec: 209.928 40.215

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/98639/cmap_HighResolution_459129601_459388801_4FGL_J1359.7+4012_daily_bin848.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.86e-05', job_status='DONE', photon_flux_upper_limit='6.23e-08', time_completed='2021-09-08 20:00:44.419896', job_id='98639', GAL2='0.64', fit_tolerance='1e-08', EG2='1.25', EG='1.24', time_epoch_completed='1631156444.42', return_code2='0', ts='0.33', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='2.46e-01', ts2='0.83', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='848' AND source_name='4FGL J1359.7+4012' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 20:00:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 98639: <4FGL_J1359.7+4012_daily_bin848> in cluster <slac> Done

Job <4FGL_J1359.7+4012_daily_bin848> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  8 19:45:23 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 19:45:24 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:45:24 2021
Terminated at Wed Sep  8 20:00:45 2021
Results reported at Wed Sep  8 20:00:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.7+4012_daily_bin848 209.928 40.2153 459129601 459388801 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 :                                   902.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             345.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            922 sec.

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

