/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 7 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7497
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1359.7+4012_daily_bin470
RA = 209.928, Dec = 40.2153
tmin = 361152001, tmax = 361411201
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='97045', job_status='RUN', time_executed='2021-09-08 19:40:44.573348', time_epoch_executed='1631155244.57' WHERE source_name='4FGL J1359.7+4012' and cadence='daily' and bin_id='470'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/97045

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/97045/ft1_4FGL_J1359.7+4012_daily_bin470.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/97045/ft2_4FGL_J1359.7+4012_daily_bin470.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/97045/ft1_4FGL_J1359.7+4012_daily_bin470.fits outfile=/scratch/kocevski/97045/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin470.fits ra=209.928 dec=40.2153 rad=12.0 tmin=361152001.0 tmax=361411201.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.55
user 3.30
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/97045/ft2_4FGL_J1359.7+4012_daily_bin470.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/97045/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin470.fits evtable="EVENTS" outfile="/scratch/kocevski/97045/ft1_filtered_4FGL_J1359.7+4012_daily_bin470.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/97045/ft1_filtered_4FGL_J1359.7+4012_daily_bin470.fits" evtable="EVENTS" scfile=/scratch/kocevski/97045/ft2_4FGL_J1359.7+4012_daily_bin470.fits sctable="SC_DATA" outfile=/scratch/kocevski/97045/ltcube_361152001_361411201_4FGL_J1359.7+4012_daily_bin470.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/97045/ft2_4FGL_J1359.7+4012_daily_bin470.fits
.....................!
real 11.90
user 11.54
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/97045/ft1_filtered_4FGL_J1359.7+4012_daily_bin470.fits evtable="EVENTS" scfile=/scratch/kocevski/97045/ft2_4FGL_J1359.7+4012_daily_bin470.fits sctable="SC_DATA" expcube=/scratch/kocevski/97045/ltcube_361152001_361411201_4FGL_J1359.7+4012_daily_bin470.fits outfile=/scratch/kocevski/97045/expmap_361152001_361411201_4FGL_J1359.7+4012_daily_bin470.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/97045/ltcube_361152001_361411201_4FGL_J1359.7+4012_daily_bin470.fits
.....................!
real 192.79
user 187.27
sys 5.14

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/97045/ft1_filtered_4FGL_J1359.7+4012_daily_bin470.fits scfile=/scratch/kocevski/97045/ft2_4FGL_J1359.7+4012_daily_bin470.fits outfile=/scratch/kocevski/97045/cmap_361152001_361411201_4FGL_J1359.7+4012_daily_bin470.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/97045/ft1_filtered_4FGL_J1359.7+4012_daily_bin470.fits scfile=/scratch/kocevski/97045/ft2_4FGL_J1359.7+4012_daily_bin470.fits outfile=/scratch/kocevski/97045/cmap_HighResolution_361152001_361411201_4FGL_J1359.7+4012_daily_bin470.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/97045/ft1_filtered_4FGL_J1359.7+4012_daily_bin470.fits evtable="EVENTS" scfile=/scratch/kocevski/97045/ft2_4FGL_J1359.7+4012_daily_bin470.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/97045/Model_4FGL_J1359.7+4012_daily_bin470.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/97045/ft1_filtered_4FGL_J1359.7+4012_daily_bin470.fits.....................!
real 48.91
user 47.53
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    69.661       1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.203       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    11.450       1.0000         .10000E-03   10000.    
     5 'norm      '    4.1211       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.2779       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.830       1.0000         .10000E-03   10000.    
    10 'Prefactor '    65.144       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    83.981       1.0000         .10000E-03   10000.    
    13 'norm      '    20.324       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.8696       1.0000         .10000E-03   10000.    
    15 'norm      '    .15461E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.6747       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.0413       1.0000         .10000E-03   10000.    
    19 'Prefactor '    33.633       1.0000         .10000E-03   10000.    
    20 'norm      '    23.047       1.0000         .10000E-03   10000.    
    21 'Prefactor '    29.336       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .27043       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.5978       1.0000         .10000E-03   10000.    
    24 'norm      '    12.206       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    13.659       1.0000         .10000E-03   10000.    
    27 'Prefactor '    41.549       1.0000         .10000E-03   10000.    
    28 'norm      '    20.171       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    3.6495       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .49220       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0118       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5988.783     FROM MIGRAD    STATUS=CONVERGED    160 CALLS     4470 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     69.678        1.6890       -.78290E-07   -.23044E-03
   2  Prefactor     19.201        1.3461        .34669E-07    .16497E-03
   3  norm          .10000E-03    7.1653        .51776E-06** at limit **
   4  norm          11.450        2.5736       -.27535E-06    .15262E-02
   5  norm          4.1208        3.5709        .54786E-07    .13442E-04
   6  Prefactor     7.2782        3.9941        .19173E-06    .67119E-04
   7  Prefactor     .10000E-03    5.5317       -.44884E-06** at limit **
   8  Prefactor     .10000E-03    28.121       -.89504E-06** at limit **
   9  Prefactor     32.819        1.2439        .63979E-07    .18814E-03
  10  Prefactor     65.135        1.3146        .41446E-08   -.35438E-03
  11  norm          .10000E-03    1.4541        .45314E-06** at limit **
  12  Prefactor     83.965        1.5259        .42982E-07    .91184E-03
  13  norm          20.324        2.8643        .74559E-07    .18219E-04
  14  Prefactor     4.8689        4.5478        .25834E-05    .14766E-03
  15  norm          .10001E-03    144.87       -.35804E-06** at limit **
  16  Prefactor     .10000E-03    9.9845       -.25878E-06** at limit **
  17  Prefactor     7.6824        1.1906       -.24359E-06    .33869E-03
  18  Prefactor     5.0407        4.6270       -.26420E-05   -.16407E-03
  19  Prefactor     33.639        1.5133       -.27671E-06    .17813E-02
  20  norm          23.041        6.8562       -.67682E-07   -.14650E-04
  21  Prefactor     29.591        18.799       -.43204E-06   -.12451E-03
  22  Prefactor     .10002E-03    1013.2        .38066E-04** at limit **
  23  Prefactor     6.5978        4.7188        .13741E-05    .18391E-03
  24  norm          12.184        14.327       -.13778E-05    .15539E-03
  25  Prefactor     .10000E-03    6.9144       -.76711E-06** at limit **
  26  norm          13.660        3.9577        .94964E-06    .70247E-03
  27  Prefactor     41.580        2.6981       -.12139E-06   -.12352E-02
  28  norm          20.172        2.5344       -.71864E-06    .21322E-02
  29  Prefactor     .10000E-03    6.1975       -.30607E-06** at limit **
  30  Prefactor     3.6491        7.7628       -.45864E-05   -.16674E-03
  31  Normalizat    .49220        .20758       -.44333E-06    .53061E-04
  32  Prefactor     1.0118        .24160        .10324E-05    .67050E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 69.6781
  Prefactor  = 19.2007
  norm       = 0.0001
  norm       = 11.4498
  norm       = 4.12078
  Prefactor  = 7.27825
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.819
  Prefactor  = 65.1353
  norm       = 0.0001
  Prefactor  = 83.965
  norm       = 20.3245
  Prefactor  = 4.86894
  norm       = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 7.68237
  Prefactor  = 5.04074
  Prefactor  = 33.639
  norm       = 23.0407
  Prefactor  = 29.5905
  Prefactor  = 0.000100016
  Prefactor  = 6.59778
  norm       = 12.1837
  Prefactor  = 0.0001
  norm       = 13.66
  Prefactor  = 41.5803
  norm       = 20.1715
  Prefactor  = 0.0001
  Prefactor  = 3.64912
  Normalizat = 0.492204
  Prefactor  = 1.01182
 **********
 **   18 **HESSE 
 **********

 FCN=   5988.783     FROM HESSE     STATUS=OK           743 CALLS     5213 TOTAL
                     EDM=   .85E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     69.678        64.684        .12024E-02   -1.4037    
   2  Prefactor     19.201        18.275        .22850E-02   -1.4831    
   3  norm          .10000E-03    6.9571        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          11.450        12.939        .29598E-02   -1.5031    
   5  norm          4.1208        3.5757        .49643E-02   -1.5302    
   6  Prefactor     7.2782        4.3237        .37170E-02   -1.5168    
   7  Prefactor     .10000E-03    5.5306        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    28.123        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     32.819        63.241        .17483E-02   -1.4562    
  10  Prefactor     65.135        35.495        .12431E-02   -1.4092    
  11  norm          .10000E-03    1.4503        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     83.965        77.540        .10958E-02   -1.3873    
  13  norm          20.324        2.8926        .22211E-02   -1.4806    
  14  Prefactor     4.8689        4.6108        .45571E-02   -1.5267    
  15  norm          .10001E-03    8.8989        .91001E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.9740        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.6824        27.863        .36188E-02   -1.5154    
  18  Prefactor     5.0407        4.8164        .44772E-02   -1.5259    
  19  Prefactor     33.639        20.123        .17274E-02   -1.4547    
  20  norm          23.041        7.0756        .20859E-02   -1.4748    
  21  Prefactor     29.591        23.920        .18493E-02   -1.4619    
  22  Prefactor     .10002E-03    24.372        .10295       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.5978        4.7732        .39058E-02   -1.5194    
  24  norm          12.184        14.558        .28665E-02   -1.5010    
  25  Prefactor     .10000E-03    6.9173        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          13.660        8.1222        .27094E-02   -1.4969    
  27  Prefactor     41.580        54.580        .15547E-02   -1.4417    
  28  norm          20.172        10.497        .22295E-02   -1.4809    
  29  Prefactor     .10000E-03    6.1861        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     3.6491        8.7722        .52865E-02   -1.5326    
  31  Normalizat    .49220        .19813        .70978E-01   -1.1278    
  32  Prefactor     1.0118        .21431        .43082E-01   -.92337    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.50841e-08
