/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 177 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 = 7419
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1359.7+4012_daily_bin88
RA = 209.928, Dec = 40.2153
tmin = 262137601, tmax = 262396801
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='95479', job_status='RUN', time_executed='2021-09-08 19:38:44.941726', time_epoch_executed='1631155124.94' WHERE source_name='4FGL J1359.7+4012' and cadence='daily' and bin_id='88'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/95479

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/95479/ft1_4FGL_J1359.7+4012_daily_bin88.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/95479/ft2_4FGL_J1359.7+4012_daily_bin88.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/95479/ft1_4FGL_J1359.7+4012_daily_bin88.fits outfile=/scratch/kocevski/95479/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin88.fits ra=209.928 dec=40.2153 rad=12.0 tmin=262137601.0 tmax=262396801.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 1.42
user 1.22
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/95479/ft1_filtered_4FGL_J1359.7+4012_daily_bin88.fits" evtable="EVENTS" scfile=/scratch/kocevski/95479/ft2_4FGL_J1359.7+4012_daily_bin88.fits sctable="SC_DATA" outfile=/scratch/kocevski/95479/ltcube_262137601_262396801_4FGL_J1359.7+4012_daily_bin88.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/95479/ft2_4FGL_J1359.7+4012_daily_bin88.fits
.....................!
real 12.60
user 12.22
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/95479/ft1_filtered_4FGL_J1359.7+4012_daily_bin88.fits evtable="EVENTS" scfile=/scratch/kocevski/95479/ft2_4FGL_J1359.7+4012_daily_bin88.fits sctable="SC_DATA" expcube=/scratch/kocevski/95479/ltcube_262137601_262396801_4FGL_J1359.7+4012_daily_bin88.fits outfile=/scratch/kocevski/95479/expmap_262137601_262396801_4FGL_J1359.7+4012_daily_bin88.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/95479/ltcube_262137601_262396801_4FGL_J1359.7+4012_daily_bin88.fits
.....................!
real 190.47
user 185.40
sys 4.72

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/95479/ft1_filtered_4FGL_J1359.7+4012_daily_bin88.fits scfile=/scratch/kocevski/95479/ft2_4FGL_J1359.7+4012_daily_bin88.fits outfile=/scratch/kocevski/95479/cmap_262137601_262396801_4FGL_J1359.7+4012_daily_bin88.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.67
user 0.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/95479/ft1_filtered_4FGL_J1359.7+4012_daily_bin88.fits evtable="EVENTS" scfile=/scratch/kocevski/95479/ft2_4FGL_J1359.7+4012_daily_bin88.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/95479/Model_4FGL_J1359.7+4012_daily_bin88.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/95479/ft1_filtered_4FGL_J1359.7+4012_daily_bin88.fits.....................!
real 41.17
user 39.84
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11802       1.0000         .10000E-03   10000.    
     3 'norm      '    .10139E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    9.9162       1.0000         .10000E-03   10000.    
     5 'norm      '    14.119       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.1359       1.0000         .10000E-03   10000.    
     8 'Prefactor '    77.256       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10810E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.7621       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    11.782       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    33.322       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10273E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.5779       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.507       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    3.0053       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .98273       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .82193       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=   4739.078     FROM MIGRAD    STATUS=CONVERGED    871 CALLS     4378 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.411       -.97674E-05** at limit **
   2  Prefactor     .10002E-03    14.414       -.55995E-06** at limit **
   3  norm          .10000E-03    6.0190        .16899E-05** at limit **
   4  norm          9.9156        13.887        .20778E-06   -.17459E-03
   5  norm          14.119        6.6002        .30921E-06    .55455E-04
   6  Prefactor     .10000E-03    2.3408       -.55453E-06** at limit **
   7  Prefactor     2.1294        6.4000        .34730E-05   -.13306E-02
   8  Prefactor     77.248        46.146       -.32884E-05   -.68339E-04
   9  Prefactor     .10000E-03    24.618        .12963E-04** at limit **
  10  Prefactor     .10000E-03    37.771       -.63654E-05** at limit **
  11  norm          .10000E-03    2.7894        .50858E-07** at limit **
  12  Prefactor     .10000E-03    72.047        .49421E-05** at limit **
  13  norm          1.7620        1.3437        .38886E-07    .53643E-04
  14  Prefactor     .10000E-03    4.2200        .72180E-08** at limit **
  15  norm          11.781        15.356        .11504E-06    .11076E-04
  16  Prefactor     .10000E-03    22.095       -.26145E-05** at limit **
  17  Prefactor     33.313        41.042       -.40245E-05   -.78188E-04
  18  Prefactor     .10000E-03    2.7005        .37648E-07** at limit **
  19  Prefactor     5.5759        18.329        .17558E-05    .19510E-04
  20  norm          .10000E-03    1.2739        .22189E-07** at limit **
  21  Prefactor     11.507        11.409       -.27165E-06   -.13121E-04
  22  Prefactor     .10000E-03    10.174        .10436E-05** at limit **
  23  Prefactor     .10000E-03    1.8948        .22419E-07** at limit **
  24  norm          .10000E-03    6.1356       -.15014E-05** at limit **
  25  Prefactor     .10000E-03    11.668       -.19424E-05** at limit **
  26  norm          .10000E-03    2.5291        .33769E-08** at limit **
  27  Prefactor     .10000E-03    15.930        .44545E-05** at limit **
  28  norm          .10000E-03    6.7591       -.33367E-06** at limit **
  29  Prefactor     3.0032        16.188       -.92029E-07   -.26305E-04
  30  Prefactor     .10000E-03    4.8079        .28230E-08** at limit **
  31  Normalizat    .98277        .16905        .32757E-06   -.10783E-04
  32  Prefactor     .82197        .19783       -.16316E-06    .37128E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.000100022
  norm       = 0.0001
  norm       = 9.91556
  norm       = 14.1187
  Prefactor  = 0.0001
  Prefactor  = 2.12941
  Prefactor  = 77.248
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.76201
  Prefactor  = 0.0001
  norm       = 11.7808
  Prefactor  = 0.0001
  Prefactor  = 33.3128
  Prefactor  = 0.0001
  Prefactor  = 5.57595
  norm       = 0.0001
  Prefactor  = 11.5065
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.00322
  Prefactor  = 0.0001
  Normalizat = 0.982766
  Prefactor  = 0.821972
 **********
 **   18 **HESSE 
 **********

 FCN=   4739.078     FROM HESSE     STATUS=OK           655 CALLS     5033 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10002E-03    19.704        .77130E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    6.2467        .32879E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          9.9156        13.935        .63625E-03   -1.5078    
   5  norm          14.119        6.5994        .10660E-03   -1.4956    
   6  Prefactor     .10000E-03    2.4361        .20590E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.1294        15.135        .14103E-02   -1.5416    
   8  Prefactor     77.248        46.239        .45687E-04   -1.3948    
   9  Prefactor     .10000E-03    24.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    37.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.8081        .11224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    72.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.7620        1.3410        .66797E-04   -1.5442    
  14  Prefactor     .10000E-03    4.3344        .27582E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          11.781        15.383        .11671E-03   -1.5021    
  16  Prefactor     .10000E-03    22.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     33.313        41.120        .69418E-04   -1.4553    
  18  Prefactor     .10000E-03    2.7255        .11035E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.5759        18.409        .17010E-03   -1.5236    
  20  norm          .10000E-03    1.2782        .75864E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.507        11.423        .11810E-03   -1.5029    
  22  Prefactor     .10000E-03    10.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.9456        .18498E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    6.1447        .16658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    11.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    2.5367        .10690E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    15.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    6.8367        .17476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     3.0032        16.189        .23413E-03   -1.5361    
  30  Prefactor     .10000E-03    4.8225        .14738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .98277        .20298        .20443E-03   -.93610    
  32  Prefactor     .82197        .23413        .26930E-03   -.98923    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1129e-08
