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


Performing analysis on: 4FGL_J1359.7+4012_daily_bin990
RA = 209.928, Dec = 40.2153
tmin = 495936001, tmax = 496195201
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='98880', job_status='RUN', time_executed='2021-09-08 19:45:55.442495', time_epoch_executed='1631155555.44' WHERE source_name='4FGL J1359.7+4012' and cadence='daily' and bin_id='990'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/98880

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/98880/ft1_4FGL_J1359.7+4012_daily_bin990.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/98880/ft2_4FGL_J1359.7+4012_daily_bin990.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/98880/ft1_4FGL_J1359.7+4012_daily_bin990.fits outfile=/scratch/kocevski/98880/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin990.fits ra=209.928 dec=40.2153 rad=12.0 tmin=495936001.0 tmax=496195201.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.46
user 3.26
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/98880/ft2_4FGL_J1359.7+4012_daily_bin990.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/98880/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin990.fits evtable="EVENTS" outfile="/scratch/kocevski/98880/ft1_filtered_4FGL_J1359.7+4012_daily_bin990.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.48
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/98880/ft1_filtered_4FGL_J1359.7+4012_daily_bin990.fits" evtable="EVENTS" scfile=/scratch/kocevski/98880/ft2_4FGL_J1359.7+4012_daily_bin990.fits sctable="SC_DATA" outfile=/scratch/kocevski/98880/ltcube_495936001_496195201_4FGL_J1359.7+4012_daily_bin990.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/98880/ft2_4FGL_J1359.7+4012_daily_bin990.fits
.....................!
real 11.67
user 11.25
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/98880/ft1_filtered_4FGL_J1359.7+4012_daily_bin990.fits evtable="EVENTS" scfile=/scratch/kocevski/98880/ft2_4FGL_J1359.7+4012_daily_bin990.fits sctable="SC_DATA" expcube=/scratch/kocevski/98880/ltcube_495936001_496195201_4FGL_J1359.7+4012_daily_bin990.fits outfile=/scratch/kocevski/98880/expmap_495936001_496195201_4FGL_J1359.7+4012_daily_bin990.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/98880/ltcube_495936001_496195201_4FGL_J1359.7+4012_daily_bin990.fits
.....................!
real 190.17
user 185.58
sys 4.24

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/98880/ft1_filtered_4FGL_J1359.7+4012_daily_bin990.fits scfile=/scratch/kocevski/98880/ft2_4FGL_J1359.7+4012_daily_bin990.fits outfile=/scratch/kocevski/98880/cmap_495936001_496195201_4FGL_J1359.7+4012_daily_bin990.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/98880/ft1_filtered_4FGL_J1359.7+4012_daily_bin990.fits scfile=/scratch/kocevski/98880/ft2_4FGL_J1359.7+4012_daily_bin990.fits outfile=/scratch/kocevski/98880/cmap_HighResolution_495936001_496195201_4FGL_J1359.7+4012_daily_bin990.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.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/98880/ft1_filtered_4FGL_J1359.7+4012_daily_bin990.fits evtable="EVENTS" scfile=/scratch/kocevski/98880/ft2_4FGL_J1359.7+4012_daily_bin990.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/98880/Model_4FGL_J1359.7+4012_daily_bin990.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/98880/ft1_filtered_4FGL_J1359.7+4012_daily_bin990.fits.....................!
real 45.48
user 44.18
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    53.451       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.4026       1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.9352       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    51.792       1.0000         .10000E-03   10000.    
    13 'norm      '    3.6766       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.5824       1.0000         .10000E-03   10000.    
    15 'norm      '    26.704       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10677E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10110E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .28459E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.1633       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.5434       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0092       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .88064       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=   5696.590     FROM MIGRAD    STATUS=CONVERGED    862 CALLS     4380 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     53.423        46.452       -.49865E-05   -.16348E-04
   2  Prefactor     2.3988        27.079        .10895E-05   -.41871E-03
   3  norm          .10000E-03    5.4208        .44754E-05** at limit **
   4  norm          .10000E-03    5.9904       -.60127E-05** at limit **
   5  norm          .10000E-03    1.9490       -.72135E-07** at limit **
   6  Prefactor     9.9344        4.3330       -.12442E-05   -.57608E-03
   7  Prefactor     .10000E-03    6.4725        .35681E-05** at limit **
   8  Prefactor     .10000E-03    9.3321       -.20423E-05** at limit **
   9  Prefactor     .10000E-03    49.907       -.12324E-04** at limit **
  10  Prefactor     .10000E-03    11.851        .24551E-05** at limit **
  11  norm          .10000E-03    2.2879       -.57375E-07** at limit **
  12  Prefactor     51.789        49.581       -.92982E-06   -.83413E-05
  13  norm          3.6766        1.5537       -.61766E-07   -.77267E-04
  14  Prefactor     4.5822        3.4794        .17853E-07   -.15039E-04
  15  norm          26.704        18.296       -.77805E-06   -.79476E-04
  16  Prefactor     .10000E-03    19.878        .21590E-05** at limit **
  17  Prefactor     .10000E-03    53.975        .14648E-04** at limit **
  18  Prefactor     .10000E-03    1.5867       -.59872E-07** at limit **
  19  Prefactor     .10000E-03    12.251        .29636E-05** at limit **
  20  norm          .10000E-03    1.6899       -.59277E-07** at limit **
  21  Prefactor     .10203E-03    11.343        .96728E-06** at limit **
  22  Prefactor     4.1298        19.429       -.36031E-05   -.21109E-03
  23  Prefactor     .10000E-03    1.2503        .77474E-07** at limit **
  24  norm          .10000E-03    13.018        .28307E-06** at limit **
  25  Prefactor     .10000E-03    13.787       -.56277E-05** at limit **
  26  norm          1.5437        2.1874        .72045E-06   -.31919E-02
  27  Prefactor     .10000E-03    19.811       -.23662E-06** at limit **
  28  norm          .10000E-03    2.8960       -.35512E-07** at limit **
  29  Prefactor     .10000E-03    5.2088       -.14090E-05** at limit **
  30  Prefactor     .10000E-03    3.3579        .23586E-07** at limit **
  31  Normalizat    1.0094        .16703        .13390E-05   -.27429E-03
  32  Prefactor     .88033        .19791       -.16220E-06   -.83242E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 53.4233
  Prefactor  = 2.39882
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 9.93441
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 51.7888
  norm       = 3.67663
  Prefactor  = 4.58219
  norm       = 26.7038
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000102028
  Prefactor  = 4.12977
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.54373
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.00942
  Prefactor  = 0.880325
 **********
 **   18 **HESSE 
 **********

 FCN=   5696.590     FROM HESSE     STATUS=OK           653 CALLS     5033 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     53.423        46.385        .54861E-04   -1.4245    
   2  Prefactor     2.3988        30.851        .13208E-02   -1.5398    
   3  norm          .10000E-03    5.5332        .17148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    5.9747        .17994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.9671        .10289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.9344        4.3469        .99277E-04   -1.5077    
   7  Prefactor     .10000E-03    6.5055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.3376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    49.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.3150        .11147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     51.789        49.614        .55729E-04   -1.4267    
  13  norm          3.6766        1.5538        .58470E-04   -1.5324    
  14  Prefactor     4.5822        3.4782        .11881E-03   -1.5280    
  15  norm          26.704        18.324        .77523E-04   -1.4674    
  16  Prefactor     .10000E-03    20.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    54.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.5916        .92838E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.8227        .19028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10203E-03    24.431        .64472E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.1298        23.454        .19753E-03   -1.5302    
  23  Prefactor     .10000E-03    1.2622        .82391E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    13.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    13.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.5437        4.1774        .12294E-02   -1.5459    
  27  Prefactor     .10000E-03    19.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    2.8994        .12544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    5.2152        .16823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    3.3665        .13507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.0094        .20225        .21217E-03   -.92715    
  32  Prefactor     .88033        .23921        .27529E-03   -.96832    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47365e-08