Minuit parameter uncertainties:
  1  64.7495
  2  18.2804
  3  2.47975e-05
  4  12.9419
  5  3.57589
  6  4.32387
  7  1.47968e-05
  8  1.62405e-05
  9  63.3708
  10  35.5067
  11  9.5971e-06
  12  77.6333
  13  2.89259
  14  4.61118
  15  0.000674483
  16  2.65328e-05
  17  27.9104
  18  4.81679
  19  20.1275
  20  7.07583
  21  23.9281
  22  0.00124067
  23  4.7735
  24  14.5622
  25  2.54039e-05
  26  8.12281
  27  54.6455
  28  10.498
  29  1.10268e-05
  30  8.77527
  31  0.198412
  32  0.21449
Done.

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

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.000e-04  6.745e-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:  1.012e+00  2.145e-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:  4.922e-01  1.984e-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: 5.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.74e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/97045/likelihoodResults_361152001_361411201_4FGL_J1359.7+4012_daily_bin470.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): 102
logL (Free Index) = 5988.78312651
delta logL = -3.31676810674e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5988.53909139
delta logL = 0.244001946026

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4939       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.5702       1.0000          .0000       5.0000    
     3 'Normalizat'    .45705       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0380       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=   5988.539     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      343 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4953        182.52        .14067E-03   -.15355E-04
   2  alpha         4.5704        3.6432        .86923E-01   -.88388E-06
   3  Normalizat    .45689        .17048        .32564E-03    .91679E-04
   4  Prefactor     1.0383        .20723        .26732E-03    .12810E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.49534
  alpha      = 4.57036
  Normalizat = 0.456891
  Prefactor  = 1.03825
 **********
 **   18 **HESSE 
 **********

 FCN=   5988.539     FROM HESSE     STATUS=OK            25 CALLS      368 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4953        6.0424        .56270E-05   -1.5463    
   2  alpha         4.5704        4.7804        .34769E-02    .97579    
   3  Normalizat    .45689        .20375        .13025E-04   -1.1446    
   4  Prefactor     1.0383        .24337        .10693E-04   -.91465    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15056e-11