Minuit parameter uncertainties:
  1  0.000441045
  2  0.00132452
  3  2.1757e-05
  4  13.9393
  5  6.59972
  6  1.32357e-05
  7  11.3577
  8  46.2609
  9  0.000640467
  10  0.000148382
  11  1.16281e-05
  12  0.000372607
  13  1.34106
  14  8.0236e-06
  15  15.3884
  16  0.00011889
  17  41.1553
  18  1.18525e-05
  19  18.4279
  20  9.13748e-08
  21  11.425
  22  3.70397e-05
  23  1.51719e-06
  24  3.65296e-05
  25  7.12047e-05
  26  9.62819e-07
  27  0.000176199
  28  8.63125e-06
  29  13.951
  30  1.00512e-06
  31  0.20314
  32  0.234412
Done.

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

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.178e+01  1.539e+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.220e-01  2.344e-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.828e-01  2.031e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/95479/likelihoodResults_262137601_262396801_4FGL_J1359.7+4012_daily_bin88.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) = 4738.5725477
delta logL = 0.505216571524

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4738.56296913
delta logL = 0.514795134936

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4121       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.3909       1.0000          .0000       5.0000    
     3 'Normalizat'    .92074       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87690       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=   4738.563     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      247 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3882        113.41        .47932E-02   -.10501E-02
   2  alpha         4.3965        2.9838        .50000       -.39755E-04
   3  Normalizat    .92059        .73755E-01    .45166E-01   -.58317E-03
   4  Prefactor     .87694        .91145E-01    .44710E-01   -.32027E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.3882
  alpha      = 4.39647
  Normalizat = 0.92059
  Prefactor  = 0.876944
 **********
 **   18 **HESSE 
 **********

 FCN=   4738.563     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3882        141.33        .11199E-03   -1.5289    
   2  alpha         4.3965        2.5797        .35507E-01    .86115    
   3  Normalizat    .92059        .21285        .21035E-03   -.95740    
   4  Prefactor     .87694        .25968        .26166E-03   -.96951    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.844e-10