Minuit parameter uncertainties:
  1  46.4163
  2  17.2158
  3  4.61742e-05
  4  3.52093e-05
  5  1.16745e-06
  6  4.34701
  7  5.81926e-05
  8  2.24068e-05
  9  0.000123636
  10  1.93023e-05
  11  4.5543e-06
  12  49.6535
  13  1.55385
  14  3.47832
  15  18.3281
  16  6.53842e-05
  17  0.000144695
  18  3.62826e-06
  19  2.02942e-06
  20  1.02422e-06
  21  0.0140837
  22  19.6952
  23  1.88498e-06
  24  2.52405e-05
  25  6.33517e-05
  26  4.17819
  27  5.06182e-06
  28  9.97135e-07
  29  1.19729e-05
  30  2.00613e-06
  31  0.202407
  32  0.23949
Done.

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

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  2.670e+01  1.833e+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.803e-01  2.395e-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.009e+00  2.024e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.05
Ra Dec: 209.928 40.215
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 4.94e-08 +/- 3.39e-08
Energy Flux (Fixed Index): 1.47e-05 +/- 1.01e-05

TS (Fixed Index): 3.05
Ra Dec: 209.928 40.215
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.50e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/98880/likelihoodResults_495936001_496195201_4FGL_J1359.7+4012_daily_bin990.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) = 5695.70418625
delta logL = 0.885581363223

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5695.70327129
delta logL = 0.886496325185

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.076       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4867       1.0000          .0000       5.0000    
     3 'Normalizat'    .95635       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93296       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=   5695.703     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      291 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.076        17.866        .10316E-03   -.35741E-03
   2  alpha         3.4866        1.0710        .15890E-02   -.38864E-04
   3  Normalizat    .95645        .20054        .21704E-03    .73228E-04
   4  Prefactor     .93286        .24296        .26830E-03    .96866E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 15.0763
  alpha      = 3.48658
  Normalizat = 0.95645
  Prefactor  = 0.932865
 **********
 **   18 **HESSE 
 **********

 FCN=   5695.703     FROM HESSE     STATUS=OK            23 CALLS      314 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.076        17.479        .41262E-05   -1.4931    
   2  alpha         3.4866        1.0495        .63559E-04    .40567    
   3  Normalizat    .95645        .20079        .86816E-05   -.94504    
   4  Prefactor     .93286        .24320        .10732E-04   -.95002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.50297e-11