Minuit parameter uncertainties:
  1  6.01268
  2  3.44542
  3  0.204084
  4  0.243625
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/97045': 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) = 5988.53909083
delta logL = 0.244002511562

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.495e+00  6.013e+00  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  4.570e+00  3.445e+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.038e+00  2.436e-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:  4.569e-01  2.041e-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/97045/cmap_HighResolution_361152001_361411201_4FGL_J1359.7+4012_daily_bin470.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.74e-05', job_status='DONE', photon_flux_upper_limit='5.83e-08', time_completed='2021-09-08 19:56:51.247838', job_id='97045', GAL2='1.04', fit_tolerance='1e-08', EG2='0.46', EG='0.49', time_epoch_completed='1631156211.25', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='2.44e-01', ts2='0.53', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='470' AND source_name='4FGL J1359.7+4012' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:56:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 97045: <4FGL_J1359.7+4012_daily_bin470> in cluster <slac> Done

Job <4FGL_J1359.7+4012_daily_bin470> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 19:40:25 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 19:40:27 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:40:27 2021
Terminated at Wed Sep  8 19:56:51 2021
Results reported at Wed Sep  8 19:56:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.7+4012_daily_bin470 209.928 40.2153 361152001 361411201 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 :                                   962.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   984 sec.
    Turnaround time :                            986 sec.

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

