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


Performing analysis on: 4FGL_J1359.7+4012_daily_bin1101
RA = 209.928, Dec = 40.2153
tmin = 524707201, tmax = 524966401
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='100170', job_status='RUN', time_executed='2021-09-08 19:52:18.752215', time_epoch_executed='1631155938.75' WHERE source_name='4FGL J1359.7+4012' and cadence='daily' and bin_id='1101'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/100170

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/100170/ft1_4FGL_J1359.7+4012_daily_bin1101.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/100170/ft2_4FGL_J1359.7+4012_daily_bin1101.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/100170/ft1_4FGL_J1359.7+4012_daily_bin1101.fits outfile=/scratch/kocevski/100170/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin1101.fits ra=209.928 dec=40.2153 rad=12.0 tmin=524707201.0 tmax=524966401.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.38
user 3.15
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/100170/ft2_4FGL_J1359.7+4012_daily_bin1101.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/100170/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin1101.fits evtable="EVENTS" outfile="/scratch/kocevski/100170/ft1_filtered_4FGL_J1359.7+4012_daily_bin1101.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/100170/ft1_filtered_4FGL_J1359.7+4012_daily_bin1101.fits" evtable="EVENTS" scfile=/scratch/kocevski/100170/ft2_4FGL_J1359.7+4012_daily_bin1101.fits sctable="SC_DATA" outfile=/scratch/kocevski/100170/ltcube_524707201_524966401_4FGL_J1359.7+4012_daily_bin1101.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/100170/ft2_4FGL_J1359.7+4012_daily_bin1101.fits
.....................!
real 11.97
user 11.47
sys 0.46

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/100170/ft1_filtered_4FGL_J1359.7+4012_daily_bin1101.fits evtable="EVENTS" scfile=/scratch/kocevski/100170/ft2_4FGL_J1359.7+4012_daily_bin1101.fits sctable="SC_DATA" expcube=/scratch/kocevski/100170/ltcube_524707201_524966401_4FGL_J1359.7+4012_daily_bin1101.fits outfile=/scratch/kocevski/100170/expmap_524707201_524966401_4FGL_J1359.7+4012_daily_bin1101.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/100170/ltcube_524707201_524966401_4FGL_J1359.7+4012_daily_bin1101.fits
.....................!
real 190.68
user 185.33
sys 5.02

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/100170/ft1_filtered_4FGL_J1359.7+4012_daily_bin1101.fits scfile=/scratch/kocevski/100170/ft2_4FGL_J1359.7+4012_daily_bin1101.fits outfile=/scratch/kocevski/100170/cmap_524707201_524966401_4FGL_J1359.7+4012_daily_bin1101.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/100170/ft1_filtered_4FGL_J1359.7+4012_daily_bin1101.fits scfile=/scratch/kocevski/100170/ft2_4FGL_J1359.7+4012_daily_bin1101.fits outfile=/scratch/kocevski/100170/cmap_HighResolution_524707201_524966401_4FGL_J1359.7+4012_daily_bin1101.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/100170/ft1_filtered_4FGL_J1359.7+4012_daily_bin1101.fits evtable="EVENTS" scfile=/scratch/kocevski/100170/ft2_4FGL_J1359.7+4012_daily_bin1101.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/100170/Model_4FGL_J1359.7+4012_daily_bin1101.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/100170/ft1_filtered_4FGL_J1359.7+4012_daily_bin1101.fits.....................!
real 43.98
user 42.72
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    58.065       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.8117       1.0000         .10000E-03   10000.    
     3 'norm      '    .10403E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    7.9748       1.0000         .10000E-03   10000.    
     5 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .62944       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    35.101       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11029E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.9380       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    10.554       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.3532       1.0000         .10000E-03   10000.    
    15 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.3987       1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.160       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.6147       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.761       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .61228E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11105E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    15.838       1.0000         .10000E-03   10000.    
    26 'norm      '    9.7140       1.0000         .10000E-03   10000.    
    27 'Prefactor '    26.531       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'    .90511       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .85411       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=   5250.970     FROM MIGRAD    STATUS=CONVERGED    831 CALLS     4335 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     58.069        70.990        .89898E-06    .44050E-04
   2  Prefactor     8.8131        10.096       -.71850E-07    .56196E-04
   3  norm          .10000E-03    3.7951       -.73560E-06** at limit **
   4  norm          7.9747        17.113       -.16941E-06   -.17700E-04
   5  norm          .10000E-03    1.8421       -.30895E-07** at limit **
   6  Prefactor     .62971        1.8400        .46980E-06   -.41649E-04
   7  Prefactor     .10000E-03    6.9215        .28384E-06** at limit **
   8  Prefactor     35.095        32.099       -.15807E-05   -.16571E-03
   9  Prefactor     .10000E-03    12.879        .17560E-05** at limit **
  10  Prefactor     .10000E-03    50.580        .63698E-06** at limit **
  11  norm          3.9381        4.4115        .25992E-05   -.13637E-02
  12  Prefactor     .10000E-03    22.614        .19705E-05** at limit **
  13  norm          10.554        2.4035       -.94262E-08   -.45271E-04
  14  Prefactor     3.3535        4.5431        .70498E-07   -.19048E-03
  15  norm          .10000E-03    16.265       -.28598E-05** at limit **
  16  Prefactor     7.3936        14.854        .37203E-07   -.56559E-04
  17  Prefactor     18.149        46.096       -.42414E-05   -.14421E-03
  18  Prefactor     5.6147        5.0311        .22106E-06    .34121E-04
  19  Prefactor     13.761        18.998        .13385E-06   -.21789E-04
  20  norm          .10000E-03    .98119        .16945E-07** at limit **
  21  Prefactor     .10016E-03    7.3788        .13369E-05** at limit **
  22  Prefactor     .10000E-03    51.195       -.22870E-05** at limit **
  23  Prefactor     .10000E-03    .94968        .30221E-07** at limit **
  24  norm          .10000E-03    5.0274       -.43421E-07** at limit **
  25  Prefactor     15.836        16.777        .21113E-06   -.18616E-04
  26  norm          9.7136        5.9298        .19794E-06   -.72968E-04
  27  Prefactor     26.512        42.268       -.54922E-05   -.32948E-03
  28  norm          .10000E-03    2.2511        .29403E-08** at limit **
  29  Prefactor     .10000E-03    4.2733        .22324E-07** at limit **
  30  Prefactor     .10000E-03    2.2683       -.67443E-08** at limit **
  31  Normalizat    .90504        .17327       -.12118E-07   -.99164E-04
  32  Prefactor     .85417        .20001       -.18700E-06   -.12035E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 58.0688
  Prefactor  = 8.81312
  norm       = 0.000100001
  norm       = 7.97472
  norm       = 0.0001
  Prefactor  = 0.629712
  Prefactor  = 0.0001
  Prefactor  = 35.0951
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 3.93807
  Prefactor  = 0.000100002
  norm       = 10.5544
  Prefactor  = 3.35351
  norm       = 0.000100004
  Prefactor  = 7.39362
  Prefactor  = 18.149
  Prefactor  = 5.61469
  Prefactor  = 13.761
  norm       = 0.0001
  Prefactor  = 0.000100162
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.8358
  norm       = 9.71364
  Prefactor  = 26.5122
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.905039
  Prefactor  = 0.854168
 **********
 **   18 **HESSE 
 **********

 FCN=   5250.970     FROM HESSE     STATUS=OK           659 CALLS     4994 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     58.069        70.887        .52648E-04   -1.4182    
   2  Prefactor     8.8131        10.051        .13503E-03   -1.5114    
   3  norm          .10000E-03    8.3134        .26836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          7.9747        17.086        .14198E-03   -1.5143    
   5  norm          .10000E-03    1.8496        .96017E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .62971        1.7665        .16034E-02   -1.5549    
   7  Prefactor     .10000E-03    6.9504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     35.095        32.148        .67640E-04   -1.4522    
   9  Prefactor     .10000E-03    13.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    50.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.9381        4.6950        .82699E-03   -1.5311    
  12  Prefactor     .10000E-03    22.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          10.554        2.4080        .50724E-04   -1.5058    
  14  Prefactor     3.3535        4.5591        .16871E-03   -1.5342    
  15  norm          .10000E-03    16.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.3936        14.564        .14745E-03   -1.5164    
  17  Prefactor     18.149        46.753        .93986E-04   -1.4856    
  18  Prefactor     5.6147        5.0240        .14240E-03   -1.5234    
  19  Prefactor     13.761        19.069        .10797E-03   -1.4966    
  20  norm          .10000E-03    .98460        .70088E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10016E-03    59.312        .35982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    52.558        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    .95801        .68950E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    5.0309        .15868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     15.836        16.776        .10064E-03   -1.4912    
  26  norm          9.7136        5.9306        .12857E-03   -1.5085    
  27  Prefactor     26.512        44.287        .77775E-04   -1.4678    
  28  norm          .10000E-03    2.2519        .10618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    4.2756        .14630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    2.2694        .10658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .90504        .20354        .21767E-03   -.96283    
  32  Prefactor     .85417        .23568        .27290E-03   -.97761    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35332e-08
