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


Performing analysis on: 4FGL_J1359.7+4012_daily_bin1183
RA = 209.928, Dec = 40.2153
tmin = 545961601, tmax = 546220801
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='100306', job_status='RUN', time_executed='2021-09-08 19:53:10.383397', time_epoch_executed='1631155990.38' WHERE source_name='4FGL J1359.7+4012' and cadence='daily' and bin_id='1183'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/100306

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/100306/ft1_4FGL_J1359.7+4012_daily_bin1183.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/100306/ft2_4FGL_J1359.7+4012_daily_bin1183.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/100306/ft1_4FGL_J1359.7+4012_daily_bin1183.fits outfile=/scratch/kocevski/100306/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin1183.fits ra=209.928 dec=40.2153 rad=12.0 tmin=545961601.0 tmax=546220801.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.10
user 3.82
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/100306/ft1_filtered_4FGL_J1359.7+4012_daily_bin1183.fits" evtable="EVENTS" scfile=/scratch/kocevski/100306/ft2_4FGL_J1359.7+4012_daily_bin1183.fits sctable="SC_DATA" outfile=/scratch/kocevski/100306/ltcube_545961601_546220801_4FGL_J1359.7+4012_daily_bin1183.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/100306/ft2_4FGL_J1359.7+4012_daily_bin1183.fits
.....................!
real 11.60
user 11.23
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/100306/ft1_filtered_4FGL_J1359.7+4012_daily_bin1183.fits evtable="EVENTS" scfile=/scratch/kocevski/100306/ft2_4FGL_J1359.7+4012_daily_bin1183.fits sctable="SC_DATA" expcube=/scratch/kocevski/100306/ltcube_545961601_546220801_4FGL_J1359.7+4012_daily_bin1183.fits outfile=/scratch/kocevski/100306/expmap_545961601_546220801_4FGL_J1359.7+4012_daily_bin1183.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/100306/ltcube_545961601_546220801_4FGL_J1359.7+4012_daily_bin1183.fits
.....................!
real 190.94
user 184.92
sys 5.67

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/100306/ft1_filtered_4FGL_J1359.7+4012_daily_bin1183.fits scfile=/scratch/kocevski/100306/ft2_4FGL_J1359.7+4012_daily_bin1183.fits outfile=/scratch/kocevski/100306/cmap_545961601_546220801_4FGL_J1359.7+4012_daily_bin1183.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/100306/ft1_filtered_4FGL_J1359.7+4012_daily_bin1183.fits scfile=/scratch/kocevski/100306/ft2_4FGL_J1359.7+4012_daily_bin1183.fits outfile=/scratch/kocevski/100306/cmap_HighResolution_545961601_546220801_4FGL_J1359.7+4012_daily_bin1183.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/100306/ft1_filtered_4FGL_J1359.7+4012_daily_bin1183.fits evtable="EVENTS" scfile=/scratch/kocevski/100306/ft2_4FGL_J1359.7+4012_daily_bin1183.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/100306/Model_4FGL_J1359.7+4012_daily_bin1183.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/100306/ft1_filtered_4FGL_J1359.7+4012_daily_bin1183.fits..............................!
real 16.11
user 14.76
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/100306/ft1_filtered_4FGL_J1359.7+4012_daily_bin1183.fits', '/scratch/kocevski/100306/ft2_4FGL_J1359.7+4012_daily_bin1183.fits', expMap='/scratch/kocevski/100306/expmap_545961601_546220801_4FGL_J1359.7+4012_daily_bin1183.fits', expCube='/scratch/kocevski/100306/ltcube_545961601_546220801_4FGL_J1359.7+4012_daily_bin1183.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/100306/Model_4FGL_J1359.7+4012_daily_bin1183.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/100306/ft1_filtered_4FGL_J1359.7+4012_daily_bin1183.fits
Spacecraft file(s): /scratch/kocevski/100306/ft2_4FGL_J1359.7+4012_daily_bin1183.fits
Exposure map: /scratch/kocevski/100306/expmap_545961601_546220801_4FGL_J1359.7+4012_daily_bin1183.fits
Exposure cube: /scratch/kocevski/100306/ltcube_545961601_546220801_4FGL_J1359.7+4012_daily_bin1183.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/100306/Model_4FGL_J1359.7+4012_daily_bin1183.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 407.962037857

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 403.884573108

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .78702       1.0000         .10000E-03   10000.    
     2 'Prefactor '    60.494       1.0000         .10000E-03   10000.    
     3 'norm      '    .10104E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .82964E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    .14649E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .17594E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.1322       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .77475       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.0346       1.0000         .10000E-03   10000.    
    11 'norm      '    2.5428       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.5169       1.0000         .10000E-03   10000.    
    13 'norm      '    .77483E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    37.648       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .15079       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.5551       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.3385       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.5506       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .55657E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .20349E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    39.358       1.0000         .10000E-03   10000.    
    24 'norm      '    .11968E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.0850       1.0000         .10000E-03   10000.    
    26 'norm      '    .54321E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.7074       1.0000         .10000E-03   10000.    
    28 'norm      '    .49456E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    159.37       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .59505E-01   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .10002E-01   1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1054       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   403.8637     FROM MIGRAD    STATUS=CONVERGED    326 CALLS      755 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    416.68        .12391E-01** at limit **
   2  Prefactor     60.351        59.768        .12897E-02    .42710E-02
   3  norm          .10000E-03    11.840        .90712E-02** at limit **
   4  norm          .10000E-03    60.022        .92070E-02** at limit **
   5  norm          .14349E-03    165.86        .90961E-02** at limit **
   6  Prefactor     .10000E-03    10.104        .90712E-02** at limit **
   7  Prefactor     .21726E-01    95.104        .67340E-01    .14397    
   8  Prefactor     .54649E-03    981.17        .37551E-02** at limit **
   9  Prefactor     .10555E-03    308.29        .12345E-01** at limit **
  10  Prefactor     .80217E-03    1116.1        .40862E-02** at limit **
  11  norm          2.5428        1.0208         .0000         .0000    
  12  Prefactor     .31986E-03    .38616E-01   -.21838E-04** at limit **
  13  norm          .10000E-03    .27356       -.58569E-05** at limit **
  14  Prefactor     .10000E-03    .20571       -.13677E-05** at limit **
  15  norm          36.707        .98755        .12602E-05    .14200E-01
  16  Prefactor     .10000E-03    .23769        .24646E-04** at limit **
  17  Prefactor     5.5551        1.0041         .0000         .0000    
  18  Prefactor     1.3385        1.0961         .0000         .0000    
  19  Prefactor     .10400        .20603       -.20628E-04    .28048E-02
  20  norm          .10000E-03    .20571       -.52608E-06** at limit **
  21  Prefactor     .10000E-03    .22683       -.95138E-05** at limit **
  22  Prefactor     .10000E-03    .25536       -.34400E-05** at limit **
  23  Prefactor     39.280        .99908       -.38633E-06    .24591E-03
  24  norm          .10000E-03    .20571       -.84103E-05** at limit **
  25  Prefactor     .10416E-03    .83314E-01   -.53840E-05** at limit **
  26  norm          .10000E-03    .27867       -.13182E-04** at limit **
  27  Prefactor     .11407E-03    .53747E-01   -.66813E-05** at limit **
  28  norm          .10000E-03    .27991       -.36982E-05** at limit **
  29  Prefactor     158.47        .99722       -.59191E-06    .43552E-02
  30  Prefactor     .10224E-03    .21698        .64273E-05** at limit **
  31  Normalizat    .10000E-01    .25689       -.12699E-03** at limit **
  32  Prefactor     1.1100        1.1472        .33943E-04   -.22960E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 60.351
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000143493
  Prefactor  = 0.0001
  Prefactor  = 0.0217256
  Prefactor  = 0.000546491
  Prefactor  = 0.000105548
  Prefactor  = 0.000802174
  norm       = 2.54278
  Prefactor  = 0.00031986
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 36.7066
  Prefactor  = 0.000100001
  Prefactor  = 5.55506
  Prefactor  = 1.33853
  Prefactor  = 0.104003
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.2797
  norm       = 0.0001
  Prefactor  = 0.000104159
  norm       = 0.0001
  Prefactor  = 0.000114073
  norm       = 0.0001
  Prefactor  = 158.473
  Prefactor  = 0.000102237
  Normalizat = 0.01
  Prefactor  = 1.11004
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   403.8637     FROM HESSE     STATUS=FAILED        29 CALLS      784 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    416.68        .12391E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     60.351        59.768        .12897E-02   -1.4153    
   3  norm          .10000E-03    11.840        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    60.022        .92070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .14349E-03    165.86        .90961E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.104        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .21726E-01    95.104        .67340E-01   -1.5679    
   8  Prefactor     .54649E-03    981.17        .37551E-02   -1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10555E-03    308.29        .12345E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .80217E-03    1116.1        .40862E-02   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          560.66        558.02         .0000       -1.5389    
  12  Prefactor     .31986E-03    .38616E-01   -.21838E-04   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .27356       -.58569E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .20571       -.13677E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          36.707        .98755        .12602E-05   -1.4496    
  16  Prefactor     .10000E-03    .23769        .24646E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.5551        1.0041         .0000       -1.5237    
  18  Prefactor     1.3385        1.0961         .0000       -1.5477    
  19  Prefactor     .10400        .20603       -.20628E-04   -1.5643    
  20  norm          .10000E-03    .20571       -.52608E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    .22683       -.95138E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    .25536       -.34400E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     39.280        .99908       -.38633E-06   -1.4454    
  24  norm          .10000E-03    .20571       -.84103E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10416E-03    .83314E-01   -.53840E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .27867       -.13182E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .11407E-03    .53747E-01   -.66813E-05   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    .27991       -.36982E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     158.47        .99722       -.59191E-06   -1.3184    
  30  Prefactor     .10224E-03    .21698        .64273E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .10000E-01    .25689       -.12699E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     1.1100        1.1472        .33943E-04   -.89146    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 8.84397e-10