Minuit parameter uncertainties:
  1  49.936
  2  10.3862
  3  0.213046
  4  0.260047
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/95479': 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): 102
logL (Free Index) = 4738.56296518
delta logL = 0.514799090679

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  4.388e+00  4.994e+01  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  4.396e+00  1.039e+01  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.769e-01  2.600e-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.206e-01  2.130e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.00
Ra Dec: 209.928 40.215
Photon Index (Free Index): 4.40 +/- 10.39
Photon Flux (Free Index): 6.11e-08 +/- 6.22e-08
Energy Flux (Free Index): 9.12e-06 +/- 1.11e-05

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/95479/cmap_HighResolution_262137601_262396801_4FGL_J1359.7+4012_daily_bin88.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.71e-05', comment='SUCCESS', energy_flux2='9.12e-06', dlogl='5.15e-01', photon_flux2='6.11e-08', job_status='DONE', time_completed='2021-09-08 19:51:59.872423', photon_index_error2='10.39', photon_index2='4.40', ts='0.87', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='9.08e-08', energy_flux_error2='1.11e-05', EG='0.98', time_epoch_completed='1631155919.87', return_code='0', job_id='95479', GAL2='0.88', EG2='0.92', return_code2='102', photon_flux_error2='6.22e-08', ts2='2.00', photon_index='2.33' WHERE bin_id='88' AND source_name='4FGL J1359.7+4012' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:51:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0150>
Subject: Job 95479: <4FGL_J1359.7+4012_daily_bin88> in cluster <slac> Done

Job <4FGL_J1359.7+4012_daily_bin88> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 19:35:36 2021
Job was executed on host(s) <bullet0150>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 19:35:37 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:35:37 2021
Terminated at Wed Sep  8 19:52:00 2021
Results reported at Wed Sep  8 19:52:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.7+4012_daily_bin88 209.928 40.2153 262137601 262396801 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 :                                   788.17 sec.
    Max Memory :                                 1062 MB
    Average Memory :                             278.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   983 sec.
    Turnaround time :                            984 sec.

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