Minuit parameter uncertainties:
  1  70.9899
  2  10.0534
  3  0.00017526
  4  17.0966
  5  1.25775e-06
  6  1.7667
  7  2.35652e-05
  8  32.1639
  9  0.000262626
  10  0.000431569
  11  4.69546
  12  0.000381883
  13  2.40801
  14  4.55959
  15  0.000506347
  16  14.5708
  17  46.8476
  18  5.02438
  19  19.0773
  20  5.85832e-07
  21  0.00620106
  22  0.000828202
  23  4.94509e-07
  24  5.84186e-06
  25  16.7807
  26  5.93099
  27  44.3424
  28  3.1079e-07
  29  1.60849e-06
  30  9.01678e-07
  31  0.203709
  32  0.23596
Done.

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

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.000e-04  5.063e-04  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.542e-01  2.360e-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.050e-01  2.037e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/100170/likelihoodResults_524707201_524966401_4FGL_J1359.7+4012_daily_bin1101.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) = 5250.97036571
delta logL = -0.000283147845948

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5250.97008455
delta logL = -1.99246369448e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12147E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3457       1.0000          .0000       5.0000    
     3 'Normalizat'    .90474       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85456       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=   5250.970     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      184 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    17.553        .90712E-02** at limit **
   2  alpha         2.3637        3.5290        .41251       -.53363E-05
   3  Normalizat    .90504        .16085        .44962E-01    .58084E-04
   4  Prefactor     .85417        .19742        .44423E-01    .47203E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.36367
  Normalizat = 0.90504
  Prefactor  = 0.854166
 **********
 **   18 **HESSE 
 **********

 FCN=   5250.970     FROM HESSE     STATUS=OK            27 CALLS      211 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    17.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3637        3.5191        .16500E-01   -.54561E-01
   3  Normalizat    .90504        .18877        .21767E-03   -.96283    
   4  Prefactor     .85417        .23168        .27290E-03   -.97762    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.80845e-11