Minuit parameter uncertainties:
  1  0.00157804
  2  59.8276
  3  2.38073e-05
  4  2.56921e-05
  5  0.170343
  6  5.86435e-05
  7  2.87279
  8  1.34642
  9  0.0831427
  10  1.80528
  11  1.02077
  12  0.00582754
  13  6.79429e-06
  14  1.18231e-06
  15  0.987555
  16  2.94501e-05
  17  1.00411
  18  1.0961
  19  0.20603
  20  1.43212e-06
  21  7.3903e-06
  22  2.16023e-06
  23  0.999083
  24  9.85439e-06
  25  0.00117722
  26  1.61455e-05
  27  0.00173944
  28  3.88748e-06
  29  0.997222
  30  0.00139355
  31  3.43139e-06
  32  1.17441
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 403.863703182

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  3.671e+01  9.876e-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:  1.110e+00  1.174e+00  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.000e-02  3.431e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.14
Ra Dec: 209.928 40.215
Photon Flux Upper Limit: 8.47e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.53e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/100306/likelihoodResults_545961601_546220801_4FGL_J1359.7+4012_daily_bin1183.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) = 403.847243082
delta logL = 0.0164600992745

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 403.847205769
delta logL = 0.0164974122242

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    37.044       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7575       1.0000          .0000       5.0000    
     3 'Normalizat'    .10002E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1069       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=   403.8472     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      270 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          36.893        105.96        .32924E-03    .16453E-04
   2  alpha         2.7528        2.0282        .17366E-01   -.12720E-05
   3  Normalizat    .10000E-01    2.2430        .10305E-01** at limit **
   4  Prefactor     1.1070        .31652        .19404E-03    .18684E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 36.8935
  alpha      = 2.75281
  Normalizat = 0.01
  Prefactor  = 1.10698
 **********
 **   18 **HESSE 
 **********

 FCN=   403.8472     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          36.893        105.13        .13170E-04   -1.4492    
   2  alpha         2.7528        2.0173        .69462E-03    .10130    
   3  Normalizat    .10000E-01    2.2459        .20611E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1070        .31541        .38809E-04   -.89244    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.45137e-11