Minuit parameter uncertainties:
  1  17.4853
  2  1.08998
  3  0.200945
  4  0.243487
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/98880': 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) = 5695.70327116
delta logL = 0.886496453762

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.508e+01  1.749e+01  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  3.487e+00  1.090e+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:  9.329e-01  2.435e-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:  9.564e-01  2.009e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.95
Ra Dec: 209.928 40.215
Photon Index (Free Index): 3.49 +/- 1.09
Photon Flux (Free Index): 7.76e-08 +/- 4.39e-08
Energy Flux (Free Index): 1.39e-05 +/- 8.18e-06

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/98880/cmap_HighResolution_495936001_496195201_4FGL_J1359.7+4012_daily_bin990.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.50e-05', comment='SUCCESS', photon_flux='4.94e-08', energy_flux2='1.39e-05', photon_flux_error='3.39e-08', dlogl='8.86e-01', energy_flux='1.47e-05', photon_flux2='7.76e-08', job_status='DONE', time_completed='2021-09-08 20:00:44.483262', photon_index_error2='1.09', photon_index2='3.49', ts='3.05', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='8.18e-06', EG='1.01', time_epoch_completed='1631156444.48', return_code='0', job_id='98880', GAL2='0.93', EG2='0.96', return_code2='0', energy_flux_error='1.01e-05', photon_flux_error2='4.39e-08', ts2='4.95', photon_index='2.33' WHERE bin_id='990' 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@bullet0084>
Subject: Job 98880: <4FGL_J1359.7+4012_daily_bin990> in cluster <slac> Done

Job <4FGL_J1359.7+4012_daily_bin990> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  8 19:45:43 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 19:45:45 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:45 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_bin990 209.928 40.2153 495936001 496195201 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 :                                   883.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             328.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            902 sec.

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