Minuit parameter uncertainties:
  1  0.0001851
  2  2.49679
  3  0.188904
  4  0.23195
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/100170': 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) = 5250.97008248
delta logL = 7.7159711509e-08

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.000e-04  1.851e-04  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  2.364e+00  2.497e+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:  8.542e-01  2.320e-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.050e-01  1.889e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/100170/cmap_HighResolution_524707201_524966401_4FGL_J1359.7+4012_daily_bin1101.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.93e-05', job_status='DONE', photon_flux_upper_limit='6.48e-08', time_completed='2021-09-08 20:06:40.692553', job_id='100170', GAL2='0.85', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1631156800.69', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='7.72e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1101' AND source_name='4FGL J1359.7+4012' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 20:06:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0173>
Subject: Job 100170: <4FGL_J1359.7+4012_daily_bin1101> in cluster <slac> Done

Job <4FGL_J1359.7+4012_daily_bin1101> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 19:50:20 2021
Job was executed on host(s) <bullet0173>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 19:50:21 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:21 2021
Terminated at Wed Sep  8 20:06:41 2021
Results reported at Wed Sep  8 20:06:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.7+4012_daily_bin1101 209.928 40.2153 524707201 524966401 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 :                                   856.42 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             307.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   979 sec.
    Turnaround time :                            981 sec.

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