Minuit parameter uncertainties:
  1  105.667
  2  2.35294
  3  2.26129e-05
  4  0.315942
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/100306': 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) = 403.847201498
delta logL = 0.0165016840866

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  3.689e+01  1.057e+02  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  2.753e+00  2.353e+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:  1.107e+00  3.159e-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.000e-02  2.261e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.14
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/100306/cmap_HighResolution_545961601_546220801_4FGL_J1359.7+4012_daily_bin1183.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.53e-04', job_status='DONE', photon_flux_upper_limit='8.47e-07', time_completed='2021-09-08 19:59:14.340375', job_id='100306', GAL2='1.11', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631156354.34', return_code2='0', ts='0.14', comment='SUCCESS', return_code='101', GAL='1.11', dlogl='1.65e-02', ts2='0.17', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1183' AND source_name='4FGL J1359.7+4012' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:59:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 100306: <4FGL_J1359.7+4012_daily_bin1183> in cluster <slac> Done

Job <4FGL_J1359.7+4012_daily_bin1183> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 19:50:34 2021
Job was executed on host(s) <bullet0274>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 19:50:36 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:36 2021
Terminated at Wed Sep  8 19:59:14 2021
Results reported at Wed Sep  8 19:59:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.7+4012_daily_bin1183 209.928 40.2153 545961601 546220801 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 :                                   334.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   518 sec.
    Turnaround time :                            520 sec.

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

